Debian Codegraph @

texk/dvidvi/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for dvidvi (TeX Live) 1.1.
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='dvidvi (TeX Live)'
616 PACKAGE_TARNAME='dvidvi--tex-live-'
617 PACKAGE_VERSION='1.1'
618 PACKAGE_STRING='dvidvi (TeX Live) 1.1'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="dvidvi.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 enable_year2038=no
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 WIN32_FALSE
661 WIN32_TRUE
662 KPATHSEA_RULE
663 KPATHSEA_DEPEND
664 KPATHSEA_LIBS
665 KPATHSEA_INCLUDES
666 PKG_CONFIG
667 LT_SYS_LIBRARY_PATH
668 OTOOL64
669 OTOOL
670 LIPO
671 NMEDIT
672 DSYMUTIL
673 MANIFEST_TOOL
674 RANLIB
675 FILECMD
676 LN_S
677 NM
678 ac_ct_DUMPBIN
679 DUMPBIN
680 LD
681 FGREP
682 EGREP
683 GREP
684 SED
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 LIBTOOL
694 OBJDUMP
695 DLLTOOL
696 AS
697 ac_ct_AR
698 AR
699 WARNING_CFLAGS
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 am__nodep
704 AMDEPBACKSLASH
705 AMDEP_FALSE
706 AMDEP_TRUE
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 MAINT
717 MAINTAINER_MODE_FALSE
718 MAINTAINER_MODE_TRUE
719 am__xargs_n
720 am__rm_f_notfound
721 AM_BACKSLASH
722 AM_DEFAULT_VERBOSITY
723 AM_DEFAULT_V
724 AM_V
725 CSCOPE
726 ETAGS
727 CTAGS
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
733 AWK
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 runstatedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL
790 am__quote'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_maintainer_mode
796 enable_dependency_tracking
797 enable_compiler_warnings
798 enable_shared
799 enable_static
800 enable_pic
801 with_pic
802 enable_fast_install
803 enable_aix_soname
804 with_aix_soname
805 with_gnu_ld
806 with_sysroot
807 enable_libtool_lock
808 enable_largefile
809 with_system_kpathsea
810 enable_year2038
811 '
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CC
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
820 LT_SYS_LIBRARY_PATH'
821
822
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 ac_unrecognized_opts=
827 ac_unrecognized_sep=
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
844
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 runstatedir='${localstatedir}/run'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
864 htmldir='${docdir}'
865 dvidir='${docdir}'
866 pdfdir='${docdir}'
867 psdir='${docdir}'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
871
872 ac_prev=
873 ac_dashdash=
874 for ac_option
875 do
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\$ac_option
879 ac_prev=
880 continue
881 fi
882
883 case $ac_option in
884 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 *=) ac_optarg= ;;
886 *) ac_optarg=yes ;;
887 esac
888
889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
917
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: '$ac_useropt'"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
950
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: '$ac_useropt'"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
966
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
975
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
979
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
986
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
991
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
997
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1004
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1009
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1014
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1021
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1026
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1033
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1038
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1042
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1046
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1050
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1059
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1064
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1071
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1078
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1095
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1100
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1105
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1109
1110 -runstatedir | --runstatedir | --runstatedi | --runstated \
1111 | --runstate | --runstat | --runsta | --runst | --runs \
1112 | --run | --ru | --r)
1113 ac_prev=runstatedir ;;
1114 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1115 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1116 | --run=* | --ru=* | --r=*)
1117 runstatedir=$ac_optarg ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1163
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: '$ac_useropt'"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1179
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: '$ac_useropt'"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1213
1214 -*) as_fn_error $? "unrecognized option: '$ac_option'
1215 Try '$0 --help' for more information"
1216 ;;
1217
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1227
1228 *)
1229 # FIXME: should be removed in autoconf 3.0.
1230 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234 ;;
1235
1236 esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error $? "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir runstatedir
1257 do
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: '$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287 fi
1288
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292 test "$silent" = yes && exec 6>/dev/null
1293
1294
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1301
1302
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 printf "%s\n" X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1333 fi
1334 else
1335 ac_srcdir_defaulted=no
1336 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340 fi
1341 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348 fi
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1361
1362 #
1363 # Report the --help message.
1364 #
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369 'configure' configures dvidvi (TeX Live) 1.1 to adapt to many kinds of systems.
1370
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1375
1376 Defaults for the options are specified in brackets.
1377
1378 Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print 'checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for '--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or '..']
1388
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1394
1395 By default, 'make install' will install all the files in
1396 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than '$ac_default_prefix' using '--prefix',
1398 for instance '--prefix=\$HOME'.
1399
1400 For better control, use the options below.
1401
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root
1419 [DATAROOTDIR/doc/dvidvi--tex-live-]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 _ACEOF
1437 fi
1438
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of dvidvi (TeX Live) 1.1:";;
1442 esac
1443 cat <<\_ACEOF
1444
1445 Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-silent-rules less verbose build output (undo: "make V=1")
1450 --disable-silent-rules verbose build output (undo: "make V=0")
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-compiler-warnings=[no|min|yes|max|all]
1459 Turn on compiler warnings [default: yes if
1460 maintainer-mode, min otherwise]
1461 --enable-shared[=PKGS] build shared libraries [default=yes]
1462 --enable-static[=PKGS] build static libraries [default=yes]
1463 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1464 both]
1465 --enable-fast-install[=PKGS]
1466 optimize for fast installation [default=yes]
1467 --enable-aix-soname=aix|svr4|both
1468 shared library versioning (aka "SONAME") variant to
1469 provide on AIX, [default=aix].
1470 --disable-libtool-lock avoid locking (might break parallel builds)
1471 --disable-largefile omit support for large files
1472 --enable-year2038 support timestamps after 2038
1473
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1478 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1479 compiler's sysroot if not specified).
1480 --with-system-kpathsea use installed kpathsea headers and library (requires
1481 pkg-config)
1482
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 LT_SYS_LIBRARY_PATH
1492 User-defined run-time library search path.
1493
1494 Use these variables to override the choices made by 'configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to <[email protected]>.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1509
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *)
1513 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1525
1526 case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for configure.gnu first; this name is used for a wrapper for
1544 # Metaconfig's "Configure" on case-insensitive file systems.
1545 if test -f "$ac_srcdir/configure.gnu"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548 elif test -f "$ac_srcdir/configure"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure" --help=recursive
1551 else
1552 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 fi || ac_status=$?
1554 cd "$ac_pwd" || { ac_status=$?; break; }
1555 done
1556 fi
1557
1558 test -n "$ac_init_help" && exit $ac_status
1559 if $ac_init_version; then
1560 cat <<\_ACEOF
1561 dvidvi (TeX Live) configure 1.1
1562 generated by GNU Autoconf 2.72
1563
1564 Copyright (C) 2023 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1567 _ACEOF
1568 exit
1569 fi
1570
1571 ## ------------------------ ##
1572 ## Autoconf initialization. ##
1573 ## ------------------------ ##
1574
1575 # ac_fn_c_try_compile LINENO
1576 # --------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_compile ()
1579 {
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext conftest.beam
1582 if { { ac_try="$ac_compile"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 printf "%s\n" "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.$ac_objext
1601 then :
1602 ac_retval=0
1603 else case e in #(
1604 e) printf "%s\n" "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1 ;;
1608 esac
1609 fi
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_compile
1614
1615 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1616 # -------------------------------------------------------
1617 # Tests whether HEADER exists and can be compiled using the include files in
1618 # INCLUDES, setting the cache variable VAR accordingly.
1619 ac_fn_c_check_header_compile ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 printf %s "checking for $2... " >&6; }
1624 if eval test \${$3+y}
1625 then :
1626 printf %s "(cached) " >&6
1627 else case e in #(
1628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1630 $4
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"
1634 then :
1635 eval "$3=yes"
1636 else case e in #(
1637 e) eval "$3=no" ;;
1638 esac
1639 fi
1640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1641 esac
1642 fi
1643 eval ac_res=\$$3
1644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 printf "%s\n" "$ac_res" >&6; }
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647
1648 } # ac_fn_c_check_header_compile
1649
1650 # ac_fn_c_try_link LINENO
1651 # -----------------------
1652 # Try to link conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_link ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1657 if { { ac_try="$ac_link"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 printf "%s\n" "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest$ac_exeext && {
1676 test "$cross_compiling" = yes ||
1677 test -x conftest$ac_exeext
1678 }
1679 then :
1680 ac_retval=0
1681 else case e in #(
1682 e) printf "%s\n" "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=1 ;;
1686 esac
1687 fi
1688 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1689 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1690 # interfere with the next link command; also delete a directory that is
1691 # left behind by Apple's compiler. We do this before executing the actions.
1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1695
1696 } # ac_fn_c_try_link
1697
1698 # ac_fn_c_check_func LINENO FUNC VAR
1699 # ----------------------------------
1700 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1701 ac_fn_c_check_func ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 printf %s "checking for $2... " >&6; }
1706 if eval test \${$3+y}
1707 then :
1708 printf %s "(cached) " >&6
1709 else case e in #(
1710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1712 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1714 #define $2 innocuous_$2
1715
1716 /* System header to define __stub macros and hopefully few prototypes,
1717 which can conflict with char $2 (void); below. */
1718
1719 #include <limits.h>
1720 #undef $2
1721
1722 /* Override any GCC internal prototype to avoid an error.
1723 Use char because int might match the return type of a GCC
1724 builtin and then its argument prototype would still apply. */
1725 #ifdef __cplusplus
1726 extern "C"
1727 #endif
1728 char $2 (void);
1729 /* The GNU C library defines this for functions which it implements
1730 to always fail with ENOSYS. Some functions are actually named
1731 something starting with __ and the normal name is an alias. */
1732 #if defined __stub_$2 || defined __stub___$2
1733 choke me
1734 #endif
1735
1736 int
1737 main (void)
1738 {
1739 return $2 ();
1740 ;
1741 return 0;
1742 }
1743 _ACEOF
1744 if ac_fn_c_try_link "$LINENO"
1745 then :
1746 eval "$3=yes"
1747 else case e in #(
1748 e) eval "$3=no" ;;
1749 esac
1750 fi
1751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1752 conftest$ac_exeext conftest.$ac_ext ;;
1753 esac
1754 fi
1755 eval ac_res=\$$3
1756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 printf "%s\n" "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760 } # ac_fn_c_check_func
1761
1762 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1763 # -------------------------------------------
1764 # Tests whether TYPE exists after having included INCLUDES, setting cache
1765 # variable VAR accordingly.
1766 ac_fn_c_check_type ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 printf %s "checking for $2... " >&6; }
1771 if eval test \${$3+y}
1772 then :
1773 printf %s "(cached) " >&6
1774 else case e in #(
1775 e) eval "$3=no"
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 $4
1779 int
1780 main (void)
1781 {
1782 if (sizeof ($2))
1783 return 0;
1784 ;
1785 return 0;
1786 }
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"
1789 then :
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 int
1794 main (void)
1795 {
1796 if (sizeof (($2)))
1797 return 0;
1798 ;
1799 return 0;
1800 }
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"
1803 then :
1804
1805 else case e in #(
1806 e) eval "$3=yes" ;;
1807 esac
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1812 esac
1813 fi
1814 eval ac_res=\$$3
1815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 printf "%s\n" "$ac_res" >&6; }
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818
1819 } # ac_fn_c_check_type
1820
1821 # ac_fn_c_find_intX_t LINENO BITS VAR
1822 # -----------------------------------
1823 # Finds a signed integer type with width BITS, setting cache variable VAR
1824 # accordingly.
1825 ac_fn_c_find_intX_t ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1829 printf %s "checking for int$2_t... " >&6; }
1830 if eval test \${$3+y}
1831 then :
1832 printf %s "(cached) " >&6
1833 else case e in #(
1834 e) eval "$3=no"
1835 # Order is important - never check a type that is potentially smaller
1836 # than half of the expected target width.
1837 for ac_type in int$2_t 'int' 'long int' \
1838 'long long int' 'short int' 'signed char'; do
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 $ac_includes_default
1842 enum { N = $2 / 2 - 1 };
1843 int
1844 main (void)
1845 {
1846 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1847 test_array [0] = 0;
1848 return test_array [0];
1849
1850 ;
1851 return 0;
1852 }
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"
1855 then :
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 $ac_includes_default
1859 enum { N = $2 / 2 - 1 };
1860 int
1861 main (void)
1862 {
1863 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1864 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1865 test_array [0] = 0;
1866 return test_array [0];
1867
1868 ;
1869 return 0;
1870 }
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"
1873 then :
1874
1875 else case e in #(
1876 e) case $ac_type in #(
1877 int$2_t) :
1878 eval "$3=yes" ;; #(
1879 *) :
1880 eval "$3=\$ac_type" ;;
1881 esac ;;
1882 esac
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1887 if eval test \"x\$"$3"\" = x"no"
1888 then :
1889
1890 else case e in #(
1891 e) break ;;
1892 esac
1893 fi
1894 done ;;
1895 esac
1896 fi
1897 eval ac_res=\$$3
1898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 printf "%s\n" "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_find_intX_t
1903
1904 # ac_fn_c_find_uintX_t LINENO BITS VAR
1905 # ------------------------------------
1906 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1907 # accordingly.
1908 ac_fn_c_find_uintX_t ()
1909 {
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1912 printf %s "checking for uint$2_t... " >&6; }
1913 if eval test \${$3+y}
1914 then :
1915 printf %s "(cached) " >&6
1916 else case e in #(
1917 e) eval "$3=no"
1918 # Order is important - never check a type that is potentially smaller
1919 # than half of the expected target width.
1920 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1921 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 $ac_includes_default
1925 int
1926 main (void)
1927 {
1928 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1929 test_array [0] = 0;
1930 return test_array [0];
1931
1932 ;
1933 return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"
1937 then :
1938 case $ac_type in #(
1939 uint$2_t) :
1940 eval "$3=yes" ;; #(
1941 *) :
1942 eval "$3=\$ac_type" ;;
1943 esac
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1946 if eval test \"x\$"$3"\" = x"no"
1947 then :
1948
1949 else case e in #(
1950 e) break ;;
1951 esac
1952 fi
1953 done ;;
1954 esac
1955 fi
1956 eval ac_res=\$$3
1957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 printf "%s\n" "$ac_res" >&6; }
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960
1961 } # ac_fn_c_find_uintX_t
1962
1963 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1964 # ------------------------------------------------------------------
1965 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1966 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1967 ac_fn_check_decl ()
1968 {
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 as_decl_name=`echo $2|sed 's/ *(.*//'`
1971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1972 printf %s "checking whether $as_decl_name is declared... " >&6; }
1973 if eval test \${$3+y}
1974 then :
1975 printf %s "(cached) " >&6
1976 else case e in #(
1977 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1978 eval ac_save_FLAGS=\$$6
1979 as_fn_append $6 " $5"
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 $4
1983 int
1984 main (void)
1985 {
1986 #ifndef $as_decl_name
1987 #ifdef __cplusplus
1988 (void) $as_decl_use;
1989 #else
1990 (void) $as_decl_name;
1991 #endif
1992 #endif
1993
1994 ;
1995 return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"
1999 then :
2000 eval "$3=yes"
2001 else case e in #(
2002 e) eval "$3=no" ;;
2003 esac
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2006 eval $6=\$ac_save_FLAGS
2007 ;;
2008 esac
2009 fi
2010 eval ac_res=\$$3
2011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 printf "%s\n" "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015 } # ac_fn_check_decl
2016
2017 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2018 # ----------------------------------------------------
2019 # Tries to find if the field MEMBER exists in type AGGR, after including
2020 # INCLUDES, setting cache variable VAR accordingly.
2021 ac_fn_c_check_member ()
2022 {
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2025 printf %s "checking for $2.$3... " >&6; }
2026 if eval test \${$4+y}
2027 then :
2028 printf %s "(cached) " >&6
2029 else case e in #(
2030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2032 $5
2033 int
2034 main (void)
2035 {
2036 static $2 ac_aggr;
2037 if (ac_aggr.$3)
2038 return 0;
2039 ;
2040 return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"
2044 then :
2045 eval "$4=yes"
2046 else case e in #(
2047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 $5
2050 int
2051 main (void)
2052 {
2053 static $2 ac_aggr;
2054 if (sizeof ac_aggr.$3)
2055 return 0;
2056 ;
2057 return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"
2061 then :
2062 eval "$4=yes"
2063 else case e in #(
2064 e) eval "$4=no" ;;
2065 esac
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2068 esac
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2071 esac
2072 fi
2073 eval ac_res=\$$4
2074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 printf "%s\n" "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078 } # ac_fn_c_check_member
2079 ac_configure_args_raw=
2080 for ac_arg
2081 do
2082 case $ac_arg in
2083 *\'*)
2084 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2085 esac
2086 as_fn_append ac_configure_args_raw " '$ac_arg'"
2087 done
2088
2089 case $ac_configure_args_raw in
2090 *$as_nl*)
2091 ac_safe_unquote= ;;
2092 *)
2093 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2094 ac_unsafe_a="$ac_unsafe_z#~"
2095 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2096 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2097 esac
2098
2099 cat >config.log <<_ACEOF
2100 This file contains any messages produced by compilers while
2101 running configure, to aid debugging if configure makes a mistake.
2102
2103 It was created by dvidvi (TeX Live) $as_me 1.1, which was
2104 generated by GNU Autoconf 2.72. Invocation command line was
2105
2106 $ $0$ac_configure_args_raw
2107
2108 _ACEOF
2109 exec 5>>config.log
2110 {
2111 cat <<_ASUNAME
2112 ## --------- ##
2113 ## Platform. ##
2114 ## --------- ##
2115
2116 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121
2122 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2124
2125 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2126 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2127 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2129 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2130 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2131 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132
2133 _ASUNAME
2134
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138 IFS=$as_save_IFS
2139 case $as_dir in #(((
2140 '') as_dir=./ ;;
2141 */) ;;
2142 *) as_dir=$as_dir/ ;;
2143 esac
2144 printf "%s\n" "PATH: $as_dir"
2145 done
2146 IFS=$as_save_IFS
2147
2148 } >&5
2149
2150 cat >&5 <<_ACEOF
2151
2152
2153 ## ----------- ##
2154 ## Core tests. ##
2155 ## ----------- ##
2156
2157 _ACEOF
2158
2159
2160 # Keep a trace of the command line.
2161 # Strip out --no-create and --no-recursion so they do not pile up.
2162 # Strip out --silent because we don't want to record it for future runs.
2163 # Also quote any args containing shell meta-characters.
2164 # Make two passes to allow for proper duplicate-argument suppression.
2165 ac_configure_args=
2166 ac_configure_args0=
2167 ac_configure_args1=
2168 ac_must_keep_next=false
2169 for ac_pass in 1 2
2170 do
2171 for ac_arg
2172 do
2173 case $ac_arg in
2174 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2176 | -silent | --silent | --silen | --sile | --sil)
2177 continue ;;
2178 *\'*)
2179 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2180 esac
2181 case $ac_pass in
2182 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2183 2)
2184 as_fn_append ac_configure_args1 " '$ac_arg'"
2185 if test $ac_must_keep_next = true; then
2186 ac_must_keep_next=false # Got value, back to normal.
2187 else
2188 case $ac_arg in
2189 *=* | --config-cache | -C | -disable-* | --disable-* \
2190 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2191 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2192 | -with-* | --with-* | -without-* | --without-* | --x)
2193 case "$ac_configure_args0 " in
2194 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2195 esac
2196 ;;
2197 -* ) ac_must_keep_next=true ;;
2198 esac
2199 fi
2200 as_fn_append ac_configure_args " '$ac_arg'"
2201 ;;
2202 esac
2203 done
2204 done
2205 { ac_configure_args0=; unset ac_configure_args0;}
2206 { ac_configure_args1=; unset ac_configure_args1;}
2207
2208 # When interrupted or exit'd, cleanup temporary files, and complete
2209 # config.log. We remove comments because anyway the quotes in there
2210 # would cause problems or look ugly.
2211 # WARNING: Use '\'' to represent an apostrophe within the trap.
2212 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2213 trap 'exit_status=$?
2214 # Sanitize IFS.
2215 IFS=" "" $as_nl"
2216 # Save into config.log some information that might help in debugging.
2217 {
2218 echo
2219
2220 printf "%s\n" "## ---------------- ##
2221 ## Cache variables. ##
2222 ## ---------------- ##"
2223 echo
2224 # The following way of writing the cache mishandles newlines in values,
2225 (
2226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in #(
2229 *${as_nl}*)
2230 case $ac_var in #(
2231 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2232 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2233 esac
2234 case $ac_var in #(
2235 _ | IFS | as_nl) ;; #(
2236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2237 *) { eval $ac_var=; unset $ac_var;} ;;
2238 esac ;;
2239 esac
2240 done
2241 (set) 2>&1 |
2242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243 *${as_nl}ac_space=\ *)
2244 sed -n \
2245 "s/'\''/'\''\\\\'\'''\''/g;
2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2247 ;; #(
2248 *)
2249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2250 ;;
2251 esac |
2252 sort
2253 )
2254 echo
2255
2256 printf "%s\n" "## ----------------- ##
2257 ## Output variables. ##
2258 ## ----------------- ##"
2259 echo
2260 for ac_var in $ac_subst_vars
2261 do
2262 eval ac_val=\$$ac_var
2263 case $ac_val in
2264 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 esac
2266 printf "%s\n" "$ac_var='\''$ac_val'\''"
2267 done | sort
2268 echo
2269
2270 if test -n "$ac_subst_files"; then
2271 printf "%s\n" "## ------------------- ##
2272 ## File substitutions. ##
2273 ## ------------------- ##"
2274 echo
2275 for ac_var in $ac_subst_files
2276 do
2277 eval ac_val=\$$ac_var
2278 case $ac_val in
2279 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 esac
2281 printf "%s\n" "$ac_var='\''$ac_val'\''"
2282 done | sort
2283 echo
2284 fi
2285
2286 if test -s confdefs.h; then
2287 printf "%s\n" "## ----------- ##
2288 ## confdefs.h. ##
2289 ## ----------- ##"
2290 echo
2291 cat confdefs.h
2292 echo
2293 fi
2294 test "$ac_signal" != 0 &&
2295 printf "%s\n" "$as_me: caught signal $ac_signal"
2296 printf "%s\n" "$as_me: exit $exit_status"
2297 } >&5
2298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2300 exit $exit_status
2301 ' 0
2302 for ac_signal in 1 2 13 15; do
2303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304 done
2305 ac_signal=0
2306
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest* confdefs.h
2309
2310 printf "%s\n" "/* confdefs.h */" > confdefs.h
2311
2312 # Predefined preprocessor variables.
2313
2314 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2315
2316 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2317
2318 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2319
2320 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2321
2322 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2323
2324 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2325
2326
2327 # Let the site file select an alternate cache file if it wants to.
2328 # Prefer an explicitly selected file to automatically selected ones.
2329 if test -n "$CONFIG_SITE"; then
2330 ac_site_files="$CONFIG_SITE"
2331 elif test "x$prefix" != xNONE; then
2332 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2333 else
2334 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2335 fi
2336
2337 for ac_site_file in $ac_site_files
2338 do
2339 case $ac_site_file in #(
2340 */*) :
2341 ;; #(
2342 *) :
2343 ac_site_file=./$ac_site_file ;;
2344 esac
2345 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2347 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2348 sed 's/^/| /' "$ac_site_file" >&5
2349 . "$ac_site_file" \
2350 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2351 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2352 as_fn_error $? "failed to load site script $ac_site_file
2353 See 'config.log' for more details" "$LINENO" 5; }
2354 fi
2355 done
2356
2357 if test -r "$cache_file"; then
2358 # Some versions of bash will fail to source /dev/null (special files
2359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2362 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2363 case $cache_file in
2364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2365 *) . "./$cache_file";;
2366 esac
2367 fi
2368 else
2369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2370 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2371 >$cache_file
2372 fi
2373
2374 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2375 # Test code for whether the C compiler supports C89 (global declarations)
2376 ac_c_conftest_c89_globals='
2377 /* Does the compiler advertise C89 conformance?
2378 Do not test the value of __STDC__, because some compilers set it to 0
2379 while being otherwise adequately conformant. */
2380 #if !defined __STDC__
2381 # error "Compiler does not advertise C89 conformance"
2382 #endif
2383
2384 #include <stddef.h>
2385 #include <stdarg.h>
2386 struct stat;
2387 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2388 struct buf { int x; };
2389 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2390 static char *e (char **p, int i)
2391 {
2392 return p[i];
2393 }
2394 static char *f (char * (*g) (char **, int), char **p, ...)
2395 {
2396 char *s;
2397 va_list v;
2398 va_start (v,p);
2399 s = g (p, va_arg (v,int));
2400 va_end (v);
2401 return s;
2402 }
2403
2404 /* C89 style stringification. */
2405 #define noexpand_stringify(a) #a
2406 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2407
2408 /* C89 style token pasting. Exercises some of the corner cases that
2409 e.g. old MSVC gets wrong, but not very hard. */
2410 #define noexpand_concat(a,b) a##b
2411 #define expand_concat(a,b) noexpand_concat(a,b)
2412 extern int vA;
2413 extern int vbee;
2414 #define aye A
2415 #define bee B
2416 int *pvA = &expand_concat(v,aye);
2417 int *pvbee = &noexpand_concat(v,bee);
2418
2419 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2420 function prototypes and stuff, but not \xHH hex character constants.
2421 These do not provoke an error unfortunately, instead are silently treated
2422 as an "x". The following induces an error, until -std is added to get
2423 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2424 array size at least. It is necessary to write \x00 == 0 to get something
2425 that is true only with -std. */
2426 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2427
2428 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2429 inside strings and character constants. */
2430 #define FOO(x) '\''x'\''
2431 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2432
2433 int test (int i, double x);
2434 struct s1 {int (*f) (int a);};
2435 struct s2 {int (*f) (double a);};
2436 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2437 int, int);'
2438
2439 # Test code for whether the C compiler supports C89 (body of main).
2440 ac_c_conftest_c89_main='
2441 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2442 '
2443
2444 # Test code for whether the C compiler supports C99 (global declarations)
2445 ac_c_conftest_c99_globals='
2446 /* Does the compiler advertise C99 conformance? */
2447 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2448 # error "Compiler does not advertise C99 conformance"
2449 #endif
2450
2451 // See if C++-style comments work.
2452
2453 #include <stdbool.h>
2454 extern int puts (const char *);
2455 extern int printf (const char *, ...);
2456 extern int dprintf (int, const char *, ...);
2457 extern void *malloc (size_t);
2458 extern void free (void *);
2459
2460 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2461 // dprintf is used instead of fprintf to avoid needing to declare
2462 // FILE and stderr.
2463 #define debug(...) dprintf (2, __VA_ARGS__)
2464 #define showlist(...) puts (#__VA_ARGS__)
2465 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2466 static void
2467 test_varargs_macros (void)
2468 {
2469 int x = 1234;
2470 int y = 5678;
2471 debug ("Flag");
2472 debug ("X = %d\n", x);
2473 showlist (The first, second, and third items.);
2474 report (x>y, "x is %d but y is %d", x, y);
2475 }
2476
2477 // Check long long types.
2478 #define BIG64 18446744073709551615ull
2479 #define BIG32 4294967295ul
2480 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2481 #if !BIG_OK
2482 #error "your preprocessor is broken"
2483 #endif
2484 #if BIG_OK
2485 #else
2486 #error "your preprocessor is broken"
2487 #endif
2488 static long long int bignum = -9223372036854775807LL;
2489 static unsigned long long int ubignum = BIG64;
2490
2491 struct incomplete_array
2492 {
2493 int datasize;
2494 double data[];
2495 };
2496
2497 struct named_init {
2498 int number;
2499 const wchar_t *name;
2500 double average;
2501 };
2502
2503 typedef const char *ccp;
2504
2505 static inline int
2506 test_restrict (ccp restrict text)
2507 {
2508 // Iterate through items via the restricted pointer.
2509 // Also check for declarations in for loops.
2510 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2511 continue;
2512 return 0;
2513 }
2514
2515 // Check varargs and va_copy.
2516 static bool
2517 test_varargs (const char *format, ...)
2518 {
2519 va_list args;
2520 va_start (args, format);
2521 va_list args_copy;
2522 va_copy (args_copy, args);
2523
2524 const char *str = "";
2525 int number = 0;
2526 float fnumber = 0;
2527
2528 while (*format)
2529 {
2530 switch (*format++)
2531 {
2532 case '\''s'\'': // string
2533 str = va_arg (args_copy, const char *);
2534 break;
2535 case '\''d'\'': // int
2536 number = va_arg (args_copy, int);
2537 break;
2538 case '\''f'\'': // float
2539 fnumber = va_arg (args_copy, double);
2540 break;
2541 default:
2542 break;
2543 }
2544 }
2545 va_end (args_copy);
2546 va_end (args);
2547
2548 return *str && number && fnumber;
2549 }
2550 '
2551
2552 # Test code for whether the C compiler supports C99 (body of main).
2553 ac_c_conftest_c99_main='
2554 // Check bool.
2555 _Bool success = false;
2556 success |= (argc != 0);
2557
2558 // Check restrict.
2559 if (test_restrict ("String literal") == 0)
2560 success = true;
2561 char *restrict newvar = "Another string";
2562
2563 // Check varargs.
2564 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2565 test_varargs_macros ();
2566
2567 // Check flexible array members.
2568 struct incomplete_array *ia =
2569 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2570 ia->datasize = 10;
2571 for (int i = 0; i < ia->datasize; ++i)
2572 ia->data[i] = i * 1.234;
2573 // Work around memory leak warnings.
2574 free (ia);
2575
2576 // Check named initializers.
2577 struct named_init ni = {
2578 .number = 34,
2579 .name = L"Test wide string",
2580 .average = 543.34343,
2581 };
2582
2583 ni.number = 58;
2584
2585 int dynamic_array[ni.number];
2586 dynamic_array[0] = argv[0][0];
2587 dynamic_array[ni.number - 1] = 543;
2588
2589 // work around unused variable warnings
2590 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2591 || dynamic_array[ni.number - 1] != 543);
2592 '
2593
2594 # Test code for whether the C compiler supports C11 (global declarations)
2595 ac_c_conftest_c11_globals='
2596 /* Does the compiler advertise C11 conformance? */
2597 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2598 # error "Compiler does not advertise C11 conformance"
2599 #endif
2600
2601 // Check _Alignas.
2602 char _Alignas (double) aligned_as_double;
2603 char _Alignas (0) no_special_alignment;
2604 extern char aligned_as_int;
2605 char _Alignas (0) _Alignas (int) aligned_as_int;
2606
2607 // Check _Alignof.
2608 enum
2609 {
2610 int_alignment = _Alignof (int),
2611 int_array_alignment = _Alignof (int[100]),
2612 char_alignment = _Alignof (char)
2613 };
2614 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2615
2616 // Check _Noreturn.
2617 int _Noreturn does_not_return (void) { for (;;) continue; }
2618
2619 // Check _Static_assert.
2620 struct test_static_assert
2621 {
2622 int x;
2623 _Static_assert (sizeof (int) <= sizeof (long int),
2624 "_Static_assert does not work in struct");
2625 long int y;
2626 };
2627
2628 // Check UTF-8 literals.
2629 #define u8 syntax error!
2630 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2631
2632 // Check duplicate typedefs.
2633 typedef long *long_ptr;
2634 typedef long int *long_ptr;
2635 typedef long_ptr long_ptr;
2636
2637 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2638 struct anonymous
2639 {
2640 union {
2641 struct { int i; int j; };
2642 struct { int k; long int l; } w;
2643 };
2644 int m;
2645 } v1;
2646 '
2647
2648 # Test code for whether the C compiler supports C11 (body of main).
2649 ac_c_conftest_c11_main='
2650 _Static_assert ((offsetof (struct anonymous, i)
2651 == offsetof (struct anonymous, w.k)),
2652 "Anonymous union alignment botch");
2653 v1.i = 2;
2654 v1.w.k = 5;
2655 ok |= v1.i != 5;
2656 '
2657
2658 # Test code for whether the C compiler supports C11 (complete).
2659 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2660 ${ac_c_conftest_c99_globals}
2661 ${ac_c_conftest_c11_globals}
2662
2663 int
2664 main (int argc, char **argv)
2665 {
2666 int ok = 0;
2667 ${ac_c_conftest_c89_main}
2668 ${ac_c_conftest_c99_main}
2669 ${ac_c_conftest_c11_main}
2670 return ok;
2671 }
2672 "
2673
2674 # Test code for whether the C compiler supports C99 (complete).
2675 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2676 ${ac_c_conftest_c99_globals}
2677
2678 int
2679 main (int argc, char **argv)
2680 {
2681 int ok = 0;
2682 ${ac_c_conftest_c89_main}
2683 ${ac_c_conftest_c99_main}
2684 return ok;
2685 }
2686 "
2687
2688 # Test code for whether the C compiler supports C89 (complete).
2689 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2690
2691 int
2692 main (int argc, char **argv)
2693 {
2694 int ok = 0;
2695 ${ac_c_conftest_c89_main}
2696 return ok;
2697 }
2698 "
2699
2700 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2701 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2702 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2703 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2704 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2705 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2706 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2707 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2708 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2709 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2710
2711 # Auxiliary files required by this configure script.
2712 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2713
2714 # Locations in which to look for auxiliary files.
2715 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2716
2717 # Search for a directory containing all of the required auxiliary files,
2718 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2719 # If we don't find one directory that contains all the files we need,
2720 # we report the set of missing files from the *first* directory in
2721 # $ac_aux_dir_candidates and give up.
2722 ac_missing_aux_files=""
2723 ac_first_candidate=:
2724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 as_found=false
2727 for as_dir in $ac_aux_dir_candidates
2728 do
2729 IFS=$as_save_IFS
2730 case $as_dir in #(((
2731 '') as_dir=./ ;;
2732 */) ;;
2733 *) as_dir=$as_dir/ ;;
2734 esac
2735 as_found=:
2736
2737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2738 ac_aux_dir_found=yes
2739 ac_install_sh=
2740 for ac_aux in $ac_aux_files
2741 do
2742 # As a special case, if "install-sh" is required, that requirement
2743 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2744 # and $ac_install_sh is set appropriately for whichever one is found.
2745 if test x"$ac_aux" = x"install-sh"
2746 then
2747 if test -f "${as_dir}install-sh"; then
2748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2749 ac_install_sh="${as_dir}install-sh -c"
2750 elif test -f "${as_dir}install.sh"; then
2751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2752 ac_install_sh="${as_dir}install.sh -c"
2753 elif test -f "${as_dir}shtool"; then
2754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2755 ac_install_sh="${as_dir}shtool install -c"
2756 else
2757 ac_aux_dir_found=no
2758 if $ac_first_candidate; then
2759 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2760 else
2761 break
2762 fi
2763 fi
2764 else
2765 if test -f "${as_dir}${ac_aux}"; then
2766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2767 else
2768 ac_aux_dir_found=no
2769 if $ac_first_candidate; then
2770 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2771 else
2772 break
2773 fi
2774 fi
2775 fi
2776 done
2777 if test "$ac_aux_dir_found" = yes; then
2778 ac_aux_dir="$as_dir"
2779 break
2780 fi
2781 ac_first_candidate=false
2782
2783 as_found=false
2784 done
2785 IFS=$as_save_IFS
2786 if $as_found
2787 then :
2788
2789 else case e in #(
2790 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2791 esac
2792 fi
2793
2794
2795 # These three variables are undocumented and unsupported,
2796 # and are intended to be withdrawn in a future Autoconf release.
2797 # They can cause serious problems if a builder's source tree is in a directory
2798 # whose full name contains unusual characters.
2799 if test -f "${ac_aux_dir}config.guess"; then
2800 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2801 fi
2802 if test -f "${ac_aux_dir}config.sub"; then
2803 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2804 fi
2805 if test -f "$ac_aux_dir/configure"; then
2806 ac_configure="$SHELL ${ac_aux_dir}configure"
2807 fi
2808
2809 # Check that the precious variables saved in the cache have kept the same
2810 # value.
2811 ac_cache_corrupted=false
2812 for ac_var in $ac_precious_vars; do
2813 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2814 eval ac_new_set=\$ac_env_${ac_var}_set
2815 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2816 eval ac_new_val=\$ac_env_${ac_var}_value
2817 case $ac_old_set,$ac_new_set in
2818 set,)
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2820 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2821 ac_cache_corrupted=: ;;
2822 ,set)
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2824 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2825 ac_cache_corrupted=: ;;
2826 ,);;
2827 *)
2828 if test "x$ac_old_val" != "x$ac_new_val"; then
2829 # differences in whitespace do not lead to failure.
2830 ac_old_val_w=`echo x $ac_old_val`
2831 ac_new_val_w=`echo x $ac_new_val`
2832 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2834 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2835 ac_cache_corrupted=:
2836 else
2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2838 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2839 eval $ac_var=\$ac_old_val
2840 fi
2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2842 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2844 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2845 fi;;
2846 esac
2847 # Pass precious variables to config.status.
2848 if test "$ac_new_set" = set; then
2849 case $ac_new_val in
2850 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2851 *) ac_arg=$ac_var=$ac_new_val ;;
2852 esac
2853 case " $ac_configure_args " in
2854 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2855 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2856 esac
2857 fi
2858 done
2859 if $ac_cache_corrupted; then
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2861 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2863 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2864 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2865 and start over" "$LINENO" 5
2866 fi
2867 ## -------------------- ##
2868 ## Main body of script. ##
2869 ## -------------------- ##
2870
2871 ac_ext=c
2872 ac_cpp='$CPP $CPPFLAGS'
2873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876
2877
2878
2879
2880
2881
2882
2883 am__api_version='1.18'
2884
2885
2886
2887 # Find a good install program. We prefer a C program (faster),
2888 # so one script is as good as another. But avoid the broken or
2889 # incompatible versions:
2890 # SysV /etc/install, /usr/sbin/install
2891 # SunOS /usr/etc/install
2892 # IRIX /sbin/install
2893 # AIX /bin/install
2894 # AmigaOS /C/install, which installs bootblocks on floppy discs
2895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2898 # OS/2's system install, which has a completely different semantic
2899 # ./install, which can be erroneously created by make from ./install.sh.
2900 # Reject install programs that cannot install multiple files.
2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2902 printf %s "checking for a BSD-compatible install... " >&6; }
2903 if test -z "$INSTALL"; then
2904 if test ${ac_cv_path_install+y}
2905 then :
2906 printf %s "(cached) " >&6
2907 else case e in #(
2908 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911 IFS=$as_save_IFS
2912 case $as_dir in #(((
2913 '') as_dir=./ ;;
2914 */) ;;
2915 *) as_dir=$as_dir/ ;;
2916 esac
2917 # Account for fact that we put trailing slashes in our PATH walk.
2918 case $as_dir in #((
2919 ./ | /[cC]/* | \
2920 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2921 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2922 /usr/ucb/* ) ;;
2923 *)
2924 # OSF1 and SCO ODT 3.0 have their own names for install.
2925 # Don't use installbsd from OSF since it installs stuff as root
2926 # by default.
2927 for ac_prog in ginstall scoinst install; do
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2930 if test $ac_prog = install &&
2931 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2932 # AIX install. It has an incompatible calling convention.
2933 :
2934 elif test $ac_prog = install &&
2935 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2936 # program-specific install script used by HP pwplus--don't use.
2937 :
2938 else
2939 rm -rf conftest.one conftest.two conftest.dir
2940 echo one > conftest.one
2941 echo two > conftest.two
2942 mkdir conftest.dir
2943 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2944 test -s conftest.one && test -s conftest.two &&
2945 test -s conftest.dir/conftest.one &&
2946 test -s conftest.dir/conftest.two
2947 then
2948 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2949 break 3
2950 fi
2951 fi
2952 fi
2953 done
2954 done
2955 ;;
2956 esac
2957
2958 done
2959 IFS=$as_save_IFS
2960
2961 rm -rf conftest.one conftest.two conftest.dir
2962 ;;
2963 esac
2964 fi
2965 if test ${ac_cv_path_install+y}; then
2966 INSTALL=$ac_cv_path_install
2967 else
2968 # As a last resort, use the slow shell script. Don't cache a
2969 # value for INSTALL within a source directory, because that will
2970 # break other packages using the cache if that directory is
2971 # removed, or if the value is a relative name.
2972 INSTALL=$ac_install_sh
2973 fi
2974 fi
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2976 printf "%s\n" "$INSTALL" >&6; }
2977
2978 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2979 # It thinks the first close brace ends the variable substitution.
2980 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2981
2982 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2983
2984 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2985
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2987 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2988 if test ${am_cv_sleep_fractional_seconds+y}
2989 then :
2990 printf %s "(cached) " >&6
2991 else case e in #(
2992 e) if sleep 0.001 2>/dev/null
2993 then :
2994 am_cv_sleep_fractional_seconds=yes
2995 else case e in #(
2996 e) am_cv_sleep_fractional_seconds=no ;;
2997 esac
2998 fi
2999 ;;
3000 esac
3001 fi
3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3003 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3004
3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3006 printf %s "checking filesystem timestamp resolution... " >&6; }
3007 if test ${am_cv_filesystem_timestamp_resolution+y}
3008 then :
3009 printf %s "(cached) " >&6
3010 else case e in #(
3011 e) # Default to the worst case.
3012 am_cv_filesystem_timestamp_resolution=2
3013
3014 # Only try to go finer than 1 sec if sleep can do it.
3015 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3016 # - 1 sec is not much of a win compared to 2 sec, and
3017 # - it takes 2 seconds to perform the test whether 1 sec works.
3018 #
3019 # Instead, just use the default 2s on platforms that have 1s resolution,
3020 # accept the extra 1s delay when using $sleep in the Automake tests, in
3021 # exchange for not incurring the 2s delay for running the test for all
3022 # packages.
3023 #
3024 am_try_resolutions=
3025 if test "$am_cv_sleep_fractional_seconds" = yes; then
3026 # Even a millisecond often causes a bunch of false positives,
3027 # so just try a hundredth of a second. The time saved between .001 and
3028 # .01 is not terribly consequential.
3029 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3030 fi
3031
3032 # In order to catch current-generation FAT out, we must *modify* files
3033 # that already exist; the *creation* timestamp is finer. Use names
3034 # that make ls -t sort them differently when they have equal
3035 # timestamps than when they have distinct timestamps, keeping
3036 # in mind that ls -t prints the *newest* file first.
3037 rm -f conftest.ts?
3038 : > conftest.ts1
3039 : > conftest.ts2
3040 : > conftest.ts3
3041
3042 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3043 # clobber the current shell's arguments. (Outer-level square brackets
3044 # are removed by m4; they're present so that m4 does not expand
3045 # <dollar><star>; be careful, easy to get confused.)
3046 if (
3047 set X `ls -t conftest.ts[12]` &&
3048 {
3049 test "$*" != "X conftest.ts1 conftest.ts2" ||
3050 test "$*" != "X conftest.ts2 conftest.ts1";
3051 }
3052 ); then :; else
3053 # If neither matched, then we have a broken ls. This can happen
3054 # if, for instance, CONFIG_SHELL is bash and it inherits a
3055 # broken ls alias from the environment. This has actually
3056 # happened. Such a system could not be considered "sane".
3057 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3058 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3059 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3060 as_fn_error $? "ls -t produces unexpected output.
3061 Make sure there is not a broken ls alias in your environment.
3062 See 'config.log' for more details" "$LINENO" 5; }
3063 fi
3064
3065 for am_try_res in $am_try_resolutions; do
3066 # Any one fine-grained sleep might happen to cross the boundary
3067 # between two values of a coarser actual resolution, but if we do
3068 # two fine-grained sleeps in a row, at least one of them will fall
3069 # entirely within a coarse interval.
3070 echo alpha > conftest.ts1
3071 sleep $am_try_res
3072 echo beta > conftest.ts2
3073 sleep $am_try_res
3074 echo gamma > conftest.ts3
3075
3076 # We assume that 'ls -t' will make use of high-resolution
3077 # timestamps if the operating system supports them at all.
3078 if (set X `ls -t conftest.ts?` &&
3079 test "$2" = conftest.ts3 &&
3080 test "$3" = conftest.ts2 &&
3081 test "$4" = conftest.ts1); then
3082 #
3083 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3084 # because we don't need to test make.
3085 make_ok=true
3086 if test $am_try_res != 1; then
3087 # But if we've succeeded so far with a subsecond resolution, we
3088 # have one more thing to check: make. It can happen that
3089 # everything else supports the subsecond mtimes, but make doesn't;
3090 # notably on macOS, which ships make 3.81 from 2006 (the last one
3091 # released under GPLv2). https://bugs.gnu.org/68808
3092 #
3093 # We test $MAKE if it is defined in the environment, else "make".
3094 # It might get overridden later, but our hope is that in practice
3095 # it does not matter: it is the system "make" which is (by far)
3096 # the most likely to be broken, whereas if the user overrides it,
3097 # probably they did so with a better, or at least not worse, make.
3098 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3099 #
3100 # Create a Makefile (real tab character here):
3101 rm -f conftest.mk
3102 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3103 echo ' touch conftest.ts2' >>conftest.mk
3104 #
3105 # Now, running
3106 # touch conftest.ts1; touch conftest.ts2; make
3107 # should touch ts1 because ts2 is newer. This could happen by luck,
3108 # but most often, it will fail if make's support is insufficient. So
3109 # test for several consecutive successes.
3110 #
3111 # (We reuse conftest.ts[12] because we still want to modify existing
3112 # files, not create new ones, per above.)
3113 n=0
3114 make=${MAKE-make}
3115 until test $n -eq 3; do
3116 echo one > conftest.ts1
3117 sleep $am_try_res
3118 echo two > conftest.ts2 # ts2 should now be newer than ts1
3119 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3120 make_ok=false
3121 break # out of $n loop
3122 fi
3123 n=`expr $n + 1`
3124 done
3125 fi
3126 #
3127 if $make_ok; then
3128 # Everything we know to check worked out, so call this resolution good.
3129 am_cv_filesystem_timestamp_resolution=$am_try_res
3130 break # out of $am_try_res loop
3131 fi
3132 # Otherwise, we'll go on to check the next resolution.
3133 fi
3134 done
3135 rm -f conftest.ts?
3136 # (end _am_filesystem_timestamp_resolution)
3137 ;;
3138 esac
3139 fi
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3141 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3142
3143 # This check should not be cached, as it may vary across builds of
3144 # different projects.
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3146 printf %s "checking whether build environment is sane... " >&6; }
3147 # Reject unsafe characters in $srcdir or the absolute working directory
3148 # name. Accept space and tab only in the latter.
3149 am_lf='
3150 '
3151 case `pwd` in
3152 *[\\\"\#\$\&\'\`$am_lf]*)
3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 printf "%s\n" "no" >&6; }
3155 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3156 esac
3157 case $srcdir in
3158 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 printf "%s\n" "no" >&6; }
3161 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3162 esac
3163
3164 # Do 'set' in a subshell so we don't clobber the current shell's
3165 # arguments. Must try -L first in case configure is actually a
3166 # symlink; some systems play weird games with the mod time of symlinks
3167 # (eg FreeBSD returns the mod time of the symlink's containing
3168 # directory).
3169 am_build_env_is_sane=no
3170 am_has_slept=no
3171 rm -f conftest.file
3172 for am_try in 1 2; do
3173 echo "timestamp, slept: $am_has_slept" > conftest.file
3174 if (
3175 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3176 if test "$*" = "X"; then
3177 # -L didn't work.
3178 set X `ls -t "$srcdir/configure" conftest.file`
3179 fi
3180 test "$2" = conftest.file
3181 ); then
3182 am_build_env_is_sane=yes
3183 break
3184 fi
3185 # Just in case.
3186 sleep "$am_cv_filesystem_timestamp_resolution"
3187 am_has_slept=yes
3188 done
3189
3190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3191 printf "%s\n" "$am_build_env_is_sane" >&6; }
3192 if test "$am_build_env_is_sane" = no; then
3193 as_fn_error $? "newly created file is older than distributed files!
3194 Check your system clock" "$LINENO" 5
3195 fi
3196
3197 # If we didn't sleep, we still need to ensure time stamps of config.status and
3198 # generated files are strictly newer.
3199 am_sleep_pid=
3200 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3201 then :
3202
3203 else case e in #(
3204 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3205 am_sleep_pid=$!
3206 ;;
3207 esac
3208 fi
3209
3210 rm -f conftest.file
3211
3212 test "$program_prefix" != NONE &&
3213 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3214 # Use a double $ so make ignores it.
3215 test "$program_suffix" != NONE &&
3216 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3217 # Double any \ or $.
3218 # By default was 's,x,x', remove it if useless.
3219 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3220 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3221
3222
3223 # Expand $ac_aux_dir to an absolute path.
3224 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3225
3226
3227 if test x"${MISSING+set}" != xset; then
3228 MISSING="\${SHELL} '$am_aux_dir/missing'"
3229 fi
3230 # Use eval to expand $SHELL
3231 if eval "$MISSING --is-lightweight"; then
3232 am_missing_run="$MISSING "
3233 else
3234 am_missing_run=
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3236 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3237 fi
3238
3239 if test x"${install_sh+set}" != xset; then
3240 case $am_aux_dir in
3241 *\ * | *\ *)
3242 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3243 *)
3244 install_sh="\${SHELL} $am_aux_dir/install-sh"
3245 esac
3246 fi
3247
3248 # Installed binaries are usually stripped using 'strip' when the user
3249 # run "make install-strip". However 'strip' might not be the right
3250 # tool to use in cross-compilation environments, therefore Automake
3251 # will honor the 'STRIP' environment variable to overrule this program.
3252 if test "$cross_compiling" != no; then
3253 if test -n "$ac_tool_prefix"; then
3254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3255 set dummy ${ac_tool_prefix}strip; ac_word=$2
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 printf %s "checking for $ac_word... " >&6; }
3258 if test ${ac_cv_prog_STRIP+y}
3259 then :
3260 printf %s "(cached) " >&6
3261 else case e in #(
3262 e) if test -n "$STRIP"; then
3263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 case $as_dir in #(((
3270 '') as_dir=./ ;;
3271 */) ;;
3272 *) as_dir=$as_dir/ ;;
3273 esac
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3276 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280 done
3281 done
3282 IFS=$as_save_IFS
3283
3284 fi ;;
3285 esac
3286 fi
3287 STRIP=$ac_cv_prog_STRIP
3288 if test -n "$STRIP"; then
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3290 printf "%s\n" "$STRIP" >&6; }
3291 else
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 printf "%s\n" "no" >&6; }
3294 fi
3295
3296
3297 fi
3298 if test -z "$ac_cv_prog_STRIP"; then
3299 ac_ct_STRIP=$STRIP
3300 # Extract the first word of "strip", so it can be a program name with args.
3301 set dummy strip; ac_word=$2
3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 printf %s "checking for $ac_word... " >&6; }
3304 if test ${ac_cv_prog_ac_ct_STRIP+y}
3305 then :
3306 printf %s "(cached) " >&6
3307 else case e in #(
3308 e) if test -n "$ac_ct_STRIP"; then
3309 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314 IFS=$as_save_IFS
3315 case $as_dir in #(((
3316 '') as_dir=./ ;;
3317 */) ;;
3318 *) as_dir=$as_dir/ ;;
3319 esac
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3322 ac_cv_prog_ac_ct_STRIP="strip"
3323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3324 break 2
3325 fi
3326 done
3327 done
3328 IFS=$as_save_IFS
3329
3330 fi ;;
3331 esac
3332 fi
3333 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3334 if test -n "$ac_ct_STRIP"; then
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3336 printf "%s\n" "$ac_ct_STRIP" >&6; }
3337 else
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 printf "%s\n" "no" >&6; }
3340 fi
3341
3342 if test "x$ac_ct_STRIP" = x; then
3343 STRIP=":"
3344 else
3345 case $cross_compiling:$ac_tool_warned in
3346 yes:)
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3348 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3349 ac_tool_warned=yes ;;
3350 esac
3351 STRIP=$ac_ct_STRIP
3352 fi
3353 else
3354 STRIP="$ac_cv_prog_STRIP"
3355 fi
3356
3357 fi
3358 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3359
3360
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3362 printf %s "checking for a race-free mkdir -p... " >&6; }
3363 if test -z "$MKDIR_P"; then
3364 if test ${ac_cv_path_mkdir+y}
3365 then :
3366 printf %s "(cached) " >&6
3367 else case e in #(
3368 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3370 do
3371 IFS=$as_save_IFS
3372 case $as_dir in #(((
3373 '') as_dir=./ ;;
3374 */) ;;
3375 *) as_dir=$as_dir/ ;;
3376 esac
3377 for ac_prog in mkdir gmkdir; do
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3380 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3381 'mkdir ('*'coreutils) '* | \
3382 *'BusyBox '* | \
3383 'mkdir (fileutils) '4.1*)
3384 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3385 break 3;;
3386 esac
3387 done
3388 done
3389 done
3390 IFS=$as_save_IFS
3391 ;;
3392 esac
3393 fi
3394
3395 test -d ./--version && rmdir ./--version
3396 if test ${ac_cv_path_mkdir+y}; then
3397 MKDIR_P="$ac_cv_path_mkdir -p"
3398 else
3399 # As a last resort, use plain mkdir -p,
3400 # in the hope it doesn't have the bugs of ancient mkdir.
3401 MKDIR_P='mkdir -p'
3402 fi
3403 fi
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3405 printf "%s\n" "$MKDIR_P" >&6; }
3406
3407 for ac_prog in gawk mawk nawk awk
3408 do
3409 # Extract the first word of "$ac_prog", so it can be a program name with args.
3410 set dummy $ac_prog; ac_word=$2
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 printf %s "checking for $ac_word... " >&6; }
3413 if test ${ac_cv_prog_AWK+y}
3414 then :
3415 printf %s "(cached) " >&6
3416 else case e in #(
3417 e) if test -n "$AWK"; then
3418 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423 IFS=$as_save_IFS
3424 case $as_dir in #(((
3425 '') as_dir=./ ;;
3426 */) ;;
3427 *) as_dir=$as_dir/ ;;
3428 esac
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3431 ac_cv_prog_AWK="$ac_prog"
3432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435 done
3436 done
3437 IFS=$as_save_IFS
3438
3439 fi ;;
3440 esac
3441 fi
3442 AWK=$ac_cv_prog_AWK
3443 if test -n "$AWK"; then
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3445 printf "%s\n" "$AWK" >&6; }
3446 else
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 printf "%s\n" "no" >&6; }
3449 fi
3450
3451
3452 test -n "$AWK" && break
3453 done
3454
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3456 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3457 set x ${MAKE-make}
3458 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3459 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3460 then :
3461 printf %s "(cached) " >&6
3462 else case e in #(
3463 e) cat >conftest.make <<\_ACEOF
3464 SHELL = /bin/sh
3465 all:
3466 @echo '@@@%%%=$(MAKE)=@@@%%%'
3467 _ACEOF
3468 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3469 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3470 *@@@%%%=?*=@@@%%%*)
3471 eval ac_cv_prog_make_${ac_make}_set=yes;;
3472 *)
3473 eval ac_cv_prog_make_${ac_make}_set=no;;
3474 esac
3475 rm -f conftest.make ;;
3476 esac
3477 fi
3478 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3480 printf "%s\n" "yes" >&6; }
3481 SET_MAKE=
3482 else
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 printf "%s\n" "no" >&6; }
3485 SET_MAKE="MAKE=${MAKE-make}"
3486 fi
3487
3488 rm -rf .tst 2>/dev/null
3489 mkdir .tst 2>/dev/null
3490 if test -d .tst; then
3491 am__leading_dot=.
3492 else
3493 am__leading_dot=_
3494 fi
3495 rmdir .tst 2>/dev/null
3496
3497 AM_DEFAULT_VERBOSITY=1
3498 # Check whether --enable-silent-rules was given.
3499 if test ${enable_silent_rules+y}
3500 then :
3501 enableval=$enable_silent_rules;
3502 fi
3503
3504 am_make=${MAKE-make}
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3506 printf %s "checking whether $am_make supports nested variables... " >&6; }
3507 if test ${am_cv_make_support_nested_variables+y}
3508 then :
3509 printf %s "(cached) " >&6
3510 else case e in #(
3511 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3512 BAR0=false
3513 BAR1=true
3514 V=1
3515 am__doit:
3516 @$(TRUE)
3517 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3518 am_cv_make_support_nested_variables=yes
3519 else
3520 am_cv_make_support_nested_variables=no
3521 fi ;;
3522 esac
3523 fi
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3525 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3526 AM_BACKSLASH='\'
3527
3528 am__rm_f_notfound=
3529 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3530 then :
3531
3532 else case e in #(
3533 e) am__rm_f_notfound='""' ;;
3534 esac
3535 fi
3536
3537
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3539 printf %s "checking xargs -n works... " >&6; }
3540 if test ${am_cv_xargs_n_works+y}
3541 then :
3542 printf %s "(cached) " >&6
3543 else case e in #(
3544 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3545 3"
3546 then :
3547 am_cv_xargs_n_works=yes
3548 else case e in #(
3549 e) am_cv_xargs_n_works=no ;;
3550 esac
3551 fi ;;
3552 esac
3553 fi
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3555 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3556 if test "$am_cv_xargs_n_works" = yes
3557 then :
3558 am__xargs_n='xargs -n'
3559 else case e in #(
3560 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3561 ;;
3562 esac
3563 fi
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574 DEPDIR="${am__leading_dot}deps"
3575
3576 ac_config_commands="$ac_config_commands depfiles"
3577
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3579 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3580 cat > confinc.mk << 'END'
3581 am__doit:
3582 @echo this is the am__doit target >confinc.out
3583 .PHONY: am__doit
3584 END
3585 am__include="#"
3586 am__quote=
3587 # BSD make does it like this.
3588 echo '.include "confinc.mk" # ignored' > confmf.BSD
3589 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3590 echo 'include confinc.mk # ignored' > confmf.GNU
3591 _am_result=no
3592 for s in GNU BSD; do
3593 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3594 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }
3598 case $?:`cat confinc.out 2>/dev/null` in #(
3599 '0:this is the am__doit target') :
3600 case $s in #(
3601 BSD) :
3602 am__include='.include' am__quote='"' ;; #(
3603 *) :
3604 am__include='include' am__quote='' ;;
3605 esac ;; #(
3606 *) :
3607 ;;
3608 esac
3609 if test "$am__include" != "#"; then
3610 _am_result="yes ($s style)"
3611 break
3612 fi
3613 done
3614 rm -f confinc.* confmf.*
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3616 printf "%s\n" "${_am_result}" >&6; }
3617
3618 # Check whether --enable-dependency-tracking was given.
3619 if test ${enable_dependency_tracking+y}
3620 then :
3621 enableval=$enable_dependency_tracking;
3622 fi
3623
3624 if test "x$enable_dependency_tracking" != xno; then
3625 am_depcomp="$ac_aux_dir/depcomp"
3626 AMDEPBACKSLASH='\'
3627 am__nodep='_no'
3628 fi
3629 if test "x$enable_dependency_tracking" != xno; then
3630 AMDEP_TRUE=
3631 AMDEP_FALSE='#'
3632 else
3633 AMDEP_TRUE='#'
3634 AMDEP_FALSE=
3635 fi
3636
3637
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 printf %s "checking for $ac_word... " >&6; }
3648 if test ${ac_cv_prog_CC+y}
3649 then :
3650 printf %s "(cached) " >&6
3651 else case e in #(
3652 e) if test -n "$CC"; then
3653 ac_cv_prog_CC="$CC" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3657 do
3658 IFS=$as_save_IFS
3659 case $as_dir in #(((
3660 '') as_dir=./ ;;
3661 */) ;;
3662 *) as_dir=$as_dir/ ;;
3663 esac
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670 done
3671 done
3672 IFS=$as_save_IFS
3673
3674 fi ;;
3675 esac
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 printf "%s\n" "$CC" >&6; }
3681 else
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 printf "%s\n" "no" >&6; }
3684 fi
3685
3686
3687 fi
3688 if test -z "$ac_cv_prog_CC"; then
3689 ac_ct_CC=$CC
3690 # Extract the first word of "gcc", so it can be a program name with args.
3691 set dummy gcc; ac_word=$2
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 printf %s "checking for $ac_word... " >&6; }
3694 if test ${ac_cv_prog_ac_ct_CC+y}
3695 then :
3696 printf %s "(cached) " >&6
3697 else case e in #(
3698 e) if test -n "$ac_ct_CC"; then
3699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704 IFS=$as_save_IFS
3705 case $as_dir in #(((
3706 '') as_dir=./ ;;
3707 */) ;;
3708 *) as_dir=$as_dir/ ;;
3709 esac
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_ac_ct_CC="gcc"
3713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716 done
3717 done
3718 IFS=$as_save_IFS
3719
3720 fi ;;
3721 esac
3722 fi
3723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3724 if test -n "$ac_ct_CC"; then
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3726 printf "%s\n" "$ac_ct_CC" >&6; }
3727 else
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 printf "%s\n" "no" >&6; }
3730 fi
3731
3732 if test "x$ac_ct_CC" = x; then
3733 CC=""
3734 else
3735 case $cross_compiling:$ac_tool_warned in
3736 yes:)
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3738 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3739 ac_tool_warned=yes ;;
3740 esac
3741 CC=$ac_ct_CC
3742 fi
3743 else
3744 CC="$ac_cv_prog_CC"
3745 fi
3746
3747 if test -z "$CC"; then
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3750 set dummy ${ac_tool_prefix}cc; ac_word=$2
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 printf %s "checking for $ac_word... " >&6; }
3753 if test ${ac_cv_prog_CC+y}
3754 then :
3755 printf %s "(cached) " >&6
3756 else case e in #(
3757 e) if test -n "$CC"; then
3758 ac_cv_prog_CC="$CC" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763 IFS=$as_save_IFS
3764 case $as_dir in #(((
3765 '') as_dir=./ ;;
3766 */) ;;
3767 *) as_dir=$as_dir/ ;;
3768 esac
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3771 ac_cv_prog_CC="${ac_tool_prefix}cc"
3772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775 done
3776 done
3777 IFS=$as_save_IFS
3778
3779 fi ;;
3780 esac
3781 fi
3782 CC=$ac_cv_prog_CC
3783 if test -n "$CC"; then
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3785 printf "%s\n" "$CC" >&6; }
3786 else
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 printf "%s\n" "no" >&6; }
3789 fi
3790
3791
3792 fi
3793 fi
3794 if test -z "$CC"; then
3795 # Extract the first word of "cc", so it can be a program name with args.
3796 set dummy cc; ac_word=$2
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 printf %s "checking for $ac_word... " >&6; }
3799 if test ${ac_cv_prog_CC+y}
3800 then :
3801 printf %s "(cached) " >&6
3802 else case e in #(
3803 e) if test -n "$CC"; then
3804 ac_cv_prog_CC="$CC" # Let the user override the test.
3805 else
3806 ac_prog_rejected=no
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810 IFS=$as_save_IFS
3811 case $as_dir in #(((
3812 '') as_dir=./ ;;
3813 */) ;;
3814 *) as_dir=$as_dir/ ;;
3815 esac
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3818 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3819 ac_prog_rejected=yes
3820 continue
3821 fi
3822 ac_cv_prog_CC="cc"
3823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3824 break 2
3825 fi
3826 done
3827 done
3828 IFS=$as_save_IFS
3829
3830 if test $ac_prog_rejected = yes; then
3831 # We found a bogon in the path, so make sure we never use it.
3832 set dummy $ac_cv_prog_CC
3833 shift
3834 if test $# != 0; then
3835 # We chose a different compiler from the bogus one.
3836 # However, it has the same basename, so the bogon will be chosen
3837 # first if we set CC to just the basename; use the full file name.
3838 shift
3839 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3840 fi
3841 fi
3842 fi ;;
3843 esac
3844 fi
3845 CC=$ac_cv_prog_CC
3846 if test -n "$CC"; then
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3848 printf "%s\n" "$CC" >&6; }
3849 else
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 printf "%s\n" "no" >&6; }
3852 fi
3853
3854
3855 fi
3856 if test -z "$CC"; then
3857 if test -n "$ac_tool_prefix"; then
3858 for ac_prog in cl.exe
3859 do
3860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 printf %s "checking for $ac_word... " >&6; }
3864 if test ${ac_cv_prog_CC+y}
3865 then :
3866 printf %s "(cached) " >&6
3867 else case e in #(
3868 e) if test -n "$CC"; then
3869 ac_cv_prog_CC="$CC" # Let the user override the test.
3870 else
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874 IFS=$as_save_IFS
3875 case $as_dir in #(((
3876 '') as_dir=./ ;;
3877 */) ;;
3878 *) as_dir=$as_dir/ ;;
3879 esac
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886 done
3887 done
3888 IFS=$as_save_IFS
3889
3890 fi ;;
3891 esac
3892 fi
3893 CC=$ac_cv_prog_CC
3894 if test -n "$CC"; then
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3896 printf "%s\n" "$CC" >&6; }
3897 else
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 printf "%s\n" "no" >&6; }
3900 fi
3901
3902
3903 test -n "$CC" && break
3904 done
3905 fi
3906 if test -z "$CC"; then
3907 ac_ct_CC=$CC
3908 for ac_prog in cl.exe
3909 do
3910 # Extract the first word of "$ac_prog", so it can be a program name with args.
3911 set dummy $ac_prog; ac_word=$2
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 printf %s "checking for $ac_word... " >&6; }
3914 if test ${ac_cv_prog_ac_ct_CC+y}
3915 then :
3916 printf %s "(cached) " >&6
3917 else case e in #(
3918 e) if test -n "$ac_ct_CC"; then
3919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924 IFS=$as_save_IFS
3925 case $as_dir in #(((
3926 '') as_dir=./ ;;
3927 */) ;;
3928 *) as_dir=$as_dir/ ;;
3929 esac
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_ac_ct_CC="$ac_prog"
3933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3934 break 2
3935 fi
3936 done
3937 done
3938 IFS=$as_save_IFS
3939
3940 fi ;;
3941 esac
3942 fi
3943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3944 if test -n "$ac_ct_CC"; then
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3946 printf "%s\n" "$ac_ct_CC" >&6; }
3947 else
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 printf "%s\n" "no" >&6; }
3950 fi
3951
3952
3953 test -n "$ac_ct_CC" && break
3954 done
3955
3956 if test "x$ac_ct_CC" = x; then
3957 CC=""
3958 else
3959 case $cross_compiling:$ac_tool_warned in
3960 yes:)
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3962 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3963 ac_tool_warned=yes ;;
3964 esac
3965 CC=$ac_ct_CC
3966 fi
3967 fi
3968
3969 fi
3970 if test -z "$CC"; then
3971 if test -n "$ac_tool_prefix"; then
3972 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3973 set dummy ${ac_tool_prefix}clang; ac_word=$2
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 printf %s "checking for $ac_word... " >&6; }
3976 if test ${ac_cv_prog_CC+y}
3977 then :
3978 printf %s "(cached) " >&6
3979 else case e in #(
3980 e) if test -n "$CC"; then
3981 ac_cv_prog_CC="$CC" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3985 do
3986 IFS=$as_save_IFS
3987 case $as_dir in #(((
3988 '') as_dir=./ ;;
3989 */) ;;
3990 *) as_dir=$as_dir/ ;;
3991 esac
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3994 ac_cv_prog_CC="${ac_tool_prefix}clang"
3995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3996 break 2
3997 fi
3998 done
3999 done
4000 IFS=$as_save_IFS
4001
4002 fi ;;
4003 esac
4004 fi
4005 CC=$ac_cv_prog_CC
4006 if test -n "$CC"; then
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4008 printf "%s\n" "$CC" >&6; }
4009 else
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 printf "%s\n" "no" >&6; }
4012 fi
4013
4014
4015 fi
4016 if test -z "$ac_cv_prog_CC"; then
4017 ac_ct_CC=$CC
4018 # Extract the first word of "clang", so it can be a program name with args.
4019 set dummy clang; ac_word=$2
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 printf %s "checking for $ac_word... " >&6; }
4022 if test ${ac_cv_prog_ac_ct_CC+y}
4023 then :
4024 printf %s "(cached) " >&6
4025 else case e in #(
4026 e) if test -n "$ac_ct_CC"; then
4027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032 IFS=$as_save_IFS
4033 case $as_dir in #(((
4034 '') as_dir=./ ;;
4035 */) ;;
4036 *) as_dir=$as_dir/ ;;
4037 esac
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_ac_ct_CC="clang"
4041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044 done
4045 done
4046 IFS=$as_save_IFS
4047
4048 fi ;;
4049 esac
4050 fi
4051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4052 if test -n "$ac_ct_CC"; then
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4054 printf "%s\n" "$ac_ct_CC" >&6; }
4055 else
4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 printf "%s\n" "no" >&6; }
4058 fi
4059
4060 if test "x$ac_ct_CC" = x; then
4061 CC=""
4062 else
4063 case $cross_compiling:$ac_tool_warned in
4064 yes:)
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4066 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4067 ac_tool_warned=yes ;;
4068 esac
4069 CC=$ac_ct_CC
4070 fi
4071 else
4072 CC="$ac_cv_prog_CC"
4073 fi
4074
4075 fi
4076
4077
4078 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4079 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4080 as_fn_error $? "no acceptable C compiler found in \$PATH
4081 See 'config.log' for more details" "$LINENO" 5; }
4082
4083 # Provide some information about the compiler.
4084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4085 set X $ac_compile
4086 ac_compiler=$2
4087 for ac_option in --version -v -V -qversion -version; do
4088 { { ac_try="$ac_compiler $ac_option >&5"
4089 case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092 esac
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 printf "%s\n" "$ac_try_echo"; } >&5
4095 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4096 ac_status=$?
4097 if test -s conftest.err; then
4098 sed '10a\
4099 ... rest of stderr output deleted ...
4100 10q' conftest.err >conftest.er1
4101 cat conftest.er1 >&5
4102 fi
4103 rm -f conftest.er1 conftest.err
4104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }
4106 done
4107
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110
4111 int
4112 main (void)
4113 {
4114
4115 ;
4116 return 0;
4117 }
4118 _ACEOF
4119 ac_clean_files_save=$ac_clean_files
4120 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4121 # Try to create an executable without -o first, disregard a.out.
4122 # It will help us diagnose broken compilers, and finding out an intuition
4123 # of exeext.
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4125 printf %s "checking whether the C compiler works... " >&6; }
4126 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4127
4128 # The possible output files:
4129 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4130
4131 ac_rmfiles=
4132 for ac_file in $ac_files
4133 do
4134 case $ac_file in
4135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4136 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4137 esac
4138 done
4139 rm -f $ac_rmfiles
4140
4141 if { { ac_try="$ac_link_default"
4142 case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147 printf "%s\n" "$ac_try_echo"; } >&5
4148 (eval "$ac_link_default") 2>&5
4149 ac_status=$?
4150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151 test $ac_status = 0; }
4152 then :
4153 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4154 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4156 # so that the user can short-circuit this test for compilers unknown to
4157 # Autoconf.
4158 for ac_file in $ac_files ''
4159 do
4160 test -f "$ac_file" || continue
4161 case $ac_file in
4162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4163 ;;
4164 [ab].out )
4165 # We found the default executable, but exeext='' is most
4166 # certainly right.
4167 break;;
4168 *.* )
4169 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4170 then :; else
4171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4172 fi
4173 # We set ac_cv_exeext here because the later test for it is not
4174 # safe: cross compilers may not add the suffix if given an '-o'
4175 # argument, so we may need to know it at that point already.
4176 # Even if this section looks crufty: it has the advantage of
4177 # actually working.
4178 break;;
4179 * )
4180 break;;
4181 esac
4182 done
4183 test "$ac_cv_exeext" = no && ac_cv_exeext=
4184
4185 else case e in #(
4186 e) ac_file='' ;;
4187 esac
4188 fi
4189 if test -z "$ac_file"
4190 then :
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 printf "%s\n" "no" >&6; }
4193 printf "%s\n" "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4195
4196 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4197 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4198 as_fn_error 77 "C compiler cannot create executables
4199 See 'config.log' for more details" "$LINENO" 5; }
4200 else case e in #(
4201 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4202 printf "%s\n" "yes" >&6; } ;;
4203 esac
4204 fi
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4206 printf %s "checking for C compiler default output file name... " >&6; }
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4208 printf "%s\n" "$ac_file" >&6; }
4209 ac_exeext=$ac_cv_exeext
4210
4211 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4212 ac_clean_files=$ac_clean_files_save
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4214 printf %s "checking for suffix of executables... " >&6; }
4215 if { { ac_try="$ac_link"
4216 case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219 esac
4220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4221 printf "%s\n" "$ac_try_echo"; } >&5
4222 (eval "$ac_link") 2>&5
4223 ac_status=$?
4224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4225 test $ac_status = 0; }
4226 then :
4227 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4228 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4229 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4230 # 'rm'.
4231 for ac_file in conftest.exe conftest conftest.*; do
4232 test -f "$ac_file" || continue
4233 case $ac_file in
4234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4235 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4236 break;;
4237 * ) break;;
4238 esac
4239 done
4240 else case e in #(
4241 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4242 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4243 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4244 See 'config.log' for more details" "$LINENO" 5; } ;;
4245 esac
4246 fi
4247 rm -f conftest conftest$ac_cv_exeext
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4249 printf "%s\n" "$ac_cv_exeext" >&6; }
4250
4251 rm -f conftest.$ac_ext
4252 EXEEXT=$ac_cv_exeext
4253 ac_exeext=$EXEEXT
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #include <stdio.h>
4257 int
4258 main (void)
4259 {
4260 FILE *f = fopen ("conftest.out", "w");
4261 if (!f)
4262 return 1;
4263 return ferror (f) || fclose (f) != 0;
4264
4265 ;
4266 return 0;
4267 }
4268 _ACEOF
4269 ac_clean_files="$ac_clean_files conftest.out"
4270 # Check that the compiler produces executables we can run. If not, either
4271 # the compiler is broken, or we cross compile.
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4273 printf %s "checking whether we are cross compiling... " >&6; }
4274 if test "$cross_compiling" != yes; then
4275 { { ac_try="$ac_link"
4276 case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 printf "%s\n" "$ac_try_echo"; } >&5
4282 (eval "$ac_link") 2>&5
4283 ac_status=$?
4284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; }
4286 if { ac_try='./conftest$ac_cv_exeext'
4287 { { case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290 esac
4291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4292 printf "%s\n" "$ac_try_echo"; } >&5
4293 (eval "$ac_try") 2>&5
4294 ac_status=$?
4295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; }; }; then
4297 cross_compiling=no
4298 else
4299 if test "$cross_compiling" = maybe; then
4300 cross_compiling=yes
4301 else
4302 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4303 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4304 as_fn_error 77 "cannot run C compiled programs.
4305 If you meant to cross compile, use '--host'.
4306 See 'config.log' for more details" "$LINENO" 5; }
4307 fi
4308 fi
4309 fi
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4311 printf "%s\n" "$cross_compiling" >&6; }
4312
4313 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4314 conftest.o conftest.obj conftest.out
4315 ac_clean_files=$ac_clean_files_save
4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4317 printf %s "checking for suffix of object files... " >&6; }
4318 if test ${ac_cv_objext+y}
4319 then :
4320 printf %s "(cached) " >&6
4321 else case e in #(
4322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324
4325 int
4326 main (void)
4327 {
4328
4329 ;
4330 return 0;
4331 }
4332 _ACEOF
4333 rm -f conftest.o conftest.obj
4334 if { { ac_try="$ac_compile"
4335 case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 printf "%s\n" "$ac_try_echo"; } >&5
4341 (eval "$ac_compile") 2>&5
4342 ac_status=$?
4343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; }
4345 then :
4346 for ac_file in conftest.o conftest.obj conftest.*; do
4347 test -f "$ac_file" || continue;
4348 case $ac_file in
4349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4350 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4351 break;;
4352 esac
4353 done
4354 else case e in #(
4355 e) printf "%s\n" "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4359 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4360 as_fn_error $? "cannot compute suffix of object files: cannot compile
4361 See 'config.log' for more details" "$LINENO" 5; } ;;
4362 esac
4363 fi
4364 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4365 esac
4366 fi
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4368 printf "%s\n" "$ac_cv_objext" >&6; }
4369 OBJEXT=$ac_cv_objext
4370 ac_objext=$OBJEXT
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4372 printf %s "checking whether the compiler supports GNU C... " >&6; }
4373 if test ${ac_cv_c_compiler_gnu+y}
4374 then :
4375 printf %s "(cached) " >&6
4376 else case e in #(
4377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4379
4380 int
4381 main (void)
4382 {
4383 #ifndef __GNUC__
4384 choke me
4385 #endif
4386
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"
4392 then :
4393 ac_compiler_gnu=yes
4394 else case e in #(
4395 e) ac_compiler_gnu=no ;;
4396 esac
4397 fi
4398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4400 ;;
4401 esac
4402 fi
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4404 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406
4407 if test $ac_compiler_gnu = yes; then
4408 GCC=yes
4409 else
4410 GCC=
4411 fi
4412 ac_test_CFLAGS=${CFLAGS+y}
4413 ac_save_CFLAGS=$CFLAGS
4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4415 printf %s "checking whether $CC accepts -g... " >&6; }
4416 if test ${ac_cv_prog_cc_g+y}
4417 then :
4418 printf %s "(cached) " >&6
4419 else case e in #(
4420 e) ac_save_c_werror_flag=$ac_c_werror_flag
4421 ac_c_werror_flag=yes
4422 ac_cv_prog_cc_g=no
4423 CFLAGS="-g"
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426
4427 int
4428 main (void)
4429 {
4430
4431 ;
4432 return 0;
4433 }
4434 _ACEOF
4435 if ac_fn_c_try_compile "$LINENO"
4436 then :
4437 ac_cv_prog_cc_g=yes
4438 else case e in #(
4439 e) CFLAGS=""
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442
4443 int
4444 main (void)
4445 {
4446
4447 ;
4448 return 0;
4449 }
4450 _ACEOF
4451 if ac_fn_c_try_compile "$LINENO"
4452 then :
4453
4454 else case e in #(
4455 e) ac_c_werror_flag=$ac_save_c_werror_flag
4456 CFLAGS="-g"
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459
4460 int
4461 main (void)
4462 {
4463
4464 ;
4465 return 0;
4466 }
4467 _ACEOF
4468 if ac_fn_c_try_compile "$LINENO"
4469 then :
4470 ac_cv_prog_cc_g=yes
4471 fi
4472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4473 esac
4474 fi
4475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4476 esac
4477 fi
4478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4479 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4480 esac
4481 fi
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4483 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4484 if test $ac_test_CFLAGS; then
4485 CFLAGS=$ac_save_CFLAGS
4486 elif test $ac_cv_prog_cc_g = yes; then
4487 if test "$GCC" = yes; then
4488 CFLAGS="-g -O2"
4489 else
4490 CFLAGS="-g"
4491 fi
4492 else
4493 if test "$GCC" = yes; then
4494 CFLAGS="-O2"
4495 else
4496 CFLAGS=
4497 fi
4498 fi
4499 ac_prog_cc_stdc=no
4500 if test x$ac_prog_cc_stdc = xno
4501 then :
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4503 printf %s "checking for $CC option to enable C11 features... " >&6; }
4504 if test ${ac_cv_prog_cc_c11+y}
4505 then :
4506 printf %s "(cached) " >&6
4507 else case e in #(
4508 e) ac_cv_prog_cc_c11=no
4509 ac_save_CC=$CC
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4512 $ac_c_conftest_c11_program
4513 _ACEOF
4514 for ac_arg in '' -std=gnu11
4515 do
4516 CC="$ac_save_CC $ac_arg"
4517 if ac_fn_c_try_compile "$LINENO"
4518 then :
4519 ac_cv_prog_cc_c11=$ac_arg
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext conftest.beam
4522 test "x$ac_cv_prog_cc_c11" != "xno" && break
4523 done
4524 rm -f conftest.$ac_ext
4525 CC=$ac_save_CC ;;
4526 esac
4527 fi
4528
4529 if test "x$ac_cv_prog_cc_c11" = xno
4530 then :
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4532 printf "%s\n" "unsupported" >&6; }
4533 else case e in #(
4534 e) if test "x$ac_cv_prog_cc_c11" = x
4535 then :
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4537 printf "%s\n" "none needed" >&6; }
4538 else case e in #(
4539 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4540 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4541 CC="$CC $ac_cv_prog_cc_c11" ;;
4542 esac
4543 fi
4544 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4545 ac_prog_cc_stdc=c11 ;;
4546 esac
4547 fi
4548 fi
4549 if test x$ac_prog_cc_stdc = xno
4550 then :
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4552 printf %s "checking for $CC option to enable C99 features... " >&6; }
4553 if test ${ac_cv_prog_cc_c99+y}
4554 then :
4555 printf %s "(cached) " >&6
4556 else case e in #(
4557 e) ac_cv_prog_cc_c99=no
4558 ac_save_CC=$CC
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561 $ac_c_conftest_c99_program
4562 _ACEOF
4563 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4564 do
4565 CC="$ac_save_CC $ac_arg"
4566 if ac_fn_c_try_compile "$LINENO"
4567 then :
4568 ac_cv_prog_cc_c99=$ac_arg
4569 fi
4570 rm -f core conftest.err conftest.$ac_objext conftest.beam
4571 test "x$ac_cv_prog_cc_c99" != "xno" && break
4572 done
4573 rm -f conftest.$ac_ext
4574 CC=$ac_save_CC ;;
4575 esac
4576 fi
4577
4578 if test "x$ac_cv_prog_cc_c99" = xno
4579 then :
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4581 printf "%s\n" "unsupported" >&6; }
4582 else case e in #(
4583 e) if test "x$ac_cv_prog_cc_c99" = x
4584 then :
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4586 printf "%s\n" "none needed" >&6; }
4587 else case e in #(
4588 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4589 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4590 CC="$CC $ac_cv_prog_cc_c99" ;;
4591 esac
4592 fi
4593 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4594 ac_prog_cc_stdc=c99 ;;
4595 esac
4596 fi
4597 fi
4598 if test x$ac_prog_cc_stdc = xno
4599 then :
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4601 printf %s "checking for $CC option to enable C89 features... " >&6; }
4602 if test ${ac_cv_prog_cc_c89+y}
4603 then :
4604 printf %s "(cached) " >&6
4605 else case e in #(
4606 e) ac_cv_prog_cc_c89=no
4607 ac_save_CC=$CC
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4610 $ac_c_conftest_c89_program
4611 _ACEOF
4612 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4613 do
4614 CC="$ac_save_CC $ac_arg"
4615 if ac_fn_c_try_compile "$LINENO"
4616 then :
4617 ac_cv_prog_cc_c89=$ac_arg
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.beam
4620 test "x$ac_cv_prog_cc_c89" != "xno" && break
4621 done
4622 rm -f conftest.$ac_ext
4623 CC=$ac_save_CC ;;
4624 esac
4625 fi
4626
4627 if test "x$ac_cv_prog_cc_c89" = xno
4628 then :
4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4630 printf "%s\n" "unsupported" >&6; }
4631 else case e in #(
4632 e) if test "x$ac_cv_prog_cc_c89" = x
4633 then :
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4635 printf "%s\n" "none needed" >&6; }
4636 else case e in #(
4637 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4638 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4639 CC="$CC $ac_cv_prog_cc_c89" ;;
4640 esac
4641 fi
4642 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4643 ac_prog_cc_stdc=c89 ;;
4644 esac
4645 fi
4646 fi
4647
4648 ac_ext=c
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653
4654
4655 ac_ext=c
4656 ac_cpp='$CPP $CPPFLAGS'
4657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4661 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4662 if test ${am_cv_prog_cc_c_o+y}
4663 then :
4664 printf %s "(cached) " >&6
4665 else case e in #(
4666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668
4669 int
4670 main (void)
4671 {
4672
4673 ;
4674 return 0;
4675 }
4676 _ACEOF
4677 # Make sure it works both with $CC and with simple cc.
4678 # Following AC_PROG_CC_C_O, we do the test twice because some
4679 # compilers refuse to overwrite an existing .o file with -o,
4680 # though they will create one.
4681 am_cv_prog_cc_c_o=yes
4682 for am_i in 1 2; do
4683 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4684 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } \
4688 && test -f conftest2.$ac_objext; then
4689 : OK
4690 else
4691 am_cv_prog_cc_c_o=no
4692 break
4693 fi
4694 done
4695 # aligned with autoconf, so not including core; see bug#72225.
4696 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4697 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4698 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4699 unset am_i ;;
4700 esac
4701 fi
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4703 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4704 if test "$am_cv_prog_cc_c_o" != yes; then
4705 # Losing compiler, so override with the script.
4706 # FIXME: It is wrong to rewrite CC.
4707 # But if we don't then we get into trouble of one sort or another.
4708 # A longer-term fix would be to have automake use am__CC in this case,
4709 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4710 CC="$am_aux_dir/compile $CC"
4711 fi
4712 ac_ext=c
4713 ac_cpp='$CPP $CPPFLAGS'
4714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4717
4718
4719 depcc="$CC" am_compiler_list=
4720
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4722 printf %s "checking dependency style of $depcc... " >&6; }
4723 if test ${am_cv_CC_dependencies_compiler_type+y}
4724 then :
4725 printf %s "(cached) " >&6
4726 else case e in #(
4727 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4728 # We make a subdir and do the tests there. Otherwise we can end up
4729 # making bogus files that we don't know about and never remove. For
4730 # instance it was reported that on HP-UX the gcc test will end up
4731 # making a dummy file named 'D' -- because '-MD' means "put the output
4732 # in D".
4733 rm -rf conftest.dir
4734 mkdir conftest.dir
4735 # Copy depcomp to subdir because otherwise we won't find it if we're
4736 # using a relative directory.
4737 cp "$am_depcomp" conftest.dir
4738 cd conftest.dir
4739 # We will build objects and dependencies in a subdirectory because
4740 # it helps to detect inapplicable dependency modes. For instance
4741 # both Tru64's cc and ICC support -MD to output dependencies as a
4742 # side effect of compilation, but ICC will put the dependencies in
4743 # the current directory while Tru64 will put them in the object
4744 # directory.
4745 mkdir sub
4746
4747 am_cv_CC_dependencies_compiler_type=none
4748 if test "$am_compiler_list" = ""; then
4749 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4750 fi
4751 am__universal=false
4752 case " $depcc " in #(
4753 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4754 esac
4755
4756 for depmode in $am_compiler_list; do
4757 # Setup a source with many dependencies, because some compilers
4758 # like to wrap large dependency lists on column 80 (with \), and
4759 # we should not choose a depcomp mode which is confused by this.
4760 #
4761 # We need to recreate these files for each test, as the compiler may
4762 # overwrite some of them when testing with obscure command lines.
4763 # This happens at least with the AIX C compiler.
4764 : > sub/conftest.c
4765 for i in 1 2 3 4 5 6; do
4766 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4767 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4768 # Solaris 10 /bin/sh.
4769 echo '/* dummy */' > sub/conftst$i.h
4770 done
4771 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4772
4773 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4774 # mode. It turns out that the SunPro C++ compiler does not properly
4775 # handle '-M -o', and we need to detect this. Also, some Intel
4776 # versions had trouble with output in subdirs.
4777 am__obj=sub/conftest.${OBJEXT-o}
4778 am__minus_obj="-o $am__obj"
4779 case $depmode in
4780 gcc)
4781 # This depmode causes a compiler race in universal mode.
4782 test "$am__universal" = false || continue
4783 ;;
4784 nosideeffect)
4785 # After this tag, mechanisms are not by side-effect, so they'll
4786 # only be used when explicitly requested.
4787 if test "x$enable_dependency_tracking" = xyes; then
4788 continue
4789 else
4790 break
4791 fi
4792 ;;
4793 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4794 # This compiler won't grok '-c -o', but also, the minuso test has
4795 # not run yet. These depmodes are late enough in the game, and
4796 # so weak that their functioning should not be impacted.
4797 am__obj=conftest.${OBJEXT-o}
4798 am__minus_obj=
4799 ;;
4800 none) break ;;
4801 esac
4802 if depmode=$depmode \
4803 source=sub/conftest.c object=$am__obj \
4804 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4805 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4806 >/dev/null 2>conftest.err &&
4807 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4808 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4809 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4810 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4811 # icc doesn't choke on unknown options, it will just issue warnings
4812 # or remarks (even with -Werror). So we grep stderr for any message
4813 # that says an option was ignored or not supported.
4814 # When given -MP, icc 7.0 and 7.1 complain thus:
4815 # icc: Command line warning: ignoring option '-M'; no argument required
4816 # The diagnosis changed in icc 8.0:
4817 # icc: Command line remark: option '-MP' not supported
4818 if (grep 'ignoring option' conftest.err ||
4819 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4820 am_cv_CC_dependencies_compiler_type=$depmode
4821 break
4822 fi
4823 fi
4824 done
4825
4826 cd ..
4827 rm -rf conftest.dir
4828 else
4829 am_cv_CC_dependencies_compiler_type=none
4830 fi
4831 ;;
4832 esac
4833 fi
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4835 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4836 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4837
4838 if
4839 test "x$enable_dependency_tracking" != xno \
4840 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4841 am__fastdepCC_TRUE=
4842 am__fastdepCC_FALSE='#'
4843 else
4844 am__fastdepCC_TRUE='#'
4845 am__fastdepCC_FALSE=
4846 fi
4847
4848
4849
4850 ac_header= ac_cache=
4851 for ac_item in $ac_header_c_list
4852 do
4853 if test $ac_cache; then
4854 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4855 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4856 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4857 fi
4858 ac_header= ac_cache=
4859 elif test $ac_header; then
4860 ac_cache=$ac_item
4861 else
4862 ac_header=$ac_item
4863 fi
4864 done
4865
4866
4867
4868
4869
4870
4871
4872
4873 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4874 then :
4875
4876 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4877
4878 fi
4879
4880
4881
4882
4883
4884
4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4886 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4887 if test ${ac_cv_safe_to_define___extensions__+y}
4888 then :
4889 printf %s "(cached) " >&6
4890 else case e in #(
4891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893
4894 # define __EXTENSIONS__ 1
4895 $ac_includes_default
4896 int
4897 main (void)
4898 {
4899
4900 ;
4901 return 0;
4902 }
4903 _ACEOF
4904 if ac_fn_c_try_compile "$LINENO"
4905 then :
4906 ac_cv_safe_to_define___extensions__=yes
4907 else case e in #(
4908 e) ac_cv_safe_to_define___extensions__=no ;;
4909 esac
4910 fi
4911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4912 esac
4913 fi
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4915 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4916
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4918 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4919 if test ${ac_cv_should_define__xopen_source+y}
4920 then :
4921 printf %s "(cached) " >&6
4922 else case e in #(
4923 e) ac_cv_should_define__xopen_source=no
4924 if test $ac_cv_header_wchar_h = yes
4925 then :
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928
4929 #include <wchar.h>
4930 mbstate_t x;
4931 int
4932 main (void)
4933 {
4934
4935 ;
4936 return 0;
4937 }
4938 _ACEOF
4939 if ac_fn_c_try_compile "$LINENO"
4940 then :
4941
4942 else case e in #(
4943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945
4946 #define _XOPEN_SOURCE 500
4947 #include <wchar.h>
4948 mbstate_t x;
4949 int
4950 main (void)
4951 {
4952
4953 ;
4954 return 0;
4955 }
4956 _ACEOF
4957 if ac_fn_c_try_compile "$LINENO"
4958 then :
4959 ac_cv_should_define__xopen_source=yes
4960 fi
4961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4962 esac
4963 fi
4964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4965 fi ;;
4966 esac
4967 fi
4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4969 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4970
4971 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4972
4973 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4974
4975 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4976
4977 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4978
4979 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4980
4981 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4982
4983 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4984
4985 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4986
4987 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4988
4989 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4990
4991 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4992
4993 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4994
4995 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4996
4997 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4998
4999 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5000
5001 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5002
5003 if test $ac_cv_header_minix_config_h = yes
5004 then :
5005 MINIX=yes
5006 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5007
5008 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5009
5010 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5011
5012 else case e in #(
5013 e) MINIX= ;;
5014 esac
5015 fi
5016 if test $ac_cv_safe_to_define___extensions__ = yes
5017 then :
5018 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5019
5020 fi
5021 if test $ac_cv_should_define__xopen_source = yes
5022 then :
5023 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5024
5025 fi
5026
5027 # Check whether --enable-compiler-warnings was given.
5028 if test ${enable_compiler_warnings+y}
5029 then :
5030 enableval=$enable_compiler_warnings;
5031 fi
5032 case $enable_compiler_warnings in #(
5033 no | min | yes | max | all) :
5034 ;; #(
5035 *) :
5036 if test "x$enable_maintainer_mode" = xyes
5037 then :
5038 enable_compiler_warnings=yes
5039 else case e in #(
5040 e) enable_compiler_warnings=min ;;
5041 esac
5042 fi ;;
5043 esac
5044
5045 case `pwd` in
5046 *\ * | *\ *)
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5048 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5049 esac
5050
5051
5052
5053 macro_version='2.5.4'
5054 macro_revision='2.5.4'
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069 ltmain=$ac_aux_dir/ltmain.sh
5070
5071
5072
5073 # Make sure we can run config.sub.
5074 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5075 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5076
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5078 printf %s "checking build system type... " >&6; }
5079 if test ${ac_cv_build+y}
5080 then :
5081 printf %s "(cached) " >&6
5082 else case e in #(
5083 e) ac_build_alias=$build_alias
5084 test "x$ac_build_alias" = x &&
5085 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5086 test "x$ac_build_alias" = x &&
5087 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5088 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5089 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5090 ;;
5091 esac
5092 fi
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5094 printf "%s\n" "$ac_cv_build" >&6; }
5095 case $ac_cv_build in
5096 *-*-*) ;;
5097 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5098 esac
5099 build=$ac_cv_build
5100 ac_save_IFS=$IFS; IFS='-'
5101 set x $ac_cv_build
5102 shift
5103 build_cpu=$1
5104 build_vendor=$2
5105 shift; shift
5106 # Remember, the first character of IFS is used to create $*,
5107 # except with old shells:
5108 build_os=$*
5109 IFS=$ac_save_IFS
5110 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5111
5112
5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5114 printf %s "checking host system type... " >&6; }
5115 if test ${ac_cv_host+y}
5116 then :
5117 printf %s "(cached) " >&6
5118 else case e in #(
5119 e) if test "x$host_alias" = x; then
5120 ac_cv_host=$ac_cv_build
5121 else
5122 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5123 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5124 fi
5125 ;;
5126 esac
5127 fi
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5129 printf "%s\n" "$ac_cv_host" >&6; }
5130 case $ac_cv_host in
5131 *-*-*) ;;
5132 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5133 esac
5134 host=$ac_cv_host
5135 ac_save_IFS=$IFS; IFS='-'
5136 set x $ac_cv_host
5137 shift
5138 host_cpu=$1
5139 host_vendor=$2
5140 shift; shift
5141 # Remember, the first character of IFS is used to create $*,
5142 # except with old shells:
5143 host_os=$*
5144 IFS=$ac_save_IFS
5145 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5146
5147
5148 # Backslashify metacharacters that are still active within
5149 # double-quoted strings.
5150 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5151
5152 # Same as above, but do not quote variable references.
5153 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5154
5155 # Sed substitution to delay expansion of an escaped shell variable in a
5156 # double_quote_subst'ed string.
5157 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5158
5159 # Sed substitution to delay expansion of an escaped single quote.
5160 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5161
5162 # Sed substitution to avoid accidental globbing in evaled expressions
5163 no_glob_subst='s/\*/\\\*/g'
5164
5165 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5166 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5167 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5168
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5170 printf %s "checking how to print strings... " >&6; }
5171 # Test print first, because it will be a builtin if present.
5172 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5173 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5174 ECHO='print -r --'
5175 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5176 ECHO='printf %s\n'
5177 else
5178 # Use this function as a fallback that always works.
5179 func_fallback_echo ()
5180 {
5181 eval 'cat <<_LTECHO_EOF
5182 $1
5183 _LTECHO_EOF'
5184 }
5185 ECHO='func_fallback_echo'
5186 fi
5187
5188 # func_echo_all arg...
5189 # Invoke $ECHO with all args, space-separated.
5190 func_echo_all ()
5191 {
5192 $ECHO ""
5193 }
5194
5195 case $ECHO in
5196 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5197 printf "%s\n" "printf" >&6; } ;;
5198 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5199 printf "%s\n" "print -r" >&6; } ;;
5200 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5201 printf "%s\n" "cat" >&6; } ;;
5202 esac
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5218 printf %s "checking for a sed that does not truncate output... " >&6; }
5219 if test ${ac_cv_path_SED+y}
5220 then :
5221 printf %s "(cached) " >&6
5222 else case e in #(
5223 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5224 for ac_i in 1 2 3 4 5 6 7; do
5225 ac_script="$ac_script$as_nl$ac_script"
5226 done
5227 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5228 { ac_script=; unset ac_script;}
5229 if test -z "$SED"; then
5230 ac_path_SED_found=false
5231 # Loop through the user's path and test for each of PROGNAME-LIST
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235 IFS=$as_save_IFS
5236 case $as_dir in #(((
5237 '') as_dir=./ ;;
5238 */) ;;
5239 *) as_dir=$as_dir/ ;;
5240 esac
5241 for ac_prog in sed gsed
5242 do
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5245 as_fn_executable_p "$ac_path_SED" || continue
5246 # Check for GNU ac_path_SED and select it if it is found.
5247 # Check for GNU $ac_path_SED
5248 case `"$ac_path_SED" --version 2>&1` in #(
5249 *GNU*)
5250 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5251 #(
5252 *)
5253 ac_count=0
5254 printf %s 0123456789 >"conftest.in"
5255 while :
5256 do
5257 cat "conftest.in" "conftest.in" >"conftest.tmp"
5258 mv "conftest.tmp" "conftest.in"
5259 cp "conftest.in" "conftest.nl"
5260 printf "%s\n" '' >> "conftest.nl"
5261 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5263 as_fn_arith $ac_count + 1 && ac_count=$as_val
5264 if test $ac_count -gt ${ac_path_SED_max-0}; then
5265 # Best one so far, save it but keep looking for a better one
5266 ac_cv_path_SED="$ac_path_SED"
5267 ac_path_SED_max=$ac_count
5268 fi
5269 # 10*(2^10) chars as input seems more than enough
5270 test $ac_count -gt 10 && break
5271 done
5272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5273 esac
5274
5275 $ac_path_SED_found && break 3
5276 done
5277 done
5278 done
5279 IFS=$as_save_IFS
5280 if test -z "$ac_cv_path_SED"; then
5281 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5282 fi
5283 else
5284 ac_cv_path_SED=$SED
5285 fi
5286 ;;
5287 esac
5288 fi
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5290 printf "%s\n" "$ac_cv_path_SED" >&6; }
5291 SED="$ac_cv_path_SED"
5292 rm -f conftest.sed
5293
5294 test -z "$SED" && SED=sed
5295 Xsed="$SED -e 1s/^X//"
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5308 printf %s "checking for grep that handles long lines and -e... " >&6; }
5309 if test ${ac_cv_path_GREP+y}
5310 then :
5311 printf %s "(cached) " >&6
5312 else case e in #(
5313 e) if test -z "$GREP"; then
5314 ac_path_GREP_found=false
5315 # Loop through the user's path and test for each of PROGNAME-LIST
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5318 do
5319 IFS=$as_save_IFS
5320 case $as_dir in #(((
5321 '') as_dir=./ ;;
5322 */) ;;
5323 *) as_dir=$as_dir/ ;;
5324 esac
5325 for ac_prog in grep ggrep
5326 do
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5329 as_fn_executable_p "$ac_path_GREP" || continue
5330 # Check for GNU ac_path_GREP and select it if it is found.
5331 # Check for GNU $ac_path_GREP
5332 case `"$ac_path_GREP" --version 2>&1` in #(
5333 *GNU*)
5334 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5335 #(
5336 *)
5337 ac_count=0
5338 printf %s 0123456789 >"conftest.in"
5339 while :
5340 do
5341 cat "conftest.in" "conftest.in" >"conftest.tmp"
5342 mv "conftest.tmp" "conftest.in"
5343 cp "conftest.in" "conftest.nl"
5344 printf "%s\n" 'GREP' >> "conftest.nl"
5345 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5347 as_fn_arith $ac_count + 1 && ac_count=$as_val
5348 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5349 # Best one so far, save it but keep looking for a better one
5350 ac_cv_path_GREP="$ac_path_GREP"
5351 ac_path_GREP_max=$ac_count
5352 fi
5353 # 10*(2^10) chars as input seems more than enough
5354 test $ac_count -gt 10 && break
5355 done
5356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5357 esac
5358
5359 $ac_path_GREP_found && break 3
5360 done
5361 done
5362 done
5363 IFS=$as_save_IFS
5364 if test -z "$ac_cv_path_GREP"; then
5365 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5366 fi
5367 else
5368 ac_cv_path_GREP=$GREP
5369 fi
5370 ;;
5371 esac
5372 fi
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5374 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5375 GREP="$ac_cv_path_GREP"
5376
5377
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5379 printf %s "checking for egrep... " >&6; }
5380 if test ${ac_cv_path_EGREP+y}
5381 then :
5382 printf %s "(cached) " >&6
5383 else case e in #(
5384 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5385 then ac_cv_path_EGREP="$GREP -E"
5386 else
5387 if test -z "$EGREP"; then
5388 ac_path_EGREP_found=false
5389 # Loop through the user's path and test for each of PROGNAME-LIST
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5392 do
5393 IFS=$as_save_IFS
5394 case $as_dir in #(((
5395 '') as_dir=./ ;;
5396 */) ;;
5397 *) as_dir=$as_dir/ ;;
5398 esac
5399 for ac_prog in egrep
5400 do
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5403 as_fn_executable_p "$ac_path_EGREP" || continue
5404 # Check for GNU ac_path_EGREP and select it if it is found.
5405 # Check for GNU $ac_path_EGREP
5406 case `"$ac_path_EGREP" --version 2>&1` in #(
5407 *GNU*)
5408 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5409 #(
5410 *)
5411 ac_count=0
5412 printf %s 0123456789 >"conftest.in"
5413 while :
5414 do
5415 cat "conftest.in" "conftest.in" >"conftest.tmp"
5416 mv "conftest.tmp" "conftest.in"
5417 cp "conftest.in" "conftest.nl"
5418 printf "%s\n" 'EGREP' >> "conftest.nl"
5419 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5421 as_fn_arith $ac_count + 1 && ac_count=$as_val
5422 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5423 # Best one so far, save it but keep looking for a better one
5424 ac_cv_path_EGREP="$ac_path_EGREP"
5425 ac_path_EGREP_max=$ac_count
5426 fi
5427 # 10*(2^10) chars as input seems more than enough
5428 test $ac_count -gt 10 && break
5429 done
5430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5431 esac
5432
5433 $ac_path_EGREP_found && break 3
5434 done
5435 done
5436 done
5437 IFS=$as_save_IFS
5438 if test -z "$ac_cv_path_EGREP"; then
5439 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5440 fi
5441 else
5442 ac_cv_path_EGREP=$EGREP
5443 fi
5444
5445 fi ;;
5446 esac
5447 fi
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5449 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5450 EGREP="$ac_cv_path_EGREP"
5451
5452 EGREP_TRADITIONAL=$EGREP
5453 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5454
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5456 printf %s "checking for fgrep... " >&6; }
5457 if test ${ac_cv_path_FGREP+y}
5458 then :
5459 printf %s "(cached) " >&6
5460 else case e in #(
5461 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5462 then ac_cv_path_FGREP="$GREP -F"
5463 else
5464 if test -z "$FGREP"; then
5465 ac_path_FGREP_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5469 do
5470 IFS=$as_save_IFS
5471 case $as_dir in #(((
5472 '') as_dir=./ ;;
5473 */) ;;
5474 *) as_dir=$as_dir/ ;;
5475 esac
5476 for ac_prog in fgrep
5477 do
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5480 as_fn_executable_p "$ac_path_FGREP" || continue
5481 # Check for GNU ac_path_FGREP and select it if it is found.
5482 # Check for GNU $ac_path_FGREP
5483 case `"$ac_path_FGREP" --version 2>&1` in #(
5484 *GNU*)
5485 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5486 #(
5487 *)
5488 ac_count=0
5489 printf %s 0123456789 >"conftest.in"
5490 while :
5491 do
5492 cat "conftest.in" "conftest.in" >"conftest.tmp"
5493 mv "conftest.tmp" "conftest.in"
5494 cp "conftest.in" "conftest.nl"
5495 printf "%s\n" 'FGREP' >> "conftest.nl"
5496 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5498 as_fn_arith $ac_count + 1 && ac_count=$as_val
5499 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5500 # Best one so far, save it but keep looking for a better one
5501 ac_cv_path_FGREP="$ac_path_FGREP"
5502 ac_path_FGREP_max=$ac_count
5503 fi
5504 # 10*(2^10) chars as input seems more than enough
5505 test $ac_count -gt 10 && break
5506 done
5507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5508 esac
5509
5510 $ac_path_FGREP_found && break 3
5511 done
5512 done
5513 done
5514 IFS=$as_save_IFS
5515 if test -z "$ac_cv_path_FGREP"; then
5516 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5517 fi
5518 else
5519 ac_cv_path_FGREP=$FGREP
5520 fi
5521
5522 fi ;;
5523 esac
5524 fi
5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5526 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5527 FGREP="$ac_cv_path_FGREP"
5528
5529
5530 test -z "$GREP" && GREP=grep
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550 # Check whether --with-gnu-ld was given.
5551 if test ${with_gnu_ld+y}
5552 then :
5553 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5554 else case e in #(
5555 e) with_gnu_ld=no ;;
5556 esac
5557 fi
5558
5559 ac_prog=ld
5560 if test yes = "$GCC"; then
5561 # Check if gcc -print-prog-name=ld gives a path.
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5563 printf %s "checking for ld used by $CC... " >&6; }
5564 case $host in
5565 *-*-mingw* | *-*-windows*)
5566 # gcc leaves a trailing carriage return, which upsets mingw
5567 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5568 *)
5569 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5570 esac
5571 case $ac_prog in
5572 # Accept absolute paths.
5573 [\\/]* | ?:[\\/]*)
5574 re_direlt='/[^/][^/]*/\.\./'
5575 # Canonicalize the pathname of ld
5576 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5577 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5578 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5579 done
5580 test -z "$LD" && LD=$ac_prog
5581 ;;
5582 "")
5583 # If it fails, then pretend we aren't using GCC.
5584 ac_prog=ld
5585 ;;
5586 *)
5587 # If it is relative, then search for the first ld in PATH.
5588 with_gnu_ld=unknown
5589 ;;
5590 esac
5591 elif test yes = "$with_gnu_ld"; then
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5593 printf %s "checking for GNU ld... " >&6; }
5594 else
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5596 printf %s "checking for non-GNU ld... " >&6; }
5597 fi
5598 if test ${lt_cv_path_LD+y}
5599 then :
5600 printf %s "(cached) " >&6
5601 else case e in #(
5602 e) if test -z "$LD"; then
5603 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5604 for ac_dir in $PATH; do
5605 IFS=$lt_save_ifs
5606 test -z "$ac_dir" && ac_dir=.
5607 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5608 lt_cv_path_LD=$ac_dir/$ac_prog
5609 # Check to see if the program is GNU ld. I'd rather use --version,
5610 # but apparently some variants of GNU ld only accept -v.
5611 # Break only if it was the GNU/non-GNU ld that we prefer.
5612 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5613 *GNU* | *'with BFD'*)
5614 test no != "$with_gnu_ld" && break
5615 ;;
5616 *)
5617 test yes != "$with_gnu_ld" && break
5618 ;;
5619 esac
5620 fi
5621 done
5622 IFS=$lt_save_ifs
5623 else
5624 lt_cv_path_LD=$LD # Let the user override the test with a path.
5625 fi ;;
5626 esac
5627 fi
5628
5629 LD=$lt_cv_path_LD
5630 if test -n "$LD"; then
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5632 printf "%s\n" "$LD" >&6; }
5633 else
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 printf "%s\n" "no" >&6; }
5636 fi
5637 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5639 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5640 if test ${lt_cv_prog_gnu_ld+y}
5641 then :
5642 printf %s "(cached) " >&6
5643 else case e in #(
5644 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5645 case `$LD -v 2>&1 </dev/null` in
5646 *GNU* | *'with BFD'*)
5647 lt_cv_prog_gnu_ld=yes
5648 ;;
5649 *)
5650 lt_cv_prog_gnu_ld=no
5651 ;;
5652 esac ;;
5653 esac
5654 fi
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5656 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5657 with_gnu_ld=$lt_cv_prog_gnu_ld
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5668 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5669 if test ${lt_cv_path_NM+y}
5670 then :
5671 printf %s "(cached) " >&6
5672 else case e in #(
5673 e) if test -n "$NM"; then
5674 # Let the user override the test.
5675 lt_cv_path_NM=$NM
5676 else
5677 lt_nm_to_check=${ac_tool_prefix}nm
5678 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5679 lt_nm_to_check="$lt_nm_to_check nm"
5680 fi
5681 for lt_tmp_nm in $lt_nm_to_check; do
5682 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5683 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5684 IFS=$lt_save_ifs
5685 test -z "$ac_dir" && ac_dir=.
5686 tmp_nm=$ac_dir/$lt_tmp_nm
5687 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5688 # Check to see if the nm accepts a BSD-compat flag.
5689 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5690 # nm: unknown option "B" ignored
5691 # Tru64's nm complains that /dev/null is an invalid object file
5692 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5693 case $build_os in
5694 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5695 *) lt_bad_file=/dev/null ;;
5696 esac
5697 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5698 *$lt_bad_file* | *'Invalid file or object type'*)
5699 lt_cv_path_NM="$tmp_nm -B"
5700 break 2
5701 ;;
5702 *)
5703 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5704 */dev/null*)
5705 lt_cv_path_NM="$tmp_nm -p"
5706 break 2
5707 ;;
5708 *)
5709 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5710 continue # so that we can try to find one that supports BSD flags
5711 ;;
5712 esac
5713 ;;
5714 esac
5715 fi
5716 done
5717 IFS=$lt_save_ifs
5718 done
5719 : ${lt_cv_path_NM=no}
5720 fi ;;
5721 esac
5722 fi
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5724 printf "%s\n" "$lt_cv_path_NM" >&6; }
5725 if test no != "$lt_cv_path_NM"; then
5726 NM=$lt_cv_path_NM
5727 else
5728 # Didn't find any BSD compatible name lister, look for dumpbin.
5729 if test -n "$DUMPBIN"; then :
5730 # Let the user override the test.
5731 else
5732 if test -n "$ac_tool_prefix"; then
5733 for ac_prog in dumpbin "link -dump"
5734 do
5735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 printf %s "checking for $ac_word... " >&6; }
5739 if test ${ac_cv_prog_DUMPBIN+y}
5740 then :
5741 printf %s "(cached) " >&6
5742 else case e in #(
5743 e) if test -n "$DUMPBIN"; then
5744 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749 IFS=$as_save_IFS
5750 case $as_dir in #(((
5751 '') as_dir=./ ;;
5752 */) ;;
5753 *) as_dir=$as_dir/ ;;
5754 esac
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 fi ;;
5766 esac
5767 fi
5768 DUMPBIN=$ac_cv_prog_DUMPBIN
5769 if test -n "$DUMPBIN"; then
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5771 printf "%s\n" "$DUMPBIN" >&6; }
5772 else
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 printf "%s\n" "no" >&6; }
5775 fi
5776
5777
5778 test -n "$DUMPBIN" && break
5779 done
5780 fi
5781 if test -z "$DUMPBIN"; then
5782 ac_ct_DUMPBIN=$DUMPBIN
5783 for ac_prog in dumpbin "link -dump"
5784 do
5785 # Extract the first word of "$ac_prog", so it can be a program name with args.
5786 set dummy $ac_prog; ac_word=$2
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 printf %s "checking for $ac_word... " >&6; }
5789 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5790 then :
5791 printf %s "(cached) " >&6
5792 else case e in #(
5793 e) if test -n "$ac_ct_DUMPBIN"; then
5794 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799 IFS=$as_save_IFS
5800 case $as_dir in #(((
5801 '') as_dir=./ ;;
5802 */) ;;
5803 *) as_dir=$as_dir/ ;;
5804 esac
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5809 break 2
5810 fi
5811 done
5812 done
5813 IFS=$as_save_IFS
5814
5815 fi ;;
5816 esac
5817 fi
5818 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5819 if test -n "$ac_ct_DUMPBIN"; then
5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5821 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5822 else
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 printf "%s\n" "no" >&6; }
5825 fi
5826
5827
5828 test -n "$ac_ct_DUMPBIN" && break
5829 done
5830
5831 if test "x$ac_ct_DUMPBIN" = x; then
5832 DUMPBIN=":"
5833 else
5834 case $cross_compiling:$ac_tool_warned in
5835 yes:)
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5837 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5838 ac_tool_warned=yes ;;
5839 esac
5840 DUMPBIN=$ac_ct_DUMPBIN
5841 fi
5842 fi
5843
5844 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5845 *COFF*)
5846 DUMPBIN="$DUMPBIN -symbols -headers"
5847 ;;
5848 *)
5849 DUMPBIN=:
5850 ;;
5851 esac
5852 fi
5853
5854 if test : != "$DUMPBIN"; then
5855 NM=$DUMPBIN
5856 fi
5857 fi
5858 test -z "$NM" && NM=nm
5859
5860
5861
5862
5863
5864
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5866 printf %s "checking the name lister ($NM) interface... " >&6; }
5867 if test ${lt_cv_nm_interface+y}
5868 then :
5869 printf %s "(cached) " >&6
5870 else case e in #(
5871 e) lt_cv_nm_interface="BSD nm"
5872 echo "int some_variable = 0;" > conftest.$ac_ext
5873 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5874 (eval "$ac_compile" 2>conftest.err)
5875 cat conftest.err >&5
5876 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5877 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5878 cat conftest.err >&5
5879 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5880 cat conftest.out >&5
5881 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5882 lt_cv_nm_interface="MS dumpbin"
5883 fi
5884 rm -f conftest* ;;
5885 esac
5886 fi
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5888 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5889
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5891 printf %s "checking whether ln -s works... " >&6; }
5892 LN_S=$as_ln_s
5893 if test "$LN_S" = "ln -s"; then
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5895 printf "%s\n" "yes" >&6; }
5896 else
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5898 printf "%s\n" "no, using $LN_S" >&6; }
5899 fi
5900
5901 # find the maximum length of command line arguments
5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5903 printf %s "checking the maximum length of command line arguments... " >&6; }
5904 if test ${lt_cv_sys_max_cmd_len+y}
5905 then :
5906 printf %s "(cached) " >&6
5907 else case e in #(
5908 e) i=0
5909 teststring=ABCD
5910
5911 case $build_os in
5912 msdosdjgpp*)
5913 # On DJGPP, this test can blow up pretty badly due to problems in libc
5914 # (any single argument exceeding 2000 bytes causes a buffer overrun
5915 # during glob expansion). Even if it were fixed, the result of this
5916 # check would be larger than it should be.
5917 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5918 ;;
5919
5920 gnu* | ironclad*)
5921 # Under GNU Hurd and Ironclad, this test is not required because there
5922 # is no limit to the length of command line arguments.
5923 # Libtool will interpret -1 as no limit whatsoever
5924 lt_cv_sys_max_cmd_len=-1;
5925 ;;
5926
5927 cygwin* | mingw* | windows* | cegcc*)
5928 # On Win9x/ME, this test blows up -- it succeeds, but takes
5929 # about 5 minutes as the teststring grows exponentially.
5930 # Worse, since 9x/ME are not pre-emptively multitasking,
5931 # you end up with a "frozen" computer, even though with patience
5932 # the test eventually succeeds (with a max line length of 256k).
5933 # Instead, let's just punt: use the minimum linelength reported by
5934 # all of the supported platforms: 8192 (on NT/2K/XP).
5935 lt_cv_sys_max_cmd_len=8192;
5936 ;;
5937
5938 mint*)
5939 # On MiNT this can take a long time and run out of memory.
5940 lt_cv_sys_max_cmd_len=8192;
5941 ;;
5942
5943 amigaos*)
5944 # On AmigaOS with pdksh, this test takes hours, literally.
5945 # So we just punt and use a minimum line length of 8192.
5946 lt_cv_sys_max_cmd_len=8192;
5947 ;;
5948
5949 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5950 # This has been around since 386BSD, at least. Likely further.
5951 if test -x /sbin/sysctl; then
5952 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5953 elif test -x /usr/sbin/sysctl; then
5954 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5955 else
5956 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5957 fi
5958 # And add a safety zone
5959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5961 ;;
5962
5963 interix*)
5964 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5965 lt_cv_sys_max_cmd_len=196608
5966 ;;
5967
5968 os2*)
5969 # The test takes a long time on OS/2.
5970 lt_cv_sys_max_cmd_len=8192
5971 ;;
5972
5973 osf*)
5974 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5975 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5976 # nice to cause kernel panics so lets avoid the loop below.
5977 # First set a reasonable default.
5978 lt_cv_sys_max_cmd_len=16384
5979 #
5980 if test -x /sbin/sysconfig; then
5981 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5982 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5983 esac
5984 fi
5985 ;;
5986 sco3.2v5*)
5987 lt_cv_sys_max_cmd_len=102400
5988 ;;
5989 sysv5* | sco5v6* | sysv4.2uw2*)
5990 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5991 if test -n "$kargmax"; then
5992 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5993 else
5994 lt_cv_sys_max_cmd_len=32768
5995 fi
5996 ;;
5997 *)
5998 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5999 if test -n "$lt_cv_sys_max_cmd_len" && \
6000 test undefined != "$lt_cv_sys_max_cmd_len"; then
6001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6002 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6003 else
6004 # Make teststring a little bigger before we do anything with it.
6005 # a 1K string should be a reasonable start.
6006 for i in 1 2 3 4 5 6 7 8; do
6007 teststring=$teststring$teststring
6008 done
6009 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6010 # If test is not a shell built-in, we'll probably end up computing a
6011 # maximum length that is only half of the actual maximum length, but
6012 # we can't tell.
6013 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6014 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6015 test 17 != "$i" # 1/2 MB should be enough
6016 do
6017 i=`expr $i + 1`
6018 teststring=$teststring$teststring
6019 done
6020 # Only check the string length outside the loop.
6021 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6022 teststring=
6023 # Add a significant safety factor because C++ compilers can tack on
6024 # massive amounts of additional arguments before passing them to the
6025 # linker. It appears as though 1/2 is a usable value.
6026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6027 fi
6028 ;;
6029 esac
6030 ;;
6031 esac
6032 fi
6033
6034 if test -n "$lt_cv_sys_max_cmd_len"; then
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6036 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6037 else
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6039 printf "%s\n" "none" >&6; }
6040 fi
6041 max_cmd_len=$lt_cv_sys_max_cmd_len
6042
6043
6044
6045
6046
6047
6048 : ${CP="cp -f"}
6049 : ${MV="mv -f"}
6050 : ${RM="rm -f"}
6051
6052 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6053 lt_unset=unset
6054 else
6055 lt_unset=false
6056 fi
6057
6058
6059
6060
6061
6062 # test EBCDIC or ASCII
6063 case `echo X|tr X '\101'` in
6064 A) # ASCII based system
6065 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6066 lt_SP2NL='tr \040 \012'
6067 lt_NL2SP='tr \015\012 \040\040'
6068 ;;
6069 *) # EBCDIC based system
6070 lt_SP2NL='tr \100 \n'
6071 lt_NL2SP='tr \r\n \100\100'
6072 ;;
6073 esac
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6084 printf %s "checking how to convert $build file names to $host format... " >&6; }
6085 if test ${lt_cv_to_host_file_cmd+y}
6086 then :
6087 printf %s "(cached) " >&6
6088 else case e in #(
6089 e) case $host in
6090 *-*-mingw* )
6091 case $build in
6092 *-*-mingw* | *-*-windows* ) # actually msys
6093 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6094 ;;
6095 *-*-cygwin* )
6096 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6097 ;;
6098 * ) # otherwise, assume *nix
6099 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6100 ;;
6101 esac
6102 ;;
6103 *-*-cygwin* )
6104 case $build in
6105 *-*-mingw* | *-*-windows* ) # actually msys
6106 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6107 ;;
6108 *-*-cygwin* )
6109 lt_cv_to_host_file_cmd=func_convert_file_noop
6110 ;;
6111 * ) # otherwise, assume *nix
6112 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6113 ;;
6114 esac
6115 ;;
6116 * ) # unhandled hosts (and "normal" native builds)
6117 lt_cv_to_host_file_cmd=func_convert_file_noop
6118 ;;
6119 esac
6120 ;;
6121 esac
6122 fi
6123
6124 to_host_file_cmd=$lt_cv_to_host_file_cmd
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6126 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6127
6128
6129
6130
6131
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6133 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6134 if test ${lt_cv_to_tool_file_cmd+y}
6135 then :
6136 printf %s "(cached) " >&6
6137 else case e in #(
6138 e) #assume ordinary cross tools, or native build.
6139 lt_cv_to_tool_file_cmd=func_convert_file_noop
6140 case $host in
6141 *-*-mingw* | *-*-windows* )
6142 case $build in
6143 *-*-mingw* | *-*-windows* ) # actually msys
6144 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6145 ;;
6146 esac
6147 ;;
6148 esac
6149 ;;
6150 esac
6151 fi
6152
6153 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6155 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6156
6157
6158
6159
6160
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6162 printf %s "checking for $LD option to reload object files... " >&6; }
6163 if test ${lt_cv_ld_reload_flag+y}
6164 then :
6165 printf %s "(cached) " >&6
6166 else case e in #(
6167 e) lt_cv_ld_reload_flag='-r' ;;
6168 esac
6169 fi
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6171 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6172 reload_flag=$lt_cv_ld_reload_flag
6173 case $reload_flag in
6174 "" | " "*) ;;
6175 *) reload_flag=" $reload_flag" ;;
6176 esac
6177 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6178 case $host_os in
6179 cygwin* | mingw* | windows* | pw32* | cegcc*)
6180 if test yes != "$GCC"; then
6181 reload_cmds=false
6182 fi
6183 ;;
6184 darwin*)
6185 if test yes = "$GCC"; then
6186 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6187 else
6188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6189 fi
6190 ;;
6191 esac
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201 # Extract the first word of "file", so it can be a program name with args.
6202 set dummy file; ac_word=$2
6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 printf %s "checking for $ac_word... " >&6; }
6205 if test ${ac_cv_prog_FILECMD+y}
6206 then :
6207 printf %s "(cached) " >&6
6208 else case e in #(
6209 e) if test -n "$FILECMD"; then
6210 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215 IFS=$as_save_IFS
6216 case $as_dir in #(((
6217 '') as_dir=./ ;;
6218 */) ;;
6219 *) as_dir=$as_dir/ ;;
6220 esac
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6223 ac_cv_prog_FILECMD="file"
6224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227 done
6228 done
6229 IFS=$as_save_IFS
6230
6231 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6232 fi ;;
6233 esac
6234 fi
6235 FILECMD=$ac_cv_prog_FILECMD
6236 if test -n "$FILECMD"; then
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6238 printf "%s\n" "$FILECMD" >&6; }
6239 else
6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 printf "%s\n" "no" >&6; }
6242 fi
6243
6244
6245
6246
6247
6248
6249
6250
6251 if test -n "$ac_tool_prefix"; then
6252 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6253 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 printf %s "checking for $ac_word... " >&6; }
6256 if test ${ac_cv_prog_OBJDUMP+y}
6257 then :
6258 printf %s "(cached) " >&6
6259 else case e in #(
6260 e) if test -n "$OBJDUMP"; then
6261 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 case $as_dir in #(((
6268 '') as_dir=./ ;;
6269 */) ;;
6270 *) as_dir=$as_dir/ ;;
6271 esac
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278 done
6279 done
6280 IFS=$as_save_IFS
6281
6282 fi ;;
6283 esac
6284 fi
6285 OBJDUMP=$ac_cv_prog_OBJDUMP
6286 if test -n "$OBJDUMP"; then
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6288 printf "%s\n" "$OBJDUMP" >&6; }
6289 else
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291 printf "%s\n" "no" >&6; }
6292 fi
6293
6294
6295 fi
6296 if test -z "$ac_cv_prog_OBJDUMP"; then
6297 ac_ct_OBJDUMP=$OBJDUMP
6298 # Extract the first word of "objdump", so it can be a program name with args.
6299 set dummy objdump; ac_word=$2
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 printf %s "checking for $ac_word... " >&6; }
6302 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6303 then :
6304 printf %s "(cached) " >&6
6305 else case e in #(
6306 e) if test -n "$ac_ct_OBJDUMP"; then
6307 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312 IFS=$as_save_IFS
6313 case $as_dir in #(((
6314 '') as_dir=./ ;;
6315 */) ;;
6316 *) as_dir=$as_dir/ ;;
6317 esac
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6320 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6322 break 2
6323 fi
6324 done
6325 done
6326 IFS=$as_save_IFS
6327
6328 fi ;;
6329 esac
6330 fi
6331 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6332 if test -n "$ac_ct_OBJDUMP"; then
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6334 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6335 else
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 printf "%s\n" "no" >&6; }
6338 fi
6339
6340 if test "x$ac_ct_OBJDUMP" = x; then
6341 OBJDUMP="false"
6342 else
6343 case $cross_compiling:$ac_tool_warned in
6344 yes:)
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6346 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6347 ac_tool_warned=yes ;;
6348 esac
6349 OBJDUMP=$ac_ct_OBJDUMP
6350 fi
6351 else
6352 OBJDUMP="$ac_cv_prog_OBJDUMP"
6353 fi
6354
6355 test -z "$OBJDUMP" && OBJDUMP=objdump
6356
6357
6358
6359
6360
6361
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6363 printf %s "checking how to recognize dependent libraries... " >&6; }
6364 if test ${lt_cv_deplibs_check_method+y}
6365 then :
6366 printf %s "(cached) " >&6
6367 else case e in #(
6368 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6369 lt_cv_file_magic_test_file=
6370 lt_cv_deplibs_check_method='unknown'
6371 # Need to set the preceding variable on all platforms that support
6372 # interlibrary dependencies.
6373 # 'none' -- dependencies not supported.
6374 # 'unknown' -- same as none, but documents that we really don't know.
6375 # 'pass_all' -- all dependencies passed with no checks.
6376 # 'file_magic [[regex]]' -- check by looking for files in library path
6377 # that responds to the $file_magic_cmd with a given extended regex.
6378 # If you have 'file' or equivalent on your system and you're not sure
6379 # whether 'pass_all' will *always* work, you probably want this one.
6380
6381 case $host_os in
6382 aix[4-9]*)
6383 lt_cv_deplibs_check_method=pass_all
6384 ;;
6385
6386 beos*)
6387 lt_cv_deplibs_check_method=pass_all
6388 ;;
6389
6390 bsdi[45]*)
6391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6392 lt_cv_file_magic_cmd='$FILECMD -L'
6393 lt_cv_file_magic_test_file=/shlib/libc.so
6394 ;;
6395
6396 cygwin*)
6397 # func_win32_libid is a shell function defined in ltmain.sh
6398 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6399 lt_cv_file_magic_cmd='func_win32_libid'
6400 ;;
6401
6402 mingw* | windows* | pw32*)
6403 # Base MSYS/MinGW do not provide the 'file' command needed by
6404 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6405 # unless we find 'file', for example because we are cross-compiling.
6406 if ( file / ) >/dev/null 2>&1; then
6407 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6408 lt_cv_file_magic_cmd='func_win32_libid'
6409 else
6410 # Keep this pattern in sync with the one in func_win32_libid.
6411 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6412 lt_cv_file_magic_cmd='$OBJDUMP -f'
6413 fi
6414 ;;
6415
6416 cegcc*)
6417 # use the weaker test based on 'objdump'. See mingw*.
6418 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6419 lt_cv_file_magic_cmd='$OBJDUMP -f'
6420 ;;
6421
6422 darwin* | rhapsody*)
6423 lt_cv_deplibs_check_method=pass_all
6424 ;;
6425
6426 freebsd* | dragonfly* | midnightbsd*)
6427 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6428 case $host_cpu in
6429 i*86 )
6430 # Not sure whether the presence of OpenBSD here was a mistake.
6431 # Let's accept both of them until this is cleared up.
6432 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6433 lt_cv_file_magic_cmd=$FILECMD
6434 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6435 ;;
6436 esac
6437 else
6438 lt_cv_deplibs_check_method=pass_all
6439 fi
6440 ;;
6441
6442 haiku*)
6443 lt_cv_deplibs_check_method=pass_all
6444 ;;
6445
6446 hpux10.20* | hpux11*)
6447 lt_cv_file_magic_cmd=$FILECMD
6448 case $host_cpu in
6449 ia64*)
6450 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6451 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6452 ;;
6453 hppa*64*)
6454 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]'
6455 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6456 ;;
6457 *)
6458 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6459 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6460 ;;
6461 esac
6462 ;;
6463
6464 interix[3-9]*)
6465 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6467 ;;
6468
6469 irix5* | irix6* | nonstopux*)
6470 case $LD in
6471 *-32|*"-32 ") libmagic=32-bit;;
6472 *-n32|*"-n32 ") libmagic=N32;;
6473 *-64|*"-64 ") libmagic=64-bit;;
6474 *) libmagic=never-match;;
6475 esac
6476 lt_cv_deplibs_check_method=pass_all
6477 ;;
6478
6479 # This must be glibc/ELF.
6480 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6481 lt_cv_deplibs_check_method=pass_all
6482 ;;
6483
6484 *-mlibc)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487
6488 netbsd* | netbsdelf*-gnu)
6489 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6491 else
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6493 fi
6494 ;;
6495
6496 newos6*)
6497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6498 lt_cv_file_magic_cmd=$FILECMD
6499 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6500 ;;
6501
6502 *nto* | *qnx*)
6503 lt_cv_deplibs_check_method=pass_all
6504 ;;
6505
6506 openbsd*)
6507 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6509 else
6510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6511 fi
6512 ;;
6513
6514 osf3* | osf4* | osf5*)
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517
6518 rdos*)
6519 lt_cv_deplibs_check_method=pass_all
6520 ;;
6521
6522 serenity*)
6523 lt_cv_deplibs_check_method=pass_all
6524 ;;
6525
6526 solaris*)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529
6530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6531 lt_cv_deplibs_check_method=pass_all
6532 ;;
6533
6534 sysv4 | sysv4.3*)
6535 case $host_vendor in
6536 motorola)
6537 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]'
6538 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6539 ;;
6540 ncr)
6541 lt_cv_deplibs_check_method=pass_all
6542 ;;
6543 sequent)
6544 lt_cv_file_magic_cmd='/bin/file'
6545 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6546 ;;
6547 sni)
6548 lt_cv_file_magic_cmd='/bin/file'
6549 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6550 lt_cv_file_magic_test_file=/lib/libc.so
6551 ;;
6552 siemens)
6553 lt_cv_deplibs_check_method=pass_all
6554 ;;
6555 pc)
6556 lt_cv_deplibs_check_method=pass_all
6557 ;;
6558 esac
6559 ;;
6560
6561 tpf*)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564 os2*)
6565 lt_cv_deplibs_check_method=pass_all
6566 ;;
6567 esac
6568 ;;
6569 esac
6570 fi
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6572 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6573
6574 file_magic_glob=
6575 want_nocaseglob=no
6576 if test "$build" = "$host"; then
6577 case $host_os in
6578 mingw* | windows* | pw32*)
6579 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6580 want_nocaseglob=yes
6581 else
6582 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6583 fi
6584 ;;
6585 esac
6586 fi
6587
6588 file_magic_cmd=$lt_cv_file_magic_cmd
6589 deplibs_check_method=$lt_cv_deplibs_check_method
6590 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613 if test -n "$ac_tool_prefix"; then
6614 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6615 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 printf %s "checking for $ac_word... " >&6; }
6618 if test ${ac_cv_prog_DLLTOOL+y}
6619 then :
6620 printf %s "(cached) " >&6
6621 else case e in #(
6622 e) if test -n "$DLLTOOL"; then
6623 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628 IFS=$as_save_IFS
6629 case $as_dir in #(((
6630 '') as_dir=./ ;;
6631 */) ;;
6632 *) as_dir=$as_dir/ ;;
6633 esac
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6636 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6638 break 2
6639 fi
6640 done
6641 done
6642 IFS=$as_save_IFS
6643
6644 fi ;;
6645 esac
6646 fi
6647 DLLTOOL=$ac_cv_prog_DLLTOOL
6648 if test -n "$DLLTOOL"; then
6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6650 printf "%s\n" "$DLLTOOL" >&6; }
6651 else
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 printf "%s\n" "no" >&6; }
6654 fi
6655
6656
6657 fi
6658 if test -z "$ac_cv_prog_DLLTOOL"; then
6659 ac_ct_DLLTOOL=$DLLTOOL
6660 # Extract the first word of "dlltool", so it can be a program name with args.
6661 set dummy dlltool; ac_word=$2
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 printf %s "checking for $ac_word... " >&6; }
6664 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6665 then :
6666 printf %s "(cached) " >&6
6667 else case e in #(
6668 e) if test -n "$ac_ct_DLLTOOL"; then
6669 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674 IFS=$as_save_IFS
6675 case $as_dir in #(((
6676 '') as_dir=./ ;;
6677 */) ;;
6678 *) as_dir=$as_dir/ ;;
6679 esac
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6682 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690 fi ;;
6691 esac
6692 fi
6693 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6694 if test -n "$ac_ct_DLLTOOL"; then
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6696 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6697 else
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 printf "%s\n" "no" >&6; }
6700 fi
6701
6702 if test "x$ac_ct_DLLTOOL" = x; then
6703 DLLTOOL="false"
6704 else
6705 case $cross_compiling:$ac_tool_warned in
6706 yes:)
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6708 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6709 ac_tool_warned=yes ;;
6710 esac
6711 DLLTOOL=$ac_ct_DLLTOOL
6712 fi
6713 else
6714 DLLTOOL="$ac_cv_prog_DLLTOOL"
6715 fi
6716
6717 test -z "$DLLTOOL" && DLLTOOL=dlltool
6718
6719
6720
6721
6722
6723
6724
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6726 printf %s "checking how to associate runtime and link libraries... " >&6; }
6727 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6728 then :
6729 printf %s "(cached) " >&6
6730 else case e in #(
6731 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6732
6733 case $host_os in
6734 cygwin* | mingw* | windows* | pw32* | cegcc*)
6735 # two different shell functions defined in ltmain.sh;
6736 # decide which one to use based on capabilities of $DLLTOOL
6737 case `$DLLTOOL --help 2>&1` in
6738 *--identify-strict*)
6739 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6740 ;;
6741 *)
6742 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6743 ;;
6744 esac
6745 ;;
6746 *)
6747 # fallback: assume linklib IS sharedlib
6748 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6749 ;;
6750 esac
6751 ;;
6752 esac
6753 fi
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6755 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6756 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6757 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6758
6759
6760
6761
6762
6763
6764
6765 if test -n "$ac_tool_prefix"; then
6766 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6767 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 printf %s "checking for $ac_word... " >&6; }
6770 if test ${ac_cv_prog_RANLIB+y}
6771 then :
6772 printf %s "(cached) " >&6
6773 else case e in #(
6774 e) if test -n "$RANLIB"; then
6775 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780 IFS=$as_save_IFS
6781 case $as_dir in #(((
6782 '') as_dir=./ ;;
6783 */) ;;
6784 *) as_dir=$as_dir/ ;;
6785 esac
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6788 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6790 break 2
6791 fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796 fi ;;
6797 esac
6798 fi
6799 RANLIB=$ac_cv_prog_RANLIB
6800 if test -n "$RANLIB"; then
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6802 printf "%s\n" "$RANLIB" >&6; }
6803 else
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 printf "%s\n" "no" >&6; }
6806 fi
6807
6808
6809 fi
6810 if test -z "$ac_cv_prog_RANLIB"; then
6811 ac_ct_RANLIB=$RANLIB
6812 # Extract the first word of "ranlib", so it can be a program name with args.
6813 set dummy ranlib; ac_word=$2
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 printf %s "checking for $ac_word... " >&6; }
6816 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6817 then :
6818 printf %s "(cached) " >&6
6819 else case e in #(
6820 e) if test -n "$ac_ct_RANLIB"; then
6821 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826 IFS=$as_save_IFS
6827 case $as_dir in #(((
6828 '') as_dir=./ ;;
6829 */) ;;
6830 *) as_dir=$as_dir/ ;;
6831 esac
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6834 ac_cv_prog_ac_ct_RANLIB="ranlib"
6835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi ;;
6843 esac
6844 fi
6845 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6846 if test -n "$ac_ct_RANLIB"; then
6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6848 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6849 else
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 printf "%s\n" "no" >&6; }
6852 fi
6853
6854 if test "x$ac_ct_RANLIB" = x; then
6855 RANLIB=":"
6856 else
6857 case $cross_compiling:$ac_tool_warned in
6858 yes:)
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861 ac_tool_warned=yes ;;
6862 esac
6863 RANLIB=$ac_ct_RANLIB
6864 fi
6865 else
6866 RANLIB="$ac_cv_prog_RANLIB"
6867 fi
6868
6869 if test -n "$ac_tool_prefix"; then
6870 for ac_prog in ar
6871 do
6872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 printf %s "checking for $ac_word... " >&6; }
6876 if test ${ac_cv_prog_AR+y}
6877 then :
6878 printf %s "(cached) " >&6
6879 else case e in #(
6880 e) if test -n "$AR"; then
6881 ac_cv_prog_AR="$AR" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886 IFS=$as_save_IFS
6887 case $as_dir in #(((
6888 '') as_dir=./ ;;
6889 */) ;;
6890 *) as_dir=$as_dir/ ;;
6891 esac
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6901
6902 fi ;;
6903 esac
6904 fi
6905 AR=$ac_cv_prog_AR
6906 if test -n "$AR"; then
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6908 printf "%s\n" "$AR" >&6; }
6909 else
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 printf "%s\n" "no" >&6; }
6912 fi
6913
6914
6915 test -n "$AR" && break
6916 done
6917 fi
6918 if test -z "$AR"; then
6919 ac_ct_AR=$AR
6920 for ac_prog in ar
6921 do
6922 # Extract the first word of "$ac_prog", so it can be a program name with args.
6923 set dummy $ac_prog; ac_word=$2
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 printf %s "checking for $ac_word... " >&6; }
6926 if test ${ac_cv_prog_ac_ct_AR+y}
6927 then :
6928 printf %s "(cached) " >&6
6929 else case e in #(
6930 e) if test -n "$ac_ct_AR"; then
6931 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936 IFS=$as_save_IFS
6937 case $as_dir in #(((
6938 '') as_dir=./ ;;
6939 */) ;;
6940 *) as_dir=$as_dir/ ;;
6941 esac
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_ac_ct_AR="$ac_prog"
6945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948 done
6949 done
6950 IFS=$as_save_IFS
6951
6952 fi ;;
6953 esac
6954 fi
6955 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6956 if test -n "$ac_ct_AR"; then
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6958 printf "%s\n" "$ac_ct_AR" >&6; }
6959 else
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 printf "%s\n" "no" >&6; }
6962 fi
6963
6964
6965 test -n "$ac_ct_AR" && break
6966 done
6967
6968 if test "x$ac_ct_AR" = x; then
6969 AR="false"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977 AR=$ac_ct_AR
6978 fi
6979 fi
6980
6981 : ${AR=ar}
6982
6983
6984
6985
6986
6987
6988 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6989 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6990 # higher priority because that's what people were doing historically (setting
6991 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6992 # variable obsoleted/removed.
6993
6994 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6995 lt_ar_flags=$AR_FLAGS
6996
6997
6998
6999
7000
7001
7002 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7003 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7004
7005
7006
7007
7008
7009
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7011 printf %s "checking for archiver @FILE support... " >&6; }
7012 if test ${lt_cv_ar_at_file+y}
7013 then :
7014 printf %s "(cached) " >&6
7015 else case e in #(
7016 e) lt_cv_ar_at_file=no
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019
7020 int
7021 main (void)
7022 {
7023
7024 ;
7025 return 0;
7026 }
7027 _ACEOF
7028 if ac_fn_c_try_compile "$LINENO"
7029 then :
7030 echo conftest.$ac_objext > conftest.lst
7031 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7033 (eval $lt_ar_try) 2>&5
7034 ac_status=$?
7035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7036 test $ac_status = 0; }
7037 if test 0 -eq "$ac_status"; then
7038 # Ensure the archiver fails upon bogus file names.
7039 rm -f conftest.$ac_objext libconftest.a
7040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7041 (eval $lt_ar_try) 2>&5
7042 ac_status=$?
7043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7044 test $ac_status = 0; }
7045 if test 0 -ne "$ac_status"; then
7046 lt_cv_ar_at_file=@
7047 fi
7048 fi
7049 rm -f conftest.* libconftest.a
7050
7051 fi
7052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7053 ;;
7054 esac
7055 fi
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7057 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7058
7059 if test no = "$lt_cv_ar_at_file"; then
7060 archiver_list_spec=
7061 else
7062 archiver_list_spec=$lt_cv_ar_at_file
7063 fi
7064
7065
7066
7067
7068
7069
7070
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7073 set dummy ${ac_tool_prefix}strip; ac_word=$2
7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075 printf %s "checking for $ac_word... " >&6; }
7076 if test ${ac_cv_prog_STRIP+y}
7077 then :
7078 printf %s "(cached) " >&6
7079 else case e in #(
7080 e) if test -n "$STRIP"; then
7081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7082 else
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7085 do
7086 IFS=$as_save_IFS
7087 case $as_dir in #(((
7088 '') as_dir=./ ;;
7089 */) ;;
7090 *) as_dir=$as_dir/ ;;
7091 esac
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7094 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7096 break 2
7097 fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7101
7102 fi ;;
7103 esac
7104 fi
7105 STRIP=$ac_cv_prog_STRIP
7106 if test -n "$STRIP"; then
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7108 printf "%s\n" "$STRIP" >&6; }
7109 else
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 printf "%s\n" "no" >&6; }
7112 fi
7113
7114
7115 fi
7116 if test -z "$ac_cv_prog_STRIP"; then
7117 ac_ct_STRIP=$STRIP
7118 # Extract the first word of "strip", so it can be a program name with args.
7119 set dummy strip; ac_word=$2
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 printf %s "checking for $ac_word... " >&6; }
7122 if test ${ac_cv_prog_ac_ct_STRIP+y}
7123 then :
7124 printf %s "(cached) " >&6
7125 else case e in #(
7126 e) if test -n "$ac_ct_STRIP"; then
7127 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132 IFS=$as_save_IFS
7133 case $as_dir in #(((
7134 '') as_dir=./ ;;
7135 */) ;;
7136 *) as_dir=$as_dir/ ;;
7137 esac
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7140 ac_cv_prog_ac_ct_STRIP="strip"
7141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7142 break 2
7143 fi
7144 done
7145 done
7146 IFS=$as_save_IFS
7147
7148 fi ;;
7149 esac
7150 fi
7151 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7152 if test -n "$ac_ct_STRIP"; then
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7154 printf "%s\n" "$ac_ct_STRIP" >&6; }
7155 else
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 printf "%s\n" "no" >&6; }
7158 fi
7159
7160 if test "x$ac_ct_STRIP" = x; then
7161 STRIP=":"
7162 else
7163 case $cross_compiling:$ac_tool_warned in
7164 yes:)
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7166 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7167 ac_tool_warned=yes ;;
7168 esac
7169 STRIP=$ac_ct_STRIP
7170 fi
7171 else
7172 STRIP="$ac_cv_prog_STRIP"
7173 fi
7174
7175 test -z "$STRIP" && STRIP=:
7176
7177
7178
7179
7180
7181
7182
7183 test -z "$RANLIB" && RANLIB=:
7184
7185
7186
7187
7188
7189
7190 # Determine commands to create old-style static archives.
7191 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7192 old_postinstall_cmds='chmod 644 $oldlib'
7193 old_postuninstall_cmds=
7194
7195 if test -n "$RANLIB"; then
7196 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7197 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7198 fi
7199
7200 case $host_os in
7201 darwin*)
7202 lock_old_archive_extraction=yes ;;
7203 *)
7204 lock_old_archive_extraction=no ;;
7205 esac
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245 # If no C compiler was specified, use CC.
7246 LTCC=${LTCC-"$CC"}
7247
7248 # If no C compiler flags were specified, use CFLAGS.
7249 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7250
7251 # Allow CC to be a program name with arguments.
7252 compiler=$CC
7253
7254
7255 # Check for command to grab the raw symbol name followed by C symbol from nm.
7256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7257 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7258 if test ${lt_cv_sys_global_symbol_pipe+y}
7259 then :
7260 printf %s "(cached) " >&6
7261 else case e in #(
7262 e)
7263 # These are sane defaults that work on at least a few old systems.
7264 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7265
7266 # Character class describing NM global symbol codes.
7267 symcode='[BCDEGRST]'
7268
7269 # Regexp to match symbols that can be accessed directly from C.
7270 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7271
7272 # Define system-specific variables.
7273 case $host_os in
7274 aix*)
7275 symcode='[BCDT]'
7276 ;;
7277 cygwin* | mingw* | windows* | pw32* | cegcc*)
7278 symcode='[ABCDGISTW]'
7279 ;;
7280 hpux*)
7281 if test ia64 = "$host_cpu"; then
7282 symcode='[ABCDEGRST]'
7283 fi
7284 ;;
7285 irix* | nonstopux*)
7286 symcode='[BCDEGRST]'
7287 ;;
7288 osf*)
7289 symcode='[BCDEGQRST]'
7290 ;;
7291 solaris*)
7292 symcode='[BCDRT]'
7293 ;;
7294 sco3.2v5*)
7295 symcode='[DT]'
7296 ;;
7297 sysv4.2uw2*)
7298 symcode='[DT]'
7299 ;;
7300 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7301 symcode='[ABDT]'
7302 ;;
7303 sysv4)
7304 symcode='[DFNSTU]'
7305 ;;
7306 esac
7307
7308 # If we're using GNU nm, then use its standard symbol codes.
7309 case `$NM -V 2>&1` in
7310 *GNU* | *'with BFD'*)
7311 symcode='[ABCDGIRSTW]' ;;
7312 esac
7313
7314 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7315 # Gets list of data symbols to import.
7316 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7317 # Adjust the below global symbol transforms to fixup imported variables.
7318 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7319 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7320 lt_c_name_lib_hook="\
7321 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7322 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7323 else
7324 # Disable hooks by default.
7325 lt_cv_sys_global_symbol_to_import=
7326 lt_cdecl_hook=
7327 lt_c_name_hook=
7328 lt_c_name_lib_hook=
7329 fi
7330
7331 # Transform an extracted symbol line into a proper C declaration.
7332 # Some systems (esp. on ia64) link data and code symbols differently,
7333 # so use this general approach.
7334 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7335 $lt_cdecl_hook\
7336 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7337 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7338
7339 # Transform an extracted symbol line into symbol name and symbol address
7340 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7341 $lt_c_name_hook\
7342 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7343 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7344
7345 # Transform an extracted symbol line into symbol name with lib prefix and
7346 # symbol address.
7347 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7348 $lt_c_name_lib_hook\
7349 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7350 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7351 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7352
7353 # Handle CRLF in mingw tool chain
7354 opt_cr=
7355 case $build_os in
7356 mingw* | windows*)
7357 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7358 ;;
7359 esac
7360
7361 # Try without a prefix underscore, then with it.
7362 for ac_symprfx in "" "_"; do
7363
7364 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7365 symxfrm="\\1 $ac_symprfx\\2 \\2"
7366
7367 # Write the raw and C identifiers.
7368 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7369 # Fake it for dumpbin and say T for any non-static function,
7370 # D for any global variable and I for any imported variable.
7371 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7372 # which start with @ or ?.
7373 lt_cv_sys_global_symbol_pipe="$AWK '"\
7374 " {last_section=section; section=\$ 3};"\
7375 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7376 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7377 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7378 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7379 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7380 " \$ 0!~/External *\|/{next};"\
7381 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7382 " {if(hide[section]) next};"\
7383 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7384 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7385 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7386 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7387 " ' prfx=^$ac_symprfx"
7388 else
7389 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7390 fi
7391 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7392
7393 # Check to see that the pipe works correctly.
7394 pipe_works=no
7395
7396 rm -f conftest*
7397 cat > conftest.$ac_ext <<_LT_EOF
7398 #ifdef __cplusplus
7399 extern "C" {
7400 #endif
7401 char nm_test_var;
7402 void nm_test_func(void);
7403 void nm_test_func(void){}
7404 #ifdef __cplusplus
7405 }
7406 #endif
7407 int main(void){nm_test_var='a';nm_test_func();return(0);}
7408 _LT_EOF
7409
7410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7411 (eval $ac_compile) 2>&5
7412 ac_status=$?
7413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7414 test $ac_status = 0; }; then
7415 # Now try to grab the symbols.
7416 nlist=conftest.nm
7417 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7418 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7419 # Try sorting and uniquifying the output.
7420 if sort "$nlist" | uniq > "$nlist"T; then
7421 mv -f "$nlist"T "$nlist"
7422 else
7423 rm -f "$nlist"T
7424 fi
7425
7426 # Make sure that we snagged all the symbols we need.
7427 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7428 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7429 cat <<_LT_EOF > conftest.$ac_ext
7430 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7431 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7432 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7433 relocations are performed -- see ld's documentation on pseudo-relocs. */
7434 # define LT_DLSYM_CONST
7435 #elif defined __osf__
7436 /* This system does not cope well with relocations in const data. */
7437 # define LT_DLSYM_CONST
7438 #else
7439 # define LT_DLSYM_CONST const
7440 #endif
7441
7442 #ifdef __cplusplus
7443 extern "C" {
7444 #endif
7445
7446 _LT_EOF
7447 # Now generate the symbol file.
7448 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7449
7450 cat <<_LT_EOF >> conftest.$ac_ext
7451
7452 /* The mapping between symbol names and symbols. */
7453 LT_DLSYM_CONST struct {
7454 const char *name;
7455 void *address;
7456 }
7457 lt__PROGRAM__LTX_preloaded_symbols[] =
7458 {
7459 { "@PROGRAM@", (void *) 0 },
7460 _LT_EOF
7461 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7462 cat <<\_LT_EOF >> conftest.$ac_ext
7463 {0, (void *) 0}
7464 };
7465
7466 /* This works around a problem in FreeBSD linker */
7467 #ifdef FREEBSD_WORKAROUND
7468 static const void *lt_preloaded_setup() {
7469 return lt__PROGRAM__LTX_preloaded_symbols;
7470 }
7471 #endif
7472
7473 #ifdef __cplusplus
7474 }
7475 #endif
7476 _LT_EOF
7477 # Now try linking the two files.
7478 mv conftest.$ac_objext conftstm.$ac_objext
7479 lt_globsym_save_LIBS=$LIBS
7480 lt_globsym_save_CFLAGS=$CFLAGS
7481 LIBS=conftstm.$ac_objext
7482 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7484 (eval $ac_link) 2>&5
7485 ac_status=$?
7486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7487 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7488 pipe_works=yes
7489 fi
7490 LIBS=$lt_globsym_save_LIBS
7491 CFLAGS=$lt_globsym_save_CFLAGS
7492 else
7493 echo "cannot find nm_test_func in $nlist" >&5
7494 fi
7495 else
7496 echo "cannot find nm_test_var in $nlist" >&5
7497 fi
7498 else
7499 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7500 fi
7501 else
7502 echo "$progname: failed program was:" >&5
7503 cat conftest.$ac_ext >&5
7504 fi
7505 rm -rf conftest* conftst*
7506
7507 # Do not use the global_symbol_pipe unless it works.
7508 if test yes = "$pipe_works"; then
7509 break
7510 else
7511 lt_cv_sys_global_symbol_pipe=
7512 fi
7513 done
7514 ;;
7515 esac
7516 fi
7517
7518 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7519 lt_cv_sys_global_symbol_to_cdecl=
7520 fi
7521 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7523 printf "%s\n" "failed" >&6; }
7524 else
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7526 printf "%s\n" "ok" >&6; }
7527 fi
7528
7529 # Response file support.
7530 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7531 nm_file_list_spec='@'
7532 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7533 nm_file_list_spec='@'
7534 fi
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7573 printf %s "checking for sysroot... " >&6; }
7574
7575 # Check whether --with-sysroot was given.
7576 if test ${with_sysroot+y}
7577 then :
7578 withval=$with_sysroot;
7579 else case e in #(
7580 e) with_sysroot=no ;;
7581 esac
7582 fi
7583
7584
7585 lt_sysroot=
7586 case $with_sysroot in #(
7587 yes)
7588 if test yes = "$GCC"; then
7589 # Trim trailing / since we'll always append absolute paths and we want
7590 # to avoid //, if only for less confusing output for the user.
7591 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7592 fi
7593 ;; #(
7594 /*)
7595 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7596 ;; #(
7597 no|'')
7598 ;; #(
7599 *)
7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7601 printf "%s\n" "$with_sysroot" >&6; }
7602 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7603 ;;
7604 esac
7605
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7607 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7608
7609
7610
7611
7612
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7614 printf %s "checking for a working dd... " >&6; }
7615 if test ${ac_cv_path_lt_DD+y}
7616 then :
7617 printf %s "(cached) " >&6
7618 else case e in #(
7619 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7620 cat conftest.i conftest.i >conftest2.i
7621 : ${lt_DD:=$DD}
7622 if test -z "$lt_DD"; then
7623 ac_path_lt_DD_found=false
7624 # Loop through the user's path and test for each of PROGNAME-LIST
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628 IFS=$as_save_IFS
7629 case $as_dir in #(((
7630 '') as_dir=./ ;;
7631 */) ;;
7632 *) as_dir=$as_dir/ ;;
7633 esac
7634 for ac_prog in dd
7635 do
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7638 as_fn_executable_p "$ac_path_lt_DD" || continue
7639 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7640 cmp -s conftest.i conftest.out \
7641 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7642 fi
7643 $ac_path_lt_DD_found && break 3
7644 done
7645 done
7646 done
7647 IFS=$as_save_IFS
7648 if test -z "$ac_cv_path_lt_DD"; then
7649 :
7650 fi
7651 else
7652 ac_cv_path_lt_DD=$lt_DD
7653 fi
7654
7655 rm -f conftest.i conftest2.i conftest.out ;;
7656 esac
7657 fi
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7659 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7660
7661
7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7663 printf %s "checking how to truncate binary pipes... " >&6; }
7664 if test ${lt_cv_truncate_bin+y}
7665 then :
7666 printf %s "(cached) " >&6
7667 else case e in #(
7668 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7669 cat conftest.i conftest.i >conftest2.i
7670 lt_cv_truncate_bin=
7671 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7672 cmp -s conftest.i conftest.out \
7673 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7674 fi
7675 rm -f conftest.i conftest2.i conftest.out
7676 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7677 esac
7678 fi
7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7680 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7681
7682
7683
7684
7685
7686
7687
7688 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7689 func_cc_basename ()
7690 {
7691 for cc_temp in $*""; do
7692 case $cc_temp in
7693 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7694 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7695 \-*) ;;
7696 *) break;;
7697 esac
7698 done
7699 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7700 }
7701
7702 # Check whether --enable-libtool-lock was given.
7703 if test ${enable_libtool_lock+y}
7704 then :
7705 enableval=$enable_libtool_lock;
7706 fi
7707
7708 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7709
7710 # Some flags need to be propagated to the compiler or linker for good
7711 # libtool support.
7712 case $host in
7713 ia64-*-hpux*)
7714 # Find out what ABI is being produced by ac_compile, and set mode
7715 # options accordingly.
7716 echo 'int i;' > conftest.$ac_ext
7717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7718 (eval $ac_compile) 2>&5
7719 ac_status=$?
7720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7721 test $ac_status = 0; }; then
7722 case `$FILECMD conftest.$ac_objext` in
7723 *ELF-32*)
7724 HPUX_IA64_MODE=32
7725 ;;
7726 *ELF-64*)
7727 HPUX_IA64_MODE=64
7728 ;;
7729 esac
7730 fi
7731 rm -rf conftest*
7732 ;;
7733 *-*-irix6*)
7734 # Find out what ABI is being produced by ac_compile, and set linker
7735 # options accordingly.
7736 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7738 (eval $ac_compile) 2>&5
7739 ac_status=$?
7740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7741 test $ac_status = 0; }; then
7742 if test yes = "$lt_cv_prog_gnu_ld"; then
7743 case `$FILECMD conftest.$ac_objext` in
7744 *32-bit*)
7745 LD="${LD-ld} -melf32bsmip"
7746 ;;
7747 *N32*)
7748 LD="${LD-ld} -melf32bmipn32"
7749 ;;
7750 *64-bit*)
7751 LD="${LD-ld} -melf64bmip"
7752 ;;
7753 esac
7754 else
7755 case `$FILECMD conftest.$ac_objext` in
7756 *32-bit*)
7757 LD="${LD-ld} -32"
7758 ;;
7759 *N32*)
7760 LD="${LD-ld} -n32"
7761 ;;
7762 *64-bit*)
7763 LD="${LD-ld} -64"
7764 ;;
7765 esac
7766 fi
7767 fi
7768 rm -rf conftest*
7769 ;;
7770
7771 mips64*-*linux*)
7772 # Find out what ABI is being produced by ac_compile, and set linker
7773 # options accordingly.
7774 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7776 (eval $ac_compile) 2>&5
7777 ac_status=$?
7778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7779 test $ac_status = 0; }; then
7780 emul=elf
7781 case `$FILECMD conftest.$ac_objext` in
7782 *32-bit*)
7783 emul="${emul}32"
7784 ;;
7785 *64-bit*)
7786 emul="${emul}64"
7787 ;;
7788 esac
7789 case `$FILECMD conftest.$ac_objext` in
7790 *MSB*)
7791 emul="${emul}btsmip"
7792 ;;
7793 *LSB*)
7794 emul="${emul}ltsmip"
7795 ;;
7796 esac
7797 case `$FILECMD conftest.$ac_objext` in
7798 *N32*)
7799 emul="${emul}n32"
7800 ;;
7801 esac
7802 LD="${LD-ld} -m $emul"
7803 fi
7804 rm -rf conftest*
7805 ;;
7806
7807 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7808 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7809 # Find out what ABI is being produced by ac_compile, and set linker
7810 # options accordingly. Note that the listed cases only cover the
7811 # situations where additional linker options are needed (such as when
7812 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7813 # vice versa); the common cases where no linker options are needed do
7814 # not appear in the list.
7815 echo 'int i;' > conftest.$ac_ext
7816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7817 (eval $ac_compile) 2>&5
7818 ac_status=$?
7819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7820 test $ac_status = 0; }; then
7821 case `$FILECMD conftest.o` in
7822 *32-bit*)
7823 case $host in
7824 x86_64-*kfreebsd*-gnu)
7825 LD="${LD-ld} -m elf_i386_fbsd"
7826 ;;
7827 x86_64-*linux*|x86_64-gnu*)
7828 case `$FILECMD conftest.o` in
7829 *x86-64*)
7830 LD="${LD-ld} -m elf32_x86_64"
7831 ;;
7832 *)
7833 LD="${LD-ld} -m elf_i386"
7834 ;;
7835 esac
7836 ;;
7837 powerpc64le-*linux*)
7838 LD="${LD-ld} -m elf32lppclinux"
7839 ;;
7840 powerpc64-*linux*)
7841 LD="${LD-ld} -m elf32ppclinux"
7842 ;;
7843 s390x-*linux*)
7844 LD="${LD-ld} -m elf_s390"
7845 ;;
7846 sparc64-*linux*)
7847 LD="${LD-ld} -m elf32_sparc"
7848 ;;
7849 esac
7850 ;;
7851 *64-bit*)
7852 case $host in
7853 x86_64-*kfreebsd*-gnu)
7854 LD="${LD-ld} -m elf_x86_64_fbsd"
7855 ;;
7856 x86_64-*linux*|x86_64-gnu*)
7857 LD="${LD-ld} -m elf_x86_64"
7858 ;;
7859 powerpcle-*linux*)
7860 LD="${LD-ld} -m elf64lppc"
7861 ;;
7862 powerpc-*linux*)
7863 LD="${LD-ld} -m elf64ppc"
7864 ;;
7865 s390*-*linux*|s390*-*tpf*)
7866 LD="${LD-ld} -m elf64_s390"
7867 ;;
7868 sparc*-*linux*)
7869 LD="${LD-ld} -m elf64_sparc"
7870 ;;
7871 esac
7872 ;;
7873 esac
7874 fi
7875 rm -rf conftest*
7876 ;;
7877
7878 *-*-sco3.2v5*)
7879 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7880 SAVE_CFLAGS=$CFLAGS
7881 CFLAGS="$CFLAGS -belf"
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7883 printf %s "checking whether the C compiler needs -belf... " >&6; }
7884 if test ${lt_cv_cc_needs_belf+y}
7885 then :
7886 printf %s "(cached) " >&6
7887 else case e in #(
7888 e) ac_ext=c
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7896
7897 int
7898 main (void)
7899 {
7900
7901 ;
7902 return 0;
7903 }
7904 _ACEOF
7905 if ac_fn_c_try_link "$LINENO"
7906 then :
7907 lt_cv_cc_needs_belf=yes
7908 else case e in #(
7909 e) lt_cv_cc_needs_belf=no ;;
7910 esac
7911 fi
7912 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7913 conftest$ac_exeext conftest.$ac_ext
7914 ac_ext=c
7915 ac_cpp='$CPP $CPPFLAGS'
7916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7919 ;;
7920 esac
7921 fi
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7923 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7924 if test yes != "$lt_cv_cc_needs_belf"; then
7925 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7926 CFLAGS=$SAVE_CFLAGS
7927 fi
7928 ;;
7929 *-*solaris*)
7930 # Find out what ABI is being produced by ac_compile, and set linker
7931 # options accordingly.
7932 echo 'int i;' > conftest.$ac_ext
7933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7934 (eval $ac_compile) 2>&5
7935 ac_status=$?
7936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7937 test $ac_status = 0; }; then
7938 case `$FILECMD conftest.o` in
7939 *64-bit*)
7940 case $lt_cv_prog_gnu_ld in
7941 yes*)
7942 case $host in
7943 i?86-*-solaris*|x86_64-*-solaris*)
7944 LD="${LD-ld} -m elf_x86_64"
7945 ;;
7946 sparc*-*-solaris*)
7947 LD="${LD-ld} -m elf64_sparc"
7948 ;;
7949 esac
7950 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7951 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7952 LD=${LD-ld}_sol2
7953 fi
7954 ;;
7955 *)
7956 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7957 LD="${LD-ld} -64"
7958 fi
7959 ;;
7960 esac
7961 ;;
7962 esac
7963 fi
7964 rm -rf conftest*
7965 ;;
7966 esac
7967
7968 need_locks=$enable_libtool_lock
7969
7970 if test -n "$ac_tool_prefix"; then
7971 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7972 set dummy ${ac_tool_prefix}mt; ac_word=$2
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 printf %s "checking for $ac_word... " >&6; }
7975 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7976 then :
7977 printf %s "(cached) " >&6
7978 else case e in #(
7979 e) if test -n "$MANIFEST_TOOL"; then
7980 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985 IFS=$as_save_IFS
7986 case $as_dir in #(((
7987 '') as_dir=./ ;;
7988 */) ;;
7989 *) as_dir=$as_dir/ ;;
7990 esac
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7993 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7995 break 2
7996 fi
7997 done
7998 done
7999 IFS=$as_save_IFS
8000
8001 fi ;;
8002 esac
8003 fi
8004 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8005 if test -n "$MANIFEST_TOOL"; then
8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8007 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8008 else
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 printf "%s\n" "no" >&6; }
8011 fi
8012
8013
8014 fi
8015 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8016 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8017 # Extract the first word of "mt", so it can be a program name with args.
8018 set dummy mt; ac_word=$2
8019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 printf %s "checking for $ac_word... " >&6; }
8021 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8022 then :
8023 printf %s "(cached) " >&6
8024 else case e in #(
8025 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8026 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8027 else
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8030 do
8031 IFS=$as_save_IFS
8032 case $as_dir in #(((
8033 '') as_dir=./ ;;
8034 */) ;;
8035 *) as_dir=$as_dir/ ;;
8036 esac
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8039 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8041 break 2
8042 fi
8043 done
8044 done
8045 IFS=$as_save_IFS
8046
8047 fi ;;
8048 esac
8049 fi
8050 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8051 if test -n "$ac_ct_MANIFEST_TOOL"; then
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8053 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8054 else
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 printf "%s\n" "no" >&6; }
8057 fi
8058
8059 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8060 MANIFEST_TOOL=":"
8061 else
8062 case $cross_compiling:$ac_tool_warned in
8063 yes:)
8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8065 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8066 ac_tool_warned=yes ;;
8067 esac
8068 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8069 fi
8070 else
8071 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8072 fi
8073
8074 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8076 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8077 if test ${lt_cv_path_manifest_tool+y}
8078 then :
8079 printf %s "(cached) " >&6
8080 else case e in #(
8081 e) lt_cv_path_manifest_tool=no
8082 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8083 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8084 cat conftest.err >&5
8085 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8086 lt_cv_path_manifest_tool=yes
8087 fi
8088 rm -f conftest* ;;
8089 esac
8090 fi
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8092 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8093 if test yes != "$lt_cv_path_manifest_tool"; then
8094 MANIFEST_TOOL=:
8095 fi
8096
8097
8098
8099
8100
8101
8102 case $host_os in
8103 rhapsody* | darwin*)
8104 if test -n "$ac_tool_prefix"; then
8105 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8106 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108 printf %s "checking for $ac_word... " >&6; }
8109 if test ${ac_cv_prog_DSYMUTIL+y}
8110 then :
8111 printf %s "(cached) " >&6
8112 else case e in #(
8113 e) if test -n "$DSYMUTIL"; then
8114 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8115 else
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8118 do
8119 IFS=$as_save_IFS
8120 case $as_dir in #(((
8121 '') as_dir=./ ;;
8122 */) ;;
8123 *) as_dir=$as_dir/ ;;
8124 esac
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8127 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8129 break 2
8130 fi
8131 done
8132 done
8133 IFS=$as_save_IFS
8134
8135 fi ;;
8136 esac
8137 fi
8138 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8139 if test -n "$DSYMUTIL"; then
8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8141 printf "%s\n" "$DSYMUTIL" >&6; }
8142 else
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 printf "%s\n" "no" >&6; }
8145 fi
8146
8147
8148 fi
8149 if test -z "$ac_cv_prog_DSYMUTIL"; then
8150 ac_ct_DSYMUTIL=$DSYMUTIL
8151 # Extract the first word of "dsymutil", so it can be a program name with args.
8152 set dummy dsymutil; ac_word=$2
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 printf %s "checking for $ac_word... " >&6; }
8155 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8156 then :
8157 printf %s "(cached) " >&6
8158 else case e in #(
8159 e) if test -n "$ac_ct_DSYMUTIL"; then
8160 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8161 else
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8164 do
8165 IFS=$as_save_IFS
8166 case $as_dir in #(((
8167 '') as_dir=./ ;;
8168 */) ;;
8169 *) as_dir=$as_dir/ ;;
8170 esac
8171 for ac_exec_ext in '' $ac_executable_extensions; do
8172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8173 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8175 break 2
8176 fi
8177 done
8178 done
8179 IFS=$as_save_IFS
8180
8181 fi ;;
8182 esac
8183 fi
8184 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8185 if test -n "$ac_ct_DSYMUTIL"; then
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8187 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8188 else
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 printf "%s\n" "no" >&6; }
8191 fi
8192
8193 if test "x$ac_ct_DSYMUTIL" = x; then
8194 DSYMUTIL=":"
8195 else
8196 case $cross_compiling:$ac_tool_warned in
8197 yes:)
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8199 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8200 ac_tool_warned=yes ;;
8201 esac
8202 DSYMUTIL=$ac_ct_DSYMUTIL
8203 fi
8204 else
8205 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8206 fi
8207
8208 if test -n "$ac_tool_prefix"; then
8209 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8210 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212 printf %s "checking for $ac_word... " >&6; }
8213 if test ${ac_cv_prog_NMEDIT+y}
8214 then :
8215 printf %s "(cached) " >&6
8216 else case e in #(
8217 e) if test -n "$NMEDIT"; then
8218 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8219 else
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8222 do
8223 IFS=$as_save_IFS
8224 case $as_dir in #(((
8225 '') as_dir=./ ;;
8226 */) ;;
8227 *) as_dir=$as_dir/ ;;
8228 esac
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8231 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8233 break 2
8234 fi
8235 done
8236 done
8237 IFS=$as_save_IFS
8238
8239 fi ;;
8240 esac
8241 fi
8242 NMEDIT=$ac_cv_prog_NMEDIT
8243 if test -n "$NMEDIT"; then
8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8245 printf "%s\n" "$NMEDIT" >&6; }
8246 else
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 printf "%s\n" "no" >&6; }
8249 fi
8250
8251
8252 fi
8253 if test -z "$ac_cv_prog_NMEDIT"; then
8254 ac_ct_NMEDIT=$NMEDIT
8255 # Extract the first word of "nmedit", so it can be a program name with args.
8256 set dummy nmedit; ac_word=$2
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 printf %s "checking for $ac_word... " >&6; }
8259 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8260 then :
8261 printf %s "(cached) " >&6
8262 else case e in #(
8263 e) if test -n "$ac_ct_NMEDIT"; then
8264 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269 IFS=$as_save_IFS
8270 case $as_dir in #(((
8271 '') as_dir=./ ;;
8272 */) ;;
8273 *) as_dir=$as_dir/ ;;
8274 esac
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8277 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8279 break 2
8280 fi
8281 done
8282 done
8283 IFS=$as_save_IFS
8284
8285 fi ;;
8286 esac
8287 fi
8288 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8289 if test -n "$ac_ct_NMEDIT"; then
8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8291 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8292 else
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 printf "%s\n" "no" >&6; }
8295 fi
8296
8297 if test "x$ac_ct_NMEDIT" = x; then
8298 NMEDIT=":"
8299 else
8300 case $cross_compiling:$ac_tool_warned in
8301 yes:)
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8303 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8304 ac_tool_warned=yes ;;
8305 esac
8306 NMEDIT=$ac_ct_NMEDIT
8307 fi
8308 else
8309 NMEDIT="$ac_cv_prog_NMEDIT"
8310 fi
8311
8312 if test -n "$ac_tool_prefix"; then
8313 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8314 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 printf %s "checking for $ac_word... " >&6; }
8317 if test ${ac_cv_prog_LIPO+y}
8318 then :
8319 printf %s "(cached) " >&6
8320 else case e in #(
8321 e) if test -n "$LIPO"; then
8322 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8326 do
8327 IFS=$as_save_IFS
8328 case $as_dir in #(((
8329 '') as_dir=./ ;;
8330 */) ;;
8331 *) as_dir=$as_dir/ ;;
8332 esac
8333 for ac_exec_ext in '' $ac_executable_extensions; do
8334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8335 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8337 break 2
8338 fi
8339 done
8340 done
8341 IFS=$as_save_IFS
8342
8343 fi ;;
8344 esac
8345 fi
8346 LIPO=$ac_cv_prog_LIPO
8347 if test -n "$LIPO"; then
8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8349 printf "%s\n" "$LIPO" >&6; }
8350 else
8351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 printf "%s\n" "no" >&6; }
8353 fi
8354
8355
8356 fi
8357 if test -z "$ac_cv_prog_LIPO"; then
8358 ac_ct_LIPO=$LIPO
8359 # Extract the first word of "lipo", so it can be a program name with args.
8360 set dummy lipo; ac_word=$2
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 printf %s "checking for $ac_word... " >&6; }
8363 if test ${ac_cv_prog_ac_ct_LIPO+y}
8364 then :
8365 printf %s "(cached) " >&6
8366 else case e in #(
8367 e) if test -n "$ac_ct_LIPO"; then
8368 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373 IFS=$as_save_IFS
8374 case $as_dir in #(((
8375 '') as_dir=./ ;;
8376 */) ;;
8377 *) as_dir=$as_dir/ ;;
8378 esac
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8381 ac_cv_prog_ac_ct_LIPO="lipo"
8382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8383 break 2
8384 fi
8385 done
8386 done
8387 IFS=$as_save_IFS
8388
8389 fi ;;
8390 esac
8391 fi
8392 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8393 if test -n "$ac_ct_LIPO"; then
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8395 printf "%s\n" "$ac_ct_LIPO" >&6; }
8396 else
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 printf "%s\n" "no" >&6; }
8399 fi
8400
8401 if test "x$ac_ct_LIPO" = x; then
8402 LIPO=":"
8403 else
8404 case $cross_compiling:$ac_tool_warned in
8405 yes:)
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8407 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8408 ac_tool_warned=yes ;;
8409 esac
8410 LIPO=$ac_ct_LIPO
8411 fi
8412 else
8413 LIPO="$ac_cv_prog_LIPO"
8414 fi
8415
8416 if test -n "$ac_tool_prefix"; then
8417 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8418 set dummy ${ac_tool_prefix}otool; ac_word=$2
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 printf %s "checking for $ac_word... " >&6; }
8421 if test ${ac_cv_prog_OTOOL+y}
8422 then :
8423 printf %s "(cached) " >&6
8424 else case e in #(
8425 e) if test -n "$OTOOL"; then
8426 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8427 else
8428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429 for as_dir in $PATH
8430 do
8431 IFS=$as_save_IFS
8432 case $as_dir in #(((
8433 '') as_dir=./ ;;
8434 */) ;;
8435 *) as_dir=$as_dir/ ;;
8436 esac
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8441 break 2
8442 fi
8443 done
8444 done
8445 IFS=$as_save_IFS
8446
8447 fi ;;
8448 esac
8449 fi
8450 OTOOL=$ac_cv_prog_OTOOL
8451 if test -n "$OTOOL"; then
8452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8453 printf "%s\n" "$OTOOL" >&6; }
8454 else
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 printf "%s\n" "no" >&6; }
8457 fi
8458
8459
8460 fi
8461 if test -z "$ac_cv_prog_OTOOL"; then
8462 ac_ct_OTOOL=$OTOOL
8463 # Extract the first word of "otool", so it can be a program name with args.
8464 set dummy otool; ac_word=$2
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8466 printf %s "checking for $ac_word... " >&6; }
8467 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8468 then :
8469 printf %s "(cached) " >&6
8470 else case e in #(
8471 e) if test -n "$ac_ct_OTOOL"; then
8472 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8473 else
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8476 do
8477 IFS=$as_save_IFS
8478 case $as_dir in #(((
8479 '') as_dir=./ ;;
8480 */) ;;
8481 *) as_dir=$as_dir/ ;;
8482 esac
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8485 ac_cv_prog_ac_ct_OTOOL="otool"
8486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489 done
8490 done
8491 IFS=$as_save_IFS
8492
8493 fi ;;
8494 esac
8495 fi
8496 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8497 if test -n "$ac_ct_OTOOL"; then
8498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8499 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8500 else
8501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 printf "%s\n" "no" >&6; }
8503 fi
8504
8505 if test "x$ac_ct_OTOOL" = x; then
8506 OTOOL=":"
8507 else
8508 case $cross_compiling:$ac_tool_warned in
8509 yes:)
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8511 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8512 ac_tool_warned=yes ;;
8513 esac
8514 OTOOL=$ac_ct_OTOOL
8515 fi
8516 else
8517 OTOOL="$ac_cv_prog_OTOOL"
8518 fi
8519
8520 if test -n "$ac_tool_prefix"; then
8521 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8522 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 printf %s "checking for $ac_word... " >&6; }
8525 if test ${ac_cv_prog_OTOOL64+y}
8526 then :
8527 printf %s "(cached) " >&6
8528 else case e in #(
8529 e) if test -n "$OTOOL64"; then
8530 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8531 else
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH
8534 do
8535 IFS=$as_save_IFS
8536 case $as_dir in #(((
8537 '') as_dir=./ ;;
8538 */) ;;
8539 *) as_dir=$as_dir/ ;;
8540 esac
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8543 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8545 break 2
8546 fi
8547 done
8548 done
8549 IFS=$as_save_IFS
8550
8551 fi ;;
8552 esac
8553 fi
8554 OTOOL64=$ac_cv_prog_OTOOL64
8555 if test -n "$OTOOL64"; then
8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8557 printf "%s\n" "$OTOOL64" >&6; }
8558 else
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 printf "%s\n" "no" >&6; }
8561 fi
8562
8563
8564 fi
8565 if test -z "$ac_cv_prog_OTOOL64"; then
8566 ac_ct_OTOOL64=$OTOOL64
8567 # Extract the first word of "otool64", so it can be a program name with args.
8568 set dummy otool64; ac_word=$2
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570 printf %s "checking for $ac_word... " >&6; }
8571 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8572 then :
8573 printf %s "(cached) " >&6
8574 else case e in #(
8575 e) if test -n "$ac_ct_OTOOL64"; then
8576 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8577 else
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8580 do
8581 IFS=$as_save_IFS
8582 case $as_dir in #(((
8583 '') as_dir=./ ;;
8584 */) ;;
8585 *) as_dir=$as_dir/ ;;
8586 esac
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8589 ac_cv_prog_ac_ct_OTOOL64="otool64"
8590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8591 break 2
8592 fi
8593 done
8594 done
8595 IFS=$as_save_IFS
8596
8597 fi ;;
8598 esac
8599 fi
8600 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8601 if test -n "$ac_ct_OTOOL64"; then
8602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8603 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8604 else
8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606 printf "%s\n" "no" >&6; }
8607 fi
8608
8609 if test "x$ac_ct_OTOOL64" = x; then
8610 OTOOL64=":"
8611 else
8612 case $cross_compiling:$ac_tool_warned in
8613 yes:)
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8615 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8616 ac_tool_warned=yes ;;
8617 esac
8618 OTOOL64=$ac_ct_OTOOL64
8619 fi
8620 else
8621 OTOOL64="$ac_cv_prog_OTOOL64"
8622 fi
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8651 printf %s "checking for -single_module linker flag... " >&6; }
8652 if test ${lt_cv_apple_cc_single_mod+y}
8653 then :
8654 printf %s "(cached) " >&6
8655 else case e in #(
8656 e) lt_cv_apple_cc_single_mod=no
8657 if test -z "$LT_MULTI_MODULE"; then
8658 # By default we will add the -single_module flag. You can override
8659 # by either setting the environment variable LT_MULTI_MODULE
8660 # non-empty at configure time, or by adding -multi_module to the
8661 # link flags.
8662 rm -rf libconftest.dylib*
8663 echo "int foo(void){return 1;}" > conftest.c
8664 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8665 -dynamiclib -Wl,-single_module conftest.c" >&5
8666 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8667 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8668 _lt_result=$?
8669 # If there is a non-empty error log, and "single_module"
8670 # appears in it, assume the flag caused a linker warning
8671 if test -s conftest.err && $GREP single_module conftest.err; then
8672 cat conftest.err >&5
8673 # Otherwise, if the output was created with a 0 exit code from
8674 # the compiler, it worked.
8675 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8676 lt_cv_apple_cc_single_mod=yes
8677 else
8678 cat conftest.err >&5
8679 fi
8680 rm -rf libconftest.dylib*
8681 rm -f conftest.*
8682 fi ;;
8683 esac
8684 fi
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8686 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8687
8688 # Feature test to disable chained fixups since it is not
8689 # compatible with '-undefined dynamic_lookup'
8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8691 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8692 if test ${lt_cv_support_no_fixup_chains+y}
8693 then :
8694 printf %s "(cached) " >&6
8695 else case e in #(
8696 e) save_LDFLAGS=$LDFLAGS
8697 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700
8701 int
8702 main (void)
8703 {
8704
8705 ;
8706 return 0;
8707 }
8708 _ACEOF
8709 if ac_fn_c_try_link "$LINENO"
8710 then :
8711 lt_cv_support_no_fixup_chains=yes
8712 else case e in #(
8713 e) lt_cv_support_no_fixup_chains=no
8714 ;;
8715 esac
8716 fi
8717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8718 conftest$ac_exeext conftest.$ac_ext
8719 LDFLAGS=$save_LDFLAGS
8720
8721 ;;
8722 esac
8723 fi
8724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8725 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8726
8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8728 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8729 if test ${lt_cv_ld_exported_symbols_list+y}
8730 then :
8731 printf %s "(cached) " >&6
8732 else case e in #(
8733 e) lt_cv_ld_exported_symbols_list=no
8734 save_LDFLAGS=$LDFLAGS
8735 echo "_main" > conftest.sym
8736 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739
8740 int
8741 main (void)
8742 {
8743
8744 ;
8745 return 0;
8746 }
8747 _ACEOF
8748 if ac_fn_c_try_link "$LINENO"
8749 then :
8750 lt_cv_ld_exported_symbols_list=yes
8751 else case e in #(
8752 e) lt_cv_ld_exported_symbols_list=no ;;
8753 esac
8754 fi
8755 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8756 conftest$ac_exeext conftest.$ac_ext
8757 LDFLAGS=$save_LDFLAGS
8758 ;;
8759 esac
8760 fi
8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8762 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8763
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8765 printf %s "checking for -force_load linker flag... " >&6; }
8766 if test ${lt_cv_ld_force_load+y}
8767 then :
8768 printf %s "(cached) " >&6
8769 else case e in #(
8770 e) lt_cv_ld_force_load=no
8771 cat > conftest.c << _LT_EOF
8772 int forced_loaded() { return 2;}
8773 _LT_EOF
8774 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8775 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8776 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8777 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8778 echo "$RANLIB libconftest.a" >&5
8779 $RANLIB libconftest.a 2>&5
8780 cat > conftest.c << _LT_EOF
8781 int main(void) { return 0;}
8782 _LT_EOF
8783 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8784 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8785 _lt_result=$?
8786 if test -s conftest.err && $GREP force_load conftest.err; then
8787 cat conftest.err >&5
8788 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8789 lt_cv_ld_force_load=yes
8790 else
8791 cat conftest.err >&5
8792 fi
8793 rm -f conftest.err libconftest.a conftest conftest.c
8794 rm -rf conftest.dSYM
8795 ;;
8796 esac
8797 fi
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8799 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8800 case $host_os in
8801 rhapsody* | darwin1.[012])
8802 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8803 darwin1.*)
8804 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8805 darwin*)
8806 case $MACOSX_DEPLOYMENT_TARGET,$host in
8807 10.[012],*|,*powerpc*-darwin[5-8]*)
8808 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8809 *)
8810 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8811 if test yes = "$lt_cv_support_no_fixup_chains"; then
8812 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8813 fi
8814 ;;
8815 esac
8816 ;;
8817 esac
8818 if test yes = "$lt_cv_apple_cc_single_mod"; then
8819 _lt_dar_single_mod='$single_module'
8820 fi
8821 _lt_dar_needs_single_mod=no
8822 case $host_os in
8823 rhapsody* | darwin1.*)
8824 _lt_dar_needs_single_mod=yes ;;
8825 darwin*)
8826 # When targeting Mac OS X 10.4 (darwin 8) or later,
8827 # -single_module is the default and -multi_module is unsupported.
8828 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8829 # target any OS version that needs -single_module.
8830 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8831 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8832 _lt_dar_needs_single_mod=yes ;;
8833 esac
8834 ;;
8835 esac
8836 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8837 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8838 else
8839 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8840 fi
8841 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8842 _lt_dsymutil='~$DSYMUTIL $lib || :'
8843 else
8844 _lt_dsymutil=
8845 fi
8846 ;;
8847 esac
8848
8849 # func_munge_path_list VARIABLE PATH
8850 # -----------------------------------
8851 # VARIABLE is name of variable containing _space_ separated list of
8852 # directories to be munged by the contents of PATH, which is string
8853 # having a format:
8854 # "DIR[:DIR]:"
8855 # string "DIR[ DIR]" will be prepended to VARIABLE
8856 # ":DIR[:DIR]"
8857 # string "DIR[ DIR]" will be appended to VARIABLE
8858 # "DIRP[:DIRP]::[DIRA:]DIRA"
8859 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8860 # "DIRA[ DIRA]" will be appended to VARIABLE
8861 # "DIR[:DIR]"
8862 # VARIABLE will be replaced by "DIR[ DIR]"
8863 func_munge_path_list ()
8864 {
8865 case x$2 in
8866 x)
8867 ;;
8868 *:)
8869 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8870 ;;
8871 x:*)
8872 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8873 ;;
8874 *::*)
8875 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8876 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8877 ;;
8878 *)
8879 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8880 ;;
8881 esac
8882 }
8883
8884 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8885 "
8886 if test "x$ac_cv_header_dlfcn_h" = xyes
8887 then :
8888 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8889
8890 fi
8891
8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
8893 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
8894 if test ${ac_cv_c_undeclared_builtin_options+y}
8895 then :
8896 printf %s "(cached) " >&6
8897 else case e in #(
8898 e) ac_save_CFLAGS=$CFLAGS
8899 ac_cv_c_undeclared_builtin_options='cannot detect'
8900 for ac_arg in '' -fno-builtin; do
8901 CFLAGS="$ac_save_CFLAGS $ac_arg"
8902 # This test program should *not* compile successfully.
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905
8906 int
8907 main (void)
8908 {
8909 (void) strchr;
8910 ;
8911 return 0;
8912 }
8913 _ACEOF
8914 if ac_fn_c_try_compile "$LINENO"
8915 then :
8916
8917 else case e in #(
8918 e) # This test program should compile successfully.
8919 # No library function is consistently available on
8920 # freestanding implementations, so test against a dummy
8921 # declaration. Include always-available headers on the
8922 # off chance that they somehow elicit warnings.
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 #include <float.h>
8926 #include <limits.h>
8927 #include <stdarg.h>
8928 #include <stddef.h>
8929 extern void ac_decl (int, char *);
8930
8931 int
8932 main (void)
8933 {
8934 (void) ac_decl (0, (char *) 0);
8935 (void) ac_decl;
8936
8937 ;
8938 return 0;
8939 }
8940 _ACEOF
8941 if ac_fn_c_try_compile "$LINENO"
8942 then :
8943 if test x"$ac_arg" = x
8944 then :
8945 ac_cv_c_undeclared_builtin_options='none needed'
8946 else case e in #(
8947 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
8948 esac
8949 fi
8950 break
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8953 esac
8954 fi
8955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8956 done
8957 CFLAGS=$ac_save_CFLAGS
8958 ;;
8959 esac
8960 fi
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
8962 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
8963 case $ac_cv_c_undeclared_builtin_options in #(
8964 'cannot detect') :
8965 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8966 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8967 as_fn_error $? "cannot make $CC report undeclared builtins
8968 See 'config.log' for more details" "$LINENO" 5; } ;; #(
8969 'none needed') :
8970 ac_c_undeclared_builtin_options='' ;; #(
8971 *) :
8972 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
8973 esac
8974
8975 echo 'tldbg:KPSE_COMMON called (pkg=dvidvi, amopt=)' >&5
8976 echo 'tldbg:KPSE_BASIC called (pkg=dvidvi, amopt=)' >&5
8977
8978 #
8979 # am_init_automake
8980 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8981 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8982 # is not polluted with repeated "-I."
8983 am__isrc=' -I$(srcdir)'
8984 # test to see if srcdir already configured
8985 if test -f $srcdir/config.status; then
8986 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8987 fi
8988 fi
8989
8990 # test whether we have cygpath
8991 if test -z "$CYGPATH_W"; then
8992 if (cygpath --version) >/dev/null 2>/dev/null; then
8993 CYGPATH_W='cygpath -w'
8994 else
8995 CYGPATH_W=echo
8996 fi
8997 fi
8998
8999
9000 # Define the identity of the package.
9001 PACKAGE='dvidvi--tex-live-'
9002 VERSION='1.1'
9003
9004
9005 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
9006
9007
9008 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
9009
9010 # Some tools Automake needs.
9011
9012 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9013
9014
9015 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9016
9017
9018 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9019
9020
9021 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9022
9023
9024 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9025
9026 # For better backward compatibility. To be removed once Automake 1.9.x
9027 # dies out for good. For more background, see:
9028 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9029 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9030 mkdir_p='$(MKDIR_P)'
9031
9032 # We need awk for the "check" target (and possibly the TAP driver). The
9033 # system "awk" is bad on some platforms.
9034 # Always define AMTAR for backward compatibility. Yes, it's still used
9035 # in the wild :-( We should find a proper way to deprecate it ...
9036 AMTAR='$${TAR-tar}'
9037
9038
9039 # We'll loop over all known methods to create a tar archive until one works.
9040 _am_tools='gnutar plaintar pax cpio none'
9041
9042 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9043 # There is notably a 21 bits limit for the UID and the GID. In fact,
9044 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9045 # and bug#13588).
9046 am_max_uid=2097151 # 2^21 - 1
9047 am_max_gid=$am_max_uid
9048 # The $UID and $GID variables are not portable, so we need to resort
9049 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9050 # below are definitely unexpected, so allow the users to see them
9051 # (that is, avoid stderr redirection).
9052 am_uid=`id -u || echo unknown`
9053 am_gid=`id -g || echo unknown`
9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9055 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9056 if test x$am_uid = xunknown; then
9057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9058 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9059 elif test $am_uid -le $am_max_uid; then
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9061 printf "%s\n" "yes" >&6; }
9062 else
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 printf "%s\n" "no" >&6; }
9065 _am_tools=none
9066 fi
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9068 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9069 if test x$gm_gid = xunknown; then
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9071 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9072 elif test $am_gid -le $am_max_gid; then
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9074 printf "%s\n" "yes" >&6; }
9075 else
9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 printf "%s\n" "no" >&6; }
9078 _am_tools=none
9079 fi
9080
9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9082 printf %s "checking how to create a ustar tar archive... " >&6; }
9083
9084 # Go ahead even if we have the value already cached. We do so because we
9085 # need to set the values for the 'am__tar' and 'am__untar' variables.
9086 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9087
9088 for _am_tool in $_am_tools; do
9089 case $_am_tool in
9090 gnutar)
9091 for _am_tar in tar gnutar gtar; do
9092 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9093 ($_am_tar --version) >&5 2>&5
9094 ac_status=$?
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } && break
9097 done
9098 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9099 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9100 am__untar="$_am_tar -xf -"
9101 ;;
9102 plaintar)
9103 # Must skip GNU tar: if it does not support --format= it doesn't create
9104 # ustar tarball either.
9105 (tar --version) >/dev/null 2>&1 && continue
9106 am__tar='tar chf - "$$tardir"'
9107 am__tar_='tar chf - "$tardir"'
9108 am__untar='tar xf -'
9109 ;;
9110 pax)
9111 am__tar='pax -L -x ustar -w "$$tardir"'
9112 am__tar_='pax -L -x ustar -w "$tardir"'
9113 am__untar='pax -r'
9114 ;;
9115 cpio)
9116 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9117 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9118 am__untar='cpio -i -H ustar -d'
9119 ;;
9120 none)
9121 am__tar=false
9122 am__tar_=false
9123 am__untar=false
9124 ;;
9125 esac
9126
9127 # If the value was cached, stop now. We just wanted to have am__tar
9128 # and am__untar set.
9129 test -n "${am_cv_prog_tar_ustar}" && break
9130
9131 # tar/untar a dummy directory, and stop if the command works.
9132 rm -rf conftest.dir
9133 mkdir conftest.dir
9134 echo GrepMe > conftest.dir/file
9135 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9136 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }
9140 rm -rf conftest.dir
9141 if test -s conftest.tar; then
9142 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9143 ($am__untar <conftest.tar) >&5 2>&5
9144 ac_status=$?
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }
9147 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9148 (cat conftest.dir/file) >&5 2>&5
9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }
9152 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9153 fi
9154 done
9155 rm -rf conftest.dir
9156
9157 if test ${am_cv_prog_tar_ustar+y}
9158 then :
9159 printf %s "(cached) " >&6
9160 else case e in #(
9161 e) am_cv_prog_tar_ustar=$_am_tool ;;
9162 esac
9163 fi
9164
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9166 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9167
9168
9169
9170
9171
9172 # Variables for tags utilities; see am/tags.am
9173 if test -z "$CTAGS"; then
9174 CTAGS=ctags
9175 fi
9176
9177 if test -z "$ETAGS"; then
9178 ETAGS=etags
9179 fi
9180
9181 if test -z "$CSCOPE"; then
9182 CSCOPE=cscope
9183 fi
9184
9185
9186
9187
9188
9189
9190
9191
9192 # am_maintainer_mode
9193
9194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9195 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9196 # Check whether --enable-maintainer-mode was given.
9197 if test ${enable_maintainer_mode+y}
9198 then :
9199 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9200 else case e in #(
9201 e) USE_MAINTAINER_MODE=no ;;
9202 esac
9203 fi
9204
9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9206 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9207 if test $USE_MAINTAINER_MODE = yes; then
9208 MAINTAINER_MODE_TRUE=
9209 MAINTAINER_MODE_FALSE='#'
9210 else
9211 MAINTAINER_MODE_TRUE='#'
9212 MAINTAINER_MODE_FALSE=
9213 fi
9214
9215 MAINT=$MAINTAINER_MODE_TRUE
9216
9217
9218
9219 # See comments in kpse-setup.m4 about system extensions.
9220
9221
9222 # Check whether prototypes work.
9223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9224 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9225 if test ${kb_cv_c_prototypes+y}
9226 then :
9227 printf %s "(cached) " >&6
9228 else case e in #(
9229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 #include <stdarg.h>
9232 int
9233 main (void)
9234 {
9235 extern void foo(int i,...);
9236 ;
9237 return 0;
9238 }
9239 _ACEOF
9240 if ac_fn_c_try_link "$LINENO"
9241 then :
9242 kb_cv_c_prototypes=yes
9243 else case e in #(
9244 e) kb_cv_c_prototypes=no ;;
9245 esac
9246 fi
9247 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9248 conftest$ac_exeext conftest.$ac_ext ;;
9249 esac
9250 fi
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9252 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9253 if test "x$kb_cv_c_prototypes" = xno; then
9254 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9255 fi
9256
9257 # kpse_compiler_warnings options.
9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9259 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9260 if test ${kpse_cv_warning_cflags+y}
9261 then :
9262 printf %s "(cached) " >&6
9263 else case e in #(
9264 e) if test "x$GCC" = xyes; then
9265 kpse_cv_warning_cflags=
9266 if test "x$enable_compiler_warnings" != xno; then
9267 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9268 case `$CC -dumpversion` in #(
9269 3.4.* | 4.* | 5.*) :
9270 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9271 *) :
9272 ;;
9273 esac
9274 case `$CC -dumpversion` in #(
9275 3.[234].* | 4.* | 5.*) :
9276 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9277 *) :
9278 ;;
9279 esac
9280 if test "x$enable_compiler_warnings" != xmin; then
9281 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9282 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9283 if test "x$enable_compiler_warnings" != xyes; then
9284 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9285 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9286 case `$CC -dumpversion` in #(
9287 3.4.* | 4.* | 5.*) :
9288 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9289 *) :
9290 ;;
9291 esac
9292 if test "x$enable_compiler_warnings" != xmax; then
9293 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9294 fi
9295 fi
9296 fi
9297 fi
9298 elif test "x$enable_compiler_warnings" = xno; then
9299 kpse_cv_warning_cflags=
9300 else
9301 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9302 fi ;;
9303 esac
9304 fi
9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9306 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9307 WARNING_CFLAGS=$kpse_cv_warning_cflags
9308
9309
9310
9311
9312
9313
9314
9315 # end of kpse_basic macro.
9316 echo 'tldbg:KPSE_BASIC done (pkg=dvidvi, amopt=)' >&5
9317
9318 # am_prog_ar must be called before lt_init.
9319
9320 if test -n "$ac_tool_prefix"; then
9321 for ac_prog in ar lib "link -lib"
9322 do
9323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326 printf %s "checking for $ac_word... " >&6; }
9327 if test ${ac_cv_prog_AR+y}
9328 then :
9329 printf %s "(cached) " >&6
9330 else case e in #(
9331 e) if test -n "$AR"; then
9332 ac_cv_prog_AR="$AR" # Let the user override the test.
9333 else
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335 for as_dir in $PATH
9336 do
9337 IFS=$as_save_IFS
9338 case $as_dir in #(((
9339 '') as_dir=./ ;;
9340 */) ;;
9341 *) as_dir=$as_dir/ ;;
9342 esac
9343 for ac_exec_ext in '' $ac_executable_extensions; do
9344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9345 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9347 break 2
9348 fi
9349 done
9350 done
9351 IFS=$as_save_IFS
9352
9353 fi ;;
9354 esac
9355 fi
9356 AR=$ac_cv_prog_AR
9357 if test -n "$AR"; then
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9359 printf "%s\n" "$AR" >&6; }
9360 else
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 printf "%s\n" "no" >&6; }
9363 fi
9364
9365
9366 test -n "$AR" && break
9367 done
9368 fi
9369 if test -z "$AR"; then
9370 ac_ct_AR=$AR
9371 for ac_prog in ar lib "link -lib"
9372 do
9373 # Extract the first word of "$ac_prog", so it can be a program name with args.
9374 set dummy $ac_prog; ac_word=$2
9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9376 printf %s "checking for $ac_word... " >&6; }
9377 if test ${ac_cv_prog_ac_ct_AR+y}
9378 then :
9379 printf %s "(cached) " >&6
9380 else case e in #(
9381 e) if test -n "$ac_ct_AR"; then
9382 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9383 else
9384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 for as_dir in $PATH
9386 do
9387 IFS=$as_save_IFS
9388 case $as_dir in #(((
9389 '') as_dir=./ ;;
9390 */) ;;
9391 *) as_dir=$as_dir/ ;;
9392 esac
9393 for ac_exec_ext in '' $ac_executable_extensions; do
9394 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9395 ac_cv_prog_ac_ct_AR="$ac_prog"
9396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9397 break 2
9398 fi
9399 done
9400 done
9401 IFS=$as_save_IFS
9402
9403 fi ;;
9404 esac
9405 fi
9406 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9407 if test -n "$ac_ct_AR"; then
9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9409 printf "%s\n" "$ac_ct_AR" >&6; }
9410 else
9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412 printf "%s\n" "no" >&6; }
9413 fi
9414
9415
9416 test -n "$ac_ct_AR" && break
9417 done
9418
9419 if test "x$ac_ct_AR" = x; then
9420 AR="false"
9421 else
9422 case $cross_compiling:$ac_tool_warned in
9423 yes:)
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9425 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9426 ac_tool_warned=yes ;;
9427 esac
9428 AR=$ac_ct_AR
9429 fi
9430 fi
9431
9432 : ${AR=ar}
9433 : ${ARFLAGS=cr}
9434
9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9436 printf %s "checking the archiver ($AR) interface... " >&6; }
9437 if test ${am_cv_ar_interface+y}
9438 then :
9439 printf %s "(cached) " >&6
9440 else case e in #(
9441 e) ac_ext=c
9442 ac_cpp='$CPP $CPPFLAGS'
9443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9446
9447 am_cv_ar_interface=ar
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450 int some_variable = 0;
9451 _ACEOF
9452 if ac_fn_c_try_compile "$LINENO"
9453 then :
9454 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9456 (eval $am_ar_try) 2>&5
9457 ac_status=$?
9458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9459 test $ac_status = 0; }
9460 if test "$ac_status" -eq 0; then
9461 am_cv_ar_interface=ar
9462 else
9463 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9465 (eval $am_ar_try) 2>&5
9466 ac_status=$?
9467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9468 test $ac_status = 0; }
9469 if test "$ac_status" -eq 0; then
9470 am_cv_ar_interface=lib
9471 else
9472 am_cv_ar_interface=unknown
9473 fi
9474 fi
9475 rm -f conftest.lib libconftest.a
9476
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9479 ac_ext=c
9480 ac_cpp='$CPP $CPPFLAGS'
9481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9484 ;;
9485 esac
9486 fi
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9488 printf "%s\n" "$am_cv_ar_interface" >&6; }
9489
9490 case $am_cv_ar_interface in
9491 ar)
9492 ;;
9493 lib)
9494 # Microsoft lib, so override with the ar-lib wrapper script.
9495 # FIXME: It is wrong to rewrite AR.
9496 # But if we don't then we get into trouble of one sort or another.
9497 # A longer-term fix would be to have automake use am__AR in this case,
9498 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9499 # similar.
9500 AR="$am_aux_dir/ar-lib $AR"
9501 ;;
9502 unknown)
9503 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9504 ;;
9505 esac
9506
9507 # (end am_prog_ar)
9508 # starting lt_prereq + lt_init.
9509
9510
9511
9512
9513
9514 # Set options
9515 enable_win32_dll=yes
9516
9517 case $host in
9518 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9519 if test -n "$ac_tool_prefix"; then
9520 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9521 set dummy ${ac_tool_prefix}as; ac_word=$2
9522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 printf %s "checking for $ac_word... " >&6; }
9524 if test ${ac_cv_prog_AS+y}
9525 then :
9526 printf %s "(cached) " >&6
9527 else case e in #(
9528 e) if test -n "$AS"; then
9529 ac_cv_prog_AS="$AS" # Let the user override the test.
9530 else
9531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9532 for as_dir in $PATH
9533 do
9534 IFS=$as_save_IFS
9535 case $as_dir in #(((
9536 '') as_dir=./ ;;
9537 */) ;;
9538 *) as_dir=$as_dir/ ;;
9539 esac
9540 for ac_exec_ext in '' $ac_executable_extensions; do
9541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9542 ac_cv_prog_AS="${ac_tool_prefix}as"
9543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9544 break 2
9545 fi
9546 done
9547 done
9548 IFS=$as_save_IFS
9549
9550 fi ;;
9551 esac
9552 fi
9553 AS=$ac_cv_prog_AS
9554 if test -n "$AS"; then
9555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9556 printf "%s\n" "$AS" >&6; }
9557 else
9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 printf "%s\n" "no" >&6; }
9560 fi
9561
9562
9563 fi
9564 if test -z "$ac_cv_prog_AS"; then
9565 ac_ct_AS=$AS
9566 # Extract the first word of "as", so it can be a program name with args.
9567 set dummy as; ac_word=$2
9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569 printf %s "checking for $ac_word... " >&6; }
9570 if test ${ac_cv_prog_ac_ct_AS+y}
9571 then :
9572 printf %s "(cached) " >&6
9573 else case e in #(
9574 e) if test -n "$ac_ct_AS"; then
9575 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9576 else
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH
9579 do
9580 IFS=$as_save_IFS
9581 case $as_dir in #(((
9582 '') as_dir=./ ;;
9583 */) ;;
9584 *) as_dir=$as_dir/ ;;
9585 esac
9586 for ac_exec_ext in '' $ac_executable_extensions; do
9587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9588 ac_cv_prog_ac_ct_AS="as"
9589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9590 break 2
9591 fi
9592 done
9593 done
9594 IFS=$as_save_IFS
9595
9596 fi ;;
9597 esac
9598 fi
9599 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9600 if test -n "$ac_ct_AS"; then
9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9602 printf "%s\n" "$ac_ct_AS" >&6; }
9603 else
9604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 printf "%s\n" "no" >&6; }
9606 fi
9607
9608 if test "x$ac_ct_AS" = x; then
9609 AS="false"
9610 else
9611 case $cross_compiling:$ac_tool_warned in
9612 yes:)
9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9614 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9615 ac_tool_warned=yes ;;
9616 esac
9617 AS=$ac_ct_AS
9618 fi
9619 else
9620 AS="$ac_cv_prog_AS"
9621 fi
9622
9623 if test -n "$ac_tool_prefix"; then
9624 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9625 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9627 printf %s "checking for $ac_word... " >&6; }
9628 if test ${ac_cv_prog_DLLTOOL+y}
9629 then :
9630 printf %s "(cached) " >&6
9631 else case e in #(
9632 e) if test -n "$DLLTOOL"; then
9633 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9634 else
9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636 for as_dir in $PATH
9637 do
9638 IFS=$as_save_IFS
9639 case $as_dir in #(((
9640 '') as_dir=./ ;;
9641 */) ;;
9642 *) as_dir=$as_dir/ ;;
9643 esac
9644 for ac_exec_ext in '' $ac_executable_extensions; do
9645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9646 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9648 break 2
9649 fi
9650 done
9651 done
9652 IFS=$as_save_IFS
9653
9654 fi ;;
9655 esac
9656 fi
9657 DLLTOOL=$ac_cv_prog_DLLTOOL
9658 if test -n "$DLLTOOL"; then
9659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9660 printf "%s\n" "$DLLTOOL" >&6; }
9661 else
9662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663 printf "%s\n" "no" >&6; }
9664 fi
9665
9666
9667 fi
9668 if test -z "$ac_cv_prog_DLLTOOL"; then
9669 ac_ct_DLLTOOL=$DLLTOOL
9670 # Extract the first word of "dlltool", so it can be a program name with args.
9671 set dummy dlltool; ac_word=$2
9672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9673 printf %s "checking for $ac_word... " >&6; }
9674 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9675 then :
9676 printf %s "(cached) " >&6
9677 else case e in #(
9678 e) if test -n "$ac_ct_DLLTOOL"; then
9679 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9680 else
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9683 do
9684 IFS=$as_save_IFS
9685 case $as_dir in #(((
9686 '') as_dir=./ ;;
9687 */) ;;
9688 *) as_dir=$as_dir/ ;;
9689 esac
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9692 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9694 break 2
9695 fi
9696 done
9697 done
9698 IFS=$as_save_IFS
9699
9700 fi ;;
9701 esac
9702 fi
9703 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9704 if test -n "$ac_ct_DLLTOOL"; then
9705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9706 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9707 else
9708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709 printf "%s\n" "no" >&6; }
9710 fi
9711
9712 if test "x$ac_ct_DLLTOOL" = x; then
9713 DLLTOOL="false"
9714 else
9715 case $cross_compiling:$ac_tool_warned in
9716 yes:)
9717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9718 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9719 ac_tool_warned=yes ;;
9720 esac
9721 DLLTOOL=$ac_ct_DLLTOOL
9722 fi
9723 else
9724 DLLTOOL="$ac_cv_prog_DLLTOOL"
9725 fi
9726
9727 if test -n "$ac_tool_prefix"; then
9728 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9729 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 printf %s "checking for $ac_word... " >&6; }
9732 if test ${ac_cv_prog_OBJDUMP+y}
9733 then :
9734 printf %s "(cached) " >&6
9735 else case e in #(
9736 e) if test -n "$OBJDUMP"; then
9737 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9738 else
9739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740 for as_dir in $PATH
9741 do
9742 IFS=$as_save_IFS
9743 case $as_dir in #(((
9744 '') as_dir=./ ;;
9745 */) ;;
9746 *) as_dir=$as_dir/ ;;
9747 esac
9748 for ac_exec_ext in '' $ac_executable_extensions; do
9749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9750 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9752 break 2
9753 fi
9754 done
9755 done
9756 IFS=$as_save_IFS
9757
9758 fi ;;
9759 esac
9760 fi
9761 OBJDUMP=$ac_cv_prog_OBJDUMP
9762 if test -n "$OBJDUMP"; then
9763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9764 printf "%s\n" "$OBJDUMP" >&6; }
9765 else
9766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 printf "%s\n" "no" >&6; }
9768 fi
9769
9770
9771 fi
9772 if test -z "$ac_cv_prog_OBJDUMP"; then
9773 ac_ct_OBJDUMP=$OBJDUMP
9774 # Extract the first word of "objdump", so it can be a program name with args.
9775 set dummy objdump; ac_word=$2
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9777 printf %s "checking for $ac_word... " >&6; }
9778 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9779 then :
9780 printf %s "(cached) " >&6
9781 else case e in #(
9782 e) if test -n "$ac_ct_OBJDUMP"; then
9783 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9784 else
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786 for as_dir in $PATH
9787 do
9788 IFS=$as_save_IFS
9789 case $as_dir in #(((
9790 '') as_dir=./ ;;
9791 */) ;;
9792 *) as_dir=$as_dir/ ;;
9793 esac
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9796 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9798 break 2
9799 fi
9800 done
9801 done
9802 IFS=$as_save_IFS
9803
9804 fi ;;
9805 esac
9806 fi
9807 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9808 if test -n "$ac_ct_OBJDUMP"; then
9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9810 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9811 else
9812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813 printf "%s\n" "no" >&6; }
9814 fi
9815
9816 if test "x$ac_ct_OBJDUMP" = x; then
9817 OBJDUMP="false"
9818 else
9819 case $cross_compiling:$ac_tool_warned in
9820 yes:)
9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9822 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9823 ac_tool_warned=yes ;;
9824 esac
9825 OBJDUMP=$ac_ct_OBJDUMP
9826 fi
9827 else
9828 OBJDUMP="$ac_cv_prog_OBJDUMP"
9829 fi
9830
9831 ;;
9832 esac
9833
9834 test -z "$AS" && AS=as
9835
9836
9837
9838
9839
9840 test -z "$DLLTOOL" && DLLTOOL=dlltool
9841
9842
9843
9844
9845
9846 test -z "$OBJDUMP" && OBJDUMP=objdump
9847
9848
9849
9850
9851
9852
9853
9854 enable_dlopen=no
9855
9856
9857
9858 # Check whether --enable-shared was given.
9859 if test ${enable_shared+y}
9860 then :
9861 enableval=$enable_shared; p=${PACKAGE-default}
9862 case $enableval in
9863 yes) enable_shared=yes ;;
9864 no) enable_shared=no ;;
9865 *)
9866 enable_shared=no
9867 # Look at the argument we got. We use all the common list separators.
9868 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9869 for pkg in $enableval; do
9870 IFS=$lt_save_ifs
9871 if test "X$pkg" = "X$p"; then
9872 enable_shared=yes
9873 fi
9874 done
9875 IFS=$lt_save_ifs
9876 ;;
9877 esac
9878 else case e in #(
9879 e) enable_shared=yes ;;
9880 esac
9881 fi
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891 # Check whether --enable-static was given.
9892 if test ${enable_static+y}
9893 then :
9894 enableval=$enable_static; p=${PACKAGE-default}
9895 case $enableval in
9896 yes) enable_static=yes ;;
9897 no) enable_static=no ;;
9898 *)
9899 enable_static=no
9900 # Look at the argument we got. We use all the common list separators.
9901 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9902 for pkg in $enableval; do
9903 IFS=$lt_save_ifs
9904 if test "X$pkg" = "X$p"; then
9905 enable_static=yes
9906 fi
9907 done
9908 IFS=$lt_save_ifs
9909 ;;
9910 esac
9911 else case e in #(
9912 e) enable_static=yes ;;
9913 esac
9914 fi
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924 # Check whether --enable-pic was given.
9925 if test ${enable_pic+y}
9926 then :
9927 enableval=$enable_pic; lt_p=${PACKAGE-default}
9928 case $enableval in
9929 yes|no) pic_mode=$enableval ;;
9930 *)
9931 pic_mode=default
9932 # Look at the argument we got. We use all the common list separators.
9933 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9934 for lt_pkg in $enableval; do
9935 IFS=$lt_save_ifs
9936 if test "X$lt_pkg" = "X$lt_p"; then
9937 pic_mode=yes
9938 fi
9939 done
9940 IFS=$lt_save_ifs
9941 ;;
9942 esac
9943 else case e in #(
9944 e) # Check whether --with-pic was given.
9945 if test ${with_pic+y}
9946 then :
9947 withval=$with_pic; lt_p=${PACKAGE-default}
9948 case $withval in
9949 yes|no) pic_mode=$withval ;;
9950 *)
9951 pic_mode=default
9952 # Look at the argument we got. We use all the common list separators.
9953 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9954 for lt_pkg in $withval; do
9955 IFS=$lt_save_ifs
9956 if test "X$lt_pkg" = "X$lt_p"; then
9957 pic_mode=yes
9958 fi
9959 done
9960 IFS=$lt_save_ifs
9961 ;;
9962 esac
9963 else case e in #(
9964 e) pic_mode=default ;;
9965 esac
9966 fi
9967
9968 ;;
9969 esac
9970 fi
9971
9972
9973
9974
9975
9976
9977
9978
9979 # Check whether --enable-fast-install was given.
9980 if test ${enable_fast_install+y}
9981 then :
9982 enableval=$enable_fast_install; p=${PACKAGE-default}
9983 case $enableval in
9984 yes) enable_fast_install=yes ;;
9985 no) enable_fast_install=no ;;
9986 *)
9987 enable_fast_install=no
9988 # Look at the argument we got. We use all the common list separators.
9989 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9990 for pkg in $enableval; do
9991 IFS=$lt_save_ifs
9992 if test "X$pkg" = "X$p"; then
9993 enable_fast_install=yes
9994 fi
9995 done
9996 IFS=$lt_save_ifs
9997 ;;
9998 esac
9999 else case e in #(
10000 e) enable_fast_install=yes ;;
10001 esac
10002 fi
10003
10004
10005
10006
10007
10008
10009
10010
10011 shared_archive_member_spec=
10012 case $host,$enable_shared in
10013 power*-*-aix[5-9]*,yes)
10014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10015 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10016 # Check whether --enable-aix-soname was given.
10017 if test ${enable_aix_soname+y}
10018 then :
10019 enableval=$enable_aix_soname; case $enableval in
10020 aix|svr4|both)
10021 ;;
10022 *)
10023 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10024 ;;
10025 esac
10026 lt_cv_with_aix_soname=$enable_aix_soname
10027 else case e in #(
10028 e) # Check whether --with-aix-soname was given.
10029 if test ${with_aix_soname+y}
10030 then :
10031 withval=$with_aix_soname; case $withval in
10032 aix|svr4|both)
10033 ;;
10034 *)
10035 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10036 ;;
10037 esac
10038 lt_cv_with_aix_soname=$with_aix_soname
10039 else case e in #(
10040 e) if test ${lt_cv_with_aix_soname+y}
10041 then :
10042 printf %s "(cached) " >&6
10043 else case e in #(
10044 e) lt_cv_with_aix_soname=aix ;;
10045 esac
10046 fi
10047 ;;
10048 esac
10049 fi
10050
10051 enable_aix_soname=$lt_cv_with_aix_soname ;;
10052 esac
10053 fi
10054
10055 with_aix_soname=$enable_aix_soname
10056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10057 printf "%s\n" "$with_aix_soname" >&6; }
10058 if test aix != "$with_aix_soname"; then
10059 # For the AIX way of multilib, we name the shared archive member
10060 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10061 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10062 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10063 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10064 if test 64 = "${OBJECT_MODE-32}"; then
10065 shared_archive_member_spec=shr_64
10066 else
10067 shared_archive_member_spec=shr
10068 fi
10069 fi
10070 ;;
10071 *)
10072 with_aix_soname=aix
10073 ;;
10074 esac
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085 # This can be used to rebuild libtool when needed
10086 LIBTOOL_DEPS=$ltmain
10087
10088 # Always use our own libtool.
10089 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120 test -z "$LN_S" && LN_S="ln -s"
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135 if test -n "${ZSH_VERSION+set}"; then
10136 setopt NO_GLOB_SUBST
10137 fi
10138
10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10140 printf %s "checking for objdir... " >&6; }
10141 if test ${lt_cv_objdir+y}
10142 then :
10143 printf %s "(cached) " >&6
10144 else case e in #(
10145 e) rm -f .libs 2>/dev/null
10146 mkdir .libs 2>/dev/null
10147 if test -d .libs; then
10148 lt_cv_objdir=.libs
10149 else
10150 # MS-DOS does not allow filenames that begin with a dot.
10151 lt_cv_objdir=_libs
10152 fi
10153 rmdir .libs 2>/dev/null ;;
10154 esac
10155 fi
10156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10157 printf "%s\n" "$lt_cv_objdir" >&6; }
10158 objdir=$lt_cv_objdir
10159
10160
10161
10162
10163
10164 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10165
10166
10167
10168
10169 case $host_os in
10170 aix3*)
10171 # AIX sometimes has problems with the GCC collect2 program. For some
10172 # reason, if we set the COLLECT_NAMES environment variable, the problems
10173 # vanish in a puff of smoke.
10174 if test set != "${COLLECT_NAMES+set}"; then
10175 COLLECT_NAMES=
10176 export COLLECT_NAMES
10177 fi
10178 ;;
10179 esac
10180
10181 # Global variables:
10182 ofile=libtool
10183 can_build_shared=yes
10184
10185 # All known linkers require a '.a' archive for static linking (except MSVC and
10186 # ICC, which need '.lib').
10187 libext=a
10188
10189 with_gnu_ld=$lt_cv_prog_gnu_ld
10190
10191 old_CC=$CC
10192 old_CFLAGS=$CFLAGS
10193
10194 # Set sane defaults for various variables
10195 test -z "$CC" && CC=cc
10196 test -z "$LTCC" && LTCC=$CC
10197 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10198 test -z "$LD" && LD=ld
10199 test -z "$ac_objext" && ac_objext=o
10200
10201 func_cc_basename $compiler
10202 cc_basename=$func_cc_basename_result
10203
10204
10205 # Only perform the check for file, if the check method requires it
10206 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10207 case $deplibs_check_method in
10208 file_magic*)
10209 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10211 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10212 if test ${lt_cv_path_MAGIC_CMD+y}
10213 then :
10214 printf %s "(cached) " >&6
10215 else case e in #(
10216 e) case $MAGIC_CMD in
10217 [\\/*] | ?:[\\/]*)
10218 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10219 ;;
10220 *)
10221 lt_save_MAGIC_CMD=$MAGIC_CMD
10222 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10223 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10224 for ac_dir in $ac_dummy; do
10225 IFS=$lt_save_ifs
10226 test -z "$ac_dir" && ac_dir=.
10227 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10228 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10229 if test -n "$file_magic_test_file"; then
10230 case $deplibs_check_method in
10231 "file_magic "*)
10232 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10233 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10234 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10235 $EGREP "$file_magic_regex" > /dev/null; then
10236 :
10237 else
10238 cat <<_LT_EOF 1>&2
10239
10240 *** Warning: the command libtool uses to detect shared libraries,
10241 *** $file_magic_cmd, produces output that libtool cannot recognize.
10242 *** The result is that libtool may fail to recognize shared libraries
10243 *** as such. This will affect the creation of libtool libraries that
10244 *** depend on shared libraries, but programs linked with such libtool
10245 *** libraries will work regardless of this problem. Nevertheless, you
10246 *** may want to report the problem to your system manager and/or to
10247 *** [email protected]
10248
10249 _LT_EOF
10250 fi ;;
10251 esac
10252 fi
10253 break
10254 fi
10255 done
10256 IFS=$lt_save_ifs
10257 MAGIC_CMD=$lt_save_MAGIC_CMD
10258 ;;
10259 esac ;;
10260 esac
10261 fi
10262
10263 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10264 if test -n "$MAGIC_CMD"; then
10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10266 printf "%s\n" "$MAGIC_CMD" >&6; }
10267 else
10268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 printf "%s\n" "no" >&6; }
10270 fi
10271
10272
10273
10274
10275
10276 if test -z "$lt_cv_path_MAGIC_CMD"; then
10277 if test -n "$ac_tool_prefix"; then
10278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10279 printf %s "checking for file... " >&6; }
10280 if test ${lt_cv_path_MAGIC_CMD+y}
10281 then :
10282 printf %s "(cached) " >&6
10283 else case e in #(
10284 e) case $MAGIC_CMD in
10285 [\\/*] | ?:[\\/]*)
10286 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10287 ;;
10288 *)
10289 lt_save_MAGIC_CMD=$MAGIC_CMD
10290 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10291 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10292 for ac_dir in $ac_dummy; do
10293 IFS=$lt_save_ifs
10294 test -z "$ac_dir" && ac_dir=.
10295 if test -f "$ac_dir/file"; then
10296 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10297 if test -n "$file_magic_test_file"; then
10298 case $deplibs_check_method in
10299 "file_magic "*)
10300 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10301 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10302 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10303 $EGREP "$file_magic_regex" > /dev/null; then
10304 :
10305 else
10306 cat <<_LT_EOF 1>&2
10307
10308 *** Warning: the command libtool uses to detect shared libraries,
10309 *** $file_magic_cmd, produces output that libtool cannot recognize.
10310 *** The result is that libtool may fail to recognize shared libraries
10311 *** as such. This will affect the creation of libtool libraries that
10312 *** depend on shared libraries, but programs linked with such libtool
10313 *** libraries will work regardless of this problem. Nevertheless, you
10314 *** may want to report the problem to your system manager and/or to
10315 *** [email protected]
10316
10317 _LT_EOF
10318 fi ;;
10319 esac
10320 fi
10321 break
10322 fi
10323 done
10324 IFS=$lt_save_ifs
10325 MAGIC_CMD=$lt_save_MAGIC_CMD
10326 ;;
10327 esac ;;
10328 esac
10329 fi
10330
10331 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10332 if test -n "$MAGIC_CMD"; then
10333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10334 printf "%s\n" "$MAGIC_CMD" >&6; }
10335 else
10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10337 printf "%s\n" "no" >&6; }
10338 fi
10339
10340
10341 else
10342 MAGIC_CMD=:
10343 fi
10344 fi
10345
10346 fi
10347 ;;
10348 esac
10349
10350 # Use C for the default configuration in the libtool script
10351
10352 lt_save_CC=$CC
10353 ac_ext=c
10354 ac_cpp='$CPP $CPPFLAGS'
10355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10358
10359
10360 # Source file extension for C test sources.
10361 ac_ext=c
10362
10363 # Object file extension for compiled C test sources.
10364 objext=o
10365 objext=$objext
10366
10367 # Code to be used in simple compile tests
10368 lt_simple_compile_test_code="int some_variable = 0;"
10369
10370 # Code to be used in simple link tests
10371 lt_simple_link_test_code='int main(void){return(0);}'
10372
10373
10374
10375
10376
10377
10378
10379 # If no C compiler was specified, use CC.
10380 LTCC=${LTCC-"$CC"}
10381
10382 # If no C compiler flags were specified, use CFLAGS.
10383 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10384
10385 # Allow CC to be a program name with arguments.
10386 compiler=$CC
10387
10388 # Save the default compiler, since it gets overwritten when the other
10389 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10390 compiler_DEFAULT=$CC
10391
10392 # save warnings/boilerplate of simple test code
10393 ac_outfile=conftest.$ac_objext
10394 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10395 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10396 _lt_compiler_boilerplate=`cat conftest.err`
10397 $RM conftest*
10398
10399 ac_outfile=conftest.$ac_objext
10400 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10401 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10402 _lt_linker_boilerplate=`cat conftest.err`
10403 $RM -r conftest*
10404
10405
10406 ## CAVEAT EMPTOR:
10407 ## There is no encapsulation within the following macros, do not change
10408 ## the running order or otherwise move them around unless you know exactly
10409 ## what you are doing...
10410 if test -n "$compiler"; then
10411
10412 lt_prog_compiler_no_builtin_flag=
10413
10414 if test yes = "$GCC"; then
10415 case $cc_basename in
10416 nvcc*)
10417 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10418 *)
10419 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10420 esac
10421
10422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10423 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10424 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10425 then :
10426 printf %s "(cached) " >&6
10427 else case e in #(
10428 e) lt_cv_prog_compiler_rtti_exceptions=no
10429 ac_outfile=conftest.$ac_objext
10430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10431 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10432 # Insert the option either (1) after the last *FLAGS variable, or
10433 # (2) before a word containing "conftest.", or (3) at the end.
10434 # Note that $ac_compile itself does not contain backslashes and begins
10435 # with a dollar sign (not a hyphen), so the echo should work correctly.
10436 # The option is referenced via a variable to avoid confusing sed.
10437 lt_compile=`echo "$ac_compile" | $SED \
10438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10440 -e 's:$: $lt_compiler_flag:'`
10441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10442 (eval "$lt_compile" 2>conftest.err)
10443 ac_status=$?
10444 cat conftest.err >&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 if (exit $ac_status) && test -s "$ac_outfile"; then
10447 # The compiler can only warn and ignore the option if not recognized
10448 # So say no if there are warnings other than the usual output.
10449 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10451 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10452 lt_cv_prog_compiler_rtti_exceptions=yes
10453 fi
10454 fi
10455 $RM conftest*
10456 ;;
10457 esac
10458 fi
10459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10460 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10461
10462 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10463 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10464 else
10465 :
10466 fi
10467
10468 fi
10469
10470
10471
10472
10473
10474
10475 lt_prog_compiler_wl=
10476 lt_prog_compiler_pic=
10477 lt_prog_compiler_static=
10478
10479
10480 if test yes = "$GCC"; then
10481 lt_prog_compiler_wl='-Wl,'
10482 lt_prog_compiler_static='-static'
10483
10484 case $host_os in
10485 aix*)
10486 # All AIX code is PIC.
10487 if test ia64 = "$host_cpu"; then
10488 # AIX 5 now supports IA64 processor
10489 lt_prog_compiler_static='-Bstatic'
10490 fi
10491 lt_prog_compiler_pic='-fPIC'
10492 ;;
10493
10494 amigaos*)
10495 case $host_cpu in
10496 powerpc)
10497 # see comment about AmigaOS4 .so support
10498 lt_prog_compiler_pic='-fPIC'
10499 ;;
10500 m68k)
10501 # FIXME: we need at least 68020 code to build shared libraries, but
10502 # adding the '-m68020' flag to GCC prevents building anything better,
10503 # like '-m68040'.
10504 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10505 ;;
10506 esac
10507 ;;
10508
10509 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10510 # PIC is the default for these OSes.
10511 ;;
10512
10513 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10514 # This hack is so that the source file can tell whether it is being
10515 # built for inclusion in a dll (and should export symbols for example).
10516 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10517 # (--disable-auto-import) libraries
10518 lt_prog_compiler_pic='-DDLL_EXPORT'
10519 case $host_os in
10520 os2*)
10521 lt_prog_compiler_static='$wl-static'
10522 ;;
10523 esac
10524 ;;
10525
10526 darwin* | rhapsody*)
10527 # PIC is the default on this platform
10528 # Common symbols not allowed in MH_DYLIB files
10529 lt_prog_compiler_pic='-fno-common'
10530 ;;
10531
10532 haiku*)
10533 # PIC is the default for Haiku.
10534 # The "-static" flag exists, but is broken.
10535 lt_prog_compiler_static=
10536 ;;
10537
10538 hpux*)
10539 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10540 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10541 # sets the default TLS model and affects inlining.
10542 case $host_cpu in
10543 hppa*64*)
10544 # +Z the default
10545 ;;
10546 *)
10547 lt_prog_compiler_pic='-fPIC'
10548 ;;
10549 esac
10550 ;;
10551
10552 interix[3-9]*)
10553 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10554 # Instead, we relocate shared libraries at runtime.
10555 ;;
10556
10557 msdosdjgpp*)
10558 # Just because we use GCC doesn't mean we suddenly get shared libraries
10559 # on systems that don't support them.
10560 lt_prog_compiler_can_build_shared=no
10561 enable_shared=no
10562 ;;
10563
10564 *nto* | *qnx*)
10565 # QNX uses GNU C++, but need to define -shared option too, otherwise
10566 # it will coredump.
10567 lt_prog_compiler_pic='-fPIC -shared'
10568 ;;
10569
10570 sysv4*MP*)
10571 if test -d /usr/nec; then
10572 lt_prog_compiler_pic=-Kconform_pic
10573 fi
10574 ;;
10575
10576 *)
10577 lt_prog_compiler_pic='-fPIC'
10578 ;;
10579 esac
10580
10581 case $cc_basename in
10582 nvcc*) # Cuda Compiler Driver 2.2
10583 lt_prog_compiler_wl='-Xlinker '
10584 if test -n "$lt_prog_compiler_pic"; then
10585 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10586 fi
10587 ;;
10588 esac
10589 else
10590 # PORTME Check for flag to pass linker flags through the system compiler.
10591 case $host_os in
10592 aix*)
10593 lt_prog_compiler_wl='-Wl,'
10594 if test ia64 = "$host_cpu"; then
10595 # AIX 5 now supports IA64 processor
10596 lt_prog_compiler_static='-Bstatic'
10597 else
10598 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10599 fi
10600 ;;
10601
10602 darwin* | rhapsody*)
10603 # PIC is the default on this platform
10604 # Common symbols not allowed in MH_DYLIB files
10605 lt_prog_compiler_pic='-fno-common'
10606 case $cc_basename in
10607 nagfor*)
10608 # NAG Fortran compiler
10609 lt_prog_compiler_wl='-Wl,-Wl,,'
10610 lt_prog_compiler_pic='-PIC'
10611 lt_prog_compiler_static='-Bstatic'
10612 ;;
10613 esac
10614 ;;
10615
10616 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10617 # This hack is so that the source file can tell whether it is being
10618 # built for inclusion in a dll (and should export symbols for example).
10619 lt_prog_compiler_pic='-DDLL_EXPORT'
10620 case $host_os in
10621 os2*)
10622 lt_prog_compiler_static='$wl-static'
10623 ;;
10624 esac
10625 ;;
10626
10627 hpux9* | hpux10* | hpux11*)
10628 lt_prog_compiler_wl='-Wl,'
10629 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10630 # not for PA HP-UX.
10631 case $host_cpu in
10632 hppa*64*|ia64*)
10633 # +Z the default
10634 ;;
10635 *)
10636 lt_prog_compiler_pic='+Z'
10637 ;;
10638 esac
10639 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10640 lt_prog_compiler_static='$wl-a ${wl}archive'
10641 ;;
10642
10643 irix5* | irix6* | nonstopux*)
10644 lt_prog_compiler_wl='-Wl,'
10645 # PIC (with -KPIC) is the default.
10646 lt_prog_compiler_static='-non_shared'
10647 ;;
10648
10649 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10650 case $cc_basename in
10651 # old Intel for x86_64, which still supported -KPIC.
10652 ecc*)
10653 lt_prog_compiler_wl='-Wl,'
10654 lt_prog_compiler_pic='-KPIC'
10655 lt_prog_compiler_static='-static'
10656 ;;
10657 *flang* | ftn | f18* | f95*)
10658 # Flang compiler.
10659 lt_prog_compiler_wl='-Wl,'
10660 lt_prog_compiler_pic='-fPIC'
10661 lt_prog_compiler_static='-static'
10662 ;;
10663 # icc used to be incompatible with GCC.
10664 # ICC 10 doesn't accept -KPIC any more.
10665 icc* | ifort*)
10666 lt_prog_compiler_wl='-Wl,'
10667 lt_prog_compiler_pic='-fPIC'
10668 lt_prog_compiler_static='-static'
10669 ;;
10670 # Lahey Fortran 8.1.
10671 lf95*)
10672 lt_prog_compiler_wl='-Wl,'
10673 lt_prog_compiler_pic='--shared'
10674 lt_prog_compiler_static='--static'
10675 ;;
10676 nagfor*)
10677 # NAG Fortran compiler
10678 lt_prog_compiler_wl='-Wl,-Wl,,'
10679 lt_prog_compiler_pic='-PIC'
10680 lt_prog_compiler_static='-Bstatic'
10681 ;;
10682 tcc*)
10683 # Fabrice Bellard et al's Tiny C Compiler
10684 lt_prog_compiler_wl='-Wl,'
10685 lt_prog_compiler_pic='-fPIC'
10686 lt_prog_compiler_static='-static'
10687 ;;
10688 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10689 # Portland Group compilers (*not* the Pentium gcc compiler,
10690 # which looks to be a dead project)
10691 lt_prog_compiler_wl='-Wl,'
10692 lt_prog_compiler_pic='-fpic'
10693 lt_prog_compiler_static='-Bstatic'
10694 ;;
10695 ccc*)
10696 lt_prog_compiler_wl='-Wl,'
10697 # All Alpha code is PIC.
10698 lt_prog_compiler_static='-non_shared'
10699 ;;
10700 xl* | bgxl* | bgf* | mpixl*)
10701 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10702 lt_prog_compiler_wl='-Wl,'
10703 lt_prog_compiler_pic='-qpic'
10704 lt_prog_compiler_static='-qstaticlink'
10705 ;;
10706 *)
10707 case `$CC -V 2>&1 | $SED 5q` in
10708 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10709 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10710 lt_prog_compiler_pic='-KPIC'
10711 lt_prog_compiler_static='-Bstatic'
10712 lt_prog_compiler_wl=''
10713 ;;
10714 *Sun\ F* | *Sun*Fortran*)
10715 lt_prog_compiler_pic='-KPIC'
10716 lt_prog_compiler_static='-Bstatic'
10717 lt_prog_compiler_wl='-Qoption ld '
10718 ;;
10719 *Sun\ C*)
10720 # Sun C 5.9
10721 lt_prog_compiler_pic='-KPIC'
10722 lt_prog_compiler_static='-Bstatic'
10723 lt_prog_compiler_wl='-Wl,'
10724 ;;
10725 *Intel*\ [CF]*Compiler*)
10726 lt_prog_compiler_wl='-Wl,'
10727 lt_prog_compiler_pic='-fPIC'
10728 lt_prog_compiler_static='-static'
10729 ;;
10730 *Portland\ Group*)
10731 lt_prog_compiler_wl='-Wl,'
10732 lt_prog_compiler_pic='-fpic'
10733 lt_prog_compiler_static='-Bstatic'
10734 ;;
10735 esac
10736 ;;
10737 esac
10738 ;;
10739
10740 newsos6)
10741 lt_prog_compiler_pic='-KPIC'
10742 lt_prog_compiler_static='-Bstatic'
10743 ;;
10744
10745 *-mlibc)
10746 lt_prog_compiler_wl='-Wl,'
10747 lt_prog_compiler_pic='-fPIC'
10748 lt_prog_compiler_static='-static'
10749 ;;
10750
10751 *nto* | *qnx*)
10752 # QNX uses GNU C++, but need to define -shared option too, otherwise
10753 # it will coredump.
10754 lt_prog_compiler_pic='-fPIC -shared'
10755 ;;
10756
10757 osf3* | osf4* | osf5*)
10758 lt_prog_compiler_wl='-Wl,'
10759 # All OSF/1 code is PIC.
10760 lt_prog_compiler_static='-non_shared'
10761 ;;
10762
10763 rdos*)
10764 lt_prog_compiler_static='-non_shared'
10765 ;;
10766
10767 serenity*)
10768 ;;
10769
10770 solaris*)
10771 lt_prog_compiler_pic='-KPIC'
10772 lt_prog_compiler_static='-Bstatic'
10773 case $cc_basename in
10774 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10775 lt_prog_compiler_wl='-Qoption ld ';;
10776 *)
10777 lt_prog_compiler_wl='-Wl,';;
10778 esac
10779 ;;
10780
10781 sunos4*)
10782 lt_prog_compiler_wl='-Qoption ld '
10783 lt_prog_compiler_pic='-PIC'
10784 lt_prog_compiler_static='-Bstatic'
10785 ;;
10786
10787 sysv4 | sysv4.2uw2* | sysv4.3*)
10788 lt_prog_compiler_wl='-Wl,'
10789 lt_prog_compiler_pic='-KPIC'
10790 lt_prog_compiler_static='-Bstatic'
10791 ;;
10792
10793 sysv4*MP*)
10794 if test -d /usr/nec; then
10795 lt_prog_compiler_pic='-Kconform_pic'
10796 lt_prog_compiler_static='-Bstatic'
10797 fi
10798 ;;
10799
10800 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10801 lt_prog_compiler_wl='-Wl,'
10802 lt_prog_compiler_pic='-KPIC'
10803 lt_prog_compiler_static='-Bstatic'
10804 ;;
10805
10806 unicos*)
10807 lt_prog_compiler_wl='-Wl,'
10808 lt_prog_compiler_can_build_shared=no
10809 ;;
10810
10811 uts4*)
10812 lt_prog_compiler_pic='-pic'
10813 lt_prog_compiler_static='-Bstatic'
10814 ;;
10815
10816 *)
10817 lt_prog_compiler_can_build_shared=no
10818 ;;
10819 esac
10820 fi
10821
10822 case $host_os in
10823 # For platforms that do not support PIC, -DPIC is meaningless:
10824 *djgpp*)
10825 lt_prog_compiler_pic=
10826 ;;
10827 *)
10828 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10829 ;;
10830 esac
10831
10832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10833 printf %s "checking for $compiler option to produce PIC... " >&6; }
10834 if test ${lt_cv_prog_compiler_pic+y}
10835 then :
10836 printf %s "(cached) " >&6
10837 else case e in #(
10838 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10839 esac
10840 fi
10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10842 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10843 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10844
10845 #
10846 # Check to make sure the PIC flag actually works.
10847 #
10848 if test -n "$lt_prog_compiler_pic"; then
10849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10850 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10851 if test ${lt_cv_prog_compiler_pic_works+y}
10852 then :
10853 printf %s "(cached) " >&6
10854 else case e in #(
10855 e) lt_cv_prog_compiler_pic_works=no
10856 ac_outfile=conftest.$ac_objext
10857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10858 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10859 # Insert the option either (1) after the last *FLAGS variable, or
10860 # (2) before a word containing "conftest.", or (3) at the end.
10861 # Note that $ac_compile itself does not contain backslashes and begins
10862 # with a dollar sign (not a hyphen), so the echo should work correctly.
10863 # The option is referenced via a variable to avoid confusing sed.
10864 lt_compile=`echo "$ac_compile" | $SED \
10865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10867 -e 's:$: $lt_compiler_flag:'`
10868 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10869 (eval "$lt_compile" 2>conftest.err)
10870 ac_status=$?
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 if (exit $ac_status) && test -s "$ac_outfile"; then
10874 # The compiler can only warn and ignore the option if not recognized
10875 # So say no if there are warnings other than the usual output.
10876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10878 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10879 lt_cv_prog_compiler_pic_works=yes
10880 fi
10881 fi
10882 $RM conftest*
10883 ;;
10884 esac
10885 fi
10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10887 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10888
10889 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10890 case $lt_prog_compiler_pic in
10891 "" | " "*) ;;
10892 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10893 esac
10894 else
10895 lt_prog_compiler_pic=
10896 lt_prog_compiler_can_build_shared=no
10897 fi
10898
10899 fi
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911 #
10912 # Check to make sure the static flag actually works.
10913 #
10914 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10916 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10917 if test ${lt_cv_prog_compiler_static_works+y}
10918 then :
10919 printf %s "(cached) " >&6
10920 else case e in #(
10921 e) lt_cv_prog_compiler_static_works=no
10922 save_LDFLAGS=$LDFLAGS
10923 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10924 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10925 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10926 # The linker can only warn and ignore the option if not recognized
10927 # So say no if there are warnings
10928 if test -s conftest.err; then
10929 # Append any errors to the config.log.
10930 cat conftest.err 1>&5
10931 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10933 if diff conftest.exp conftest.er2 >/dev/null; then
10934 lt_cv_prog_compiler_static_works=yes
10935 fi
10936 else
10937 lt_cv_prog_compiler_static_works=yes
10938 fi
10939 fi
10940 $RM -r conftest*
10941 LDFLAGS=$save_LDFLAGS
10942 ;;
10943 esac
10944 fi
10945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10946 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10947
10948 if test yes = "$lt_cv_prog_compiler_static_works"; then
10949 :
10950 else
10951 lt_prog_compiler_static=
10952 fi
10953
10954
10955
10956
10957
10958
10959
10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10961 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10962 if test ${lt_cv_prog_compiler_c_o+y}
10963 then :
10964 printf %s "(cached) " >&6
10965 else case e in #(
10966 e) lt_cv_prog_compiler_c_o=no
10967 $RM -r conftest 2>/dev/null
10968 mkdir conftest
10969 cd conftest
10970 mkdir out
10971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10972
10973 lt_compiler_flag="-o out/conftest2.$ac_objext"
10974 # Insert the option either (1) after the last *FLAGS variable, or
10975 # (2) before a word containing "conftest.", or (3) at the end.
10976 # Note that $ac_compile itself does not contain backslashes and begins
10977 # with a dollar sign (not a hyphen), so the echo should work correctly.
10978 lt_compile=`echo "$ac_compile" | $SED \
10979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10981 -e 's:$: $lt_compiler_flag:'`
10982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10983 (eval "$lt_compile" 2>out/conftest.err)
10984 ac_status=$?
10985 cat out/conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10988 then
10989 # The compiler can only warn and ignore the option if not recognized
10990 # So say no if there are warnings
10991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10992 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10993 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10994 lt_cv_prog_compiler_c_o=yes
10995 fi
10996 fi
10997 chmod u+w . 2>&5
10998 $RM conftest*
10999 # SGI C++ compiler will create directory out/ii_files/ for
11000 # template instantiation
11001 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11002 $RM out/* && rmdir out
11003 cd ..
11004 $RM -r conftest
11005 $RM conftest*
11006 ;;
11007 esac
11008 fi
11009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11010 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11011
11012
11013
11014
11015
11016
11017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11018 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11019 if test ${lt_cv_prog_compiler_c_o+y}
11020 then :
11021 printf %s "(cached) " >&6
11022 else case e in #(
11023 e) lt_cv_prog_compiler_c_o=no
11024 $RM -r conftest 2>/dev/null
11025 mkdir conftest
11026 cd conftest
11027 mkdir out
11028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11029
11030 lt_compiler_flag="-o out/conftest2.$ac_objext"
11031 # Insert the option either (1) after the last *FLAGS variable, or
11032 # (2) before a word containing "conftest.", or (3) at the end.
11033 # Note that $ac_compile itself does not contain backslashes and begins
11034 # with a dollar sign (not a hyphen), so the echo should work correctly.
11035 lt_compile=`echo "$ac_compile" | $SED \
11036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11038 -e 's:$: $lt_compiler_flag:'`
11039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11040 (eval "$lt_compile" 2>out/conftest.err)
11041 ac_status=$?
11042 cat out/conftest.err >&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11045 then
11046 # The compiler can only warn and ignore the option if not recognized
11047 # So say no if there are warnings
11048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11051 lt_cv_prog_compiler_c_o=yes
11052 fi
11053 fi
11054 chmod u+w . 2>&5
11055 $RM conftest*
11056 # SGI C++ compiler will create directory out/ii_files/ for
11057 # template instantiation
11058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11059 $RM out/* && rmdir out
11060 cd ..
11061 $RM -r conftest
11062 $RM conftest*
11063 ;;
11064 esac
11065 fi
11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11067 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11068
11069
11070
11071
11072 hard_links=nottested
11073 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11074 # do not overwrite the value of need_locks provided by the user
11075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11076 printf %s "checking if we can lock with hard links... " >&6; }
11077 hard_links=yes
11078 $RM conftest*
11079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11080 touch conftest.a
11081 ln conftest.a conftest.b 2>&5 || hard_links=no
11082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11084 printf "%s\n" "$hard_links" >&6; }
11085 if test no = "$hard_links"; then
11086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11087 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11088 need_locks=warn
11089 fi
11090 else
11091 need_locks=no
11092 fi
11093
11094
11095
11096
11097
11098
11099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11100 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11101
11102 runpath_var=
11103 allow_undefined_flag=
11104 always_export_symbols=no
11105 archive_cmds=
11106 archive_expsym_cmds=
11107 compiler_needs_object=no
11108 enable_shared_with_static_runtimes=no
11109 export_dynamic_flag_spec=
11110 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11111 hardcode_automatic=no
11112 hardcode_direct=no
11113 hardcode_direct_absolute=no
11114 hardcode_libdir_flag_spec=
11115 hardcode_libdir_separator=
11116 hardcode_minus_L=no
11117 hardcode_shlibpath_var=unsupported
11118 inherit_rpath=no
11119 link_all_deplibs=unknown
11120 module_cmds=
11121 module_expsym_cmds=
11122 old_archive_from_new_cmds=
11123 old_archive_from_expsyms_cmds=
11124 thread_safe_flag_spec=
11125 whole_archive_flag_spec=
11126 # include_expsyms should be a list of space-separated symbols to be *always*
11127 # included in the symbol list
11128 include_expsyms=
11129 # exclude_expsyms can be an extended regexp of symbols to exclude
11130 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11131 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11132 # as well as any symbol that contains 'd'.
11133 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11134 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11135 # platforms (ab)use it in PIC code, but their linkers get confused if
11136 # the symbol is explicitly referenced. Since portable code cannot
11137 # rely on this symbol name, it's probably fine to never include it in
11138 # preloaded symbol tables.
11139 # Exclude shared library initialization/finalization symbols.
11140 extract_expsyms_cmds=
11141
11142 case $host_os in
11143 cygwin* | mingw* | windows* | pw32* | cegcc*)
11144 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11145 # When not using gcc, we currently assume that we are using
11146 # Microsoft Visual C++ or Intel C++ Compiler.
11147 if test yes != "$GCC"; then
11148 with_gnu_ld=no
11149 fi
11150 ;;
11151 interix*)
11152 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11153 with_gnu_ld=yes
11154 ;;
11155 esac
11156
11157 ld_shlibs=yes
11158
11159 # On some targets, GNU ld is compatible enough with the native linker
11160 # that we're better off using the native interface for both.
11161 lt_use_gnu_ld_interface=no
11162 if test yes = "$with_gnu_ld"; then
11163 case $host_os in
11164 aix*)
11165 # The AIX port of GNU ld has always aspired to compatibility
11166 # with the native linker. However, as the warning in the GNU ld
11167 # block says, versions before 2.19.5* couldn't really create working
11168 # shared libraries, regardless of the interface used.
11169 case `$LD -v 2>&1` in
11170 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11171 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11172 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11173 *)
11174 lt_use_gnu_ld_interface=yes
11175 ;;
11176 esac
11177 ;;
11178 *)
11179 lt_use_gnu_ld_interface=yes
11180 ;;
11181 esac
11182 fi
11183
11184 if test yes = "$lt_use_gnu_ld_interface"; then
11185 # If archive_cmds runs LD, not CC, wlarc should be empty
11186 wlarc='$wl'
11187
11188 # Set some defaults for GNU ld with shared library support. These
11189 # are reset later if shared libraries are not supported. Putting them
11190 # here allows them to be overridden if necessary.
11191 runpath_var=LD_RUN_PATH
11192 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11193 export_dynamic_flag_spec='$wl--export-dynamic'
11194 # ancient GNU ld didn't support --whole-archive et. al.
11195 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11196 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11197 else
11198 whole_archive_flag_spec=
11199 fi
11200 supports_anon_versioning=no
11201 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11202 *GNU\ gold*) supports_anon_versioning=yes ;;
11203 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11204 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11205 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11206 *\ 2.11.*) ;; # other 2.11 versions
11207 *) supports_anon_versioning=yes ;;
11208 esac
11209
11210 # See if GNU ld supports shared libraries.
11211 case $host_os in
11212 aix[3-9]*)
11213 # On AIX/PPC, the GNU linker is very broken
11214 if test ia64 != "$host_cpu"; then
11215 ld_shlibs=no
11216 cat <<_LT_EOF 1>&2
11217
11218 *** Warning: the GNU linker, at least up to release 2.19, is reported
11219 *** to be unable to reliably create shared libraries on AIX.
11220 *** Therefore, libtool is disabling shared libraries support. If you
11221 *** really care for shared libraries, you may want to install binutils
11222 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11223 *** You will then need to restart the configuration process.
11224
11225 _LT_EOF
11226 fi
11227 ;;
11228
11229 amigaos*)
11230 case $host_cpu in
11231 powerpc)
11232 # see comment about AmigaOS4 .so support
11233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11234 archive_expsym_cmds=''
11235 ;;
11236 m68k)
11237 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)'
11238 hardcode_libdir_flag_spec='-L$libdir'
11239 hardcode_minus_L=yes
11240 ;;
11241 esac
11242 ;;
11243
11244 beos*)
11245 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11246 allow_undefined_flag=unsupported
11247 # Joseph Beckenbach <[email protected]> says some releases of gcc
11248 # support --undefined. This deserves some investigation. FIXME
11249 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11250 else
11251 ld_shlibs=no
11252 fi
11253 ;;
11254
11255 cygwin* | mingw* | windows* | pw32* | cegcc*)
11256 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11257 # as there is no search path for DLLs.
11258 hardcode_libdir_flag_spec='-L$libdir'
11259 export_dynamic_flag_spec='$wl--export-all-symbols'
11260 allow_undefined_flag=unsupported
11261 always_export_symbols=no
11262 enable_shared_with_static_runtimes=yes
11263 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'
11264 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11265 file_list_spec='@'
11266
11267 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11269 # If the export-symbols file already is a .def file, use it as
11270 # is; otherwise, prepend EXPORTS...
11271 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11272 cp $export_symbols $output_objdir/$soname.def;
11273 else
11274 echo EXPORTS > $output_objdir/$soname.def;
11275 cat $export_symbols >> $output_objdir/$soname.def;
11276 fi~
11277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11278 else
11279 ld_shlibs=no
11280 fi
11281 ;;
11282
11283 haiku*)
11284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11285 link_all_deplibs=no
11286 ;;
11287
11288 os2*)
11289 hardcode_libdir_flag_spec='-L$libdir'
11290 hardcode_minus_L=yes
11291 allow_undefined_flag=unsupported
11292 shrext_cmds=.dll
11293 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11294 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11295 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11296 $ECHO EXPORTS >> $output_objdir/$libname.def~
11297 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11298 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11299 emximp -o $lib $output_objdir/$libname.def'
11300 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11301 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11302 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11303 $ECHO EXPORTS >> $output_objdir/$libname.def~
11304 prefix_cmds="$SED"~
11305 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11306 prefix_cmds="$prefix_cmds -e 1d";
11307 fi~
11308 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11309 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11310 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11311 emximp -o $lib $output_objdir/$libname.def'
11312 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11313 enable_shared_with_static_runtimes=yes
11314 file_list_spec='@'
11315 ;;
11316
11317 interix[3-9]*)
11318 hardcode_direct=no
11319 hardcode_shlibpath_var=no
11320 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11321 export_dynamic_flag_spec='$wl-E'
11322 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11323 # Instead, shared libraries are loaded at an image base (0x10000000 by
11324 # default) and relocated if they conflict, which is a slow very memory
11325 # consuming and fragmenting process. To avoid this, we pick a random,
11326 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11327 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11328 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11329 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'
11330 ;;
11331
11332 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11333 tmp_diet=no
11334 if test linux-dietlibc = "$host_os"; then
11335 case $cc_basename in
11336 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11337 esac
11338 fi
11339 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11340 && test no = "$tmp_diet"
11341 then
11342 tmp_addflag=' $pic_flag'
11343 tmp_sharedflag='-shared'
11344 case $cc_basename,$host_cpu in
11345 pgcc*) # Portland Group C compiler
11346 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'
11347 tmp_addflag=' $pic_flag'
11348 ;;
11349 pgf77* | pgf90* | pgf95* | pgfortran*)
11350 # Portland Group f77 and f90 compilers
11351 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'
11352 tmp_addflag=' $pic_flag -Mnomain' ;;
11353 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11354 tmp_addflag=' -i_dynamic' ;;
11355 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11356 tmp_addflag=' -i_dynamic -nofor_main' ;;
11357 ifc* | ifort*) # Intel Fortran compiler
11358 tmp_addflag=' -nofor_main' ;;
11359 lf95*) # Lahey Fortran 8.1
11360 whole_archive_flag_spec=
11361 tmp_sharedflag='--shared' ;;
11362 nagfor*) # NAGFOR 5.3
11363 tmp_sharedflag='-Wl,-shared' ;;
11364 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11365 tmp_sharedflag='-qmkshrobj'
11366 tmp_addflag= ;;
11367 nvcc*) # Cuda Compiler Driver 2.2
11368 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'
11369 compiler_needs_object=yes
11370 ;;
11371 esac
11372 case `$CC -V 2>&1 | $SED 5q` in
11373 *Sun\ C*) # Sun C 5.9
11374 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'
11375 compiler_needs_object=yes
11376 tmp_sharedflag='-G' ;;
11377 *Sun\ F*) # Sun Fortran 8.3
11378 tmp_sharedflag='-G' ;;
11379 esac
11380 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11381
11382 if test yes = "$supports_anon_versioning"; then
11383 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11384 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11385 echo "local: *; };" >> $output_objdir/$libname.ver~
11386 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11387 fi
11388
11389 case $cc_basename in
11390 tcc*)
11391 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11392 export_dynamic_flag_spec='-rdynamic'
11393 ;;
11394 xlf* | bgf* | bgxlf* | mpixlf*)
11395 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11396 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11397 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11398 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11399 if test yes = "$supports_anon_versioning"; then
11400 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11401 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11402 echo "local: *; };" >> $output_objdir/$libname.ver~
11403 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11404 fi
11405 ;;
11406 esac
11407 else
11408 ld_shlibs=no
11409 fi
11410 ;;
11411
11412 *-mlibc)
11413 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11414 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11415 ;;
11416
11417 netbsd* | netbsdelf*-gnu)
11418 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11419 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11420 wlarc=
11421 else
11422 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11423 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11424 fi
11425 ;;
11426
11427 solaris*)
11428 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11429 ld_shlibs=no
11430 cat <<_LT_EOF 1>&2
11431
11432 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11433 *** create shared libraries on Solaris systems. Therefore, libtool
11434 *** is disabling shared libraries support. We urge you to upgrade GNU
11435 *** binutils to release 2.9.1 or newer. Another option is to modify
11436 *** your PATH or compiler configuration so that the native linker is
11437 *** used, and then restart.
11438
11439 _LT_EOF
11440 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11441 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11442 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11443 else
11444 ld_shlibs=no
11445 fi
11446 ;;
11447
11448 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11449 case `$LD -v 2>&1` in
11450 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11451 ld_shlibs=no
11452 cat <<_LT_EOF 1>&2
11453
11454 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11455 *** reliably create shared libraries on SCO systems. Therefore, libtool
11456 *** is disabling shared libraries support. We urge you to upgrade GNU
11457 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11458 *** your PATH or compiler configuration so that the native linker is
11459 *** used, and then restart.
11460
11461 _LT_EOF
11462 ;;
11463 *)
11464 # For security reasons, it is highly recommended that you always
11465 # use absolute paths for naming shared libraries, and exclude the
11466 # DT_RUNPATH tag from executables and libraries. But doing so
11467 # requires that you compile everything twice, which is a pain.
11468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11469 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11471 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11472 else
11473 ld_shlibs=no
11474 fi
11475 ;;
11476 esac
11477 ;;
11478
11479 sunos4*)
11480 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11481 wlarc=
11482 hardcode_direct=yes
11483 hardcode_shlibpath_var=no
11484 ;;
11485
11486 *)
11487 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11488 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11489 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11490 else
11491 ld_shlibs=no
11492 fi
11493 ;;
11494 esac
11495
11496 if test no = "$ld_shlibs"; then
11497 runpath_var=
11498 hardcode_libdir_flag_spec=
11499 export_dynamic_flag_spec=
11500 whole_archive_flag_spec=
11501 fi
11502 else
11503 # PORTME fill in a description of your system's linker (not GNU ld)
11504 case $host_os in
11505 aix3*)
11506 allow_undefined_flag=unsupported
11507 always_export_symbols=yes
11508 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'
11509 # Note: this linker hardcodes the directories in LIBPATH if there
11510 # are no directories specified by -L.
11511 hardcode_minus_L=yes
11512 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11513 # Neither direct hardcoding nor static linking is supported with a
11514 # broken collect2.
11515 hardcode_direct=unsupported
11516 fi
11517 ;;
11518
11519 aix[4-9]*)
11520 if test ia64 = "$host_cpu"; then
11521 # On IA64, the linker does run time linking by default, so we don't
11522 # have to do anything special.
11523 aix_use_runtimelinking=no
11524 exp_sym_flag='-Bexport'
11525 no_entry_flag=
11526 else
11527 # If we're using GNU nm, then we don't want the "-C" option.
11528 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11529 # Without the "-l" option, or with the "-B" option, AIX nm treats
11530 # weak defined symbols like other global defined symbols, whereas
11531 # GNU nm marks them as "W".
11532 # While the 'weak' keyword is ignored in the Export File, we need
11533 # it in the Import File for the 'aix-soname' feature, so we have
11534 # to replace the "-B" option with "-P" for AIX nm.
11535 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11536 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'
11537 else
11538 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'
11539 fi
11540 aix_use_runtimelinking=no
11541
11542 # Test if we are trying to use run time linking or normal
11543 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11544 # have runtime linking enabled, and use it for executables.
11545 # For shared libraries, we enable/disable runtime linking
11546 # depending on the kind of the shared library created -
11547 # when "with_aix_soname,aix_use_runtimelinking" is:
11548 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11549 # "aix,yes" lib.so shared, rtl:yes, for executables
11550 # lib.a static archive
11551 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11552 # lib.a(lib.so.V) shared, rtl:no, for executables
11553 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11554 # lib.a(lib.so.V) shared, rtl:no
11555 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11556 # lib.a static archive
11557 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11558 for ld_flag in $LDFLAGS; do
11559 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11560 aix_use_runtimelinking=yes
11561 break
11562 fi
11563 done
11564 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11565 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11566 # so we don't have lib.a shared libs to link our executables.
11567 # We have to force runtime linking in this case.
11568 aix_use_runtimelinking=yes
11569 LDFLAGS="$LDFLAGS -Wl,-brtl"
11570 fi
11571 ;;
11572 esac
11573
11574 exp_sym_flag='-bexport'
11575 no_entry_flag='-bnoentry'
11576 fi
11577
11578 # When large executables or shared objects are built, AIX ld can
11579 # have problems creating the table of contents. If linking a library
11580 # or program results in "error TOC overflow" add -mminimal-toc to
11581 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11582 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11583
11584 archive_cmds=''
11585 hardcode_direct=yes
11586 hardcode_direct_absolute=yes
11587 hardcode_libdir_separator=':'
11588 link_all_deplibs=yes
11589 file_list_spec='$wl-f,'
11590 case $with_aix_soname,$aix_use_runtimelinking in
11591 aix,*) ;; # traditional, no import file
11592 svr4,* | *,yes) # use import file
11593 # The Import File defines what to hardcode.
11594 hardcode_direct=no
11595 hardcode_direct_absolute=no
11596 ;;
11597 esac
11598
11599 if test yes = "$GCC"; then
11600 case $host_os in aix4.[012]|aix4.[012].*)
11601 # We only want to do this on AIX 4.2 and lower, the check
11602 # below for broken collect2 doesn't work under 4.3+
11603 collect2name=`$CC -print-prog-name=collect2`
11604 if test -f "$collect2name" &&
11605 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11606 then
11607 # We have reworked collect2
11608 :
11609 else
11610 # We have old collect2
11611 hardcode_direct=unsupported
11612 # It fails to find uninstalled libraries when the uninstalled
11613 # path is not listed in the libpath. Setting hardcode_minus_L
11614 # to unsupported forces relinking
11615 hardcode_minus_L=yes
11616 hardcode_libdir_flag_spec='-L$libdir'
11617 hardcode_libdir_separator=
11618 fi
11619 ;;
11620 esac
11621 shared_flag='-shared'
11622 if test yes = "$aix_use_runtimelinking"; then
11623 shared_flag="$shared_flag "'$wl-G'
11624 fi
11625 # Need to ensure runtime linking is disabled for the traditional
11626 # shared library, or the linker may eventually find shared libraries
11627 # /with/ Import File - we do not want to mix them.
11628 shared_flag_aix='-shared'
11629 shared_flag_svr4='-shared $wl-G'
11630 else
11631 # not using gcc
11632 if test ia64 = "$host_cpu"; then
11633 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11634 # chokes on -Wl,-G. The following line is correct:
11635 shared_flag='-G'
11636 else
11637 if test yes = "$aix_use_runtimelinking"; then
11638 shared_flag='$wl-G'
11639 else
11640 shared_flag='$wl-bM:SRE'
11641 fi
11642 shared_flag_aix='$wl-bM:SRE'
11643 shared_flag_svr4='$wl-G'
11644 fi
11645 fi
11646
11647 export_dynamic_flag_spec='$wl-bexpall'
11648 # It seems that -bexpall does not export symbols beginning with
11649 # underscore (_), so it is better to generate a list of symbols to export.
11650 always_export_symbols=yes
11651 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11652 # Warning - without using the other runtime loading flags (-brtl),
11653 # -berok will link without error, but may produce a broken library.
11654 allow_undefined_flag='-berok'
11655 # Determine the default libpath from the value encoded in an
11656 # empty executable.
11657 if test set = "${lt_cv_aix_libpath+set}"; then
11658 aix_libpath=$lt_cv_aix_libpath
11659 else
11660 if test ${lt_cv_aix_libpath_+y}
11661 then :
11662 printf %s "(cached) " >&6
11663 else case e in #(
11664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11666
11667 int
11668 main (void)
11669 {
11670
11671 ;
11672 return 0;
11673 }
11674 _ACEOF
11675 if ac_fn_c_try_link "$LINENO"
11676 then :
11677
11678 lt_aix_libpath_sed='
11679 /Import File Strings/,/^$/ {
11680 /^0/ {
11681 s/^0 *\([^ ]*\) *$/\1/
11682 p
11683 }
11684 }'
11685 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11686 # Check for a 64-bit object if we didn't find anything.
11687 if test -z "$lt_cv_aix_libpath_"; then
11688 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11689 fi
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11692 conftest$ac_exeext conftest.$ac_ext
11693 if test -z "$lt_cv_aix_libpath_"; then
11694 lt_cv_aix_libpath_=/usr/lib:/lib
11695 fi
11696 ;;
11697 esac
11698 fi
11699
11700 aix_libpath=$lt_cv_aix_libpath_
11701 fi
11702
11703 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11704 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
11705 else
11706 if test ia64 = "$host_cpu"; then
11707 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11708 allow_undefined_flag="-z nodefs"
11709 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"
11710 else
11711 # Determine the default libpath from the value encoded in an
11712 # empty executable.
11713 if test set = "${lt_cv_aix_libpath+set}"; then
11714 aix_libpath=$lt_cv_aix_libpath
11715 else
11716 if test ${lt_cv_aix_libpath_+y}
11717 then :
11718 printf %s "(cached) " >&6
11719 else case e in #(
11720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11722
11723 int
11724 main (void)
11725 {
11726
11727 ;
11728 return 0;
11729 }
11730 _ACEOF
11731 if ac_fn_c_try_link "$LINENO"
11732 then :
11733
11734 lt_aix_libpath_sed='
11735 /Import File Strings/,/^$/ {
11736 /^0/ {
11737 s/^0 *\([^ ]*\) *$/\1/
11738 p
11739 }
11740 }'
11741 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11742 # Check for a 64-bit object if we didn't find anything.
11743 if test -z "$lt_cv_aix_libpath_"; then
11744 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11745 fi
11746 fi
11747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11748 conftest$ac_exeext conftest.$ac_ext
11749 if test -z "$lt_cv_aix_libpath_"; then
11750 lt_cv_aix_libpath_=/usr/lib:/lib
11751 fi
11752 ;;
11753 esac
11754 fi
11755
11756 aix_libpath=$lt_cv_aix_libpath_
11757 fi
11758
11759 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11760 # Warning - without using the other run time loading flags,
11761 # -berok will link without error, but may produce a broken library.
11762 no_undefined_flag=' $wl-bernotok'
11763 allow_undefined_flag=' $wl-berok'
11764 if test yes = "$with_gnu_ld"; then
11765 # We only use this code for GNU lds that support --whole-archive.
11766 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11767 else
11768 # Exported symbols can be pulled into shared objects from archives
11769 whole_archive_flag_spec='$convenience'
11770 fi
11771 archive_cmds_need_lc=yes
11772 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11773 # -brtl affects multiple linker settings, -berok does not and is overridden later
11774 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11775 if test svr4 != "$with_aix_soname"; then
11776 # This is similar to how AIX traditionally builds its shared libraries.
11777 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'
11778 fi
11779 if test aix != "$with_aix_soname"; then
11780 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'
11781 else
11782 # used by -dlpreopen to get the symbols
11783 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11784 fi
11785 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11786 fi
11787 fi
11788 ;;
11789
11790 amigaos*)
11791 case $host_cpu in
11792 powerpc)
11793 # see comment about AmigaOS4 .so support
11794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11795 archive_expsym_cmds=''
11796 ;;
11797 m68k)
11798 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)'
11799 hardcode_libdir_flag_spec='-L$libdir'
11800 hardcode_minus_L=yes
11801 ;;
11802 esac
11803 ;;
11804
11805 bsdi[45]*)
11806 export_dynamic_flag_spec=-rdynamic
11807 ;;
11808
11809 cygwin* | mingw* | windows* | pw32* | cegcc*)
11810 # When not using gcc, we currently assume that we are using
11811 # Microsoft Visual C++ or Intel C++ Compiler.
11812 # hardcode_libdir_flag_spec is actually meaningless, as there is
11813 # no search path for DLLs.
11814 case $cc_basename in
11815 cl* | icl*)
11816 # Native MSVC or ICC
11817 hardcode_libdir_flag_spec=' '
11818 allow_undefined_flag=unsupported
11819 always_export_symbols=yes
11820 file_list_spec='@'
11821 # Tell ltmain to make .lib files, not .a files.
11822 libext=lib
11823 # Tell ltmain to make .dll files, not .so files.
11824 shrext_cmds=.dll
11825 # FIXME: Setting linknames here is a bad hack.
11826 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11827 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11828 cp "$export_symbols" "$output_objdir/$soname.def";
11829 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11830 else
11831 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11832 fi~
11833 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11834 linknames='
11835 # The linker will not automatically build a static lib if we build a DLL.
11836 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11837 enable_shared_with_static_runtimes=yes
11838 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11839 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11840 # Don't use ranlib
11841 old_postinstall_cmds='chmod 644 $oldlib'
11842 postlink_cmds='lt_outputfile="@OUTPUT@"~
11843 lt_tool_outputfile="@TOOL_OUTPUT@"~
11844 case $lt_outputfile in
11845 *.exe|*.EXE) ;;
11846 *)
11847 lt_outputfile=$lt_outputfile.exe
11848 lt_tool_outputfile=$lt_tool_outputfile.exe
11849 ;;
11850 esac~
11851 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11852 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11853 $RM "$lt_outputfile.manifest";
11854 fi'
11855 ;;
11856 *)
11857 # Assume MSVC and ICC wrapper
11858 hardcode_libdir_flag_spec=' '
11859 allow_undefined_flag=unsupported
11860 # Tell ltmain to make .lib files, not .a files.
11861 libext=lib
11862 # Tell ltmain to make .dll files, not .so files.
11863 shrext_cmds=.dll
11864 # FIXME: Setting linknames here is a bad hack.
11865 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11866 # The linker will automatically build a .lib file if we build a DLL.
11867 old_archive_from_new_cmds='true'
11868 # FIXME: Should let the user specify the lib program.
11869 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11870 enable_shared_with_static_runtimes=yes
11871 ;;
11872 esac
11873 ;;
11874
11875 darwin* | rhapsody*)
11876
11877
11878 archive_cmds_need_lc=no
11879 hardcode_direct=no
11880 hardcode_automatic=yes
11881 hardcode_shlibpath_var=unsupported
11882 if test yes = "$lt_cv_ld_force_load"; then
11883 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\"`'
11884
11885 else
11886 whole_archive_flag_spec=''
11887 fi
11888 link_all_deplibs=yes
11889 allow_undefined_flag=$_lt_dar_allow_undefined
11890 case $cc_basename in
11891 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11892 *) _lt_dar_can_shared=$GCC ;;
11893 esac
11894 if test yes = "$_lt_dar_can_shared"; then
11895 output_verbose_link_cmd=func_echo_all
11896 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11897 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11898 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"
11899 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"
11900
11901 else
11902 ld_shlibs=no
11903 fi
11904
11905 ;;
11906
11907 dgux*)
11908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11909 hardcode_libdir_flag_spec='-L$libdir'
11910 hardcode_shlibpath_var=no
11911 ;;
11912
11913 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11914 # support. Future versions do this automatically, but an explicit c++rt0.o
11915 # does not break anything, and helps significantly (at the cost of a little
11916 # extra space).
11917 freebsd2.2*)
11918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11919 hardcode_libdir_flag_spec='-R$libdir'
11920 hardcode_direct=yes
11921 hardcode_shlibpath_var=no
11922 ;;
11923
11924 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11925 freebsd2.*)
11926 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11927 hardcode_direct=yes
11928 hardcode_minus_L=yes
11929 hardcode_shlibpath_var=no
11930 ;;
11931
11932 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11933 freebsd* | dragonfly* | midnightbsd*)
11934 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11935 hardcode_libdir_flag_spec='-R$libdir'
11936 hardcode_direct=yes
11937 hardcode_shlibpath_var=no
11938 ;;
11939
11940 hpux9*)
11941 if test yes = "$GCC"; then
11942 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'
11943 else
11944 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'
11945 fi
11946 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11947 hardcode_libdir_separator=:
11948 hardcode_direct=yes
11949
11950 # hardcode_minus_L: Not really in the search PATH,
11951 # but as the default location of the library.
11952 hardcode_minus_L=yes
11953 export_dynamic_flag_spec='$wl-E'
11954 ;;
11955
11956 hpux10*)
11957 if test yes,no = "$GCC,$with_gnu_ld"; then
11958 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11959 else
11960 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11961 fi
11962 if test no = "$with_gnu_ld"; then
11963 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11964 hardcode_libdir_separator=:
11965 hardcode_direct=yes
11966 hardcode_direct_absolute=yes
11967 export_dynamic_flag_spec='$wl-E'
11968 # hardcode_minus_L: Not really in the search PATH,
11969 # but as the default location of the library.
11970 hardcode_minus_L=yes
11971 fi
11972 ;;
11973
11974 hpux11*)
11975 if test yes,no = "$GCC,$with_gnu_ld"; then
11976 case $host_cpu in
11977 hppa*64*)
11978 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11979 ;;
11980 ia64*)
11981 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11982 ;;
11983 *)
11984 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11985 ;;
11986 esac
11987 else
11988 case $host_cpu in
11989 hppa*64*)
11990 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11991 ;;
11992 ia64*)
11993 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11994 ;;
11995 *)
11996
11997 # Older versions of the 11.00 compiler do not understand -b yet
11998 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12000 printf %s "checking if $CC understands -b... " >&6; }
12001 if test ${lt_cv_prog_compiler__b+y}
12002 then :
12003 printf %s "(cached) " >&6
12004 else case e in #(
12005 e) lt_cv_prog_compiler__b=no
12006 save_LDFLAGS=$LDFLAGS
12007 LDFLAGS="$LDFLAGS -b"
12008 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12009 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12010 # The linker can only warn and ignore the option if not recognized
12011 # So say no if there are warnings
12012 if test -s conftest.err; then
12013 # Append any errors to the config.log.
12014 cat conftest.err 1>&5
12015 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12017 if diff conftest.exp conftest.er2 >/dev/null; then
12018 lt_cv_prog_compiler__b=yes
12019 fi
12020 else
12021 lt_cv_prog_compiler__b=yes
12022 fi
12023 fi
12024 $RM -r conftest*
12025 LDFLAGS=$save_LDFLAGS
12026 ;;
12027 esac
12028 fi
12029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12030 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12031
12032 if test yes = "$lt_cv_prog_compiler__b"; then
12033 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12034 else
12035 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12036 fi
12037
12038 ;;
12039 esac
12040 fi
12041 if test no = "$with_gnu_ld"; then
12042 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12043 hardcode_libdir_separator=:
12044
12045 case $host_cpu in
12046 hppa*64*|ia64*)
12047 hardcode_direct=no
12048 hardcode_shlibpath_var=no
12049 ;;
12050 *)
12051 hardcode_direct=yes
12052 hardcode_direct_absolute=yes
12053 export_dynamic_flag_spec='$wl-E'
12054
12055 # hardcode_minus_L: Not really in the search PATH,
12056 # but as the default location of the library.
12057 hardcode_minus_L=yes
12058 ;;
12059 esac
12060 fi
12061 ;;
12062
12063 irix5* | irix6* | nonstopux*)
12064 if test yes = "$GCC"; then
12065 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'
12066 # Try to use the -exported_symbol ld option, if it does not
12067 # work, assume that -exports_file does not work either and
12068 # implicitly export all symbols.
12069 # This should be the same for all languages, so no per-tag cache variable.
12070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12071 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12072 if test ${lt_cv_irix_exported_symbol+y}
12073 then :
12074 printf %s "(cached) " >&6
12075 else case e in #(
12076 e) save_LDFLAGS=$LDFLAGS
12077 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080 int foo (void) { return 0; }
12081 _ACEOF
12082 if ac_fn_c_try_link "$LINENO"
12083 then :
12084 lt_cv_irix_exported_symbol=yes
12085 else case e in #(
12086 e) lt_cv_irix_exported_symbol=no ;;
12087 esac
12088 fi
12089 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12090 conftest$ac_exeext conftest.$ac_ext
12091 LDFLAGS=$save_LDFLAGS ;;
12092 esac
12093 fi
12094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12095 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12096 if test yes = "$lt_cv_irix_exported_symbol"; then
12097 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'
12098 fi
12099 else
12100 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'
12101 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'
12102 fi
12103 archive_cmds_need_lc='no'
12104 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12105 hardcode_libdir_separator=:
12106 inherit_rpath=yes
12107 link_all_deplibs=yes
12108 ;;
12109
12110 linux*)
12111 case $cc_basename in
12112 tcc*)
12113 # Fabrice Bellard et al's Tiny C Compiler
12114 ld_shlibs=yes
12115 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12116 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12117 ;;
12118 esac
12119 ;;
12120
12121 *-mlibc)
12122 ;;
12123
12124 netbsd* | netbsdelf*-gnu)
12125 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12126 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12127 else
12128 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12129 fi
12130 hardcode_libdir_flag_spec='-R$libdir'
12131 hardcode_direct=yes
12132 hardcode_shlibpath_var=no
12133 ;;
12134
12135 newsos6)
12136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12137 hardcode_direct=yes
12138 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12139 hardcode_libdir_separator=:
12140 hardcode_shlibpath_var=no
12141 ;;
12142
12143 *nto* | *qnx*)
12144 ;;
12145
12146 openbsd*)
12147 if test -f /usr/libexec/ld.so; then
12148 hardcode_direct=yes
12149 hardcode_shlibpath_var=no
12150 hardcode_direct_absolute=yes
12151 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12152 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12153 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12154 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12155 export_dynamic_flag_spec='$wl-E'
12156 else
12157 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12158 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12159 fi
12160 else
12161 ld_shlibs=no
12162 fi
12163 ;;
12164
12165 os2*)
12166 hardcode_libdir_flag_spec='-L$libdir'
12167 hardcode_minus_L=yes
12168 allow_undefined_flag=unsupported
12169 shrext_cmds=.dll
12170 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12171 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12172 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12173 $ECHO EXPORTS >> $output_objdir/$libname.def~
12174 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12175 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12176 emximp -o $lib $output_objdir/$libname.def'
12177 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12178 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12179 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12180 $ECHO EXPORTS >> $output_objdir/$libname.def~
12181 prefix_cmds="$SED"~
12182 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12183 prefix_cmds="$prefix_cmds -e 1d";
12184 fi~
12185 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12186 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12187 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12188 emximp -o $lib $output_objdir/$libname.def'
12189 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12190 enable_shared_with_static_runtimes=yes
12191 file_list_spec='@'
12192 ;;
12193
12194 osf3*)
12195 if test yes = "$GCC"; then
12196 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12197 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'
12198 else
12199 allow_undefined_flag=' -expect_unresolved \*'
12200 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'
12201 fi
12202 archive_cmds_need_lc='no'
12203 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12204 hardcode_libdir_separator=:
12205 ;;
12206
12207 osf4* | osf5*) # as osf3* with the addition of -msym flag
12208 if test yes = "$GCC"; then
12209 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12210 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'
12211 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12212 else
12213 allow_undefined_flag=' -expect_unresolved \*'
12214 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'
12215 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~
12216 $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'
12217
12218 # Both c and cxx compiler support -rpath directly
12219 hardcode_libdir_flag_spec='-rpath $libdir'
12220 fi
12221 archive_cmds_need_lc='no'
12222 hardcode_libdir_separator=:
12223 ;;
12224
12225 serenity*)
12226 ;;
12227
12228 solaris*)
12229 no_undefined_flag=' -z defs'
12230 if test yes = "$GCC"; then
12231 wlarc='$wl'
12232 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12233 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12234 $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'
12235 else
12236 case `$CC -V 2>&1` in
12237 *"Compilers 5.0"*)
12238 wlarc=''
12239 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12240 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12241 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12242 ;;
12243 *)
12244 wlarc='$wl'
12245 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12246 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12247 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12248 ;;
12249 esac
12250 fi
12251 hardcode_libdir_flag_spec='-R$libdir'
12252 hardcode_shlibpath_var=no
12253 case $host_os in
12254 solaris2.[0-5] | solaris2.[0-5].*) ;;
12255 *)
12256 # The compiler driver will combine and reorder linker options,
12257 # but understands '-z linker_flag'. GCC discards it without '$wl',
12258 # but is careful enough not to reorder.
12259 # Supported since Solaris 2.6 (maybe 2.5.1?)
12260 if test yes = "$GCC"; then
12261 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12262 else
12263 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12264 fi
12265 ;;
12266 esac
12267 link_all_deplibs=yes
12268 ;;
12269
12270 sunos4*)
12271 if test sequent = "$host_vendor"; then
12272 # Use $CC to link under sequent, because it throws in some extra .o
12273 # files that make .init and .fini sections work.
12274 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12275 else
12276 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12277 fi
12278 hardcode_libdir_flag_spec='-L$libdir'
12279 hardcode_direct=yes
12280 hardcode_minus_L=yes
12281 hardcode_shlibpath_var=no
12282 ;;
12283
12284 sysv4)
12285 case $host_vendor in
12286 sni)
12287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12288 hardcode_direct=yes # is this really true???
12289 ;;
12290 siemens)
12291 ## LD is ld it makes a PLAMLIB
12292 ## CC just makes a GrossModule.
12293 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12294 reload_cmds='$CC -r -o $output$reload_objs'
12295 hardcode_direct=no
12296 ;;
12297 motorola)
12298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12299 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12300 ;;
12301 esac
12302 runpath_var='LD_RUN_PATH'
12303 hardcode_shlibpath_var=no
12304 ;;
12305
12306 sysv4.3*)
12307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12308 hardcode_shlibpath_var=no
12309 export_dynamic_flag_spec='-Bexport'
12310 ;;
12311
12312 sysv4*MP*)
12313 if test -d /usr/nec; then
12314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12315 hardcode_shlibpath_var=no
12316 runpath_var=LD_RUN_PATH
12317 hardcode_runpath_var=yes
12318 ld_shlibs=yes
12319 fi
12320 ;;
12321
12322 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12323 no_undefined_flag='$wl-z,text'
12324 archive_cmds_need_lc=no
12325 hardcode_shlibpath_var=no
12326 runpath_var='LD_RUN_PATH'
12327
12328 if test yes = "$GCC"; then
12329 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12330 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12331 else
12332 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12333 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12334 fi
12335 ;;
12336
12337 sysv5* | sco3.2v5* | sco5v6*)
12338 # Note: We CANNOT use -z defs as we might desire, because we do not
12339 # link with -lc, and that would cause any symbols used from libc to
12340 # always be unresolved, which means just about no library would
12341 # ever link correctly. If we're not using GNU ld we use -z text
12342 # though, which does catch some bad symbols but isn't as heavy-handed
12343 # as -z defs.
12344 no_undefined_flag='$wl-z,text'
12345 allow_undefined_flag='$wl-z,nodefs'
12346 archive_cmds_need_lc=no
12347 hardcode_shlibpath_var=no
12348 hardcode_libdir_flag_spec='$wl-R,$libdir'
12349 hardcode_libdir_separator=':'
12350 link_all_deplibs=yes
12351 export_dynamic_flag_spec='$wl-Bexport'
12352 runpath_var='LD_RUN_PATH'
12353
12354 if test yes = "$GCC"; then
12355 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12356 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12357 else
12358 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12359 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12360 fi
12361 ;;
12362
12363 uts4*)
12364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12365 hardcode_libdir_flag_spec='-L$libdir'
12366 hardcode_shlibpath_var=no
12367 ;;
12368
12369 *)
12370 ld_shlibs=no
12371 ;;
12372 esac
12373
12374 if test sni = "$host_vendor"; then
12375 case $host in
12376 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12377 export_dynamic_flag_spec='$wl-Blargedynsym'
12378 ;;
12379 esac
12380 fi
12381 fi
12382
12383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12384 printf "%s\n" "$ld_shlibs" >&6; }
12385 test no = "$ld_shlibs" && can_build_shared=no
12386
12387 with_gnu_ld=$with_gnu_ld
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403 #
12404 # Do we need to explicitly link libc?
12405 #
12406 case "x$archive_cmds_need_lc" in
12407 x|xyes)
12408 # Assume -lc should be added
12409 archive_cmds_need_lc=yes
12410
12411 if test yes,yes = "$GCC,$enable_shared"; then
12412 case $archive_cmds in
12413 *'~'*)
12414 # FIXME: we may have to deal with multi-command sequences.
12415 ;;
12416 '$CC '*)
12417 # Test whether the compiler implicitly links with -lc since on some
12418 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12419 # to ld, don't add -lc before -lgcc.
12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12421 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12422 if test ${lt_cv_archive_cmds_need_lc+y}
12423 then :
12424 printf %s "(cached) " >&6
12425 else case e in #(
12426 e) $RM conftest*
12427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12428
12429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12430 (eval $ac_compile) 2>&5
12431 ac_status=$?
12432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12433 test $ac_status = 0; } 2>conftest.err; then
12434 soname=conftest
12435 lib=conftest
12436 libobjs=conftest.$ac_objext
12437 deplibs=
12438 wl=$lt_prog_compiler_wl
12439 pic_flag=$lt_prog_compiler_pic
12440 compiler_flags=-v
12441 linker_flags=-v
12442 verstring=
12443 output_objdir=.
12444 libname=conftest
12445 lt_save_allow_undefined_flag=$allow_undefined_flag
12446 allow_undefined_flag=
12447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12448 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12449 ac_status=$?
12450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12451 test $ac_status = 0; }
12452 then
12453 lt_cv_archive_cmds_need_lc=no
12454 else
12455 lt_cv_archive_cmds_need_lc=yes
12456 fi
12457 allow_undefined_flag=$lt_save_allow_undefined_flag
12458 else
12459 cat conftest.err 1>&5
12460 fi
12461 $RM conftest*
12462 ;;
12463 esac
12464 fi
12465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12466 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12467 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12468 ;;
12469 esac
12470 fi
12471 ;;
12472 esac
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12626 printf %s "checking dynamic linker characteristics... " >&6; }
12627
12628 if test yes = "$GCC"; then
12629 case $host_os in
12630 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12631 *) lt_awk_arg='/^libraries:/' ;;
12632 esac
12633 case $host_os in
12634 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12635 *) lt_sed_strip_eq='s|=/|/|g' ;;
12636 esac
12637 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12638 case $lt_search_path_spec in
12639 *\;*)
12640 # if the path contains ";" then we assume it to be the separator
12641 # otherwise default to the standard path separator (i.e. ":") - it is
12642 # assumed that no part of a normal pathname contains ";" but that should
12643 # okay in the real world where ";" in dirpaths is itself problematic.
12644 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12645 ;;
12646 *)
12647 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12648 ;;
12649 esac
12650 # Ok, now we have the path, separated by spaces, we can step through it
12651 # and add multilib dir if necessary...
12652 lt_tmp_lt_search_path_spec=
12653 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12654 # ...but if some path component already ends with the multilib dir we assume
12655 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12656 case "$lt_multi_os_dir; $lt_search_path_spec " in
12657 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12658 lt_multi_os_dir=
12659 ;;
12660 esac
12661 for lt_sys_path in $lt_search_path_spec; do
12662 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12663 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12664 elif test -n "$lt_multi_os_dir"; then
12665 test -d "$lt_sys_path" && \
12666 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12667 fi
12668 done
12669 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12670 BEGIN {RS = " "; FS = "/|\n";} {
12671 lt_foo = "";
12672 lt_count = 0;
12673 for (lt_i = NF; lt_i > 0; lt_i--) {
12674 if ($lt_i != "" && $lt_i != ".") {
12675 if ($lt_i == "..") {
12676 lt_count++;
12677 } else {
12678 if (lt_count == 0) {
12679 lt_foo = "/" $lt_i lt_foo;
12680 } else {
12681 lt_count--;
12682 }
12683 }
12684 }
12685 }
12686 if (lt_foo != "") { lt_freq[lt_foo]++; }
12687 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12688 }'`
12689 # AWK program above erroneously prepends '/' to C:/dos/paths
12690 # for these hosts.
12691 case $host_os in
12692 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12693 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12694 esac
12695 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12696 else
12697 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12698 fi
12699 library_names_spec=
12700 libname_spec='lib$name'
12701 soname_spec=
12702 shrext_cmds=.so
12703 postinstall_cmds=
12704 postuninstall_cmds=
12705 finish_cmds=
12706 finish_eval=
12707 shlibpath_var=
12708 shlibpath_overrides_runpath=unknown
12709 version_type=none
12710 dynamic_linker="$host_os ld.so"
12711 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12712 need_lib_prefix=unknown
12713 hardcode_into_libs=no
12714
12715 # when you set need_version to no, make sure it does not cause -set_version
12716 # flags to be left without arguments
12717 need_version=unknown
12718
12719
12720
12721 case $host_os in
12722 aix3*)
12723 version_type=linux # correct to gnu/linux during the next big refactor
12724 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12725 shlibpath_var=LIBPATH
12726
12727 # AIX 3 has no versioning support, so we append a major version to the name.
12728 soname_spec='$libname$release$shared_ext$major'
12729 ;;
12730
12731 aix[4-9]*)
12732 version_type=linux # correct to gnu/linux during the next big refactor
12733 need_lib_prefix=no
12734 need_version=no
12735 hardcode_into_libs=yes
12736 if test ia64 = "$host_cpu"; then
12737 # AIX 5 supports IA64
12738 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12739 shlibpath_var=LD_LIBRARY_PATH
12740 else
12741 # With GCC up to 2.95.x, collect2 would create an import file
12742 # for dependence libraries. The import file would start with
12743 # the line '#! .'. This would cause the generated library to
12744 # depend on '.', always an invalid library. This was fixed in
12745 # development snapshots of GCC prior to 3.0.
12746 case $host_os in
12747 aix4 | aix4.[01] | aix4.[01].*)
12748 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12749 echo ' yes '
12750 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12751 :
12752 else
12753 can_build_shared=no
12754 fi
12755 ;;
12756 esac
12757 # Using Import Files as archive members, it is possible to support
12758 # filename-based versioning of shared library archives on AIX. While
12759 # this would work for both with and without runtime linking, it will
12760 # prevent static linking of such archives. So we do filename-based
12761 # shared library versioning with .so extension only, which is used
12762 # when both runtime linking and shared linking is enabled.
12763 # Unfortunately, runtime linking may impact performance, so we do
12764 # not want this to be the default eventually. Also, we use the
12765 # versioned .so libs for executables only if there is the -brtl
12766 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12767 # To allow for filename-based versioning support, we need to create
12768 # libNAME.so.V as an archive file, containing:
12769 # *) an Import File, referring to the versioned filename of the
12770 # archive as well as the shared archive member, telling the
12771 # bitwidth (32 or 64) of that shared object, and providing the
12772 # list of exported symbols of that shared object, eventually
12773 # decorated with the 'weak' keyword
12774 # *) the shared object with the F_LOADONLY flag set, to really avoid
12775 # it being seen by the linker.
12776 # At run time we better use the real file rather than another symlink,
12777 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12778
12779 case $with_aix_soname,$aix_use_runtimelinking in
12780 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12781 # soname into executable. Probably we can add versioning support to
12782 # collect2, so additional links can be useful in future.
12783 aix,yes) # traditional libtool
12784 dynamic_linker='AIX unversionable lib.so'
12785 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12786 # instead of lib<name>.a to let people know that these are not
12787 # typical AIX shared libraries.
12788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12789 ;;
12790 aix,no) # traditional AIX only
12791 dynamic_linker='AIX lib.a(lib.so.V)'
12792 # We preserve .a as extension for shared libraries through AIX4.2
12793 # and later when we are not doing run time linking.
12794 library_names_spec='$libname$release.a $libname.a'
12795 soname_spec='$libname$release$shared_ext$major'
12796 ;;
12797 svr4,*) # full svr4 only
12798 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12799 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12800 # We do not specify a path in Import Files, so LIBPATH fires.
12801 shlibpath_overrides_runpath=yes
12802 ;;
12803 *,yes) # both, prefer svr4
12804 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12805 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12806 # unpreferred sharedlib libNAME.a needs extra handling
12807 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"'
12808 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"'
12809 # We do not specify a path in Import Files, so LIBPATH fires.
12810 shlibpath_overrides_runpath=yes
12811 ;;
12812 *,no) # both, prefer aix
12813 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12814 library_names_spec='$libname$release.a $libname.a'
12815 soname_spec='$libname$release$shared_ext$major'
12816 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12817 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)'
12818 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"'
12819 ;;
12820 esac
12821 shlibpath_var=LIBPATH
12822 fi
12823 ;;
12824
12825 amigaos*)
12826 case $host_cpu in
12827 powerpc)
12828 # Since July 2007 AmigaOS4 officially supports .so libraries.
12829 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12831 ;;
12832 m68k)
12833 library_names_spec='$libname.ixlibrary $libname.a'
12834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12835 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'
12836 ;;
12837 esac
12838 ;;
12839
12840 beos*)
12841 library_names_spec='$libname$shared_ext'
12842 dynamic_linker="$host_os ld.so"
12843 shlibpath_var=LIBRARY_PATH
12844 ;;
12845
12846 bsdi[45]*)
12847 version_type=linux # correct to gnu/linux during the next big refactor
12848 need_version=no
12849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12850 soname_spec='$libname$release$shared_ext$major'
12851 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12852 shlibpath_var=LD_LIBRARY_PATH
12853 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12854 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12855 # the default ld.so.conf also contains /usr/contrib/lib and
12856 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12857 # libtool to hard-code these into programs
12858 ;;
12859
12860 cygwin* | mingw* | windows* | pw32* | cegcc*)
12861 version_type=windows
12862 shrext_cmds=.dll
12863 need_version=no
12864 need_lib_prefix=no
12865
12866 case $GCC,$cc_basename in
12867 yes,*)
12868 # gcc
12869 library_names_spec='$libname.dll.a'
12870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12871 # If user builds GCC with multilib enabled,
12872 # it should just install on $(libdir)
12873 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12874 if test xyes = x"$multilib"; then
12875 postinstall_cmds='base_file=`basename \$file`~
12876 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12877 dldir=$destdir/`dirname \$dlpath`~
12878 $install_prog $dir/$dlname $destdir/$dlname~
12879 chmod a+x $destdir/$dlname~
12880 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12881 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12882 fi'
12883 else
12884 postinstall_cmds='base_file=`basename \$file`~
12885 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12886 dldir=$destdir/`dirname \$dlpath`~
12887 test -d \$dldir || mkdir -p \$dldir~
12888 $install_prog $dir/$dlname \$dldir/$dlname~
12889 chmod a+x \$dldir/$dlname~
12890 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12891 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12892 fi'
12893 fi
12894 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12895 dlpath=$dir/\$dldll~
12896 $RM \$dlpath'
12897 shlibpath_overrides_runpath=yes
12898
12899 case $host_os in
12900 cygwin*)
12901 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12902 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12903
12904 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12905 ;;
12906 mingw* | windows* | cegcc*)
12907 # MinGW DLLs use traditional 'lib' prefix
12908 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12909 ;;
12910 pw32*)
12911 # pw32 DLLs use 'pw' prefix rather than 'lib'
12912 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12913 ;;
12914 esac
12915 dynamic_linker='Win32 ld.exe'
12916 ;;
12917
12918 *,cl* | *,icl*)
12919 # Native MSVC or ICC
12920 libname_spec='$name'
12921 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12922 library_names_spec='$libname.dll.lib'
12923
12924 case $build_os in
12925 mingw* | windows*)
12926 sys_lib_search_path_spec=
12927 lt_save_ifs=$IFS
12928 IFS=';'
12929 for lt_path in $LIB
12930 do
12931 IFS=$lt_save_ifs
12932 # Let DOS variable expansion print the short 8.3 style file name.
12933 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12934 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12935 done
12936 IFS=$lt_save_ifs
12937 # Convert to MSYS style.
12938 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12939 ;;
12940 cygwin*)
12941 # Convert to unix form, then to dos form, then back to unix form
12942 # but this time dos style (no spaces!) so that the unix form looks
12943 # like /cygdrive/c/PROGRA~1:/cygdr...
12944 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12945 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12946 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12947 ;;
12948 *)
12949 sys_lib_search_path_spec=$LIB
12950 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12951 # It is most probably a Windows format PATH.
12952 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12953 else
12954 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12955 fi
12956 # FIXME: find the short name or the path components, as spaces are
12957 # common. (e.g. "Program Files" -> "PROGRA~1")
12958 ;;
12959 esac
12960
12961 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12962 postinstall_cmds='base_file=`basename \$file`~
12963 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12964 dldir=$destdir/`dirname \$dlpath`~
12965 test -d \$dldir || mkdir -p \$dldir~
12966 $install_prog $dir/$dlname \$dldir/$dlname'
12967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12968 dlpath=$dir/\$dldll~
12969 $RM \$dlpath'
12970 shlibpath_overrides_runpath=yes
12971 dynamic_linker='Win32 link.exe'
12972 ;;
12973
12974 *)
12975 # Assume MSVC and ICC wrapper
12976 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12977 dynamic_linker='Win32 ld.exe'
12978 ;;
12979 esac
12980 # FIXME: first we should search . and the directory the executable is in
12981 shlibpath_var=PATH
12982 ;;
12983
12984 darwin* | rhapsody*)
12985 dynamic_linker="$host_os dyld"
12986 version_type=darwin
12987 need_lib_prefix=no
12988 need_version=no
12989 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12990 soname_spec='$libname$release$major$shared_ext'
12991 shlibpath_overrides_runpath=yes
12992 shlibpath_var=DYLD_LIBRARY_PATH
12993 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12994
12995 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12996 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12997 ;;
12998
12999 dgux*)
13000 version_type=linux # correct to gnu/linux during the next big refactor
13001 need_lib_prefix=no
13002 need_version=no
13003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13004 soname_spec='$libname$release$shared_ext$major'
13005 shlibpath_var=LD_LIBRARY_PATH
13006 ;;
13007
13008 freebsd* | dragonfly* | midnightbsd*)
13009 # DragonFly does not have aout. When/if they implement a new
13010 # versioning mechanism, adjust this.
13011 if test -x /usr/bin/objformat; then
13012 objformat=`/usr/bin/objformat`
13013 else
13014 case $host_os in
13015 freebsd[23].*) objformat=aout ;;
13016 *) objformat=elf ;;
13017 esac
13018 fi
13019 version_type=freebsd-$objformat
13020 case $version_type in
13021 freebsd-elf*)
13022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13023 soname_spec='$libname$release$shared_ext$major'
13024 need_version=no
13025 need_lib_prefix=no
13026 ;;
13027 freebsd-*)
13028 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13029 need_version=yes
13030 ;;
13031 esac
13032 case $host_cpu in
13033 powerpc64)
13034 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13035 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13038 int test_pointer_size[sizeof (void *) - 5];
13039
13040 _ACEOF
13041 if ac_fn_c_try_compile "$LINENO"
13042 then :
13043 shlibpath_var=LD_LIBRARY_PATH
13044 else case e in #(
13045 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13046 esac
13047 fi
13048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13049 ;;
13050 *)
13051 shlibpath_var=LD_LIBRARY_PATH
13052 ;;
13053 esac
13054 case $host_os in
13055 freebsd2.*)
13056 shlibpath_overrides_runpath=yes
13057 ;;
13058 freebsd3.[01]* | freebsdelf3.[01]*)
13059 shlibpath_overrides_runpath=yes
13060 hardcode_into_libs=yes
13061 ;;
13062 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13063 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13064 shlibpath_overrides_runpath=no
13065 hardcode_into_libs=yes
13066 ;;
13067 *) # from 4.6 on, and DragonFly
13068 shlibpath_overrides_runpath=yes
13069 hardcode_into_libs=yes
13070 ;;
13071 esac
13072 ;;
13073
13074 haiku*)
13075 version_type=linux # correct to gnu/linux during the next big refactor
13076 need_lib_prefix=no
13077 need_version=no
13078 dynamic_linker="$host_os runtime_loader"
13079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13080 soname_spec='$libname$release$shared_ext$major'
13081 shlibpath_var=LIBRARY_PATH
13082 shlibpath_overrides_runpath=no
13083 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13084 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13085 hardcode_into_libs=no
13086 ;;
13087
13088 hpux9* | hpux10* | hpux11*)
13089 # Give a soname corresponding to the major version so that dld.sl refuses to
13090 # link against other versions.
13091 version_type=sunos
13092 need_lib_prefix=no
13093 need_version=no
13094 case $host_cpu in
13095 ia64*)
13096 shrext_cmds='.so'
13097 hardcode_into_libs=yes
13098 dynamic_linker="$host_os dld.so"
13099 shlibpath_var=LD_LIBRARY_PATH
13100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13102 soname_spec='$libname$release$shared_ext$major'
13103 if test 32 = "$HPUX_IA64_MODE"; then
13104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13105 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13106 else
13107 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13108 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13109 fi
13110 ;;
13111 hppa*64*)
13112 shrext_cmds='.sl'
13113 hardcode_into_libs=yes
13114 dynamic_linker="$host_os dld.sl"
13115 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13118 soname_spec='$libname$release$shared_ext$major'
13119 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13121 ;;
13122 *)
13123 shrext_cmds='.sl'
13124 dynamic_linker="$host_os dld.sl"
13125 shlibpath_var=SHLIB_PATH
13126 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13128 soname_spec='$libname$release$shared_ext$major'
13129 ;;
13130 esac
13131 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13132 postinstall_cmds='chmod 555 $lib'
13133 # or fails outright, so override atomically:
13134 install_override_mode=555
13135 ;;
13136
13137 interix[3-9]*)
13138 version_type=linux # correct to gnu/linux during the next big refactor
13139 need_lib_prefix=no
13140 need_version=no
13141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13142 soname_spec='$libname$release$shared_ext$major'
13143 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13144 shlibpath_var=LD_LIBRARY_PATH
13145 shlibpath_overrides_runpath=no
13146 hardcode_into_libs=yes
13147 ;;
13148
13149 irix5* | irix6* | nonstopux*)
13150 case $host_os in
13151 nonstopux*) version_type=nonstopux ;;
13152 *)
13153 if test yes = "$lt_cv_prog_gnu_ld"; then
13154 version_type=linux # correct to gnu/linux during the next big refactor
13155 else
13156 version_type=irix
13157 fi ;;
13158 esac
13159 need_lib_prefix=no
13160 need_version=no
13161 soname_spec='$libname$release$shared_ext$major'
13162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13163 case $host_os in
13164 irix5* | nonstopux*)
13165 libsuff= shlibsuff=
13166 ;;
13167 *)
13168 case $LD in # libtool.m4 will add one of these switches to LD
13169 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13170 libsuff= shlibsuff= libmagic=32-bit;;
13171 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13172 libsuff=32 shlibsuff=N32 libmagic=N32;;
13173 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13174 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13175 *) libsuff= shlibsuff= libmagic=never-match;;
13176 esac
13177 ;;
13178 esac
13179 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13180 shlibpath_overrides_runpath=no
13181 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13182 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13183 hardcode_into_libs=yes
13184 ;;
13185
13186 # No shared lib support for Linux oldld, aout, or coff.
13187 linux*oldld* | linux*aout* | linux*coff*)
13188 dynamic_linker=no
13189 ;;
13190
13191 linux*android*)
13192 version_type=none # Android doesn't support versioned libraries.
13193 need_lib_prefix=no
13194 need_version=no
13195 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13196 soname_spec='$libname$release$shared_ext'
13197 finish_cmds=
13198 shlibpath_var=LD_LIBRARY_PATH
13199 shlibpath_overrides_runpath=yes
13200
13201 # This implies no fast_install, which is unacceptable.
13202 # Some rework will be needed to allow for fast_install
13203 # before this can be enabled.
13204 hardcode_into_libs=yes
13205
13206 dynamic_linker='Android linker'
13207 # -rpath works at least for libraries that are not overridden by
13208 # libraries installed in system locations.
13209 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13210 ;;
13211
13212 # This must be glibc/ELF.
13213 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13214 version_type=linux # correct to gnu/linux during the next big refactor
13215 need_lib_prefix=no
13216 need_version=no
13217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13218 soname_spec='$libname$release$shared_ext$major'
13219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13220 shlibpath_var=LD_LIBRARY_PATH
13221 shlibpath_overrides_runpath=no
13222
13223 # Some binutils ld are patched to set DT_RUNPATH
13224 if test ${lt_cv_shlibpath_overrides_runpath+y}
13225 then :
13226 printf %s "(cached) " >&6
13227 else case e in #(
13228 e) lt_cv_shlibpath_overrides_runpath=no
13229 save_LDFLAGS=$LDFLAGS
13230 save_libdir=$libdir
13231 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13232 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13235
13236 int
13237 main (void)
13238 {
13239
13240 ;
13241 return 0;
13242 }
13243 _ACEOF
13244 if ac_fn_c_try_link "$LINENO"
13245 then :
13246 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13247 then :
13248 lt_cv_shlibpath_overrides_runpath=yes
13249 fi
13250 fi
13251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13252 conftest$ac_exeext conftest.$ac_ext
13253 LDFLAGS=$save_LDFLAGS
13254 libdir=$save_libdir
13255 ;;
13256 esac
13257 fi
13258
13259 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13260
13261 # This implies no fast_install, which is unacceptable.
13262 # Some rework will be needed to allow for fast_install
13263 # before this can be enabled.
13264 hardcode_into_libs=yes
13265
13266 # Ideally, we could use ldconfig to report *all* directories which are
13267 # searched for libraries, however this is still not possible. Aside from not
13268 # being certain /sbin/ldconfig is available, command
13269 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13270 # even though it is searched at run-time. Try to do the best guess by
13271 # appending ld.so.conf contents (and includes) to the search path.
13272 if test -f /etc/ld.so.conf; then
13273 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' ' '`
13274 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13275 fi
13276
13277 # We used to test for /lib/ld.so.1 and disable shared libraries on
13278 # powerpc, because MkLinux only supported shared libraries with the
13279 # GNU dynamic linker. Since this was broken with cross compilers,
13280 # most powerpc-linux boxes support dynamic linking these days and
13281 # people can always --disable-shared, the test was removed, and we
13282 # assume the GNU/Linux dynamic linker is in use.
13283 dynamic_linker='GNU/Linux ld.so'
13284 ;;
13285
13286 netbsdelf*-gnu)
13287 version_type=linux
13288 need_lib_prefix=no
13289 need_version=no
13290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13291 soname_spec='$libname$release$shared_ext$major'
13292 shlibpath_var=LD_LIBRARY_PATH
13293 shlibpath_overrides_runpath=no
13294 hardcode_into_libs=yes
13295 dynamic_linker='NetBSD ld.elf_so'
13296 ;;
13297
13298 netbsd*)
13299 version_type=sunos
13300 need_lib_prefix=no
13301 need_version=no
13302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13303 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13305 dynamic_linker='NetBSD (a.out) ld.so'
13306 else
13307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13308 soname_spec='$libname$release$shared_ext$major'
13309 dynamic_linker='NetBSD ld.elf_so'
13310 fi
13311 shlibpath_var=LD_LIBRARY_PATH
13312 shlibpath_overrides_runpath=yes
13313 hardcode_into_libs=yes
13314 ;;
13315
13316 *-mlibc)
13317 version_type=linux # correct to gnu/linux during the next big refactor
13318 need_lib_prefix=no
13319 need_version=no
13320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13321 soname_spec='$libname$release$shared_ext$major'
13322 dynamic_linker='mlibc ld.so'
13323 shlibpath_var=LD_LIBRARY_PATH
13324 shlibpath_overrides_runpath=no
13325 hardcode_into_libs=yes
13326 ;;
13327
13328 newsos6)
13329 version_type=linux # correct to gnu/linux during the next big refactor
13330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13331 shlibpath_var=LD_LIBRARY_PATH
13332 shlibpath_overrides_runpath=yes
13333 ;;
13334
13335 *nto* | *qnx*)
13336 version_type=qnx
13337 need_lib_prefix=no
13338 need_version=no
13339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13340 soname_spec='$libname$release$shared_ext$major'
13341 shlibpath_var=LD_LIBRARY_PATH
13342 shlibpath_overrides_runpath=no
13343 hardcode_into_libs=yes
13344 dynamic_linker='ldqnx.so'
13345 ;;
13346
13347 openbsd*)
13348 version_type=sunos
13349 sys_lib_dlsearch_path_spec=/usr/lib
13350 need_lib_prefix=no
13351 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13352 need_version=no
13353 else
13354 need_version=yes
13355 fi
13356 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13358 shlibpath_var=LD_LIBRARY_PATH
13359 shlibpath_overrides_runpath=yes
13360 ;;
13361
13362 os2*)
13363 libname_spec='$name'
13364 version_type=windows
13365 shrext_cmds=.dll
13366 need_version=no
13367 need_lib_prefix=no
13368 # OS/2 can only load a DLL with a base name of 8 characters or less.
13369 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13370 v=$($ECHO $release$versuffix | tr -d .-);
13371 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13372 $ECHO $n$v`$shared_ext'
13373 library_names_spec='${libname}_dll.$libext'
13374 dynamic_linker='OS/2 ld.exe'
13375 shlibpath_var=BEGINLIBPATH
13376 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13378 postinstall_cmds='base_file=`basename \$file`~
13379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13380 dldir=$destdir/`dirname \$dlpath`~
13381 test -d \$dldir || mkdir -p \$dldir~
13382 $install_prog $dir/$dlname \$dldir/$dlname~
13383 chmod a+x \$dldir/$dlname~
13384 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13385 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13386 fi'
13387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13388 dlpath=$dir/\$dldll~
13389 $RM \$dlpath'
13390 ;;
13391
13392 osf3* | osf4* | osf5*)
13393 version_type=osf
13394 need_lib_prefix=no
13395 need_version=no
13396 soname_spec='$libname$release$shared_ext$major'
13397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13398 shlibpath_var=LD_LIBRARY_PATH
13399 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13401 ;;
13402
13403 rdos*)
13404 dynamic_linker=no
13405 ;;
13406
13407 serenity*)
13408 version_type=linux # correct to gnu/linux during the next big refactor
13409 need_lib_prefix=no
13410 need_version=no
13411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13412 soname_spec='$libname$release$shared_ext$major'
13413 shlibpath_var=LD_LIBRARY_PATH
13414 shlibpath_overrides_runpath=no
13415 dynamic_linker='SerenityOS LibELF'
13416 ;;
13417
13418 solaris*)
13419 version_type=linux # correct to gnu/linux during the next big refactor
13420 need_lib_prefix=no
13421 need_version=no
13422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13423 soname_spec='$libname$release$shared_ext$major'
13424 shlibpath_var=LD_LIBRARY_PATH
13425 shlibpath_overrides_runpath=yes
13426 hardcode_into_libs=yes
13427 # ldd complains unless libraries are executable
13428 postinstall_cmds='chmod +x $lib'
13429 ;;
13430
13431 sunos4*)
13432 version_type=sunos
13433 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13434 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13435 shlibpath_var=LD_LIBRARY_PATH
13436 shlibpath_overrides_runpath=yes
13437 if test yes = "$with_gnu_ld"; then
13438 need_lib_prefix=no
13439 fi
13440 need_version=yes
13441 ;;
13442
13443 sysv4 | sysv4.3*)
13444 version_type=linux # correct to gnu/linux during the next big refactor
13445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13446 soname_spec='$libname$release$shared_ext$major'
13447 shlibpath_var=LD_LIBRARY_PATH
13448 case $host_vendor in
13449 sni)
13450 shlibpath_overrides_runpath=no
13451 need_lib_prefix=no
13452 runpath_var=LD_RUN_PATH
13453 ;;
13454 siemens)
13455 need_lib_prefix=no
13456 ;;
13457 motorola)
13458 need_lib_prefix=no
13459 need_version=no
13460 shlibpath_overrides_runpath=no
13461 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13462 ;;
13463 esac
13464 ;;
13465
13466 sysv4*MP*)
13467 if test -d /usr/nec; then
13468 version_type=linux # correct to gnu/linux during the next big refactor
13469 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13470 soname_spec='$libname$shared_ext.$major'
13471 shlibpath_var=LD_LIBRARY_PATH
13472 fi
13473 ;;
13474
13475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13476 version_type=sco
13477 need_lib_prefix=no
13478 need_version=no
13479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13480 soname_spec='$libname$release$shared_ext$major'
13481 shlibpath_var=LD_LIBRARY_PATH
13482 shlibpath_overrides_runpath=yes
13483 hardcode_into_libs=yes
13484 if test yes = "$with_gnu_ld"; then
13485 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13486 else
13487 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13488 case $host_os in
13489 sco3.2v5*)
13490 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13491 ;;
13492 esac
13493 fi
13494 sys_lib_dlsearch_path_spec='/usr/lib'
13495 ;;
13496
13497 tpf*)
13498 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13499 version_type=linux # correct to gnu/linux during the next big refactor
13500 need_lib_prefix=no
13501 need_version=no
13502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13503 shlibpath_var=LD_LIBRARY_PATH
13504 shlibpath_overrides_runpath=no
13505 hardcode_into_libs=yes
13506 ;;
13507
13508 uts4*)
13509 version_type=linux # correct to gnu/linux during the next big refactor
13510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13511 soname_spec='$libname$release$shared_ext$major'
13512 shlibpath_var=LD_LIBRARY_PATH
13513 ;;
13514
13515 emscripten*)
13516 version_type=none
13517 need_lib_prefix=no
13518 need_version=no
13519 library_names_spec='$libname$release$shared_ext'
13520 soname_spec='$libname$release$shared_ext'
13521 finish_cmds=
13522 dynamic_linker="Emscripten linker"
13523 lt_prog_compiler_wl=
13524 lt_prog_compiler_pic=
13525 lt_prog_compiler_static=
13526
13527
13528 if test yes = "$GCC"; then
13529 lt_prog_compiler_wl='-Wl,'
13530 lt_prog_compiler_static='-static'
13531
13532 case $host_os in
13533 aix*)
13534 # All AIX code is PIC.
13535 if test ia64 = "$host_cpu"; then
13536 # AIX 5 now supports IA64 processor
13537 lt_prog_compiler_static='-Bstatic'
13538 fi
13539 lt_prog_compiler_pic='-fPIC'
13540 ;;
13541
13542 amigaos*)
13543 case $host_cpu in
13544 powerpc)
13545 # see comment about AmigaOS4 .so support
13546 lt_prog_compiler_pic='-fPIC'
13547 ;;
13548 m68k)
13549 # FIXME: we need at least 68020 code to build shared libraries, but
13550 # adding the '-m68020' flag to GCC prevents building anything better,
13551 # like '-m68040'.
13552 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13553 ;;
13554 esac
13555 ;;
13556
13557 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13558 # PIC is the default for these OSes.
13559 ;;
13560
13561 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13562 # This hack is so that the source file can tell whether it is being
13563 # built for inclusion in a dll (and should export symbols for example).
13564 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13565 # (--disable-auto-import) libraries
13566 lt_prog_compiler_pic='-DDLL_EXPORT'
13567 case $host_os in
13568 os2*)
13569 lt_prog_compiler_static='$wl-static'
13570 ;;
13571 esac
13572 ;;
13573
13574 darwin* | rhapsody*)
13575 # PIC is the default on this platform
13576 # Common symbols not allowed in MH_DYLIB files
13577 lt_prog_compiler_pic='-fno-common'
13578 ;;
13579
13580 haiku*)
13581 # PIC is the default for Haiku.
13582 # The "-static" flag exists, but is broken.
13583 lt_prog_compiler_static=
13584 ;;
13585
13586 hpux*)
13587 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13588 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13589 # sets the default TLS model and affects inlining.
13590 case $host_cpu in
13591 hppa*64*)
13592 # +Z the default
13593 ;;
13594 *)
13595 lt_prog_compiler_pic='-fPIC'
13596 ;;
13597 esac
13598 ;;
13599
13600 interix[3-9]*)
13601 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13602 # Instead, we relocate shared libraries at runtime.
13603 ;;
13604
13605 msdosdjgpp*)
13606 # Just because we use GCC doesn't mean we suddenly get shared libraries
13607 # on systems that don't support them.
13608 lt_prog_compiler_can_build_shared=no
13609 enable_shared=no
13610 ;;
13611
13612 *nto* | *qnx*)
13613 # QNX uses GNU C++, but need to define -shared option too, otherwise
13614 # it will coredump.
13615 lt_prog_compiler_pic='-fPIC -shared'
13616 ;;
13617
13618 sysv4*MP*)
13619 if test -d /usr/nec; then
13620 lt_prog_compiler_pic=-Kconform_pic
13621 fi
13622 ;;
13623
13624 *)
13625 lt_prog_compiler_pic='-fPIC'
13626 ;;
13627 esac
13628
13629 case $cc_basename in
13630 nvcc*) # Cuda Compiler Driver 2.2
13631 lt_prog_compiler_wl='-Xlinker '
13632 if test -n "$lt_prog_compiler_pic"; then
13633 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13634 fi
13635 ;;
13636 esac
13637 else
13638 # PORTME Check for flag to pass linker flags through the system compiler.
13639 case $host_os in
13640 aix*)
13641 lt_prog_compiler_wl='-Wl,'
13642 if test ia64 = "$host_cpu"; then
13643 # AIX 5 now supports IA64 processor
13644 lt_prog_compiler_static='-Bstatic'
13645 else
13646 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13647 fi
13648 ;;
13649
13650 darwin* | rhapsody*)
13651 # PIC is the default on this platform
13652 # Common symbols not allowed in MH_DYLIB files
13653 lt_prog_compiler_pic='-fno-common'
13654 case $cc_basename in
13655 nagfor*)
13656 # NAG Fortran compiler
13657 lt_prog_compiler_wl='-Wl,-Wl,,'
13658 lt_prog_compiler_pic='-PIC'
13659 lt_prog_compiler_static='-Bstatic'
13660 ;;
13661 esac
13662 ;;
13663
13664 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13665 # This hack is so that the source file can tell whether it is being
13666 # built for inclusion in a dll (and should export symbols for example).
13667 lt_prog_compiler_pic='-DDLL_EXPORT'
13668 case $host_os in
13669 os2*)
13670 lt_prog_compiler_static='$wl-static'
13671 ;;
13672 esac
13673 ;;
13674
13675 hpux9* | hpux10* | hpux11*)
13676 lt_prog_compiler_wl='-Wl,'
13677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13678 # not for PA HP-UX.
13679 case $host_cpu in
13680 hppa*64*|ia64*)
13681 # +Z the default
13682 ;;
13683 *)
13684 lt_prog_compiler_pic='+Z'
13685 ;;
13686 esac
13687 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13688 lt_prog_compiler_static='$wl-a ${wl}archive'
13689 ;;
13690
13691 irix5* | irix6* | nonstopux*)
13692 lt_prog_compiler_wl='-Wl,'
13693 # PIC (with -KPIC) is the default.
13694 lt_prog_compiler_static='-non_shared'
13695 ;;
13696
13697 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13698 case $cc_basename in
13699 # old Intel for x86_64, which still supported -KPIC.
13700 ecc*)
13701 lt_prog_compiler_wl='-Wl,'
13702 lt_prog_compiler_pic='-KPIC'
13703 lt_prog_compiler_static='-static'
13704 ;;
13705 *flang* | ftn | f18* | f95*)
13706 # Flang compiler.
13707 lt_prog_compiler_wl='-Wl,'
13708 lt_prog_compiler_pic='-fPIC'
13709 lt_prog_compiler_static='-static'
13710 ;;
13711 # icc used to be incompatible with GCC.
13712 # ICC 10 doesn't accept -KPIC any more.
13713 icc* | ifort*)
13714 lt_prog_compiler_wl='-Wl,'
13715 lt_prog_compiler_pic='-fPIC'
13716 lt_prog_compiler_static='-static'
13717 ;;
13718 # Lahey Fortran 8.1.
13719 lf95*)
13720 lt_prog_compiler_wl='-Wl,'
13721 lt_prog_compiler_pic='--shared'
13722 lt_prog_compiler_static='--static'
13723 ;;
13724 nagfor*)
13725 # NAG Fortran compiler
13726 lt_prog_compiler_wl='-Wl,-Wl,,'
13727 lt_prog_compiler_pic='-PIC'
13728 lt_prog_compiler_static='-Bstatic'
13729 ;;
13730 tcc*)
13731 # Fabrice Bellard et al's Tiny C Compiler
13732 lt_prog_compiler_wl='-Wl,'
13733 lt_prog_compiler_pic='-fPIC'
13734 lt_prog_compiler_static='-static'
13735 ;;
13736 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13737 # Portland Group compilers (*not* the Pentium gcc compiler,
13738 # which looks to be a dead project)
13739 lt_prog_compiler_wl='-Wl,'
13740 lt_prog_compiler_pic='-fpic'
13741 lt_prog_compiler_static='-Bstatic'
13742 ;;
13743 ccc*)
13744 lt_prog_compiler_wl='-Wl,'
13745 # All Alpha code is PIC.
13746 lt_prog_compiler_static='-non_shared'
13747 ;;
13748 xl* | bgxl* | bgf* | mpixl*)
13749 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13750 lt_prog_compiler_wl='-Wl,'
13751 lt_prog_compiler_pic='-qpic'
13752 lt_prog_compiler_static='-qstaticlink'
13753 ;;
13754 *)
13755 case `$CC -V 2>&1 | $SED 5q` in
13756 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13757 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13758 lt_prog_compiler_pic='-KPIC'
13759 lt_prog_compiler_static='-Bstatic'
13760 lt_prog_compiler_wl=''
13761 ;;
13762 *Sun\ F* | *Sun*Fortran*)
13763 lt_prog_compiler_pic='-KPIC'
13764 lt_prog_compiler_static='-Bstatic'
13765 lt_prog_compiler_wl='-Qoption ld '
13766 ;;
13767 *Sun\ C*)
13768 # Sun C 5.9
13769 lt_prog_compiler_pic='-KPIC'
13770 lt_prog_compiler_static='-Bstatic'
13771 lt_prog_compiler_wl='-Wl,'
13772 ;;
13773 *Intel*\ [CF]*Compiler*)
13774 lt_prog_compiler_wl='-Wl,'
13775 lt_prog_compiler_pic='-fPIC'
13776 lt_prog_compiler_static='-static'
13777 ;;
13778 *Portland\ Group*)
13779 lt_prog_compiler_wl='-Wl,'
13780 lt_prog_compiler_pic='-fpic'
13781 lt_prog_compiler_static='-Bstatic'
13782 ;;
13783 esac
13784 ;;
13785 esac
13786 ;;
13787
13788 newsos6)
13789 lt_prog_compiler_pic='-KPIC'
13790 lt_prog_compiler_static='-Bstatic'
13791 ;;
13792
13793 *-mlibc)
13794 lt_prog_compiler_wl='-Wl,'
13795 lt_prog_compiler_pic='-fPIC'
13796 lt_prog_compiler_static='-static'
13797 ;;
13798
13799 *nto* | *qnx*)
13800 # QNX uses GNU C++, but need to define -shared option too, otherwise
13801 # it will coredump.
13802 lt_prog_compiler_pic='-fPIC -shared'
13803 ;;
13804
13805 osf3* | osf4* | osf5*)
13806 lt_prog_compiler_wl='-Wl,'
13807 # All OSF/1 code is PIC.
13808 lt_prog_compiler_static='-non_shared'
13809 ;;
13810
13811 rdos*)
13812 lt_prog_compiler_static='-non_shared'
13813 ;;
13814
13815 serenity*)
13816 ;;
13817
13818 solaris*)
13819 lt_prog_compiler_pic='-KPIC'
13820 lt_prog_compiler_static='-Bstatic'
13821 case $cc_basename in
13822 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13823 lt_prog_compiler_wl='-Qoption ld ';;
13824 *)
13825 lt_prog_compiler_wl='-Wl,';;
13826 esac
13827 ;;
13828
13829 sunos4*)
13830 lt_prog_compiler_wl='-Qoption ld '
13831 lt_prog_compiler_pic='-PIC'
13832 lt_prog_compiler_static='-Bstatic'
13833 ;;
13834
13835 sysv4 | sysv4.2uw2* | sysv4.3*)
13836 lt_prog_compiler_wl='-Wl,'
13837 lt_prog_compiler_pic='-KPIC'
13838 lt_prog_compiler_static='-Bstatic'
13839 ;;
13840
13841 sysv4*MP*)
13842 if test -d /usr/nec; then
13843 lt_prog_compiler_pic='-Kconform_pic'
13844 lt_prog_compiler_static='-Bstatic'
13845 fi
13846 ;;
13847
13848 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13849 lt_prog_compiler_wl='-Wl,'
13850 lt_prog_compiler_pic='-KPIC'
13851 lt_prog_compiler_static='-Bstatic'
13852 ;;
13853
13854 unicos*)
13855 lt_prog_compiler_wl='-Wl,'
13856 lt_prog_compiler_can_build_shared=no
13857 ;;
13858
13859 uts4*)
13860 lt_prog_compiler_pic='-pic'
13861 lt_prog_compiler_static='-Bstatic'
13862 ;;
13863
13864 *)
13865 lt_prog_compiler_can_build_shared=no
13866 ;;
13867 esac
13868 fi
13869
13870 case $host_os in
13871 # For platforms that do not support PIC, -DPIC is meaningless:
13872 *djgpp*)
13873 lt_prog_compiler_pic=
13874 ;;
13875 *)
13876 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13877 ;;
13878 esac
13879
13880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13881 printf %s "checking for $compiler option to produce PIC... " >&6; }
13882 if test ${lt_cv_prog_compiler_pic+y}
13883 then :
13884 printf %s "(cached) " >&6
13885 else case e in #(
13886 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13887 esac
13888 fi
13889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13890 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13891 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13892
13893 #
13894 # Check to make sure the PIC flag actually works.
13895 #
13896 if test -n "$lt_prog_compiler_pic"; then
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13898 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13899 if test ${lt_cv_prog_compiler_pic_works+y}
13900 then :
13901 printf %s "(cached) " >&6
13902 else case e in #(
13903 e) lt_cv_prog_compiler_pic_works=no
13904 ac_outfile=conftest.$ac_objext
13905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13906 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13907 # Insert the option either (1) after the last *FLAGS variable, or
13908 # (2) before a word containing "conftest.", or (3) at the end.
13909 # Note that $ac_compile itself does not contain backslashes and begins
13910 # with a dollar sign (not a hyphen), so the echo should work correctly.
13911 # The option is referenced via a variable to avoid confusing sed.
13912 lt_compile=`echo "$ac_compile" | $SED \
13913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13915 -e 's:$: $lt_compiler_flag:'`
13916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13917 (eval "$lt_compile" 2>conftest.err)
13918 ac_status=$?
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 if (exit $ac_status) && test -s "$ac_outfile"; then
13922 # The compiler can only warn and ignore the option if not recognized
13923 # So say no if there are warnings other than the usual output.
13924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13927 lt_cv_prog_compiler_pic_works=yes
13928 fi
13929 fi
13930 $RM conftest*
13931 ;;
13932 esac
13933 fi
13934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13935 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13936
13937 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13938 case $lt_prog_compiler_pic in
13939 "" | " "*) ;;
13940 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13941 esac
13942 else
13943 lt_prog_compiler_pic=
13944 lt_prog_compiler_can_build_shared=no
13945 fi
13946
13947 fi
13948
13949
13950
13951
13952
13953 #
13954 # Check to make sure the static flag actually works.
13955 #
13956 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13958 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13959 if test ${lt_cv_prog_compiler_static_works+y}
13960 then :
13961 printf %s "(cached) " >&6
13962 else case e in #(
13963 e) lt_cv_prog_compiler_static_works=no
13964 save_LDFLAGS=$LDFLAGS
13965 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13966 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13967 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13968 # The linker can only warn and ignore the option if not recognized
13969 # So say no if there are warnings
13970 if test -s conftest.err; then
13971 # Append any errors to the config.log.
13972 cat conftest.err 1>&5
13973 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13975 if diff conftest.exp conftest.er2 >/dev/null; then
13976 lt_cv_prog_compiler_static_works=yes
13977 fi
13978 else
13979 lt_cv_prog_compiler_static_works=yes
13980 fi
13981 fi
13982 $RM -r conftest*
13983 LDFLAGS=$save_LDFLAGS
13984 ;;
13985 esac
13986 fi
13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13988 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13989
13990 if test yes = "$lt_cv_prog_compiler_static_works"; then
13991 :
13992 else
13993 lt_prog_compiler_static=
13994 fi
13995
13996
13997
13998 ='-fPIC'
13999 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14000 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'
14001 archive_cmds_need_lc=no
14002 no_undefined_flag=
14003 ;;
14004
14005 *)
14006 dynamic_linker=no
14007 ;;
14008 esac
14009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14010 printf "%s\n" "$dynamic_linker" >&6; }
14011 test no = "$dynamic_linker" && can_build_shared=no
14012
14013 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14014 if test yes = "$GCC"; then
14015 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14016 fi
14017
14018 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14019 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14020 fi
14021
14022 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14023 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14024 fi
14025
14026 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14027 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14028
14029 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14030 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14031
14032 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14033 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14132 printf %s "checking how to hardcode library paths into programs... " >&6; }
14133 hardcode_action=
14134 if test -n "$hardcode_libdir_flag_spec" ||
14135 test -n "$runpath_var" ||
14136 test yes = "$hardcode_automatic"; then
14137
14138 # We can hardcode non-existent directories.
14139 if test no != "$hardcode_direct" &&
14140 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14141 # have to relink, otherwise we might link with an installed library
14142 # when we should be linking with a yet-to-be-installed one
14143 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14144 test no != "$hardcode_minus_L"; then
14145 # Linking always hardcodes the temporary library directory.
14146 hardcode_action=relink
14147 else
14148 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14149 hardcode_action=immediate
14150 fi
14151 else
14152 # We cannot hardcode anything, or else we can only hardcode existing
14153 # directories.
14154 hardcode_action=unsupported
14155 fi
14156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14157 printf "%s\n" "$hardcode_action" >&6; }
14158
14159 if test relink = "$hardcode_action" ||
14160 test yes = "$inherit_rpath"; then
14161 # Fast installation is not supported
14162 enable_fast_install=no
14163 elif test yes = "$shlibpath_overrides_runpath" ||
14164 test no = "$enable_shared"; then
14165 # Fast installation is not necessary
14166 enable_fast_install=needless
14167 fi
14168
14169
14170
14171
14172
14173
14174 if test yes != "$enable_dlopen"; then
14175 enable_dlopen=unknown
14176 enable_dlopen_self=unknown
14177 enable_dlopen_self_static=unknown
14178 else
14179 lt_cv_dlopen=no
14180 lt_cv_dlopen_libs=
14181
14182 case $host_os in
14183 beos*)
14184 lt_cv_dlopen=load_add_on
14185 lt_cv_dlopen_libs=
14186 lt_cv_dlopen_self=yes
14187 ;;
14188
14189 mingw* | windows* | pw32* | cegcc*)
14190 lt_cv_dlopen=LoadLibrary
14191 lt_cv_dlopen_libs=
14192 ;;
14193
14194 cygwin*)
14195 lt_cv_dlopen=dlopen
14196 lt_cv_dlopen_libs=
14197 ;;
14198
14199 darwin*)
14200 # if libdl is installed we need to link against it
14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14202 printf %s "checking for dlopen in -ldl... " >&6; }
14203 if test ${ac_cv_lib_dl_dlopen+y}
14204 then :
14205 printf %s "(cached) " >&6
14206 else case e in #(
14207 e) ac_check_lib_save_LIBS=$LIBS
14208 LIBS="-ldl $LIBS"
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211
14212 /* Override any GCC internal prototype to avoid an error.
14213 Use char because int might match the return type of a GCC
14214 builtin and then its argument prototype would still apply.
14215 The 'extern "C"' is for builds by C++ compilers;
14216 although this is not generally supported in C code supporting it here
14217 has little cost and some practical benefit (sr 110532). */
14218 #ifdef __cplusplus
14219 extern "C"
14220 #endif
14221 char dlopen (void);
14222 int
14223 main (void)
14224 {
14225 return dlopen ();
14226 ;
14227 return 0;
14228 }
14229 _ACEOF
14230 if ac_fn_c_try_link "$LINENO"
14231 then :
14232 ac_cv_lib_dl_dlopen=yes
14233 else case e in #(
14234 e) ac_cv_lib_dl_dlopen=no ;;
14235 esac
14236 fi
14237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14238 conftest$ac_exeext conftest.$ac_ext
14239 LIBS=$ac_check_lib_save_LIBS ;;
14240 esac
14241 fi
14242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14243 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14244 if test "x$ac_cv_lib_dl_dlopen" = xyes
14245 then :
14246 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14247 else case e in #(
14248 e)
14249 lt_cv_dlopen=dyld
14250 lt_cv_dlopen_libs=
14251 lt_cv_dlopen_self=yes
14252 ;;
14253 esac
14254 fi
14255
14256 ;;
14257
14258 tpf*)
14259 # Don't try to run any link tests for TPF. We know it's impossible
14260 # because TPF is a cross-compiler, and we know how we open DSOs.
14261 lt_cv_dlopen=dlopen
14262 lt_cv_dlopen_libs=
14263 lt_cv_dlopen_self=no
14264 ;;
14265
14266 *)
14267 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14268 if test "x$ac_cv_func_shl_load" = xyes
14269 then :
14270 lt_cv_dlopen=shl_load
14271 else case e in #(
14272 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14273 printf %s "checking for shl_load in -ldld... " >&6; }
14274 if test ${ac_cv_lib_dld_shl_load+y}
14275 then :
14276 printf %s "(cached) " >&6
14277 else case e in #(
14278 e) ac_check_lib_save_LIBS=$LIBS
14279 LIBS="-ldld $LIBS"
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282
14283 /* Override any GCC internal prototype to avoid an error.
14284 Use char because int might match the return type of a GCC
14285 builtin and then its argument prototype would still apply.
14286 The 'extern "C"' is for builds by C++ compilers;
14287 although this is not generally supported in C code supporting it here
14288 has little cost and some practical benefit (sr 110532). */
14289 #ifdef __cplusplus
14290 extern "C"
14291 #endif
14292 char shl_load (void);
14293 int
14294 main (void)
14295 {
14296 return shl_load ();
14297 ;
14298 return 0;
14299 }
14300 _ACEOF
14301 if ac_fn_c_try_link "$LINENO"
14302 then :
14303 ac_cv_lib_dld_shl_load=yes
14304 else case e in #(
14305 e) ac_cv_lib_dld_shl_load=no ;;
14306 esac
14307 fi
14308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14309 conftest$ac_exeext conftest.$ac_ext
14310 LIBS=$ac_check_lib_save_LIBS ;;
14311 esac
14312 fi
14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14314 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14315 if test "x$ac_cv_lib_dld_shl_load" = xyes
14316 then :
14317 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14318 else case e in #(
14319 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14320 if test "x$ac_cv_func_dlopen" = xyes
14321 then :
14322 lt_cv_dlopen=dlopen
14323 else case e in #(
14324 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14325 printf %s "checking for dlopen in -ldl... " >&6; }
14326 if test ${ac_cv_lib_dl_dlopen+y}
14327 then :
14328 printf %s "(cached) " >&6
14329 else case e in #(
14330 e) ac_check_lib_save_LIBS=$LIBS
14331 LIBS="-ldl $LIBS"
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334
14335 /* Override any GCC internal prototype to avoid an error.
14336 Use char because int might match the return type of a GCC
14337 builtin and then its argument prototype would still apply.
14338 The 'extern "C"' is for builds by C++ compilers;
14339 although this is not generally supported in C code supporting it here
14340 has little cost and some practical benefit (sr 110532). */
14341 #ifdef __cplusplus
14342 extern "C"
14343 #endif
14344 char dlopen (void);
14345 int
14346 main (void)
14347 {
14348 return dlopen ();
14349 ;
14350 return 0;
14351 }
14352 _ACEOF
14353 if ac_fn_c_try_link "$LINENO"
14354 then :
14355 ac_cv_lib_dl_dlopen=yes
14356 else case e in #(
14357 e) ac_cv_lib_dl_dlopen=no ;;
14358 esac
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14361 conftest$ac_exeext conftest.$ac_ext
14362 LIBS=$ac_check_lib_save_LIBS ;;
14363 esac
14364 fi
14365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14366 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14367 if test "x$ac_cv_lib_dl_dlopen" = xyes
14368 then :
14369 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14370 else case e in #(
14371 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14372 printf %s "checking for dlopen in -lsvld... " >&6; }
14373 if test ${ac_cv_lib_svld_dlopen+y}
14374 then :
14375 printf %s "(cached) " >&6
14376 else case e in #(
14377 e) ac_check_lib_save_LIBS=$LIBS
14378 LIBS="-lsvld $LIBS"
14379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h. */
14381
14382 /* Override any GCC internal prototype to avoid an error.
14383 Use char because int might match the return type of a GCC
14384 builtin and then its argument prototype would still apply.
14385 The 'extern "C"' is for builds by C++ compilers;
14386 although this is not generally supported in C code supporting it here
14387 has little cost and some practical benefit (sr 110532). */
14388 #ifdef __cplusplus
14389 extern "C"
14390 #endif
14391 char dlopen (void);
14392 int
14393 main (void)
14394 {
14395 return dlopen ();
14396 ;
14397 return 0;
14398 }
14399 _ACEOF
14400 if ac_fn_c_try_link "$LINENO"
14401 then :
14402 ac_cv_lib_svld_dlopen=yes
14403 else case e in #(
14404 e) ac_cv_lib_svld_dlopen=no ;;
14405 esac
14406 fi
14407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14408 conftest$ac_exeext conftest.$ac_ext
14409 LIBS=$ac_check_lib_save_LIBS ;;
14410 esac
14411 fi
14412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14413 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14414 if test "x$ac_cv_lib_svld_dlopen" = xyes
14415 then :
14416 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14417 else case e in #(
14418 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14419 printf %s "checking for dld_link in -ldld... " >&6; }
14420 if test ${ac_cv_lib_dld_dld_link+y}
14421 then :
14422 printf %s "(cached) " >&6
14423 else case e in #(
14424 e) ac_check_lib_save_LIBS=$LIBS
14425 LIBS="-ldld $LIBS"
14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14428
14429 /* Override any GCC internal prototype to avoid an error.
14430 Use char because int might match the return type of a GCC
14431 builtin and then its argument prototype would still apply.
14432 The 'extern "C"' is for builds by C++ compilers;
14433 although this is not generally supported in C code supporting it here
14434 has little cost and some practical benefit (sr 110532). */
14435 #ifdef __cplusplus
14436 extern "C"
14437 #endif
14438 char dld_link (void);
14439 int
14440 main (void)
14441 {
14442 return dld_link ();
14443 ;
14444 return 0;
14445 }
14446 _ACEOF
14447 if ac_fn_c_try_link "$LINENO"
14448 then :
14449 ac_cv_lib_dld_dld_link=yes
14450 else case e in #(
14451 e) ac_cv_lib_dld_dld_link=no ;;
14452 esac
14453 fi
14454 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14455 conftest$ac_exeext conftest.$ac_ext
14456 LIBS=$ac_check_lib_save_LIBS ;;
14457 esac
14458 fi
14459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14460 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14461 if test "x$ac_cv_lib_dld_dld_link" = xyes
14462 then :
14463 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14464 fi
14465
14466 ;;
14467 esac
14468 fi
14469
14470 ;;
14471 esac
14472 fi
14473
14474 ;;
14475 esac
14476 fi
14477
14478 ;;
14479 esac
14480 fi
14481
14482 ;;
14483 esac
14484 fi
14485
14486 ;;
14487 esac
14488
14489 if test no = "$lt_cv_dlopen"; then
14490 enable_dlopen=no
14491 else
14492 enable_dlopen=yes
14493 fi
14494
14495 case $lt_cv_dlopen in
14496 dlopen)
14497 save_CPPFLAGS=$CPPFLAGS
14498 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14499
14500 save_LDFLAGS=$LDFLAGS
14501 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14502
14503 save_LIBS=$LIBS
14504 LIBS="$lt_cv_dlopen_libs $LIBS"
14505
14506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14507 printf %s "checking whether a program can dlopen itself... " >&6; }
14508 if test ${lt_cv_dlopen_self+y}
14509 then :
14510 printf %s "(cached) " >&6
14511 else case e in #(
14512 e) if test yes = "$cross_compiling"; then :
14513 lt_cv_dlopen_self=cross
14514 else
14515 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14516 lt_status=$lt_dlunknown
14517 cat > conftest.$ac_ext <<_LT_EOF
14518 #line $LINENO "configure"
14519 #include "confdefs.h"
14520
14521 #if HAVE_DLFCN_H
14522 #include <dlfcn.h>
14523 #endif
14524
14525 #include <stdio.h>
14526
14527 #ifdef RTLD_GLOBAL
14528 # define LT_DLGLOBAL RTLD_GLOBAL
14529 #else
14530 # ifdef DL_GLOBAL
14531 # define LT_DLGLOBAL DL_GLOBAL
14532 # else
14533 # define LT_DLGLOBAL 0
14534 # endif
14535 #endif
14536
14537 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14538 find out it does not work in some platform. */
14539 #ifndef LT_DLLAZY_OR_NOW
14540 # ifdef RTLD_LAZY
14541 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14542 # else
14543 # ifdef DL_LAZY
14544 # define LT_DLLAZY_OR_NOW DL_LAZY
14545 # else
14546 # ifdef RTLD_NOW
14547 # define LT_DLLAZY_OR_NOW RTLD_NOW
14548 # else
14549 # ifdef DL_NOW
14550 # define LT_DLLAZY_OR_NOW DL_NOW
14551 # else
14552 # define LT_DLLAZY_OR_NOW 0
14553 # endif
14554 # endif
14555 # endif
14556 # endif
14557 #endif
14558
14559 /* When -fvisibility=hidden is used, assume the code has been annotated
14560 correspondingly for the symbols needed. */
14561 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14562 int fnord (void) __attribute__((visibility("default")));
14563 #endif
14564
14565 int fnord (void) { return 42; }
14566 int main (void)
14567 {
14568 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14569 int status = $lt_dlunknown;
14570
14571 if (self)
14572 {
14573 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14574 else
14575 {
14576 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14577 else puts (dlerror ());
14578 }
14579 /* dlclose (self); */
14580 }
14581 else
14582 puts (dlerror ());
14583
14584 return status;
14585 }
14586 _LT_EOF
14587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14588 (eval $ac_link) 2>&5
14589 ac_status=$?
14590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14591 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14592 (./conftest; exit; ) >&5 2>/dev/null
14593 lt_status=$?
14594 case x$lt_status in
14595 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14596 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14597 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14598 esac
14599 else :
14600 # compilation failed
14601 lt_cv_dlopen_self=no
14602 fi
14603 fi
14604 rm -fr conftest*
14605
14606 ;;
14607 esac
14608 fi
14609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14610 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14611
14612 if test yes = "$lt_cv_dlopen_self"; then
14613 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14615 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14616 if test ${lt_cv_dlopen_self_static+y}
14617 then :
14618 printf %s "(cached) " >&6
14619 else case e in #(
14620 e) if test yes = "$cross_compiling"; then :
14621 lt_cv_dlopen_self_static=cross
14622 else
14623 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14624 lt_status=$lt_dlunknown
14625 cat > conftest.$ac_ext <<_LT_EOF
14626 #line $LINENO "configure"
14627 #include "confdefs.h"
14628
14629 #if HAVE_DLFCN_H
14630 #include <dlfcn.h>
14631 #endif
14632
14633 #include <stdio.h>
14634
14635 #ifdef RTLD_GLOBAL
14636 # define LT_DLGLOBAL RTLD_GLOBAL
14637 #else
14638 # ifdef DL_GLOBAL
14639 # define LT_DLGLOBAL DL_GLOBAL
14640 # else
14641 # define LT_DLGLOBAL 0
14642 # endif
14643 #endif
14644
14645 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14646 find out it does not work in some platform. */
14647 #ifndef LT_DLLAZY_OR_NOW
14648 # ifdef RTLD_LAZY
14649 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14650 # else
14651 # ifdef DL_LAZY
14652 # define LT_DLLAZY_OR_NOW DL_LAZY
14653 # else
14654 # ifdef RTLD_NOW
14655 # define LT_DLLAZY_OR_NOW RTLD_NOW
14656 # else
14657 # ifdef DL_NOW
14658 # define LT_DLLAZY_OR_NOW DL_NOW
14659 # else
14660 # define LT_DLLAZY_OR_NOW 0
14661 # endif
14662 # endif
14663 # endif
14664 # endif
14665 #endif
14666
14667 /* When -fvisibility=hidden is used, assume the code has been annotated
14668 correspondingly for the symbols needed. */
14669 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14670 int fnord (void) __attribute__((visibility("default")));
14671 #endif
14672
14673 int fnord (void) { return 42; }
14674 int main (void)
14675 {
14676 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14677 int status = $lt_dlunknown;
14678
14679 if (self)
14680 {
14681 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14682 else
14683 {
14684 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14685 else puts (dlerror ());
14686 }
14687 /* dlclose (self); */
14688 }
14689 else
14690 puts (dlerror ());
14691
14692 return status;
14693 }
14694 _LT_EOF
14695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14696 (eval $ac_link) 2>&5
14697 ac_status=$?
14698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14699 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14700 (./conftest; exit; ) >&5 2>/dev/null
14701 lt_status=$?
14702 case x$lt_status in
14703 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14704 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14705 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14706 esac
14707 else :
14708 # compilation failed
14709 lt_cv_dlopen_self_static=no
14710 fi
14711 fi
14712 rm -fr conftest*
14713
14714 ;;
14715 esac
14716 fi
14717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14718 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14719 fi
14720
14721 CPPFLAGS=$save_CPPFLAGS
14722 LDFLAGS=$save_LDFLAGS
14723 LIBS=$save_LIBS
14724 ;;
14725 esac
14726
14727 case $lt_cv_dlopen_self in
14728 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14729 *) enable_dlopen_self=unknown ;;
14730 esac
14731
14732 case $lt_cv_dlopen_self_static in
14733 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14734 *) enable_dlopen_self_static=unknown ;;
14735 esac
14736 fi
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754 striplib=
14755 old_striplib=
14756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14757 printf %s "checking whether stripping libraries is possible... " >&6; }
14758 if test -z "$STRIP"; then
14759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14760 printf "%s\n" "no" >&6; }
14761 else
14762 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14763 old_striplib="$STRIP --strip-debug"
14764 striplib="$STRIP --strip-unneeded"
14765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14766 printf "%s\n" "yes" >&6; }
14767 else
14768 case $host_os in
14769 darwin*)
14770 # FIXME - insert some real tests, host_os isn't really good enough
14771 striplib="$STRIP -x"
14772 old_striplib="$STRIP -S"
14773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14774 printf "%s\n" "yes" >&6; }
14775 ;;
14776 freebsd*)
14777 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14778 old_striplib="$STRIP --strip-debug"
14779 striplib="$STRIP --strip-unneeded"
14780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14781 printf "%s\n" "yes" >&6; }
14782 else
14783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14784 printf "%s\n" "no" >&6; }
14785 fi
14786 ;;
14787 *)
14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789 printf "%s\n" "no" >&6; }
14790 ;;
14791 esac
14792 fi
14793 fi
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806 # Report what library types will actually be built
14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14808 printf %s "checking if libtool supports shared libraries... " >&6; }
14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14810 printf "%s\n" "$can_build_shared" >&6; }
14811
14812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14813 printf %s "checking whether to build shared libraries... " >&6; }
14814 test no = "$can_build_shared" && enable_shared=no
14815
14816 # On AIX, shared libraries and static libraries use the same namespace, and
14817 # are all built from PIC.
14818 case $host_os in
14819 aix3*)
14820 test yes = "$enable_shared" && enable_static=no
14821 if test -n "$RANLIB"; then
14822 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14823 postinstall_cmds='$RANLIB $lib'
14824 fi
14825 ;;
14826
14827 aix[4-9]*)
14828 if test ia64 != "$host_cpu"; then
14829 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14830 yes,aix,yes) ;; # shared object as lib.so file only
14831 yes,svr4,*) ;; # shared object as lib.so archive member only
14832 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14833 esac
14834 fi
14835 ;;
14836 esac
14837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14838 printf "%s\n" "$enable_shared" >&6; }
14839
14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14841 printf %s "checking whether to build static libraries... " >&6; }
14842 # Make sure either enable_shared or enable_static is yes.
14843 test yes = "$enable_shared" || enable_static=yes
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14845 printf "%s\n" "$enable_static" >&6; }
14846
14847
14848
14849
14850 fi
14851 ac_ext=c
14852 ac_cpp='$CPP $CPPFLAGS'
14853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14856
14857 CC=$lt_save_CC
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873 ac_config_commands="$ac_config_commands libtool"
14874
14875
14876
14877
14878 # Only expand once:
14879
14880
14881 # (end lt_init)
14882 # Check whether --enable-largefile was given.
14883 if test ${enable_largefile+y}
14884 then :
14885 enableval=$enable_largefile;
14886 fi
14887 if test "$enable_largefile,$enable_year2038" != no,no
14888 then :
14889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
14890 printf %s "checking for $CC option to enable large file support... " >&6; }
14891 if test ${ac_cv_sys_largefile_opts+y}
14892 then :
14893 printf %s "(cached) " >&6
14894 else case e in #(
14895 e) ac_save_CC="$CC"
14896 ac_opt_found=no
14897 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
14898 if test x"$ac_opt" != x"none needed"
14899 then :
14900 CC="$ac_save_CC $ac_opt"
14901 fi
14902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903 /* end confdefs.h. */
14904 #include <sys/types.h>
14905 #ifndef FTYPE
14906 # define FTYPE off_t
14907 #endif
14908 /* Check that FTYPE can represent 2**63 - 1 correctly.
14909 We can't simply define LARGE_FTYPE to be 9223372036854775807,
14910 since some C++ compilers masquerading as C compilers
14911 incorrectly reject 9223372036854775807. */
14912 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14913 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14914 && LARGE_FTYPE % 2147483647 == 1)
14915 ? 1 : -1];
14916 int
14917 main (void)
14918 {
14919
14920 ;
14921 return 0;
14922 }
14923 _ACEOF
14924 if ac_fn_c_try_compile "$LINENO"
14925 then :
14926 if test x"$ac_opt" = x"none needed"
14927 then :
14928 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14929 CC="$CC -DFTYPE=ino_t"
14930 if ac_fn_c_try_compile "$LINENO"
14931 then :
14932
14933 else case e in #(
14934 e) CC="$CC -D_FILE_OFFSET_BITS=64"
14935 if ac_fn_c_try_compile "$LINENO"
14936 then :
14937 ac_opt='-D_FILE_OFFSET_BITS=64'
14938 fi
14939 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14940 esac
14941 fi
14942 rm -f core conftest.err conftest.$ac_objext conftest.beam
14943 fi
14944 ac_cv_sys_largefile_opts=$ac_opt
14945 ac_opt_found=yes
14946 fi
14947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14948 test $ac_opt_found = no || break
14949 done
14950 CC="$ac_save_CC"
14951
14952 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14953 esac
14954 fi
14955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14956 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14957
14958 ac_have_largefile=yes
14959 case $ac_cv_sys_largefile_opts in #(
14960 "none needed") :
14961 ;; #(
14962 "supported through gnulib") :
14963 ;; #(
14964 "support not detected") :
14965 ac_have_largefile=no ;; #(
14966 "-D_FILE_OFFSET_BITS=64") :
14967
14968 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14969 ;; #(
14970 "-D_LARGE_FILES=1") :
14971
14972 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14973 ;; #(
14974 "-n32") :
14975 CC="$CC -n32" ;; #(
14976 *) :
14977 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14978 esac
14979
14980 if test "$enable_year2038" != no
14981 then :
14982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
14983 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
14984 if test ${ac_cv_sys_year2038_opts+y}
14985 then :
14986 printf %s "(cached) " >&6
14987 else case e in #(
14988 e) ac_save_CPPFLAGS="$CPPFLAGS"
14989 ac_opt_found=no
14990 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
14991 if test x"$ac_opt" != x"none needed"
14992 then :
14993 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
14994 fi
14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14997
14998 #include <time.h>
14999 /* Check that time_t can represent 2**32 - 1 correctly. */
15000 #define LARGE_TIME_T \\
15001 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15002 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15003 && LARGE_TIME_T % 65537 == 0)
15004 ? 1 : -1];
15005
15006 int
15007 main (void)
15008 {
15009
15010 ;
15011 return 0;
15012 }
15013 _ACEOF
15014 if ac_fn_c_try_compile "$LINENO"
15015 then :
15016 ac_cv_sys_year2038_opts="$ac_opt"
15017 ac_opt_found=yes
15018 fi
15019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15020 test $ac_opt_found = no || break
15021 done
15022 CPPFLAGS="$ac_save_CPPFLAGS"
15023 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15024 esac
15025 fi
15026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15027 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15028
15029 ac_have_year2038=yes
15030 case $ac_cv_sys_year2038_opts in #(
15031 "none needed") :
15032 ;; #(
15033 "support not detected") :
15034 ac_have_year2038=no ;; #(
15035 "-D_TIME_BITS=64") :
15036
15037 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15038 ;; #(
15039 "-D__MINGW_USE_VC2005_COMPAT") :
15040
15041 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15042 ;; #(
15043 "-U_USE_32_BIT_TIME_T"*) :
15044 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15045 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15046 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15047 will stop working after mid-January 2038. Remove
15048 _USE_32BIT_TIME_T from the compiler flags.
15049 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15050 *) :
15051 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15052 esac
15053
15054 fi
15055
15056 fi
15057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15058 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15059 if test ${ac_cv_func_fseeko_ftello+y}
15060 then :
15061 printf %s "(cached) " >&6
15062 else case e in #(
15063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15065
15066 #if defined __hpux && !defined _LARGEFILE_SOURCE
15067 # include <limits.h>
15068 # if LONG_MAX >> 31 == 0
15069 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15070 # endif
15071 #endif
15072 #include <sys/types.h> /* for off_t */
15073 #include <stdio.h>
15074
15075 int
15076 main (void)
15077 {
15078
15079 int (*fp1) (FILE *, off_t, int) = fseeko;
15080 off_t (*fp2) (FILE *) = ftello;
15081 return fseeko (stdin, 0, 0)
15082 && fp1 (stdin, 0, 0)
15083 && ftello (stdin) >= 0
15084 && fp2 (stdin) >= 0;
15085
15086 ;
15087 return 0;
15088 }
15089 _ACEOF
15090 if ac_fn_c_try_compile "$LINENO"
15091 then :
15092 ac_cv_func_fseeko_ftello=yes
15093 else case e in #(
15094 e) ac_save_CPPFLAGS="$CPPFLAGS"
15095 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097 /* end confdefs.h. */
15098
15099 #if defined __hpux && !defined _LARGEFILE_SOURCE
15100 # include <limits.h>
15101 # if LONG_MAX >> 31 == 0
15102 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15103 # endif
15104 #endif
15105 #include <sys/types.h> /* for off_t */
15106 #include <stdio.h>
15107
15108 int
15109 main (void)
15110 {
15111
15112 int (*fp1) (FILE *, off_t, int) = fseeko;
15113 off_t (*fp2) (FILE *) = ftello;
15114 return fseeko (stdin, 0, 0)
15115 && fp1 (stdin, 0, 0)
15116 && ftello (stdin) >= 0
15117 && fp2 (stdin) >= 0;
15118
15119 ;
15120 return 0;
15121 }
15122 _ACEOF
15123 if ac_fn_c_try_compile "$LINENO"
15124 then :
15125 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15126 else case e in #(
15127 e) ac_cv_func_fseeko_ftello=no ;;
15128 esac
15129 fi
15130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15131 esac
15132 fi
15133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15134 esac
15135 fi
15136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15137 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15138 if test "$ac_cv_func_fseeko_ftello" != no
15139 then :
15140
15141 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15142
15143 fi
15144 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15145 then :
15146
15147 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15148
15149 fi
15150
15151 ac_header_dirent=no
15152 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15153 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15155 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15156 if eval test \${$as_ac_Header+y}
15157 then :
15158 printf %s "(cached) " >&6
15159 else case e in #(
15160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15162 #include <sys/types.h>
15163 #include <$ac_hdr>
15164
15165 int
15166 main (void)
15167 {
15168 if ((DIR *) 0)
15169 return 0;
15170 ;
15171 return 0;
15172 }
15173 _ACEOF
15174 if ac_fn_c_try_compile "$LINENO"
15175 then :
15176 eval "$as_ac_Header=yes"
15177 else case e in #(
15178 e) eval "$as_ac_Header=no" ;;
15179 esac
15180 fi
15181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15182 esac
15183 fi
15184 eval ac_res=\$$as_ac_Header
15185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15186 printf "%s\n" "$ac_res" >&6; }
15187 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15188 then :
15189 cat >>confdefs.h <<_ACEOF
15190 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15191 _ACEOF
15192
15193 ac_header_dirent=$ac_hdr; break
15194 fi
15195
15196 done
15197 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15198 if test $ac_header_dirent = dirent.h; then
15199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15200 printf %s "checking for library containing opendir... " >&6; }
15201 if test ${ac_cv_search_opendir+y}
15202 then :
15203 printf %s "(cached) " >&6
15204 else case e in #(
15205 e) ac_func_search_save_LIBS=$LIBS
15206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15207 /* end confdefs.h. */
15208
15209 /* Override any GCC internal prototype to avoid an error.
15210 Use char because int might match the return type of a GCC
15211 builtin and then its argument prototype would still apply.
15212 The 'extern "C"' is for builds by C++ compilers;
15213 although this is not generally supported in C code supporting it here
15214 has little cost and some practical benefit (sr 110532). */
15215 #ifdef __cplusplus
15216 extern "C"
15217 #endif
15218 char opendir (void);
15219 int
15220 main (void)
15221 {
15222 return opendir ();
15223 ;
15224 return 0;
15225 }
15226 _ACEOF
15227 for ac_lib in '' dir
15228 do
15229 if test -z "$ac_lib"; then
15230 ac_res="none required"
15231 else
15232 ac_res=-l$ac_lib
15233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15234 fi
15235 if ac_fn_c_try_link "$LINENO"
15236 then :
15237 ac_cv_search_opendir=$ac_res
15238 fi
15239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15240 conftest$ac_exeext
15241 if test ${ac_cv_search_opendir+y}
15242 then :
15243 break
15244 fi
15245 done
15246 if test ${ac_cv_search_opendir+y}
15247 then :
15248
15249 else case e in #(
15250 e) ac_cv_search_opendir=no ;;
15251 esac
15252 fi
15253 rm conftest.$ac_ext
15254 LIBS=$ac_func_search_save_LIBS ;;
15255 esac
15256 fi
15257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15258 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15259 ac_res=$ac_cv_search_opendir
15260 if test "$ac_res" != no
15261 then :
15262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15263
15264 fi
15265
15266 else
15267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15268 printf %s "checking for library containing opendir... " >&6; }
15269 if test ${ac_cv_search_opendir+y}
15270 then :
15271 printf %s "(cached) " >&6
15272 else case e in #(
15273 e) ac_func_search_save_LIBS=$LIBS
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276
15277 /* Override any GCC internal prototype to avoid an error.
15278 Use char because int might match the return type of a GCC
15279 builtin and then its argument prototype would still apply.
15280 The 'extern "C"' is for builds by C++ compilers;
15281 although this is not generally supported in C code supporting it here
15282 has little cost and some practical benefit (sr 110532). */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 char opendir (void);
15287 int
15288 main (void)
15289 {
15290 return opendir ();
15291 ;
15292 return 0;
15293 }
15294 _ACEOF
15295 for ac_lib in '' x
15296 do
15297 if test -z "$ac_lib"; then
15298 ac_res="none required"
15299 else
15300 ac_res=-l$ac_lib
15301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15302 fi
15303 if ac_fn_c_try_link "$LINENO"
15304 then :
15305 ac_cv_search_opendir=$ac_res
15306 fi
15307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15308 conftest$ac_exeext
15309 if test ${ac_cv_search_opendir+y}
15310 then :
15311 break
15312 fi
15313 done
15314 if test ${ac_cv_search_opendir+y}
15315 then :
15316
15317 else case e in #(
15318 e) ac_cv_search_opendir=no ;;
15319 esac
15320 fi
15321 rm conftest.$ac_ext
15322 LIBS=$ac_func_search_save_LIBS ;;
15323 esac
15324 fi
15325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15326 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15327 ac_res=$ac_cv_search_opendir
15328 if test "$ac_res" != no
15329 then :
15330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15331
15332 fi
15333
15334 fi
15335
15336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15337 printf %s "checking whether closedir returns void... " >&6; }
15338 if test ${ac_cv_func_closedir_void+y}
15339 then :
15340 printf %s "(cached) " >&6
15341 else case e in #(
15342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344
15345 #include <$ac_header_dirent>
15346
15347 int
15348 main (void)
15349 {
15350
15351 return closedir(0);
15352
15353 ;
15354 return 0;
15355 }
15356 _ACEOF
15357 if ac_fn_c_try_compile "$LINENO"
15358 then :
15359 ac_cv_func_closedir_void=no
15360 else case e in #(
15361 e) ac_cv_func_closedir_void=yes ;;
15362 esac
15363 fi
15364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15365 esac
15366 fi
15367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15368 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15369 if test $ac_cv_func_closedir_void = yes; then
15370
15371 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15372
15373 fi
15374
15375 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15376 if test "x$ac_cv_header_assert_h" = xyes
15377 then :
15378 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15379
15380 fi
15381 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15382 if test "x$ac_cv_header_float_h" = xyes
15383 then :
15384 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15385
15386 fi
15387 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15388 if test "x$ac_cv_header_limits_h" = xyes
15389 then :
15390 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15391
15392 fi
15393 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15394 if test "x$ac_cv_header_pwd_h" = xyes
15395 then :
15396 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15397
15398 fi
15399 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15400 if test "x$ac_cv_header_stdlib_h" = xyes
15401 then :
15402 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15403
15404 fi
15405 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15406 if test "x$ac_cv_header_sys_param_h" = xyes
15407 then :
15408 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15409
15410 fi
15411
15412 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15413 if test "x$ac_cv_func_putenv" = xyes
15414 then :
15415 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15416
15417 fi
15418
15419 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15420 if test "x$ac_cv_func_getcwd" = xyes
15421 then :
15422 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15423
15424 fi
15425 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15426 if test "x$ac_cv_func_memcmp" = xyes
15427 then :
15428 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15429
15430 fi
15431 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15432 if test "x$ac_cv_func_memcpy" = xyes
15433 then :
15434 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15435
15436 fi
15437 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15438 if test "x$ac_cv_func_mkstemp" = xyes
15439 then :
15440 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15441
15442 fi
15443 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15444 if test "x$ac_cv_func_mktemp" = xyes
15445 then :
15446 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15447
15448 fi
15449 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15450 if test "x$ac_cv_func_strchr" = xyes
15451 then :
15452 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15453
15454 fi
15455 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15456 if test "x$ac_cv_func_strrchr" = xyes
15457 then :
15458 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15459
15460 fi
15461
15462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15463 printf %s "checking for an ANSI C-conforming const... " >&6; }
15464 if test ${ac_cv_c_const+y}
15465 then :
15466 printf %s "(cached) " >&6
15467 else case e in #(
15468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h. */
15470
15471 int
15472 main (void)
15473 {
15474
15475 #ifndef __cplusplus
15476 /* Ultrix mips cc rejects this sort of thing. */
15477 typedef int charset[2];
15478 const charset cs = { 0, 0 };
15479 /* SunOS 4.1.1 cc rejects this. */
15480 char const *const *pcpcc;
15481 char **ppc;
15482 /* NEC SVR4.0.2 mips cc rejects this. */
15483 struct point {int x, y;};
15484 static struct point const zero = {0,0};
15485 /* IBM XL C 1.02.0.0 rejects this.
15486 It does not let you subtract one const X* pointer from another in
15487 an arm of an if-expression whose if-part is not a constant
15488 expression */
15489 const char *g = "string";
15490 pcpcc = &g + (g ? g-g : 0);
15491 /* HPUX 7.0 cc rejects these. */
15492 ++pcpcc;
15493 ppc = (char**) pcpcc;
15494 pcpcc = (char const *const *) ppc;
15495 { /* SCO 3.2v4 cc rejects this sort of thing. */
15496 char tx;
15497 char *t = &tx;
15498 char const *s = 0 ? (char *) 0 : (char const *) 0;
15499
15500 *t++ = 0;
15501 if (s) return 0;
15502 }
15503 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15504 int x[] = {25, 17};
15505 const int *foo = &x[0];
15506 ++foo;
15507 }
15508 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15509 typedef const int *iptr;
15510 iptr p = 0;
15511 ++p;
15512 }
15513 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15514 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15515 struct s { int j; const int *ap[3]; } bx;
15516 struct s *b = &bx; b->j = 5;
15517 }
15518 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15519 const int foo = 10;
15520 if (!foo) return 0;
15521 }
15522 return !cs[0] && !zero.x;
15523 #endif
15524
15525 ;
15526 return 0;
15527 }
15528 _ACEOF
15529 if ac_fn_c_try_compile "$LINENO"
15530 then :
15531 ac_cv_c_const=yes
15532 else case e in #(
15533 e) ac_cv_c_const=no ;;
15534 esac
15535 fi
15536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15537 esac
15538 fi
15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15540 printf "%s\n" "$ac_cv_c_const" >&6; }
15541 if test $ac_cv_c_const = no; then
15542
15543 printf "%s\n" "#define const /**/" >>confdefs.h
15544
15545 fi
15546
15547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15548 printf %s "checking for inline... " >&6; }
15549 if test ${ac_cv_c_inline+y}
15550 then :
15551 printf %s "(cached) " >&6
15552 else case e in #(
15553 e) ac_cv_c_inline=no
15554 for ac_kw in inline __inline__ __inline; do
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557 #ifndef __cplusplus
15558 typedef int foo_t;
15559 static $ac_kw foo_t static_foo (void) {return 0; }
15560 $ac_kw foo_t foo (void) {return 0; }
15561 #endif
15562
15563 _ACEOF
15564 if ac_fn_c_try_compile "$LINENO"
15565 then :
15566 ac_cv_c_inline=$ac_kw
15567 fi
15568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15569 test "$ac_cv_c_inline" != no && break
15570 done
15571 ;;
15572 esac
15573 fi
15574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15575 printf "%s\n" "$ac_cv_c_inline" >&6; }
15576
15577 case $ac_cv_c_inline in
15578 inline | yes) ;;
15579 *)
15580 case $ac_cv_c_inline in
15581 no) ac_val=;;
15582 *) ac_val=$ac_cv_c_inline;;
15583 esac
15584 cat >>confdefs.h <<_ACEOF
15585 #ifndef __cplusplus
15586 #define inline $ac_val
15587 #endif
15588 _ACEOF
15589 ;;
15590 esac
15591
15592 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15593 if test "x$ac_cv_type_size_t" = xyes
15594 then :
15595
15596 else case e in #(
15597 e)
15598 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15599 ;;
15600 esac
15601 fi
15602
15603 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15604 case $ac_cv_c_int64_t in #(
15605 no|yes) ;; #(
15606 *)
15607
15608 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15609 ;;
15610 esac
15611
15612 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15613 case $ac_cv_c_uint64_t in #(
15614 no|yes) ;; #(
15615 *)
15616
15617 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15618
15619
15620 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15621 ;;
15622 esac
15623
15624 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15625 *':no:'*) :
15626 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15627 *) :
15628 ;;
15629 esac
15630 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15631 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15632 if test "x$ac_cv_have_decl_isascii" = xyes
15633 then :
15634 ac_have_decl=1
15635 else case e in #(
15636 e) ac_have_decl=0 ;;
15637 esac
15638 fi
15639 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15640
15641 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15642 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15643 then :
15644
15645 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15646
15647
15648 fi
15649
15650
15651
15652 ac_config_headers="$ac_config_headers config.h"
15653
15654
15655
15656
15657 printf "%s\n" "#define TL_VERSION \"TeX Live 2026\"" >>confdefs.h
15658
15659
15660 # We don't use libpathsea, so add '-DNO_DEBUG' not to overload fopen.
15661 kpse_save_CPPFLAGS=$CPPFLAGS
15662 kpse_save_LIBS=$LIBS
15663
15664 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
15665 kpse_BLD=`(cd "./../../." && pwd)`
15666 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
15667
15668 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
15669 : ${CONFIG_LT=./config.lt}
15670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15671 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
15672 as_write_fail=0
15673 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15674 #! $SHELL
15675 # Generated by $as_me.
15676 # Run this file to recreate a libtool stub with the current configuration.
15677 SHELL=\${CONFIG_SHELL-$SHELL}
15678 export SHELL
15679 _ASEOF
15680 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15681 ## -------------------- ##
15682 ## M4sh Initialization. ##
15683 ## -------------------- ##
15684
15685 # Be more Bourne compatible
15686 DUALCASE=1; export DUALCASE # for MKS sh
15687 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15688 then :
15689 emulate sh
15690 NULLCMD=:
15691 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15692 # is contrary to our usage. Disable this feature.
15693 alias -g '${1+"$@"}'='"$@"'
15694 setopt NO_GLOB_SUBST
15695 else case e in #(
15696 e) case `(set -o) 2>/dev/null` in #(
15697 *posix*) :
15698 set -o posix ;; #(
15699 *) :
15700 ;;
15701 esac ;;
15702 esac
15703 fi
15704
15705
15706
15707 # Reset variables that may have inherited troublesome values from
15708 # the environment.
15709
15710 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15711 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15712 # side effect of setting IFS to empty, thus disabling word splitting.)
15713 # Quoting is to prevent editors from complaining about space-tab.
15714 as_nl='
15715 '
15716 export as_nl
15717 IFS=" "" $as_nl"
15718
15719 PS1='$ '
15720 PS2='> '
15721 PS4='+ '
15722
15723 # Ensure predictable behavior from utilities with locale-dependent output.
15724 LC_ALL=C
15725 export LC_ALL
15726 LANGUAGE=C
15727 export LANGUAGE
15728
15729 # We cannot yet rely on "unset" to work, but we need these variables
15730 # to be unset--not just set to an empty or harmless value--now, to
15731 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15732 # also avoids known problems related to "unset" and subshell syntax
15733 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15734 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15735 do eval test \${$as_var+y} \
15736 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15737 done
15738
15739 # Ensure that fds 0, 1, and 2 are open.
15740 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15741 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15742 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15743
15744 # The user is always right.
15745 if ${PATH_SEPARATOR+false} :; then
15746 PATH_SEPARATOR=:
15747 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15748 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15749 PATH_SEPARATOR=';'
15750 }
15751 fi
15752
15753
15754 # Find who we are. Look in the path if we contain no directory separator.
15755 as_myself=
15756 case $0 in #((
15757 *[\\/]* ) as_myself=$0 ;;
15758 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15759 for as_dir in $PATH
15760 do
15761 IFS=$as_save_IFS
15762 case $as_dir in #(((
15763 '') as_dir=./ ;;
15764 */) ;;
15765 *) as_dir=$as_dir/ ;;
15766 esac
15767 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15768 done
15769 IFS=$as_save_IFS
15770
15771 ;;
15772 esac
15773 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15774 # in which case we are not to be found in the path.
15775 if test "x$as_myself" = x; then
15776 as_myself=$0
15777 fi
15778 if test ! -f "$as_myself"; then
15779 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15780 exit 1
15781 fi
15782
15783
15784
15785 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15786 # ----------------------------------------
15787 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15788 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15789 # script with STATUS, using 1 if that was 0.
15790 as_fn_error ()
15791 {
15792 as_status=$1; test $as_status -eq 0 && as_status=1
15793 if test "$4"; then
15794 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15796 fi
15797 printf "%s\n" "$as_me: error: $2" >&2
15798 as_fn_exit $as_status
15799 } # as_fn_error
15800
15801
15802 # as_fn_set_status STATUS
15803 # -----------------------
15804 # Set $? to STATUS, without forking.
15805 as_fn_set_status ()
15806 {
15807 return $1
15808 } # as_fn_set_status
15809
15810 # as_fn_exit STATUS
15811 # -----------------
15812 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15813 as_fn_exit ()
15814 {
15815 set +e
15816 as_fn_set_status $1
15817 exit $1
15818 } # as_fn_exit
15819
15820 # as_fn_unset VAR
15821 # ---------------
15822 # Portably unset VAR.
15823 as_fn_unset ()
15824 {
15825 { eval $1=; unset $1;}
15826 }
15827 as_unset=as_fn_unset
15828
15829 # as_fn_append VAR VALUE
15830 # ----------------------
15831 # Append the text in VALUE to the end of the definition contained in VAR. Take
15832 # advantage of any shell optimizations that allow amortized linear growth over
15833 # repeated appends, instead of the typical quadratic growth present in naive
15834 # implementations.
15835 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15836 then :
15837 eval 'as_fn_append ()
15838 {
15839 eval $1+=\$2
15840 }'
15841 else case e in #(
15842 e) as_fn_append ()
15843 {
15844 eval $1=\$$1\$2
15845 } ;;
15846 esac
15847 fi # as_fn_append
15848
15849 # as_fn_arith ARG...
15850 # ------------------
15851 # Perform arithmetic evaluation on the ARGs, and store the result in the
15852 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15853 # must be portable across $(()) and expr.
15854 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15855 then :
15856 eval 'as_fn_arith ()
15857 {
15858 as_val=$(( $* ))
15859 }'
15860 else case e in #(
15861 e) as_fn_arith ()
15862 {
15863 as_val=`expr "$@" || test $? -eq 1`
15864 } ;;
15865 esac
15866 fi # as_fn_arith
15867
15868
15869 if expr a : '\(a\)' >/dev/null 2>&1 &&
15870 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15871 as_expr=expr
15872 else
15873 as_expr=false
15874 fi
15875
15876 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15877 as_basename=basename
15878 else
15879 as_basename=false
15880 fi
15881
15882 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15883 as_dirname=dirname
15884 else
15885 as_dirname=false
15886 fi
15887
15888 as_me=`$as_basename -- "$0" ||
15889 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15890 X"$0" : 'X\(//\)$' \| \
15891 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15892 printf "%s\n" X/"$0" |
15893 sed '/^.*\/\([^/][^/]*\)\/*$/{
15894 s//\1/
15895 q
15896 }
15897 /^X\/\(\/\/\)$/{
15898 s//\1/
15899 q
15900 }
15901 /^X\/\(\/\).*/{
15902 s//\1/
15903 q
15904 }
15905 s/.*/./; q'`
15906
15907 # Avoid depending upon Character Ranges.
15908 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15909 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15910 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15911 as_cr_digits='0123456789'
15912 as_cr_alnum=$as_cr_Letters$as_cr_digits
15913
15914
15915 # Determine whether it's possible to make 'echo' print without a newline.
15916 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15917 # for compatibility with existing Makefiles.
15918 ECHO_C= ECHO_N= ECHO_T=
15919 case `echo -n x` in #(((((
15920 -n*)
15921 case `echo 'xy\c'` in
15922 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15923 xy) ECHO_C='\c';;
15924 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15925 ECHO_T=' ';;
15926 esac;;
15927 *)
15928 ECHO_N='-n';;
15929 esac
15930
15931 # For backward compatibility with old third-party macros, we provide
15932 # the shell variables $as_echo and $as_echo_n. New code should use
15933 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15934 as_echo='printf %s\n'
15935 as_echo_n='printf %s'
15936
15937 rm -f conf$$ conf$$.exe conf$$.file
15938 if test -d conf$$.dir; then
15939 rm -f conf$$.dir/conf$$.file
15940 else
15941 rm -f conf$$.dir
15942 mkdir conf$$.dir 2>/dev/null
15943 fi
15944 if (echo >conf$$.file) 2>/dev/null; then
15945 if ln -s conf$$.file conf$$ 2>/dev/null; then
15946 as_ln_s='ln -s'
15947 # ... but there are two gotchas:
15948 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15949 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15950 # In both cases, we have to default to 'cp -pR'.
15951 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15952 as_ln_s='cp -pR'
15953 elif ln conf$$.file conf$$ 2>/dev/null; then
15954 as_ln_s=ln
15955 else
15956 as_ln_s='cp -pR'
15957 fi
15958 else
15959 as_ln_s='cp -pR'
15960 fi
15961 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15962 rmdir conf$$.dir 2>/dev/null
15963
15964
15965 # as_fn_mkdir_p
15966 # -------------
15967 # Create "$as_dir" as a directory, including parents if necessary.
15968 as_fn_mkdir_p ()
15969 {
15970
15971 case $as_dir in #(
15972 -*) as_dir=./$as_dir;;
15973 esac
15974 test -d "$as_dir" || eval $as_mkdir_p || {
15975 as_dirs=
15976 while :; do
15977 case $as_dir in #(
15978 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15979 *) as_qdir=$as_dir;;
15980 esac
15981 as_dirs="'$as_qdir' $as_dirs"
15982 as_dir=`$as_dirname -- "$as_dir" ||
15983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15984 X"$as_dir" : 'X\(//\)[^/]' \| \
15985 X"$as_dir" : 'X\(//\)$' \| \
15986 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15987 printf "%s\n" X"$as_dir" |
15988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15989 s//\1/
15990 q
15991 }
15992 /^X\(\/\/\)[^/].*/{
15993 s//\1/
15994 q
15995 }
15996 /^X\(\/\/\)$/{
15997 s//\1/
15998 q
15999 }
16000 /^X\(\/\).*/{
16001 s//\1/
16002 q
16003 }
16004 s/.*/./; q'`
16005 test -d "$as_dir" && break
16006 done
16007 test -z "$as_dirs" || eval "mkdir $as_dirs"
16008 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16009
16010
16011 } # as_fn_mkdir_p
16012 if mkdir -p . 2>/dev/null; then
16013 as_mkdir_p='mkdir -p "$as_dir"'
16014 else
16015 test -d ./-p && rmdir ./-p
16016 as_mkdir_p=false
16017 fi
16018
16019
16020 # as_fn_executable_p FILE
16021 # -----------------------
16022 # Test if FILE is an executable regular file.
16023 as_fn_executable_p ()
16024 {
16025 test -f "$1" && test -x "$1"
16026 } # as_fn_executable_p
16027 as_test_x='test -x'
16028 as_executable_p=as_fn_executable_p
16029
16030 # Sed expression to map a string onto a valid CPP name.
16031 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16032 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16033
16034 # Sed expression to map a string onto a valid variable name.
16035 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16036 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16037
16038
16039 exec 6>&1
16040 ## --------------------------------- ##
16041 ## Main body of "$CONFIG_LT" script. ##
16042 ## --------------------------------- ##
16043 _ASEOF
16044 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
16045
16046 cat >>"$CONFIG_LT" <<\_LTEOF
16047 lt_cl_silent=false
16048 exec 5>>config.log
16049 {
16050 echo
16051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16052 ## Running $as_me. ##
16053 _ASBOX
16054 } >&5
16055
16056 lt_cl_help="\
16057 '$as_me' creates a local libtool stub from the current configuration,
16058 for use in further configure time tests before the real libtool is
16059 generated.
16060
16061 Usage: $0 [OPTIONS]
16062
16063 -h, --help print this help, then exit
16064 -V, --version print version number, then exit
16065 -q, --quiet do not print progress messages
16066 -d, --debug don't remove temporary files
16067
16068 Report bugs to <[email protected]>."
16069
16070 lt_cl_version="\
16071 dvidvi (TeX Live) config.lt 1.1
16072 configured by $0, generated by GNU Autoconf 2.72.
16073
16074 Copyright (C) 2024 Free Software Foundation, Inc.
16075 This config.lt script is free software; the Free Software Foundation
16076 gives unlimited permission to copy, distribute and modify it."
16077
16078 while test 0 != $#
16079 do
16080 case $1 in
16081 --version | --v* | -V )
16082 echo "$lt_cl_version"; exit 0 ;;
16083 --help | --h* | -h )
16084 echo "$lt_cl_help"; exit 0 ;;
16085 --debug | --d* | -d )
16086 debug=: ;;
16087 --quiet | --q* | --silent | --s* | -q )
16088 lt_cl_silent=: ;;
16089
16090 -*) as_fn_error $? "unrecognized option: $1
16091 Try '$0 --help' for more information." "$LINENO" 5 ;;
16092
16093 *) as_fn_error $? "unrecognized argument: $1
16094 Try '$0 --help' for more information." "$LINENO" 5 ;;
16095 esac
16096 shift
16097 done
16098
16099 if $lt_cl_silent; then
16100 exec 6>/dev/null
16101 fi
16102 _LTEOF
16103
16104 cat >>"$CONFIG_LT" <<_LTEOF
16105
16106
16107 # The HP-UX ksh and POSIX shell print the target directory to stdout
16108 # if CDPATH is set.
16109 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16110
16111 sed_quote_subst='$sed_quote_subst'
16112 double_quote_subst='$double_quote_subst'
16113 delay_variable_subst='$delay_variable_subst'
16114 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16115 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16116 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16117 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16118 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16119 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16120 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16121 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16122 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16123 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16124 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16125 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16126 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16127 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16128 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16129 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16130 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16131 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16132 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16133 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16134 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16135 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16136 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16137 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16138 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16139 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16140 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16141 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16142 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16143 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16144 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16145 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16146 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16147 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16148 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16149 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16150 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16151 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16152 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16153 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16154 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16155 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16156 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16157 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16158 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16159 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16160 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16161 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16162 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16163 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16164 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16165 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16166 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16167 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16168 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16169 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16170 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16171 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16172 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16173 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16174 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16175 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"`'
16176 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16177 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16178 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16179 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16180 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16181 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16182 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16183 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16184 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16185 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16186 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16187 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16188 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16189 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16190 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16191 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16192 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16193 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16194 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16195 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16196 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16197 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16198 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16199 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16200 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16201 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16202 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16203 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16204 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16205 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16206 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16207 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16208 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16209 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16210 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16211 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16212 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16213 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16214 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16215 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16216 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16217 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16218 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16219 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16220 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16221 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16222 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16223 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16224 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16225 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16226 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16227 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16228 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16229 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16230 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16231 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16232 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16233 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16234 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16235 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16236 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16237 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16238 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16239 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16240 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16241 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16242 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16243 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16244 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16245 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16246 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16247 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16248 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16249 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16250 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16251 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16252
16253 LTCC='$LTCC'
16254 LTCFLAGS='$LTCFLAGS'
16255 compiler='$compiler_DEFAULT'
16256
16257 # A function that is used when there is no print builtin or printf.
16258 func_fallback_echo ()
16259 {
16260 eval 'cat <<_LTECHO_EOF
16261 \$1
16262 _LTECHO_EOF'
16263 }
16264
16265 # Quote evaled strings.
16266 for var in AS \
16267 DLLTOOL \
16268 OBJDUMP \
16269 SHELL \
16270 ECHO \
16271 PATH_SEPARATOR \
16272 SED \
16273 GREP \
16274 EGREP \
16275 FGREP \
16276 LD \
16277 NM \
16278 LN_S \
16279 lt_SP2NL \
16280 lt_NL2SP \
16281 reload_flag \
16282 FILECMD \
16283 deplibs_check_method \
16284 file_magic_cmd \
16285 file_magic_glob \
16286 want_nocaseglob \
16287 sharedlib_from_linklib_cmd \
16288 AR \
16289 archiver_list_spec \
16290 STRIP \
16291 RANLIB \
16292 CC \
16293 CFLAGS \
16294 compiler \
16295 lt_cv_sys_global_symbol_pipe \
16296 lt_cv_sys_global_symbol_to_cdecl \
16297 lt_cv_sys_global_symbol_to_import \
16298 lt_cv_sys_global_symbol_to_c_name_address \
16299 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16300 lt_cv_nm_interface \
16301 nm_file_list_spec \
16302 lt_cv_truncate_bin \
16303 lt_prog_compiler_no_builtin_flag \
16304 lt_prog_compiler_pic \
16305 lt_prog_compiler_wl \
16306 lt_prog_compiler_static \
16307 lt_cv_prog_compiler_c_o \
16308 need_locks \
16309 MANIFEST_TOOL \
16310 DSYMUTIL \
16311 NMEDIT \
16312 LIPO \
16313 OTOOL \
16314 OTOOL64 \
16315 shrext_cmds \
16316 export_dynamic_flag_spec \
16317 whole_archive_flag_spec \
16318 compiler_needs_object \
16319 with_gnu_ld \
16320 allow_undefined_flag \
16321 no_undefined_flag \
16322 hardcode_libdir_flag_spec \
16323 hardcode_libdir_separator \
16324 exclude_expsyms \
16325 include_expsyms \
16326 file_list_spec \
16327 variables_saved_for_relink \
16328 libname_spec \
16329 library_names_spec \
16330 soname_spec \
16331 install_override_mode \
16332 finish_eval \
16333 old_striplib \
16334 striplib; do
16335 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16336 *[\\\\\\\`\\"\\\$]*)
16337 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16338 ;;
16339 *)
16340 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16341 ;;
16342 esac
16343 done
16344
16345 # Double-quote double-evaled strings.
16346 for var in reload_cmds \
16347 old_postinstall_cmds \
16348 old_postuninstall_cmds \
16349 old_archive_cmds \
16350 extract_expsyms_cmds \
16351 old_archive_from_new_cmds \
16352 old_archive_from_expsyms_cmds \
16353 archive_cmds \
16354 archive_expsym_cmds \
16355 module_cmds \
16356 module_expsym_cmds \
16357 export_symbols_cmds \
16358 prelink_cmds \
16359 postlink_cmds \
16360 postinstall_cmds \
16361 postuninstall_cmds \
16362 finish_cmds \
16363 sys_lib_search_path_spec \
16364 configure_time_dlsearch_path \
16365 configure_time_lt_sys_library_path; do
16366 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16367 *[\\\\\\\`\\"\\\$]*)
16368 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16369 ;;
16370 *)
16371 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16372 ;;
16373 esac
16374 done
16375
16376 ac_aux_dir='$ac_aux_dir'
16377
16378 # See if we are running on zsh, and set the options that allow our
16379 # commands through without removal of \ escapes INIT.
16380 if test -n "\${ZSH_VERSION+set}"; then
16381 setopt NO_GLOB_SUBST
16382 fi
16383
16384
16385 PACKAGE='$PACKAGE'
16386 VERSION='$VERSION'
16387 RM='$RM'
16388 ofile='$ofile'
16389
16390
16391
16392 _LTEOF
16393
16394 cat >>"$CONFIG_LT" <<\_LTEOF
16395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16396 printf "%s\n" "$as_me: creating $ofile" >&6;}
16397
16398
16399 # See if we are running on zsh, and set the options that allow our
16400 # commands through without removal of \ escapes.
16401 if test -n "${ZSH_VERSION+set}"; then
16402 setopt NO_GLOB_SUBST
16403 fi
16404
16405 cfgfile=${ofile}T
16406 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16407 $RM "$cfgfile"
16408
16409 cat <<_LT_EOF >> "$cfgfile"
16410 #! $SHELL
16411 # Generated automatically by $as_me ($PACKAGE) $VERSION
16412 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16413
16414 # Provide generalized library-building support services.
16415 # Written by Gordon Matzigkeit, 1996
16416
16417 # Copyright (C) 2024 Free Software Foundation, Inc.
16418 # This is free software; see the source for copying conditions. There is NO
16419 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16420
16421 # GNU Libtool is free software; you can redistribute it and/or modify
16422 # it under the terms of the GNU General Public License as published by
16423 # the Free Software Foundation; either version 2 of the License, or
16424 # (at your option) any later version.
16425 #
16426 # As a special exception to the GNU General Public License, if you
16427 # distribute this file as part of a program or library that is built
16428 # using GNU Libtool, you may include this file under the same
16429 # distribution terms that you use for the rest of that program.
16430 #
16431 # GNU Libtool is distributed in the hope that it will be useful, but
16432 # WITHOUT ANY WARRANTY; without even the implied warranty of
16433 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16434 # GNU General Public License for more details.
16435 #
16436 # You should have received a copy of the GNU General Public License
16437 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16438
16439
16440 # The names of the tagged configurations supported by this script.
16441 available_tags=''
16442
16443 # Configured defaults for sys_lib_dlsearch_path munging.
16444 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16445
16446 # ### BEGIN LIBTOOL CONFIG
16447
16448 # Which release of libtool.m4 was used?
16449 macro_version=$macro_version
16450 macro_revision=$macro_revision
16451
16452 # Assembler program.
16453 AS=$lt_AS
16454
16455 # DLL creation program.
16456 DLLTOOL=$lt_DLLTOOL
16457
16458 # Object dumper program.
16459 OBJDUMP=$lt_OBJDUMP
16460
16461 # Whether or not to build shared libraries.
16462 build_libtool_libs=$enable_shared
16463
16464 # Whether or not to build static libraries.
16465 build_old_libs=$enable_static
16466
16467 # What type of objects to build.
16468 pic_mode=$pic_mode
16469
16470 # Whether or not to optimize for fast installation.
16471 fast_install=$enable_fast_install
16472
16473 # Shared archive member basename,for filename based shared library versioning on AIX.
16474 shared_archive_member_spec=$shared_archive_member_spec
16475
16476 # Shell to use when invoking shell scripts.
16477 SHELL=$lt_SHELL
16478
16479 # An echo program that protects backslashes.
16480 ECHO=$lt_ECHO
16481
16482 # The PATH separator for the build system.
16483 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16484
16485 # The host system.
16486 host_alias=$host_alias
16487 host=$host
16488 host_os=$host_os
16489
16490 # The build system.
16491 build_alias=$build_alias
16492 build=$build
16493 build_os=$build_os
16494
16495 # A sed program that does not truncate output.
16496 SED=$lt_SED
16497
16498 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16499 Xsed="\$SED -e 1s/^X//"
16500
16501 # A grep program that handles long lines.
16502 GREP=$lt_GREP
16503
16504 # An ERE matcher.
16505 EGREP=$lt_EGREP
16506
16507 # A literal string matcher.
16508 FGREP=$lt_FGREP
16509
16510 # A BSD- or MS-compatible name lister.
16511 NM=$lt_NM
16512
16513 # Whether we need soft or hard links.
16514 LN_S=$lt_LN_S
16515
16516 # What is the maximum length of a command?
16517 max_cmd_len=$max_cmd_len
16518
16519 # Object file suffix (normally "o").
16520 objext=$ac_objext
16521
16522 # Executable file suffix (normally "").
16523 exeext=$exeext
16524
16525 # whether the shell understands "unset".
16526 lt_unset=$lt_unset
16527
16528 # turn spaces into newlines.
16529 SP2NL=$lt_lt_SP2NL
16530
16531 # turn newlines into spaces.
16532 NL2SP=$lt_lt_NL2SP
16533
16534 # convert \$build file names to \$host format.
16535 to_host_file_cmd=$lt_cv_to_host_file_cmd
16536
16537 # convert \$build files to toolchain format.
16538 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16539
16540 # A file(cmd) program that detects file types.
16541 FILECMD=$lt_FILECMD
16542
16543 # Method to check whether dependent libraries are shared objects.
16544 deplibs_check_method=$lt_deplibs_check_method
16545
16546 # Command to use when deplibs_check_method = "file_magic".
16547 file_magic_cmd=$lt_file_magic_cmd
16548
16549 # How to find potential files when deplibs_check_method = "file_magic".
16550 file_magic_glob=$lt_file_magic_glob
16551
16552 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16553 want_nocaseglob=$lt_want_nocaseglob
16554
16555 # Command to associate shared and link libraries.
16556 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16557
16558 # The archiver.
16559 AR=$lt_AR
16560
16561 # Flags to create an archive (by configure).
16562 lt_ar_flags=$lt_ar_flags
16563
16564 # Flags to create an archive.
16565 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16566
16567 # How to feed a file listing to the archiver.
16568 archiver_list_spec=$lt_archiver_list_spec
16569
16570 # A symbol stripping program.
16571 STRIP=$lt_STRIP
16572
16573 # Commands used to install an old-style archive.
16574 RANLIB=$lt_RANLIB
16575 old_postinstall_cmds=$lt_old_postinstall_cmds
16576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16577
16578 # Whether to use a lock for old archive extraction.
16579 lock_old_archive_extraction=$lock_old_archive_extraction
16580
16581 # A C compiler.
16582 LTCC=$lt_CC
16583
16584 # LTCC compiler flags.
16585 LTCFLAGS=$lt_CFLAGS
16586
16587 # Take the output of nm and produce a listing of raw symbols and C names.
16588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16589
16590 # Transform the output of nm in a proper C declaration.
16591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16592
16593 # Transform the output of nm into a list of symbols to manually relocate.
16594 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16595
16596 # Transform the output of nm in a C name address pair.
16597 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16598
16599 # Transform the output of nm in a C name address pair when lib prefix is needed.
16600 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16601
16602 # The name lister interface.
16603 nm_interface=$lt_lt_cv_nm_interface
16604
16605 # Specify filename containing input files for \$NM.
16606 nm_file_list_spec=$lt_nm_file_list_spec
16607
16608 # The root where to search for dependent libraries,and where our libraries should be installed.
16609 lt_sysroot=$lt_sysroot
16610
16611 # Command to truncate a binary pipe.
16612 lt_truncate_bin=$lt_lt_cv_truncate_bin
16613
16614 # The name of the directory that contains temporary libtool files.
16615 objdir=$objdir
16616
16617 # Used to examine libraries when file_magic_cmd begins with "file".
16618 MAGIC_CMD=$MAGIC_CMD
16619
16620 # Must we lock files when doing compilation?
16621 need_locks=$lt_need_locks
16622
16623 # Manifest tool.
16624 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16625
16626 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16627 DSYMUTIL=$lt_DSYMUTIL
16628
16629 # Tool to change global to local symbols on Mac OS X.
16630 NMEDIT=$lt_NMEDIT
16631
16632 # Tool to manipulate fat objects and archives on Mac OS X.
16633 LIPO=$lt_LIPO
16634
16635 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16636 OTOOL=$lt_OTOOL
16637
16638 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16639 OTOOL64=$lt_OTOOL64
16640
16641 # Old archive suffix (normally "a").
16642 libext=$libext
16643
16644 # Shared library suffix (normally ".so").
16645 shrext_cmds=$lt_shrext_cmds
16646
16647 # The commands to extract the exported symbol list from a shared archive.
16648 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16649
16650 # Variables whose values should be saved in libtool wrapper scripts and
16651 # restored at link time.
16652 variables_saved_for_relink=$lt_variables_saved_for_relink
16653
16654 # Do we need the "lib" prefix for modules?
16655 need_lib_prefix=$need_lib_prefix
16656
16657 # Do we need a version for libraries?
16658 need_version=$need_version
16659
16660 # Library versioning type.
16661 version_type=$version_type
16662
16663 # Shared library runtime path variable.
16664 runpath_var=$runpath_var
16665
16666 # Shared library path variable.
16667 shlibpath_var=$shlibpath_var
16668
16669 # Is shlibpath searched before the hard-coded library search path?
16670 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16671
16672 # Format of library name prefix.
16673 libname_spec=$lt_libname_spec
16674
16675 # List of archive names. First name is the real one, the rest are links.
16676 # The last name is the one that the linker finds with -lNAME
16677 library_names_spec=$lt_library_names_spec
16678
16679 # The coded name of the library, if different from the real name.
16680 soname_spec=$lt_soname_spec
16681
16682 # Permission mode override for installation of shared libraries.
16683 install_override_mode=$lt_install_override_mode
16684
16685 # Command to use after installation of a shared archive.
16686 postinstall_cmds=$lt_postinstall_cmds
16687
16688 # Command to use after uninstallation of a shared archive.
16689 postuninstall_cmds=$lt_postuninstall_cmds
16690
16691 # Commands used to finish a libtool library installation in a directory.
16692 finish_cmds=$lt_finish_cmds
16693
16694 # As "finish_cmds", except a single script fragment to be evaled but
16695 # not shown.
16696 finish_eval=$lt_finish_eval
16697
16698 # Whether we should hardcode library paths into libraries.
16699 hardcode_into_libs=$hardcode_into_libs
16700
16701 # Compile-time system search path for libraries.
16702 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16703
16704 # Detected run-time system search path for libraries.
16705 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16706
16707 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16708 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16709
16710 # Whether dlopen is supported.
16711 dlopen_support=$enable_dlopen
16712
16713 # Whether dlopen of programs is supported.
16714 dlopen_self=$enable_dlopen_self
16715
16716 # Whether dlopen of statically linked programs is supported.
16717 dlopen_self_static=$enable_dlopen_self_static
16718
16719 # Commands to strip libraries.
16720 old_striplib=$lt_old_striplib
16721 striplib=$lt_striplib
16722
16723
16724 # The linker used to build libraries.
16725 LD=$lt_LD
16726
16727 # How to create reloadable object files.
16728 reload_flag=$lt_reload_flag
16729 reload_cmds=$lt_reload_cmds
16730
16731 # Commands used to build an old-style archive.
16732 old_archive_cmds=$lt_old_archive_cmds
16733
16734 # A language specific compiler.
16735 CC=$lt_compiler
16736
16737 # Is the compiler the GNU compiler?
16738 with_gcc=$GCC
16739
16740 # Compiler flag to turn off builtin functions.
16741 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16742
16743 # Additional compiler flags for building library objects.
16744 pic_flag=$lt_lt_prog_compiler_pic
16745
16746 # How to pass a linker flag through the compiler.
16747 wl=$lt_lt_prog_compiler_wl
16748
16749 # Compiler flag to prevent dynamic linking.
16750 link_static_flag=$lt_lt_prog_compiler_static
16751
16752 # Does compiler simultaneously support -c and -o options?
16753 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16754
16755 # Whether or not to add -lc for building shared libraries.
16756 build_libtool_need_lc=$archive_cmds_need_lc
16757
16758 # Whether or not to disallow shared libs when runtime libs are static.
16759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16760
16761 # Compiler flag to allow reflexive dlopens.
16762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16763
16764 # Compiler flag to generate shared objects directly from archives.
16765 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16766
16767 # Whether the compiler copes with passing no objects directly.
16768 compiler_needs_object=$lt_compiler_needs_object
16769
16770 # Create an old-style archive from a shared archive.
16771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16772
16773 # Create a temporary old-style archive to link instead of a shared archive.
16774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16775
16776 # Commands used to build a shared archive.
16777 archive_cmds=$lt_archive_cmds
16778 archive_expsym_cmds=$lt_archive_expsym_cmds
16779
16780 # Commands used to build a loadable module if different from building
16781 # a shared archive.
16782 module_cmds=$lt_module_cmds
16783 module_expsym_cmds=$lt_module_expsym_cmds
16784
16785 # Whether we are building with GNU ld or not.
16786 with_gnu_ld=$lt_with_gnu_ld
16787
16788 # Flag that allows shared libraries with undefined symbols to be built.
16789 allow_undefined_flag=$lt_allow_undefined_flag
16790
16791 # Flag that enforces no undefined symbols.
16792 no_undefined_flag=$lt_no_undefined_flag
16793
16794 # Flag to hardcode \$libdir into a binary during linking.
16795 # This must work even if \$libdir does not exist
16796 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16797
16798 # Whether we need a single "-rpath" flag with a separated argument.
16799 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16800
16801 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16802 # DIR into the resulting binary.
16803 hardcode_direct=$hardcode_direct
16804
16805 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16806 # DIR into the resulting binary and the resulting library dependency is
16807 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
16808 # library is relocated.
16809 hardcode_direct_absolute=$hardcode_direct_absolute
16810
16811 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16812 # into the resulting binary.
16813 hardcode_minus_L=$hardcode_minus_L
16814
16815 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16816 # into the resulting binary.
16817 hardcode_shlibpath_var=$hardcode_shlibpath_var
16818
16819 # Set to "yes" if building a shared library automatically hardcodes DIR
16820 # into the library and all subsequent libraries and executables linked
16821 # against it.
16822 hardcode_automatic=$hardcode_automatic
16823
16824 # Set to yes if linker adds runtime paths of dependent libraries
16825 # to runtime path list.
16826 inherit_rpath=$inherit_rpath
16827
16828 # Whether libtool must link a program against all its dependency libraries.
16829 link_all_deplibs=$link_all_deplibs
16830
16831 # Set to "yes" if exported symbols are required.
16832 always_export_symbols=$always_export_symbols
16833
16834 # The commands to list exported symbols.
16835 export_symbols_cmds=$lt_export_symbols_cmds
16836
16837 # Symbols that should not be listed in the preloaded symbols.
16838 exclude_expsyms=$lt_exclude_expsyms
16839
16840 # Symbols that must always be exported.
16841 include_expsyms=$lt_include_expsyms
16842
16843 # Commands necessary for linking programs (against libraries) with templates.
16844 prelink_cmds=$lt_prelink_cmds
16845
16846 # Commands necessary for finishing linking programs.
16847 postlink_cmds=$lt_postlink_cmds
16848
16849 # Specify filename containing input files.
16850 file_list_spec=$lt_file_list_spec
16851
16852 # How to hardcode a shared library path into an executable.
16853 hardcode_action=$hardcode_action
16854
16855 # ### END LIBTOOL CONFIG
16856
16857 _LT_EOF
16858
16859 cat <<'_LT_EOF' >> "$cfgfile"
16860
16861 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16862
16863 # func_munge_path_list VARIABLE PATH
16864 # -----------------------------------
16865 # VARIABLE is name of variable containing _space_ separated list of
16866 # directories to be munged by the contents of PATH, which is string
16867 # having a format:
16868 # "DIR[:DIR]:"
16869 # string "DIR[ DIR]" will be prepended to VARIABLE
16870 # ":DIR[:DIR]"
16871 # string "DIR[ DIR]" will be appended to VARIABLE
16872 # "DIRP[:DIRP]::[DIRA:]DIRA"
16873 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16874 # "DIRA[ DIRA]" will be appended to VARIABLE
16875 # "DIR[:DIR]"
16876 # VARIABLE will be replaced by "DIR[ DIR]"
16877 func_munge_path_list ()
16878 {
16879 case x$2 in
16880 x)
16881 ;;
16882 *:)
16883 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16884 ;;
16885 x:*)
16886 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16887 ;;
16888 *::*)
16889 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16890 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16891 ;;
16892 *)
16893 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16894 ;;
16895 esac
16896 }
16897
16898
16899 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16900 func_cc_basename ()
16901 {
16902 for cc_temp in $*""; do
16903 case $cc_temp in
16904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16906 \-*) ;;
16907 *) break;;
16908 esac
16909 done
16910 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16911 }
16912
16913
16914 # ### END FUNCTIONS SHARED WITH CONFIGURE
16915
16916 _LT_EOF
16917
16918 case $host_os in
16919 aix3*)
16920 cat <<\_LT_EOF >> "$cfgfile"
16921 # AIX sometimes has problems with the GCC collect2 program. For some
16922 # reason, if we set the COLLECT_NAMES environment variable, the problems
16923 # vanish in a puff of smoke.
16924 if test set != "${COLLECT_NAMES+set}"; then
16925 COLLECT_NAMES=
16926 export COLLECT_NAMES
16927 fi
16928 _LT_EOF
16929 ;;
16930 esac
16931
16932
16933
16934 ltmain=$ac_aux_dir/ltmain.sh
16935
16936
16937 # We use sed instead of cat because bash on DJGPP gets confused if
16938 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16939 # text mode, it properly converts lines to CR/LF. This bash problem
16940 # is reportedly fixed, but why not run on old versions too?
16941 $SED '$q' "$ltmain" >> "$cfgfile" \
16942 || (rm -f "$cfgfile"; exit 1)
16943
16944 mv -f "$cfgfile" "$ofile" ||
16945 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16946 chmod +x "$ofile"
16947
16948
16949 as_fn_exit 0
16950 _LTEOF
16951 chmod +x "$CONFIG_LT"
16952
16953 # configure is writing to config.log, but config.lt does its own redirection,
16954 # appending to config.log, which fails on DOS, as config.log is still kept
16955 # open by configure. Here we exec the FD to /dev/null, effectively closing
16956 # config.log, so it can be properly (re)opened and appended to by config.lt.
16957 lt_cl_success=:
16958 test yes = "$silent" &&
16959 lt_config_lt_args="$lt_config_lt_args --quiet"
16960 exec 5>/dev/null
16961 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
16962 exec 5>>config.log
16963 $lt_cl_success || as_fn_exit 1
16964
16965 #
16966 #
16967 ac_ext=c
16968 ac_cpp='$CPP $CPPFLAGS'
16969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16972 ac_link="./libtool --mode=link --tag=CC $ac_link"
16973
16974 if test -n "$ac_tool_prefix"; then
16975 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16976 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16978 printf %s "checking for $ac_word... " >&6; }
16979 if test ${ac_cv_prog_PKG_CONFIG+y}
16980 then :
16981 printf %s "(cached) " >&6
16982 else case e in #(
16983 e) if test -n "$PKG_CONFIG"; then
16984 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
16985 else
16986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16987 for as_dir in $PATH
16988 do
16989 IFS=$as_save_IFS
16990 case $as_dir in #(((
16991 '') as_dir=./ ;;
16992 */) ;;
16993 *) as_dir=$as_dir/ ;;
16994 esac
16995 for ac_exec_ext in '' $ac_executable_extensions; do
16996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16997 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
16998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16999 break 2
17000 fi
17001 done
17002 done
17003 IFS=$as_save_IFS
17004
17005 fi ;;
17006 esac
17007 fi
17008 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17009 if test -n "$PKG_CONFIG"; then
17010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17011 printf "%s\n" "$PKG_CONFIG" >&6; }
17012 else
17013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17014 printf "%s\n" "no" >&6; }
17015 fi
17016
17017
17018 fi
17019 if test -z "$ac_cv_prog_PKG_CONFIG"; then
17020 ac_ct_PKG_CONFIG=$PKG_CONFIG
17021 # Extract the first word of "pkg-config", so it can be a program name with args.
17022 set dummy pkg-config; ac_word=$2
17023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17024 printf %s "checking for $ac_word... " >&6; }
17025 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
17026 then :
17027 printf %s "(cached) " >&6
17028 else case e in #(
17029 e) if test -n "$ac_ct_PKG_CONFIG"; then
17030 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17031 else
17032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17033 for as_dir in $PATH
17034 do
17035 IFS=$as_save_IFS
17036 case $as_dir in #(((
17037 '') as_dir=./ ;;
17038 */) ;;
17039 *) as_dir=$as_dir/ ;;
17040 esac
17041 for ac_exec_ext in '' $ac_executable_extensions; do
17042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17043 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17045 break 2
17046 fi
17047 done
17048 done
17049 IFS=$as_save_IFS
17050
17051 fi ;;
17052 esac
17053 fi
17054 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17055 if test -n "$ac_ct_PKG_CONFIG"; then
17056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17057 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
17058 else
17059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17060 printf "%s\n" "no" >&6; }
17061 fi
17062
17063 if test "x$ac_ct_PKG_CONFIG" = x; then
17064 PKG_CONFIG="false"
17065 else
17066 case $cross_compiling:$ac_tool_warned in
17067 yes:)
17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17069 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17070 ac_tool_warned=yes ;;
17071 esac
17072 PKG_CONFIG=$ac_ct_PKG_CONFIG
17073 fi
17074 else
17075 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17076 fi
17077
17078 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
17079 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
17080 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
17081
17082 # Check whether --with-system-kpathsea was given.
17083 if test ${with_system_kpathsea+y}
17084 then :
17085 withval=$with_system_kpathsea;
17086 fi
17087 if test "x$with_system_kpathsea" = xyes; then
17088 if $PKG_CONFIG kpathsea; then
17089 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
17090 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
17091 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
17092 as_fn_error $? "did not find kpathsea" "$LINENO" 5
17093 fi
17094 else
17095 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
17096 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
17097 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
17098 KPATHSEA_RULE='# Rebuild libkpathsea
17099 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
17100 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
17101 ${top_builddir}/../kpathsea/paths.h:
17102 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17103 fi
17104
17105 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
17106
17107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
17108 printf %s "checking for native WIN32 or MINGW32... " >&6; }
17109 if test ${kpse_cv_have_win32+y}
17110 then :
17111 printf %s "(cached) " >&6
17112 else case e in #(
17113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114 /* end confdefs.h. */
17115 #ifndef WIN32
17116 choke me
17117 #endif
17118 int
17119 main (void)
17120 {
17121
17122 ;
17123 return 0;
17124 }
17125 _ACEOF
17126 if ac_fn_c_try_compile "$LINENO"
17127 then :
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17130 #ifndef __MINGW32__
17131 choke me
17132 #endif
17133 int
17134 main (void)
17135 {
17136
17137 ;
17138 return 0;
17139 }
17140 _ACEOF
17141 if ac_fn_c_try_compile "$LINENO"
17142 then :
17143 kpse_cv_have_win32=mingw32
17144 else case e in #(
17145 e) kpse_cv_have_win32=native ;;
17146 esac
17147 fi
17148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17149 else case e in #(
17150 e) kpse_cv_have_win32=no ;;
17151 esac
17152 fi
17153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17154 esac
17155 fi
17156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
17157 printf "%s\n" "$kpse_cv_have_win32" >&6; }
17158
17159 if test "x$kpse_cv_have_win32" != xno; then
17160 WIN32_TRUE=
17161 WIN32_FALSE='#'
17162 else
17163 WIN32_TRUE='#'
17164 WIN32_FALSE=
17165 fi
17166
17167
17168
17169 ac_config_files="$ac_config_files Makefile"
17170
17171
17172 cat >confcache <<\_ACEOF
17173 # This file is a shell script that caches the results of configure
17174 # tests run on this system so they can be shared between configure
17175 # scripts and configure runs, see configure's option --config-cache.
17176 # It is not useful on other systems. If it contains results you don't
17177 # want to keep, you may remove or edit it.
17178 #
17179 # config.status only pays attention to the cache file if you give it
17180 # the --recheck option to rerun configure.
17181 #
17182 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17183 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17184 # following values.
17185
17186 _ACEOF
17187
17188 # The following way of writing the cache mishandles newlines in values,
17189 # but we know of no workaround that is simple, portable, and efficient.
17190 # So, we kill variables containing newlines.
17191 # Ultrix sh set writes to stderr and can't be redirected directly,
17192 # and sets the high bit in the cache file unless we assign to the vars.
17193 (
17194 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17195 eval ac_val=\$$ac_var
17196 case $ac_val in #(
17197 *${as_nl}*)
17198 case $ac_var in #(
17199 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17200 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17201 esac
17202 case $ac_var in #(
17203 _ | IFS | as_nl) ;; #(
17204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17205 *) { eval $ac_var=; unset $ac_var;} ;;
17206 esac ;;
17207 esac
17208 done
17209
17210 (set) 2>&1 |
17211 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17212 *${as_nl}ac_space=\ *)
17213 # 'set' does not quote correctly, so add quotes: double-quote
17214 # substitution turns \\\\ into \\, and sed turns \\ into \.
17215 sed -n \
17216 "s/'/'\\\\''/g;
17217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17218 ;; #(
17219 *)
17220 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17222 ;;
17223 esac |
17224 sort
17225 ) |
17226 sed '
17227 /^ac_cv_env_/b end
17228 t clear
17229 :clear
17230 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17231 t end
17232 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17233 :end' >>confcache
17234 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17235 if test -w "$cache_file"; then
17236 if test "x$cache_file" != "x/dev/null"; then
17237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17238 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17239 if test ! -f "$cache_file" || test -h "$cache_file"; then
17240 cat confcache >"$cache_file"
17241 else
17242 case $cache_file in #(
17243 */* | ?:*)
17244 mv -f confcache "$cache_file"$$ &&
17245 mv -f "$cache_file"$$ "$cache_file" ;; #(
17246 *)
17247 mv -f confcache "$cache_file" ;;
17248 esac
17249 fi
17250 fi
17251 else
17252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17253 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17254 fi
17255 fi
17256 rm -f confcache
17257
17258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17259 # Let make expand exec_prefix.
17260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17261
17262 DEFS=-DHAVE_CONFIG_H
17263
17264 ac_libobjs=
17265 ac_ltlibobjs=
17266 U=
17267 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17268 # 1. Remove the extension, and $U if already installed.
17269 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17270 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17271 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17272 # will be set to the directory where LIBOBJS objects are built.
17273 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17274 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17275 done
17276 LIBOBJS=$ac_libobjs
17277
17278 LTLIBOBJS=$ac_ltlibobjs
17279
17280
17281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17282 printf %s "checking that generated files are newer than configure... " >&6; }
17283 if test -n "$am_sleep_pid"; then
17284 # Hide warnings about reused PIDs.
17285 wait $am_sleep_pid 2>/dev/null
17286 fi
17287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17288 printf "%s\n" "done" >&6; }
17289 case $enable_silent_rules in # (((
17290 yes) AM_DEFAULT_VERBOSITY=0;;
17291 no) AM_DEFAULT_VERBOSITY=1;;
17292 esac
17293 if test $am_cv_make_support_nested_variables = yes; then
17294 AM_V='$(V)'
17295 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17296 else
17297 AM_V=$AM_DEFAULT_VERBOSITY
17298 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17299 fi
17300
17301 if test -n "$EXEEXT"; then
17302 am__EXEEXT_TRUE=
17303 am__EXEEXT_FALSE='#'
17304 else
17305 am__EXEEXT_TRUE='#'
17306 am__EXEEXT_FALSE=
17307 fi
17308
17309 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17310 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17312 fi
17313 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17314 as_fn_error $? "conditional \"AMDEP\" was never defined.
17315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17316 fi
17317 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17318 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17320 fi
17321 # Check whether --enable-year2038 was given.
17322 if test ${enable_year2038+y}
17323 then :
17324 enableval=$enable_year2038;
17325 fi
17326
17327 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
17328 as_fn_error $? "conditional \"WIN32\" was never defined.
17329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17330 fi
17331
17332 : "${CONFIG_STATUS=./config.status}"
17333 ac_write_fail=0
17334 ac_clean_files_save=$ac_clean_files
17335 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17337 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17338 as_write_fail=0
17339 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17340 #! $SHELL
17341 # Generated by $as_me.
17342 # Run this file to recreate the current configuration.
17343 # Compiler output produced by configure, useful for debugging
17344 # configure, is in config.log if it exists.
17345
17346 debug=false
17347 ac_cs_recheck=false
17348 ac_cs_silent=false
17349
17350 SHELL=\${CONFIG_SHELL-$SHELL}
17351 export SHELL
17352 _ASEOF
17353 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17354 ## -------------------- ##
17355 ## M4sh Initialization. ##
17356 ## -------------------- ##
17357
17358 # Be more Bourne compatible
17359 DUALCASE=1; export DUALCASE # for MKS sh
17360 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17361 then :
17362 emulate sh
17363 NULLCMD=:
17364 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17365 # is contrary to our usage. Disable this feature.
17366 alias -g '${1+"$@"}'='"$@"'
17367 setopt NO_GLOB_SUBST
17368 else case e in #(
17369 e) case `(set -o) 2>/dev/null` in #(
17370 *posix*) :
17371 set -o posix ;; #(
17372 *) :
17373 ;;
17374 esac ;;
17375 esac
17376 fi
17377
17378
17379
17380 # Reset variables that may have inherited troublesome values from
17381 # the environment.
17382
17383 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17384 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17385 # side effect of setting IFS to empty, thus disabling word splitting.)
17386 # Quoting is to prevent editors from complaining about space-tab.
17387 as_nl='
17388 '
17389 export as_nl
17390 IFS=" "" $as_nl"
17391
17392 PS1='$ '
17393 PS2='> '
17394 PS4='+ '
17395
17396 # Ensure predictable behavior from utilities with locale-dependent output.
17397 LC_ALL=C
17398 export LC_ALL
17399 LANGUAGE=C
17400 export LANGUAGE
17401
17402 # We cannot yet rely on "unset" to work, but we need these variables
17403 # to be unset--not just set to an empty or harmless value--now, to
17404 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17405 # also avoids known problems related to "unset" and subshell syntax
17406 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17407 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17408 do eval test \${$as_var+y} \
17409 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17410 done
17411
17412 # Ensure that fds 0, 1, and 2 are open.
17413 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17414 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17415 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17416
17417 # The user is always right.
17418 if ${PATH_SEPARATOR+false} :; then
17419 PATH_SEPARATOR=:
17420 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17421 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17422 PATH_SEPARATOR=';'
17423 }
17424 fi
17425
17426
17427 # Find who we are. Look in the path if we contain no directory separator.
17428 as_myself=
17429 case $0 in #((
17430 *[\\/]* ) as_myself=$0 ;;
17431 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17432 for as_dir in $PATH
17433 do
17434 IFS=$as_save_IFS
17435 case $as_dir in #(((
17436 '') as_dir=./ ;;
17437 */) ;;
17438 *) as_dir=$as_dir/ ;;
17439 esac
17440 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17441 done
17442 IFS=$as_save_IFS
17443
17444 ;;
17445 esac
17446 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17447 # in which case we are not to be found in the path.
17448 if test "x$as_myself" = x; then
17449 as_myself=$0
17450 fi
17451 if test ! -f "$as_myself"; then
17452 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17453 exit 1
17454 fi
17455
17456
17457
17458 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17459 # ----------------------------------------
17460 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17461 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17462 # script with STATUS, using 1 if that was 0.
17463 as_fn_error ()
17464 {
17465 as_status=$1; test $as_status -eq 0 && as_status=1
17466 if test "$4"; then
17467 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17469 fi
17470 printf "%s\n" "$as_me: error: $2" >&2
17471 as_fn_exit $as_status
17472 } # as_fn_error
17473
17474
17475 # as_fn_set_status STATUS
17476 # -----------------------
17477 # Set $? to STATUS, without forking.
17478 as_fn_set_status ()
17479 {
17480 return $1
17481 } # as_fn_set_status
17482
17483 # as_fn_exit STATUS
17484 # -----------------
17485 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17486 as_fn_exit ()
17487 {
17488 set +e
17489 as_fn_set_status $1
17490 exit $1
17491 } # as_fn_exit
17492
17493 # as_fn_unset VAR
17494 # ---------------
17495 # Portably unset VAR.
17496 as_fn_unset ()
17497 {
17498 { eval $1=; unset $1;}
17499 }
17500 as_unset=as_fn_unset
17501
17502 # as_fn_append VAR VALUE
17503 # ----------------------
17504 # Append the text in VALUE to the end of the definition contained in VAR. Take
17505 # advantage of any shell optimizations that allow amortized linear growth over
17506 # repeated appends, instead of the typical quadratic growth present in naive
17507 # implementations.
17508 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17509 then :
17510 eval 'as_fn_append ()
17511 {
17512 eval $1+=\$2
17513 }'
17514 else case e in #(
17515 e) as_fn_append ()
17516 {
17517 eval $1=\$$1\$2
17518 } ;;
17519 esac
17520 fi # as_fn_append
17521
17522 # as_fn_arith ARG...
17523 # ------------------
17524 # Perform arithmetic evaluation on the ARGs, and store the result in the
17525 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17526 # must be portable across $(()) and expr.
17527 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17528 then :
17529 eval 'as_fn_arith ()
17530 {
17531 as_val=$(( $* ))
17532 }'
17533 else case e in #(
17534 e) as_fn_arith ()
17535 {
17536 as_val=`expr "$@" || test $? -eq 1`
17537 } ;;
17538 esac
17539 fi # as_fn_arith
17540
17541
17542 if expr a : '\(a\)' >/dev/null 2>&1 &&
17543 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17544 as_expr=expr
17545 else
17546 as_expr=false
17547 fi
17548
17549 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17550 as_basename=basename
17551 else
17552 as_basename=false
17553 fi
17554
17555 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17556 as_dirname=dirname
17557 else
17558 as_dirname=false
17559 fi
17560
17561 as_me=`$as_basename -- "$0" ||
17562 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17563 X"$0" : 'X\(//\)$' \| \
17564 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17565 printf "%s\n" X/"$0" |
17566 sed '/^.*\/\([^/][^/]*\)\/*$/{
17567 s//\1/
17568 q
17569 }
17570 /^X\/\(\/\/\)$/{
17571 s//\1/
17572 q
17573 }
17574 /^X\/\(\/\).*/{
17575 s//\1/
17576 q
17577 }
17578 s/.*/./; q'`
17579
17580 # Avoid depending upon Character Ranges.
17581 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17582 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17583 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17584 as_cr_digits='0123456789'
17585 as_cr_alnum=$as_cr_Letters$as_cr_digits
17586
17587
17588 # Determine whether it's possible to make 'echo' print without a newline.
17589 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17590 # for compatibility with existing Makefiles.
17591 ECHO_C= ECHO_N= ECHO_T=
17592 case `echo -n x` in #(((((
17593 -n*)
17594 case `echo 'xy\c'` in
17595 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17596 xy) ECHO_C='\c';;
17597 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17598 ECHO_T=' ';;
17599 esac;;
17600 *)
17601 ECHO_N='-n';;
17602 esac
17603
17604 # For backward compatibility with old third-party macros, we provide
17605 # the shell variables $as_echo and $as_echo_n. New code should use
17606 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17607 as_echo='printf %s\n'
17608 as_echo_n='printf %s'
17609
17610 rm -f conf$$ conf$$.exe conf$$.file
17611 if test -d conf$$.dir; then
17612 rm -f conf$$.dir/conf$$.file
17613 else
17614 rm -f conf$$.dir
17615 mkdir conf$$.dir 2>/dev/null
17616 fi
17617 if (echo >conf$$.file) 2>/dev/null; then
17618 if ln -s conf$$.file conf$$ 2>/dev/null; then
17619 as_ln_s='ln -s'
17620 # ... but there are two gotchas:
17621 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17622 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17623 # In both cases, we have to default to 'cp -pR'.
17624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17625 as_ln_s='cp -pR'
17626 elif ln conf$$.file conf$$ 2>/dev/null; then
17627 as_ln_s=ln
17628 else
17629 as_ln_s='cp -pR'
17630 fi
17631 else
17632 as_ln_s='cp -pR'
17633 fi
17634 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17635 rmdir conf$$.dir 2>/dev/null
17636
17637
17638 # as_fn_mkdir_p
17639 # -------------
17640 # Create "$as_dir" as a directory, including parents if necessary.
17641 as_fn_mkdir_p ()
17642 {
17643
17644 case $as_dir in #(
17645 -*) as_dir=./$as_dir;;
17646 esac
17647 test -d "$as_dir" || eval $as_mkdir_p || {
17648 as_dirs=
17649 while :; do
17650 case $as_dir in #(
17651 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17652 *) as_qdir=$as_dir;;
17653 esac
17654 as_dirs="'$as_qdir' $as_dirs"
17655 as_dir=`$as_dirname -- "$as_dir" ||
17656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17657 X"$as_dir" : 'X\(//\)[^/]' \| \
17658 X"$as_dir" : 'X\(//\)$' \| \
17659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17660 printf "%s\n" X"$as_dir" |
17661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17662 s//\1/
17663 q
17664 }
17665 /^X\(\/\/\)[^/].*/{
17666 s//\1/
17667 q
17668 }
17669 /^X\(\/\/\)$/{
17670 s//\1/
17671 q
17672 }
17673 /^X\(\/\).*/{
17674 s//\1/
17675 q
17676 }
17677 s/.*/./; q'`
17678 test -d "$as_dir" && break
17679 done
17680 test -z "$as_dirs" || eval "mkdir $as_dirs"
17681 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17682
17683
17684 } # as_fn_mkdir_p
17685 if mkdir -p . 2>/dev/null; then
17686 as_mkdir_p='mkdir -p "$as_dir"'
17687 else
17688 test -d ./-p && rmdir ./-p
17689 as_mkdir_p=false
17690 fi
17691
17692
17693 # as_fn_executable_p FILE
17694 # -----------------------
17695 # Test if FILE is an executable regular file.
17696 as_fn_executable_p ()
17697 {
17698 test -f "$1" && test -x "$1"
17699 } # as_fn_executable_p
17700 as_test_x='test -x'
17701 as_executable_p=as_fn_executable_p
17702
17703 # Sed expression to map a string onto a valid CPP name.
17704 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17705 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17706
17707 # Sed expression to map a string onto a valid variable name.
17708 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17709 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17710
17711
17712 exec 6>&1
17713 ## ----------------------------------- ##
17714 ## Main body of $CONFIG_STATUS script. ##
17715 ## ----------------------------------- ##
17716 _ASEOF
17717 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17718
17719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17720 # Save the log message, to keep $0 and so on meaningful, and to
17721 # report actual input values of CONFIG_FILES etc. instead of their
17722 # values after options handling.
17723 ac_log="
17724 This file was extended by dvidvi (TeX Live) $as_me 1.1, which was
17725 generated by GNU Autoconf 2.72. Invocation command line was
17726
17727 CONFIG_FILES = $CONFIG_FILES
17728 CONFIG_HEADERS = $CONFIG_HEADERS
17729 CONFIG_LINKS = $CONFIG_LINKS
17730 CONFIG_COMMANDS = $CONFIG_COMMANDS
17731 $ $0 $@
17732
17733 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17734 "
17735
17736 _ACEOF
17737
17738 case $ac_config_files in *"
17739 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17740 esac
17741
17742 case $ac_config_headers in *"
17743 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17744 esac
17745
17746
17747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17748 # Files that config.status was made for.
17749 config_files="$ac_config_files"
17750 config_headers="$ac_config_headers"
17751 config_commands="$ac_config_commands"
17752
17753 _ACEOF
17754
17755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17756 ac_cs_usage="\
17757 '$as_me' instantiates files and other configuration actions
17758 from templates according to the current configuration. Unless the files
17759 and actions are specified as TAGs, all are instantiated by default.
17760
17761 Usage: $0 [OPTION]... [TAG]...
17762
17763 -h, --help print this help, then exit
17764 -V, --version print version number and configuration settings, then exit
17765 --config print configuration, then exit
17766 -q, --quiet, --silent
17767 do not print progress messages
17768 -d, --debug don't remove temporary files
17769 --recheck update $as_me by reconfiguring in the same conditions
17770 --file=FILE[:TEMPLATE]
17771 instantiate the configuration file FILE
17772 --header=FILE[:TEMPLATE]
17773 instantiate the configuration header FILE
17774
17775 Configuration files:
17776 $config_files
17777
17778 Configuration headers:
17779 $config_headers
17780
17781 Configuration commands:
17782 $config_commands
17783
17784 Report bugs to <[email protected]>."
17785
17786 _ACEOF
17787 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17788 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17790 ac_cs_config='$ac_cs_config_escaped'
17791 ac_cs_version="\\
17792 dvidvi (TeX Live) config.status 1.1
17793 configured by $0, generated by GNU Autoconf 2.72,
17794 with options \\"\$ac_cs_config\\"
17795
17796 Copyright (C) 2023 Free Software Foundation, Inc.
17797 This config.status script is free software; the Free Software Foundation
17798 gives unlimited permission to copy, distribute and modify it."
17799
17800 ac_pwd='$ac_pwd'
17801 srcdir='$srcdir'
17802 INSTALL='$INSTALL'
17803 MKDIR_P='$MKDIR_P'
17804 AWK='$AWK'
17805 test -n "\$AWK" || AWK=awk
17806 _ACEOF
17807
17808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17809 # The default lists apply if the user does not specify any file.
17810 ac_need_defaults=:
17811 while test $# != 0
17812 do
17813 case $1 in
17814 --*=?*)
17815 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17816 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17817 ac_shift=:
17818 ;;
17819 --*=)
17820 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17821 ac_optarg=
17822 ac_shift=:
17823 ;;
17824 *)
17825 ac_option=$1
17826 ac_optarg=$2
17827 ac_shift=shift
17828 ;;
17829 esac
17830
17831 case $ac_option in
17832 # Handling of the options.
17833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17834 ac_cs_recheck=: ;;
17835 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17836 printf "%s\n" "$ac_cs_version"; exit ;;
17837 --config | --confi | --conf | --con | --co | --c )
17838 printf "%s\n" "$ac_cs_config"; exit ;;
17839 --debug | --debu | --deb | --de | --d | -d )
17840 debug=: ;;
17841 --file | --fil | --fi | --f )
17842 $ac_shift
17843 case $ac_optarg in
17844 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17845 '') as_fn_error $? "missing file argument" ;;
17846 esac
17847 as_fn_append CONFIG_FILES " '$ac_optarg'"
17848 ac_need_defaults=false;;
17849 --header | --heade | --head | --hea )
17850 $ac_shift
17851 case $ac_optarg in
17852 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17853 esac
17854 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17855 ac_need_defaults=false;;
17856 --he | --h)
17857 # Conflict between --help and --header
17858 as_fn_error $? "ambiguous option: '$1'
17859 Try '$0 --help' for more information.";;
17860 --help | --hel | -h )
17861 printf "%s\n" "$ac_cs_usage"; exit ;;
17862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17863 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17864 ac_cs_silent=: ;;
17865
17866 # This is an error.
17867 -*) as_fn_error $? "unrecognized option: '$1'
17868 Try '$0 --help' for more information." ;;
17869
17870 *) as_fn_append ac_config_targets " $1"
17871 ac_need_defaults=false ;;
17872
17873 esac
17874 shift
17875 done
17876
17877 ac_configure_extra_args=
17878
17879 if $ac_cs_silent; then
17880 exec 6>/dev/null
17881 ac_configure_extra_args="$ac_configure_extra_args --silent"
17882 fi
17883
17884 _ACEOF
17885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17886 if \$ac_cs_recheck; then
17887 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17888 shift
17889 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17890 CONFIG_SHELL='$SHELL'
17891 export CONFIG_SHELL
17892 exec "\$@"
17893 fi
17894
17895 _ACEOF
17896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17897 exec 5>>config.log
17898 {
17899 echo
17900 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17901 ## Running $as_me. ##
17902 _ASBOX
17903 printf "%s\n" "$ac_log"
17904 } >&5
17905
17906 _ACEOF
17907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17908 #
17909 # INIT-COMMANDS
17910 #
17911 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17912
17913
17914 # The HP-UX ksh and POSIX shell print the target directory to stdout
17915 # if CDPATH is set.
17916 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17917
17918 sed_quote_subst='$sed_quote_subst'
17919 double_quote_subst='$double_quote_subst'
17920 delay_variable_subst='$delay_variable_subst'
17921 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17922 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17923 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17924 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17925 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17926 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17927 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17928 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17929 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17930 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17931 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17932 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17933 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17934 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17935 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17936 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17937 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17938 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17939 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17940 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17941 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17942 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17943 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17944 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17945 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17946 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17947 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17948 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17949 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17950 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17951 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17952 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17953 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17954 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17955 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17956 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17957 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17958 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17959 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17960 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17961 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17962 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17963 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17964 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17965 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17966 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17967 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17968 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17969 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17970 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17971 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17972 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17973 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17974 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17975 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17976 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17977 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17978 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17979 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17980 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17981 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17982 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"`'
17983 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17984 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17985 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17986 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17987 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17988 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17989 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17990 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17991 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17992 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17993 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17994 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17995 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17996 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17997 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17998 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17999 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18000 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18001 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18002 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18003 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18004 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18005 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18006 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18007 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18008 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18009 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18010 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18011 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18012 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18013 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18014 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18015 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18016 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18017 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18018 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18019 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18020 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18021 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18022 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18023 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18024 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18025 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18026 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18027 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18028 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18029 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18030 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18031 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18032 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18033 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18034 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18035 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18036 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18037 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18038 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18039 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18040 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18041 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18042 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18043 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18044 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18045 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18046 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18047 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18048 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18049 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18050 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18051 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18052 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18053 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18054 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18055 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18056 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18057 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18058 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18059
18060 LTCC='$LTCC'
18061 LTCFLAGS='$LTCFLAGS'
18062 compiler='$compiler_DEFAULT'
18063
18064 # A function that is used when there is no print builtin or printf.
18065 func_fallback_echo ()
18066 {
18067 eval 'cat <<_LTECHO_EOF
18068 \$1
18069 _LTECHO_EOF'
18070 }
18071
18072 # Quote evaled strings.
18073 for var in AS \
18074 DLLTOOL \
18075 OBJDUMP \
18076 SHELL \
18077 ECHO \
18078 PATH_SEPARATOR \
18079 SED \
18080 GREP \
18081 EGREP \
18082 FGREP \
18083 LD \
18084 NM \
18085 LN_S \
18086 lt_SP2NL \
18087 lt_NL2SP \
18088 reload_flag \
18089 FILECMD \
18090 deplibs_check_method \
18091 file_magic_cmd \
18092 file_magic_glob \
18093 want_nocaseglob \
18094 sharedlib_from_linklib_cmd \
18095 AR \
18096 archiver_list_spec \
18097 STRIP \
18098 RANLIB \
18099 CC \
18100 CFLAGS \
18101 compiler \
18102 lt_cv_sys_global_symbol_pipe \
18103 lt_cv_sys_global_symbol_to_cdecl \
18104 lt_cv_sys_global_symbol_to_import \
18105 lt_cv_sys_global_symbol_to_c_name_address \
18106 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18107 lt_cv_nm_interface \
18108 nm_file_list_spec \
18109 lt_cv_truncate_bin \
18110 lt_prog_compiler_no_builtin_flag \
18111 lt_prog_compiler_pic \
18112 lt_prog_compiler_wl \
18113 lt_prog_compiler_static \
18114 lt_cv_prog_compiler_c_o \
18115 need_locks \
18116 MANIFEST_TOOL \
18117 DSYMUTIL \
18118 NMEDIT \
18119 LIPO \
18120 OTOOL \
18121 OTOOL64 \
18122 shrext_cmds \
18123 export_dynamic_flag_spec \
18124 whole_archive_flag_spec \
18125 compiler_needs_object \
18126 with_gnu_ld \
18127 allow_undefined_flag \
18128 no_undefined_flag \
18129 hardcode_libdir_flag_spec \
18130 hardcode_libdir_separator \
18131 exclude_expsyms \
18132 include_expsyms \
18133 file_list_spec \
18134 variables_saved_for_relink \
18135 libname_spec \
18136 library_names_spec \
18137 soname_spec \
18138 install_override_mode \
18139 finish_eval \
18140 old_striplib \
18141 striplib; do
18142 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18143 *[\\\\\\\`\\"\\\$]*)
18144 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18145 ;;
18146 *)
18147 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18148 ;;
18149 esac
18150 done
18151
18152 # Double-quote double-evaled strings.
18153 for var in reload_cmds \
18154 old_postinstall_cmds \
18155 old_postuninstall_cmds \
18156 old_archive_cmds \
18157 extract_expsyms_cmds \
18158 old_archive_from_new_cmds \
18159 old_archive_from_expsyms_cmds \
18160 archive_cmds \
18161 archive_expsym_cmds \
18162 module_cmds \
18163 module_expsym_cmds \
18164 export_symbols_cmds \
18165 prelink_cmds \
18166 postlink_cmds \
18167 postinstall_cmds \
18168 postuninstall_cmds \
18169 finish_cmds \
18170 sys_lib_search_path_spec \
18171 configure_time_dlsearch_path \
18172 configure_time_lt_sys_library_path; do
18173 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18174 *[\\\\\\\`\\"\\\$]*)
18175 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18176 ;;
18177 *)
18178 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18179 ;;
18180 esac
18181 done
18182
18183 ac_aux_dir='$ac_aux_dir'
18184
18185 # See if we are running on zsh, and set the options that allow our
18186 # commands through without removal of \ escapes INIT.
18187 if test -n "\${ZSH_VERSION+set}"; then
18188 setopt NO_GLOB_SUBST
18189 fi
18190
18191
18192 PACKAGE='$PACKAGE'
18193 VERSION='$VERSION'
18194 RM='$RM'
18195 ofile='$ofile'
18196
18197 ac_aux_dir='$ac_aux_dir'
18198
18199
18200
18201 _ACEOF
18202
18203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18204
18205 # Handling of arguments.
18206 for ac_config_target in $ac_config_targets
18207 do
18208 case $ac_config_target in
18209 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18210 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18211 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18212 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18213
18214 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18215 esac
18216 done
18217
18218
18219 # If the user did not use the arguments to specify the items to instantiate,
18220 # then the envvar interface is used. Set only those that are not.
18221 # We use the long form for the default assignment because of an extremely
18222 # bizarre bug on SunOS 4.1.3.
18223 if $ac_need_defaults; then
18224 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18225 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18226 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18227 fi
18228
18229 # Have a temporary directory for convenience. Make it in the build tree
18230 # simply because there is no reason against having it here, and in addition,
18231 # creating and moving files from /tmp can sometimes cause problems.
18232 # Hook for its removal unless debugging.
18233 # Note that there is a small window in which the directory will not be cleaned:
18234 # after its creation but before its name has been assigned to '$tmp'.
18235 $debug ||
18236 {
18237 tmp= ac_tmp=
18238 trap 'exit_status=$?
18239 : "${ac_tmp:=$tmp}"
18240 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18241 ' 0
18242 trap 'as_fn_exit 1' 1 2 13 15
18243 }
18244 # Create a (secure) tmp directory for tmp files.
18245
18246 {
18247 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18248 test -d "$tmp"
18249 } ||
18250 {
18251 tmp=./conf$$-$RANDOM
18252 (umask 077 && mkdir "$tmp")
18253 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18254 ac_tmp=$tmp
18255
18256 # Set up the scripts for CONFIG_FILES section.
18257 # No need to generate them if there are no CONFIG_FILES.
18258 # This happens for instance with './config.status config.h'.
18259 if test -n "$CONFIG_FILES"; then
18260
18261
18262 ac_cr=`echo X | tr X '\015'`
18263 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18264 # But we know of no other shell where ac_cr would be empty at this
18265 # point, so we can use a bashism as a fallback.
18266 if test "x$ac_cr" = x; then
18267 eval ac_cr=\$\'\\r\'
18268 fi
18269 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18270 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18271 ac_cs_awk_cr='\\r'
18272 else
18273 ac_cs_awk_cr=$ac_cr
18274 fi
18275
18276 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18277 _ACEOF
18278
18279
18280 {
18281 echo "cat >conf$$subs.awk <<_ACEOF" &&
18282 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18283 echo "_ACEOF"
18284 } >conf$$subs.sh ||
18285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18286 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18287 ac_delim='%!_!# '
18288 for ac_last_try in false false false false false :; do
18289 . ./conf$$subs.sh ||
18290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18291
18292 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18293 if test $ac_delim_n = $ac_delim_num; then
18294 break
18295 elif $ac_last_try; then
18296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18297 else
18298 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18299 fi
18300 done
18301 rm -f conf$$subs.sh
18302
18303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18304 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18305 _ACEOF
18306 sed -n '
18307 h
18308 s/^/S["/; s/!.*/"]=/
18309 p
18310 g
18311 s/^[^!]*!//
18312 :repl
18313 t repl
18314 s/'"$ac_delim"'$//
18315 t delim
18316 :nl
18317 h
18318 s/\(.\{148\}\)..*/\1/
18319 t more1
18320 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18321 p
18322 n
18323 b repl
18324 :more1
18325 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18326 p
18327 g
18328 s/.\{148\}//
18329 t nl
18330 :delim
18331 h
18332 s/\(.\{148\}\)..*/\1/
18333 t more2
18334 s/["\\]/\\&/g; s/^/"/; s/$/"/
18335 p
18336 b
18337 :more2
18338 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18339 p
18340 g
18341 s/.\{148\}//
18342 t delim
18343 ' <conf$$subs.awk | sed '
18344 /^[^""]/{
18345 N
18346 s/\n//
18347 }
18348 ' >>$CONFIG_STATUS || ac_write_fail=1
18349 rm -f conf$$subs.awk
18350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18351 _ACAWK
18352 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18353 for (key in S) S_is_set[key] = 1
18354 FS = ""
18355
18356 }
18357 {
18358 line = $ 0
18359 nfields = split(line, field, "@")
18360 substed = 0
18361 len = length(field[1])
18362 for (i = 2; i < nfields; i++) {
18363 key = field[i]
18364 keylen = length(key)
18365 if (S_is_set[key]) {
18366 value = S[key]
18367 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18368 len += length(value) + length(field[++i])
18369 substed = 1
18370 } else
18371 len += 1 + keylen
18372 }
18373
18374 print line
18375 }
18376
18377 _ACAWK
18378 _ACEOF
18379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18380 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18381 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18382 else
18383 cat
18384 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18385 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18386 _ACEOF
18387
18388 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18389 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18390 # trailing colons and then remove the whole line if VPATH becomes empty
18391 # (actually we leave an empty line to preserve line numbers).
18392 if test "x$srcdir" = x.; then
18393 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18394 h
18395 s///
18396 s/^/:/
18397 s/[ ]*$/:/
18398 s/:\$(srcdir):/:/g
18399 s/:\${srcdir}:/:/g
18400 s/:@srcdir@:/:/g
18401 s/^:*//
18402 s/:*$//
18403 x
18404 s/\(=[ ]*\).*/\1/
18405 G
18406 s/\n//
18407 s/^[^=]*=[ ]*$//
18408 }'
18409 fi
18410
18411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18412 fi # test -n "$CONFIG_FILES"
18413
18414 # Set up the scripts for CONFIG_HEADERS section.
18415 # No need to generate them if there are no CONFIG_HEADERS.
18416 # This happens for instance with './config.status Makefile'.
18417 if test -n "$CONFIG_HEADERS"; then
18418 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18419 BEGIN {
18420 _ACEOF
18421
18422 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18423 # here-document in config.status, that substitutes the proper values into
18424 # config.h.in to produce config.h.
18425
18426 # Create a delimiter string that does not exist in confdefs.h, to ease
18427 # handling of long lines.
18428 ac_delim='%!_!# '
18429 for ac_last_try in false false :; do
18430 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18431 if test -z "$ac_tt"; then
18432 break
18433 elif $ac_last_try; then
18434 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18435 else
18436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18437 fi
18438 done
18439
18440 # For the awk script, D is an array of macro values keyed by name,
18441 # likewise P contains macro parameters if any. Preserve backslash
18442 # newline sequences.
18443
18444 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18445 sed -n '
18446 s/.\{148\}/&'"$ac_delim"'/g
18447 t rset
18448 :rset
18449 s/^[ ]*#[ ]*define[ ][ ]*/ /
18450 t def
18451 d
18452 :def
18453 s/\\$//
18454 t bsnl
18455 s/["\\]/\\&/g
18456 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18457 D["\1"]=" \3"/p
18458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18459 d
18460 :bsnl
18461 s/["\\]/\\&/g
18462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18463 D["\1"]=" \3\\\\\\n"\\/p
18464 t cont
18465 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18466 t cont
18467 d
18468 :cont
18469 n
18470 s/.\{148\}/&'"$ac_delim"'/g
18471 t clear
18472 :clear
18473 s/\\$//
18474 t bsnlc
18475 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18476 d
18477 :bsnlc
18478 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18479 b cont
18480 ' <confdefs.h | sed '
18481 s/'"$ac_delim"'/"\\\
18482 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18483
18484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18485 for (key in D) D_is_set[key] = 1
18486 FS = ""
18487 }
18488 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18489 line = \$ 0
18490 split(line, arg, " ")
18491 if (arg[1] == "#") {
18492 defundef = arg[2]
18493 mac1 = arg[3]
18494 } else {
18495 defundef = substr(arg[1], 2)
18496 mac1 = arg[2]
18497 }
18498 split(mac1, mac2, "(") #)
18499 macro = mac2[1]
18500 prefix = substr(line, 1, index(line, defundef) - 1)
18501 if (D_is_set[macro]) {
18502 # Preserve the white space surrounding the "#".
18503 print prefix "define", macro P[macro] D[macro]
18504 next
18505 } else {
18506 # Replace #undef with comments. This is necessary, for example,
18507 # in the case of _POSIX_SOURCE, which is predefined and required
18508 # on some systems where configure will not decide to define it.
18509 if (defundef == "undef") {
18510 print "/*", prefix defundef, macro, "*/"
18511 next
18512 }
18513 }
18514 }
18515 { print }
18516 _ACAWK
18517 _ACEOF
18518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18519 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18520 fi # test -n "$CONFIG_HEADERS"
18521
18522
18523 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18524 shift
18525 for ac_tag
18526 do
18527 case $ac_tag in
18528 :[FHLC]) ac_mode=$ac_tag; continue;;
18529 esac
18530 case $ac_mode$ac_tag in
18531 :[FHL]*:*);;
18532 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18533 :[FH]-) ac_tag=-:-;;
18534 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18535 esac
18536 ac_save_IFS=$IFS
18537 IFS=:
18538 set x $ac_tag
18539 IFS=$ac_save_IFS
18540 shift
18541 ac_file=$1
18542 shift
18543
18544 case $ac_mode in
18545 :L) ac_source=$1;;
18546 :[FH])
18547 ac_file_inputs=
18548 for ac_f
18549 do
18550 case $ac_f in
18551 -) ac_f="$ac_tmp/stdin";;
18552 *) # Look for the file first in the build tree, then in the source tree
18553 # (if the path is not absolute). The absolute path cannot be DOS-style,
18554 # because $ac_f cannot contain ':'.
18555 test -f "$ac_f" ||
18556 case $ac_f in
18557 [\\/$]*) false;;
18558 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18559 esac ||
18560 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18561 esac
18562 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18563 as_fn_append ac_file_inputs " '$ac_f'"
18564 done
18565
18566 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18567 # use $as_me), people would be surprised to read:
18568 # /* config.h. Generated by config.status. */
18569 configure_input='Generated from '`
18570 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18571 `' by configure.'
18572 if test x"$ac_file" != x-; then
18573 configure_input="$ac_file. $configure_input"
18574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18575 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18576 fi
18577 # Neutralize special characters interpreted by sed in replacement strings.
18578 case $configure_input in #(
18579 *\&* | *\|* | *\\* )
18580 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18581 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18582 *) ac_sed_conf_input=$configure_input;;
18583 esac
18584
18585 case $ac_tag in
18586 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18588 esac
18589 ;;
18590 esac
18591
18592 ac_dir=`$as_dirname -- "$ac_file" ||
18593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18594 X"$ac_file" : 'X\(//\)[^/]' \| \
18595 X"$ac_file" : 'X\(//\)$' \| \
18596 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18597 printf "%s\n" X"$ac_file" |
18598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18599 s//\1/
18600 q
18601 }
18602 /^X\(\/\/\)[^/].*/{
18603 s//\1/
18604 q
18605 }
18606 /^X\(\/\/\)$/{
18607 s//\1/
18608 q
18609 }
18610 /^X\(\/\).*/{
18611 s//\1/
18612 q
18613 }
18614 s/.*/./; q'`
18615 as_dir="$ac_dir"; as_fn_mkdir_p
18616 ac_builddir=.
18617
18618 case "$ac_dir" in
18619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18620 *)
18621 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18622 # A ".." for each directory in $ac_dir_suffix.
18623 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18624 case $ac_top_builddir_sub in
18625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18627 esac ;;
18628 esac
18629 ac_abs_top_builddir=$ac_pwd
18630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18631 # for backward compatibility:
18632 ac_top_builddir=$ac_top_build_prefix
18633
18634 case $srcdir in
18635 .) # We are building in place.
18636 ac_srcdir=.
18637 ac_top_srcdir=$ac_top_builddir_sub
18638 ac_abs_top_srcdir=$ac_pwd ;;
18639 [\\/]* | ?:[\\/]* ) # Absolute name.
18640 ac_srcdir=$srcdir$ac_dir_suffix;
18641 ac_top_srcdir=$srcdir
18642 ac_abs_top_srcdir=$srcdir ;;
18643 *) # Relative name.
18644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18645 ac_top_srcdir=$ac_top_build_prefix$srcdir
18646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18647 esac
18648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18649
18650
18651 case $ac_mode in
18652 :F)
18653 #
18654 # CONFIG_FILE
18655 #
18656
18657 case $INSTALL in
18658 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18659 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18660 esac
18661 ac_MKDIR_P=$MKDIR_P
18662 case $MKDIR_P in
18663 [\\/$]* | ?:[\\/]* ) ;;
18664 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18665 esac
18666 _ACEOF
18667
18668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18669 # If the template does not know about datarootdir, expand it.
18670 # FIXME: This hack should be removed a few years after 2.60.
18671 ac_datarootdir_hack=; ac_datarootdir_seen=
18672 ac_sed_dataroot='
18673 /datarootdir/ {
18674 p
18675 q
18676 }
18677 /@datadir@/p
18678 /@docdir@/p
18679 /@infodir@/p
18680 /@localedir@/p
18681 /@mandir@/p'
18682 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18683 *datarootdir*) ac_datarootdir_seen=yes;;
18684 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18686 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18687 _ACEOF
18688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18689 ac_datarootdir_hack='
18690 s&@datadir@&$datadir&g
18691 s&@docdir@&$docdir&g
18692 s&@infodir@&$infodir&g
18693 s&@localedir@&$localedir&g
18694 s&@mandir@&$mandir&g
18695 s&\\\${datarootdir}&$datarootdir&g' ;;
18696 esac
18697 _ACEOF
18698
18699 # Neutralize VPATH when '$srcdir' = '.'.
18700 # Shell code in configure.ac might set extrasub.
18701 # FIXME: do we really want to maintain this feature?
18702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18703 ac_sed_extra="$ac_vpsub
18704 $extrasub
18705 _ACEOF
18706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18707 :t
18708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18709 s|@configure_input@|$ac_sed_conf_input|;t t
18710 s&@top_builddir@&$ac_top_builddir_sub&;t t
18711 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18712 s&@srcdir@&$ac_srcdir&;t t
18713 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18714 s&@top_srcdir@&$ac_top_srcdir&;t t
18715 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18716 s&@builddir@&$ac_builddir&;t t
18717 s&@abs_builddir@&$ac_abs_builddir&;t t
18718 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18719 s&@INSTALL@&$ac_INSTALL&;t t
18720 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18721 $ac_datarootdir_hack
18722 "
18723 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18724 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18725
18726 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18727 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18728 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18729 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18731 which seems to be undefined. Please make sure it is defined" >&5
18732 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18733 which seems to be undefined. Please make sure it is defined" >&2;}
18734
18735 rm -f "$ac_tmp/stdin"
18736 case $ac_file in
18737 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18738 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18739 esac \
18740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18741 ;;
18742 :H)
18743 #
18744 # CONFIG_HEADER
18745 #
18746 if test x"$ac_file" != x-; then
18747 {
18748 printf "%s\n" "/* $configure_input */" >&1 \
18749 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18750 } >"$ac_tmp/config.h" \
18751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18752 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18754 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18755 else
18756 rm -f "$ac_file"
18757 mv "$ac_tmp/config.h" "$ac_file" \
18758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18759 fi
18760 else
18761 printf "%s\n" "/* $configure_input */" >&1 \
18762 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18763 || as_fn_error $? "could not create -" "$LINENO" 5
18764 fi
18765 # Compute "$ac_file"'s index in $config_headers.
18766 _am_arg="$ac_file"
18767 _am_stamp_count=1
18768 for _am_header in $config_headers :; do
18769 case $_am_header in
18770 $_am_arg | $_am_arg:* )
18771 break ;;
18772 * )
18773 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18774 esac
18775 done
18776 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18777 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18778 X"$_am_arg" : 'X\(//\)[^/]' \| \
18779 X"$_am_arg" : 'X\(//\)$' \| \
18780 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18781 printf "%s\n" X"$_am_arg" |
18782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18783 s//\1/
18784 q
18785 }
18786 /^X\(\/\/\)[^/].*/{
18787 s//\1/
18788 q
18789 }
18790 /^X\(\/\/\)$/{
18791 s//\1/
18792 q
18793 }
18794 /^X\(\/\).*/{
18795 s//\1/
18796 q
18797 }
18798 s/.*/./; q'`/stamp-h$_am_stamp_count
18799 ;;
18800
18801 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18802 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18803 ;;
18804 esac
18805
18806
18807 case $ac_file$ac_mode in
18808 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18809 # Older Autoconf quotes --file arguments for eval, but not when files
18810 # are listed without --file. Let's play safe and only enable the eval
18811 # if we detect the quoting.
18812 # TODO: see whether this extra hack can be removed once we start
18813 # requiring Autoconf 2.70 or later.
18814 case $CONFIG_FILES in #(
18815 *\'*) :
18816 eval set x "$CONFIG_FILES" ;; #(
18817 *) :
18818 set x $CONFIG_FILES ;; #(
18819 *) :
18820 ;;
18821 esac
18822 shift
18823 # Used to flag and report bootstrapping failures.
18824 am_rc=0
18825 for am_mf
18826 do
18827 # Strip MF so we end up with the name of the file.
18828 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18829 # Check whether this is an Automake generated Makefile which includes
18830 # dependency-tracking related rules and includes.
18831 # Grep'ing the whole file directly is not great: AIX grep has a line
18832 # limit of 2048, but all sed's we know have understand at least 4000.
18833 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18834 || continue
18835 am_dirpart=`$as_dirname -- "$am_mf" ||
18836 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18837 X"$am_mf" : 'X\(//\)[^/]' \| \
18838 X"$am_mf" : 'X\(//\)$' \| \
18839 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18840 printf "%s\n" X"$am_mf" |
18841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18842 s//\1/
18843 q
18844 }
18845 /^X\(\/\/\)[^/].*/{
18846 s//\1/
18847 q
18848 }
18849 /^X\(\/\/\)$/{
18850 s//\1/
18851 q
18852 }
18853 /^X\(\/\).*/{
18854 s//\1/
18855 q
18856 }
18857 s/.*/./; q'`
18858 am_filepart=`$as_basename -- "$am_mf" ||
18859 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18860 X"$am_mf" : 'X\(//\)$' \| \
18861 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18862 printf "%s\n" X/"$am_mf" |
18863 sed '/^.*\/\([^/][^/]*\)\/*$/{
18864 s//\1/
18865 q
18866 }
18867 /^X\/\(\/\/\)$/{
18868 s//\1/
18869 q
18870 }
18871 /^X\/\(\/\).*/{
18872 s//\1/
18873 q
18874 }
18875 s/.*/./; q'`
18876 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18877 && sed -e '/# am--include-marker/d' "$am_filepart" \
18878 | $MAKE -f - am--depfiles" >&5
18879 (cd "$am_dirpart" \
18880 && sed -e '/# am--include-marker/d' "$am_filepart" \
18881 | $MAKE -f - am--depfiles) >&5 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } || am_rc=$?
18885 done
18886 if test $am_rc -ne 0; then
18887 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18888 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18889 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18890 for automatic dependency tracking. If GNU make was not used, consider
18891 re-running the configure script with MAKE=\"gmake\" (or whatever is
18892 necessary). You can also try re-running configure with the
18893 '--disable-dependency-tracking' option to at least be able to build
18894 the package (albeit without support for automatic dependency tracking).
18895 See 'config.log' for more details" "$LINENO" 5; }
18896 fi
18897 { am_dirpart=; unset am_dirpart;}
18898 { am_filepart=; unset am_filepart;}
18899 { am_mf=; unset am_mf;}
18900 { am_rc=; unset am_rc;}
18901 rm -f conftest-deps.mk
18902 }
18903 ;;
18904 "libtool":C)
18905
18906 # See if we are running on zsh, and set the options that allow our
18907 # commands through without removal of \ escapes.
18908 if test -n "${ZSH_VERSION+set}"; then
18909 setopt NO_GLOB_SUBST
18910 fi
18911
18912 cfgfile=${ofile}T
18913 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18914 $RM "$cfgfile"
18915
18916 cat <<_LT_EOF >> "$cfgfile"
18917 #! $SHELL
18918 # Generated automatically by $as_me ($PACKAGE) $VERSION
18919 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18920
18921 # Provide generalized library-building support services.
18922 # Written by Gordon Matzigkeit, 1996
18923
18924 # Copyright (C) 2024 Free Software Foundation, Inc.
18925 # This is free software; see the source for copying conditions. There is NO
18926 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18927
18928 # GNU Libtool is free software; you can redistribute it and/or modify
18929 # it under the terms of the GNU General Public License as published by
18930 # the Free Software Foundation; either version 2 of the License, or
18931 # (at your option) any later version.
18932 #
18933 # As a special exception to the GNU General Public License, if you
18934 # distribute this file as part of a program or library that is built
18935 # using GNU Libtool, you may include this file under the same
18936 # distribution terms that you use for the rest of that program.
18937 #
18938 # GNU Libtool is distributed in the hope that it will be useful, but
18939 # WITHOUT ANY WARRANTY; without even the implied warranty of
18940 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18941 # GNU General Public License for more details.
18942 #
18943 # You should have received a copy of the GNU General Public License
18944 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18945
18946
18947 # The names of the tagged configurations supported by this script.
18948 available_tags=''
18949
18950 # Configured defaults for sys_lib_dlsearch_path munging.
18951 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18952
18953 # ### BEGIN LIBTOOL CONFIG
18954
18955 # Which release of libtool.m4 was used?
18956 macro_version=$macro_version
18957 macro_revision=$macro_revision
18958
18959 # Assembler program.
18960 AS=$lt_AS
18961
18962 # DLL creation program.
18963 DLLTOOL=$lt_DLLTOOL
18964
18965 # Object dumper program.
18966 OBJDUMP=$lt_OBJDUMP
18967
18968 # Whether or not to build shared libraries.
18969 build_libtool_libs=$enable_shared
18970
18971 # Whether or not to build static libraries.
18972 build_old_libs=$enable_static
18973
18974 # What type of objects to build.
18975 pic_mode=$pic_mode
18976
18977 # Whether or not to optimize for fast installation.
18978 fast_install=$enable_fast_install
18979
18980 # Shared archive member basename,for filename based shared library versioning on AIX.
18981 shared_archive_member_spec=$shared_archive_member_spec
18982
18983 # Shell to use when invoking shell scripts.
18984 SHELL=$lt_SHELL
18985
18986 # An echo program that protects backslashes.
18987 ECHO=$lt_ECHO
18988
18989 # The PATH separator for the build system.
18990 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18991
18992 # The host system.
18993 host_alias=$host_alias
18994 host=$host
18995 host_os=$host_os
18996
18997 # The build system.
18998 build_alias=$build_alias
18999 build=$build
19000 build_os=$build_os
19001
19002 # A sed program that does not truncate output.
19003 SED=$lt_SED
19004
19005 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19006 Xsed="\$SED -e 1s/^X//"
19007
19008 # A grep program that handles long lines.
19009 GREP=$lt_GREP
19010
19011 # An ERE matcher.
19012 EGREP=$lt_EGREP
19013
19014 # A literal string matcher.
19015 FGREP=$lt_FGREP
19016
19017 # A BSD- or MS-compatible name lister.
19018 NM=$lt_NM
19019
19020 # Whether we need soft or hard links.
19021 LN_S=$lt_LN_S
19022
19023 # What is the maximum length of a command?
19024 max_cmd_len=$max_cmd_len
19025
19026 # Object file suffix (normally "o").
19027 objext=$ac_objext
19028
19029 # Executable file suffix (normally "").
19030 exeext=$exeext
19031
19032 # whether the shell understands "unset".
19033 lt_unset=$lt_unset
19034
19035 # turn spaces into newlines.
19036 SP2NL=$lt_lt_SP2NL
19037
19038 # turn newlines into spaces.
19039 NL2SP=$lt_lt_NL2SP
19040
19041 # convert \$build file names to \$host format.
19042 to_host_file_cmd=$lt_cv_to_host_file_cmd
19043
19044 # convert \$build files to toolchain format.
19045 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19046
19047 # A file(cmd) program that detects file types.
19048 FILECMD=$lt_FILECMD
19049
19050 # Method to check whether dependent libraries are shared objects.
19051 deplibs_check_method=$lt_deplibs_check_method
19052
19053 # Command to use when deplibs_check_method = "file_magic".
19054 file_magic_cmd=$lt_file_magic_cmd
19055
19056 # How to find potential files when deplibs_check_method = "file_magic".
19057 file_magic_glob=$lt_file_magic_glob
19058
19059 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19060 want_nocaseglob=$lt_want_nocaseglob
19061
19062 # Command to associate shared and link libraries.
19063 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19064
19065 # The archiver.
19066 AR=$lt_AR
19067
19068 # Flags to create an archive (by configure).
19069 lt_ar_flags=$lt_ar_flags
19070
19071 # Flags to create an archive.
19072 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19073
19074 # How to feed a file listing to the archiver.
19075 archiver_list_spec=$lt_archiver_list_spec
19076
19077 # A symbol stripping program.
19078 STRIP=$lt_STRIP
19079
19080 # Commands used to install an old-style archive.
19081 RANLIB=$lt_RANLIB
19082 old_postinstall_cmds=$lt_old_postinstall_cmds
19083 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19084
19085 # Whether to use a lock for old archive extraction.
19086 lock_old_archive_extraction=$lock_old_archive_extraction
19087
19088 # A C compiler.
19089 LTCC=$lt_CC
19090
19091 # LTCC compiler flags.
19092 LTCFLAGS=$lt_CFLAGS
19093
19094 # Take the output of nm and produce a listing of raw symbols and C names.
19095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19096
19097 # Transform the output of nm in a proper C declaration.
19098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19099
19100 # Transform the output of nm into a list of symbols to manually relocate.
19101 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19102
19103 # Transform the output of nm in a C name address pair.
19104 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19105
19106 # Transform the output of nm in a C name address pair when lib prefix is needed.
19107 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19108
19109 # The name lister interface.
19110 nm_interface=$lt_lt_cv_nm_interface
19111
19112 # Specify filename containing input files for \$NM.
19113 nm_file_list_spec=$lt_nm_file_list_spec
19114
19115 # The root where to search for dependent libraries,and where our libraries should be installed.
19116 lt_sysroot=$lt_sysroot
19117
19118 # Command to truncate a binary pipe.
19119 lt_truncate_bin=$lt_lt_cv_truncate_bin
19120
19121 # The name of the directory that contains temporary libtool files.
19122 objdir=$objdir
19123
19124 # Used to examine libraries when file_magic_cmd begins with "file".
19125 MAGIC_CMD=$MAGIC_CMD
19126
19127 # Must we lock files when doing compilation?
19128 need_locks=$lt_need_locks
19129
19130 # Manifest tool.
19131 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19132
19133 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19134 DSYMUTIL=$lt_DSYMUTIL
19135
19136 # Tool to change global to local symbols on Mac OS X.
19137 NMEDIT=$lt_NMEDIT
19138
19139 # Tool to manipulate fat objects and archives on Mac OS X.
19140 LIPO=$lt_LIPO
19141
19142 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19143 OTOOL=$lt_OTOOL
19144
19145 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19146 OTOOL64=$lt_OTOOL64
19147
19148 # Old archive suffix (normally "a").
19149 libext=$libext
19150
19151 # Shared library suffix (normally ".so").
19152 shrext_cmds=$lt_shrext_cmds
19153
19154 # The commands to extract the exported symbol list from a shared archive.
19155 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19156
19157 # Variables whose values should be saved in libtool wrapper scripts and
19158 # restored at link time.
19159 variables_saved_for_relink=$lt_variables_saved_for_relink
19160
19161 # Do we need the "lib" prefix for modules?
19162 need_lib_prefix=$need_lib_prefix
19163
19164 # Do we need a version for libraries?
19165 need_version=$need_version
19166
19167 # Library versioning type.
19168 version_type=$version_type
19169
19170 # Shared library runtime path variable.
19171 runpath_var=$runpath_var
19172
19173 # Shared library path variable.
19174 shlibpath_var=$shlibpath_var
19175
19176 # Is shlibpath searched before the hard-coded library search path?
19177 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19178
19179 # Format of library name prefix.
19180 libname_spec=$lt_libname_spec
19181
19182 # List of archive names. First name is the real one, the rest are links.
19183 # The last name is the one that the linker finds with -lNAME
19184 library_names_spec=$lt_library_names_spec
19185
19186 # The coded name of the library, if different from the real name.
19187 soname_spec=$lt_soname_spec
19188
19189 # Permission mode override for installation of shared libraries.
19190 install_override_mode=$lt_install_override_mode
19191
19192 # Command to use after installation of a shared archive.
19193 postinstall_cmds=$lt_postinstall_cmds
19194
19195 # Command to use after uninstallation of a shared archive.
19196 postuninstall_cmds=$lt_postuninstall_cmds
19197
19198 # Commands used to finish a libtool library installation in a directory.
19199 finish_cmds=$lt_finish_cmds
19200
19201 # As "finish_cmds", except a single script fragment to be evaled but
19202 # not shown.
19203 finish_eval=$lt_finish_eval
19204
19205 # Whether we should hardcode library paths into libraries.
19206 hardcode_into_libs=$hardcode_into_libs
19207
19208 # Compile-time system search path for libraries.
19209 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19210
19211 # Detected run-time system search path for libraries.
19212 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19213
19214 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19215 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19216
19217 # Whether dlopen is supported.
19218 dlopen_support=$enable_dlopen
19219
19220 # Whether dlopen of programs is supported.
19221 dlopen_self=$enable_dlopen_self
19222
19223 # Whether dlopen of statically linked programs is supported.
19224 dlopen_self_static=$enable_dlopen_self_static
19225
19226 # Commands to strip libraries.
19227 old_striplib=$lt_old_striplib
19228 striplib=$lt_striplib
19229
19230
19231 # The linker used to build libraries.
19232 LD=$lt_LD
19233
19234 # How to create reloadable object files.
19235 reload_flag=$lt_reload_flag
19236 reload_cmds=$lt_reload_cmds
19237
19238 # Commands used to build an old-style archive.
19239 old_archive_cmds=$lt_old_archive_cmds
19240
19241 # A language specific compiler.
19242 CC=$lt_compiler
19243
19244 # Is the compiler the GNU compiler?
19245 with_gcc=$GCC
19246
19247 # Compiler flag to turn off builtin functions.
19248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19249
19250 # Additional compiler flags for building library objects.
19251 pic_flag=$lt_lt_prog_compiler_pic
19252
19253 # How to pass a linker flag through the compiler.
19254 wl=$lt_lt_prog_compiler_wl
19255
19256 # Compiler flag to prevent dynamic linking.
19257 link_static_flag=$lt_lt_prog_compiler_static
19258
19259 # Does compiler simultaneously support -c and -o options?
19260 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19261
19262 # Whether or not to add -lc for building shared libraries.
19263 build_libtool_need_lc=$archive_cmds_need_lc
19264
19265 # Whether or not to disallow shared libs when runtime libs are static.
19266 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19267
19268 # Compiler flag to allow reflexive dlopens.
19269 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19270
19271 # Compiler flag to generate shared objects directly from archives.
19272 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19273
19274 # Whether the compiler copes with passing no objects directly.
19275 compiler_needs_object=$lt_compiler_needs_object
19276
19277 # Create an old-style archive from a shared archive.
19278 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19279
19280 # Create a temporary old-style archive to link instead of a shared archive.
19281 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19282
19283 # Commands used to build a shared archive.
19284 archive_cmds=$lt_archive_cmds
19285 archive_expsym_cmds=$lt_archive_expsym_cmds
19286
19287 # Commands used to build a loadable module if different from building
19288 # a shared archive.
19289 module_cmds=$lt_module_cmds
19290 module_expsym_cmds=$lt_module_expsym_cmds
19291
19292 # Whether we are building with GNU ld or not.
19293 with_gnu_ld=$lt_with_gnu_ld
19294
19295 # Flag that allows shared libraries with undefined symbols to be built.
19296 allow_undefined_flag=$lt_allow_undefined_flag
19297
19298 # Flag that enforces no undefined symbols.
19299 no_undefined_flag=$lt_no_undefined_flag
19300
19301 # Flag to hardcode \$libdir into a binary during linking.
19302 # This must work even if \$libdir does not exist
19303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19304
19305 # Whether we need a single "-rpath" flag with a separated argument.
19306 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19307
19308 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19309 # DIR into the resulting binary.
19310 hardcode_direct=$hardcode_direct
19311
19312 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19313 # DIR into the resulting binary and the resulting library dependency is
19314 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19315 # library is relocated.
19316 hardcode_direct_absolute=$hardcode_direct_absolute
19317
19318 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19319 # into the resulting binary.
19320 hardcode_minus_L=$hardcode_minus_L
19321
19322 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19323 # into the resulting binary.
19324 hardcode_shlibpath_var=$hardcode_shlibpath_var
19325
19326 # Set to "yes" if building a shared library automatically hardcodes DIR
19327 # into the library and all subsequent libraries and executables linked
19328 # against it.
19329 hardcode_automatic=$hardcode_automatic
19330
19331 # Set to yes if linker adds runtime paths of dependent libraries
19332 # to runtime path list.
19333 inherit_rpath=$inherit_rpath
19334
19335 # Whether libtool must link a program against all its dependency libraries.
19336 link_all_deplibs=$link_all_deplibs
19337
19338 # Set to "yes" if exported symbols are required.
19339 always_export_symbols=$always_export_symbols
19340
19341 # The commands to list exported symbols.
19342 export_symbols_cmds=$lt_export_symbols_cmds
19343
19344 # Symbols that should not be listed in the preloaded symbols.
19345 exclude_expsyms=$lt_exclude_expsyms
19346
19347 # Symbols that must always be exported.
19348 include_expsyms=$lt_include_expsyms
19349
19350 # Commands necessary for linking programs (against libraries) with templates.
19351 prelink_cmds=$lt_prelink_cmds
19352
19353 # Commands necessary for finishing linking programs.
19354 postlink_cmds=$lt_postlink_cmds
19355
19356 # Specify filename containing input files.
19357 file_list_spec=$lt_file_list_spec
19358
19359 # How to hardcode a shared library path into an executable.
19360 hardcode_action=$hardcode_action
19361
19362 # ### END LIBTOOL CONFIG
19363
19364 _LT_EOF
19365
19366 cat <<'_LT_EOF' >> "$cfgfile"
19367
19368 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19369
19370 # func_munge_path_list VARIABLE PATH
19371 # -----------------------------------
19372 # VARIABLE is name of variable containing _space_ separated list of
19373 # directories to be munged by the contents of PATH, which is string
19374 # having a format:
19375 # "DIR[:DIR]:"
19376 # string "DIR[ DIR]" will be prepended to VARIABLE
19377 # ":DIR[:DIR]"
19378 # string "DIR[ DIR]" will be appended to VARIABLE
19379 # "DIRP[:DIRP]::[DIRA:]DIRA"
19380 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19381 # "DIRA[ DIRA]" will be appended to VARIABLE
19382 # "DIR[:DIR]"
19383 # VARIABLE will be replaced by "DIR[ DIR]"
19384 func_munge_path_list ()
19385 {
19386 case x$2 in
19387 x)
19388 ;;
19389 *:)
19390 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19391 ;;
19392 x:*)
19393 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19394 ;;
19395 *::*)
19396 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19397 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19398 ;;
19399 *)
19400 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19401 ;;
19402 esac
19403 }
19404
19405
19406 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19407 func_cc_basename ()
19408 {
19409 for cc_temp in $*""; do
19410 case $cc_temp in
19411 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19412 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19413 \-*) ;;
19414 *) break;;
19415 esac
19416 done
19417 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19418 }
19419
19420
19421 # ### END FUNCTIONS SHARED WITH CONFIGURE
19422
19423 _LT_EOF
19424
19425 case $host_os in
19426 aix3*)
19427 cat <<\_LT_EOF >> "$cfgfile"
19428 # AIX sometimes has problems with the GCC collect2 program. For some
19429 # reason, if we set the COLLECT_NAMES environment variable, the problems
19430 # vanish in a puff of smoke.
19431 if test set != "${COLLECT_NAMES+set}"; then
19432 COLLECT_NAMES=
19433 export COLLECT_NAMES
19434 fi
19435 _LT_EOF
19436 ;;
19437 esac
19438
19439
19440
19441 ltmain=$ac_aux_dir/ltmain.sh
19442
19443
19444 # We use sed instead of cat because bash on DJGPP gets confused if
19445 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19446 # text mode, it properly converts lines to CR/LF. This bash problem
19447 # is reportedly fixed, but why not run on old versions too?
19448 $SED '$q' "$ltmain" >> "$cfgfile" \
19449 || (rm -f "$cfgfile"; exit 1)
19450
19451 mv -f "$cfgfile" "$ofile" ||
19452 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19453 chmod +x "$ofile"
19454
19455 ;;
19456
19457 esac
19458 done # for ac_tag
19459
19460
19461 as_fn_exit 0
19462 _ACEOF
19463 ac_clean_files=$ac_clean_files_save
19464
19465 test $ac_write_fail = 0 ||
19466 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19467
19468
19469 # configure is writing to config.log, and then calls config.status.
19470 # config.status does its own redirection, appending to config.log.
19471 # Unfortunately, on DOS this fails, as config.log is still kept open
19472 # by configure, so config.status won't be able to write to it; its
19473 # output is simply discarded. So we exec the FD to /dev/null,
19474 # effectively closing config.log, so it can be properly (re)opened and
19475 # appended to by config.status. When coming back to configure, we
19476 # need to make the FD available again.
19477 if test "$no_create" != yes; then
19478 ac_cs_success=:
19479 ac_config_status_args=
19480 test "$silent" = yes &&
19481 ac_config_status_args="$ac_config_status_args --quiet"
19482 exec 5>/dev/null
19483 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19484 exec 5>>config.log
19485 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19486 # would make configure fail if this is the last instruction.
19487 $ac_cs_success || as_fn_exit 1
19488 fi
19489 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19491 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19492 fi
19493
19494