Debian Codegraph @

texk/ptexenc/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 ptexenc 1.5.2.
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='ptexenc'
616 PACKAGE_TARNAME='ptexenc'
617 PACKAGE_VERSION='1.5.2'
618 PACKAGE_STRING='ptexenc 1.5.2'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="ptexenc.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 KPATHSEA_RULE
661 KPATHSEA_DEPEND
662 KPATHSEA_LIBS
663 KPATHSEA_INCLUDES
664 PKG_CONFIG
665 LT_SYS_LIBRARY_PATH
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 FILECMD
674 LN_S
675 NM
676 ac_ct_DUMPBIN
677 DUMPBIN
678 LD
679 FGREP
680 EGREP
681 GREP
682 SED
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 LIBTOOL
692 OBJDUMP
693 DLLTOOL
694 AS
695 ac_ct_AR
696 AR
697 WARNING_CFLAGS
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__include
706 DEPDIR
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 am__xargs_n
718 am__rm_f_notfound
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 CSCOPE
724 ETAGS
725 CTAGS
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
731 AWK
732 mkdir_p
733 MKDIR_P
734 INSTALL_STRIP_PROGRAM
735 STRIP
736 install_sh
737 MAKEINFO
738 AUTOHEADER
739 AUTOMAKE
740 AUTOCONF
741 ACLOCAL
742 VERSION
743 PACKAGE
744 CYGPATH_W
745 am__isrc
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 PTEXENC_LT_VERSINFO
750 PTEXENCVERSION
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_kanji_iconv
811 enable_year2038
812 '
813 ac_precious_vars='build_alias
814 host_alias
815 target_alias
816 CC
817 CFLAGS
818 LDFLAGS
819 LIBS
820 CPPFLAGS
821 LT_SYS_LIBRARY_PATH'
822
823
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 ac_unrecognized_opts=
828 ac_unrecognized_sep=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
831 cache_file=/dev/null
832 exec_prefix=NONE
833 no_create=
834 no_recursion=
835 prefix=NONE
836 program_prefix=NONE
837 program_suffix=NONE
838 program_transform_name=s,x,x,
839 silent=
840 site=
841 srcdir=
842 verbose=
843 x_includes=NONE
844 x_libraries=NONE
845
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 runstatedir='${localstatedir}/run'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
865 htmldir='${docdir}'
866 dvidir='${docdir}'
867 pdfdir='${docdir}'
868 psdir='${docdir}'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
872
873 ac_prev=
874 ac_dashdash=
875 for ac_option
876 do
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
880 ac_prev=
881 continue
882 fi
883
884 case $ac_option in
885 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 *=) ac_optarg= ;;
887 *) ac_optarg=yes ;;
888 esac
889
890 case $ac_dashdash$ac_option in
891 --)
892 ac_dashdash=yes ;;
893
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
898
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
903
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
910
911 --config-cache | -C)
912 cache_file=config.cache ;;
913
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
918
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
925
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: '$ac_useropt'"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=no ;;
941
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
946
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
951
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: '$ac_useropt'"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
967
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
976
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
980
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
987
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
992
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
998
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1005
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1010
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1015
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1022
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1027
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1034
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1039
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1043
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1047
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1051
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1060
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1065
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1072
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1079
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1096
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1101
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1106
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1110
1111 -runstatedir | --runstatedir | --runstatedi | --runstated \
1112 | --runstate | --runstat | --runsta | --runst | --runs \
1113 | --run | --ru | --r)
1114 ac_prev=runstatedir ;;
1115 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1116 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1117 | --run=* | --ru=* | --r=*)
1118 runstatedir=$ac_optarg ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1164
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: '$ac_useropt'"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1180
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: '$ac_useropt'"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1214
1215 -*) as_fn_error $? "unrecognized option: '$ac_option'
1216 Try '$0 --help' for more information"
1217 ;;
1218
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1228
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 ;;
1236
1237 esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir runstatedir
1258 do
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: '$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error $? "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 printf "%s\n" X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335 else
1336 ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1362
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 'configure' configures ptexenc 1.5.2 to adapt to many kinds of systems.
1371
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1376
1377 Defaults for the options are specified in brackets.
1378
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print 'checking ...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for '--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or '..']
1389
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1395
1396 By default, 'make install' will install all the files in
1397 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than '$ac_default_prefix' using '--prefix',
1399 for instance '--prefix=\$HOME'.
1400
1401 For better control, use the options below.
1402
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/ptexenc]
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 ptexenc 1.5.2:";;
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-kanji-iconv Use iconv for kanji <=> unicode conversion
1473 --enable-year2038 support timestamps after 2038
1474
1475 Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1479 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1480 compiler's sysroot if not specified).
1481 --with-system-kpathsea use installed kpathsea headers and library (requires
1482 pkg-config)
1483
1484 Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 LIBS libraries to pass to the linker, e.g. -l<library>
1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491 you have headers in a nonstandard directory <include dir>
1492 LT_SYS_LIBRARY_PATH
1493 User-defined run-time library search path.
1494
1495 Use these variables to override the choices made by 'configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1497
1498 Report bugs to <[email protected]>.
1499 _ACEOF
1500 ac_status=$?
1501 fi
1502
1503 if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506 test -d "$ac_dir" ||
1507 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508 continue
1509 ac_builddir=.
1510
1511 case "$ac_dir" in
1512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *)
1514 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1515 # A ".." for each directory in $ac_dir_suffix.
1516 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517 case $ac_top_builddir_sub in
1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 esac ;;
1521 esac
1522 ac_abs_top_builddir=$ac_pwd
1523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524 # for backward compatibility:
1525 ac_top_builddir=$ac_top_build_prefix
1526
1527 case $srcdir in
1528 .) # We are building in place.
1529 ac_srcdir=.
1530 ac_top_srcdir=$ac_top_builddir_sub
1531 ac_abs_top_srcdir=$ac_pwd ;;
1532 [\\/]* | ?:[\\/]* ) # Absolute name.
1533 ac_srcdir=$srcdir$ac_dir_suffix;
1534 ac_top_srcdir=$srcdir
1535 ac_abs_top_srcdir=$srcdir ;;
1536 *) # Relative name.
1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538 ac_top_srcdir=$ac_top_build_prefix$srcdir
1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 esac
1541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
1543 cd "$ac_dir" || { ac_status=$?; continue; }
1544 # Check for configure.gnu first; this name is used for a wrapper for
1545 # Metaconfig's "Configure" on case-insensitive file systems.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1552 else
1553 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554 fi || ac_status=$?
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1556 done
1557 fi
1558
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561 cat <<\_ACEOF
1562 ptexenc configure 1.5.2
1563 generated by GNU Autoconf 2.72
1564
1565 Copyright (C) 2023 Free Software Foundation, Inc.
1566 This configure script is free software; the Free Software Foundation
1567 gives unlimited permission to copy, distribute and modify it.
1568 _ACEOF
1569 exit
1570 fi
1571
1572 ## ------------------------ ##
1573 ## Autoconf initialization. ##
1574 ## ------------------------ ##
1575
1576 # ac_fn_c_try_compile LINENO
1577 # --------------------------
1578 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_compile ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext conftest.beam
1583 if { { ac_try="$ac_compile"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 printf "%s\n" "$ac_try_echo"; } >&5
1590 (eval "$ac_compile") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest.$ac_objext
1602 then :
1603 ac_retval=0
1604 else case e in #(
1605 e) printf "%s\n" "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1 ;;
1609 esac
1610 fi
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1613
1614 } # ac_fn_c_try_compile
1615
1616 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1617 # -------------------------------------------------------
1618 # Tests whether HEADER exists and can be compiled using the include files in
1619 # INCLUDES, setting the cache variable VAR accordingly.
1620 ac_fn_c_check_header_compile ()
1621 {
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 printf %s "checking for $2... " >&6; }
1625 if eval test \${$3+y}
1626 then :
1627 printf %s "(cached) " >&6
1628 else case e in #(
1629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h. */
1631 $4
1632 #include <$2>
1633 _ACEOF
1634 if ac_fn_c_try_compile "$LINENO"
1635 then :
1636 eval "$3=yes"
1637 else case e in #(
1638 e) eval "$3=no" ;;
1639 esac
1640 fi
1641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1642 esac
1643 fi
1644 eval ac_res=\$$3
1645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 printf "%s\n" "$ac_res" >&6; }
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648
1649 } # ac_fn_c_check_header_compile
1650
1651 # ac_fn_c_try_link LINENO
1652 # -----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_link ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1658 if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 printf "%s\n" "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest$ac_exeext && {
1677 test "$cross_compiling" = yes ||
1678 test -x conftest$ac_exeext
1679 }
1680 then :
1681 ac_retval=0
1682 else case e in #(
1683 e) printf "%s\n" "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=1 ;;
1687 esac
1688 fi
1689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691 # interfere with the next link command; also delete a directory that is
1692 # left behind by Apple's compiler. We do this before executing the actions.
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_link
1698
1699 # ac_fn_c_check_func LINENO FUNC VAR
1700 # ----------------------------------
1701 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1702 ac_fn_c_check_func ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 printf %s "checking for $2... " >&6; }
1707 if eval test \${$3+y}
1708 then :
1709 printf %s "(cached) " >&6
1710 else case e in #(
1711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1713 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1715 #define $2 innocuous_$2
1716
1717 /* System header to define __stub macros and hopefully few prototypes,
1718 which can conflict with char $2 (void); below. */
1719
1720 #include <limits.h>
1721 #undef $2
1722
1723 /* Override any GCC internal prototype to avoid an error.
1724 Use char because int might match the return type of a GCC
1725 builtin and then its argument prototype would still apply. */
1726 #ifdef __cplusplus
1727 extern "C"
1728 #endif
1729 char $2 (void);
1730 /* The GNU C library defines this for functions which it implements
1731 to always fail with ENOSYS. Some functions are actually named
1732 something starting with __ and the normal name is an alias. */
1733 #if defined __stub_$2 || defined __stub___$2
1734 choke me
1735 #endif
1736
1737 int
1738 main (void)
1739 {
1740 return $2 ();
1741 ;
1742 return 0;
1743 }
1744 _ACEOF
1745 if ac_fn_c_try_link "$LINENO"
1746 then :
1747 eval "$3=yes"
1748 else case e in #(
1749 e) eval "$3=no" ;;
1750 esac
1751 fi
1752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1753 conftest$ac_exeext conftest.$ac_ext ;;
1754 esac
1755 fi
1756 eval ac_res=\$$3
1757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 printf "%s\n" "$ac_res" >&6; }
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
1761 } # ac_fn_c_check_func
1762
1763 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1764 # -------------------------------------------
1765 # Tests whether TYPE exists after having included INCLUDES, setting cache
1766 # variable VAR accordingly.
1767 ac_fn_c_check_type ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 printf %s "checking for $2... " >&6; }
1772 if eval test \${$3+y}
1773 then :
1774 printf %s "(cached) " >&6
1775 else case e in #(
1776 e) eval "$3=no"
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1779 $4
1780 int
1781 main (void)
1782 {
1783 if (sizeof ($2))
1784 return 0;
1785 ;
1786 return 0;
1787 }
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"
1790 then :
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 $4
1794 int
1795 main (void)
1796 {
1797 if (sizeof (($2)))
1798 return 0;
1799 ;
1800 return 0;
1801 }
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"
1804 then :
1805
1806 else case e in #(
1807 e) eval "$3=yes" ;;
1808 esac
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1813 esac
1814 fi
1815 eval ac_res=\$$3
1816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 printf "%s\n" "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820 } # ac_fn_c_check_type
1821
1822 # ac_fn_c_find_intX_t LINENO BITS VAR
1823 # -----------------------------------
1824 # Finds a signed integer type with width BITS, setting cache variable VAR
1825 # accordingly.
1826 ac_fn_c_find_intX_t ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1830 printf %s "checking for int$2_t... " >&6; }
1831 if eval test \${$3+y}
1832 then :
1833 printf %s "(cached) " >&6
1834 else case e in #(
1835 e) eval "$3=no"
1836 # Order is important - never check a type that is potentially smaller
1837 # than half of the expected target width.
1838 for ac_type in int$2_t 'int' 'long int' \
1839 'long long int' 'short int' 'signed char'; do
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 $ac_includes_default
1843 enum { N = $2 / 2 - 1 };
1844 int
1845 main (void)
1846 {
1847 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1848 test_array [0] = 0;
1849 return test_array [0];
1850
1851 ;
1852 return 0;
1853 }
1854 _ACEOF
1855 if ac_fn_c_try_compile "$LINENO"
1856 then :
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1859 $ac_includes_default
1860 enum { N = $2 / 2 - 1 };
1861 int
1862 main (void)
1863 {
1864 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1865 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1866 test_array [0] = 0;
1867 return test_array [0];
1868
1869 ;
1870 return 0;
1871 }
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"
1874 then :
1875
1876 else case e in #(
1877 e) case $ac_type in #(
1878 int$2_t) :
1879 eval "$3=yes" ;; #(
1880 *) :
1881 eval "$3=\$ac_type" ;;
1882 esac ;;
1883 esac
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1888 if eval test \"x\$"$3"\" = x"no"
1889 then :
1890
1891 else case e in #(
1892 e) break ;;
1893 esac
1894 fi
1895 done ;;
1896 esac
1897 fi
1898 eval ac_res=\$$3
1899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 printf "%s\n" "$ac_res" >&6; }
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903 } # ac_fn_c_find_intX_t
1904
1905 # ac_fn_c_find_uintX_t LINENO BITS VAR
1906 # ------------------------------------
1907 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1908 # accordingly.
1909 ac_fn_c_find_uintX_t ()
1910 {
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1913 printf %s "checking for uint$2_t... " >&6; }
1914 if eval test \${$3+y}
1915 then :
1916 printf %s "(cached) " >&6
1917 else case e in #(
1918 e) eval "$3=no"
1919 # Order is important - never check a type that is potentially smaller
1920 # than half of the expected target width.
1921 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1922 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 $ac_includes_default
1926 int
1927 main (void)
1928 {
1929 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1930 test_array [0] = 0;
1931 return test_array [0];
1932
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"
1938 then :
1939 case $ac_type in #(
1940 uint$2_t) :
1941 eval "$3=yes" ;; #(
1942 *) :
1943 eval "$3=\$ac_type" ;;
1944 esac
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1947 if eval test \"x\$"$3"\" = x"no"
1948 then :
1949
1950 else case e in #(
1951 e) break ;;
1952 esac
1953 fi
1954 done ;;
1955 esac
1956 fi
1957 eval ac_res=\$$3
1958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 printf "%s\n" "$ac_res" >&6; }
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961
1962 } # ac_fn_c_find_uintX_t
1963
1964 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1965 # ------------------------------------------------------------------
1966 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1967 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1968 ac_fn_check_decl ()
1969 {
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 as_decl_name=`echo $2|sed 's/ *(.*//'`
1972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1973 printf %s "checking whether $as_decl_name is declared... " >&6; }
1974 if eval test \${$3+y}
1975 then :
1976 printf %s "(cached) " >&6
1977 else case e in #(
1978 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1979 eval ac_save_FLAGS=\$$6
1980 as_fn_append $6 " $5"
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 $4
1984 int
1985 main (void)
1986 {
1987 #ifndef $as_decl_name
1988 #ifdef __cplusplus
1989 (void) $as_decl_use;
1990 #else
1991 (void) $as_decl_name;
1992 #endif
1993 #endif
1994
1995 ;
1996 return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"
2000 then :
2001 eval "$3=yes"
2002 else case e in #(
2003 e) eval "$3=no" ;;
2004 esac
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2007 eval $6=\$ac_save_FLAGS
2008 ;;
2009 esac
2010 fi
2011 eval ac_res=\$$3
2012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 printf "%s\n" "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016 } # ac_fn_check_decl
2017
2018 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2019 # ----------------------------------------------------
2020 # Tries to find if the field MEMBER exists in type AGGR, after including
2021 # INCLUDES, setting cache variable VAR accordingly.
2022 ac_fn_c_check_member ()
2023 {
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2026 printf %s "checking for $2.$3... " >&6; }
2027 if eval test \${$4+y}
2028 then :
2029 printf %s "(cached) " >&6
2030 else case e in #(
2031 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 $5
2034 int
2035 main (void)
2036 {
2037 static $2 ac_aggr;
2038 if (ac_aggr.$3)
2039 return 0;
2040 ;
2041 return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"
2045 then :
2046 eval "$4=yes"
2047 else case e in #(
2048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2050 $5
2051 int
2052 main (void)
2053 {
2054 static $2 ac_aggr;
2055 if (sizeof ac_aggr.$3)
2056 return 0;
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"
2062 then :
2063 eval "$4=yes"
2064 else case e in #(
2065 e) eval "$4=no" ;;
2066 esac
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2069 esac
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2072 esac
2073 fi
2074 eval ac_res=\$$4
2075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 printf "%s\n" "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079 } # ac_fn_c_check_member
2080 ac_configure_args_raw=
2081 for ac_arg
2082 do
2083 case $ac_arg in
2084 *\'*)
2085 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2086 esac
2087 as_fn_append ac_configure_args_raw " '$ac_arg'"
2088 done
2089
2090 case $ac_configure_args_raw in
2091 *$as_nl*)
2092 ac_safe_unquote= ;;
2093 *)
2094 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2095 ac_unsafe_a="$ac_unsafe_z#~"
2096 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2097 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2098 esac
2099
2100 cat >config.log <<_ACEOF
2101 This file contains any messages produced by compilers while
2102 running configure, to aid debugging if configure makes a mistake.
2103
2104 It was created by ptexenc $as_me 1.5.2, which was
2105 generated by GNU Autoconf 2.72. Invocation command line was
2106
2107 $ $0$ac_configure_args_raw
2108
2109 _ACEOF
2110 exec 5>>config.log
2111 {
2112 cat <<_ASUNAME
2113 ## --------- ##
2114 ## Platform. ##
2115 ## --------- ##
2116
2117 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2118 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2119 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2120 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2121 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2122
2123 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2124 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2125
2126 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2127 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2128 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2129 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2130 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2131 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2132 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2133
2134 _ASUNAME
2135
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139 IFS=$as_save_IFS
2140 case $as_dir in #(((
2141 '') as_dir=./ ;;
2142 */) ;;
2143 *) as_dir=$as_dir/ ;;
2144 esac
2145 printf "%s\n" "PATH: $as_dir"
2146 done
2147 IFS=$as_save_IFS
2148
2149 } >&5
2150
2151 cat >&5 <<_ACEOF
2152
2153
2154 ## ----------- ##
2155 ## Core tests. ##
2156 ## ----------- ##
2157
2158 _ACEOF
2159
2160
2161 # Keep a trace of the command line.
2162 # Strip out --no-create and --no-recursion so they do not pile up.
2163 # Strip out --silent because we don't want to record it for future runs.
2164 # Also quote any args containing shell meta-characters.
2165 # Make two passes to allow for proper duplicate-argument suppression.
2166 ac_configure_args=
2167 ac_configure_args0=
2168 ac_configure_args1=
2169 ac_must_keep_next=false
2170 for ac_pass in 1 2
2171 do
2172 for ac_arg
2173 do
2174 case $ac_arg in
2175 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2177 | -silent | --silent | --silen | --sile | --sil)
2178 continue ;;
2179 *\'*)
2180 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 esac
2182 case $ac_pass in
2183 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2184 2)
2185 as_fn_append ac_configure_args1 " '$ac_arg'"
2186 if test $ac_must_keep_next = true; then
2187 ac_must_keep_next=false # Got value, back to normal.
2188 else
2189 case $ac_arg in
2190 *=* | --config-cache | -C | -disable-* | --disable-* \
2191 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2192 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2193 | -with-* | --with-* | -without-* | --without-* | --x)
2194 case "$ac_configure_args0 " in
2195 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2196 esac
2197 ;;
2198 -* ) ac_must_keep_next=true ;;
2199 esac
2200 fi
2201 as_fn_append ac_configure_args " '$ac_arg'"
2202 ;;
2203 esac
2204 done
2205 done
2206 { ac_configure_args0=; unset ac_configure_args0;}
2207 { ac_configure_args1=; unset ac_configure_args1;}
2208
2209 # When interrupted or exit'd, cleanup temporary files, and complete
2210 # config.log. We remove comments because anyway the quotes in there
2211 # would cause problems or look ugly.
2212 # WARNING: Use '\'' to represent an apostrophe within the trap.
2213 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2214 trap 'exit_status=$?
2215 # Sanitize IFS.
2216 IFS=" "" $as_nl"
2217 # Save into config.log some information that might help in debugging.
2218 {
2219 echo
2220
2221 printf "%s\n" "## ---------------- ##
2222 ## Cache variables. ##
2223 ## ---------------- ##"
2224 echo
2225 # The following way of writing the cache mishandles newlines in values,
2226 (
2227 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2228 eval ac_val=\$$ac_var
2229 case $ac_val in #(
2230 *${as_nl}*)
2231 case $ac_var in #(
2232 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2233 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2234 esac
2235 case $ac_var in #(
2236 _ | IFS | as_nl) ;; #(
2237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2238 *) { eval $ac_var=; unset $ac_var;} ;;
2239 esac ;;
2240 esac
2241 done
2242 (set) 2>&1 |
2243 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244 *${as_nl}ac_space=\ *)
2245 sed -n \
2246 "s/'\''/'\''\\\\'\'''\''/g;
2247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248 ;; #(
2249 *)
2250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251 ;;
2252 esac |
2253 sort
2254 )
2255 echo
2256
2257 printf "%s\n" "## ----------------- ##
2258 ## Output variables. ##
2259 ## ----------------- ##"
2260 echo
2261 for ac_var in $ac_subst_vars
2262 do
2263 eval ac_val=\$$ac_var
2264 case $ac_val in
2265 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266 esac
2267 printf "%s\n" "$ac_var='\''$ac_val'\''"
2268 done | sort
2269 echo
2270
2271 if test -n "$ac_subst_files"; then
2272 printf "%s\n" "## ------------------- ##
2273 ## File substitutions. ##
2274 ## ------------------- ##"
2275 echo
2276 for ac_var in $ac_subst_files
2277 do
2278 eval ac_val=\$$ac_var
2279 case $ac_val in
2280 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281 esac
2282 printf "%s\n" "$ac_var='\''$ac_val'\''"
2283 done | sort
2284 echo
2285 fi
2286
2287 if test -s confdefs.h; then
2288 printf "%s\n" "## ----------- ##
2289 ## confdefs.h. ##
2290 ## ----------- ##"
2291 echo
2292 cat confdefs.h
2293 echo
2294 fi
2295 test "$ac_signal" != 0 &&
2296 printf "%s\n" "$as_me: caught signal $ac_signal"
2297 printf "%s\n" "$as_me: exit $exit_status"
2298 } >&5
2299 rm -f core *.core core.conftest.* &&
2300 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301 exit $exit_status
2302 ' 0
2303 for ac_signal in 1 2 13 15; do
2304 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2305 done
2306 ac_signal=0
2307
2308 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2309 rm -f -r conftest* confdefs.h
2310
2311 printf "%s\n" "/* confdefs.h */" > confdefs.h
2312
2313 # Predefined preprocessor variables.
2314
2315 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2316
2317 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2318
2319 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2320
2321 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2322
2323 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2324
2325 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2326
2327
2328 # Let the site file select an alternate cache file if it wants to.
2329 # Prefer an explicitly selected file to automatically selected ones.
2330 if test -n "$CONFIG_SITE"; then
2331 ac_site_files="$CONFIG_SITE"
2332 elif test "x$prefix" != xNONE; then
2333 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2334 else
2335 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2336 fi
2337
2338 for ac_site_file in $ac_site_files
2339 do
2340 case $ac_site_file in #(
2341 */*) :
2342 ;; #(
2343 *) :
2344 ac_site_file=./$ac_site_file ;;
2345 esac
2346 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2348 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2349 sed 's/^/| /' "$ac_site_file" >&5
2350 . "$ac_site_file" \
2351 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2352 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2353 as_fn_error $? "failed to load site script $ac_site_file
2354 See 'config.log' for more details" "$LINENO" 5; }
2355 fi
2356 done
2357
2358 if test -r "$cache_file"; then
2359 # Some versions of bash will fail to source /dev/null (special files
2360 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2361 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2363 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2364 case $cache_file in
2365 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2366 *) . "./$cache_file";;
2367 esac
2368 fi
2369 else
2370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2371 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2372 >$cache_file
2373 fi
2374
2375 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2376 # Test code for whether the C compiler supports C89 (global declarations)
2377 ac_c_conftest_c89_globals='
2378 /* Does the compiler advertise C89 conformance?
2379 Do not test the value of __STDC__, because some compilers set it to 0
2380 while being otherwise adequately conformant. */
2381 #if !defined __STDC__
2382 # error "Compiler does not advertise C89 conformance"
2383 #endif
2384
2385 #include <stddef.h>
2386 #include <stdarg.h>
2387 struct stat;
2388 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2389 struct buf { int x; };
2390 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2391 static char *e (char **p, int i)
2392 {
2393 return p[i];
2394 }
2395 static char *f (char * (*g) (char **, int), char **p, ...)
2396 {
2397 char *s;
2398 va_list v;
2399 va_start (v,p);
2400 s = g (p, va_arg (v,int));
2401 va_end (v);
2402 return s;
2403 }
2404
2405 /* C89 style stringification. */
2406 #define noexpand_stringify(a) #a
2407 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2408
2409 /* C89 style token pasting. Exercises some of the corner cases that
2410 e.g. old MSVC gets wrong, but not very hard. */
2411 #define noexpand_concat(a,b) a##b
2412 #define expand_concat(a,b) noexpand_concat(a,b)
2413 extern int vA;
2414 extern int vbee;
2415 #define aye A
2416 #define bee B
2417 int *pvA = &expand_concat(v,aye);
2418 int *pvbee = &noexpand_concat(v,bee);
2419
2420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2421 function prototypes and stuff, but not \xHH hex character constants.
2422 These do not provoke an error unfortunately, instead are silently treated
2423 as an "x". The following induces an error, until -std is added to get
2424 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2425 array size at least. It is necessary to write \x00 == 0 to get something
2426 that is true only with -std. */
2427 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2428
2429 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2430 inside strings and character constants. */
2431 #define FOO(x) '\''x'\''
2432 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2433
2434 int test (int i, double x);
2435 struct s1 {int (*f) (int a);};
2436 struct s2 {int (*f) (double a);};
2437 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2438 int, int);'
2439
2440 # Test code for whether the C compiler supports C89 (body of main).
2441 ac_c_conftest_c89_main='
2442 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2443 '
2444
2445 # Test code for whether the C compiler supports C99 (global declarations)
2446 ac_c_conftest_c99_globals='
2447 /* Does the compiler advertise C99 conformance? */
2448 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2449 # error "Compiler does not advertise C99 conformance"
2450 #endif
2451
2452 // See if C++-style comments work.
2453
2454 #include <stdbool.h>
2455 extern int puts (const char *);
2456 extern int printf (const char *, ...);
2457 extern int dprintf (int, const char *, ...);
2458 extern void *malloc (size_t);
2459 extern void free (void *);
2460
2461 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2462 // dprintf is used instead of fprintf to avoid needing to declare
2463 // FILE and stderr.
2464 #define debug(...) dprintf (2, __VA_ARGS__)
2465 #define showlist(...) puts (#__VA_ARGS__)
2466 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2467 static void
2468 test_varargs_macros (void)
2469 {
2470 int x = 1234;
2471 int y = 5678;
2472 debug ("Flag");
2473 debug ("X = %d\n", x);
2474 showlist (The first, second, and third items.);
2475 report (x>y, "x is %d but y is %d", x, y);
2476 }
2477
2478 // Check long long types.
2479 #define BIG64 18446744073709551615ull
2480 #define BIG32 4294967295ul
2481 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2482 #if !BIG_OK
2483 #error "your preprocessor is broken"
2484 #endif
2485 #if BIG_OK
2486 #else
2487 #error "your preprocessor is broken"
2488 #endif
2489 static long long int bignum = -9223372036854775807LL;
2490 static unsigned long long int ubignum = BIG64;
2491
2492 struct incomplete_array
2493 {
2494 int datasize;
2495 double data[];
2496 };
2497
2498 struct named_init {
2499 int number;
2500 const wchar_t *name;
2501 double average;
2502 };
2503
2504 typedef const char *ccp;
2505
2506 static inline int
2507 test_restrict (ccp restrict text)
2508 {
2509 // Iterate through items via the restricted pointer.
2510 // Also check for declarations in for loops.
2511 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2512 continue;
2513 return 0;
2514 }
2515
2516 // Check varargs and va_copy.
2517 static bool
2518 test_varargs (const char *format, ...)
2519 {
2520 va_list args;
2521 va_start (args, format);
2522 va_list args_copy;
2523 va_copy (args_copy, args);
2524
2525 const char *str = "";
2526 int number = 0;
2527 float fnumber = 0;
2528
2529 while (*format)
2530 {
2531 switch (*format++)
2532 {
2533 case '\''s'\'': // string
2534 str = va_arg (args_copy, const char *);
2535 break;
2536 case '\''d'\'': // int
2537 number = va_arg (args_copy, int);
2538 break;
2539 case '\''f'\'': // float
2540 fnumber = va_arg (args_copy, double);
2541 break;
2542 default:
2543 break;
2544 }
2545 }
2546 va_end (args_copy);
2547 va_end (args);
2548
2549 return *str && number && fnumber;
2550 }
2551 '
2552
2553 # Test code for whether the C compiler supports C99 (body of main).
2554 ac_c_conftest_c99_main='
2555 // Check bool.
2556 _Bool success = false;
2557 success |= (argc != 0);
2558
2559 // Check restrict.
2560 if (test_restrict ("String literal") == 0)
2561 success = true;
2562 char *restrict newvar = "Another string";
2563
2564 // Check varargs.
2565 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2566 test_varargs_macros ();
2567
2568 // Check flexible array members.
2569 struct incomplete_array *ia =
2570 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2571 ia->datasize = 10;
2572 for (int i = 0; i < ia->datasize; ++i)
2573 ia->data[i] = i * 1.234;
2574 // Work around memory leak warnings.
2575 free (ia);
2576
2577 // Check named initializers.
2578 struct named_init ni = {
2579 .number = 34,
2580 .name = L"Test wide string",
2581 .average = 543.34343,
2582 };
2583
2584 ni.number = 58;
2585
2586 int dynamic_array[ni.number];
2587 dynamic_array[0] = argv[0][0];
2588 dynamic_array[ni.number - 1] = 543;
2589
2590 // work around unused variable warnings
2591 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2592 || dynamic_array[ni.number - 1] != 543);
2593 '
2594
2595 # Test code for whether the C compiler supports C11 (global declarations)
2596 ac_c_conftest_c11_globals='
2597 /* Does the compiler advertise C11 conformance? */
2598 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2599 # error "Compiler does not advertise C11 conformance"
2600 #endif
2601
2602 // Check _Alignas.
2603 char _Alignas (double) aligned_as_double;
2604 char _Alignas (0) no_special_alignment;
2605 extern char aligned_as_int;
2606 char _Alignas (0) _Alignas (int) aligned_as_int;
2607
2608 // Check _Alignof.
2609 enum
2610 {
2611 int_alignment = _Alignof (int),
2612 int_array_alignment = _Alignof (int[100]),
2613 char_alignment = _Alignof (char)
2614 };
2615 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2616
2617 // Check _Noreturn.
2618 int _Noreturn does_not_return (void) { for (;;) continue; }
2619
2620 // Check _Static_assert.
2621 struct test_static_assert
2622 {
2623 int x;
2624 _Static_assert (sizeof (int) <= sizeof (long int),
2625 "_Static_assert does not work in struct");
2626 long int y;
2627 };
2628
2629 // Check UTF-8 literals.
2630 #define u8 syntax error!
2631 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2632
2633 // Check duplicate typedefs.
2634 typedef long *long_ptr;
2635 typedef long int *long_ptr;
2636 typedef long_ptr long_ptr;
2637
2638 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2639 struct anonymous
2640 {
2641 union {
2642 struct { int i; int j; };
2643 struct { int k; long int l; } w;
2644 };
2645 int m;
2646 } v1;
2647 '
2648
2649 # Test code for whether the C compiler supports C11 (body of main).
2650 ac_c_conftest_c11_main='
2651 _Static_assert ((offsetof (struct anonymous, i)
2652 == offsetof (struct anonymous, w.k)),
2653 "Anonymous union alignment botch");
2654 v1.i = 2;
2655 v1.w.k = 5;
2656 ok |= v1.i != 5;
2657 '
2658
2659 # Test code for whether the C compiler supports C11 (complete).
2660 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2661 ${ac_c_conftest_c99_globals}
2662 ${ac_c_conftest_c11_globals}
2663
2664 int
2665 main (int argc, char **argv)
2666 {
2667 int ok = 0;
2668 ${ac_c_conftest_c89_main}
2669 ${ac_c_conftest_c99_main}
2670 ${ac_c_conftest_c11_main}
2671 return ok;
2672 }
2673 "
2674
2675 # Test code for whether the C compiler supports C99 (complete).
2676 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2677 ${ac_c_conftest_c99_globals}
2678
2679 int
2680 main (int argc, char **argv)
2681 {
2682 int ok = 0;
2683 ${ac_c_conftest_c89_main}
2684 ${ac_c_conftest_c99_main}
2685 return ok;
2686 }
2687 "
2688
2689 # Test code for whether the C compiler supports C89 (complete).
2690 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2691
2692 int
2693 main (int argc, char **argv)
2694 {
2695 int ok = 0;
2696 ${ac_c_conftest_c89_main}
2697 return ok;
2698 }
2699 "
2700
2701 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2702 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2703 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2704 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2705 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2706 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2707 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2708 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2709 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2710 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2711
2712 # Auxiliary files required by this configure script.
2713 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2714
2715 # Locations in which to look for auxiliary files.
2716 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2717
2718 # Search for a directory containing all of the required auxiliary files,
2719 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2720 # If we don't find one directory that contains all the files we need,
2721 # we report the set of missing files from the *first* directory in
2722 # $ac_aux_dir_candidates and give up.
2723 ac_missing_aux_files=""
2724 ac_first_candidate=:
2725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 as_found=false
2728 for as_dir in $ac_aux_dir_candidates
2729 do
2730 IFS=$as_save_IFS
2731 case $as_dir in #(((
2732 '') as_dir=./ ;;
2733 */) ;;
2734 *) as_dir=$as_dir/ ;;
2735 esac
2736 as_found=:
2737
2738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2739 ac_aux_dir_found=yes
2740 ac_install_sh=
2741 for ac_aux in $ac_aux_files
2742 do
2743 # As a special case, if "install-sh" is required, that requirement
2744 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2745 # and $ac_install_sh is set appropriately for whichever one is found.
2746 if test x"$ac_aux" = x"install-sh"
2747 then
2748 if test -f "${as_dir}install-sh"; then
2749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2750 ac_install_sh="${as_dir}install-sh -c"
2751 elif test -f "${as_dir}install.sh"; then
2752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2753 ac_install_sh="${as_dir}install.sh -c"
2754 elif test -f "${as_dir}shtool"; then
2755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2756 ac_install_sh="${as_dir}shtool install -c"
2757 else
2758 ac_aux_dir_found=no
2759 if $ac_first_candidate; then
2760 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2761 else
2762 break
2763 fi
2764 fi
2765 else
2766 if test -f "${as_dir}${ac_aux}"; then
2767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2768 else
2769 ac_aux_dir_found=no
2770 if $ac_first_candidate; then
2771 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2772 else
2773 break
2774 fi
2775 fi
2776 fi
2777 done
2778 if test "$ac_aux_dir_found" = yes; then
2779 ac_aux_dir="$as_dir"
2780 break
2781 fi
2782 ac_first_candidate=false
2783
2784 as_found=false
2785 done
2786 IFS=$as_save_IFS
2787 if $as_found
2788 then :
2789
2790 else case e in #(
2791 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2792 esac
2793 fi
2794
2795
2796 # These three variables are undocumented and unsupported,
2797 # and are intended to be withdrawn in a future Autoconf release.
2798 # They can cause serious problems if a builder's source tree is in a directory
2799 # whose full name contains unusual characters.
2800 if test -f "${ac_aux_dir}config.guess"; then
2801 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2802 fi
2803 if test -f "${ac_aux_dir}config.sub"; then
2804 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2805 fi
2806 if test -f "$ac_aux_dir/configure"; then
2807 ac_configure="$SHELL ${ac_aux_dir}configure"
2808 fi
2809
2810 # Check that the precious variables saved in the cache have kept the same
2811 # value.
2812 ac_cache_corrupted=false
2813 for ac_var in $ac_precious_vars; do
2814 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2815 eval ac_new_set=\$ac_env_${ac_var}_set
2816 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2817 eval ac_new_val=\$ac_env_${ac_var}_value
2818 case $ac_old_set,$ac_new_set in
2819 set,)
2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2821 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2822 ac_cache_corrupted=: ;;
2823 ,set)
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2825 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2826 ac_cache_corrupted=: ;;
2827 ,);;
2828 *)
2829 if test "x$ac_old_val" != "x$ac_new_val"; then
2830 # differences in whitespace do not lead to failure.
2831 ac_old_val_w=`echo x $ac_old_val`
2832 ac_new_val_w=`echo x $ac_new_val`
2833 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2835 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2836 ac_cache_corrupted=:
2837 else
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2839 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2840 eval $ac_var=\$ac_old_val
2841 fi
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2843 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2845 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2846 fi;;
2847 esac
2848 # Pass precious variables to config.status.
2849 if test "$ac_new_set" = set; then
2850 case $ac_new_val in
2851 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2852 *) ac_arg=$ac_var=$ac_new_val ;;
2853 esac
2854 case " $ac_configure_args " in
2855 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2856 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2857 esac
2858 fi
2859 done
2860 if $ac_cache_corrupted; then
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2862 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2864 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2865 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2866 and start over" "$LINENO" 5
2867 fi
2868 ## -------------------- ##
2869 ## Main body of script. ##
2870 ## -------------------- ##
2871
2872 ac_ext=c
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877
2878
2879
2880
2881
2882
2883
2884 PTEXENCVERSION=1.5.2
2885
2886
2887 PTEXENC_LT_VERSINFO=6:2:5
2888
2889
2890 am__api_version='1.18'
2891
2892
2893
2894 # Find a good install program. We prefer a C program (faster),
2895 # so one script is as good as another. But avoid the broken or
2896 # incompatible versions:
2897 # SysV /etc/install, /usr/sbin/install
2898 # SunOS /usr/etc/install
2899 # IRIX /sbin/install
2900 # AIX /bin/install
2901 # AmigaOS /C/install, which installs bootblocks on floppy discs
2902 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2903 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2904 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2905 # OS/2's system install, which has a completely different semantic
2906 # ./install, which can be erroneously created by make from ./install.sh.
2907 # Reject install programs that cannot install multiple files.
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2909 printf %s "checking for a BSD-compatible install... " >&6; }
2910 if test -z "$INSTALL"; then
2911 if test ${ac_cv_path_install+y}
2912 then :
2913 printf %s "(cached) " >&6
2914 else case e in #(
2915 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2917 do
2918 IFS=$as_save_IFS
2919 case $as_dir in #(((
2920 '') as_dir=./ ;;
2921 */) ;;
2922 *) as_dir=$as_dir/ ;;
2923 esac
2924 # Account for fact that we put trailing slashes in our PATH walk.
2925 case $as_dir in #((
2926 ./ | /[cC]/* | \
2927 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2928 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2929 /usr/ucb/* ) ;;
2930 *)
2931 # OSF1 and SCO ODT 3.0 have their own names for install.
2932 # Don't use installbsd from OSF since it installs stuff as root
2933 # by default.
2934 for ac_prog in ginstall scoinst install; do
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2937 if test $ac_prog = install &&
2938 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2939 # AIX install. It has an incompatible calling convention.
2940 :
2941 elif test $ac_prog = install &&
2942 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2943 # program-specific install script used by HP pwplus--don't use.
2944 :
2945 else
2946 rm -rf conftest.one conftest.two conftest.dir
2947 echo one > conftest.one
2948 echo two > conftest.two
2949 mkdir conftest.dir
2950 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2951 test -s conftest.one && test -s conftest.two &&
2952 test -s conftest.dir/conftest.one &&
2953 test -s conftest.dir/conftest.two
2954 then
2955 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2956 break 3
2957 fi
2958 fi
2959 fi
2960 done
2961 done
2962 ;;
2963 esac
2964
2965 done
2966 IFS=$as_save_IFS
2967
2968 rm -rf conftest.one conftest.two conftest.dir
2969 ;;
2970 esac
2971 fi
2972 if test ${ac_cv_path_install+y}; then
2973 INSTALL=$ac_cv_path_install
2974 else
2975 # As a last resort, use the slow shell script. Don't cache a
2976 # value for INSTALL within a source directory, because that will
2977 # break other packages using the cache if that directory is
2978 # removed, or if the value is a relative name.
2979 INSTALL=$ac_install_sh
2980 fi
2981 fi
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2983 printf "%s\n" "$INSTALL" >&6; }
2984
2985 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2986 # It thinks the first close brace ends the variable substitution.
2987 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2988
2989 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2990
2991 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2992
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2994 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2995 if test ${am_cv_sleep_fractional_seconds+y}
2996 then :
2997 printf %s "(cached) " >&6
2998 else case e in #(
2999 e) if sleep 0.001 2>/dev/null
3000 then :
3001 am_cv_sleep_fractional_seconds=yes
3002 else case e in #(
3003 e) am_cv_sleep_fractional_seconds=no ;;
3004 esac
3005 fi
3006 ;;
3007 esac
3008 fi
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3010 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3011
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3013 printf %s "checking filesystem timestamp resolution... " >&6; }
3014 if test ${am_cv_filesystem_timestamp_resolution+y}
3015 then :
3016 printf %s "(cached) " >&6
3017 else case e in #(
3018 e) # Default to the worst case.
3019 am_cv_filesystem_timestamp_resolution=2
3020
3021 # Only try to go finer than 1 sec if sleep can do it.
3022 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3023 # - 1 sec is not much of a win compared to 2 sec, and
3024 # - it takes 2 seconds to perform the test whether 1 sec works.
3025 #
3026 # Instead, just use the default 2s on platforms that have 1s resolution,
3027 # accept the extra 1s delay when using $sleep in the Automake tests, in
3028 # exchange for not incurring the 2s delay for running the test for all
3029 # packages.
3030 #
3031 am_try_resolutions=
3032 if test "$am_cv_sleep_fractional_seconds" = yes; then
3033 # Even a millisecond often causes a bunch of false positives,
3034 # so just try a hundredth of a second. The time saved between .001 and
3035 # .01 is not terribly consequential.
3036 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3037 fi
3038
3039 # In order to catch current-generation FAT out, we must *modify* files
3040 # that already exist; the *creation* timestamp is finer. Use names
3041 # that make ls -t sort them differently when they have equal
3042 # timestamps than when they have distinct timestamps, keeping
3043 # in mind that ls -t prints the *newest* file first.
3044 rm -f conftest.ts?
3045 : > conftest.ts1
3046 : > conftest.ts2
3047 : > conftest.ts3
3048
3049 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3050 # clobber the current shell's arguments. (Outer-level square brackets
3051 # are removed by m4; they're present so that m4 does not expand
3052 # <dollar><star>; be careful, easy to get confused.)
3053 if (
3054 set X `ls -t conftest.ts[12]` &&
3055 {
3056 test "$*" != "X conftest.ts1 conftest.ts2" ||
3057 test "$*" != "X conftest.ts2 conftest.ts1";
3058 }
3059 ); then :; else
3060 # If neither matched, then we have a broken ls. This can happen
3061 # if, for instance, CONFIG_SHELL is bash and it inherits a
3062 # broken ls alias from the environment. This has actually
3063 # happened. Such a system could not be considered "sane".
3064 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3065 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3066 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3067 as_fn_error $? "ls -t produces unexpected output.
3068 Make sure there is not a broken ls alias in your environment.
3069 See 'config.log' for more details" "$LINENO" 5; }
3070 fi
3071
3072 for am_try_res in $am_try_resolutions; do
3073 # Any one fine-grained sleep might happen to cross the boundary
3074 # between two values of a coarser actual resolution, but if we do
3075 # two fine-grained sleeps in a row, at least one of them will fall
3076 # entirely within a coarse interval.
3077 echo alpha > conftest.ts1
3078 sleep $am_try_res
3079 echo beta > conftest.ts2
3080 sleep $am_try_res
3081 echo gamma > conftest.ts3
3082
3083 # We assume that 'ls -t' will make use of high-resolution
3084 # timestamps if the operating system supports them at all.
3085 if (set X `ls -t conftest.ts?` &&
3086 test "$2" = conftest.ts3 &&
3087 test "$3" = conftest.ts2 &&
3088 test "$4" = conftest.ts1); then
3089 #
3090 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3091 # because we don't need to test make.
3092 make_ok=true
3093 if test $am_try_res != 1; then
3094 # But if we've succeeded so far with a subsecond resolution, we
3095 # have one more thing to check: make. It can happen that
3096 # everything else supports the subsecond mtimes, but make doesn't;
3097 # notably on macOS, which ships make 3.81 from 2006 (the last one
3098 # released under GPLv2). https://bugs.gnu.org/68808
3099 #
3100 # We test $MAKE if it is defined in the environment, else "make".
3101 # It might get overridden later, but our hope is that in practice
3102 # it does not matter: it is the system "make" which is (by far)
3103 # the most likely to be broken, whereas if the user overrides it,
3104 # probably they did so with a better, or at least not worse, make.
3105 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3106 #
3107 # Create a Makefile (real tab character here):
3108 rm -f conftest.mk
3109 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3110 echo ' touch conftest.ts2' >>conftest.mk
3111 #
3112 # Now, running
3113 # touch conftest.ts1; touch conftest.ts2; make
3114 # should touch ts1 because ts2 is newer. This could happen by luck,
3115 # but most often, it will fail if make's support is insufficient. So
3116 # test for several consecutive successes.
3117 #
3118 # (We reuse conftest.ts[12] because we still want to modify existing
3119 # files, not create new ones, per above.)
3120 n=0
3121 make=${MAKE-make}
3122 until test $n -eq 3; do
3123 echo one > conftest.ts1
3124 sleep $am_try_res
3125 echo two > conftest.ts2 # ts2 should now be newer than ts1
3126 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3127 make_ok=false
3128 break # out of $n loop
3129 fi
3130 n=`expr $n + 1`
3131 done
3132 fi
3133 #
3134 if $make_ok; then
3135 # Everything we know to check worked out, so call this resolution good.
3136 am_cv_filesystem_timestamp_resolution=$am_try_res
3137 break # out of $am_try_res loop
3138 fi
3139 # Otherwise, we'll go on to check the next resolution.
3140 fi
3141 done
3142 rm -f conftest.ts?
3143 # (end _am_filesystem_timestamp_resolution)
3144 ;;
3145 esac
3146 fi
3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3148 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3149
3150 # This check should not be cached, as it may vary across builds of
3151 # different projects.
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3153 printf %s "checking whether build environment is sane... " >&6; }
3154 # Reject unsafe characters in $srcdir or the absolute working directory
3155 # name. Accept space and tab only in the latter.
3156 am_lf='
3157 '
3158 case `pwd` in
3159 *[\\\"\#\$\&\'\`$am_lf]*)
3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 printf "%s\n" "no" >&6; }
3162 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3163 esac
3164 case $srcdir in
3165 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 printf "%s\n" "no" >&6; }
3168 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3169 esac
3170
3171 # Do 'set' in a subshell so we don't clobber the current shell's
3172 # arguments. Must try -L first in case configure is actually a
3173 # symlink; some systems play weird games with the mod time of symlinks
3174 # (eg FreeBSD returns the mod time of the symlink's containing
3175 # directory).
3176 am_build_env_is_sane=no
3177 am_has_slept=no
3178 rm -f conftest.file
3179 for am_try in 1 2; do
3180 echo "timestamp, slept: $am_has_slept" > conftest.file
3181 if (
3182 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3183 if test "$*" = "X"; then
3184 # -L didn't work.
3185 set X `ls -t "$srcdir/configure" conftest.file`
3186 fi
3187 test "$2" = conftest.file
3188 ); then
3189 am_build_env_is_sane=yes
3190 break
3191 fi
3192 # Just in case.
3193 sleep "$am_cv_filesystem_timestamp_resolution"
3194 am_has_slept=yes
3195 done
3196
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3198 printf "%s\n" "$am_build_env_is_sane" >&6; }
3199 if test "$am_build_env_is_sane" = no; then
3200 as_fn_error $? "newly created file is older than distributed files!
3201 Check your system clock" "$LINENO" 5
3202 fi
3203
3204 # If we didn't sleep, we still need to ensure time stamps of config.status and
3205 # generated files are strictly newer.
3206 am_sleep_pid=
3207 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3208 then :
3209
3210 else case e in #(
3211 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3212 am_sleep_pid=$!
3213 ;;
3214 esac
3215 fi
3216
3217 rm -f conftest.file
3218
3219 test "$program_prefix" != NONE &&
3220 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3221 # Use a double $ so make ignores it.
3222 test "$program_suffix" != NONE &&
3223 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3224 # Double any \ or $.
3225 # By default was 's,x,x', remove it if useless.
3226 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3227 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3228
3229
3230 # Expand $ac_aux_dir to an absolute path.
3231 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3232
3233
3234 if test x"${MISSING+set}" != xset; then
3235 MISSING="\${SHELL} '$am_aux_dir/missing'"
3236 fi
3237 # Use eval to expand $SHELL
3238 if eval "$MISSING --is-lightweight"; then
3239 am_missing_run="$MISSING "
3240 else
3241 am_missing_run=
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3243 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3244 fi
3245
3246 if test x"${install_sh+set}" != xset; then
3247 case $am_aux_dir in
3248 *\ * | *\ *)
3249 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3250 *)
3251 install_sh="\${SHELL} $am_aux_dir/install-sh"
3252 esac
3253 fi
3254
3255 # Installed binaries are usually stripped using 'strip' when the user
3256 # run "make install-strip". However 'strip' might not be the right
3257 # tool to use in cross-compilation environments, therefore Automake
3258 # will honor the 'STRIP' environment variable to overrule this program.
3259 if test "$cross_compiling" != no; then
3260 if test -n "$ac_tool_prefix"; then
3261 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3262 set dummy ${ac_tool_prefix}strip; ac_word=$2
3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 printf %s "checking for $ac_word... " >&6; }
3265 if test ${ac_cv_prog_STRIP+y}
3266 then :
3267 printf %s "(cached) " >&6
3268 else case e in #(
3269 e) if test -n "$STRIP"; then
3270 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275 IFS=$as_save_IFS
3276 case $as_dir in #(((
3277 '') as_dir=./ ;;
3278 */) ;;
3279 *) as_dir=$as_dir/ ;;
3280 esac
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287 done
3288 done
3289 IFS=$as_save_IFS
3290
3291 fi ;;
3292 esac
3293 fi
3294 STRIP=$ac_cv_prog_STRIP
3295 if test -n "$STRIP"; then
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3297 printf "%s\n" "$STRIP" >&6; }
3298 else
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 printf "%s\n" "no" >&6; }
3301 fi
3302
3303
3304 fi
3305 if test -z "$ac_cv_prog_STRIP"; then
3306 ac_ct_STRIP=$STRIP
3307 # Extract the first word of "strip", so it can be a program name with args.
3308 set dummy strip; ac_word=$2
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 printf %s "checking for $ac_word... " >&6; }
3311 if test ${ac_cv_prog_ac_ct_STRIP+y}
3312 then :
3313 printf %s "(cached) " >&6
3314 else case e in #(
3315 e) if test -n "$ac_ct_STRIP"; then
3316 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321 IFS=$as_save_IFS
3322 case $as_dir in #(((
3323 '') as_dir=./ ;;
3324 */) ;;
3325 *) as_dir=$as_dir/ ;;
3326 esac
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_ac_ct_STRIP="strip"
3330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3331 break 2
3332 fi
3333 done
3334 done
3335 IFS=$as_save_IFS
3336
3337 fi ;;
3338 esac
3339 fi
3340 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3341 if test -n "$ac_ct_STRIP"; then
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3343 printf "%s\n" "$ac_ct_STRIP" >&6; }
3344 else
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 printf "%s\n" "no" >&6; }
3347 fi
3348
3349 if test "x$ac_ct_STRIP" = x; then
3350 STRIP=":"
3351 else
3352 case $cross_compiling:$ac_tool_warned in
3353 yes:)
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3355 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3356 ac_tool_warned=yes ;;
3357 esac
3358 STRIP=$ac_ct_STRIP
3359 fi
3360 else
3361 STRIP="$ac_cv_prog_STRIP"
3362 fi
3363
3364 fi
3365 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3366
3367
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3369 printf %s "checking for a race-free mkdir -p... " >&6; }
3370 if test -z "$MKDIR_P"; then
3371 if test ${ac_cv_path_mkdir+y}
3372 then :
3373 printf %s "(cached) " >&6
3374 else case e in #(
3375 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3377 do
3378 IFS=$as_save_IFS
3379 case $as_dir in #(((
3380 '') as_dir=./ ;;
3381 */) ;;
3382 *) as_dir=$as_dir/ ;;
3383 esac
3384 for ac_prog in mkdir gmkdir; do
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3387 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3388 'mkdir ('*'coreutils) '* | \
3389 *'BusyBox '* | \
3390 'mkdir (fileutils) '4.1*)
3391 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3392 break 3;;
3393 esac
3394 done
3395 done
3396 done
3397 IFS=$as_save_IFS
3398 ;;
3399 esac
3400 fi
3401
3402 test -d ./--version && rmdir ./--version
3403 if test ${ac_cv_path_mkdir+y}; then
3404 MKDIR_P="$ac_cv_path_mkdir -p"
3405 else
3406 # As a last resort, use plain mkdir -p,
3407 # in the hope it doesn't have the bugs of ancient mkdir.
3408 MKDIR_P='mkdir -p'
3409 fi
3410 fi
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3412 printf "%s\n" "$MKDIR_P" >&6; }
3413
3414 for ac_prog in gawk mawk nawk awk
3415 do
3416 # Extract the first word of "$ac_prog", so it can be a program name with args.
3417 set dummy $ac_prog; ac_word=$2
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 printf %s "checking for $ac_word... " >&6; }
3420 if test ${ac_cv_prog_AWK+y}
3421 then :
3422 printf %s "(cached) " >&6
3423 else case e in #(
3424 e) if test -n "$AWK"; then
3425 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430 IFS=$as_save_IFS
3431 case $as_dir in #(((
3432 '') as_dir=./ ;;
3433 */) ;;
3434 *) as_dir=$as_dir/ ;;
3435 esac
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_AWK="$ac_prog"
3439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3440 break 2
3441 fi
3442 done
3443 done
3444 IFS=$as_save_IFS
3445
3446 fi ;;
3447 esac
3448 fi
3449 AWK=$ac_cv_prog_AWK
3450 if test -n "$AWK"; then
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3452 printf "%s\n" "$AWK" >&6; }
3453 else
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 printf "%s\n" "no" >&6; }
3456 fi
3457
3458
3459 test -n "$AWK" && break
3460 done
3461
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3463 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3464 set x ${MAKE-make}
3465 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3466 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3467 then :
3468 printf %s "(cached) " >&6
3469 else case e in #(
3470 e) cat >conftest.make <<\_ACEOF
3471 SHELL = /bin/sh
3472 all:
3473 @echo '@@@%%%=$(MAKE)=@@@%%%'
3474 _ACEOF
3475 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3476 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3477 *@@@%%%=?*=@@@%%%*)
3478 eval ac_cv_prog_make_${ac_make}_set=yes;;
3479 *)
3480 eval ac_cv_prog_make_${ac_make}_set=no;;
3481 esac
3482 rm -f conftest.make ;;
3483 esac
3484 fi
3485 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3487 printf "%s\n" "yes" >&6; }
3488 SET_MAKE=
3489 else
3490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 printf "%s\n" "no" >&6; }
3492 SET_MAKE="MAKE=${MAKE-make}"
3493 fi
3494
3495 rm -rf .tst 2>/dev/null
3496 mkdir .tst 2>/dev/null
3497 if test -d .tst; then
3498 am__leading_dot=.
3499 else
3500 am__leading_dot=_
3501 fi
3502 rmdir .tst 2>/dev/null
3503
3504 AM_DEFAULT_VERBOSITY=1
3505 # Check whether --enable-silent-rules was given.
3506 if test ${enable_silent_rules+y}
3507 then :
3508 enableval=$enable_silent_rules;
3509 fi
3510
3511 am_make=${MAKE-make}
3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3513 printf %s "checking whether $am_make supports nested variables... " >&6; }
3514 if test ${am_cv_make_support_nested_variables+y}
3515 then :
3516 printf %s "(cached) " >&6
3517 else case e in #(
3518 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3519 BAR0=false
3520 BAR1=true
3521 V=1
3522 am__doit:
3523 @$(TRUE)
3524 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3525 am_cv_make_support_nested_variables=yes
3526 else
3527 am_cv_make_support_nested_variables=no
3528 fi ;;
3529 esac
3530 fi
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3532 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3533 AM_BACKSLASH='\'
3534
3535 am__rm_f_notfound=
3536 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3537 then :
3538
3539 else case e in #(
3540 e) am__rm_f_notfound='""' ;;
3541 esac
3542 fi
3543
3544
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3546 printf %s "checking xargs -n works... " >&6; }
3547 if test ${am_cv_xargs_n_works+y}
3548 then :
3549 printf %s "(cached) " >&6
3550 else case e in #(
3551 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3552 3"
3553 then :
3554 am_cv_xargs_n_works=yes
3555 else case e in #(
3556 e) am_cv_xargs_n_works=no ;;
3557 esac
3558 fi ;;
3559 esac
3560 fi
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3562 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3563 if test "$am_cv_xargs_n_works" = yes
3564 then :
3565 am__xargs_n='xargs -n'
3566 else case e in #(
3567 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3568 ;;
3569 esac
3570 fi
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581 DEPDIR="${am__leading_dot}deps"
3582
3583 ac_config_commands="$ac_config_commands depfiles"
3584
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3586 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3587 cat > confinc.mk << 'END'
3588 am__doit:
3589 @echo this is the am__doit target >confinc.out
3590 .PHONY: am__doit
3591 END
3592 am__include="#"
3593 am__quote=
3594 # BSD make does it like this.
3595 echo '.include "confinc.mk" # ignored' > confmf.BSD
3596 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3597 echo 'include confinc.mk # ignored' > confmf.GNU
3598 _am_result=no
3599 for s in GNU BSD; do
3600 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3601 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }
3605 case $?:`cat confinc.out 2>/dev/null` in #(
3606 '0:this is the am__doit target') :
3607 case $s in #(
3608 BSD) :
3609 am__include='.include' am__quote='"' ;; #(
3610 *) :
3611 am__include='include' am__quote='' ;;
3612 esac ;; #(
3613 *) :
3614 ;;
3615 esac
3616 if test "$am__include" != "#"; then
3617 _am_result="yes ($s style)"
3618 break
3619 fi
3620 done
3621 rm -f confinc.* confmf.*
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3623 printf "%s\n" "${_am_result}" >&6; }
3624
3625 # Check whether --enable-dependency-tracking was given.
3626 if test ${enable_dependency_tracking+y}
3627 then :
3628 enableval=$enable_dependency_tracking;
3629 fi
3630
3631 if test "x$enable_dependency_tracking" != xno; then
3632 am_depcomp="$ac_aux_dir/depcomp"
3633 AMDEPBACKSLASH='\'
3634 am__nodep='_no'
3635 fi
3636 if test "x$enable_dependency_tracking" != xno; then
3637 AMDEP_TRUE=
3638 AMDEP_FALSE='#'
3639 else
3640 AMDEP_TRUE='#'
3641 AMDEP_FALSE=
3642 fi
3643
3644
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 if test -n "$ac_tool_prefix"; then
3651 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3652 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 printf %s "checking for $ac_word... " >&6; }
3655 if test ${ac_cv_prog_CC+y}
3656 then :
3657 printf %s "(cached) " >&6
3658 else case e in #(
3659 e) if test -n "$CC"; then
3660 ac_cv_prog_CC="$CC" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665 IFS=$as_save_IFS
3666 case $as_dir in #(((
3667 '') as_dir=./ ;;
3668 */) ;;
3669 *) as_dir=$as_dir/ ;;
3670 esac
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3673 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677 done
3678 done
3679 IFS=$as_save_IFS
3680
3681 fi ;;
3682 esac
3683 fi
3684 CC=$ac_cv_prog_CC
3685 if test -n "$CC"; then
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687 printf "%s\n" "$CC" >&6; }
3688 else
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 printf "%s\n" "no" >&6; }
3691 fi
3692
3693
3694 fi
3695 if test -z "$ac_cv_prog_CC"; then
3696 ac_ct_CC=$CC
3697 # Extract the first word of "gcc", so it can be a program name with args.
3698 set dummy gcc; ac_word=$2
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 printf %s "checking for $ac_word... " >&6; }
3701 if test ${ac_cv_prog_ac_ct_CC+y}
3702 then :
3703 printf %s "(cached) " >&6
3704 else case e in #(
3705 e) if test -n "$ac_ct_CC"; then
3706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3710 do
3711 IFS=$as_save_IFS
3712 case $as_dir in #(((
3713 '') as_dir=./ ;;
3714 */) ;;
3715 *) as_dir=$as_dir/ ;;
3716 esac
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3719 ac_cv_prog_ac_ct_CC="gcc"
3720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3721 break 2
3722 fi
3723 done
3724 done
3725 IFS=$as_save_IFS
3726
3727 fi ;;
3728 esac
3729 fi
3730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3731 if test -n "$ac_ct_CC"; then
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3733 printf "%s\n" "$ac_ct_CC" >&6; }
3734 else
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 printf "%s\n" "no" >&6; }
3737 fi
3738
3739 if test "x$ac_ct_CC" = x; then
3740 CC=""
3741 else
3742 case $cross_compiling:$ac_tool_warned in
3743 yes:)
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3745 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3746 ac_tool_warned=yes ;;
3747 esac
3748 CC=$ac_ct_CC
3749 fi
3750 else
3751 CC="$ac_cv_prog_CC"
3752 fi
3753
3754 if test -z "$CC"; then
3755 if test -n "$ac_tool_prefix"; then
3756 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}cc; ac_word=$2
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 printf %s "checking for $ac_word... " >&6; }
3760 if test ${ac_cv_prog_CC+y}
3761 then :
3762 printf %s "(cached) " >&6
3763 else case e in #(
3764 e) if test -n "$CC"; then
3765 ac_cv_prog_CC="$CC" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770 IFS=$as_save_IFS
3771 case $as_dir in #(((
3772 '') as_dir=./ ;;
3773 */) ;;
3774 *) as_dir=$as_dir/ ;;
3775 esac
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_CC="${ac_tool_prefix}cc"
3779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782 done
3783 done
3784 IFS=$as_save_IFS
3785
3786 fi ;;
3787 esac
3788 fi
3789 CC=$ac_cv_prog_CC
3790 if test -n "$CC"; then
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3792 printf "%s\n" "$CC" >&6; }
3793 else
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 printf "%s\n" "no" >&6; }
3796 fi
3797
3798
3799 fi
3800 fi
3801 if test -z "$CC"; then
3802 # Extract the first word of "cc", so it can be a program name with args.
3803 set dummy cc; ac_word=$2
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 printf %s "checking for $ac_word... " >&6; }
3806 if test ${ac_cv_prog_CC+y}
3807 then :
3808 printf %s "(cached) " >&6
3809 else case e in #(
3810 e) if test -n "$CC"; then
3811 ac_cv_prog_CC="$CC" # Let the user override the test.
3812 else
3813 ac_prog_rejected=no
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3816 do
3817 IFS=$as_save_IFS
3818 case $as_dir in #(((
3819 '') as_dir=./ ;;
3820 */) ;;
3821 *) as_dir=$as_dir/ ;;
3822 esac
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3825 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3826 ac_prog_rejected=yes
3827 continue
3828 fi
3829 ac_cv_prog_CC="cc"
3830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3831 break 2
3832 fi
3833 done
3834 done
3835 IFS=$as_save_IFS
3836
3837 if test $ac_prog_rejected = yes; then
3838 # We found a bogon in the path, so make sure we never use it.
3839 set dummy $ac_cv_prog_CC
3840 shift
3841 if test $# != 0; then
3842 # We chose a different compiler from the bogus one.
3843 # However, it has the same basename, so the bogon will be chosen
3844 # first if we set CC to just the basename; use the full file name.
3845 shift
3846 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3847 fi
3848 fi
3849 fi ;;
3850 esac
3851 fi
3852 CC=$ac_cv_prog_CC
3853 if test -n "$CC"; then
3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3855 printf "%s\n" "$CC" >&6; }
3856 else
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 printf "%s\n" "no" >&6; }
3859 fi
3860
3861
3862 fi
3863 if test -z "$CC"; then
3864 if test -n "$ac_tool_prefix"; then
3865 for ac_prog in cl.exe
3866 do
3867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 printf %s "checking for $ac_word... " >&6; }
3871 if test ${ac_cv_prog_CC+y}
3872 then :
3873 printf %s "(cached) " >&6
3874 else case e in #(
3875 e) if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3880 do
3881 IFS=$as_save_IFS
3882 case $as_dir in #(((
3883 '') as_dir=./ ;;
3884 */) ;;
3885 *) as_dir=$as_dir/ ;;
3886 esac
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3891 break 2
3892 fi
3893 done
3894 done
3895 IFS=$as_save_IFS
3896
3897 fi ;;
3898 esac
3899 fi
3900 CC=$ac_cv_prog_CC
3901 if test -n "$CC"; then
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3903 printf "%s\n" "$CC" >&6; }
3904 else
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 printf "%s\n" "no" >&6; }
3907 fi
3908
3909
3910 test -n "$CC" && break
3911 done
3912 fi
3913 if test -z "$CC"; then
3914 ac_ct_CC=$CC
3915 for ac_prog in cl.exe
3916 do
3917 # Extract the first word of "$ac_prog", so it can be a program name with args.
3918 set dummy $ac_prog; ac_word=$2
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 printf %s "checking for $ac_word... " >&6; }
3921 if test ${ac_cv_prog_ac_ct_CC+y}
3922 then :
3923 printf %s "(cached) " >&6
3924 else case e in #(
3925 e) if test -n "$ac_ct_CC"; then
3926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931 IFS=$as_save_IFS
3932 case $as_dir in #(((
3933 '') as_dir=./ ;;
3934 */) ;;
3935 *) as_dir=$as_dir/ ;;
3936 esac
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_ac_ct_CC="$ac_prog"
3940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943 done
3944 done
3945 IFS=$as_save_IFS
3946
3947 fi ;;
3948 esac
3949 fi
3950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3951 if test -n "$ac_ct_CC"; then
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3953 printf "%s\n" "$ac_ct_CC" >&6; }
3954 else
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 printf "%s\n" "no" >&6; }
3957 fi
3958
3959
3960 test -n "$ac_ct_CC" && break
3961 done
3962
3963 if test "x$ac_ct_CC" = x; then
3964 CC=""
3965 else
3966 case $cross_compiling:$ac_tool_warned in
3967 yes:)
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3969 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3970 ac_tool_warned=yes ;;
3971 esac
3972 CC=$ac_ct_CC
3973 fi
3974 fi
3975
3976 fi
3977 if test -z "$CC"; then
3978 if test -n "$ac_tool_prefix"; then
3979 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3980 set dummy ${ac_tool_prefix}clang; ac_word=$2
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 printf %s "checking for $ac_word... " >&6; }
3983 if test ${ac_cv_prog_CC+y}
3984 then :
3985 printf %s "(cached) " >&6
3986 else case e in #(
3987 e) if test -n "$CC"; then
3988 ac_cv_prog_CC="$CC" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993 IFS=$as_save_IFS
3994 case $as_dir in #(((
3995 '') as_dir=./ ;;
3996 */) ;;
3997 *) as_dir=$as_dir/ ;;
3998 esac
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4001 ac_cv_prog_CC="${ac_tool_prefix}clang"
4002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4003 break 2
4004 fi
4005 done
4006 done
4007 IFS=$as_save_IFS
4008
4009 fi ;;
4010 esac
4011 fi
4012 CC=$ac_cv_prog_CC
4013 if test -n "$CC"; then
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4015 printf "%s\n" "$CC" >&6; }
4016 else
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 printf "%s\n" "no" >&6; }
4019 fi
4020
4021
4022 fi
4023 if test -z "$ac_cv_prog_CC"; then
4024 ac_ct_CC=$CC
4025 # Extract the first word of "clang", so it can be a program name with args.
4026 set dummy clang; ac_word=$2
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 printf %s "checking for $ac_word... " >&6; }
4029 if test ${ac_cv_prog_ac_ct_CC+y}
4030 then :
4031 printf %s "(cached) " >&6
4032 else case e in #(
4033 e) if test -n "$ac_ct_CC"; then
4034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039 IFS=$as_save_IFS
4040 case $as_dir in #(((
4041 '') as_dir=./ ;;
4042 */) ;;
4043 *) as_dir=$as_dir/ ;;
4044 esac
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4047 ac_cv_prog_ac_ct_CC="clang"
4048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4049 break 2
4050 fi
4051 done
4052 done
4053 IFS=$as_save_IFS
4054
4055 fi ;;
4056 esac
4057 fi
4058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4059 if test -n "$ac_ct_CC"; then
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4061 printf "%s\n" "$ac_ct_CC" >&6; }
4062 else
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 printf "%s\n" "no" >&6; }
4065 fi
4066
4067 if test "x$ac_ct_CC" = x; then
4068 CC=""
4069 else
4070 case $cross_compiling:$ac_tool_warned in
4071 yes:)
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4073 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4074 ac_tool_warned=yes ;;
4075 esac
4076 CC=$ac_ct_CC
4077 fi
4078 else
4079 CC="$ac_cv_prog_CC"
4080 fi
4081
4082 fi
4083
4084
4085 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4086 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4087 as_fn_error $? "no acceptable C compiler found in \$PATH
4088 See 'config.log' for more details" "$LINENO" 5; }
4089
4090 # Provide some information about the compiler.
4091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4092 set X $ac_compile
4093 ac_compiler=$2
4094 for ac_option in --version -v -V -qversion -version; do
4095 { { ac_try="$ac_compiler $ac_option >&5"
4096 case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 printf "%s\n" "$ac_try_echo"; } >&5
4102 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4103 ac_status=$?
4104 if test -s conftest.err; then
4105 sed '10a\
4106 ... rest of stderr output deleted ...
4107 10q' conftest.err >conftest.er1
4108 cat conftest.er1 >&5
4109 fi
4110 rm -f conftest.er1 conftest.err
4111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }
4113 done
4114
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117
4118 int
4119 main (void)
4120 {
4121
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 ac_clean_files_save=$ac_clean_files
4127 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4128 # Try to create an executable without -o first, disregard a.out.
4129 # It will help us diagnose broken compilers, and finding out an intuition
4130 # of exeext.
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4132 printf %s "checking whether the C compiler works... " >&6; }
4133 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4134
4135 # The possible output files:
4136 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4137
4138 ac_rmfiles=
4139 for ac_file in $ac_files
4140 do
4141 case $ac_file in
4142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4143 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4144 esac
4145 done
4146 rm -f $ac_rmfiles
4147
4148 if { { ac_try="$ac_link_default"
4149 case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152 esac
4153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4154 printf "%s\n" "$ac_try_echo"; } >&5
4155 (eval "$ac_link_default") 2>&5
4156 ac_status=$?
4157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4158 test $ac_status = 0; }
4159 then :
4160 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4161 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4162 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4163 # so that the user can short-circuit this test for compilers unknown to
4164 # Autoconf.
4165 for ac_file in $ac_files ''
4166 do
4167 test -f "$ac_file" || continue
4168 case $ac_file in
4169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4170 ;;
4171 [ab].out )
4172 # We found the default executable, but exeext='' is most
4173 # certainly right.
4174 break;;
4175 *.* )
4176 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4177 then :; else
4178 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4179 fi
4180 # We set ac_cv_exeext here because the later test for it is not
4181 # safe: cross compilers may not add the suffix if given an '-o'
4182 # argument, so we may need to know it at that point already.
4183 # Even if this section looks crufty: it has the advantage of
4184 # actually working.
4185 break;;
4186 * )
4187 break;;
4188 esac
4189 done
4190 test "$ac_cv_exeext" = no && ac_cv_exeext=
4191
4192 else case e in #(
4193 e) ac_file='' ;;
4194 esac
4195 fi
4196 if test -z "$ac_file"
4197 then :
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 printf "%s\n" "no" >&6; }
4200 printf "%s\n" "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4204 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4205 as_fn_error 77 "C compiler cannot create executables
4206 See 'config.log' for more details" "$LINENO" 5; }
4207 else case e in #(
4208 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4209 printf "%s\n" "yes" >&6; } ;;
4210 esac
4211 fi
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4213 printf %s "checking for C compiler default output file name... " >&6; }
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4215 printf "%s\n" "$ac_file" >&6; }
4216 ac_exeext=$ac_cv_exeext
4217
4218 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4219 ac_clean_files=$ac_clean_files_save
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4221 printf %s "checking for suffix of executables... " >&6; }
4222 if { { ac_try="$ac_link"
4223 case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226 esac
4227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4228 printf "%s\n" "$ac_try_echo"; } >&5
4229 (eval "$ac_link") 2>&5
4230 ac_status=$?
4231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4232 test $ac_status = 0; }
4233 then :
4234 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4235 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4236 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4237 # 'rm'.
4238 for ac_file in conftest.exe conftest conftest.*; do
4239 test -f "$ac_file" || continue
4240 case $ac_file in
4241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4242 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4243 break;;
4244 * ) break;;
4245 esac
4246 done
4247 else case e in #(
4248 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4249 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4250 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4251 See 'config.log' for more details" "$LINENO" 5; } ;;
4252 esac
4253 fi
4254 rm -f conftest conftest$ac_cv_exeext
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4256 printf "%s\n" "$ac_cv_exeext" >&6; }
4257
4258 rm -f conftest.$ac_ext
4259 EXEEXT=$ac_cv_exeext
4260 ac_exeext=$EXEEXT
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263 #include <stdio.h>
4264 int
4265 main (void)
4266 {
4267 FILE *f = fopen ("conftest.out", "w");
4268 if (!f)
4269 return 1;
4270 return ferror (f) || fclose (f) != 0;
4271
4272 ;
4273 return 0;
4274 }
4275 _ACEOF
4276 ac_clean_files="$ac_clean_files conftest.out"
4277 # Check that the compiler produces executables we can run. If not, either
4278 # the compiler is broken, or we cross compile.
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4280 printf %s "checking whether we are cross compiling... " >&6; }
4281 if test "$cross_compiling" != yes; then
4282 { { ac_try="$ac_link"
4283 case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286 esac
4287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4288 printf "%s\n" "$ac_try_echo"; } >&5
4289 (eval "$ac_link") 2>&5
4290 ac_status=$?
4291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4292 test $ac_status = 0; }
4293 if { ac_try='./conftest$ac_cv_exeext'
4294 { { case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 printf "%s\n" "$ac_try_echo"; } >&5
4300 (eval "$ac_try") 2>&5
4301 ac_status=$?
4302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303 test $ac_status = 0; }; }; then
4304 cross_compiling=no
4305 else
4306 if test "$cross_compiling" = maybe; then
4307 cross_compiling=yes
4308 else
4309 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4310 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4311 as_fn_error 77 "cannot run C compiled programs.
4312 If you meant to cross compile, use '--host'.
4313 See 'config.log' for more details" "$LINENO" 5; }
4314 fi
4315 fi
4316 fi
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4318 printf "%s\n" "$cross_compiling" >&6; }
4319
4320 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4321 conftest.o conftest.obj conftest.out
4322 ac_clean_files=$ac_clean_files_save
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4324 printf %s "checking for suffix of object files... " >&6; }
4325 if test ${ac_cv_objext+y}
4326 then :
4327 printf %s "(cached) " >&6
4328 else case e in #(
4329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4331
4332 int
4333 main (void)
4334 {
4335
4336 ;
4337 return 0;
4338 }
4339 _ACEOF
4340 rm -f conftest.o conftest.obj
4341 if { { ac_try="$ac_compile"
4342 case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345 esac
4346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347 printf "%s\n" "$ac_try_echo"; } >&5
4348 (eval "$ac_compile") 2>&5
4349 ac_status=$?
4350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; }
4352 then :
4353 for ac_file in conftest.o conftest.obj conftest.*; do
4354 test -f "$ac_file" || continue;
4355 case $ac_file in
4356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4357 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4358 break;;
4359 esac
4360 done
4361 else case e in #(
4362 e) printf "%s\n" "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4366 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4367 as_fn_error $? "cannot compute suffix of object files: cannot compile
4368 See 'config.log' for more details" "$LINENO" 5; } ;;
4369 esac
4370 fi
4371 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4372 esac
4373 fi
4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4375 printf "%s\n" "$ac_cv_objext" >&6; }
4376 OBJEXT=$ac_cv_objext
4377 ac_objext=$OBJEXT
4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4379 printf %s "checking whether the compiler supports GNU C... " >&6; }
4380 if test ${ac_cv_c_compiler_gnu+y}
4381 then :
4382 printf %s "(cached) " >&6
4383 else case e in #(
4384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386
4387 int
4388 main (void)
4389 {
4390 #ifndef __GNUC__
4391 choke me
4392 #endif
4393
4394 ;
4395 return 0;
4396 }
4397 _ACEOF
4398 if ac_fn_c_try_compile "$LINENO"
4399 then :
4400 ac_compiler_gnu=yes
4401 else case e in #(
4402 e) ac_compiler_gnu=no ;;
4403 esac
4404 fi
4405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4407 ;;
4408 esac
4409 fi
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4411 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4413
4414 if test $ac_compiler_gnu = yes; then
4415 GCC=yes
4416 else
4417 GCC=
4418 fi
4419 ac_test_CFLAGS=${CFLAGS+y}
4420 ac_save_CFLAGS=$CFLAGS
4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4422 printf %s "checking whether $CC accepts -g... " >&6; }
4423 if test ${ac_cv_prog_cc_g+y}
4424 then :
4425 printf %s "(cached) " >&6
4426 else case e in #(
4427 e) ac_save_c_werror_flag=$ac_c_werror_flag
4428 ac_c_werror_flag=yes
4429 ac_cv_prog_cc_g=no
4430 CFLAGS="-g"
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433
4434 int
4435 main (void)
4436 {
4437
4438 ;
4439 return 0;
4440 }
4441 _ACEOF
4442 if ac_fn_c_try_compile "$LINENO"
4443 then :
4444 ac_cv_prog_cc_g=yes
4445 else case e in #(
4446 e) CFLAGS=""
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449
4450 int
4451 main (void)
4452 {
4453
4454 ;
4455 return 0;
4456 }
4457 _ACEOF
4458 if ac_fn_c_try_compile "$LINENO"
4459 then :
4460
4461 else case e in #(
4462 e) ac_c_werror_flag=$ac_save_c_werror_flag
4463 CFLAGS="-g"
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466
4467 int
4468 main (void)
4469 {
4470
4471 ;
4472 return 0;
4473 }
4474 _ACEOF
4475 if ac_fn_c_try_compile "$LINENO"
4476 then :
4477 ac_cv_prog_cc_g=yes
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4480 esac
4481 fi
4482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4483 esac
4484 fi
4485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4486 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4487 esac
4488 fi
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4490 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4491 if test $ac_test_CFLAGS; then
4492 CFLAGS=$ac_save_CFLAGS
4493 elif test $ac_cv_prog_cc_g = yes; then
4494 if test "$GCC" = yes; then
4495 CFLAGS="-g -O2"
4496 else
4497 CFLAGS="-g"
4498 fi
4499 else
4500 if test "$GCC" = yes; then
4501 CFLAGS="-O2"
4502 else
4503 CFLAGS=
4504 fi
4505 fi
4506 ac_prog_cc_stdc=no
4507 if test x$ac_prog_cc_stdc = xno
4508 then :
4509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4510 printf %s "checking for $CC option to enable C11 features... " >&6; }
4511 if test ${ac_cv_prog_cc_c11+y}
4512 then :
4513 printf %s "(cached) " >&6
4514 else case e in #(
4515 e) ac_cv_prog_cc_c11=no
4516 ac_save_CC=$CC
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 $ac_c_conftest_c11_program
4520 _ACEOF
4521 for ac_arg in '' -std=gnu11
4522 do
4523 CC="$ac_save_CC $ac_arg"
4524 if ac_fn_c_try_compile "$LINENO"
4525 then :
4526 ac_cv_prog_cc_c11=$ac_arg
4527 fi
4528 rm -f core conftest.err conftest.$ac_objext conftest.beam
4529 test "x$ac_cv_prog_cc_c11" != "xno" && break
4530 done
4531 rm -f conftest.$ac_ext
4532 CC=$ac_save_CC ;;
4533 esac
4534 fi
4535
4536 if test "x$ac_cv_prog_cc_c11" = xno
4537 then :
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4539 printf "%s\n" "unsupported" >&6; }
4540 else case e in #(
4541 e) if test "x$ac_cv_prog_cc_c11" = x
4542 then :
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4544 printf "%s\n" "none needed" >&6; }
4545 else case e in #(
4546 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4547 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4548 CC="$CC $ac_cv_prog_cc_c11" ;;
4549 esac
4550 fi
4551 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4552 ac_prog_cc_stdc=c11 ;;
4553 esac
4554 fi
4555 fi
4556 if test x$ac_prog_cc_stdc = xno
4557 then :
4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4559 printf %s "checking for $CC option to enable C99 features... " >&6; }
4560 if test ${ac_cv_prog_cc_c99+y}
4561 then :
4562 printf %s "(cached) " >&6
4563 else case e in #(
4564 e) ac_cv_prog_cc_c99=no
4565 ac_save_CC=$CC
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4568 $ac_c_conftest_c99_program
4569 _ACEOF
4570 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4571 do
4572 CC="$ac_save_CC $ac_arg"
4573 if ac_fn_c_try_compile "$LINENO"
4574 then :
4575 ac_cv_prog_cc_c99=$ac_arg
4576 fi
4577 rm -f core conftest.err conftest.$ac_objext conftest.beam
4578 test "x$ac_cv_prog_cc_c99" != "xno" && break
4579 done
4580 rm -f conftest.$ac_ext
4581 CC=$ac_save_CC ;;
4582 esac
4583 fi
4584
4585 if test "x$ac_cv_prog_cc_c99" = xno
4586 then :
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4588 printf "%s\n" "unsupported" >&6; }
4589 else case e in #(
4590 e) if test "x$ac_cv_prog_cc_c99" = x
4591 then :
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4593 printf "%s\n" "none needed" >&6; }
4594 else case e in #(
4595 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4596 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4597 CC="$CC $ac_cv_prog_cc_c99" ;;
4598 esac
4599 fi
4600 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4601 ac_prog_cc_stdc=c99 ;;
4602 esac
4603 fi
4604 fi
4605 if test x$ac_prog_cc_stdc = xno
4606 then :
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4608 printf %s "checking for $CC option to enable C89 features... " >&6; }
4609 if test ${ac_cv_prog_cc_c89+y}
4610 then :
4611 printf %s "(cached) " >&6
4612 else case e in #(
4613 e) ac_cv_prog_cc_c89=no
4614 ac_save_CC=$CC
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617 $ac_c_conftest_c89_program
4618 _ACEOF
4619 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4620 do
4621 CC="$ac_save_CC $ac_arg"
4622 if ac_fn_c_try_compile "$LINENO"
4623 then :
4624 ac_cv_prog_cc_c89=$ac_arg
4625 fi
4626 rm -f core conftest.err conftest.$ac_objext conftest.beam
4627 test "x$ac_cv_prog_cc_c89" != "xno" && break
4628 done
4629 rm -f conftest.$ac_ext
4630 CC=$ac_save_CC ;;
4631 esac
4632 fi
4633
4634 if test "x$ac_cv_prog_cc_c89" = xno
4635 then :
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4637 printf "%s\n" "unsupported" >&6; }
4638 else case e in #(
4639 e) if test "x$ac_cv_prog_cc_c89" = x
4640 then :
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4642 printf "%s\n" "none needed" >&6; }
4643 else case e in #(
4644 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4645 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4646 CC="$CC $ac_cv_prog_cc_c89" ;;
4647 esac
4648 fi
4649 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4650 ac_prog_cc_stdc=c89 ;;
4651 esac
4652 fi
4653 fi
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
4661
4662 ac_ext=c
4663 ac_cpp='$CPP $CPPFLAGS'
4664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4668 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4669 if test ${am_cv_prog_cc_c_o+y}
4670 then :
4671 printf %s "(cached) " >&6
4672 else case e in #(
4673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675
4676 int
4677 main (void)
4678 {
4679
4680 ;
4681 return 0;
4682 }
4683 _ACEOF
4684 # Make sure it works both with $CC and with simple cc.
4685 # Following AC_PROG_CC_C_O, we do the test twice because some
4686 # compilers refuse to overwrite an existing .o file with -o,
4687 # though they will create one.
4688 am_cv_prog_cc_c_o=yes
4689 for am_i in 1 2; do
4690 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4691 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } \
4695 && test -f conftest2.$ac_objext; then
4696 : OK
4697 else
4698 am_cv_prog_cc_c_o=no
4699 break
4700 fi
4701 done
4702 # aligned with autoconf, so not including core; see bug#72225.
4703 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4704 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4705 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4706 unset am_i ;;
4707 esac
4708 fi
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4710 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4711 if test "$am_cv_prog_cc_c_o" != yes; then
4712 # Losing compiler, so override with the script.
4713 # FIXME: It is wrong to rewrite CC.
4714 # But if we don't then we get into trouble of one sort or another.
4715 # A longer-term fix would be to have automake use am__CC in this case,
4716 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4717 CC="$am_aux_dir/compile $CC"
4718 fi
4719 ac_ext=c
4720 ac_cpp='$CPP $CPPFLAGS'
4721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4724
4725
4726 depcc="$CC" am_compiler_list=
4727
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4729 printf %s "checking dependency style of $depcc... " >&6; }
4730 if test ${am_cv_CC_dependencies_compiler_type+y}
4731 then :
4732 printf %s "(cached) " >&6
4733 else case e in #(
4734 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4735 # We make a subdir and do the tests there. Otherwise we can end up
4736 # making bogus files that we don't know about and never remove. For
4737 # instance it was reported that on HP-UX the gcc test will end up
4738 # making a dummy file named 'D' -- because '-MD' means "put the output
4739 # in D".
4740 rm -rf conftest.dir
4741 mkdir conftest.dir
4742 # Copy depcomp to subdir because otherwise we won't find it if we're
4743 # using a relative directory.
4744 cp "$am_depcomp" conftest.dir
4745 cd conftest.dir
4746 # We will build objects and dependencies in a subdirectory because
4747 # it helps to detect inapplicable dependency modes. For instance
4748 # both Tru64's cc and ICC support -MD to output dependencies as a
4749 # side effect of compilation, but ICC will put the dependencies in
4750 # the current directory while Tru64 will put them in the object
4751 # directory.
4752 mkdir sub
4753
4754 am_cv_CC_dependencies_compiler_type=none
4755 if test "$am_compiler_list" = ""; then
4756 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4757 fi
4758 am__universal=false
4759 case " $depcc " in #(
4760 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4761 esac
4762
4763 for depmode in $am_compiler_list; do
4764 # Setup a source with many dependencies, because some compilers
4765 # like to wrap large dependency lists on column 80 (with \), and
4766 # we should not choose a depcomp mode which is confused by this.
4767 #
4768 # We need to recreate these files for each test, as the compiler may
4769 # overwrite some of them when testing with obscure command lines.
4770 # This happens at least with the AIX C compiler.
4771 : > sub/conftest.c
4772 for i in 1 2 3 4 5 6; do
4773 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4774 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4775 # Solaris 10 /bin/sh.
4776 echo '/* dummy */' > sub/conftst$i.h
4777 done
4778 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4779
4780 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4781 # mode. It turns out that the SunPro C++ compiler does not properly
4782 # handle '-M -o', and we need to detect this. Also, some Intel
4783 # versions had trouble with output in subdirs.
4784 am__obj=sub/conftest.${OBJEXT-o}
4785 am__minus_obj="-o $am__obj"
4786 case $depmode in
4787 gcc)
4788 # This depmode causes a compiler race in universal mode.
4789 test "$am__universal" = false || continue
4790 ;;
4791 nosideeffect)
4792 # After this tag, mechanisms are not by side-effect, so they'll
4793 # only be used when explicitly requested.
4794 if test "x$enable_dependency_tracking" = xyes; then
4795 continue
4796 else
4797 break
4798 fi
4799 ;;
4800 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4801 # This compiler won't grok '-c -o', but also, the minuso test has
4802 # not run yet. These depmodes are late enough in the game, and
4803 # so weak that their functioning should not be impacted.
4804 am__obj=conftest.${OBJEXT-o}
4805 am__minus_obj=
4806 ;;
4807 none) break ;;
4808 esac
4809 if depmode=$depmode \
4810 source=sub/conftest.c object=$am__obj \
4811 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4812 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4813 >/dev/null 2>conftest.err &&
4814 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4815 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4816 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4817 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4818 # icc doesn't choke on unknown options, it will just issue warnings
4819 # or remarks (even with -Werror). So we grep stderr for any message
4820 # that says an option was ignored or not supported.
4821 # When given -MP, icc 7.0 and 7.1 complain thus:
4822 # icc: Command line warning: ignoring option '-M'; no argument required
4823 # The diagnosis changed in icc 8.0:
4824 # icc: Command line remark: option '-MP' not supported
4825 if (grep 'ignoring option' conftest.err ||
4826 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4827 am_cv_CC_dependencies_compiler_type=$depmode
4828 break
4829 fi
4830 fi
4831 done
4832
4833 cd ..
4834 rm -rf conftest.dir
4835 else
4836 am_cv_CC_dependencies_compiler_type=none
4837 fi
4838 ;;
4839 esac
4840 fi
4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4842 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4843 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4844
4845 if
4846 test "x$enable_dependency_tracking" != xno \
4847 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4848 am__fastdepCC_TRUE=
4849 am__fastdepCC_FALSE='#'
4850 else
4851 am__fastdepCC_TRUE='#'
4852 am__fastdepCC_FALSE=
4853 fi
4854
4855
4856
4857 ac_header= ac_cache=
4858 for ac_item in $ac_header_c_list
4859 do
4860 if test $ac_cache; then
4861 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4862 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4863 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4864 fi
4865 ac_header= ac_cache=
4866 elif test $ac_header; then
4867 ac_cache=$ac_item
4868 else
4869 ac_header=$ac_item
4870 fi
4871 done
4872
4873
4874
4875
4876
4877
4878
4879
4880 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4881 then :
4882
4883 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4884
4885 fi
4886
4887
4888
4889
4890
4891
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4893 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4894 if test ${ac_cv_safe_to_define___extensions__+y}
4895 then :
4896 printf %s "(cached) " >&6
4897 else case e in #(
4898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4900
4901 # define __EXTENSIONS__ 1
4902 $ac_includes_default
4903 int
4904 main (void)
4905 {
4906
4907 ;
4908 return 0;
4909 }
4910 _ACEOF
4911 if ac_fn_c_try_compile "$LINENO"
4912 then :
4913 ac_cv_safe_to_define___extensions__=yes
4914 else case e in #(
4915 e) ac_cv_safe_to_define___extensions__=no ;;
4916 esac
4917 fi
4918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4919 esac
4920 fi
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4922 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4923
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4925 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4926 if test ${ac_cv_should_define__xopen_source+y}
4927 then :
4928 printf %s "(cached) " >&6
4929 else case e in #(
4930 e) ac_cv_should_define__xopen_source=no
4931 if test $ac_cv_header_wchar_h = yes
4932 then :
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935
4936 #include <wchar.h>
4937 mbstate_t x;
4938 int
4939 main (void)
4940 {
4941
4942 ;
4943 return 0;
4944 }
4945 _ACEOF
4946 if ac_fn_c_try_compile "$LINENO"
4947 then :
4948
4949 else case e in #(
4950 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952
4953 #define _XOPEN_SOURCE 500
4954 #include <wchar.h>
4955 mbstate_t x;
4956 int
4957 main (void)
4958 {
4959
4960 ;
4961 return 0;
4962 }
4963 _ACEOF
4964 if ac_fn_c_try_compile "$LINENO"
4965 then :
4966 ac_cv_should_define__xopen_source=yes
4967 fi
4968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4969 esac
4970 fi
4971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4972 fi ;;
4973 esac
4974 fi
4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4976 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4977
4978 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4979
4980 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4981
4982 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4983
4984 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4985
4986 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4987
4988 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4989
4990 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4991
4992 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4993
4994 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4995
4996 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4997
4998 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4999
5000 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5001
5002 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5003
5004 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5005
5006 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5007
5008 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5009
5010 if test $ac_cv_header_minix_config_h = yes
5011 then :
5012 MINIX=yes
5013 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5014
5015 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5016
5017 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5018
5019 else case e in #(
5020 e) MINIX= ;;
5021 esac
5022 fi
5023 if test $ac_cv_safe_to_define___extensions__ = yes
5024 then :
5025 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5026
5027 fi
5028 if test $ac_cv_should_define__xopen_source = yes
5029 then :
5030 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5031
5032 fi
5033
5034 # Check whether --enable-compiler-warnings was given.
5035 if test ${enable_compiler_warnings+y}
5036 then :
5037 enableval=$enable_compiler_warnings;
5038 fi
5039 case $enable_compiler_warnings in #(
5040 no | min | yes | max | all) :
5041 ;; #(
5042 *) :
5043 if test "x$enable_maintainer_mode" = xyes
5044 then :
5045 enable_compiler_warnings=yes
5046 else case e in #(
5047 e) enable_compiler_warnings=min ;;
5048 esac
5049 fi ;;
5050 esac
5051
5052 case `pwd` in
5053 *\ * | *\ *)
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5055 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5056 esac
5057
5058
5059
5060 macro_version='2.5.4'
5061 macro_revision='2.5.4'
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076 ltmain=$ac_aux_dir/ltmain.sh
5077
5078
5079
5080 # Make sure we can run config.sub.
5081 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5082 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5083
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5085 printf %s "checking build system type... " >&6; }
5086 if test ${ac_cv_build+y}
5087 then :
5088 printf %s "(cached) " >&6
5089 else case e in #(
5090 e) ac_build_alias=$build_alias
5091 test "x$ac_build_alias" = x &&
5092 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5093 test "x$ac_build_alias" = x &&
5094 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5095 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5096 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5097 ;;
5098 esac
5099 fi
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5101 printf "%s\n" "$ac_cv_build" >&6; }
5102 case $ac_cv_build in
5103 *-*-*) ;;
5104 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5105 esac
5106 build=$ac_cv_build
5107 ac_save_IFS=$IFS; IFS='-'
5108 set x $ac_cv_build
5109 shift
5110 build_cpu=$1
5111 build_vendor=$2
5112 shift; shift
5113 # Remember, the first character of IFS is used to create $*,
5114 # except with old shells:
5115 build_os=$*
5116 IFS=$ac_save_IFS
5117 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5118
5119
5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5121 printf %s "checking host system type... " >&6; }
5122 if test ${ac_cv_host+y}
5123 then :
5124 printf %s "(cached) " >&6
5125 else case e in #(
5126 e) if test "x$host_alias" = x; then
5127 ac_cv_host=$ac_cv_build
5128 else
5129 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5130 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5131 fi
5132 ;;
5133 esac
5134 fi
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5136 printf "%s\n" "$ac_cv_host" >&6; }
5137 case $ac_cv_host in
5138 *-*-*) ;;
5139 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5140 esac
5141 host=$ac_cv_host
5142 ac_save_IFS=$IFS; IFS='-'
5143 set x $ac_cv_host
5144 shift
5145 host_cpu=$1
5146 host_vendor=$2
5147 shift; shift
5148 # Remember, the first character of IFS is used to create $*,
5149 # except with old shells:
5150 host_os=$*
5151 IFS=$ac_save_IFS
5152 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5153
5154
5155 # Backslashify metacharacters that are still active within
5156 # double-quoted strings.
5157 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5158
5159 # Same as above, but do not quote variable references.
5160 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5161
5162 # Sed substitution to delay expansion of an escaped shell variable in a
5163 # double_quote_subst'ed string.
5164 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5165
5166 # Sed substitution to delay expansion of an escaped single quote.
5167 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5168
5169 # Sed substitution to avoid accidental globbing in evaled expressions
5170 no_glob_subst='s/\*/\\\*/g'
5171
5172 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5173 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5174 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5175
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5177 printf %s "checking how to print strings... " >&6; }
5178 # Test print first, because it will be a builtin if present.
5179 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5180 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5181 ECHO='print -r --'
5182 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5183 ECHO='printf %s\n'
5184 else
5185 # Use this function as a fallback that always works.
5186 func_fallback_echo ()
5187 {
5188 eval 'cat <<_LTECHO_EOF
5189 $1
5190 _LTECHO_EOF'
5191 }
5192 ECHO='func_fallback_echo'
5193 fi
5194
5195 # func_echo_all arg...
5196 # Invoke $ECHO with all args, space-separated.
5197 func_echo_all ()
5198 {
5199 $ECHO ""
5200 }
5201
5202 case $ECHO in
5203 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5204 printf "%s\n" "printf" >&6; } ;;
5205 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5206 printf "%s\n" "print -r" >&6; } ;;
5207 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5208 printf "%s\n" "cat" >&6; } ;;
5209 esac
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5225 printf %s "checking for a sed that does not truncate output... " >&6; }
5226 if test ${ac_cv_path_SED+y}
5227 then :
5228 printf %s "(cached) " >&6
5229 else case e in #(
5230 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5231 for ac_i in 1 2 3 4 5 6 7; do
5232 ac_script="$ac_script$as_nl$ac_script"
5233 done
5234 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5235 { ac_script=; unset ac_script;}
5236 if test -z "$SED"; then
5237 ac_path_SED_found=false
5238 # Loop through the user's path and test for each of PROGNAME-LIST
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242 IFS=$as_save_IFS
5243 case $as_dir in #(((
5244 '') as_dir=./ ;;
5245 */) ;;
5246 *) as_dir=$as_dir/ ;;
5247 esac
5248 for ac_prog in sed gsed
5249 do
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5252 as_fn_executable_p "$ac_path_SED" || continue
5253 # Check for GNU ac_path_SED and select it if it is found.
5254 # Check for GNU $ac_path_SED
5255 case `"$ac_path_SED" --version 2>&1` in #(
5256 *GNU*)
5257 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5258 #(
5259 *)
5260 ac_count=0
5261 printf %s 0123456789 >"conftest.in"
5262 while :
5263 do
5264 cat "conftest.in" "conftest.in" >"conftest.tmp"
5265 mv "conftest.tmp" "conftest.in"
5266 cp "conftest.in" "conftest.nl"
5267 printf "%s\n" '' >> "conftest.nl"
5268 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5270 as_fn_arith $ac_count + 1 && ac_count=$as_val
5271 if test $ac_count -gt ${ac_path_SED_max-0}; then
5272 # Best one so far, save it but keep looking for a better one
5273 ac_cv_path_SED="$ac_path_SED"
5274 ac_path_SED_max=$ac_count
5275 fi
5276 # 10*(2^10) chars as input seems more than enough
5277 test $ac_count -gt 10 && break
5278 done
5279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5280 esac
5281
5282 $ac_path_SED_found && break 3
5283 done
5284 done
5285 done
5286 IFS=$as_save_IFS
5287 if test -z "$ac_cv_path_SED"; then
5288 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5289 fi
5290 else
5291 ac_cv_path_SED=$SED
5292 fi
5293 ;;
5294 esac
5295 fi
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5297 printf "%s\n" "$ac_cv_path_SED" >&6; }
5298 SED="$ac_cv_path_SED"
5299 rm -f conftest.sed
5300
5301 test -z "$SED" && SED=sed
5302 Xsed="$SED -e 1s/^X//"
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5315 printf %s "checking for grep that handles long lines and -e... " >&6; }
5316 if test ${ac_cv_path_GREP+y}
5317 then :
5318 printf %s "(cached) " >&6
5319 else case e in #(
5320 e) if test -z "$GREP"; then
5321 ac_path_GREP_found=false
5322 # Loop through the user's path and test for each of PROGNAME-LIST
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5325 do
5326 IFS=$as_save_IFS
5327 case $as_dir in #(((
5328 '') as_dir=./ ;;
5329 */) ;;
5330 *) as_dir=$as_dir/ ;;
5331 esac
5332 for ac_prog in grep ggrep
5333 do
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5336 as_fn_executable_p "$ac_path_GREP" || continue
5337 # Check for GNU ac_path_GREP and select it if it is found.
5338 # Check for GNU $ac_path_GREP
5339 case `"$ac_path_GREP" --version 2>&1` in #(
5340 *GNU*)
5341 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5342 #(
5343 *)
5344 ac_count=0
5345 printf %s 0123456789 >"conftest.in"
5346 while :
5347 do
5348 cat "conftest.in" "conftest.in" >"conftest.tmp"
5349 mv "conftest.tmp" "conftest.in"
5350 cp "conftest.in" "conftest.nl"
5351 printf "%s\n" 'GREP' >> "conftest.nl"
5352 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5353 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5354 as_fn_arith $ac_count + 1 && ac_count=$as_val
5355 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5356 # Best one so far, save it but keep looking for a better one
5357 ac_cv_path_GREP="$ac_path_GREP"
5358 ac_path_GREP_max=$ac_count
5359 fi
5360 # 10*(2^10) chars as input seems more than enough
5361 test $ac_count -gt 10 && break
5362 done
5363 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5364 esac
5365
5366 $ac_path_GREP_found && break 3
5367 done
5368 done
5369 done
5370 IFS=$as_save_IFS
5371 if test -z "$ac_cv_path_GREP"; then
5372 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5373 fi
5374 else
5375 ac_cv_path_GREP=$GREP
5376 fi
5377 ;;
5378 esac
5379 fi
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5381 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5382 GREP="$ac_cv_path_GREP"
5383
5384
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5386 printf %s "checking for egrep... " >&6; }
5387 if test ${ac_cv_path_EGREP+y}
5388 then :
5389 printf %s "(cached) " >&6
5390 else case e in #(
5391 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5392 then ac_cv_path_EGREP="$GREP -E"
5393 else
5394 if test -z "$EGREP"; then
5395 ac_path_EGREP_found=false
5396 # Loop through the user's path and test for each of PROGNAME-LIST
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5399 do
5400 IFS=$as_save_IFS
5401 case $as_dir in #(((
5402 '') as_dir=./ ;;
5403 */) ;;
5404 *) as_dir=$as_dir/ ;;
5405 esac
5406 for ac_prog in egrep
5407 do
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5410 as_fn_executable_p "$ac_path_EGREP" || continue
5411 # Check for GNU ac_path_EGREP and select it if it is found.
5412 # Check for GNU $ac_path_EGREP
5413 case `"$ac_path_EGREP" --version 2>&1` in #(
5414 *GNU*)
5415 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5416 #(
5417 *)
5418 ac_count=0
5419 printf %s 0123456789 >"conftest.in"
5420 while :
5421 do
5422 cat "conftest.in" "conftest.in" >"conftest.tmp"
5423 mv "conftest.tmp" "conftest.in"
5424 cp "conftest.in" "conftest.nl"
5425 printf "%s\n" 'EGREP' >> "conftest.nl"
5426 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5428 as_fn_arith $ac_count + 1 && ac_count=$as_val
5429 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5430 # Best one so far, save it but keep looking for a better one
5431 ac_cv_path_EGREP="$ac_path_EGREP"
5432 ac_path_EGREP_max=$ac_count
5433 fi
5434 # 10*(2^10) chars as input seems more than enough
5435 test $ac_count -gt 10 && break
5436 done
5437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5438 esac
5439
5440 $ac_path_EGREP_found && break 3
5441 done
5442 done
5443 done
5444 IFS=$as_save_IFS
5445 if test -z "$ac_cv_path_EGREP"; then
5446 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5447 fi
5448 else
5449 ac_cv_path_EGREP=$EGREP
5450 fi
5451
5452 fi ;;
5453 esac
5454 fi
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5456 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5457 EGREP="$ac_cv_path_EGREP"
5458
5459 EGREP_TRADITIONAL=$EGREP
5460 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5461
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5463 printf %s "checking for fgrep... " >&6; }
5464 if test ${ac_cv_path_FGREP+y}
5465 then :
5466 printf %s "(cached) " >&6
5467 else case e in #(
5468 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5469 then ac_cv_path_FGREP="$GREP -F"
5470 else
5471 if test -z "$FGREP"; then
5472 ac_path_FGREP_found=false
5473 # Loop through the user's path and test for each of PROGNAME-LIST
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5476 do
5477 IFS=$as_save_IFS
5478 case $as_dir in #(((
5479 '') as_dir=./ ;;
5480 */) ;;
5481 *) as_dir=$as_dir/ ;;
5482 esac
5483 for ac_prog in fgrep
5484 do
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5487 as_fn_executable_p "$ac_path_FGREP" || continue
5488 # Check for GNU ac_path_FGREP and select it if it is found.
5489 # Check for GNU $ac_path_FGREP
5490 case `"$ac_path_FGREP" --version 2>&1` in #(
5491 *GNU*)
5492 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5493 #(
5494 *)
5495 ac_count=0
5496 printf %s 0123456789 >"conftest.in"
5497 while :
5498 do
5499 cat "conftest.in" "conftest.in" >"conftest.tmp"
5500 mv "conftest.tmp" "conftest.in"
5501 cp "conftest.in" "conftest.nl"
5502 printf "%s\n" 'FGREP' >> "conftest.nl"
5503 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5505 as_fn_arith $ac_count + 1 && ac_count=$as_val
5506 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5507 # Best one so far, save it but keep looking for a better one
5508 ac_cv_path_FGREP="$ac_path_FGREP"
5509 ac_path_FGREP_max=$ac_count
5510 fi
5511 # 10*(2^10) chars as input seems more than enough
5512 test $ac_count -gt 10 && break
5513 done
5514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5515 esac
5516
5517 $ac_path_FGREP_found && break 3
5518 done
5519 done
5520 done
5521 IFS=$as_save_IFS
5522 if test -z "$ac_cv_path_FGREP"; then
5523 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5524 fi
5525 else
5526 ac_cv_path_FGREP=$FGREP
5527 fi
5528
5529 fi ;;
5530 esac
5531 fi
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5533 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5534 FGREP="$ac_cv_path_FGREP"
5535
5536
5537 test -z "$GREP" && GREP=grep
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557 # Check whether --with-gnu-ld was given.
5558 if test ${with_gnu_ld+y}
5559 then :
5560 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5561 else case e in #(
5562 e) with_gnu_ld=no ;;
5563 esac
5564 fi
5565
5566 ac_prog=ld
5567 if test yes = "$GCC"; then
5568 # Check if gcc -print-prog-name=ld gives a path.
5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5570 printf %s "checking for ld used by $CC... " >&6; }
5571 case $host in
5572 *-*-mingw* | *-*-windows*)
5573 # gcc leaves a trailing carriage return, which upsets mingw
5574 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5575 *)
5576 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5577 esac
5578 case $ac_prog in
5579 # Accept absolute paths.
5580 [\\/]* | ?:[\\/]*)
5581 re_direlt='/[^/][^/]*/\.\./'
5582 # Canonicalize the pathname of ld
5583 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5584 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5585 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5586 done
5587 test -z "$LD" && LD=$ac_prog
5588 ;;
5589 "")
5590 # If it fails, then pretend we aren't using GCC.
5591 ac_prog=ld
5592 ;;
5593 *)
5594 # If it is relative, then search for the first ld in PATH.
5595 with_gnu_ld=unknown
5596 ;;
5597 esac
5598 elif test yes = "$with_gnu_ld"; then
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5600 printf %s "checking for GNU ld... " >&6; }
5601 else
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5603 printf %s "checking for non-GNU ld... " >&6; }
5604 fi
5605 if test ${lt_cv_path_LD+y}
5606 then :
5607 printf %s "(cached) " >&6
5608 else case e in #(
5609 e) if test -z "$LD"; then
5610 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5611 for ac_dir in $PATH; do
5612 IFS=$lt_save_ifs
5613 test -z "$ac_dir" && ac_dir=.
5614 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5615 lt_cv_path_LD=$ac_dir/$ac_prog
5616 # Check to see if the program is GNU ld. I'd rather use --version,
5617 # but apparently some variants of GNU ld only accept -v.
5618 # Break only if it was the GNU/non-GNU ld that we prefer.
5619 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5620 *GNU* | *'with BFD'*)
5621 test no != "$with_gnu_ld" && break
5622 ;;
5623 *)
5624 test yes != "$with_gnu_ld" && break
5625 ;;
5626 esac
5627 fi
5628 done
5629 IFS=$lt_save_ifs
5630 else
5631 lt_cv_path_LD=$LD # Let the user override the test with a path.
5632 fi ;;
5633 esac
5634 fi
5635
5636 LD=$lt_cv_path_LD
5637 if test -n "$LD"; then
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5639 printf "%s\n" "$LD" >&6; }
5640 else
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 printf "%s\n" "no" >&6; }
5643 fi
5644 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5646 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5647 if test ${lt_cv_prog_gnu_ld+y}
5648 then :
5649 printf %s "(cached) " >&6
5650 else case e in #(
5651 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5652 case `$LD -v 2>&1 </dev/null` in
5653 *GNU* | *'with BFD'*)
5654 lt_cv_prog_gnu_ld=yes
5655 ;;
5656 *)
5657 lt_cv_prog_gnu_ld=no
5658 ;;
5659 esac ;;
5660 esac
5661 fi
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5663 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5664 with_gnu_ld=$lt_cv_prog_gnu_ld
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5675 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5676 if test ${lt_cv_path_NM+y}
5677 then :
5678 printf %s "(cached) " >&6
5679 else case e in #(
5680 e) if test -n "$NM"; then
5681 # Let the user override the test.
5682 lt_cv_path_NM=$NM
5683 else
5684 lt_nm_to_check=${ac_tool_prefix}nm
5685 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5686 lt_nm_to_check="$lt_nm_to_check nm"
5687 fi
5688 for lt_tmp_nm in $lt_nm_to_check; do
5689 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5690 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5691 IFS=$lt_save_ifs
5692 test -z "$ac_dir" && ac_dir=.
5693 tmp_nm=$ac_dir/$lt_tmp_nm
5694 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5695 # Check to see if the nm accepts a BSD-compat flag.
5696 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5697 # nm: unknown option "B" ignored
5698 # Tru64's nm complains that /dev/null is an invalid object file
5699 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5700 case $build_os in
5701 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5702 *) lt_bad_file=/dev/null ;;
5703 esac
5704 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5705 *$lt_bad_file* | *'Invalid file or object type'*)
5706 lt_cv_path_NM="$tmp_nm -B"
5707 break 2
5708 ;;
5709 *)
5710 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5711 */dev/null*)
5712 lt_cv_path_NM="$tmp_nm -p"
5713 break 2
5714 ;;
5715 *)
5716 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5717 continue # so that we can try to find one that supports BSD flags
5718 ;;
5719 esac
5720 ;;
5721 esac
5722 fi
5723 done
5724 IFS=$lt_save_ifs
5725 done
5726 : ${lt_cv_path_NM=no}
5727 fi ;;
5728 esac
5729 fi
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5731 printf "%s\n" "$lt_cv_path_NM" >&6; }
5732 if test no != "$lt_cv_path_NM"; then
5733 NM=$lt_cv_path_NM
5734 else
5735 # Didn't find any BSD compatible name lister, look for dumpbin.
5736 if test -n "$DUMPBIN"; then :
5737 # Let the user override the test.
5738 else
5739 if test -n "$ac_tool_prefix"; then
5740 for ac_prog in dumpbin "link -dump"
5741 do
5742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 printf %s "checking for $ac_word... " >&6; }
5746 if test ${ac_cv_prog_DUMPBIN+y}
5747 then :
5748 printf %s "(cached) " >&6
5749 else case e in #(
5750 e) if test -n "$DUMPBIN"; then
5751 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756 IFS=$as_save_IFS
5757 case $as_dir in #(((
5758 '') as_dir=./ ;;
5759 */) ;;
5760 *) as_dir=$as_dir/ ;;
5761 esac
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5764 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5766 break 2
5767 fi
5768 done
5769 done
5770 IFS=$as_save_IFS
5771
5772 fi ;;
5773 esac
5774 fi
5775 DUMPBIN=$ac_cv_prog_DUMPBIN
5776 if test -n "$DUMPBIN"; then
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5778 printf "%s\n" "$DUMPBIN" >&6; }
5779 else
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 printf "%s\n" "no" >&6; }
5782 fi
5783
5784
5785 test -n "$DUMPBIN" && break
5786 done
5787 fi
5788 if test -z "$DUMPBIN"; then
5789 ac_ct_DUMPBIN=$DUMPBIN
5790 for ac_prog in dumpbin "link -dump"
5791 do
5792 # Extract the first word of "$ac_prog", so it can be a program name with args.
5793 set dummy $ac_prog; ac_word=$2
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 printf %s "checking for $ac_word... " >&6; }
5796 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5797 then :
5798 printf %s "(cached) " >&6
5799 else case e in #(
5800 e) if test -n "$ac_ct_DUMPBIN"; then
5801 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806 IFS=$as_save_IFS
5807 case $as_dir in #(((
5808 '') as_dir=./ ;;
5809 */) ;;
5810 *) as_dir=$as_dir/ ;;
5811 esac
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818 done
5819 done
5820 IFS=$as_save_IFS
5821
5822 fi ;;
5823 esac
5824 fi
5825 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5826 if test -n "$ac_ct_DUMPBIN"; then
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5828 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5829 else
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 printf "%s\n" "no" >&6; }
5832 fi
5833
5834
5835 test -n "$ac_ct_DUMPBIN" && break
5836 done
5837
5838 if test "x$ac_ct_DUMPBIN" = x; then
5839 DUMPBIN=":"
5840 else
5841 case $cross_compiling:$ac_tool_warned in
5842 yes:)
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5844 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5845 ac_tool_warned=yes ;;
5846 esac
5847 DUMPBIN=$ac_ct_DUMPBIN
5848 fi
5849 fi
5850
5851 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5852 *COFF*)
5853 DUMPBIN="$DUMPBIN -symbols -headers"
5854 ;;
5855 *)
5856 DUMPBIN=:
5857 ;;
5858 esac
5859 fi
5860
5861 if test : != "$DUMPBIN"; then
5862 NM=$DUMPBIN
5863 fi
5864 fi
5865 test -z "$NM" && NM=nm
5866
5867
5868
5869
5870
5871
5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5873 printf %s "checking the name lister ($NM) interface... " >&6; }
5874 if test ${lt_cv_nm_interface+y}
5875 then :
5876 printf %s "(cached) " >&6
5877 else case e in #(
5878 e) lt_cv_nm_interface="BSD nm"
5879 echo "int some_variable = 0;" > conftest.$ac_ext
5880 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5881 (eval "$ac_compile" 2>conftest.err)
5882 cat conftest.err >&5
5883 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5884 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5885 cat conftest.err >&5
5886 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5887 cat conftest.out >&5
5888 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5889 lt_cv_nm_interface="MS dumpbin"
5890 fi
5891 rm -f conftest* ;;
5892 esac
5893 fi
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5895 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5896
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5898 printf %s "checking whether ln -s works... " >&6; }
5899 LN_S=$as_ln_s
5900 if test "$LN_S" = "ln -s"; then
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5902 printf "%s\n" "yes" >&6; }
5903 else
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5905 printf "%s\n" "no, using $LN_S" >&6; }
5906 fi
5907
5908 # find the maximum length of command line arguments
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5910 printf %s "checking the maximum length of command line arguments... " >&6; }
5911 if test ${lt_cv_sys_max_cmd_len+y}
5912 then :
5913 printf %s "(cached) " >&6
5914 else case e in #(
5915 e) i=0
5916 teststring=ABCD
5917
5918 case $build_os in
5919 msdosdjgpp*)
5920 # On DJGPP, this test can blow up pretty badly due to problems in libc
5921 # (any single argument exceeding 2000 bytes causes a buffer overrun
5922 # during glob expansion). Even if it were fixed, the result of this
5923 # check would be larger than it should be.
5924 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5925 ;;
5926
5927 gnu* | ironclad*)
5928 # Under GNU Hurd and Ironclad, this test is not required because there
5929 # is no limit to the length of command line arguments.
5930 # Libtool will interpret -1 as no limit whatsoever
5931 lt_cv_sys_max_cmd_len=-1;
5932 ;;
5933
5934 cygwin* | mingw* | windows* | cegcc*)
5935 # On Win9x/ME, this test blows up -- it succeeds, but takes
5936 # about 5 minutes as the teststring grows exponentially.
5937 # Worse, since 9x/ME are not pre-emptively multitasking,
5938 # you end up with a "frozen" computer, even though with patience
5939 # the test eventually succeeds (with a max line length of 256k).
5940 # Instead, let's just punt: use the minimum linelength reported by
5941 # all of the supported platforms: 8192 (on NT/2K/XP).
5942 lt_cv_sys_max_cmd_len=8192;
5943 ;;
5944
5945 mint*)
5946 # On MiNT this can take a long time and run out of memory.
5947 lt_cv_sys_max_cmd_len=8192;
5948 ;;
5949
5950 amigaos*)
5951 # On AmigaOS with pdksh, this test takes hours, literally.
5952 # So we just punt and use a minimum line length of 8192.
5953 lt_cv_sys_max_cmd_len=8192;
5954 ;;
5955
5956 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5957 # This has been around since 386BSD, at least. Likely further.
5958 if test -x /sbin/sysctl; then
5959 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5960 elif test -x /usr/sbin/sysctl; then
5961 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5962 else
5963 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5964 fi
5965 # And add a safety zone
5966 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5968 ;;
5969
5970 interix*)
5971 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5972 lt_cv_sys_max_cmd_len=196608
5973 ;;
5974
5975 os2*)
5976 # The test takes a long time on OS/2.
5977 lt_cv_sys_max_cmd_len=8192
5978 ;;
5979
5980 osf*)
5981 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5982 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5983 # nice to cause kernel panics so lets avoid the loop below.
5984 # First set a reasonable default.
5985 lt_cv_sys_max_cmd_len=16384
5986 #
5987 if test -x /sbin/sysconfig; then
5988 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5989 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5990 esac
5991 fi
5992 ;;
5993 sco3.2v5*)
5994 lt_cv_sys_max_cmd_len=102400
5995 ;;
5996 sysv5* | sco5v6* | sysv4.2uw2*)
5997 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5998 if test -n "$kargmax"; then
5999 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6000 else
6001 lt_cv_sys_max_cmd_len=32768
6002 fi
6003 ;;
6004 *)
6005 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6006 if test -n "$lt_cv_sys_max_cmd_len" && \
6007 test undefined != "$lt_cv_sys_max_cmd_len"; then
6008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6010 else
6011 # Make teststring a little bigger before we do anything with it.
6012 # a 1K string should be a reasonable start.
6013 for i in 1 2 3 4 5 6 7 8; do
6014 teststring=$teststring$teststring
6015 done
6016 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6017 # If test is not a shell built-in, we'll probably end up computing a
6018 # maximum length that is only half of the actual maximum length, but
6019 # we can't tell.
6020 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6021 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6022 test 17 != "$i" # 1/2 MB should be enough
6023 do
6024 i=`expr $i + 1`
6025 teststring=$teststring$teststring
6026 done
6027 # Only check the string length outside the loop.
6028 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6029 teststring=
6030 # Add a significant safety factor because C++ compilers can tack on
6031 # massive amounts of additional arguments before passing them to the
6032 # linker. It appears as though 1/2 is a usable value.
6033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6034 fi
6035 ;;
6036 esac
6037 ;;
6038 esac
6039 fi
6040
6041 if test -n "$lt_cv_sys_max_cmd_len"; then
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6043 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6044 else
6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6046 printf "%s\n" "none" >&6; }
6047 fi
6048 max_cmd_len=$lt_cv_sys_max_cmd_len
6049
6050
6051
6052
6053
6054
6055 : ${CP="cp -f"}
6056 : ${MV="mv -f"}
6057 : ${RM="rm -f"}
6058
6059 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6060 lt_unset=unset
6061 else
6062 lt_unset=false
6063 fi
6064
6065
6066
6067
6068
6069 # test EBCDIC or ASCII
6070 case `echo X|tr X '\101'` in
6071 A) # ASCII based system
6072 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6073 lt_SP2NL='tr \040 \012'
6074 lt_NL2SP='tr \015\012 \040\040'
6075 ;;
6076 *) # EBCDIC based system
6077 lt_SP2NL='tr \100 \n'
6078 lt_NL2SP='tr \r\n \100\100'
6079 ;;
6080 esac
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6091 printf %s "checking how to convert $build file names to $host format... " >&6; }
6092 if test ${lt_cv_to_host_file_cmd+y}
6093 then :
6094 printf %s "(cached) " >&6
6095 else case e in #(
6096 e) case $host in
6097 *-*-mingw* )
6098 case $build in
6099 *-*-mingw* | *-*-windows* ) # actually msys
6100 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6101 ;;
6102 *-*-cygwin* )
6103 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6104 ;;
6105 * ) # otherwise, assume *nix
6106 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6107 ;;
6108 esac
6109 ;;
6110 *-*-cygwin* )
6111 case $build in
6112 *-*-mingw* | *-*-windows* ) # actually msys
6113 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6114 ;;
6115 *-*-cygwin* )
6116 lt_cv_to_host_file_cmd=func_convert_file_noop
6117 ;;
6118 * ) # otherwise, assume *nix
6119 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6120 ;;
6121 esac
6122 ;;
6123 * ) # unhandled hosts (and "normal" native builds)
6124 lt_cv_to_host_file_cmd=func_convert_file_noop
6125 ;;
6126 esac
6127 ;;
6128 esac
6129 fi
6130
6131 to_host_file_cmd=$lt_cv_to_host_file_cmd
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6133 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6134
6135
6136
6137
6138
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6140 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6141 if test ${lt_cv_to_tool_file_cmd+y}
6142 then :
6143 printf %s "(cached) " >&6
6144 else case e in #(
6145 e) #assume ordinary cross tools, or native build.
6146 lt_cv_to_tool_file_cmd=func_convert_file_noop
6147 case $host in
6148 *-*-mingw* | *-*-windows* )
6149 case $build in
6150 *-*-mingw* | *-*-windows* ) # actually msys
6151 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6152 ;;
6153 esac
6154 ;;
6155 esac
6156 ;;
6157 esac
6158 fi
6159
6160 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6162 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6163
6164
6165
6166
6167
6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6169 printf %s "checking for $LD option to reload object files... " >&6; }
6170 if test ${lt_cv_ld_reload_flag+y}
6171 then :
6172 printf %s "(cached) " >&6
6173 else case e in #(
6174 e) lt_cv_ld_reload_flag='-r' ;;
6175 esac
6176 fi
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6178 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6179 reload_flag=$lt_cv_ld_reload_flag
6180 case $reload_flag in
6181 "" | " "*) ;;
6182 *) reload_flag=" $reload_flag" ;;
6183 esac
6184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6185 case $host_os in
6186 cygwin* | mingw* | windows* | pw32* | cegcc*)
6187 if test yes != "$GCC"; then
6188 reload_cmds=false
6189 fi
6190 ;;
6191 darwin*)
6192 if test yes = "$GCC"; then
6193 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6194 else
6195 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6196 fi
6197 ;;
6198 esac
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208 # Extract the first word of "file", so it can be a program name with args.
6209 set dummy file; ac_word=$2
6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 printf %s "checking for $ac_word... " >&6; }
6212 if test ${ac_cv_prog_FILECMD+y}
6213 then :
6214 printf %s "(cached) " >&6
6215 else case e in #(
6216 e) if test -n "$FILECMD"; then
6217 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222 IFS=$as_save_IFS
6223 case $as_dir in #(((
6224 '') as_dir=./ ;;
6225 */) ;;
6226 *) as_dir=$as_dir/ ;;
6227 esac
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6230 ac_cv_prog_FILECMD="file"
6231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234 done
6235 done
6236 IFS=$as_save_IFS
6237
6238 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6239 fi ;;
6240 esac
6241 fi
6242 FILECMD=$ac_cv_prog_FILECMD
6243 if test -n "$FILECMD"; then
6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6245 printf "%s\n" "$FILECMD" >&6; }
6246 else
6247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248 printf "%s\n" "no" >&6; }
6249 fi
6250
6251
6252
6253
6254
6255
6256
6257
6258 if test -n "$ac_tool_prefix"; then
6259 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6260 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262 printf %s "checking for $ac_word... " >&6; }
6263 if test ${ac_cv_prog_OBJDUMP+y}
6264 then :
6265 printf %s "(cached) " >&6
6266 else case e in #(
6267 e) if test -n "$OBJDUMP"; then
6268 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273 IFS=$as_save_IFS
6274 case $as_dir in #(((
6275 '') as_dir=./ ;;
6276 */) ;;
6277 *) as_dir=$as_dir/ ;;
6278 esac
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6281 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6283 break 2
6284 fi
6285 done
6286 done
6287 IFS=$as_save_IFS
6288
6289 fi ;;
6290 esac
6291 fi
6292 OBJDUMP=$ac_cv_prog_OBJDUMP
6293 if test -n "$OBJDUMP"; then
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6295 printf "%s\n" "$OBJDUMP" >&6; }
6296 else
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 printf "%s\n" "no" >&6; }
6299 fi
6300
6301
6302 fi
6303 if test -z "$ac_cv_prog_OBJDUMP"; then
6304 ac_ct_OBJDUMP=$OBJDUMP
6305 # Extract the first word of "objdump", so it can be a program name with args.
6306 set dummy objdump; ac_word=$2
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 printf %s "checking for $ac_word... " >&6; }
6309 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6310 then :
6311 printf %s "(cached) " >&6
6312 else case e in #(
6313 e) if test -n "$ac_ct_OBJDUMP"; then
6314 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319 IFS=$as_save_IFS
6320 case $as_dir in #(((
6321 '') as_dir=./ ;;
6322 */) ;;
6323 *) as_dir=$as_dir/ ;;
6324 esac
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6327 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6329 break 2
6330 fi
6331 done
6332 done
6333 IFS=$as_save_IFS
6334
6335 fi ;;
6336 esac
6337 fi
6338 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6339 if test -n "$ac_ct_OBJDUMP"; then
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6341 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6342 else
6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 printf "%s\n" "no" >&6; }
6345 fi
6346
6347 if test "x$ac_ct_OBJDUMP" = x; then
6348 OBJDUMP="false"
6349 else
6350 case $cross_compiling:$ac_tool_warned in
6351 yes:)
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6353 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6354 ac_tool_warned=yes ;;
6355 esac
6356 OBJDUMP=$ac_ct_OBJDUMP
6357 fi
6358 else
6359 OBJDUMP="$ac_cv_prog_OBJDUMP"
6360 fi
6361
6362 test -z "$OBJDUMP" && OBJDUMP=objdump
6363
6364
6365
6366
6367
6368
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6370 printf %s "checking how to recognize dependent libraries... " >&6; }
6371 if test ${lt_cv_deplibs_check_method+y}
6372 then :
6373 printf %s "(cached) " >&6
6374 else case e in #(
6375 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6376 lt_cv_file_magic_test_file=
6377 lt_cv_deplibs_check_method='unknown'
6378 # Need to set the preceding variable on all platforms that support
6379 # interlibrary dependencies.
6380 # 'none' -- dependencies not supported.
6381 # 'unknown' -- same as none, but documents that we really don't know.
6382 # 'pass_all' -- all dependencies passed with no checks.
6383 # 'file_magic [[regex]]' -- check by looking for files in library path
6384 # that responds to the $file_magic_cmd with a given extended regex.
6385 # If you have 'file' or equivalent on your system and you're not sure
6386 # whether 'pass_all' will *always* work, you probably want this one.
6387
6388 case $host_os in
6389 aix[4-9]*)
6390 lt_cv_deplibs_check_method=pass_all
6391 ;;
6392
6393 beos*)
6394 lt_cv_deplibs_check_method=pass_all
6395 ;;
6396
6397 bsdi[45]*)
6398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6399 lt_cv_file_magic_cmd='$FILECMD -L'
6400 lt_cv_file_magic_test_file=/shlib/libc.so
6401 ;;
6402
6403 cygwin*)
6404 # func_win32_libid is a shell function defined in ltmain.sh
6405 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6406 lt_cv_file_magic_cmd='func_win32_libid'
6407 ;;
6408
6409 mingw* | windows* | pw32*)
6410 # Base MSYS/MinGW do not provide the 'file' command needed by
6411 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6412 # unless we find 'file', for example because we are cross-compiling.
6413 if ( file / ) >/dev/null 2>&1; then
6414 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6415 lt_cv_file_magic_cmd='func_win32_libid'
6416 else
6417 # Keep this pattern in sync with the one in func_win32_libid.
6418 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6419 lt_cv_file_magic_cmd='$OBJDUMP -f'
6420 fi
6421 ;;
6422
6423 cegcc*)
6424 # use the weaker test based on 'objdump'. See mingw*.
6425 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6426 lt_cv_file_magic_cmd='$OBJDUMP -f'
6427 ;;
6428
6429 darwin* | rhapsody*)
6430 lt_cv_deplibs_check_method=pass_all
6431 ;;
6432
6433 freebsd* | dragonfly* | midnightbsd*)
6434 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6435 case $host_cpu in
6436 i*86 )
6437 # Not sure whether the presence of OpenBSD here was a mistake.
6438 # Let's accept both of them until this is cleared up.
6439 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6440 lt_cv_file_magic_cmd=$FILECMD
6441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6442 ;;
6443 esac
6444 else
6445 lt_cv_deplibs_check_method=pass_all
6446 fi
6447 ;;
6448
6449 haiku*)
6450 lt_cv_deplibs_check_method=pass_all
6451 ;;
6452
6453 hpux10.20* | hpux11*)
6454 lt_cv_file_magic_cmd=$FILECMD
6455 case $host_cpu in
6456 ia64*)
6457 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6458 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6459 ;;
6460 hppa*64*)
6461 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]'
6462 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6463 ;;
6464 *)
6465 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6466 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6467 ;;
6468 esac
6469 ;;
6470
6471 interix[3-9]*)
6472 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6474 ;;
6475
6476 irix5* | irix6* | nonstopux*)
6477 case $LD in
6478 *-32|*"-32 ") libmagic=32-bit;;
6479 *-n32|*"-n32 ") libmagic=N32;;
6480 *-64|*"-64 ") libmagic=64-bit;;
6481 *) libmagic=never-match;;
6482 esac
6483 lt_cv_deplibs_check_method=pass_all
6484 ;;
6485
6486 # This must be glibc/ELF.
6487 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6488 lt_cv_deplibs_check_method=pass_all
6489 ;;
6490
6491 *-mlibc)
6492 lt_cv_deplibs_check_method=pass_all
6493 ;;
6494
6495 netbsd* | netbsdelf*-gnu)
6496 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6498 else
6499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6500 fi
6501 ;;
6502
6503 newos6*)
6504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6505 lt_cv_file_magic_cmd=$FILECMD
6506 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6507 ;;
6508
6509 *nto* | *qnx*)
6510 lt_cv_deplibs_check_method=pass_all
6511 ;;
6512
6513 openbsd*)
6514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6516 else
6517 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6518 fi
6519 ;;
6520
6521 osf3* | osf4* | osf5*)
6522 lt_cv_deplibs_check_method=pass_all
6523 ;;
6524
6525 rdos*)
6526 lt_cv_deplibs_check_method=pass_all
6527 ;;
6528
6529 serenity*)
6530 lt_cv_deplibs_check_method=pass_all
6531 ;;
6532
6533 solaris*)
6534 lt_cv_deplibs_check_method=pass_all
6535 ;;
6536
6537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6538 lt_cv_deplibs_check_method=pass_all
6539 ;;
6540
6541 sysv4 | sysv4.3*)
6542 case $host_vendor in
6543 motorola)
6544 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]'
6545 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6546 ;;
6547 ncr)
6548 lt_cv_deplibs_check_method=pass_all
6549 ;;
6550 sequent)
6551 lt_cv_file_magic_cmd='/bin/file'
6552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6553 ;;
6554 sni)
6555 lt_cv_file_magic_cmd='/bin/file'
6556 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6557 lt_cv_file_magic_test_file=/lib/libc.so
6558 ;;
6559 siemens)
6560 lt_cv_deplibs_check_method=pass_all
6561 ;;
6562 pc)
6563 lt_cv_deplibs_check_method=pass_all
6564 ;;
6565 esac
6566 ;;
6567
6568 tpf*)
6569 lt_cv_deplibs_check_method=pass_all
6570 ;;
6571 os2*)
6572 lt_cv_deplibs_check_method=pass_all
6573 ;;
6574 esac
6575 ;;
6576 esac
6577 fi
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6579 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6580
6581 file_magic_glob=
6582 want_nocaseglob=no
6583 if test "$build" = "$host"; then
6584 case $host_os in
6585 mingw* | windows* | pw32*)
6586 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6587 want_nocaseglob=yes
6588 else
6589 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6590 fi
6591 ;;
6592 esac
6593 fi
6594
6595 file_magic_cmd=$lt_cv_file_magic_cmd
6596 deplibs_check_method=$lt_cv_deplibs_check_method
6597 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620 if test -n "$ac_tool_prefix"; then
6621 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6622 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624 printf %s "checking for $ac_word... " >&6; }
6625 if test ${ac_cv_prog_DLLTOOL+y}
6626 then :
6627 printf %s "(cached) " >&6
6628 else case e in #(
6629 e) if test -n "$DLLTOOL"; then
6630 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635 IFS=$as_save_IFS
6636 case $as_dir in #(((
6637 '') as_dir=./ ;;
6638 */) ;;
6639 *) as_dir=$as_dir/ ;;
6640 esac
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6643 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6645 break 2
6646 fi
6647 done
6648 done
6649 IFS=$as_save_IFS
6650
6651 fi ;;
6652 esac
6653 fi
6654 DLLTOOL=$ac_cv_prog_DLLTOOL
6655 if test -n "$DLLTOOL"; then
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6657 printf "%s\n" "$DLLTOOL" >&6; }
6658 else
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 printf "%s\n" "no" >&6; }
6661 fi
6662
6663
6664 fi
6665 if test -z "$ac_cv_prog_DLLTOOL"; then
6666 ac_ct_DLLTOOL=$DLLTOOL
6667 # Extract the first word of "dlltool", so it can be a program name with args.
6668 set dummy dlltool; ac_word=$2
6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 printf %s "checking for $ac_word... " >&6; }
6671 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6672 then :
6673 printf %s "(cached) " >&6
6674 else case e in #(
6675 e) if test -n "$ac_ct_DLLTOOL"; then
6676 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681 IFS=$as_save_IFS
6682 case $as_dir in #(((
6683 '') as_dir=./ ;;
6684 */) ;;
6685 *) as_dir=$as_dir/ ;;
6686 esac
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6689 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6691 break 2
6692 fi
6693 done
6694 done
6695 IFS=$as_save_IFS
6696
6697 fi ;;
6698 esac
6699 fi
6700 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6701 if test -n "$ac_ct_DLLTOOL"; then
6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6703 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6704 else
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 printf "%s\n" "no" >&6; }
6707 fi
6708
6709 if test "x$ac_ct_DLLTOOL" = x; then
6710 DLLTOOL="false"
6711 else
6712 case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6717 esac
6718 DLLTOOL=$ac_ct_DLLTOOL
6719 fi
6720 else
6721 DLLTOOL="$ac_cv_prog_DLLTOOL"
6722 fi
6723
6724 test -z "$DLLTOOL" && DLLTOOL=dlltool
6725
6726
6727
6728
6729
6730
6731
6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6733 printf %s "checking how to associate runtime and link libraries... " >&6; }
6734 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6735 then :
6736 printf %s "(cached) " >&6
6737 else case e in #(
6738 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6739
6740 case $host_os in
6741 cygwin* | mingw* | windows* | pw32* | cegcc*)
6742 # two different shell functions defined in ltmain.sh;
6743 # decide which one to use based on capabilities of $DLLTOOL
6744 case `$DLLTOOL --help 2>&1` in
6745 *--identify-strict*)
6746 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6747 ;;
6748 *)
6749 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6750 ;;
6751 esac
6752 ;;
6753 *)
6754 # fallback: assume linklib IS sharedlib
6755 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6756 ;;
6757 esac
6758 ;;
6759 esac
6760 fi
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6762 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6763 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6764 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6765
6766
6767
6768
6769
6770
6771
6772 if test -n "$ac_tool_prefix"; then
6773 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6774 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 printf %s "checking for $ac_word... " >&6; }
6777 if test ${ac_cv_prog_RANLIB+y}
6778 then :
6779 printf %s "(cached) " >&6
6780 else case e in #(
6781 e) if test -n "$RANLIB"; then
6782 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787 IFS=$as_save_IFS
6788 case $as_dir in #(((
6789 '') as_dir=./ ;;
6790 */) ;;
6791 *) as_dir=$as_dir/ ;;
6792 esac
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6795 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6797 break 2
6798 fi
6799 done
6800 done
6801 IFS=$as_save_IFS
6802
6803 fi ;;
6804 esac
6805 fi
6806 RANLIB=$ac_cv_prog_RANLIB
6807 if test -n "$RANLIB"; then
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6809 printf "%s\n" "$RANLIB" >&6; }
6810 else
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 printf "%s\n" "no" >&6; }
6813 fi
6814
6815
6816 fi
6817 if test -z "$ac_cv_prog_RANLIB"; then
6818 ac_ct_RANLIB=$RANLIB
6819 # Extract the first word of "ranlib", so it can be a program name with args.
6820 set dummy ranlib; ac_word=$2
6821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 printf %s "checking for $ac_word... " >&6; }
6823 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6824 then :
6825 printf %s "(cached) " >&6
6826 else case e in #(
6827 e) if test -n "$ac_ct_RANLIB"; then
6828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833 IFS=$as_save_IFS
6834 case $as_dir in #(((
6835 '') as_dir=./ ;;
6836 */) ;;
6837 *) as_dir=$as_dir/ ;;
6838 esac
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6841 ac_cv_prog_ac_ct_RANLIB="ranlib"
6842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6843 break 2
6844 fi
6845 done
6846 done
6847 IFS=$as_save_IFS
6848
6849 fi ;;
6850 esac
6851 fi
6852 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6853 if test -n "$ac_ct_RANLIB"; then
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6855 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6856 else
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 printf "%s\n" "no" >&6; }
6859 fi
6860
6861 if test "x$ac_ct_RANLIB" = x; then
6862 RANLIB=":"
6863 else
6864 case $cross_compiling:$ac_tool_warned in
6865 yes:)
6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6867 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6868 ac_tool_warned=yes ;;
6869 esac
6870 RANLIB=$ac_ct_RANLIB
6871 fi
6872 else
6873 RANLIB="$ac_cv_prog_RANLIB"
6874 fi
6875
6876 if test -n "$ac_tool_prefix"; then
6877 for ac_prog in ar
6878 do
6879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 printf %s "checking for $ac_word... " >&6; }
6883 if test ${ac_cv_prog_AR+y}
6884 then :
6885 printf %s "(cached) " >&6
6886 else case e in #(
6887 e) if test -n "$AR"; then
6888 ac_cv_prog_AR="$AR" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893 IFS=$as_save_IFS
6894 case $as_dir in #(((
6895 '') as_dir=./ ;;
6896 */) ;;
6897 *) as_dir=$as_dir/ ;;
6898 esac
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909 fi ;;
6910 esac
6911 fi
6912 AR=$ac_cv_prog_AR
6913 if test -n "$AR"; then
6914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6915 printf "%s\n" "$AR" >&6; }
6916 else
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 printf "%s\n" "no" >&6; }
6919 fi
6920
6921
6922 test -n "$AR" && break
6923 done
6924 fi
6925 if test -z "$AR"; then
6926 ac_ct_AR=$AR
6927 for ac_prog in ar
6928 do
6929 # Extract the first word of "$ac_prog", so it can be a program name with args.
6930 set dummy $ac_prog; ac_word=$2
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 printf %s "checking for $ac_word... " >&6; }
6933 if test ${ac_cv_prog_ac_ct_AR+y}
6934 then :
6935 printf %s "(cached) " >&6
6936 else case e in #(
6937 e) if test -n "$ac_ct_AR"; then
6938 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943 IFS=$as_save_IFS
6944 case $as_dir in #(((
6945 '') as_dir=./ ;;
6946 */) ;;
6947 *) as_dir=$as_dir/ ;;
6948 esac
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6951 ac_cv_prog_ac_ct_AR="$ac_prog"
6952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6953 break 2
6954 fi
6955 done
6956 done
6957 IFS=$as_save_IFS
6958
6959 fi ;;
6960 esac
6961 fi
6962 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6963 if test -n "$ac_ct_AR"; then
6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6965 printf "%s\n" "$ac_ct_AR" >&6; }
6966 else
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 printf "%s\n" "no" >&6; }
6969 fi
6970
6971
6972 test -n "$ac_ct_AR" && break
6973 done
6974
6975 if test "x$ac_ct_AR" = x; then
6976 AR="false"
6977 else
6978 case $cross_compiling:$ac_tool_warned in
6979 yes:)
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982 ac_tool_warned=yes ;;
6983 esac
6984 AR=$ac_ct_AR
6985 fi
6986 fi
6987
6988 : ${AR=ar}
6989
6990
6991
6992
6993
6994
6995 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6996 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6997 # higher priority because that's what people were doing historically (setting
6998 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6999 # variable obsoleted/removed.
7000
7001 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7002 lt_ar_flags=$AR_FLAGS
7003
7004
7005
7006
7007
7008
7009 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7010 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7011
7012
7013
7014
7015
7016
7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7018 printf %s "checking for archiver @FILE support... " >&6; }
7019 if test ${lt_cv_ar_at_file+y}
7020 then :
7021 printf %s "(cached) " >&6
7022 else case e in #(
7023 e) lt_cv_ar_at_file=no
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026
7027 int
7028 main (void)
7029 {
7030
7031 ;
7032 return 0;
7033 }
7034 _ACEOF
7035 if ac_fn_c_try_compile "$LINENO"
7036 then :
7037 echo conftest.$ac_objext > conftest.lst
7038 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7040 (eval $lt_ar_try) 2>&5
7041 ac_status=$?
7042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7043 test $ac_status = 0; }
7044 if test 0 -eq "$ac_status"; then
7045 # Ensure the archiver fails upon bogus file names.
7046 rm -f conftest.$ac_objext libconftest.a
7047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7048 (eval $lt_ar_try) 2>&5
7049 ac_status=$?
7050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051 test $ac_status = 0; }
7052 if test 0 -ne "$ac_status"; then
7053 lt_cv_ar_at_file=@
7054 fi
7055 fi
7056 rm -f conftest.* libconftest.a
7057
7058 fi
7059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7060 ;;
7061 esac
7062 fi
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7064 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7065
7066 if test no = "$lt_cv_ar_at_file"; then
7067 archiver_list_spec=
7068 else
7069 archiver_list_spec=$lt_cv_ar_at_file
7070 fi
7071
7072
7073
7074
7075
7076
7077
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}strip; ac_word=$2
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 printf %s "checking for $ac_word... " >&6; }
7083 if test ${ac_cv_prog_STRIP+y}
7084 then :
7085 printf %s "(cached) " >&6
7086 else case e in #(
7087 e) if test -n "$STRIP"; then
7088 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093 IFS=$as_save_IFS
7094 case $as_dir in #(((
7095 '') as_dir=./ ;;
7096 */) ;;
7097 *) as_dir=$as_dir/ ;;
7098 esac
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7101 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109 fi ;;
7110 esac
7111 fi
7112 STRIP=$ac_cv_prog_STRIP
7113 if test -n "$STRIP"; then
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7115 printf "%s\n" "$STRIP" >&6; }
7116 else
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 printf "%s\n" "no" >&6; }
7119 fi
7120
7121
7122 fi
7123 if test -z "$ac_cv_prog_STRIP"; then
7124 ac_ct_STRIP=$STRIP
7125 # Extract the first word of "strip", so it can be a program name with args.
7126 set dummy strip; ac_word=$2
7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 printf %s "checking for $ac_word... " >&6; }
7129 if test ${ac_cv_prog_ac_ct_STRIP+y}
7130 then :
7131 printf %s "(cached) " >&6
7132 else case e in #(
7133 e) if test -n "$ac_ct_STRIP"; then
7134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139 IFS=$as_save_IFS
7140 case $as_dir in #(((
7141 '') as_dir=./ ;;
7142 */) ;;
7143 *) as_dir=$as_dir/ ;;
7144 esac
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7147 ac_cv_prog_ac_ct_STRIP="strip"
7148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7149 break 2
7150 fi
7151 done
7152 done
7153 IFS=$as_save_IFS
7154
7155 fi ;;
7156 esac
7157 fi
7158 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7159 if test -n "$ac_ct_STRIP"; then
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7161 printf "%s\n" "$ac_ct_STRIP" >&6; }
7162 else
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 printf "%s\n" "no" >&6; }
7165 fi
7166
7167 if test "x$ac_ct_STRIP" = x; then
7168 STRIP=":"
7169 else
7170 case $cross_compiling:$ac_tool_warned in
7171 yes:)
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7173 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7174 ac_tool_warned=yes ;;
7175 esac
7176 STRIP=$ac_ct_STRIP
7177 fi
7178 else
7179 STRIP="$ac_cv_prog_STRIP"
7180 fi
7181
7182 test -z "$STRIP" && STRIP=:
7183
7184
7185
7186
7187
7188
7189
7190 test -z "$RANLIB" && RANLIB=:
7191
7192
7193
7194
7195
7196
7197 # Determine commands to create old-style static archives.
7198 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7199 old_postinstall_cmds='chmod 644 $oldlib'
7200 old_postuninstall_cmds=
7201
7202 if test -n "$RANLIB"; then
7203 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7205 fi
7206
7207 case $host_os in
7208 darwin*)
7209 lock_old_archive_extraction=yes ;;
7210 *)
7211 lock_old_archive_extraction=no ;;
7212 esac
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252 # If no C compiler was specified, use CC.
7253 LTCC=${LTCC-"$CC"}
7254
7255 # If no C compiler flags were specified, use CFLAGS.
7256 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7257
7258 # Allow CC to be a program name with arguments.
7259 compiler=$CC
7260
7261
7262 # Check for command to grab the raw symbol name followed by C symbol from nm.
7263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7264 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7265 if test ${lt_cv_sys_global_symbol_pipe+y}
7266 then :
7267 printf %s "(cached) " >&6
7268 else case e in #(
7269 e)
7270 # These are sane defaults that work on at least a few old systems.
7271 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7272
7273 # Character class describing NM global symbol codes.
7274 symcode='[BCDEGRST]'
7275
7276 # Regexp to match symbols that can be accessed directly from C.
7277 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7278
7279 # Define system-specific variables.
7280 case $host_os in
7281 aix*)
7282 symcode='[BCDT]'
7283 ;;
7284 cygwin* | mingw* | windows* | pw32* | cegcc*)
7285 symcode='[ABCDGISTW]'
7286 ;;
7287 hpux*)
7288 if test ia64 = "$host_cpu"; then
7289 symcode='[ABCDEGRST]'
7290 fi
7291 ;;
7292 irix* | nonstopux*)
7293 symcode='[BCDEGRST]'
7294 ;;
7295 osf*)
7296 symcode='[BCDEGQRST]'
7297 ;;
7298 solaris*)
7299 symcode='[BCDRT]'
7300 ;;
7301 sco3.2v5*)
7302 symcode='[DT]'
7303 ;;
7304 sysv4.2uw2*)
7305 symcode='[DT]'
7306 ;;
7307 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7308 symcode='[ABDT]'
7309 ;;
7310 sysv4)
7311 symcode='[DFNSTU]'
7312 ;;
7313 esac
7314
7315 # If we're using GNU nm, then use its standard symbol codes.
7316 case `$NM -V 2>&1` in
7317 *GNU* | *'with BFD'*)
7318 symcode='[ABCDGIRSTW]' ;;
7319 esac
7320
7321 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7322 # Gets list of data symbols to import.
7323 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7324 # Adjust the below global symbol transforms to fixup imported variables.
7325 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7326 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7327 lt_c_name_lib_hook="\
7328 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7329 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7330 else
7331 # Disable hooks by default.
7332 lt_cv_sys_global_symbol_to_import=
7333 lt_cdecl_hook=
7334 lt_c_name_hook=
7335 lt_c_name_lib_hook=
7336 fi
7337
7338 # Transform an extracted symbol line into a proper C declaration.
7339 # Some systems (esp. on ia64) link data and code symbols differently,
7340 # so use this general approach.
7341 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7342 $lt_cdecl_hook\
7343 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7344 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7345
7346 # Transform an extracted symbol line into symbol name and symbol address
7347 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7348 $lt_c_name_hook\
7349 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7350 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7351
7352 # Transform an extracted symbol line into symbol name with lib prefix and
7353 # symbol address.
7354 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7355 $lt_c_name_lib_hook\
7356 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7357 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7358 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7359
7360 # Handle CRLF in mingw tool chain
7361 opt_cr=
7362 case $build_os in
7363 mingw* | windows*)
7364 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7365 ;;
7366 esac
7367
7368 # Try without a prefix underscore, then with it.
7369 for ac_symprfx in "" "_"; do
7370
7371 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7372 symxfrm="\\1 $ac_symprfx\\2 \\2"
7373
7374 # Write the raw and C identifiers.
7375 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7376 # Fake it for dumpbin and say T for any non-static function,
7377 # D for any global variable and I for any imported variable.
7378 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7379 # which start with @ or ?.
7380 lt_cv_sys_global_symbol_pipe="$AWK '"\
7381 " {last_section=section; section=\$ 3};"\
7382 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7383 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7384 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7385 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7386 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7387 " \$ 0!~/External *\|/{next};"\
7388 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7389 " {if(hide[section]) next};"\
7390 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7391 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7392 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7393 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7394 " ' prfx=^$ac_symprfx"
7395 else
7396 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7397 fi
7398 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7399
7400 # Check to see that the pipe works correctly.
7401 pipe_works=no
7402
7403 rm -f conftest*
7404 cat > conftest.$ac_ext <<_LT_EOF
7405 #ifdef __cplusplus
7406 extern "C" {
7407 #endif
7408 char nm_test_var;
7409 void nm_test_func(void);
7410 void nm_test_func(void){}
7411 #ifdef __cplusplus
7412 }
7413 #endif
7414 int main(void){nm_test_var='a';nm_test_func();return(0);}
7415 _LT_EOF
7416
7417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7418 (eval $ac_compile) 2>&5
7419 ac_status=$?
7420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421 test $ac_status = 0; }; then
7422 # Now try to grab the symbols.
7423 nlist=conftest.nm
7424 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7425 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7426 # Try sorting and uniquifying the output.
7427 if sort "$nlist" | uniq > "$nlist"T; then
7428 mv -f "$nlist"T "$nlist"
7429 else
7430 rm -f "$nlist"T
7431 fi
7432
7433 # Make sure that we snagged all the symbols we need.
7434 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7435 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7436 cat <<_LT_EOF > conftest.$ac_ext
7437 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7438 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7439 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7440 relocations are performed -- see ld's documentation on pseudo-relocs. */
7441 # define LT_DLSYM_CONST
7442 #elif defined __osf__
7443 /* This system does not cope well with relocations in const data. */
7444 # define LT_DLSYM_CONST
7445 #else
7446 # define LT_DLSYM_CONST const
7447 #endif
7448
7449 #ifdef __cplusplus
7450 extern "C" {
7451 #endif
7452
7453 _LT_EOF
7454 # Now generate the symbol file.
7455 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7456
7457 cat <<_LT_EOF >> conftest.$ac_ext
7458
7459 /* The mapping between symbol names and symbols. */
7460 LT_DLSYM_CONST struct {
7461 const char *name;
7462 void *address;
7463 }
7464 lt__PROGRAM__LTX_preloaded_symbols[] =
7465 {
7466 { "@PROGRAM@", (void *) 0 },
7467 _LT_EOF
7468 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7469 cat <<\_LT_EOF >> conftest.$ac_ext
7470 {0, (void *) 0}
7471 };
7472
7473 /* This works around a problem in FreeBSD linker */
7474 #ifdef FREEBSD_WORKAROUND
7475 static const void *lt_preloaded_setup() {
7476 return lt__PROGRAM__LTX_preloaded_symbols;
7477 }
7478 #endif
7479
7480 #ifdef __cplusplus
7481 }
7482 #endif
7483 _LT_EOF
7484 # Now try linking the two files.
7485 mv conftest.$ac_objext conftstm.$ac_objext
7486 lt_globsym_save_LIBS=$LIBS
7487 lt_globsym_save_CFLAGS=$CFLAGS
7488 LIBS=conftstm.$ac_objext
7489 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7491 (eval $ac_link) 2>&5
7492 ac_status=$?
7493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7494 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7495 pipe_works=yes
7496 fi
7497 LIBS=$lt_globsym_save_LIBS
7498 CFLAGS=$lt_globsym_save_CFLAGS
7499 else
7500 echo "cannot find nm_test_func in $nlist" >&5
7501 fi
7502 else
7503 echo "cannot find nm_test_var in $nlist" >&5
7504 fi
7505 else
7506 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7507 fi
7508 else
7509 echo "$progname: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7511 fi
7512 rm -rf conftest* conftst*
7513
7514 # Do not use the global_symbol_pipe unless it works.
7515 if test yes = "$pipe_works"; then
7516 break
7517 else
7518 lt_cv_sys_global_symbol_pipe=
7519 fi
7520 done
7521 ;;
7522 esac
7523 fi
7524
7525 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7526 lt_cv_sys_global_symbol_to_cdecl=
7527 fi
7528 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7530 printf "%s\n" "failed" >&6; }
7531 else
7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7533 printf "%s\n" "ok" >&6; }
7534 fi
7535
7536 # Response file support.
7537 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7538 nm_file_list_spec='@'
7539 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7540 nm_file_list_spec='@'
7541 fi
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7580 printf %s "checking for sysroot... " >&6; }
7581
7582 # Check whether --with-sysroot was given.
7583 if test ${with_sysroot+y}
7584 then :
7585 withval=$with_sysroot;
7586 else case e in #(
7587 e) with_sysroot=no ;;
7588 esac
7589 fi
7590
7591
7592 lt_sysroot=
7593 case $with_sysroot in #(
7594 yes)
7595 if test yes = "$GCC"; then
7596 # Trim trailing / since we'll always append absolute paths and we want
7597 # to avoid //, if only for less confusing output for the user.
7598 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7599 fi
7600 ;; #(
7601 /*)
7602 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7603 ;; #(
7604 no|'')
7605 ;; #(
7606 *)
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7608 printf "%s\n" "$with_sysroot" >&6; }
7609 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7610 ;;
7611 esac
7612
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7614 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7615
7616
7617
7618
7619
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7621 printf %s "checking for a working dd... " >&6; }
7622 if test ${ac_cv_path_lt_DD+y}
7623 then :
7624 printf %s "(cached) " >&6
7625 else case e in #(
7626 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7627 cat conftest.i conftest.i >conftest2.i
7628 : ${lt_DD:=$DD}
7629 if test -z "$lt_DD"; then
7630 ac_path_lt_DD_found=false
7631 # Loop through the user's path and test for each of PROGNAME-LIST
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7634 do
7635 IFS=$as_save_IFS
7636 case $as_dir in #(((
7637 '') as_dir=./ ;;
7638 */) ;;
7639 *) as_dir=$as_dir/ ;;
7640 esac
7641 for ac_prog in dd
7642 do
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7645 as_fn_executable_p "$ac_path_lt_DD" || continue
7646 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7647 cmp -s conftest.i conftest.out \
7648 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7649 fi
7650 $ac_path_lt_DD_found && break 3
7651 done
7652 done
7653 done
7654 IFS=$as_save_IFS
7655 if test -z "$ac_cv_path_lt_DD"; then
7656 :
7657 fi
7658 else
7659 ac_cv_path_lt_DD=$lt_DD
7660 fi
7661
7662 rm -f conftest.i conftest2.i conftest.out ;;
7663 esac
7664 fi
7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7666 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7667
7668
7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7670 printf %s "checking how to truncate binary pipes... " >&6; }
7671 if test ${lt_cv_truncate_bin+y}
7672 then :
7673 printf %s "(cached) " >&6
7674 else case e in #(
7675 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7676 cat conftest.i conftest.i >conftest2.i
7677 lt_cv_truncate_bin=
7678 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7679 cmp -s conftest.i conftest.out \
7680 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7681 fi
7682 rm -f conftest.i conftest2.i conftest.out
7683 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7684 esac
7685 fi
7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7687 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7688
7689
7690
7691
7692
7693
7694
7695 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7696 func_cc_basename ()
7697 {
7698 for cc_temp in $*""; do
7699 case $cc_temp in
7700 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7701 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7702 \-*) ;;
7703 *) break;;
7704 esac
7705 done
7706 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7707 }
7708
7709 # Check whether --enable-libtool-lock was given.
7710 if test ${enable_libtool_lock+y}
7711 then :
7712 enableval=$enable_libtool_lock;
7713 fi
7714
7715 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7716
7717 # Some flags need to be propagated to the compiler or linker for good
7718 # libtool support.
7719 case $host in
7720 ia64-*-hpux*)
7721 # Find out what ABI is being produced by ac_compile, and set mode
7722 # options accordingly.
7723 echo 'int i;' > conftest.$ac_ext
7724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7725 (eval $ac_compile) 2>&5
7726 ac_status=$?
7727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7728 test $ac_status = 0; }; then
7729 case `$FILECMD conftest.$ac_objext` in
7730 *ELF-32*)
7731 HPUX_IA64_MODE=32
7732 ;;
7733 *ELF-64*)
7734 HPUX_IA64_MODE=64
7735 ;;
7736 esac
7737 fi
7738 rm -rf conftest*
7739 ;;
7740 *-*-irix6*)
7741 # Find out what ABI is being produced by ac_compile, and set linker
7742 # options accordingly.
7743 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7745 (eval $ac_compile) 2>&5
7746 ac_status=$?
7747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7748 test $ac_status = 0; }; then
7749 if test yes = "$lt_cv_prog_gnu_ld"; then
7750 case `$FILECMD conftest.$ac_objext` in
7751 *32-bit*)
7752 LD="${LD-ld} -melf32bsmip"
7753 ;;
7754 *N32*)
7755 LD="${LD-ld} -melf32bmipn32"
7756 ;;
7757 *64-bit*)
7758 LD="${LD-ld} -melf64bmip"
7759 ;;
7760 esac
7761 else
7762 case `$FILECMD conftest.$ac_objext` in
7763 *32-bit*)
7764 LD="${LD-ld} -32"
7765 ;;
7766 *N32*)
7767 LD="${LD-ld} -n32"
7768 ;;
7769 *64-bit*)
7770 LD="${LD-ld} -64"
7771 ;;
7772 esac
7773 fi
7774 fi
7775 rm -rf conftest*
7776 ;;
7777
7778 mips64*-*linux*)
7779 # Find out what ABI is being produced by ac_compile, and set linker
7780 # options accordingly.
7781 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7783 (eval $ac_compile) 2>&5
7784 ac_status=$?
7785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786 test $ac_status = 0; }; then
7787 emul=elf
7788 case `$FILECMD conftest.$ac_objext` in
7789 *32-bit*)
7790 emul="${emul}32"
7791 ;;
7792 *64-bit*)
7793 emul="${emul}64"
7794 ;;
7795 esac
7796 case `$FILECMD conftest.$ac_objext` in
7797 *MSB*)
7798 emul="${emul}btsmip"
7799 ;;
7800 *LSB*)
7801 emul="${emul}ltsmip"
7802 ;;
7803 esac
7804 case `$FILECMD conftest.$ac_objext` in
7805 *N32*)
7806 emul="${emul}n32"
7807 ;;
7808 esac
7809 LD="${LD-ld} -m $emul"
7810 fi
7811 rm -rf conftest*
7812 ;;
7813
7814 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7815 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7816 # Find out what ABI is being produced by ac_compile, and set linker
7817 # options accordingly. Note that the listed cases only cover the
7818 # situations where additional linker options are needed (such as when
7819 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7820 # vice versa); the common cases where no linker options are needed do
7821 # not appear in the list.
7822 echo 'int i;' > conftest.$ac_ext
7823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7824 (eval $ac_compile) 2>&5
7825 ac_status=$?
7826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827 test $ac_status = 0; }; then
7828 case `$FILECMD conftest.o` in
7829 *32-bit*)
7830 case $host in
7831 x86_64-*kfreebsd*-gnu)
7832 LD="${LD-ld} -m elf_i386_fbsd"
7833 ;;
7834 x86_64-*linux*|x86_64-gnu*)
7835 case `$FILECMD conftest.o` in
7836 *x86-64*)
7837 LD="${LD-ld} -m elf32_x86_64"
7838 ;;
7839 *)
7840 LD="${LD-ld} -m elf_i386"
7841 ;;
7842 esac
7843 ;;
7844 powerpc64le-*linux*)
7845 LD="${LD-ld} -m elf32lppclinux"
7846 ;;
7847 powerpc64-*linux*)
7848 LD="${LD-ld} -m elf32ppclinux"
7849 ;;
7850 s390x-*linux*)
7851 LD="${LD-ld} -m elf_s390"
7852 ;;
7853 sparc64-*linux*)
7854 LD="${LD-ld} -m elf32_sparc"
7855 ;;
7856 esac
7857 ;;
7858 *64-bit*)
7859 case $host in
7860 x86_64-*kfreebsd*-gnu)
7861 LD="${LD-ld} -m elf_x86_64_fbsd"
7862 ;;
7863 x86_64-*linux*|x86_64-gnu*)
7864 LD="${LD-ld} -m elf_x86_64"
7865 ;;
7866 powerpcle-*linux*)
7867 LD="${LD-ld} -m elf64lppc"
7868 ;;
7869 powerpc-*linux*)
7870 LD="${LD-ld} -m elf64ppc"
7871 ;;
7872 s390*-*linux*|s390*-*tpf*)
7873 LD="${LD-ld} -m elf64_s390"
7874 ;;
7875 sparc*-*linux*)
7876 LD="${LD-ld} -m elf64_sparc"
7877 ;;
7878 esac
7879 ;;
7880 esac
7881 fi
7882 rm -rf conftest*
7883 ;;
7884
7885 *-*-sco3.2v5*)
7886 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7887 SAVE_CFLAGS=$CFLAGS
7888 CFLAGS="$CFLAGS -belf"
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7890 printf %s "checking whether the C compiler needs -belf... " >&6; }
7891 if test ${lt_cv_cc_needs_belf+y}
7892 then :
7893 printf %s "(cached) " >&6
7894 else case e in #(
7895 e) ac_ext=c
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7903
7904 int
7905 main (void)
7906 {
7907
7908 ;
7909 return 0;
7910 }
7911 _ACEOF
7912 if ac_fn_c_try_link "$LINENO"
7913 then :
7914 lt_cv_cc_needs_belf=yes
7915 else case e in #(
7916 e) lt_cv_cc_needs_belf=no ;;
7917 esac
7918 fi
7919 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7920 conftest$ac_exeext conftest.$ac_ext
7921 ac_ext=c
7922 ac_cpp='$CPP $CPPFLAGS'
7923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926 ;;
7927 esac
7928 fi
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7930 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7931 if test yes != "$lt_cv_cc_needs_belf"; then
7932 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7933 CFLAGS=$SAVE_CFLAGS
7934 fi
7935 ;;
7936 *-*solaris*)
7937 # Find out what ABI is being produced by ac_compile, and set linker
7938 # options accordingly.
7939 echo 'int i;' > conftest.$ac_ext
7940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7941 (eval $ac_compile) 2>&5
7942 ac_status=$?
7943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7944 test $ac_status = 0; }; then
7945 case `$FILECMD conftest.o` in
7946 *64-bit*)
7947 case $lt_cv_prog_gnu_ld in
7948 yes*)
7949 case $host in
7950 i?86-*-solaris*|x86_64-*-solaris*)
7951 LD="${LD-ld} -m elf_x86_64"
7952 ;;
7953 sparc*-*-solaris*)
7954 LD="${LD-ld} -m elf64_sparc"
7955 ;;
7956 esac
7957 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7958 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7959 LD=${LD-ld}_sol2
7960 fi
7961 ;;
7962 *)
7963 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7964 LD="${LD-ld} -64"
7965 fi
7966 ;;
7967 esac
7968 ;;
7969 esac
7970 fi
7971 rm -rf conftest*
7972 ;;
7973 esac
7974
7975 need_locks=$enable_libtool_lock
7976
7977 if test -n "$ac_tool_prefix"; then
7978 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7979 set dummy ${ac_tool_prefix}mt; ac_word=$2
7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 printf %s "checking for $ac_word... " >&6; }
7982 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7983 then :
7984 printf %s "(cached) " >&6
7985 else case e in #(
7986 e) if test -n "$MANIFEST_TOOL"; then
7987 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7988 else
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7991 do
7992 IFS=$as_save_IFS
7993 case $as_dir in #(((
7994 '') as_dir=./ ;;
7995 */) ;;
7996 *) as_dir=$as_dir/ ;;
7997 esac
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8000 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8002 break 2
8003 fi
8004 done
8005 done
8006 IFS=$as_save_IFS
8007
8008 fi ;;
8009 esac
8010 fi
8011 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8012 if test -n "$MANIFEST_TOOL"; then
8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8014 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8015 else
8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 printf "%s\n" "no" >&6; }
8018 fi
8019
8020
8021 fi
8022 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8023 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8024 # Extract the first word of "mt", so it can be a program name with args.
8025 set dummy mt; ac_word=$2
8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027 printf %s "checking for $ac_word... " >&6; }
8028 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8029 then :
8030 printf %s "(cached) " >&6
8031 else case e in #(
8032 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8033 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8037 do
8038 IFS=$as_save_IFS
8039 case $as_dir in #(((
8040 '') as_dir=./ ;;
8041 */) ;;
8042 *) as_dir=$as_dir/ ;;
8043 esac
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8046 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8048 break 2
8049 fi
8050 done
8051 done
8052 IFS=$as_save_IFS
8053
8054 fi ;;
8055 esac
8056 fi
8057 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8058 if test -n "$ac_ct_MANIFEST_TOOL"; then
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8060 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8061 else
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 printf "%s\n" "no" >&6; }
8064 fi
8065
8066 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8067 MANIFEST_TOOL=":"
8068 else
8069 case $cross_compiling:$ac_tool_warned in
8070 yes:)
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8072 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8073 ac_tool_warned=yes ;;
8074 esac
8075 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8076 fi
8077 else
8078 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8079 fi
8080
8081 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8083 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8084 if test ${lt_cv_path_manifest_tool+y}
8085 then :
8086 printf %s "(cached) " >&6
8087 else case e in #(
8088 e) lt_cv_path_manifest_tool=no
8089 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8090 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8091 cat conftest.err >&5
8092 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8093 lt_cv_path_manifest_tool=yes
8094 fi
8095 rm -f conftest* ;;
8096 esac
8097 fi
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8099 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8100 if test yes != "$lt_cv_path_manifest_tool"; then
8101 MANIFEST_TOOL=:
8102 fi
8103
8104
8105
8106
8107
8108
8109 case $host_os in
8110 rhapsody* | darwin*)
8111 if test -n "$ac_tool_prefix"; then
8112 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8113 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 printf %s "checking for $ac_word... " >&6; }
8116 if test ${ac_cv_prog_DSYMUTIL+y}
8117 then :
8118 printf %s "(cached) " >&6
8119 else case e in #(
8120 e) if test -n "$DSYMUTIL"; then
8121 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126 IFS=$as_save_IFS
8127 case $as_dir in #(((
8128 '') as_dir=./ ;;
8129 */) ;;
8130 *) as_dir=$as_dir/ ;;
8131 esac
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8134 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8136 break 2
8137 fi
8138 done
8139 done
8140 IFS=$as_save_IFS
8141
8142 fi ;;
8143 esac
8144 fi
8145 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8146 if test -n "$DSYMUTIL"; then
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8148 printf "%s\n" "$DSYMUTIL" >&6; }
8149 else
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 printf "%s\n" "no" >&6; }
8152 fi
8153
8154
8155 fi
8156 if test -z "$ac_cv_prog_DSYMUTIL"; then
8157 ac_ct_DSYMUTIL=$DSYMUTIL
8158 # Extract the first word of "dsymutil", so it can be a program name with args.
8159 set dummy dsymutil; ac_word=$2
8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 printf %s "checking for $ac_word... " >&6; }
8162 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8163 then :
8164 printf %s "(cached) " >&6
8165 else case e in #(
8166 e) if test -n "$ac_ct_DSYMUTIL"; then
8167 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8171 do
8172 IFS=$as_save_IFS
8173 case $as_dir in #(((
8174 '') as_dir=./ ;;
8175 */) ;;
8176 *) as_dir=$as_dir/ ;;
8177 esac
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8180 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8182 break 2
8183 fi
8184 done
8185 done
8186 IFS=$as_save_IFS
8187
8188 fi ;;
8189 esac
8190 fi
8191 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8192 if test -n "$ac_ct_DSYMUTIL"; then
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8194 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8195 else
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 printf "%s\n" "no" >&6; }
8198 fi
8199
8200 if test "x$ac_ct_DSYMUTIL" = x; then
8201 DSYMUTIL=":"
8202 else
8203 case $cross_compiling:$ac_tool_warned in
8204 yes:)
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8206 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8207 ac_tool_warned=yes ;;
8208 esac
8209 DSYMUTIL=$ac_ct_DSYMUTIL
8210 fi
8211 else
8212 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8213 fi
8214
8215 if test -n "$ac_tool_prefix"; then
8216 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8217 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 printf %s "checking for $ac_word... " >&6; }
8220 if test ${ac_cv_prog_NMEDIT+y}
8221 then :
8222 printf %s "(cached) " >&6
8223 else case e in #(
8224 e) if test -n "$NMEDIT"; then
8225 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8226 else
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8229 do
8230 IFS=$as_save_IFS
8231 case $as_dir in #(((
8232 '') as_dir=./ ;;
8233 */) ;;
8234 *) as_dir=$as_dir/ ;;
8235 esac
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8238 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8240 break 2
8241 fi
8242 done
8243 done
8244 IFS=$as_save_IFS
8245
8246 fi ;;
8247 esac
8248 fi
8249 NMEDIT=$ac_cv_prog_NMEDIT
8250 if test -n "$NMEDIT"; then
8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8252 printf "%s\n" "$NMEDIT" >&6; }
8253 else
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 printf "%s\n" "no" >&6; }
8256 fi
8257
8258
8259 fi
8260 if test -z "$ac_cv_prog_NMEDIT"; then
8261 ac_ct_NMEDIT=$NMEDIT
8262 # Extract the first word of "nmedit", so it can be a program name with args.
8263 set dummy nmedit; ac_word=$2
8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265 printf %s "checking for $ac_word... " >&6; }
8266 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8267 then :
8268 printf %s "(cached) " >&6
8269 else case e in #(
8270 e) if test -n "$ac_ct_NMEDIT"; then
8271 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276 IFS=$as_save_IFS
8277 case $as_dir in #(((
8278 '') as_dir=./ ;;
8279 */) ;;
8280 *) as_dir=$as_dir/ ;;
8281 esac
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8284 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8286 break 2
8287 fi
8288 done
8289 done
8290 IFS=$as_save_IFS
8291
8292 fi ;;
8293 esac
8294 fi
8295 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8296 if test -n "$ac_ct_NMEDIT"; then
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8298 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8299 else
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 printf "%s\n" "no" >&6; }
8302 fi
8303
8304 if test "x$ac_ct_NMEDIT" = x; then
8305 NMEDIT=":"
8306 else
8307 case $cross_compiling:$ac_tool_warned in
8308 yes:)
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8310 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8311 ac_tool_warned=yes ;;
8312 esac
8313 NMEDIT=$ac_ct_NMEDIT
8314 fi
8315 else
8316 NMEDIT="$ac_cv_prog_NMEDIT"
8317 fi
8318
8319 if test -n "$ac_tool_prefix"; then
8320 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8321 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 printf %s "checking for $ac_word... " >&6; }
8324 if test ${ac_cv_prog_LIPO+y}
8325 then :
8326 printf %s "(cached) " >&6
8327 else case e in #(
8328 e) if test -n "$LIPO"; then
8329 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8330 else
8331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332 for as_dir in $PATH
8333 do
8334 IFS=$as_save_IFS
8335 case $as_dir in #(((
8336 '') as_dir=./ ;;
8337 */) ;;
8338 *) as_dir=$as_dir/ ;;
8339 esac
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8344 break 2
8345 fi
8346 done
8347 done
8348 IFS=$as_save_IFS
8349
8350 fi ;;
8351 esac
8352 fi
8353 LIPO=$ac_cv_prog_LIPO
8354 if test -n "$LIPO"; then
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8356 printf "%s\n" "$LIPO" >&6; }
8357 else
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 printf "%s\n" "no" >&6; }
8360 fi
8361
8362
8363 fi
8364 if test -z "$ac_cv_prog_LIPO"; then
8365 ac_ct_LIPO=$LIPO
8366 # Extract the first word of "lipo", so it can be a program name with args.
8367 set dummy lipo; ac_word=$2
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 printf %s "checking for $ac_word... " >&6; }
8370 if test ${ac_cv_prog_ac_ct_LIPO+y}
8371 then :
8372 printf %s "(cached) " >&6
8373 else case e in #(
8374 e) if test -n "$ac_ct_LIPO"; then
8375 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8376 else
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8379 do
8380 IFS=$as_save_IFS
8381 case $as_dir in #(((
8382 '') as_dir=./ ;;
8383 */) ;;
8384 *) as_dir=$as_dir/ ;;
8385 esac
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8388 ac_cv_prog_ac_ct_LIPO="lipo"
8389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8390 break 2
8391 fi
8392 done
8393 done
8394 IFS=$as_save_IFS
8395
8396 fi ;;
8397 esac
8398 fi
8399 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8400 if test -n "$ac_ct_LIPO"; then
8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8402 printf "%s\n" "$ac_ct_LIPO" >&6; }
8403 else
8404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 printf "%s\n" "no" >&6; }
8406 fi
8407
8408 if test "x$ac_ct_LIPO" = x; then
8409 LIPO=":"
8410 else
8411 case $cross_compiling:$ac_tool_warned in
8412 yes:)
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8414 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8415 ac_tool_warned=yes ;;
8416 esac
8417 LIPO=$ac_ct_LIPO
8418 fi
8419 else
8420 LIPO="$ac_cv_prog_LIPO"
8421 fi
8422
8423 if test -n "$ac_tool_prefix"; then
8424 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8425 set dummy ${ac_tool_prefix}otool; ac_word=$2
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427 printf %s "checking for $ac_word... " >&6; }
8428 if test ${ac_cv_prog_OTOOL+y}
8429 then :
8430 printf %s "(cached) " >&6
8431 else case e in #(
8432 e) if test -n "$OTOOL"; then
8433 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8437 do
8438 IFS=$as_save_IFS
8439 case $as_dir in #(((
8440 '') as_dir=./ ;;
8441 */) ;;
8442 *) as_dir=$as_dir/ ;;
8443 esac
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8446 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8448 break 2
8449 fi
8450 done
8451 done
8452 IFS=$as_save_IFS
8453
8454 fi ;;
8455 esac
8456 fi
8457 OTOOL=$ac_cv_prog_OTOOL
8458 if test -n "$OTOOL"; then
8459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8460 printf "%s\n" "$OTOOL" >&6; }
8461 else
8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 printf "%s\n" "no" >&6; }
8464 fi
8465
8466
8467 fi
8468 if test -z "$ac_cv_prog_OTOOL"; then
8469 ac_ct_OTOOL=$OTOOL
8470 # Extract the first word of "otool", so it can be a program name with args.
8471 set dummy otool; ac_word=$2
8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8473 printf %s "checking for $ac_word... " >&6; }
8474 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8475 then :
8476 printf %s "(cached) " >&6
8477 else case e in #(
8478 e) if test -n "$ac_ct_OTOOL"; then
8479 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8480 else
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH
8483 do
8484 IFS=$as_save_IFS
8485 case $as_dir in #(((
8486 '') as_dir=./ ;;
8487 */) ;;
8488 *) as_dir=$as_dir/ ;;
8489 esac
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8492 ac_cv_prog_ac_ct_OTOOL="otool"
8493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8494 break 2
8495 fi
8496 done
8497 done
8498 IFS=$as_save_IFS
8499
8500 fi ;;
8501 esac
8502 fi
8503 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8504 if test -n "$ac_ct_OTOOL"; then
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8506 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8507 else
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 printf "%s\n" "no" >&6; }
8510 fi
8511
8512 if test "x$ac_ct_OTOOL" = x; then
8513 OTOOL=":"
8514 else
8515 case $cross_compiling:$ac_tool_warned in
8516 yes:)
8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8518 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8519 ac_tool_warned=yes ;;
8520 esac
8521 OTOOL=$ac_ct_OTOOL
8522 fi
8523 else
8524 OTOOL="$ac_cv_prog_OTOOL"
8525 fi
8526
8527 if test -n "$ac_tool_prefix"; then
8528 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8529 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8531 printf %s "checking for $ac_word... " >&6; }
8532 if test ${ac_cv_prog_OTOOL64+y}
8533 then :
8534 printf %s "(cached) " >&6
8535 else case e in #(
8536 e) if test -n "$OTOOL64"; then
8537 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8538 else
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8541 do
8542 IFS=$as_save_IFS
8543 case $as_dir in #(((
8544 '') as_dir=./ ;;
8545 */) ;;
8546 *) as_dir=$as_dir/ ;;
8547 esac
8548 for ac_exec_ext in '' $ac_executable_extensions; do
8549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8550 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8552 break 2
8553 fi
8554 done
8555 done
8556 IFS=$as_save_IFS
8557
8558 fi ;;
8559 esac
8560 fi
8561 OTOOL64=$ac_cv_prog_OTOOL64
8562 if test -n "$OTOOL64"; then
8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8564 printf "%s\n" "$OTOOL64" >&6; }
8565 else
8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 printf "%s\n" "no" >&6; }
8568 fi
8569
8570
8571 fi
8572 if test -z "$ac_cv_prog_OTOOL64"; then
8573 ac_ct_OTOOL64=$OTOOL64
8574 # Extract the first word of "otool64", so it can be a program name with args.
8575 set dummy otool64; ac_word=$2
8576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8577 printf %s "checking for $ac_word... " >&6; }
8578 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8579 then :
8580 printf %s "(cached) " >&6
8581 else case e in #(
8582 e) if test -n "$ac_ct_OTOOL64"; then
8583 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8584 else
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8587 do
8588 IFS=$as_save_IFS
8589 case $as_dir in #(((
8590 '') as_dir=./ ;;
8591 */) ;;
8592 *) as_dir=$as_dir/ ;;
8593 esac
8594 for ac_exec_ext in '' $ac_executable_extensions; do
8595 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8596 ac_cv_prog_ac_ct_OTOOL64="otool64"
8597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8598 break 2
8599 fi
8600 done
8601 done
8602 IFS=$as_save_IFS
8603
8604 fi ;;
8605 esac
8606 fi
8607 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8608 if test -n "$ac_ct_OTOOL64"; then
8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8610 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8611 else
8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 printf "%s\n" "no" >&6; }
8614 fi
8615
8616 if test "x$ac_ct_OTOOL64" = x; then
8617 OTOOL64=":"
8618 else
8619 case $cross_compiling:$ac_tool_warned in
8620 yes:)
8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8622 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8623 ac_tool_warned=yes ;;
8624 esac
8625 OTOOL64=$ac_ct_OTOOL64
8626 fi
8627 else
8628 OTOOL64="$ac_cv_prog_OTOOL64"
8629 fi
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8658 printf %s "checking for -single_module linker flag... " >&6; }
8659 if test ${lt_cv_apple_cc_single_mod+y}
8660 then :
8661 printf %s "(cached) " >&6
8662 else case e in #(
8663 e) lt_cv_apple_cc_single_mod=no
8664 if test -z "$LT_MULTI_MODULE"; then
8665 # By default we will add the -single_module flag. You can override
8666 # by either setting the environment variable LT_MULTI_MODULE
8667 # non-empty at configure time, or by adding -multi_module to the
8668 # link flags.
8669 rm -rf libconftest.dylib*
8670 echo "int foo(void){return 1;}" > conftest.c
8671 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8672 -dynamiclib -Wl,-single_module conftest.c" >&5
8673 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8674 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8675 _lt_result=$?
8676 # If there is a non-empty error log, and "single_module"
8677 # appears in it, assume the flag caused a linker warning
8678 if test -s conftest.err && $GREP single_module conftest.err; then
8679 cat conftest.err >&5
8680 # Otherwise, if the output was created with a 0 exit code from
8681 # the compiler, it worked.
8682 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8683 lt_cv_apple_cc_single_mod=yes
8684 else
8685 cat conftest.err >&5
8686 fi
8687 rm -rf libconftest.dylib*
8688 rm -f conftest.*
8689 fi ;;
8690 esac
8691 fi
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8693 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8694
8695 # Feature test to disable chained fixups since it is not
8696 # compatible with '-undefined dynamic_lookup'
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8698 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8699 if test ${lt_cv_support_no_fixup_chains+y}
8700 then :
8701 printf %s "(cached) " >&6
8702 else case e in #(
8703 e) save_LDFLAGS=$LDFLAGS
8704 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8707
8708 int
8709 main (void)
8710 {
8711
8712 ;
8713 return 0;
8714 }
8715 _ACEOF
8716 if ac_fn_c_try_link "$LINENO"
8717 then :
8718 lt_cv_support_no_fixup_chains=yes
8719 else case e in #(
8720 e) lt_cv_support_no_fixup_chains=no
8721 ;;
8722 esac
8723 fi
8724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8725 conftest$ac_exeext conftest.$ac_ext
8726 LDFLAGS=$save_LDFLAGS
8727
8728 ;;
8729 esac
8730 fi
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8732 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8733
8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8735 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8736 if test ${lt_cv_ld_exported_symbols_list+y}
8737 then :
8738 printf %s "(cached) " >&6
8739 else case e in #(
8740 e) lt_cv_ld_exported_symbols_list=no
8741 save_LDFLAGS=$LDFLAGS
8742 echo "_main" > conftest.sym
8743 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h. */
8746
8747 int
8748 main (void)
8749 {
8750
8751 ;
8752 return 0;
8753 }
8754 _ACEOF
8755 if ac_fn_c_try_link "$LINENO"
8756 then :
8757 lt_cv_ld_exported_symbols_list=yes
8758 else case e in #(
8759 e) lt_cv_ld_exported_symbols_list=no ;;
8760 esac
8761 fi
8762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8763 conftest$ac_exeext conftest.$ac_ext
8764 LDFLAGS=$save_LDFLAGS
8765 ;;
8766 esac
8767 fi
8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8769 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8770
8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8772 printf %s "checking for -force_load linker flag... " >&6; }
8773 if test ${lt_cv_ld_force_load+y}
8774 then :
8775 printf %s "(cached) " >&6
8776 else case e in #(
8777 e) lt_cv_ld_force_load=no
8778 cat > conftest.c << _LT_EOF
8779 int forced_loaded() { return 2;}
8780 _LT_EOF
8781 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8782 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8783 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8784 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8785 echo "$RANLIB libconftest.a" >&5
8786 $RANLIB libconftest.a 2>&5
8787 cat > conftest.c << _LT_EOF
8788 int main(void) { return 0;}
8789 _LT_EOF
8790 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8791 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8792 _lt_result=$?
8793 if test -s conftest.err && $GREP force_load conftest.err; then
8794 cat conftest.err >&5
8795 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8796 lt_cv_ld_force_load=yes
8797 else
8798 cat conftest.err >&5
8799 fi
8800 rm -f conftest.err libconftest.a conftest conftest.c
8801 rm -rf conftest.dSYM
8802 ;;
8803 esac
8804 fi
8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8806 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8807 case $host_os in
8808 rhapsody* | darwin1.[012])
8809 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8810 darwin1.*)
8811 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8812 darwin*)
8813 case $MACOSX_DEPLOYMENT_TARGET,$host in
8814 10.[012],*|,*powerpc*-darwin[5-8]*)
8815 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8816 *)
8817 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8818 if test yes = "$lt_cv_support_no_fixup_chains"; then
8819 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8820 fi
8821 ;;
8822 esac
8823 ;;
8824 esac
8825 if test yes = "$lt_cv_apple_cc_single_mod"; then
8826 _lt_dar_single_mod='$single_module'
8827 fi
8828 _lt_dar_needs_single_mod=no
8829 case $host_os in
8830 rhapsody* | darwin1.*)
8831 _lt_dar_needs_single_mod=yes ;;
8832 darwin*)
8833 # When targeting Mac OS X 10.4 (darwin 8) or later,
8834 # -single_module is the default and -multi_module is unsupported.
8835 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8836 # target any OS version that needs -single_module.
8837 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8838 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8839 _lt_dar_needs_single_mod=yes ;;
8840 esac
8841 ;;
8842 esac
8843 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8844 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8845 else
8846 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8847 fi
8848 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8849 _lt_dsymutil='~$DSYMUTIL $lib || :'
8850 else
8851 _lt_dsymutil=
8852 fi
8853 ;;
8854 esac
8855
8856 # func_munge_path_list VARIABLE PATH
8857 # -----------------------------------
8858 # VARIABLE is name of variable containing _space_ separated list of
8859 # directories to be munged by the contents of PATH, which is string
8860 # having a format:
8861 # "DIR[:DIR]:"
8862 # string "DIR[ DIR]" will be prepended to VARIABLE
8863 # ":DIR[:DIR]"
8864 # string "DIR[ DIR]" will be appended to VARIABLE
8865 # "DIRP[:DIRP]::[DIRA:]DIRA"
8866 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8867 # "DIRA[ DIRA]" will be appended to VARIABLE
8868 # "DIR[:DIR]"
8869 # VARIABLE will be replaced by "DIR[ DIR]"
8870 func_munge_path_list ()
8871 {
8872 case x$2 in
8873 x)
8874 ;;
8875 *:)
8876 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8877 ;;
8878 x:*)
8879 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8880 ;;
8881 *::*)
8882 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8883 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8884 ;;
8885 *)
8886 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8887 ;;
8888 esac
8889 }
8890
8891 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8892 "
8893 if test "x$ac_cv_header_dlfcn_h" = xyes
8894 then :
8895 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8896
8897 fi
8898
8899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
8900 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
8901 if test ${ac_cv_c_undeclared_builtin_options+y}
8902 then :
8903 printf %s "(cached) " >&6
8904 else case e in #(
8905 e) ac_save_CFLAGS=$CFLAGS
8906 ac_cv_c_undeclared_builtin_options='cannot detect'
8907 for ac_arg in '' -fno-builtin; do
8908 CFLAGS="$ac_save_CFLAGS $ac_arg"
8909 # This test program should *not* compile successfully.
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8912
8913 int
8914 main (void)
8915 {
8916 (void) strchr;
8917 ;
8918 return 0;
8919 }
8920 _ACEOF
8921 if ac_fn_c_try_compile "$LINENO"
8922 then :
8923
8924 else case e in #(
8925 e) # This test program should compile successfully.
8926 # No library function is consistently available on
8927 # freestanding implementations, so test against a dummy
8928 # declaration. Include always-available headers on the
8929 # off chance that they somehow elicit warnings.
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 #include <float.h>
8933 #include <limits.h>
8934 #include <stdarg.h>
8935 #include <stddef.h>
8936 extern void ac_decl (int, char *);
8937
8938 int
8939 main (void)
8940 {
8941 (void) ac_decl (0, (char *) 0);
8942 (void) ac_decl;
8943
8944 ;
8945 return 0;
8946 }
8947 _ACEOF
8948 if ac_fn_c_try_compile "$LINENO"
8949 then :
8950 if test x"$ac_arg" = x
8951 then :
8952 ac_cv_c_undeclared_builtin_options='none needed'
8953 else case e in #(
8954 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
8955 esac
8956 fi
8957 break
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8960 esac
8961 fi
8962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8963 done
8964 CFLAGS=$ac_save_CFLAGS
8965 ;;
8966 esac
8967 fi
8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
8969 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
8970 case $ac_cv_c_undeclared_builtin_options in #(
8971 'cannot detect') :
8972 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8973 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8974 as_fn_error $? "cannot make $CC report undeclared builtins
8975 See 'config.log' for more details" "$LINENO" 5; } ;; #(
8976 'none needed') :
8977 ac_c_undeclared_builtin_options='' ;; #(
8978 *) :
8979 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
8980 esac
8981
8982 echo 'tldbg:KPSE_COMMON called (pkg=ptexenc, amopt=)' >&5
8983 echo 'tldbg:KPSE_BASIC called (pkg=ptexenc, amopt=)' >&5
8984
8985 #
8986 # am_init_automake
8987 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8988 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8989 # is not polluted with repeated "-I."
8990 am__isrc=' -I$(srcdir)'
8991 # test to see if srcdir already configured
8992 if test -f $srcdir/config.status; then
8993 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8994 fi
8995 fi
8996
8997 # test whether we have cygpath
8998 if test -z "$CYGPATH_W"; then
8999 if (cygpath --version) >/dev/null 2>/dev/null; then
9000 CYGPATH_W='cygpath -w'
9001 else
9002 CYGPATH_W=echo
9003 fi
9004 fi
9005
9006
9007 # Define the identity of the package.
9008 PACKAGE='ptexenc'
9009 VERSION='1.5.2'
9010
9011
9012 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
9013
9014
9015 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
9016
9017 # Some tools Automake needs.
9018
9019 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9020
9021
9022 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9023
9024
9025 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9026
9027
9028 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9029
9030
9031 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9032
9033 # For better backward compatibility. To be removed once Automake 1.9.x
9034 # dies out for good. For more background, see:
9035 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9036 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9037 mkdir_p='$(MKDIR_P)'
9038
9039 # We need awk for the "check" target (and possibly the TAP driver). The
9040 # system "awk" is bad on some platforms.
9041 # Always define AMTAR for backward compatibility. Yes, it's still used
9042 # in the wild :-( We should find a proper way to deprecate it ...
9043 AMTAR='$${TAR-tar}'
9044
9045
9046 # We'll loop over all known methods to create a tar archive until one works.
9047 _am_tools='gnutar plaintar pax cpio none'
9048
9049 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9050 # There is notably a 21 bits limit for the UID and the GID. In fact,
9051 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9052 # and bug#13588).
9053 am_max_uid=2097151 # 2^21 - 1
9054 am_max_gid=$am_max_uid
9055 # The $UID and $GID variables are not portable, so we need to resort
9056 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9057 # below are definitely unexpected, so allow the users to see them
9058 # (that is, avoid stderr redirection).
9059 am_uid=`id -u || echo unknown`
9060 am_gid=`id -g || echo unknown`
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9062 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9063 if test x$am_uid = xunknown; then
9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9065 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9066 elif test $am_uid -le $am_max_uid; then
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9068 printf "%s\n" "yes" >&6; }
9069 else
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 printf "%s\n" "no" >&6; }
9072 _am_tools=none
9073 fi
9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9075 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9076 if test x$gm_gid = xunknown; then
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9078 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9079 elif test $am_gid -le $am_max_gid; then
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9081 printf "%s\n" "yes" >&6; }
9082 else
9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 printf "%s\n" "no" >&6; }
9085 _am_tools=none
9086 fi
9087
9088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9089 printf %s "checking how to create a ustar tar archive... " >&6; }
9090
9091 # Go ahead even if we have the value already cached. We do so because we
9092 # need to set the values for the 'am__tar' and 'am__untar' variables.
9093 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9094
9095 for _am_tool in $_am_tools; do
9096 case $_am_tool in
9097 gnutar)
9098 for _am_tar in tar gnutar gtar; do
9099 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9100 ($_am_tar --version) >&5 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } && break
9104 done
9105 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9106 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9107 am__untar="$_am_tar -xf -"
9108 ;;
9109 plaintar)
9110 # Must skip GNU tar: if it does not support --format= it doesn't create
9111 # ustar tarball either.
9112 (tar --version) >/dev/null 2>&1 && continue
9113 am__tar='tar chf - "$$tardir"'
9114 am__tar_='tar chf - "$tardir"'
9115 am__untar='tar xf -'
9116 ;;
9117 pax)
9118 am__tar='pax -L -x ustar -w "$$tardir"'
9119 am__tar_='pax -L -x ustar -w "$tardir"'
9120 am__untar='pax -r'
9121 ;;
9122 cpio)
9123 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9124 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9125 am__untar='cpio -i -H ustar -d'
9126 ;;
9127 none)
9128 am__tar=false
9129 am__tar_=false
9130 am__untar=false
9131 ;;
9132 esac
9133
9134 # If the value was cached, stop now. We just wanted to have am__tar
9135 # and am__untar set.
9136 test -n "${am_cv_prog_tar_ustar}" && break
9137
9138 # tar/untar a dummy directory, and stop if the command works.
9139 rm -rf conftest.dir
9140 mkdir conftest.dir
9141 echo GrepMe > conftest.dir/file
9142 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9143 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9144 ac_status=$?
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }
9147 rm -rf conftest.dir
9148 if test -s conftest.tar; then
9149 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9150 ($am__untar <conftest.tar) >&5 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }
9154 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9155 (cat conftest.dir/file) >&5 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }
9159 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9160 fi
9161 done
9162 rm -rf conftest.dir
9163
9164 if test ${am_cv_prog_tar_ustar+y}
9165 then :
9166 printf %s "(cached) " >&6
9167 else case e in #(
9168 e) am_cv_prog_tar_ustar=$_am_tool ;;
9169 esac
9170 fi
9171
9172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9173 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9174
9175
9176
9177
9178
9179 # Variables for tags utilities; see am/tags.am
9180 if test -z "$CTAGS"; then
9181 CTAGS=ctags
9182 fi
9183
9184 if test -z "$ETAGS"; then
9185 ETAGS=etags
9186 fi
9187
9188 if test -z "$CSCOPE"; then
9189 CSCOPE=cscope
9190 fi
9191
9192
9193
9194
9195
9196
9197
9198
9199 # am_maintainer_mode
9200
9201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9202 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9203 # Check whether --enable-maintainer-mode was given.
9204 if test ${enable_maintainer_mode+y}
9205 then :
9206 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9207 else case e in #(
9208 e) USE_MAINTAINER_MODE=no ;;
9209 esac
9210 fi
9211
9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9213 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9214 if test $USE_MAINTAINER_MODE = yes; then
9215 MAINTAINER_MODE_TRUE=
9216 MAINTAINER_MODE_FALSE='#'
9217 else
9218 MAINTAINER_MODE_TRUE='#'
9219 MAINTAINER_MODE_FALSE=
9220 fi
9221
9222 MAINT=$MAINTAINER_MODE_TRUE
9223
9224
9225
9226 # See comments in kpse-setup.m4 about system extensions.
9227
9228
9229 # Check whether prototypes work.
9230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9231 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9232 if test ${kb_cv_c_prototypes+y}
9233 then :
9234 printf %s "(cached) " >&6
9235 else case e in #(
9236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238 #include <stdarg.h>
9239 int
9240 main (void)
9241 {
9242 extern void foo(int i,...);
9243 ;
9244 return 0;
9245 }
9246 _ACEOF
9247 if ac_fn_c_try_link "$LINENO"
9248 then :
9249 kb_cv_c_prototypes=yes
9250 else case e in #(
9251 e) kb_cv_c_prototypes=no ;;
9252 esac
9253 fi
9254 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9255 conftest$ac_exeext conftest.$ac_ext ;;
9256 esac
9257 fi
9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9259 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9260 if test "x$kb_cv_c_prototypes" = xno; then
9261 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9262 fi
9263
9264 # kpse_compiler_warnings options.
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9266 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9267 if test ${kpse_cv_warning_cflags+y}
9268 then :
9269 printf %s "(cached) " >&6
9270 else case e in #(
9271 e) if test "x$GCC" = xyes; then
9272 kpse_cv_warning_cflags=
9273 if test "x$enable_compiler_warnings" != xno; then
9274 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9275 case `$CC -dumpversion` in #(
9276 3.4.* | 4.* | 5.*) :
9277 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9278 *) :
9279 ;;
9280 esac
9281 case `$CC -dumpversion` in #(
9282 3.[234].* | 4.* | 5.*) :
9283 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9284 *) :
9285 ;;
9286 esac
9287 if test "x$enable_compiler_warnings" != xmin; then
9288 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9289 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9290 if test "x$enable_compiler_warnings" != xyes; then
9291 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9292 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9293 case `$CC -dumpversion` in #(
9294 3.4.* | 4.* | 5.*) :
9295 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9296 *) :
9297 ;;
9298 esac
9299 if test "x$enable_compiler_warnings" != xmax; then
9300 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9301 fi
9302 fi
9303 fi
9304 fi
9305 elif test "x$enable_compiler_warnings" = xno; then
9306 kpse_cv_warning_cflags=
9307 else
9308 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9309 fi ;;
9310 esac
9311 fi
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9313 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9314 WARNING_CFLAGS=$kpse_cv_warning_cflags
9315
9316
9317
9318
9319
9320
9321
9322 # end of kpse_basic macro.
9323 echo 'tldbg:KPSE_BASIC done (pkg=ptexenc, amopt=)' >&5
9324
9325 # am_prog_ar must be called before lt_init.
9326
9327 if test -n "$ac_tool_prefix"; then
9328 for ac_prog in ar lib "link -lib"
9329 do
9330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9333 printf %s "checking for $ac_word... " >&6; }
9334 if test ${ac_cv_prog_AR+y}
9335 then :
9336 printf %s "(cached) " >&6
9337 else case e in #(
9338 e) if test -n "$AR"; then
9339 ac_cv_prog_AR="$AR" # Let the user override the test.
9340 else
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342 for as_dir in $PATH
9343 do
9344 IFS=$as_save_IFS
9345 case $as_dir in #(((
9346 '') as_dir=./ ;;
9347 */) ;;
9348 *) as_dir=$as_dir/ ;;
9349 esac
9350 for ac_exec_ext in '' $ac_executable_extensions; do
9351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9352 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9354 break 2
9355 fi
9356 done
9357 done
9358 IFS=$as_save_IFS
9359
9360 fi ;;
9361 esac
9362 fi
9363 AR=$ac_cv_prog_AR
9364 if test -n "$AR"; then
9365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9366 printf "%s\n" "$AR" >&6; }
9367 else
9368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9369 printf "%s\n" "no" >&6; }
9370 fi
9371
9372
9373 test -n "$AR" && break
9374 done
9375 fi
9376 if test -z "$AR"; then
9377 ac_ct_AR=$AR
9378 for ac_prog in ar lib "link -lib"
9379 do
9380 # Extract the first word of "$ac_prog", so it can be a program name with args.
9381 set dummy $ac_prog; ac_word=$2
9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9383 printf %s "checking for $ac_word... " >&6; }
9384 if test ${ac_cv_prog_ac_ct_AR+y}
9385 then :
9386 printf %s "(cached) " >&6
9387 else case e in #(
9388 e) if test -n "$ac_ct_AR"; then
9389 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9390 else
9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392 for as_dir in $PATH
9393 do
9394 IFS=$as_save_IFS
9395 case $as_dir in #(((
9396 '') as_dir=./ ;;
9397 */) ;;
9398 *) as_dir=$as_dir/ ;;
9399 esac
9400 for ac_exec_ext in '' $ac_executable_extensions; do
9401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9402 ac_cv_prog_ac_ct_AR="$ac_prog"
9403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9404 break 2
9405 fi
9406 done
9407 done
9408 IFS=$as_save_IFS
9409
9410 fi ;;
9411 esac
9412 fi
9413 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9414 if test -n "$ac_ct_AR"; then
9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9416 printf "%s\n" "$ac_ct_AR" >&6; }
9417 else
9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 printf "%s\n" "no" >&6; }
9420 fi
9421
9422
9423 test -n "$ac_ct_AR" && break
9424 done
9425
9426 if test "x$ac_ct_AR" = x; then
9427 AR="false"
9428 else
9429 case $cross_compiling:$ac_tool_warned in
9430 yes:)
9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9432 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9433 ac_tool_warned=yes ;;
9434 esac
9435 AR=$ac_ct_AR
9436 fi
9437 fi
9438
9439 : ${AR=ar}
9440 : ${ARFLAGS=cr}
9441
9442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9443 printf %s "checking the archiver ($AR) interface... " >&6; }
9444 if test ${am_cv_ar_interface+y}
9445 then :
9446 printf %s "(cached) " >&6
9447 else case e in #(
9448 e) ac_ext=c
9449 ac_cpp='$CPP $CPPFLAGS'
9450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9453
9454 am_cv_ar_interface=ar
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9457 int some_variable = 0;
9458 _ACEOF
9459 if ac_fn_c_try_compile "$LINENO"
9460 then :
9461 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9463 (eval $am_ar_try) 2>&5
9464 ac_status=$?
9465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9466 test $ac_status = 0; }
9467 if test "$ac_status" -eq 0; then
9468 am_cv_ar_interface=ar
9469 else
9470 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9472 (eval $am_ar_try) 2>&5
9473 ac_status=$?
9474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9475 test $ac_status = 0; }
9476 if test "$ac_status" -eq 0; then
9477 am_cv_ar_interface=lib
9478 else
9479 am_cv_ar_interface=unknown
9480 fi
9481 fi
9482 rm -f conftest.lib libconftest.a
9483
9484 fi
9485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9486 ac_ext=c
9487 ac_cpp='$CPP $CPPFLAGS'
9488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9491 ;;
9492 esac
9493 fi
9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9495 printf "%s\n" "$am_cv_ar_interface" >&6; }
9496
9497 case $am_cv_ar_interface in
9498 ar)
9499 ;;
9500 lib)
9501 # Microsoft lib, so override with the ar-lib wrapper script.
9502 # FIXME: It is wrong to rewrite AR.
9503 # But if we don't then we get into trouble of one sort or another.
9504 # A longer-term fix would be to have automake use am__AR in this case,
9505 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9506 # similar.
9507 AR="$am_aux_dir/ar-lib $AR"
9508 ;;
9509 unknown)
9510 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9511 ;;
9512 esac
9513
9514 # (end am_prog_ar)
9515 # starting lt_prereq + lt_init.
9516
9517
9518
9519
9520
9521 # Set options
9522 enable_win32_dll=yes
9523
9524 case $host in
9525 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9526 if test -n "$ac_tool_prefix"; then
9527 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9528 set dummy ${ac_tool_prefix}as; ac_word=$2
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 printf %s "checking for $ac_word... " >&6; }
9531 if test ${ac_cv_prog_AS+y}
9532 then :
9533 printf %s "(cached) " >&6
9534 else case e in #(
9535 e) if test -n "$AS"; then
9536 ac_cv_prog_AS="$AS" # Let the user override the test.
9537 else
9538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 for as_dir in $PATH
9540 do
9541 IFS=$as_save_IFS
9542 case $as_dir in #(((
9543 '') as_dir=./ ;;
9544 */) ;;
9545 *) as_dir=$as_dir/ ;;
9546 esac
9547 for ac_exec_ext in '' $ac_executable_extensions; do
9548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9549 ac_cv_prog_AS="${ac_tool_prefix}as"
9550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9551 break 2
9552 fi
9553 done
9554 done
9555 IFS=$as_save_IFS
9556
9557 fi ;;
9558 esac
9559 fi
9560 AS=$ac_cv_prog_AS
9561 if test -n "$AS"; then
9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9563 printf "%s\n" "$AS" >&6; }
9564 else
9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566 printf "%s\n" "no" >&6; }
9567 fi
9568
9569
9570 fi
9571 if test -z "$ac_cv_prog_AS"; then
9572 ac_ct_AS=$AS
9573 # Extract the first word of "as", so it can be a program name with args.
9574 set dummy as; ac_word=$2
9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576 printf %s "checking for $ac_word... " >&6; }
9577 if test ${ac_cv_prog_ac_ct_AS+y}
9578 then :
9579 printf %s "(cached) " >&6
9580 else case e in #(
9581 e) if test -n "$ac_ct_AS"; then
9582 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9583 else
9584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585 for as_dir in $PATH
9586 do
9587 IFS=$as_save_IFS
9588 case $as_dir in #(((
9589 '') as_dir=./ ;;
9590 */) ;;
9591 *) as_dir=$as_dir/ ;;
9592 esac
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9595 ac_cv_prog_ac_ct_AS="as"
9596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9597 break 2
9598 fi
9599 done
9600 done
9601 IFS=$as_save_IFS
9602
9603 fi ;;
9604 esac
9605 fi
9606 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9607 if test -n "$ac_ct_AS"; then
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9609 printf "%s\n" "$ac_ct_AS" >&6; }
9610 else
9611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 printf "%s\n" "no" >&6; }
9613 fi
9614
9615 if test "x$ac_ct_AS" = x; then
9616 AS="false"
9617 else
9618 case $cross_compiling:$ac_tool_warned in
9619 yes:)
9620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9621 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9622 ac_tool_warned=yes ;;
9623 esac
9624 AS=$ac_ct_AS
9625 fi
9626 else
9627 AS="$ac_cv_prog_AS"
9628 fi
9629
9630 if test -n "$ac_tool_prefix"; then
9631 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9632 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634 printf %s "checking for $ac_word... " >&6; }
9635 if test ${ac_cv_prog_DLLTOOL+y}
9636 then :
9637 printf %s "(cached) " >&6
9638 else case e in #(
9639 e) if test -n "$DLLTOOL"; then
9640 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9641 else
9642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643 for as_dir in $PATH
9644 do
9645 IFS=$as_save_IFS
9646 case $as_dir in #(((
9647 '') as_dir=./ ;;
9648 */) ;;
9649 *) as_dir=$as_dir/ ;;
9650 esac
9651 for ac_exec_ext in '' $ac_executable_extensions; do
9652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9653 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9655 break 2
9656 fi
9657 done
9658 done
9659 IFS=$as_save_IFS
9660
9661 fi ;;
9662 esac
9663 fi
9664 DLLTOOL=$ac_cv_prog_DLLTOOL
9665 if test -n "$DLLTOOL"; then
9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9667 printf "%s\n" "$DLLTOOL" >&6; }
9668 else
9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670 printf "%s\n" "no" >&6; }
9671 fi
9672
9673
9674 fi
9675 if test -z "$ac_cv_prog_DLLTOOL"; then
9676 ac_ct_DLLTOOL=$DLLTOOL
9677 # Extract the first word of "dlltool", so it can be a program name with args.
9678 set dummy dlltool; ac_word=$2
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680 printf %s "checking for $ac_word... " >&6; }
9681 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9682 then :
9683 printf %s "(cached) " >&6
9684 else case e in #(
9685 e) if test -n "$ac_ct_DLLTOOL"; then
9686 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9687 else
9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 for as_dir in $PATH
9690 do
9691 IFS=$as_save_IFS
9692 case $as_dir in #(((
9693 '') as_dir=./ ;;
9694 */) ;;
9695 *) as_dir=$as_dir/ ;;
9696 esac
9697 for ac_exec_ext in '' $ac_executable_extensions; do
9698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9699 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9701 break 2
9702 fi
9703 done
9704 done
9705 IFS=$as_save_IFS
9706
9707 fi ;;
9708 esac
9709 fi
9710 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9711 if test -n "$ac_ct_DLLTOOL"; then
9712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9713 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9714 else
9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9716 printf "%s\n" "no" >&6; }
9717 fi
9718
9719 if test "x$ac_ct_DLLTOOL" = x; then
9720 DLLTOOL="false"
9721 else
9722 case $cross_compiling:$ac_tool_warned in
9723 yes:)
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9725 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9726 ac_tool_warned=yes ;;
9727 esac
9728 DLLTOOL=$ac_ct_DLLTOOL
9729 fi
9730 else
9731 DLLTOOL="$ac_cv_prog_DLLTOOL"
9732 fi
9733
9734 if test -n "$ac_tool_prefix"; then
9735 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9736 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9738 printf %s "checking for $ac_word... " >&6; }
9739 if test ${ac_cv_prog_OBJDUMP+y}
9740 then :
9741 printf %s "(cached) " >&6
9742 else case e in #(
9743 e) if test -n "$OBJDUMP"; then
9744 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9745 else
9746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747 for as_dir in $PATH
9748 do
9749 IFS=$as_save_IFS
9750 case $as_dir in #(((
9751 '') as_dir=./ ;;
9752 */) ;;
9753 *) as_dir=$as_dir/ ;;
9754 esac
9755 for ac_exec_ext in '' $ac_executable_extensions; do
9756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9757 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9759 break 2
9760 fi
9761 done
9762 done
9763 IFS=$as_save_IFS
9764
9765 fi ;;
9766 esac
9767 fi
9768 OBJDUMP=$ac_cv_prog_OBJDUMP
9769 if test -n "$OBJDUMP"; then
9770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9771 printf "%s\n" "$OBJDUMP" >&6; }
9772 else
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774 printf "%s\n" "no" >&6; }
9775 fi
9776
9777
9778 fi
9779 if test -z "$ac_cv_prog_OBJDUMP"; then
9780 ac_ct_OBJDUMP=$OBJDUMP
9781 # Extract the first word of "objdump", so it can be a program name with args.
9782 set dummy objdump; ac_word=$2
9783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9784 printf %s "checking for $ac_word... " >&6; }
9785 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9786 then :
9787 printf %s "(cached) " >&6
9788 else case e in #(
9789 e) if test -n "$ac_ct_OBJDUMP"; then
9790 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9791 else
9792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9793 for as_dir in $PATH
9794 do
9795 IFS=$as_save_IFS
9796 case $as_dir in #(((
9797 '') as_dir=./ ;;
9798 */) ;;
9799 *) as_dir=$as_dir/ ;;
9800 esac
9801 for ac_exec_ext in '' $ac_executable_extensions; do
9802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9803 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9805 break 2
9806 fi
9807 done
9808 done
9809 IFS=$as_save_IFS
9810
9811 fi ;;
9812 esac
9813 fi
9814 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9815 if test -n "$ac_ct_OBJDUMP"; then
9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9817 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9818 else
9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9820 printf "%s\n" "no" >&6; }
9821 fi
9822
9823 if test "x$ac_ct_OBJDUMP" = x; then
9824 OBJDUMP="false"
9825 else
9826 case $cross_compiling:$ac_tool_warned in
9827 yes:)
9828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9829 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9830 ac_tool_warned=yes ;;
9831 esac
9832 OBJDUMP=$ac_ct_OBJDUMP
9833 fi
9834 else
9835 OBJDUMP="$ac_cv_prog_OBJDUMP"
9836 fi
9837
9838 ;;
9839 esac
9840
9841 test -z "$AS" && AS=as
9842
9843
9844
9845
9846
9847 test -z "$DLLTOOL" && DLLTOOL=dlltool
9848
9849
9850
9851
9852
9853 test -z "$OBJDUMP" && OBJDUMP=objdump
9854
9855
9856
9857
9858
9859
9860
9861 enable_dlopen=no
9862
9863
9864
9865 # Check whether --enable-shared was given.
9866 if test ${enable_shared+y}
9867 then :
9868 enableval=$enable_shared; p=${PACKAGE-default}
9869 case $enableval in
9870 yes) enable_shared=yes ;;
9871 no) enable_shared=no ;;
9872 *)
9873 enable_shared=no
9874 # Look at the argument we got. We use all the common list separators.
9875 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9876 for pkg in $enableval; do
9877 IFS=$lt_save_ifs
9878 if test "X$pkg" = "X$p"; then
9879 enable_shared=yes
9880 fi
9881 done
9882 IFS=$lt_save_ifs
9883 ;;
9884 esac
9885 else case e in #(
9886 e) enable_shared=yes ;;
9887 esac
9888 fi
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898 # Check whether --enable-static was given.
9899 if test ${enable_static+y}
9900 then :
9901 enableval=$enable_static; p=${PACKAGE-default}
9902 case $enableval in
9903 yes) enable_static=yes ;;
9904 no) enable_static=no ;;
9905 *)
9906 enable_static=no
9907 # Look at the argument we got. We use all the common list separators.
9908 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9909 for pkg in $enableval; do
9910 IFS=$lt_save_ifs
9911 if test "X$pkg" = "X$p"; then
9912 enable_static=yes
9913 fi
9914 done
9915 IFS=$lt_save_ifs
9916 ;;
9917 esac
9918 else case e in #(
9919 e) enable_static=yes ;;
9920 esac
9921 fi
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931 # Check whether --enable-pic was given.
9932 if test ${enable_pic+y}
9933 then :
9934 enableval=$enable_pic; lt_p=${PACKAGE-default}
9935 case $enableval in
9936 yes|no) pic_mode=$enableval ;;
9937 *)
9938 pic_mode=default
9939 # Look at the argument we got. We use all the common list separators.
9940 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9941 for lt_pkg in $enableval; do
9942 IFS=$lt_save_ifs
9943 if test "X$lt_pkg" = "X$lt_p"; then
9944 pic_mode=yes
9945 fi
9946 done
9947 IFS=$lt_save_ifs
9948 ;;
9949 esac
9950 else case e in #(
9951 e) # Check whether --with-pic was given.
9952 if test ${with_pic+y}
9953 then :
9954 withval=$with_pic; lt_p=${PACKAGE-default}
9955 case $withval in
9956 yes|no) pic_mode=$withval ;;
9957 *)
9958 pic_mode=default
9959 # Look at the argument we got. We use all the common list separators.
9960 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9961 for lt_pkg in $withval; do
9962 IFS=$lt_save_ifs
9963 if test "X$lt_pkg" = "X$lt_p"; then
9964 pic_mode=yes
9965 fi
9966 done
9967 IFS=$lt_save_ifs
9968 ;;
9969 esac
9970 else case e in #(
9971 e) pic_mode=default ;;
9972 esac
9973 fi
9974
9975 ;;
9976 esac
9977 fi
9978
9979
9980
9981
9982
9983
9984
9985
9986 # Check whether --enable-fast-install was given.
9987 if test ${enable_fast_install+y}
9988 then :
9989 enableval=$enable_fast_install; p=${PACKAGE-default}
9990 case $enableval in
9991 yes) enable_fast_install=yes ;;
9992 no) enable_fast_install=no ;;
9993 *)
9994 enable_fast_install=no
9995 # Look at the argument we got. We use all the common list separators.
9996 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9997 for pkg in $enableval; do
9998 IFS=$lt_save_ifs
9999 if test "X$pkg" = "X$p"; then
10000 enable_fast_install=yes
10001 fi
10002 done
10003 IFS=$lt_save_ifs
10004 ;;
10005 esac
10006 else case e in #(
10007 e) enable_fast_install=yes ;;
10008 esac
10009 fi
10010
10011
10012
10013
10014
10015
10016
10017
10018 shared_archive_member_spec=
10019 case $host,$enable_shared in
10020 power*-*-aix[5-9]*,yes)
10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10022 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10023 # Check whether --enable-aix-soname was given.
10024 if test ${enable_aix_soname+y}
10025 then :
10026 enableval=$enable_aix_soname; case $enableval in
10027 aix|svr4|both)
10028 ;;
10029 *)
10030 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10031 ;;
10032 esac
10033 lt_cv_with_aix_soname=$enable_aix_soname
10034 else case e in #(
10035 e) # Check whether --with-aix-soname was given.
10036 if test ${with_aix_soname+y}
10037 then :
10038 withval=$with_aix_soname; case $withval in
10039 aix|svr4|both)
10040 ;;
10041 *)
10042 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10043 ;;
10044 esac
10045 lt_cv_with_aix_soname=$with_aix_soname
10046 else case e in #(
10047 e) if test ${lt_cv_with_aix_soname+y}
10048 then :
10049 printf %s "(cached) " >&6
10050 else case e in #(
10051 e) lt_cv_with_aix_soname=aix ;;
10052 esac
10053 fi
10054 ;;
10055 esac
10056 fi
10057
10058 enable_aix_soname=$lt_cv_with_aix_soname ;;
10059 esac
10060 fi
10061
10062 with_aix_soname=$enable_aix_soname
10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10064 printf "%s\n" "$with_aix_soname" >&6; }
10065 if test aix != "$with_aix_soname"; then
10066 # For the AIX way of multilib, we name the shared archive member
10067 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10068 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10069 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10070 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10071 if test 64 = "${OBJECT_MODE-32}"; then
10072 shared_archive_member_spec=shr_64
10073 else
10074 shared_archive_member_spec=shr
10075 fi
10076 fi
10077 ;;
10078 *)
10079 with_aix_soname=aix
10080 ;;
10081 esac
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092 # This can be used to rebuild libtool when needed
10093 LIBTOOL_DEPS=$ltmain
10094
10095 # Always use our own libtool.
10096 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127 test -z "$LN_S" && LN_S="ln -s"
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142 if test -n "${ZSH_VERSION+set}"; then
10143 setopt NO_GLOB_SUBST
10144 fi
10145
10146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10147 printf %s "checking for objdir... " >&6; }
10148 if test ${lt_cv_objdir+y}
10149 then :
10150 printf %s "(cached) " >&6
10151 else case e in #(
10152 e) rm -f .libs 2>/dev/null
10153 mkdir .libs 2>/dev/null
10154 if test -d .libs; then
10155 lt_cv_objdir=.libs
10156 else
10157 # MS-DOS does not allow filenames that begin with a dot.
10158 lt_cv_objdir=_libs
10159 fi
10160 rmdir .libs 2>/dev/null ;;
10161 esac
10162 fi
10163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10164 printf "%s\n" "$lt_cv_objdir" >&6; }
10165 objdir=$lt_cv_objdir
10166
10167
10168
10169
10170
10171 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10172
10173
10174
10175
10176 case $host_os in
10177 aix3*)
10178 # AIX sometimes has problems with the GCC collect2 program. For some
10179 # reason, if we set the COLLECT_NAMES environment variable, the problems
10180 # vanish in a puff of smoke.
10181 if test set != "${COLLECT_NAMES+set}"; then
10182 COLLECT_NAMES=
10183 export COLLECT_NAMES
10184 fi
10185 ;;
10186 esac
10187
10188 # Global variables:
10189 ofile=libtool
10190 can_build_shared=yes
10191
10192 # All known linkers require a '.a' archive for static linking (except MSVC and
10193 # ICC, which need '.lib').
10194 libext=a
10195
10196 with_gnu_ld=$lt_cv_prog_gnu_ld
10197
10198 old_CC=$CC
10199 old_CFLAGS=$CFLAGS
10200
10201 # Set sane defaults for various variables
10202 test -z "$CC" && CC=cc
10203 test -z "$LTCC" && LTCC=$CC
10204 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10205 test -z "$LD" && LD=ld
10206 test -z "$ac_objext" && ac_objext=o
10207
10208 func_cc_basename $compiler
10209 cc_basename=$func_cc_basename_result
10210
10211
10212 # Only perform the check for file, if the check method requires it
10213 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10214 case $deplibs_check_method in
10215 file_magic*)
10216 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10218 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10219 if test ${lt_cv_path_MAGIC_CMD+y}
10220 then :
10221 printf %s "(cached) " >&6
10222 else case e in #(
10223 e) case $MAGIC_CMD in
10224 [\\/*] | ?:[\\/]*)
10225 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10226 ;;
10227 *)
10228 lt_save_MAGIC_CMD=$MAGIC_CMD
10229 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10231 for ac_dir in $ac_dummy; do
10232 IFS=$lt_save_ifs
10233 test -z "$ac_dir" && ac_dir=.
10234 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10235 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10236 if test -n "$file_magic_test_file"; then
10237 case $deplibs_check_method in
10238 "file_magic "*)
10239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10240 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10242 $EGREP "$file_magic_regex" > /dev/null; then
10243 :
10244 else
10245 cat <<_LT_EOF 1>&2
10246
10247 *** Warning: the command libtool uses to detect shared libraries,
10248 *** $file_magic_cmd, produces output that libtool cannot recognize.
10249 *** The result is that libtool may fail to recognize shared libraries
10250 *** as such. This will affect the creation of libtool libraries that
10251 *** depend on shared libraries, but programs linked with such libtool
10252 *** libraries will work regardless of this problem. Nevertheless, you
10253 *** may want to report the problem to your system manager and/or to
10254 *** [email protected]
10255
10256 _LT_EOF
10257 fi ;;
10258 esac
10259 fi
10260 break
10261 fi
10262 done
10263 IFS=$lt_save_ifs
10264 MAGIC_CMD=$lt_save_MAGIC_CMD
10265 ;;
10266 esac ;;
10267 esac
10268 fi
10269
10270 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10271 if test -n "$MAGIC_CMD"; then
10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10273 printf "%s\n" "$MAGIC_CMD" >&6; }
10274 else
10275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276 printf "%s\n" "no" >&6; }
10277 fi
10278
10279
10280
10281
10282
10283 if test -z "$lt_cv_path_MAGIC_CMD"; then
10284 if test -n "$ac_tool_prefix"; then
10285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10286 printf %s "checking for file... " >&6; }
10287 if test ${lt_cv_path_MAGIC_CMD+y}
10288 then :
10289 printf %s "(cached) " >&6
10290 else case e in #(
10291 e) case $MAGIC_CMD in
10292 [\\/*] | ?:[\\/]*)
10293 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10294 ;;
10295 *)
10296 lt_save_MAGIC_CMD=$MAGIC_CMD
10297 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10298 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10299 for ac_dir in $ac_dummy; do
10300 IFS=$lt_save_ifs
10301 test -z "$ac_dir" && ac_dir=.
10302 if test -f "$ac_dir/file"; then
10303 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10304 if test -n "$file_magic_test_file"; then
10305 case $deplibs_check_method in
10306 "file_magic "*)
10307 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10308 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10309 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10310 $EGREP "$file_magic_regex" > /dev/null; then
10311 :
10312 else
10313 cat <<_LT_EOF 1>&2
10314
10315 *** Warning: the command libtool uses to detect shared libraries,
10316 *** $file_magic_cmd, produces output that libtool cannot recognize.
10317 *** The result is that libtool may fail to recognize shared libraries
10318 *** as such. This will affect the creation of libtool libraries that
10319 *** depend on shared libraries, but programs linked with such libtool
10320 *** libraries will work regardless of this problem. Nevertheless, you
10321 *** may want to report the problem to your system manager and/or to
10322 *** [email protected]
10323
10324 _LT_EOF
10325 fi ;;
10326 esac
10327 fi
10328 break
10329 fi
10330 done
10331 IFS=$lt_save_ifs
10332 MAGIC_CMD=$lt_save_MAGIC_CMD
10333 ;;
10334 esac ;;
10335 esac
10336 fi
10337
10338 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10339 if test -n "$MAGIC_CMD"; then
10340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10341 printf "%s\n" "$MAGIC_CMD" >&6; }
10342 else
10343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 printf "%s\n" "no" >&6; }
10345 fi
10346
10347
10348 else
10349 MAGIC_CMD=:
10350 fi
10351 fi
10352
10353 fi
10354 ;;
10355 esac
10356
10357 # Use C for the default configuration in the libtool script
10358
10359 lt_save_CC=$CC
10360 ac_ext=c
10361 ac_cpp='$CPP $CPPFLAGS'
10362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10365
10366
10367 # Source file extension for C test sources.
10368 ac_ext=c
10369
10370 # Object file extension for compiled C test sources.
10371 objext=o
10372 objext=$objext
10373
10374 # Code to be used in simple compile tests
10375 lt_simple_compile_test_code="int some_variable = 0;"
10376
10377 # Code to be used in simple link tests
10378 lt_simple_link_test_code='int main(void){return(0);}'
10379
10380
10381
10382
10383
10384
10385
10386 # If no C compiler was specified, use CC.
10387 LTCC=${LTCC-"$CC"}
10388
10389 # If no C compiler flags were specified, use CFLAGS.
10390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10391
10392 # Allow CC to be a program name with arguments.
10393 compiler=$CC
10394
10395 # Save the default compiler, since it gets overwritten when the other
10396 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10397 compiler_DEFAULT=$CC
10398
10399 # save warnings/boilerplate of simple test code
10400 ac_outfile=conftest.$ac_objext
10401 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10402 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10403 _lt_compiler_boilerplate=`cat conftest.err`
10404 $RM conftest*
10405
10406 ac_outfile=conftest.$ac_objext
10407 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10408 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10409 _lt_linker_boilerplate=`cat conftest.err`
10410 $RM -r conftest*
10411
10412
10413 ## CAVEAT EMPTOR:
10414 ## There is no encapsulation within the following macros, do not change
10415 ## the running order or otherwise move them around unless you know exactly
10416 ## what you are doing...
10417 if test -n "$compiler"; then
10418
10419 lt_prog_compiler_no_builtin_flag=
10420
10421 if test yes = "$GCC"; then
10422 case $cc_basename in
10423 nvcc*)
10424 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10425 *)
10426 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10427 esac
10428
10429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10430 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10431 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10432 then :
10433 printf %s "(cached) " >&6
10434 else case e in #(
10435 e) lt_cv_prog_compiler_rtti_exceptions=no
10436 ac_outfile=conftest.$ac_objext
10437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10438 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10439 # Insert the option either (1) after the last *FLAGS variable, or
10440 # (2) before a word containing "conftest.", or (3) at the end.
10441 # Note that $ac_compile itself does not contain backslashes and begins
10442 # with a dollar sign (not a hyphen), so the echo should work correctly.
10443 # The option is referenced via a variable to avoid confusing sed.
10444 lt_compile=`echo "$ac_compile" | $SED \
10445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10447 -e 's:$: $lt_compiler_flag:'`
10448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10449 (eval "$lt_compile" 2>conftest.err)
10450 ac_status=$?
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 if (exit $ac_status) && test -s "$ac_outfile"; then
10454 # The compiler can only warn and ignore the option if not recognized
10455 # So say no if there are warnings other than the usual output.
10456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10459 lt_cv_prog_compiler_rtti_exceptions=yes
10460 fi
10461 fi
10462 $RM conftest*
10463 ;;
10464 esac
10465 fi
10466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10467 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10468
10469 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10470 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10471 else
10472 :
10473 fi
10474
10475 fi
10476
10477
10478
10479
10480
10481
10482 lt_prog_compiler_wl=
10483 lt_prog_compiler_pic=
10484 lt_prog_compiler_static=
10485
10486
10487 if test yes = "$GCC"; then
10488 lt_prog_compiler_wl='-Wl,'
10489 lt_prog_compiler_static='-static'
10490
10491 case $host_os in
10492 aix*)
10493 # All AIX code is PIC.
10494 if test ia64 = "$host_cpu"; then
10495 # AIX 5 now supports IA64 processor
10496 lt_prog_compiler_static='-Bstatic'
10497 fi
10498 lt_prog_compiler_pic='-fPIC'
10499 ;;
10500
10501 amigaos*)
10502 case $host_cpu in
10503 powerpc)
10504 # see comment about AmigaOS4 .so support
10505 lt_prog_compiler_pic='-fPIC'
10506 ;;
10507 m68k)
10508 # FIXME: we need at least 68020 code to build shared libraries, but
10509 # adding the '-m68020' flag to GCC prevents building anything better,
10510 # like '-m68040'.
10511 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10512 ;;
10513 esac
10514 ;;
10515
10516 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10517 # PIC is the default for these OSes.
10518 ;;
10519
10520 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10521 # This hack is so that the source file can tell whether it is being
10522 # built for inclusion in a dll (and should export symbols for example).
10523 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10524 # (--disable-auto-import) libraries
10525 lt_prog_compiler_pic='-DDLL_EXPORT'
10526 case $host_os in
10527 os2*)
10528 lt_prog_compiler_static='$wl-static'
10529 ;;
10530 esac
10531 ;;
10532
10533 darwin* | rhapsody*)
10534 # PIC is the default on this platform
10535 # Common symbols not allowed in MH_DYLIB files
10536 lt_prog_compiler_pic='-fno-common'
10537 ;;
10538
10539 haiku*)
10540 # PIC is the default for Haiku.
10541 # The "-static" flag exists, but is broken.
10542 lt_prog_compiler_static=
10543 ;;
10544
10545 hpux*)
10546 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10547 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10548 # sets the default TLS model and affects inlining.
10549 case $host_cpu in
10550 hppa*64*)
10551 # +Z the default
10552 ;;
10553 *)
10554 lt_prog_compiler_pic='-fPIC'
10555 ;;
10556 esac
10557 ;;
10558
10559 interix[3-9]*)
10560 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10561 # Instead, we relocate shared libraries at runtime.
10562 ;;
10563
10564 msdosdjgpp*)
10565 # Just because we use GCC doesn't mean we suddenly get shared libraries
10566 # on systems that don't support them.
10567 lt_prog_compiler_can_build_shared=no
10568 enable_shared=no
10569 ;;
10570
10571 *nto* | *qnx*)
10572 # QNX uses GNU C++, but need to define -shared option too, otherwise
10573 # it will coredump.
10574 lt_prog_compiler_pic='-fPIC -shared'
10575 ;;
10576
10577 sysv4*MP*)
10578 if test -d /usr/nec; then
10579 lt_prog_compiler_pic=-Kconform_pic
10580 fi
10581 ;;
10582
10583 *)
10584 lt_prog_compiler_pic='-fPIC'
10585 ;;
10586 esac
10587
10588 case $cc_basename in
10589 nvcc*) # Cuda Compiler Driver 2.2
10590 lt_prog_compiler_wl='-Xlinker '
10591 if test -n "$lt_prog_compiler_pic"; then
10592 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10593 fi
10594 ;;
10595 esac
10596 else
10597 # PORTME Check for flag to pass linker flags through the system compiler.
10598 case $host_os in
10599 aix*)
10600 lt_prog_compiler_wl='-Wl,'
10601 if test ia64 = "$host_cpu"; then
10602 # AIX 5 now supports IA64 processor
10603 lt_prog_compiler_static='-Bstatic'
10604 else
10605 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10606 fi
10607 ;;
10608
10609 darwin* | rhapsody*)
10610 # PIC is the default on this platform
10611 # Common symbols not allowed in MH_DYLIB files
10612 lt_prog_compiler_pic='-fno-common'
10613 case $cc_basename in
10614 nagfor*)
10615 # NAG Fortran compiler
10616 lt_prog_compiler_wl='-Wl,-Wl,,'
10617 lt_prog_compiler_pic='-PIC'
10618 lt_prog_compiler_static='-Bstatic'
10619 ;;
10620 esac
10621 ;;
10622
10623 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10624 # This hack is so that the source file can tell whether it is being
10625 # built for inclusion in a dll (and should export symbols for example).
10626 lt_prog_compiler_pic='-DDLL_EXPORT'
10627 case $host_os in
10628 os2*)
10629 lt_prog_compiler_static='$wl-static'
10630 ;;
10631 esac
10632 ;;
10633
10634 hpux9* | hpux10* | hpux11*)
10635 lt_prog_compiler_wl='-Wl,'
10636 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10637 # not for PA HP-UX.
10638 case $host_cpu in
10639 hppa*64*|ia64*)
10640 # +Z the default
10641 ;;
10642 *)
10643 lt_prog_compiler_pic='+Z'
10644 ;;
10645 esac
10646 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10647 lt_prog_compiler_static='$wl-a ${wl}archive'
10648 ;;
10649
10650 irix5* | irix6* | nonstopux*)
10651 lt_prog_compiler_wl='-Wl,'
10652 # PIC (with -KPIC) is the default.
10653 lt_prog_compiler_static='-non_shared'
10654 ;;
10655
10656 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10657 case $cc_basename in
10658 # old Intel for x86_64, which still supported -KPIC.
10659 ecc*)
10660 lt_prog_compiler_wl='-Wl,'
10661 lt_prog_compiler_pic='-KPIC'
10662 lt_prog_compiler_static='-static'
10663 ;;
10664 *flang* | ftn | f18* | f95*)
10665 # Flang compiler.
10666 lt_prog_compiler_wl='-Wl,'
10667 lt_prog_compiler_pic='-fPIC'
10668 lt_prog_compiler_static='-static'
10669 ;;
10670 # icc used to be incompatible with GCC.
10671 # ICC 10 doesn't accept -KPIC any more.
10672 icc* | ifort*)
10673 lt_prog_compiler_wl='-Wl,'
10674 lt_prog_compiler_pic='-fPIC'
10675 lt_prog_compiler_static='-static'
10676 ;;
10677 # Lahey Fortran 8.1.
10678 lf95*)
10679 lt_prog_compiler_wl='-Wl,'
10680 lt_prog_compiler_pic='--shared'
10681 lt_prog_compiler_static='--static'
10682 ;;
10683 nagfor*)
10684 # NAG Fortran compiler
10685 lt_prog_compiler_wl='-Wl,-Wl,,'
10686 lt_prog_compiler_pic='-PIC'
10687 lt_prog_compiler_static='-Bstatic'
10688 ;;
10689 tcc*)
10690 # Fabrice Bellard et al's Tiny C Compiler
10691 lt_prog_compiler_wl='-Wl,'
10692 lt_prog_compiler_pic='-fPIC'
10693 lt_prog_compiler_static='-static'
10694 ;;
10695 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10696 # Portland Group compilers (*not* the Pentium gcc compiler,
10697 # which looks to be a dead project)
10698 lt_prog_compiler_wl='-Wl,'
10699 lt_prog_compiler_pic='-fpic'
10700 lt_prog_compiler_static='-Bstatic'
10701 ;;
10702 ccc*)
10703 lt_prog_compiler_wl='-Wl,'
10704 # All Alpha code is PIC.
10705 lt_prog_compiler_static='-non_shared'
10706 ;;
10707 xl* | bgxl* | bgf* | mpixl*)
10708 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10709 lt_prog_compiler_wl='-Wl,'
10710 lt_prog_compiler_pic='-qpic'
10711 lt_prog_compiler_static='-qstaticlink'
10712 ;;
10713 *)
10714 case `$CC -V 2>&1 | $SED 5q` in
10715 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10716 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10717 lt_prog_compiler_pic='-KPIC'
10718 lt_prog_compiler_static='-Bstatic'
10719 lt_prog_compiler_wl=''
10720 ;;
10721 *Sun\ F* | *Sun*Fortran*)
10722 lt_prog_compiler_pic='-KPIC'
10723 lt_prog_compiler_static='-Bstatic'
10724 lt_prog_compiler_wl='-Qoption ld '
10725 ;;
10726 *Sun\ C*)
10727 # Sun C 5.9
10728 lt_prog_compiler_pic='-KPIC'
10729 lt_prog_compiler_static='-Bstatic'
10730 lt_prog_compiler_wl='-Wl,'
10731 ;;
10732 *Intel*\ [CF]*Compiler*)
10733 lt_prog_compiler_wl='-Wl,'
10734 lt_prog_compiler_pic='-fPIC'
10735 lt_prog_compiler_static='-static'
10736 ;;
10737 *Portland\ Group*)
10738 lt_prog_compiler_wl='-Wl,'
10739 lt_prog_compiler_pic='-fpic'
10740 lt_prog_compiler_static='-Bstatic'
10741 ;;
10742 esac
10743 ;;
10744 esac
10745 ;;
10746
10747 newsos6)
10748 lt_prog_compiler_pic='-KPIC'
10749 lt_prog_compiler_static='-Bstatic'
10750 ;;
10751
10752 *-mlibc)
10753 lt_prog_compiler_wl='-Wl,'
10754 lt_prog_compiler_pic='-fPIC'
10755 lt_prog_compiler_static='-static'
10756 ;;
10757
10758 *nto* | *qnx*)
10759 # QNX uses GNU C++, but need to define -shared option too, otherwise
10760 # it will coredump.
10761 lt_prog_compiler_pic='-fPIC -shared'
10762 ;;
10763
10764 osf3* | osf4* | osf5*)
10765 lt_prog_compiler_wl='-Wl,'
10766 # All OSF/1 code is PIC.
10767 lt_prog_compiler_static='-non_shared'
10768 ;;
10769
10770 rdos*)
10771 lt_prog_compiler_static='-non_shared'
10772 ;;
10773
10774 serenity*)
10775 ;;
10776
10777 solaris*)
10778 lt_prog_compiler_pic='-KPIC'
10779 lt_prog_compiler_static='-Bstatic'
10780 case $cc_basename in
10781 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10782 lt_prog_compiler_wl='-Qoption ld ';;
10783 *)
10784 lt_prog_compiler_wl='-Wl,';;
10785 esac
10786 ;;
10787
10788 sunos4*)
10789 lt_prog_compiler_wl='-Qoption ld '
10790 lt_prog_compiler_pic='-PIC'
10791 lt_prog_compiler_static='-Bstatic'
10792 ;;
10793
10794 sysv4 | sysv4.2uw2* | sysv4.3*)
10795 lt_prog_compiler_wl='-Wl,'
10796 lt_prog_compiler_pic='-KPIC'
10797 lt_prog_compiler_static='-Bstatic'
10798 ;;
10799
10800 sysv4*MP*)
10801 if test -d /usr/nec; then
10802 lt_prog_compiler_pic='-Kconform_pic'
10803 lt_prog_compiler_static='-Bstatic'
10804 fi
10805 ;;
10806
10807 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10808 lt_prog_compiler_wl='-Wl,'
10809 lt_prog_compiler_pic='-KPIC'
10810 lt_prog_compiler_static='-Bstatic'
10811 ;;
10812
10813 unicos*)
10814 lt_prog_compiler_wl='-Wl,'
10815 lt_prog_compiler_can_build_shared=no
10816 ;;
10817
10818 uts4*)
10819 lt_prog_compiler_pic='-pic'
10820 lt_prog_compiler_static='-Bstatic'
10821 ;;
10822
10823 *)
10824 lt_prog_compiler_can_build_shared=no
10825 ;;
10826 esac
10827 fi
10828
10829 case $host_os in
10830 # For platforms that do not support PIC, -DPIC is meaningless:
10831 *djgpp*)
10832 lt_prog_compiler_pic=
10833 ;;
10834 *)
10835 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10836 ;;
10837 esac
10838
10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10840 printf %s "checking for $compiler option to produce PIC... " >&6; }
10841 if test ${lt_cv_prog_compiler_pic+y}
10842 then :
10843 printf %s "(cached) " >&6
10844 else case e in #(
10845 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10846 esac
10847 fi
10848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10849 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10850 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10851
10852 #
10853 # Check to make sure the PIC flag actually works.
10854 #
10855 if test -n "$lt_prog_compiler_pic"; then
10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10857 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10858 if test ${lt_cv_prog_compiler_pic_works+y}
10859 then :
10860 printf %s "(cached) " >&6
10861 else case e in #(
10862 e) lt_cv_prog_compiler_pic_works=no
10863 ac_outfile=conftest.$ac_objext
10864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10865 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10866 # Insert the option either (1) after the last *FLAGS variable, or
10867 # (2) before a word containing "conftest.", or (3) at the end.
10868 # Note that $ac_compile itself does not contain backslashes and begins
10869 # with a dollar sign (not a hyphen), so the echo should work correctly.
10870 # The option is referenced via a variable to avoid confusing sed.
10871 lt_compile=`echo "$ac_compile" | $SED \
10872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10874 -e 's:$: $lt_compiler_flag:'`
10875 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10876 (eval "$lt_compile" 2>conftest.err)
10877 ac_status=$?
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 if (exit $ac_status) && test -s "$ac_outfile"; then
10881 # The compiler can only warn and ignore the option if not recognized
10882 # So say no if there are warnings other than the usual output.
10883 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10885 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10886 lt_cv_prog_compiler_pic_works=yes
10887 fi
10888 fi
10889 $RM conftest*
10890 ;;
10891 esac
10892 fi
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10894 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10895
10896 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10897 case $lt_prog_compiler_pic in
10898 "" | " "*) ;;
10899 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10900 esac
10901 else
10902 lt_prog_compiler_pic=
10903 lt_prog_compiler_can_build_shared=no
10904 fi
10905
10906 fi
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918 #
10919 # Check to make sure the static flag actually works.
10920 #
10921 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10923 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10924 if test ${lt_cv_prog_compiler_static_works+y}
10925 then :
10926 printf %s "(cached) " >&6
10927 else case e in #(
10928 e) lt_cv_prog_compiler_static_works=no
10929 save_LDFLAGS=$LDFLAGS
10930 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10931 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10932 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10933 # The linker can only warn and ignore the option if not recognized
10934 # So say no if there are warnings
10935 if test -s conftest.err; then
10936 # Append any errors to the config.log.
10937 cat conftest.err 1>&5
10938 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10940 if diff conftest.exp conftest.er2 >/dev/null; then
10941 lt_cv_prog_compiler_static_works=yes
10942 fi
10943 else
10944 lt_cv_prog_compiler_static_works=yes
10945 fi
10946 fi
10947 $RM -r conftest*
10948 LDFLAGS=$save_LDFLAGS
10949 ;;
10950 esac
10951 fi
10952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10953 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10954
10955 if test yes = "$lt_cv_prog_compiler_static_works"; then
10956 :
10957 else
10958 lt_prog_compiler_static=
10959 fi
10960
10961
10962
10963
10964
10965
10966
10967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10968 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10969 if test ${lt_cv_prog_compiler_c_o+y}
10970 then :
10971 printf %s "(cached) " >&6
10972 else case e in #(
10973 e) lt_cv_prog_compiler_c_o=no
10974 $RM -r conftest 2>/dev/null
10975 mkdir conftest
10976 cd conftest
10977 mkdir out
10978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10979
10980 lt_compiler_flag="-o out/conftest2.$ac_objext"
10981 # Insert the option either (1) after the last *FLAGS variable, or
10982 # (2) before a word containing "conftest.", or (3) at the end.
10983 # Note that $ac_compile itself does not contain backslashes and begins
10984 # with a dollar sign (not a hyphen), so the echo should work correctly.
10985 lt_compile=`echo "$ac_compile" | $SED \
10986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10988 -e 's:$: $lt_compiler_flag:'`
10989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10990 (eval "$lt_compile" 2>out/conftest.err)
10991 ac_status=$?
10992 cat out/conftest.err >&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10995 then
10996 # The compiler can only warn and ignore the option if not recognized
10997 # So say no if there are warnings
10998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11001 lt_cv_prog_compiler_c_o=yes
11002 fi
11003 fi
11004 chmod u+w . 2>&5
11005 $RM conftest*
11006 # SGI C++ compiler will create directory out/ii_files/ for
11007 # template instantiation
11008 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11009 $RM out/* && rmdir out
11010 cd ..
11011 $RM -r conftest
11012 $RM conftest*
11013 ;;
11014 esac
11015 fi
11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11017 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11018
11019
11020
11021
11022
11023
11024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11025 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11026 if test ${lt_cv_prog_compiler_c_o+y}
11027 then :
11028 printf %s "(cached) " >&6
11029 else case e in #(
11030 e) lt_cv_prog_compiler_c_o=no
11031 $RM -r conftest 2>/dev/null
11032 mkdir conftest
11033 cd conftest
11034 mkdir out
11035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11036
11037 lt_compiler_flag="-o out/conftest2.$ac_objext"
11038 # Insert the option either (1) after the last *FLAGS variable, or
11039 # (2) before a word containing "conftest.", or (3) at the end.
11040 # Note that $ac_compile itself does not contain backslashes and begins
11041 # with a dollar sign (not a hyphen), so the echo should work correctly.
11042 lt_compile=`echo "$ac_compile" | $SED \
11043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11045 -e 's:$: $lt_compiler_flag:'`
11046 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11047 (eval "$lt_compile" 2>out/conftest.err)
11048 ac_status=$?
11049 cat out/conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11052 then
11053 # The compiler can only warn and ignore the option if not recognized
11054 # So say no if there are warnings
11055 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11056 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11057 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11058 lt_cv_prog_compiler_c_o=yes
11059 fi
11060 fi
11061 chmod u+w . 2>&5
11062 $RM conftest*
11063 # SGI C++ compiler will create directory out/ii_files/ for
11064 # template instantiation
11065 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11066 $RM out/* && rmdir out
11067 cd ..
11068 $RM -r conftest
11069 $RM conftest*
11070 ;;
11071 esac
11072 fi
11073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11074 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11075
11076
11077
11078
11079 hard_links=nottested
11080 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11081 # do not overwrite the value of need_locks provided by the user
11082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11083 printf %s "checking if we can lock with hard links... " >&6; }
11084 hard_links=yes
11085 $RM conftest*
11086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11087 touch conftest.a
11088 ln conftest.a conftest.b 2>&5 || hard_links=no
11089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11091 printf "%s\n" "$hard_links" >&6; }
11092 if test no = "$hard_links"; then
11093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11094 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11095 need_locks=warn
11096 fi
11097 else
11098 need_locks=no
11099 fi
11100
11101
11102
11103
11104
11105
11106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11107 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11108
11109 runpath_var=
11110 allow_undefined_flag=
11111 always_export_symbols=no
11112 archive_cmds=
11113 archive_expsym_cmds=
11114 compiler_needs_object=no
11115 enable_shared_with_static_runtimes=no
11116 export_dynamic_flag_spec=
11117 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11118 hardcode_automatic=no
11119 hardcode_direct=no
11120 hardcode_direct_absolute=no
11121 hardcode_libdir_flag_spec=
11122 hardcode_libdir_separator=
11123 hardcode_minus_L=no
11124 hardcode_shlibpath_var=unsupported
11125 inherit_rpath=no
11126 link_all_deplibs=unknown
11127 module_cmds=
11128 module_expsym_cmds=
11129 old_archive_from_new_cmds=
11130 old_archive_from_expsyms_cmds=
11131 thread_safe_flag_spec=
11132 whole_archive_flag_spec=
11133 # include_expsyms should be a list of space-separated symbols to be *always*
11134 # included in the symbol list
11135 include_expsyms=
11136 # exclude_expsyms can be an extended regexp of symbols to exclude
11137 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11138 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11139 # as well as any symbol that contains 'd'.
11140 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11141 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11142 # platforms (ab)use it in PIC code, but their linkers get confused if
11143 # the symbol is explicitly referenced. Since portable code cannot
11144 # rely on this symbol name, it's probably fine to never include it in
11145 # preloaded symbol tables.
11146 # Exclude shared library initialization/finalization symbols.
11147 extract_expsyms_cmds=
11148
11149 case $host_os in
11150 cygwin* | mingw* | windows* | pw32* | cegcc*)
11151 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11152 # When not using gcc, we currently assume that we are using
11153 # Microsoft Visual C++ or Intel C++ Compiler.
11154 if test yes != "$GCC"; then
11155 with_gnu_ld=no
11156 fi
11157 ;;
11158 interix*)
11159 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11160 with_gnu_ld=yes
11161 ;;
11162 esac
11163
11164 ld_shlibs=yes
11165
11166 # On some targets, GNU ld is compatible enough with the native linker
11167 # that we're better off using the native interface for both.
11168 lt_use_gnu_ld_interface=no
11169 if test yes = "$with_gnu_ld"; then
11170 case $host_os in
11171 aix*)
11172 # The AIX port of GNU ld has always aspired to compatibility
11173 # with the native linker. However, as the warning in the GNU ld
11174 # block says, versions before 2.19.5* couldn't really create working
11175 # shared libraries, regardless of the interface used.
11176 case `$LD -v 2>&1` in
11177 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11178 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11179 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11180 *)
11181 lt_use_gnu_ld_interface=yes
11182 ;;
11183 esac
11184 ;;
11185 *)
11186 lt_use_gnu_ld_interface=yes
11187 ;;
11188 esac
11189 fi
11190
11191 if test yes = "$lt_use_gnu_ld_interface"; then
11192 # If archive_cmds runs LD, not CC, wlarc should be empty
11193 wlarc='$wl'
11194
11195 # Set some defaults for GNU ld with shared library support. These
11196 # are reset later if shared libraries are not supported. Putting them
11197 # here allows them to be overridden if necessary.
11198 runpath_var=LD_RUN_PATH
11199 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11200 export_dynamic_flag_spec='$wl--export-dynamic'
11201 # ancient GNU ld didn't support --whole-archive et. al.
11202 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11203 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11204 else
11205 whole_archive_flag_spec=
11206 fi
11207 supports_anon_versioning=no
11208 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11209 *GNU\ gold*) supports_anon_versioning=yes ;;
11210 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11211 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11212 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11213 *\ 2.11.*) ;; # other 2.11 versions
11214 *) supports_anon_versioning=yes ;;
11215 esac
11216
11217 # See if GNU ld supports shared libraries.
11218 case $host_os in
11219 aix[3-9]*)
11220 # On AIX/PPC, the GNU linker is very broken
11221 if test ia64 != "$host_cpu"; then
11222 ld_shlibs=no
11223 cat <<_LT_EOF 1>&2
11224
11225 *** Warning: the GNU linker, at least up to release 2.19, is reported
11226 *** to be unable to reliably create shared libraries on AIX.
11227 *** Therefore, libtool is disabling shared libraries support. If you
11228 *** really care for shared libraries, you may want to install binutils
11229 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11230 *** You will then need to restart the configuration process.
11231
11232 _LT_EOF
11233 fi
11234 ;;
11235
11236 amigaos*)
11237 case $host_cpu in
11238 powerpc)
11239 # see comment about AmigaOS4 .so support
11240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11241 archive_expsym_cmds=''
11242 ;;
11243 m68k)
11244 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)'
11245 hardcode_libdir_flag_spec='-L$libdir'
11246 hardcode_minus_L=yes
11247 ;;
11248 esac
11249 ;;
11250
11251 beos*)
11252 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11253 allow_undefined_flag=unsupported
11254 # Joseph Beckenbach <[email protected]> says some releases of gcc
11255 # support --undefined. This deserves some investigation. FIXME
11256 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11257 else
11258 ld_shlibs=no
11259 fi
11260 ;;
11261
11262 cygwin* | mingw* | windows* | pw32* | cegcc*)
11263 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11264 # as there is no search path for DLLs.
11265 hardcode_libdir_flag_spec='-L$libdir'
11266 export_dynamic_flag_spec='$wl--export-all-symbols'
11267 allow_undefined_flag=unsupported
11268 always_export_symbols=no
11269 enable_shared_with_static_runtimes=yes
11270 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'
11271 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11272 file_list_spec='@'
11273
11274 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11276 # If the export-symbols file already is a .def file, use it as
11277 # is; otherwise, prepend EXPORTS...
11278 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11279 cp $export_symbols $output_objdir/$soname.def;
11280 else
11281 echo EXPORTS > $output_objdir/$soname.def;
11282 cat $export_symbols >> $output_objdir/$soname.def;
11283 fi~
11284 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11285 else
11286 ld_shlibs=no
11287 fi
11288 ;;
11289
11290 haiku*)
11291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11292 link_all_deplibs=no
11293 ;;
11294
11295 os2*)
11296 hardcode_libdir_flag_spec='-L$libdir'
11297 hardcode_minus_L=yes
11298 allow_undefined_flag=unsupported
11299 shrext_cmds=.dll
11300 archive_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 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11305 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11306 emximp -o $lib $output_objdir/$libname.def'
11307 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11308 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11309 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11310 $ECHO EXPORTS >> $output_objdir/$libname.def~
11311 prefix_cmds="$SED"~
11312 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11313 prefix_cmds="$prefix_cmds -e 1d";
11314 fi~
11315 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11316 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11317 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11318 emximp -o $lib $output_objdir/$libname.def'
11319 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11320 enable_shared_with_static_runtimes=yes
11321 file_list_spec='@'
11322 ;;
11323
11324 interix[3-9]*)
11325 hardcode_direct=no
11326 hardcode_shlibpath_var=no
11327 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11328 export_dynamic_flag_spec='$wl-E'
11329 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11330 # Instead, shared libraries are loaded at an image base (0x10000000 by
11331 # default) and relocated if they conflict, which is a slow very memory
11332 # consuming and fragmenting process. To avoid this, we pick a random,
11333 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11334 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11335 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11336 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'
11337 ;;
11338
11339 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11340 tmp_diet=no
11341 if test linux-dietlibc = "$host_os"; then
11342 case $cc_basename in
11343 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11344 esac
11345 fi
11346 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11347 && test no = "$tmp_diet"
11348 then
11349 tmp_addflag=' $pic_flag'
11350 tmp_sharedflag='-shared'
11351 case $cc_basename,$host_cpu in
11352 pgcc*) # Portland Group C compiler
11353 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11354 tmp_addflag=' $pic_flag'
11355 ;;
11356 pgf77* | pgf90* | pgf95* | pgfortran*)
11357 # Portland Group f77 and f90 compilers
11358 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'
11359 tmp_addflag=' $pic_flag -Mnomain' ;;
11360 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11361 tmp_addflag=' -i_dynamic' ;;
11362 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11363 tmp_addflag=' -i_dynamic -nofor_main' ;;
11364 ifc* | ifort*) # Intel Fortran compiler
11365 tmp_addflag=' -nofor_main' ;;
11366 lf95*) # Lahey Fortran 8.1
11367 whole_archive_flag_spec=
11368 tmp_sharedflag='--shared' ;;
11369 nagfor*) # NAGFOR 5.3
11370 tmp_sharedflag='-Wl,-shared' ;;
11371 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11372 tmp_sharedflag='-qmkshrobj'
11373 tmp_addflag= ;;
11374 nvcc*) # Cuda Compiler Driver 2.2
11375 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'
11376 compiler_needs_object=yes
11377 ;;
11378 esac
11379 case `$CC -V 2>&1 | $SED 5q` in
11380 *Sun\ C*) # Sun C 5.9
11381 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'
11382 compiler_needs_object=yes
11383 tmp_sharedflag='-G' ;;
11384 *Sun\ F*) # Sun Fortran 8.3
11385 tmp_sharedflag='-G' ;;
11386 esac
11387 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11388
11389 if test yes = "$supports_anon_versioning"; then
11390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11391 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11392 echo "local: *; };" >> $output_objdir/$libname.ver~
11393 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11394 fi
11395
11396 case $cc_basename in
11397 tcc*)
11398 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11399 export_dynamic_flag_spec='-rdynamic'
11400 ;;
11401 xlf* | bgf* | bgxlf* | mpixlf*)
11402 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11403 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11404 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11405 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11406 if test yes = "$supports_anon_versioning"; then
11407 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11408 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11409 echo "local: *; };" >> $output_objdir/$libname.ver~
11410 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11411 fi
11412 ;;
11413 esac
11414 else
11415 ld_shlibs=no
11416 fi
11417 ;;
11418
11419 *-mlibc)
11420 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11421 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11422 ;;
11423
11424 netbsd* | netbsdelf*-gnu)
11425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11426 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11427 wlarc=
11428 else
11429 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11430 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11431 fi
11432 ;;
11433
11434 solaris*)
11435 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11436 ld_shlibs=no
11437 cat <<_LT_EOF 1>&2
11438
11439 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11440 *** create shared libraries on Solaris systems. Therefore, libtool
11441 *** is disabling shared libraries support. We urge you to upgrade GNU
11442 *** binutils to release 2.9.1 or newer. Another option is to modify
11443 *** your PATH or compiler configuration so that the native linker is
11444 *** used, and then restart.
11445
11446 _LT_EOF
11447 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11448 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11449 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11450 else
11451 ld_shlibs=no
11452 fi
11453 ;;
11454
11455 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11456 case `$LD -v 2>&1` in
11457 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11458 ld_shlibs=no
11459 cat <<_LT_EOF 1>&2
11460
11461 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11462 *** reliably create shared libraries on SCO systems. Therefore, libtool
11463 *** is disabling shared libraries support. We urge you to upgrade GNU
11464 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11465 *** your PATH or compiler configuration so that the native linker is
11466 *** used, and then restart.
11467
11468 _LT_EOF
11469 ;;
11470 *)
11471 # For security reasons, it is highly recommended that you always
11472 # use absolute paths for naming shared libraries, and exclude the
11473 # DT_RUNPATH tag from executables and libraries. But doing so
11474 # requires that you compile everything twice, which is a pain.
11475 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11476 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11478 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11479 else
11480 ld_shlibs=no
11481 fi
11482 ;;
11483 esac
11484 ;;
11485
11486 sunos4*)
11487 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11488 wlarc=
11489 hardcode_direct=yes
11490 hardcode_shlibpath_var=no
11491 ;;
11492
11493 *)
11494 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11495 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11496 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11497 else
11498 ld_shlibs=no
11499 fi
11500 ;;
11501 esac
11502
11503 if test no = "$ld_shlibs"; then
11504 runpath_var=
11505 hardcode_libdir_flag_spec=
11506 export_dynamic_flag_spec=
11507 whole_archive_flag_spec=
11508 fi
11509 else
11510 # PORTME fill in a description of your system's linker (not GNU ld)
11511 case $host_os in
11512 aix3*)
11513 allow_undefined_flag=unsupported
11514 always_export_symbols=yes
11515 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'
11516 # Note: this linker hardcodes the directories in LIBPATH if there
11517 # are no directories specified by -L.
11518 hardcode_minus_L=yes
11519 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11520 # Neither direct hardcoding nor static linking is supported with a
11521 # broken collect2.
11522 hardcode_direct=unsupported
11523 fi
11524 ;;
11525
11526 aix[4-9]*)
11527 if test ia64 = "$host_cpu"; then
11528 # On IA64, the linker does run time linking by default, so we don't
11529 # have to do anything special.
11530 aix_use_runtimelinking=no
11531 exp_sym_flag='-Bexport'
11532 no_entry_flag=
11533 else
11534 # If we're using GNU nm, then we don't want the "-C" option.
11535 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11536 # Without the "-l" option, or with the "-B" option, AIX nm treats
11537 # weak defined symbols like other global defined symbols, whereas
11538 # GNU nm marks them as "W".
11539 # While the 'weak' keyword is ignored in the Export File, we need
11540 # it in the Import File for the 'aix-soname' feature, so we have
11541 # to replace the "-B" option with "-P" for AIX nm.
11542 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11543 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'
11544 else
11545 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'
11546 fi
11547 aix_use_runtimelinking=no
11548
11549 # Test if we are trying to use run time linking or normal
11550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11551 # have runtime linking enabled, and use it for executables.
11552 # For shared libraries, we enable/disable runtime linking
11553 # depending on the kind of the shared library created -
11554 # when "with_aix_soname,aix_use_runtimelinking" is:
11555 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11556 # "aix,yes" lib.so shared, rtl:yes, for executables
11557 # lib.a static archive
11558 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11559 # lib.a(lib.so.V) shared, rtl:no, for executables
11560 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11561 # lib.a(lib.so.V) shared, rtl:no
11562 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11563 # lib.a static archive
11564 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11565 for ld_flag in $LDFLAGS; do
11566 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11567 aix_use_runtimelinking=yes
11568 break
11569 fi
11570 done
11571 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11572 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11573 # so we don't have lib.a shared libs to link our executables.
11574 # We have to force runtime linking in this case.
11575 aix_use_runtimelinking=yes
11576 LDFLAGS="$LDFLAGS -Wl,-brtl"
11577 fi
11578 ;;
11579 esac
11580
11581 exp_sym_flag='-bexport'
11582 no_entry_flag='-bnoentry'
11583 fi
11584
11585 # When large executables or shared objects are built, AIX ld can
11586 # have problems creating the table of contents. If linking a library
11587 # or program results in "error TOC overflow" add -mminimal-toc to
11588 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11589 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11590
11591 archive_cmds=''
11592 hardcode_direct=yes
11593 hardcode_direct_absolute=yes
11594 hardcode_libdir_separator=':'
11595 link_all_deplibs=yes
11596 file_list_spec='$wl-f,'
11597 case $with_aix_soname,$aix_use_runtimelinking in
11598 aix,*) ;; # traditional, no import file
11599 svr4,* | *,yes) # use import file
11600 # The Import File defines what to hardcode.
11601 hardcode_direct=no
11602 hardcode_direct_absolute=no
11603 ;;
11604 esac
11605
11606 if test yes = "$GCC"; then
11607 case $host_os in aix4.[012]|aix4.[012].*)
11608 # We only want to do this on AIX 4.2 and lower, the check
11609 # below for broken collect2 doesn't work under 4.3+
11610 collect2name=`$CC -print-prog-name=collect2`
11611 if test -f "$collect2name" &&
11612 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11613 then
11614 # We have reworked collect2
11615 :
11616 else
11617 # We have old collect2
11618 hardcode_direct=unsupported
11619 # It fails to find uninstalled libraries when the uninstalled
11620 # path is not listed in the libpath. Setting hardcode_minus_L
11621 # to unsupported forces relinking
11622 hardcode_minus_L=yes
11623 hardcode_libdir_flag_spec='-L$libdir'
11624 hardcode_libdir_separator=
11625 fi
11626 ;;
11627 esac
11628 shared_flag='-shared'
11629 if test yes = "$aix_use_runtimelinking"; then
11630 shared_flag="$shared_flag "'$wl-G'
11631 fi
11632 # Need to ensure runtime linking is disabled for the traditional
11633 # shared library, or the linker may eventually find shared libraries
11634 # /with/ Import File - we do not want to mix them.
11635 shared_flag_aix='-shared'
11636 shared_flag_svr4='-shared $wl-G'
11637 else
11638 # not using gcc
11639 if test ia64 = "$host_cpu"; then
11640 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11641 # chokes on -Wl,-G. The following line is correct:
11642 shared_flag='-G'
11643 else
11644 if test yes = "$aix_use_runtimelinking"; then
11645 shared_flag='$wl-G'
11646 else
11647 shared_flag='$wl-bM:SRE'
11648 fi
11649 shared_flag_aix='$wl-bM:SRE'
11650 shared_flag_svr4='$wl-G'
11651 fi
11652 fi
11653
11654 export_dynamic_flag_spec='$wl-bexpall'
11655 # It seems that -bexpall does not export symbols beginning with
11656 # underscore (_), so it is better to generate a list of symbols to export.
11657 always_export_symbols=yes
11658 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11659 # Warning - without using the other runtime loading flags (-brtl),
11660 # -berok will link without error, but may produce a broken library.
11661 allow_undefined_flag='-berok'
11662 # Determine the default libpath from the value encoded in an
11663 # empty executable.
11664 if test set = "${lt_cv_aix_libpath+set}"; then
11665 aix_libpath=$lt_cv_aix_libpath
11666 else
11667 if test ${lt_cv_aix_libpath_+y}
11668 then :
11669 printf %s "(cached) " >&6
11670 else case e in #(
11671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11673
11674 int
11675 main (void)
11676 {
11677
11678 ;
11679 return 0;
11680 }
11681 _ACEOF
11682 if ac_fn_c_try_link "$LINENO"
11683 then :
11684
11685 lt_aix_libpath_sed='
11686 /Import File Strings/,/^$/ {
11687 /^0/ {
11688 s/^0 *\([^ ]*\) *$/\1/
11689 p
11690 }
11691 }'
11692 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11693 # Check for a 64-bit object if we didn't find anything.
11694 if test -z "$lt_cv_aix_libpath_"; then
11695 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11696 fi
11697 fi
11698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11699 conftest$ac_exeext conftest.$ac_ext
11700 if test -z "$lt_cv_aix_libpath_"; then
11701 lt_cv_aix_libpath_=/usr/lib:/lib
11702 fi
11703 ;;
11704 esac
11705 fi
11706
11707 aix_libpath=$lt_cv_aix_libpath_
11708 fi
11709
11710 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11711 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
11712 else
11713 if test ia64 = "$host_cpu"; then
11714 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11715 allow_undefined_flag="-z nodefs"
11716 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"
11717 else
11718 # Determine the default libpath from the value encoded in an
11719 # empty executable.
11720 if test set = "${lt_cv_aix_libpath+set}"; then
11721 aix_libpath=$lt_cv_aix_libpath
11722 else
11723 if test ${lt_cv_aix_libpath_+y}
11724 then :
11725 printf %s "(cached) " >&6
11726 else case e in #(
11727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11729
11730 int
11731 main (void)
11732 {
11733
11734 ;
11735 return 0;
11736 }
11737 _ACEOF
11738 if ac_fn_c_try_link "$LINENO"
11739 then :
11740
11741 lt_aix_libpath_sed='
11742 /Import File Strings/,/^$/ {
11743 /^0/ {
11744 s/^0 *\([^ ]*\) *$/\1/
11745 p
11746 }
11747 }'
11748 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11749 # Check for a 64-bit object if we didn't find anything.
11750 if test -z "$lt_cv_aix_libpath_"; then
11751 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11752 fi
11753 fi
11754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11755 conftest$ac_exeext conftest.$ac_ext
11756 if test -z "$lt_cv_aix_libpath_"; then
11757 lt_cv_aix_libpath_=/usr/lib:/lib
11758 fi
11759 ;;
11760 esac
11761 fi
11762
11763 aix_libpath=$lt_cv_aix_libpath_
11764 fi
11765
11766 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11767 # Warning - without using the other run time loading flags,
11768 # -berok will link without error, but may produce a broken library.
11769 no_undefined_flag=' $wl-bernotok'
11770 allow_undefined_flag=' $wl-berok'
11771 if test yes = "$with_gnu_ld"; then
11772 # We only use this code for GNU lds that support --whole-archive.
11773 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11774 else
11775 # Exported symbols can be pulled into shared objects from archives
11776 whole_archive_flag_spec='$convenience'
11777 fi
11778 archive_cmds_need_lc=yes
11779 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11780 # -brtl affects multiple linker settings, -berok does not and is overridden later
11781 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11782 if test svr4 != "$with_aix_soname"; then
11783 # This is similar to how AIX traditionally builds its shared libraries.
11784 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'
11785 fi
11786 if test aix != "$with_aix_soname"; then
11787 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'
11788 else
11789 # used by -dlpreopen to get the symbols
11790 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11791 fi
11792 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11793 fi
11794 fi
11795 ;;
11796
11797 amigaos*)
11798 case $host_cpu in
11799 powerpc)
11800 # see comment about AmigaOS4 .so support
11801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11802 archive_expsym_cmds=''
11803 ;;
11804 m68k)
11805 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)'
11806 hardcode_libdir_flag_spec='-L$libdir'
11807 hardcode_minus_L=yes
11808 ;;
11809 esac
11810 ;;
11811
11812 bsdi[45]*)
11813 export_dynamic_flag_spec=-rdynamic
11814 ;;
11815
11816 cygwin* | mingw* | windows* | pw32* | cegcc*)
11817 # When not using gcc, we currently assume that we are using
11818 # Microsoft Visual C++ or Intel C++ Compiler.
11819 # hardcode_libdir_flag_spec is actually meaningless, as there is
11820 # no search path for DLLs.
11821 case $cc_basename in
11822 cl* | icl*)
11823 # Native MSVC or ICC
11824 hardcode_libdir_flag_spec=' '
11825 allow_undefined_flag=unsupported
11826 always_export_symbols=yes
11827 file_list_spec='@'
11828 # Tell ltmain to make .lib files, not .a files.
11829 libext=lib
11830 # Tell ltmain to make .dll files, not .so files.
11831 shrext_cmds=.dll
11832 # FIXME: Setting linknames here is a bad hack.
11833 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11834 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11835 cp "$export_symbols" "$output_objdir/$soname.def";
11836 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11837 else
11838 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11839 fi~
11840 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11841 linknames='
11842 # The linker will not automatically build a static lib if we build a DLL.
11843 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11844 enable_shared_with_static_runtimes=yes
11845 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11846 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11847 # Don't use ranlib
11848 old_postinstall_cmds='chmod 644 $oldlib'
11849 postlink_cmds='lt_outputfile="@OUTPUT@"~
11850 lt_tool_outputfile="@TOOL_OUTPUT@"~
11851 case $lt_outputfile in
11852 *.exe|*.EXE) ;;
11853 *)
11854 lt_outputfile=$lt_outputfile.exe
11855 lt_tool_outputfile=$lt_tool_outputfile.exe
11856 ;;
11857 esac~
11858 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11859 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11860 $RM "$lt_outputfile.manifest";
11861 fi'
11862 ;;
11863 *)
11864 # Assume MSVC and ICC wrapper
11865 hardcode_libdir_flag_spec=' '
11866 allow_undefined_flag=unsupported
11867 # Tell ltmain to make .lib files, not .a files.
11868 libext=lib
11869 # Tell ltmain to make .dll files, not .so files.
11870 shrext_cmds=.dll
11871 # FIXME: Setting linknames here is a bad hack.
11872 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11873 # The linker will automatically build a .lib file if we build a DLL.
11874 old_archive_from_new_cmds='true'
11875 # FIXME: Should let the user specify the lib program.
11876 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11877 enable_shared_with_static_runtimes=yes
11878 ;;
11879 esac
11880 ;;
11881
11882 darwin* | rhapsody*)
11883
11884
11885 archive_cmds_need_lc=no
11886 hardcode_direct=no
11887 hardcode_automatic=yes
11888 hardcode_shlibpath_var=unsupported
11889 if test yes = "$lt_cv_ld_force_load"; then
11890 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\"`'
11891
11892 else
11893 whole_archive_flag_spec=''
11894 fi
11895 link_all_deplibs=yes
11896 allow_undefined_flag=$_lt_dar_allow_undefined
11897 case $cc_basename in
11898 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11899 *) _lt_dar_can_shared=$GCC ;;
11900 esac
11901 if test yes = "$_lt_dar_can_shared"; then
11902 output_verbose_link_cmd=func_echo_all
11903 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11904 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11905 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"
11906 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"
11907
11908 else
11909 ld_shlibs=no
11910 fi
11911
11912 ;;
11913
11914 dgux*)
11915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11916 hardcode_libdir_flag_spec='-L$libdir'
11917 hardcode_shlibpath_var=no
11918 ;;
11919
11920 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11921 # support. Future versions do this automatically, but an explicit c++rt0.o
11922 # does not break anything, and helps significantly (at the cost of a little
11923 # extra space).
11924 freebsd2.2*)
11925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11926 hardcode_libdir_flag_spec='-R$libdir'
11927 hardcode_direct=yes
11928 hardcode_shlibpath_var=no
11929 ;;
11930
11931 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11932 freebsd2.*)
11933 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11934 hardcode_direct=yes
11935 hardcode_minus_L=yes
11936 hardcode_shlibpath_var=no
11937 ;;
11938
11939 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11940 freebsd* | dragonfly* | midnightbsd*)
11941 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11942 hardcode_libdir_flag_spec='-R$libdir'
11943 hardcode_direct=yes
11944 hardcode_shlibpath_var=no
11945 ;;
11946
11947 hpux9*)
11948 if test yes = "$GCC"; then
11949 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'
11950 else
11951 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'
11952 fi
11953 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11954 hardcode_libdir_separator=:
11955 hardcode_direct=yes
11956
11957 # hardcode_minus_L: Not really in the search PATH,
11958 # but as the default location of the library.
11959 hardcode_minus_L=yes
11960 export_dynamic_flag_spec='$wl-E'
11961 ;;
11962
11963 hpux10*)
11964 if test yes,no = "$GCC,$with_gnu_ld"; then
11965 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11966 else
11967 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11968 fi
11969 if test no = "$with_gnu_ld"; then
11970 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11971 hardcode_libdir_separator=:
11972 hardcode_direct=yes
11973 hardcode_direct_absolute=yes
11974 export_dynamic_flag_spec='$wl-E'
11975 # hardcode_minus_L: Not really in the search PATH,
11976 # but as the default location of the library.
11977 hardcode_minus_L=yes
11978 fi
11979 ;;
11980
11981 hpux11*)
11982 if test yes,no = "$GCC,$with_gnu_ld"; then
11983 case $host_cpu in
11984 hppa*64*)
11985 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11986 ;;
11987 ia64*)
11988 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11989 ;;
11990 *)
11991 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11992 ;;
11993 esac
11994 else
11995 case $host_cpu in
11996 hppa*64*)
11997 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11998 ;;
11999 ia64*)
12000 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12001 ;;
12002 *)
12003
12004 # Older versions of the 11.00 compiler do not understand -b yet
12005 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12007 printf %s "checking if $CC understands -b... " >&6; }
12008 if test ${lt_cv_prog_compiler__b+y}
12009 then :
12010 printf %s "(cached) " >&6
12011 else case e in #(
12012 e) lt_cv_prog_compiler__b=no
12013 save_LDFLAGS=$LDFLAGS
12014 LDFLAGS="$LDFLAGS -b"
12015 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12016 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12017 # The linker can only warn and ignore the option if not recognized
12018 # So say no if there are warnings
12019 if test -s conftest.err; then
12020 # Append any errors to the config.log.
12021 cat conftest.err 1>&5
12022 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12024 if diff conftest.exp conftest.er2 >/dev/null; then
12025 lt_cv_prog_compiler__b=yes
12026 fi
12027 else
12028 lt_cv_prog_compiler__b=yes
12029 fi
12030 fi
12031 $RM -r conftest*
12032 LDFLAGS=$save_LDFLAGS
12033 ;;
12034 esac
12035 fi
12036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12037 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12038
12039 if test yes = "$lt_cv_prog_compiler__b"; then
12040 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12041 else
12042 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12043 fi
12044
12045 ;;
12046 esac
12047 fi
12048 if test no = "$with_gnu_ld"; then
12049 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12050 hardcode_libdir_separator=:
12051
12052 case $host_cpu in
12053 hppa*64*|ia64*)
12054 hardcode_direct=no
12055 hardcode_shlibpath_var=no
12056 ;;
12057 *)
12058 hardcode_direct=yes
12059 hardcode_direct_absolute=yes
12060 export_dynamic_flag_spec='$wl-E'
12061
12062 # hardcode_minus_L: Not really in the search PATH,
12063 # but as the default location of the library.
12064 hardcode_minus_L=yes
12065 ;;
12066 esac
12067 fi
12068 ;;
12069
12070 irix5* | irix6* | nonstopux*)
12071 if test yes = "$GCC"; then
12072 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'
12073 # Try to use the -exported_symbol ld option, if it does not
12074 # work, assume that -exports_file does not work either and
12075 # implicitly export all symbols.
12076 # This should be the same for all languages, so no per-tag cache variable.
12077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12078 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12079 if test ${lt_cv_irix_exported_symbol+y}
12080 then :
12081 printf %s "(cached) " >&6
12082 else case e in #(
12083 e) save_LDFLAGS=$LDFLAGS
12084 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12087 int foo (void) { return 0; }
12088 _ACEOF
12089 if ac_fn_c_try_link "$LINENO"
12090 then :
12091 lt_cv_irix_exported_symbol=yes
12092 else case e in #(
12093 e) lt_cv_irix_exported_symbol=no ;;
12094 esac
12095 fi
12096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12097 conftest$ac_exeext conftest.$ac_ext
12098 LDFLAGS=$save_LDFLAGS ;;
12099 esac
12100 fi
12101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12102 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12103 if test yes = "$lt_cv_irix_exported_symbol"; then
12104 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'
12105 fi
12106 else
12107 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'
12108 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'
12109 fi
12110 archive_cmds_need_lc='no'
12111 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12112 hardcode_libdir_separator=:
12113 inherit_rpath=yes
12114 link_all_deplibs=yes
12115 ;;
12116
12117 linux*)
12118 case $cc_basename in
12119 tcc*)
12120 # Fabrice Bellard et al's Tiny C Compiler
12121 ld_shlibs=yes
12122 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12123 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12124 ;;
12125 esac
12126 ;;
12127
12128 *-mlibc)
12129 ;;
12130
12131 netbsd* | netbsdelf*-gnu)
12132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12134 else
12135 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12136 fi
12137 hardcode_libdir_flag_spec='-R$libdir'
12138 hardcode_direct=yes
12139 hardcode_shlibpath_var=no
12140 ;;
12141
12142 newsos6)
12143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12144 hardcode_direct=yes
12145 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12146 hardcode_libdir_separator=:
12147 hardcode_shlibpath_var=no
12148 ;;
12149
12150 *nto* | *qnx*)
12151 ;;
12152
12153 openbsd*)
12154 if test -f /usr/libexec/ld.so; then
12155 hardcode_direct=yes
12156 hardcode_shlibpath_var=no
12157 hardcode_direct_absolute=yes
12158 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12160 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12161 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12162 export_dynamic_flag_spec='$wl-E'
12163 else
12164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12165 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12166 fi
12167 else
12168 ld_shlibs=no
12169 fi
12170 ;;
12171
12172 os2*)
12173 hardcode_libdir_flag_spec='-L$libdir'
12174 hardcode_minus_L=yes
12175 allow_undefined_flag=unsupported
12176 shrext_cmds=.dll
12177 archive_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 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12182 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12183 emximp -o $lib $output_objdir/$libname.def'
12184 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12185 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12186 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12187 $ECHO EXPORTS >> $output_objdir/$libname.def~
12188 prefix_cmds="$SED"~
12189 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12190 prefix_cmds="$prefix_cmds -e 1d";
12191 fi~
12192 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12193 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12194 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12195 emximp -o $lib $output_objdir/$libname.def'
12196 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12197 enable_shared_with_static_runtimes=yes
12198 file_list_spec='@'
12199 ;;
12200
12201 osf3*)
12202 if test yes = "$GCC"; then
12203 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12204 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'
12205 else
12206 allow_undefined_flag=' -expect_unresolved \*'
12207 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'
12208 fi
12209 archive_cmds_need_lc='no'
12210 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12211 hardcode_libdir_separator=:
12212 ;;
12213
12214 osf4* | osf5*) # as osf3* with the addition of -msym flag
12215 if test yes = "$GCC"; then
12216 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12217 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'
12218 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12219 else
12220 allow_undefined_flag=' -expect_unresolved \*'
12221 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'
12222 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~
12223 $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'
12224
12225 # Both c and cxx compiler support -rpath directly
12226 hardcode_libdir_flag_spec='-rpath $libdir'
12227 fi
12228 archive_cmds_need_lc='no'
12229 hardcode_libdir_separator=:
12230 ;;
12231
12232 serenity*)
12233 ;;
12234
12235 solaris*)
12236 no_undefined_flag=' -z defs'
12237 if test yes = "$GCC"; then
12238 wlarc='$wl'
12239 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12240 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12241 $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'
12242 else
12243 case `$CC -V 2>&1` in
12244 *"Compilers 5.0"*)
12245 wlarc=''
12246 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12247 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12248 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12249 ;;
12250 *)
12251 wlarc='$wl'
12252 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12253 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12254 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12255 ;;
12256 esac
12257 fi
12258 hardcode_libdir_flag_spec='-R$libdir'
12259 hardcode_shlibpath_var=no
12260 case $host_os in
12261 solaris2.[0-5] | solaris2.[0-5].*) ;;
12262 *)
12263 # The compiler driver will combine and reorder linker options,
12264 # but understands '-z linker_flag'. GCC discards it without '$wl',
12265 # but is careful enough not to reorder.
12266 # Supported since Solaris 2.6 (maybe 2.5.1?)
12267 if test yes = "$GCC"; then
12268 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12269 else
12270 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12271 fi
12272 ;;
12273 esac
12274 link_all_deplibs=yes
12275 ;;
12276
12277 sunos4*)
12278 if test sequent = "$host_vendor"; then
12279 # Use $CC to link under sequent, because it throws in some extra .o
12280 # files that make .init and .fini sections work.
12281 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12282 else
12283 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12284 fi
12285 hardcode_libdir_flag_spec='-L$libdir'
12286 hardcode_direct=yes
12287 hardcode_minus_L=yes
12288 hardcode_shlibpath_var=no
12289 ;;
12290
12291 sysv4)
12292 case $host_vendor in
12293 sni)
12294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12295 hardcode_direct=yes # is this really true???
12296 ;;
12297 siemens)
12298 ## LD is ld it makes a PLAMLIB
12299 ## CC just makes a GrossModule.
12300 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12301 reload_cmds='$CC -r -o $output$reload_objs'
12302 hardcode_direct=no
12303 ;;
12304 motorola)
12305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12306 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12307 ;;
12308 esac
12309 runpath_var='LD_RUN_PATH'
12310 hardcode_shlibpath_var=no
12311 ;;
12312
12313 sysv4.3*)
12314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12315 hardcode_shlibpath_var=no
12316 export_dynamic_flag_spec='-Bexport'
12317 ;;
12318
12319 sysv4*MP*)
12320 if test -d /usr/nec; then
12321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12322 hardcode_shlibpath_var=no
12323 runpath_var=LD_RUN_PATH
12324 hardcode_runpath_var=yes
12325 ld_shlibs=yes
12326 fi
12327 ;;
12328
12329 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12330 no_undefined_flag='$wl-z,text'
12331 archive_cmds_need_lc=no
12332 hardcode_shlibpath_var=no
12333 runpath_var='LD_RUN_PATH'
12334
12335 if test yes = "$GCC"; then
12336 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12337 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12338 else
12339 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12340 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12341 fi
12342 ;;
12343
12344 sysv5* | sco3.2v5* | sco5v6*)
12345 # Note: We CANNOT use -z defs as we might desire, because we do not
12346 # link with -lc, and that would cause any symbols used from libc to
12347 # always be unresolved, which means just about no library would
12348 # ever link correctly. If we're not using GNU ld we use -z text
12349 # though, which does catch some bad symbols but isn't as heavy-handed
12350 # as -z defs.
12351 no_undefined_flag='$wl-z,text'
12352 allow_undefined_flag='$wl-z,nodefs'
12353 archive_cmds_need_lc=no
12354 hardcode_shlibpath_var=no
12355 hardcode_libdir_flag_spec='$wl-R,$libdir'
12356 hardcode_libdir_separator=':'
12357 link_all_deplibs=yes
12358 export_dynamic_flag_spec='$wl-Bexport'
12359 runpath_var='LD_RUN_PATH'
12360
12361 if test yes = "$GCC"; then
12362 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12363 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12364 else
12365 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12366 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12367 fi
12368 ;;
12369
12370 uts4*)
12371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12372 hardcode_libdir_flag_spec='-L$libdir'
12373 hardcode_shlibpath_var=no
12374 ;;
12375
12376 *)
12377 ld_shlibs=no
12378 ;;
12379 esac
12380
12381 if test sni = "$host_vendor"; then
12382 case $host in
12383 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12384 export_dynamic_flag_spec='$wl-Blargedynsym'
12385 ;;
12386 esac
12387 fi
12388 fi
12389
12390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12391 printf "%s\n" "$ld_shlibs" >&6; }
12392 test no = "$ld_shlibs" && can_build_shared=no
12393
12394 with_gnu_ld=$with_gnu_ld
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410 #
12411 # Do we need to explicitly link libc?
12412 #
12413 case "x$archive_cmds_need_lc" in
12414 x|xyes)
12415 # Assume -lc should be added
12416 archive_cmds_need_lc=yes
12417
12418 if test yes,yes = "$GCC,$enable_shared"; then
12419 case $archive_cmds in
12420 *'~'*)
12421 # FIXME: we may have to deal with multi-command sequences.
12422 ;;
12423 '$CC '*)
12424 # Test whether the compiler implicitly links with -lc since on some
12425 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12426 # to ld, don't add -lc before -lgcc.
12427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12428 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12429 if test ${lt_cv_archive_cmds_need_lc+y}
12430 then :
12431 printf %s "(cached) " >&6
12432 else case e in #(
12433 e) $RM conftest*
12434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12435
12436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12437 (eval $ac_compile) 2>&5
12438 ac_status=$?
12439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12440 test $ac_status = 0; } 2>conftest.err; then
12441 soname=conftest
12442 lib=conftest
12443 libobjs=conftest.$ac_objext
12444 deplibs=
12445 wl=$lt_prog_compiler_wl
12446 pic_flag=$lt_prog_compiler_pic
12447 compiler_flags=-v
12448 linker_flags=-v
12449 verstring=
12450 output_objdir=.
12451 libname=conftest
12452 lt_save_allow_undefined_flag=$allow_undefined_flag
12453 allow_undefined_flag=
12454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12455 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12456 ac_status=$?
12457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12458 test $ac_status = 0; }
12459 then
12460 lt_cv_archive_cmds_need_lc=no
12461 else
12462 lt_cv_archive_cmds_need_lc=yes
12463 fi
12464 allow_undefined_flag=$lt_save_allow_undefined_flag
12465 else
12466 cat conftest.err 1>&5
12467 fi
12468 $RM conftest*
12469 ;;
12470 esac
12471 fi
12472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12473 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12474 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12475 ;;
12476 esac
12477 fi
12478 ;;
12479 esac
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12633 printf %s "checking dynamic linker characteristics... " >&6; }
12634
12635 if test yes = "$GCC"; then
12636 case $host_os in
12637 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12638 *) lt_awk_arg='/^libraries:/' ;;
12639 esac
12640 case $host_os in
12641 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12642 *) lt_sed_strip_eq='s|=/|/|g' ;;
12643 esac
12644 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12645 case $lt_search_path_spec in
12646 *\;*)
12647 # if the path contains ";" then we assume it to be the separator
12648 # otherwise default to the standard path separator (i.e. ":") - it is
12649 # assumed that no part of a normal pathname contains ";" but that should
12650 # okay in the real world where ";" in dirpaths is itself problematic.
12651 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12652 ;;
12653 *)
12654 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12655 ;;
12656 esac
12657 # Ok, now we have the path, separated by spaces, we can step through it
12658 # and add multilib dir if necessary...
12659 lt_tmp_lt_search_path_spec=
12660 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12661 # ...but if some path component already ends with the multilib dir we assume
12662 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12663 case "$lt_multi_os_dir; $lt_search_path_spec " in
12664 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12665 lt_multi_os_dir=
12666 ;;
12667 esac
12668 for lt_sys_path in $lt_search_path_spec; do
12669 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12670 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12671 elif test -n "$lt_multi_os_dir"; then
12672 test -d "$lt_sys_path" && \
12673 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12674 fi
12675 done
12676 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12677 BEGIN {RS = " "; FS = "/|\n";} {
12678 lt_foo = "";
12679 lt_count = 0;
12680 for (lt_i = NF; lt_i > 0; lt_i--) {
12681 if ($lt_i != "" && $lt_i != ".") {
12682 if ($lt_i == "..") {
12683 lt_count++;
12684 } else {
12685 if (lt_count == 0) {
12686 lt_foo = "/" $lt_i lt_foo;
12687 } else {
12688 lt_count--;
12689 }
12690 }
12691 }
12692 }
12693 if (lt_foo != "") { lt_freq[lt_foo]++; }
12694 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12695 }'`
12696 # AWK program above erroneously prepends '/' to C:/dos/paths
12697 # for these hosts.
12698 case $host_os in
12699 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12700 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12701 esac
12702 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12703 else
12704 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12705 fi
12706 library_names_spec=
12707 libname_spec='lib$name'
12708 soname_spec=
12709 shrext_cmds=.so
12710 postinstall_cmds=
12711 postuninstall_cmds=
12712 finish_cmds=
12713 finish_eval=
12714 shlibpath_var=
12715 shlibpath_overrides_runpath=unknown
12716 version_type=none
12717 dynamic_linker="$host_os ld.so"
12718 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12719 need_lib_prefix=unknown
12720 hardcode_into_libs=no
12721
12722 # when you set need_version to no, make sure it does not cause -set_version
12723 # flags to be left without arguments
12724 need_version=unknown
12725
12726
12727
12728 case $host_os in
12729 aix3*)
12730 version_type=linux # correct to gnu/linux during the next big refactor
12731 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12732 shlibpath_var=LIBPATH
12733
12734 # AIX 3 has no versioning support, so we append a major version to the name.
12735 soname_spec='$libname$release$shared_ext$major'
12736 ;;
12737
12738 aix[4-9]*)
12739 version_type=linux # correct to gnu/linux during the next big refactor
12740 need_lib_prefix=no
12741 need_version=no
12742 hardcode_into_libs=yes
12743 if test ia64 = "$host_cpu"; then
12744 # AIX 5 supports IA64
12745 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12746 shlibpath_var=LD_LIBRARY_PATH
12747 else
12748 # With GCC up to 2.95.x, collect2 would create an import file
12749 # for dependence libraries. The import file would start with
12750 # the line '#! .'. This would cause the generated library to
12751 # depend on '.', always an invalid library. This was fixed in
12752 # development snapshots of GCC prior to 3.0.
12753 case $host_os in
12754 aix4 | aix4.[01] | aix4.[01].*)
12755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12756 echo ' yes '
12757 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12758 :
12759 else
12760 can_build_shared=no
12761 fi
12762 ;;
12763 esac
12764 # Using Import Files as archive members, it is possible to support
12765 # filename-based versioning of shared library archives on AIX. While
12766 # this would work for both with and without runtime linking, it will
12767 # prevent static linking of such archives. So we do filename-based
12768 # shared library versioning with .so extension only, which is used
12769 # when both runtime linking and shared linking is enabled.
12770 # Unfortunately, runtime linking may impact performance, so we do
12771 # not want this to be the default eventually. Also, we use the
12772 # versioned .so libs for executables only if there is the -brtl
12773 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12774 # To allow for filename-based versioning support, we need to create
12775 # libNAME.so.V as an archive file, containing:
12776 # *) an Import File, referring to the versioned filename of the
12777 # archive as well as the shared archive member, telling the
12778 # bitwidth (32 or 64) of that shared object, and providing the
12779 # list of exported symbols of that shared object, eventually
12780 # decorated with the 'weak' keyword
12781 # *) the shared object with the F_LOADONLY flag set, to really avoid
12782 # it being seen by the linker.
12783 # At run time we better use the real file rather than another symlink,
12784 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12785
12786 case $with_aix_soname,$aix_use_runtimelinking in
12787 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12788 # soname into executable. Probably we can add versioning support to
12789 # collect2, so additional links can be useful in future.
12790 aix,yes) # traditional libtool
12791 dynamic_linker='AIX unversionable lib.so'
12792 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12793 # instead of lib<name>.a to let people know that these are not
12794 # typical AIX shared libraries.
12795 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12796 ;;
12797 aix,no) # traditional AIX only
12798 dynamic_linker='AIX lib.a(lib.so.V)'
12799 # We preserve .a as extension for shared libraries through AIX4.2
12800 # and later when we are not doing run time linking.
12801 library_names_spec='$libname$release.a $libname.a'
12802 soname_spec='$libname$release$shared_ext$major'
12803 ;;
12804 svr4,*) # full svr4 only
12805 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12806 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12807 # We do not specify a path in Import Files, so LIBPATH fires.
12808 shlibpath_overrides_runpath=yes
12809 ;;
12810 *,yes) # both, prefer svr4
12811 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12812 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12813 # unpreferred sharedlib libNAME.a needs extra handling
12814 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"'
12815 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"'
12816 # We do not specify a path in Import Files, so LIBPATH fires.
12817 shlibpath_overrides_runpath=yes
12818 ;;
12819 *,no) # both, prefer aix
12820 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12821 library_names_spec='$libname$release.a $libname.a'
12822 soname_spec='$libname$release$shared_ext$major'
12823 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12824 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)'
12825 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"'
12826 ;;
12827 esac
12828 shlibpath_var=LIBPATH
12829 fi
12830 ;;
12831
12832 amigaos*)
12833 case $host_cpu in
12834 powerpc)
12835 # Since July 2007 AmigaOS4 officially supports .so libraries.
12836 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12838 ;;
12839 m68k)
12840 library_names_spec='$libname.ixlibrary $libname.a'
12841 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12842 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'
12843 ;;
12844 esac
12845 ;;
12846
12847 beos*)
12848 library_names_spec='$libname$shared_ext'
12849 dynamic_linker="$host_os ld.so"
12850 shlibpath_var=LIBRARY_PATH
12851 ;;
12852
12853 bsdi[45]*)
12854 version_type=linux # correct to gnu/linux during the next big refactor
12855 need_version=no
12856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12857 soname_spec='$libname$release$shared_ext$major'
12858 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12859 shlibpath_var=LD_LIBRARY_PATH
12860 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12861 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12862 # the default ld.so.conf also contains /usr/contrib/lib and
12863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12864 # libtool to hard-code these into programs
12865 ;;
12866
12867 cygwin* | mingw* | windows* | pw32* | cegcc*)
12868 version_type=windows
12869 shrext_cmds=.dll
12870 need_version=no
12871 need_lib_prefix=no
12872
12873 case $GCC,$cc_basename in
12874 yes,*)
12875 # gcc
12876 library_names_spec='$libname.dll.a'
12877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12878 # If user builds GCC with multilib enabled,
12879 # it should just install on $(libdir)
12880 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12881 if test xyes = x"$multilib"; then
12882 postinstall_cmds='base_file=`basename \$file`~
12883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12884 dldir=$destdir/`dirname \$dlpath`~
12885 $install_prog $dir/$dlname $destdir/$dlname~
12886 chmod a+x $destdir/$dlname~
12887 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12888 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12889 fi'
12890 else
12891 postinstall_cmds='base_file=`basename \$file`~
12892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12893 dldir=$destdir/`dirname \$dlpath`~
12894 test -d \$dldir || mkdir -p \$dldir~
12895 $install_prog $dir/$dlname \$dldir/$dlname~
12896 chmod a+x \$dldir/$dlname~
12897 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12898 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12899 fi'
12900 fi
12901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12902 dlpath=$dir/\$dldll~
12903 $RM \$dlpath'
12904 shlibpath_overrides_runpath=yes
12905
12906 case $host_os in
12907 cygwin*)
12908 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12909 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12910
12911 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12912 ;;
12913 mingw* | windows* | cegcc*)
12914 # MinGW DLLs use traditional 'lib' prefix
12915 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12916 ;;
12917 pw32*)
12918 # pw32 DLLs use 'pw' prefix rather than 'lib'
12919 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12920 ;;
12921 esac
12922 dynamic_linker='Win32 ld.exe'
12923 ;;
12924
12925 *,cl* | *,icl*)
12926 # Native MSVC or ICC
12927 libname_spec='$name'
12928 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12929 library_names_spec='$libname.dll.lib'
12930
12931 case $build_os in
12932 mingw* | windows*)
12933 sys_lib_search_path_spec=
12934 lt_save_ifs=$IFS
12935 IFS=';'
12936 for lt_path in $LIB
12937 do
12938 IFS=$lt_save_ifs
12939 # Let DOS variable expansion print the short 8.3 style file name.
12940 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12941 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12942 done
12943 IFS=$lt_save_ifs
12944 # Convert to MSYS style.
12945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12946 ;;
12947 cygwin*)
12948 # Convert to unix form, then to dos form, then back to unix form
12949 # but this time dos style (no spaces!) so that the unix form looks
12950 # like /cygdrive/c/PROGRA~1:/cygdr...
12951 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12952 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12953 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12954 ;;
12955 *)
12956 sys_lib_search_path_spec=$LIB
12957 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12958 # It is most probably a Windows format PATH.
12959 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12960 else
12961 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12962 fi
12963 # FIXME: find the short name or the path components, as spaces are
12964 # common. (e.g. "Program Files" -> "PROGRA~1")
12965 ;;
12966 esac
12967
12968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12969 postinstall_cmds='base_file=`basename \$file`~
12970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12971 dldir=$destdir/`dirname \$dlpath`~
12972 test -d \$dldir || mkdir -p \$dldir~
12973 $install_prog $dir/$dlname \$dldir/$dlname'
12974 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12975 dlpath=$dir/\$dldll~
12976 $RM \$dlpath'
12977 shlibpath_overrides_runpath=yes
12978 dynamic_linker='Win32 link.exe'
12979 ;;
12980
12981 *)
12982 # Assume MSVC and ICC wrapper
12983 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12984 dynamic_linker='Win32 ld.exe'
12985 ;;
12986 esac
12987 # FIXME: first we should search . and the directory the executable is in
12988 shlibpath_var=PATH
12989 ;;
12990
12991 darwin* | rhapsody*)
12992 dynamic_linker="$host_os dyld"
12993 version_type=darwin
12994 need_lib_prefix=no
12995 need_version=no
12996 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12997 soname_spec='$libname$release$major$shared_ext'
12998 shlibpath_overrides_runpath=yes
12999 shlibpath_var=DYLD_LIBRARY_PATH
13000 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13001
13002 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13003 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13004 ;;
13005
13006 dgux*)
13007 version_type=linux # correct to gnu/linux during the next big refactor
13008 need_lib_prefix=no
13009 need_version=no
13010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13011 soname_spec='$libname$release$shared_ext$major'
13012 shlibpath_var=LD_LIBRARY_PATH
13013 ;;
13014
13015 freebsd* | dragonfly* | midnightbsd*)
13016 # DragonFly does not have aout. When/if they implement a new
13017 # versioning mechanism, adjust this.
13018 if test -x /usr/bin/objformat; then
13019 objformat=`/usr/bin/objformat`
13020 else
13021 case $host_os in
13022 freebsd[23].*) objformat=aout ;;
13023 *) objformat=elf ;;
13024 esac
13025 fi
13026 version_type=freebsd-$objformat
13027 case $version_type in
13028 freebsd-elf*)
13029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13030 soname_spec='$libname$release$shared_ext$major'
13031 need_version=no
13032 need_lib_prefix=no
13033 ;;
13034 freebsd-*)
13035 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13036 need_version=yes
13037 ;;
13038 esac
13039 case $host_cpu in
13040 powerpc64)
13041 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13042 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13045 int test_pointer_size[sizeof (void *) - 5];
13046
13047 _ACEOF
13048 if ac_fn_c_try_compile "$LINENO"
13049 then :
13050 shlibpath_var=LD_LIBRARY_PATH
13051 else case e in #(
13052 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13053 esac
13054 fi
13055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13056 ;;
13057 *)
13058 shlibpath_var=LD_LIBRARY_PATH
13059 ;;
13060 esac
13061 case $host_os in
13062 freebsd2.*)
13063 shlibpath_overrides_runpath=yes
13064 ;;
13065 freebsd3.[01]* | freebsdelf3.[01]*)
13066 shlibpath_overrides_runpath=yes
13067 hardcode_into_libs=yes
13068 ;;
13069 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13070 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13071 shlibpath_overrides_runpath=no
13072 hardcode_into_libs=yes
13073 ;;
13074 *) # from 4.6 on, and DragonFly
13075 shlibpath_overrides_runpath=yes
13076 hardcode_into_libs=yes
13077 ;;
13078 esac
13079 ;;
13080
13081 haiku*)
13082 version_type=linux # correct to gnu/linux during the next big refactor
13083 need_lib_prefix=no
13084 need_version=no
13085 dynamic_linker="$host_os runtime_loader"
13086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13087 soname_spec='$libname$release$shared_ext$major'
13088 shlibpath_var=LIBRARY_PATH
13089 shlibpath_overrides_runpath=no
13090 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13091 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13092 hardcode_into_libs=no
13093 ;;
13094
13095 hpux9* | hpux10* | hpux11*)
13096 # Give a soname corresponding to the major version so that dld.sl refuses to
13097 # link against other versions.
13098 version_type=sunos
13099 need_lib_prefix=no
13100 need_version=no
13101 case $host_cpu in
13102 ia64*)
13103 shrext_cmds='.so'
13104 hardcode_into_libs=yes
13105 dynamic_linker="$host_os dld.so"
13106 shlibpath_var=LD_LIBRARY_PATH
13107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13109 soname_spec='$libname$release$shared_ext$major'
13110 if test 32 = "$HPUX_IA64_MODE"; then
13111 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13112 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13113 else
13114 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13115 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13116 fi
13117 ;;
13118 hppa*64*)
13119 shrext_cmds='.sl'
13120 hardcode_into_libs=yes
13121 dynamic_linker="$host_os dld.sl"
13122 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13125 soname_spec='$libname$release$shared_ext$major'
13126 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13128 ;;
13129 *)
13130 shrext_cmds='.sl'
13131 dynamic_linker="$host_os dld.sl"
13132 shlibpath_var=SHLIB_PATH
13133 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13135 soname_spec='$libname$release$shared_ext$major'
13136 ;;
13137 esac
13138 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13139 postinstall_cmds='chmod 555 $lib'
13140 # or fails outright, so override atomically:
13141 install_override_mode=555
13142 ;;
13143
13144 interix[3-9]*)
13145 version_type=linux # correct to gnu/linux during the next big refactor
13146 need_lib_prefix=no
13147 need_version=no
13148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13149 soname_spec='$libname$release$shared_ext$major'
13150 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13151 shlibpath_var=LD_LIBRARY_PATH
13152 shlibpath_overrides_runpath=no
13153 hardcode_into_libs=yes
13154 ;;
13155
13156 irix5* | irix6* | nonstopux*)
13157 case $host_os in
13158 nonstopux*) version_type=nonstopux ;;
13159 *)
13160 if test yes = "$lt_cv_prog_gnu_ld"; then
13161 version_type=linux # correct to gnu/linux during the next big refactor
13162 else
13163 version_type=irix
13164 fi ;;
13165 esac
13166 need_lib_prefix=no
13167 need_version=no
13168 soname_spec='$libname$release$shared_ext$major'
13169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13170 case $host_os in
13171 irix5* | nonstopux*)
13172 libsuff= shlibsuff=
13173 ;;
13174 *)
13175 case $LD in # libtool.m4 will add one of these switches to LD
13176 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13177 libsuff= shlibsuff= libmagic=32-bit;;
13178 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13179 libsuff=32 shlibsuff=N32 libmagic=N32;;
13180 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13181 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13182 *) libsuff= shlibsuff= libmagic=never-match;;
13183 esac
13184 ;;
13185 esac
13186 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13187 shlibpath_overrides_runpath=no
13188 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13189 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13190 hardcode_into_libs=yes
13191 ;;
13192
13193 # No shared lib support for Linux oldld, aout, or coff.
13194 linux*oldld* | linux*aout* | linux*coff*)
13195 dynamic_linker=no
13196 ;;
13197
13198 linux*android*)
13199 version_type=none # Android doesn't support versioned libraries.
13200 need_lib_prefix=no
13201 need_version=no
13202 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13203 soname_spec='$libname$release$shared_ext'
13204 finish_cmds=
13205 shlibpath_var=LD_LIBRARY_PATH
13206 shlibpath_overrides_runpath=yes
13207
13208 # This implies no fast_install, which is unacceptable.
13209 # Some rework will be needed to allow for fast_install
13210 # before this can be enabled.
13211 hardcode_into_libs=yes
13212
13213 dynamic_linker='Android linker'
13214 # -rpath works at least for libraries that are not overridden by
13215 # libraries installed in system locations.
13216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13217 ;;
13218
13219 # This must be glibc/ELF.
13220 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13221 version_type=linux # correct to gnu/linux during the next big refactor
13222 need_lib_prefix=no
13223 need_version=no
13224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13225 soname_spec='$libname$release$shared_ext$major'
13226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13227 shlibpath_var=LD_LIBRARY_PATH
13228 shlibpath_overrides_runpath=no
13229
13230 # Some binutils ld are patched to set DT_RUNPATH
13231 if test ${lt_cv_shlibpath_overrides_runpath+y}
13232 then :
13233 printf %s "(cached) " >&6
13234 else case e in #(
13235 e) lt_cv_shlibpath_overrides_runpath=no
13236 save_LDFLAGS=$LDFLAGS
13237 save_libdir=$libdir
13238 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13239 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242
13243 int
13244 main (void)
13245 {
13246
13247 ;
13248 return 0;
13249 }
13250 _ACEOF
13251 if ac_fn_c_try_link "$LINENO"
13252 then :
13253 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13254 then :
13255 lt_cv_shlibpath_overrides_runpath=yes
13256 fi
13257 fi
13258 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13259 conftest$ac_exeext conftest.$ac_ext
13260 LDFLAGS=$save_LDFLAGS
13261 libdir=$save_libdir
13262 ;;
13263 esac
13264 fi
13265
13266 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13267
13268 # This implies no fast_install, which is unacceptable.
13269 # Some rework will be needed to allow for fast_install
13270 # before this can be enabled.
13271 hardcode_into_libs=yes
13272
13273 # Ideally, we could use ldconfig to report *all* directories which are
13274 # searched for libraries, however this is still not possible. Aside from not
13275 # being certain /sbin/ldconfig is available, command
13276 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13277 # even though it is searched at run-time. Try to do the best guess by
13278 # appending ld.so.conf contents (and includes) to the search path.
13279 if test -f /etc/ld.so.conf; then
13280 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' ' '`
13281 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13282 fi
13283
13284 # We used to test for /lib/ld.so.1 and disable shared libraries on
13285 # powerpc, because MkLinux only supported shared libraries with the
13286 # GNU dynamic linker. Since this was broken with cross compilers,
13287 # most powerpc-linux boxes support dynamic linking these days and
13288 # people can always --disable-shared, the test was removed, and we
13289 # assume the GNU/Linux dynamic linker is in use.
13290 dynamic_linker='GNU/Linux ld.so'
13291 ;;
13292
13293 netbsdelf*-gnu)
13294 version_type=linux
13295 need_lib_prefix=no
13296 need_version=no
13297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13298 soname_spec='$libname$release$shared_ext$major'
13299 shlibpath_var=LD_LIBRARY_PATH
13300 shlibpath_overrides_runpath=no
13301 hardcode_into_libs=yes
13302 dynamic_linker='NetBSD ld.elf_so'
13303 ;;
13304
13305 netbsd*)
13306 version_type=sunos
13307 need_lib_prefix=no
13308 need_version=no
13309 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13310 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13312 dynamic_linker='NetBSD (a.out) ld.so'
13313 else
13314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13315 soname_spec='$libname$release$shared_ext$major'
13316 dynamic_linker='NetBSD ld.elf_so'
13317 fi
13318 shlibpath_var=LD_LIBRARY_PATH
13319 shlibpath_overrides_runpath=yes
13320 hardcode_into_libs=yes
13321 ;;
13322
13323 *-mlibc)
13324 version_type=linux # correct to gnu/linux during the next big refactor
13325 need_lib_prefix=no
13326 need_version=no
13327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13328 soname_spec='$libname$release$shared_ext$major'
13329 dynamic_linker='mlibc ld.so'
13330 shlibpath_var=LD_LIBRARY_PATH
13331 shlibpath_overrides_runpath=no
13332 hardcode_into_libs=yes
13333 ;;
13334
13335 newsos6)
13336 version_type=linux # correct to gnu/linux during the next big refactor
13337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13338 shlibpath_var=LD_LIBRARY_PATH
13339 shlibpath_overrides_runpath=yes
13340 ;;
13341
13342 *nto* | *qnx*)
13343 version_type=qnx
13344 need_lib_prefix=no
13345 need_version=no
13346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13347 soname_spec='$libname$release$shared_ext$major'
13348 shlibpath_var=LD_LIBRARY_PATH
13349 shlibpath_overrides_runpath=no
13350 hardcode_into_libs=yes
13351 dynamic_linker='ldqnx.so'
13352 ;;
13353
13354 openbsd*)
13355 version_type=sunos
13356 sys_lib_dlsearch_path_spec=/usr/lib
13357 need_lib_prefix=no
13358 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13359 need_version=no
13360 else
13361 need_version=yes
13362 fi
13363 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13365 shlibpath_var=LD_LIBRARY_PATH
13366 shlibpath_overrides_runpath=yes
13367 ;;
13368
13369 os2*)
13370 libname_spec='$name'
13371 version_type=windows
13372 shrext_cmds=.dll
13373 need_version=no
13374 need_lib_prefix=no
13375 # OS/2 can only load a DLL with a base name of 8 characters or less.
13376 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13377 v=$($ECHO $release$versuffix | tr -d .-);
13378 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13379 $ECHO $n$v`$shared_ext'
13380 library_names_spec='${libname}_dll.$libext'
13381 dynamic_linker='OS/2 ld.exe'
13382 shlibpath_var=BEGINLIBPATH
13383 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13385 postinstall_cmds='base_file=`basename \$file`~
13386 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13387 dldir=$destdir/`dirname \$dlpath`~
13388 test -d \$dldir || mkdir -p \$dldir~
13389 $install_prog $dir/$dlname \$dldir/$dlname~
13390 chmod a+x \$dldir/$dlname~
13391 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13392 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13393 fi'
13394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13395 dlpath=$dir/\$dldll~
13396 $RM \$dlpath'
13397 ;;
13398
13399 osf3* | osf4* | osf5*)
13400 version_type=osf
13401 need_lib_prefix=no
13402 need_version=no
13403 soname_spec='$libname$release$shared_ext$major'
13404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13405 shlibpath_var=LD_LIBRARY_PATH
13406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13408 ;;
13409
13410 rdos*)
13411 dynamic_linker=no
13412 ;;
13413
13414 serenity*)
13415 version_type=linux # correct to gnu/linux during the next big refactor
13416 need_lib_prefix=no
13417 need_version=no
13418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13419 soname_spec='$libname$release$shared_ext$major'
13420 shlibpath_var=LD_LIBRARY_PATH
13421 shlibpath_overrides_runpath=no
13422 dynamic_linker='SerenityOS LibELF'
13423 ;;
13424
13425 solaris*)
13426 version_type=linux # correct to gnu/linux during the next big refactor
13427 need_lib_prefix=no
13428 need_version=no
13429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13430 soname_spec='$libname$release$shared_ext$major'
13431 shlibpath_var=LD_LIBRARY_PATH
13432 shlibpath_overrides_runpath=yes
13433 hardcode_into_libs=yes
13434 # ldd complains unless libraries are executable
13435 postinstall_cmds='chmod +x $lib'
13436 ;;
13437
13438 sunos4*)
13439 version_type=sunos
13440 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13441 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13442 shlibpath_var=LD_LIBRARY_PATH
13443 shlibpath_overrides_runpath=yes
13444 if test yes = "$with_gnu_ld"; then
13445 need_lib_prefix=no
13446 fi
13447 need_version=yes
13448 ;;
13449
13450 sysv4 | sysv4.3*)
13451 version_type=linux # correct to gnu/linux during the next big refactor
13452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13453 soname_spec='$libname$release$shared_ext$major'
13454 shlibpath_var=LD_LIBRARY_PATH
13455 case $host_vendor in
13456 sni)
13457 shlibpath_overrides_runpath=no
13458 need_lib_prefix=no
13459 runpath_var=LD_RUN_PATH
13460 ;;
13461 siemens)
13462 need_lib_prefix=no
13463 ;;
13464 motorola)
13465 need_lib_prefix=no
13466 need_version=no
13467 shlibpath_overrides_runpath=no
13468 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13469 ;;
13470 esac
13471 ;;
13472
13473 sysv4*MP*)
13474 if test -d /usr/nec; then
13475 version_type=linux # correct to gnu/linux during the next big refactor
13476 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13477 soname_spec='$libname$shared_ext.$major'
13478 shlibpath_var=LD_LIBRARY_PATH
13479 fi
13480 ;;
13481
13482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13483 version_type=sco
13484 need_lib_prefix=no
13485 need_version=no
13486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13487 soname_spec='$libname$release$shared_ext$major'
13488 shlibpath_var=LD_LIBRARY_PATH
13489 shlibpath_overrides_runpath=yes
13490 hardcode_into_libs=yes
13491 if test yes = "$with_gnu_ld"; then
13492 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13493 else
13494 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13495 case $host_os in
13496 sco3.2v5*)
13497 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13498 ;;
13499 esac
13500 fi
13501 sys_lib_dlsearch_path_spec='/usr/lib'
13502 ;;
13503
13504 tpf*)
13505 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13506 version_type=linux # correct to gnu/linux during the next big refactor
13507 need_lib_prefix=no
13508 need_version=no
13509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 shlibpath_overrides_runpath=no
13512 hardcode_into_libs=yes
13513 ;;
13514
13515 uts4*)
13516 version_type=linux # correct to gnu/linux during the next big refactor
13517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13518 soname_spec='$libname$release$shared_ext$major'
13519 shlibpath_var=LD_LIBRARY_PATH
13520 ;;
13521
13522 emscripten*)
13523 version_type=none
13524 need_lib_prefix=no
13525 need_version=no
13526 library_names_spec='$libname$release$shared_ext'
13527 soname_spec='$libname$release$shared_ext'
13528 finish_cmds=
13529 dynamic_linker="Emscripten linker"
13530 lt_prog_compiler_wl=
13531 lt_prog_compiler_pic=
13532 lt_prog_compiler_static=
13533
13534
13535 if test yes = "$GCC"; then
13536 lt_prog_compiler_wl='-Wl,'
13537 lt_prog_compiler_static='-static'
13538
13539 case $host_os in
13540 aix*)
13541 # All AIX code is PIC.
13542 if test ia64 = "$host_cpu"; then
13543 # AIX 5 now supports IA64 processor
13544 lt_prog_compiler_static='-Bstatic'
13545 fi
13546 lt_prog_compiler_pic='-fPIC'
13547 ;;
13548
13549 amigaos*)
13550 case $host_cpu in
13551 powerpc)
13552 # see comment about AmigaOS4 .so support
13553 lt_prog_compiler_pic='-fPIC'
13554 ;;
13555 m68k)
13556 # FIXME: we need at least 68020 code to build shared libraries, but
13557 # adding the '-m68020' flag to GCC prevents building anything better,
13558 # like '-m68040'.
13559 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13560 ;;
13561 esac
13562 ;;
13563
13564 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13565 # PIC is the default for these OSes.
13566 ;;
13567
13568 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13569 # This hack is so that the source file can tell whether it is being
13570 # built for inclusion in a dll (and should export symbols for example).
13571 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13572 # (--disable-auto-import) libraries
13573 lt_prog_compiler_pic='-DDLL_EXPORT'
13574 case $host_os in
13575 os2*)
13576 lt_prog_compiler_static='$wl-static'
13577 ;;
13578 esac
13579 ;;
13580
13581 darwin* | rhapsody*)
13582 # PIC is the default on this platform
13583 # Common symbols not allowed in MH_DYLIB files
13584 lt_prog_compiler_pic='-fno-common'
13585 ;;
13586
13587 haiku*)
13588 # PIC is the default for Haiku.
13589 # The "-static" flag exists, but is broken.
13590 lt_prog_compiler_static=
13591 ;;
13592
13593 hpux*)
13594 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13595 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13596 # sets the default TLS model and affects inlining.
13597 case $host_cpu in
13598 hppa*64*)
13599 # +Z the default
13600 ;;
13601 *)
13602 lt_prog_compiler_pic='-fPIC'
13603 ;;
13604 esac
13605 ;;
13606
13607 interix[3-9]*)
13608 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13609 # Instead, we relocate shared libraries at runtime.
13610 ;;
13611
13612 msdosdjgpp*)
13613 # Just because we use GCC doesn't mean we suddenly get shared libraries
13614 # on systems that don't support them.
13615 lt_prog_compiler_can_build_shared=no
13616 enable_shared=no
13617 ;;
13618
13619 *nto* | *qnx*)
13620 # QNX uses GNU C++, but need to define -shared option too, otherwise
13621 # it will coredump.
13622 lt_prog_compiler_pic='-fPIC -shared'
13623 ;;
13624
13625 sysv4*MP*)
13626 if test -d /usr/nec; then
13627 lt_prog_compiler_pic=-Kconform_pic
13628 fi
13629 ;;
13630
13631 *)
13632 lt_prog_compiler_pic='-fPIC'
13633 ;;
13634 esac
13635
13636 case $cc_basename in
13637 nvcc*) # Cuda Compiler Driver 2.2
13638 lt_prog_compiler_wl='-Xlinker '
13639 if test -n "$lt_prog_compiler_pic"; then
13640 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13641 fi
13642 ;;
13643 esac
13644 else
13645 # PORTME Check for flag to pass linker flags through the system compiler.
13646 case $host_os in
13647 aix*)
13648 lt_prog_compiler_wl='-Wl,'
13649 if test ia64 = "$host_cpu"; then
13650 # AIX 5 now supports IA64 processor
13651 lt_prog_compiler_static='-Bstatic'
13652 else
13653 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13654 fi
13655 ;;
13656
13657 darwin* | rhapsody*)
13658 # PIC is the default on this platform
13659 # Common symbols not allowed in MH_DYLIB files
13660 lt_prog_compiler_pic='-fno-common'
13661 case $cc_basename in
13662 nagfor*)
13663 # NAG Fortran compiler
13664 lt_prog_compiler_wl='-Wl,-Wl,,'
13665 lt_prog_compiler_pic='-PIC'
13666 lt_prog_compiler_static='-Bstatic'
13667 ;;
13668 esac
13669 ;;
13670
13671 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13672 # This hack is so that the source file can tell whether it is being
13673 # built for inclusion in a dll (and should export symbols for example).
13674 lt_prog_compiler_pic='-DDLL_EXPORT'
13675 case $host_os in
13676 os2*)
13677 lt_prog_compiler_static='$wl-static'
13678 ;;
13679 esac
13680 ;;
13681
13682 hpux9* | hpux10* | hpux11*)
13683 lt_prog_compiler_wl='-Wl,'
13684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13685 # not for PA HP-UX.
13686 case $host_cpu in
13687 hppa*64*|ia64*)
13688 # +Z the default
13689 ;;
13690 *)
13691 lt_prog_compiler_pic='+Z'
13692 ;;
13693 esac
13694 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13695 lt_prog_compiler_static='$wl-a ${wl}archive'
13696 ;;
13697
13698 irix5* | irix6* | nonstopux*)
13699 lt_prog_compiler_wl='-Wl,'
13700 # PIC (with -KPIC) is the default.
13701 lt_prog_compiler_static='-non_shared'
13702 ;;
13703
13704 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13705 case $cc_basename in
13706 # old Intel for x86_64, which still supported -KPIC.
13707 ecc*)
13708 lt_prog_compiler_wl='-Wl,'
13709 lt_prog_compiler_pic='-KPIC'
13710 lt_prog_compiler_static='-static'
13711 ;;
13712 *flang* | ftn | f18* | f95*)
13713 # Flang compiler.
13714 lt_prog_compiler_wl='-Wl,'
13715 lt_prog_compiler_pic='-fPIC'
13716 lt_prog_compiler_static='-static'
13717 ;;
13718 # icc used to be incompatible with GCC.
13719 # ICC 10 doesn't accept -KPIC any more.
13720 icc* | ifort*)
13721 lt_prog_compiler_wl='-Wl,'
13722 lt_prog_compiler_pic='-fPIC'
13723 lt_prog_compiler_static='-static'
13724 ;;
13725 # Lahey Fortran 8.1.
13726 lf95*)
13727 lt_prog_compiler_wl='-Wl,'
13728 lt_prog_compiler_pic='--shared'
13729 lt_prog_compiler_static='--static'
13730 ;;
13731 nagfor*)
13732 # NAG Fortran compiler
13733 lt_prog_compiler_wl='-Wl,-Wl,,'
13734 lt_prog_compiler_pic='-PIC'
13735 lt_prog_compiler_static='-Bstatic'
13736 ;;
13737 tcc*)
13738 # Fabrice Bellard et al's Tiny C Compiler
13739 lt_prog_compiler_wl='-Wl,'
13740 lt_prog_compiler_pic='-fPIC'
13741 lt_prog_compiler_static='-static'
13742 ;;
13743 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13744 # Portland Group compilers (*not* the Pentium gcc compiler,
13745 # which looks to be a dead project)
13746 lt_prog_compiler_wl='-Wl,'
13747 lt_prog_compiler_pic='-fpic'
13748 lt_prog_compiler_static='-Bstatic'
13749 ;;
13750 ccc*)
13751 lt_prog_compiler_wl='-Wl,'
13752 # All Alpha code is PIC.
13753 lt_prog_compiler_static='-non_shared'
13754 ;;
13755 xl* | bgxl* | bgf* | mpixl*)
13756 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13757 lt_prog_compiler_wl='-Wl,'
13758 lt_prog_compiler_pic='-qpic'
13759 lt_prog_compiler_static='-qstaticlink'
13760 ;;
13761 *)
13762 case `$CC -V 2>&1 | $SED 5q` in
13763 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13764 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13765 lt_prog_compiler_pic='-KPIC'
13766 lt_prog_compiler_static='-Bstatic'
13767 lt_prog_compiler_wl=''
13768 ;;
13769 *Sun\ F* | *Sun*Fortran*)
13770 lt_prog_compiler_pic='-KPIC'
13771 lt_prog_compiler_static='-Bstatic'
13772 lt_prog_compiler_wl='-Qoption ld '
13773 ;;
13774 *Sun\ C*)
13775 # Sun C 5.9
13776 lt_prog_compiler_pic='-KPIC'
13777 lt_prog_compiler_static='-Bstatic'
13778 lt_prog_compiler_wl='-Wl,'
13779 ;;
13780 *Intel*\ [CF]*Compiler*)
13781 lt_prog_compiler_wl='-Wl,'
13782 lt_prog_compiler_pic='-fPIC'
13783 lt_prog_compiler_static='-static'
13784 ;;
13785 *Portland\ Group*)
13786 lt_prog_compiler_wl='-Wl,'
13787 lt_prog_compiler_pic='-fpic'
13788 lt_prog_compiler_static='-Bstatic'
13789 ;;
13790 esac
13791 ;;
13792 esac
13793 ;;
13794
13795 newsos6)
13796 lt_prog_compiler_pic='-KPIC'
13797 lt_prog_compiler_static='-Bstatic'
13798 ;;
13799
13800 *-mlibc)
13801 lt_prog_compiler_wl='-Wl,'
13802 lt_prog_compiler_pic='-fPIC'
13803 lt_prog_compiler_static='-static'
13804 ;;
13805
13806 *nto* | *qnx*)
13807 # QNX uses GNU C++, but need to define -shared option too, otherwise
13808 # it will coredump.
13809 lt_prog_compiler_pic='-fPIC -shared'
13810 ;;
13811
13812 osf3* | osf4* | osf5*)
13813 lt_prog_compiler_wl='-Wl,'
13814 # All OSF/1 code is PIC.
13815 lt_prog_compiler_static='-non_shared'
13816 ;;
13817
13818 rdos*)
13819 lt_prog_compiler_static='-non_shared'
13820 ;;
13821
13822 serenity*)
13823 ;;
13824
13825 solaris*)
13826 lt_prog_compiler_pic='-KPIC'
13827 lt_prog_compiler_static='-Bstatic'
13828 case $cc_basename in
13829 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13830 lt_prog_compiler_wl='-Qoption ld ';;
13831 *)
13832 lt_prog_compiler_wl='-Wl,';;
13833 esac
13834 ;;
13835
13836 sunos4*)
13837 lt_prog_compiler_wl='-Qoption ld '
13838 lt_prog_compiler_pic='-PIC'
13839 lt_prog_compiler_static='-Bstatic'
13840 ;;
13841
13842 sysv4 | sysv4.2uw2* | sysv4.3*)
13843 lt_prog_compiler_wl='-Wl,'
13844 lt_prog_compiler_pic='-KPIC'
13845 lt_prog_compiler_static='-Bstatic'
13846 ;;
13847
13848 sysv4*MP*)
13849 if test -d /usr/nec; then
13850 lt_prog_compiler_pic='-Kconform_pic'
13851 lt_prog_compiler_static='-Bstatic'
13852 fi
13853 ;;
13854
13855 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13856 lt_prog_compiler_wl='-Wl,'
13857 lt_prog_compiler_pic='-KPIC'
13858 lt_prog_compiler_static='-Bstatic'
13859 ;;
13860
13861 unicos*)
13862 lt_prog_compiler_wl='-Wl,'
13863 lt_prog_compiler_can_build_shared=no
13864 ;;
13865
13866 uts4*)
13867 lt_prog_compiler_pic='-pic'
13868 lt_prog_compiler_static='-Bstatic'
13869 ;;
13870
13871 *)
13872 lt_prog_compiler_can_build_shared=no
13873 ;;
13874 esac
13875 fi
13876
13877 case $host_os in
13878 # For platforms that do not support PIC, -DPIC is meaningless:
13879 *djgpp*)
13880 lt_prog_compiler_pic=
13881 ;;
13882 *)
13883 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13884 ;;
13885 esac
13886
13887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13888 printf %s "checking for $compiler option to produce PIC... " >&6; }
13889 if test ${lt_cv_prog_compiler_pic+y}
13890 then :
13891 printf %s "(cached) " >&6
13892 else case e in #(
13893 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13894 esac
13895 fi
13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13897 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13898 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13899
13900 #
13901 # Check to make sure the PIC flag actually works.
13902 #
13903 if test -n "$lt_prog_compiler_pic"; then
13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13905 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13906 if test ${lt_cv_prog_compiler_pic_works+y}
13907 then :
13908 printf %s "(cached) " >&6
13909 else case e in #(
13910 e) lt_cv_prog_compiler_pic_works=no
13911 ac_outfile=conftest.$ac_objext
13912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13913 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13914 # Insert the option either (1) after the last *FLAGS variable, or
13915 # (2) before a word containing "conftest.", or (3) at the end.
13916 # Note that $ac_compile itself does not contain backslashes and begins
13917 # with a dollar sign (not a hyphen), so the echo should work correctly.
13918 # The option is referenced via a variable to avoid confusing sed.
13919 lt_compile=`echo "$ac_compile" | $SED \
13920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13922 -e 's:$: $lt_compiler_flag:'`
13923 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13924 (eval "$lt_compile" 2>conftest.err)
13925 ac_status=$?
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 if (exit $ac_status) && test -s "$ac_outfile"; then
13929 # The compiler can only warn and ignore the option if not recognized
13930 # So say no if there are warnings other than the usual output.
13931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13933 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13934 lt_cv_prog_compiler_pic_works=yes
13935 fi
13936 fi
13937 $RM conftest*
13938 ;;
13939 esac
13940 fi
13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13942 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13943
13944 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13945 case $lt_prog_compiler_pic in
13946 "" | " "*) ;;
13947 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13948 esac
13949 else
13950 lt_prog_compiler_pic=
13951 lt_prog_compiler_can_build_shared=no
13952 fi
13953
13954 fi
13955
13956
13957
13958
13959
13960 #
13961 # Check to make sure the static flag actually works.
13962 #
13963 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13965 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13966 if test ${lt_cv_prog_compiler_static_works+y}
13967 then :
13968 printf %s "(cached) " >&6
13969 else case e in #(
13970 e) lt_cv_prog_compiler_static_works=no
13971 save_LDFLAGS=$LDFLAGS
13972 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13973 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13974 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13975 # The linker can only warn and ignore the option if not recognized
13976 # So say no if there are warnings
13977 if test -s conftest.err; then
13978 # Append any errors to the config.log.
13979 cat conftest.err 1>&5
13980 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13982 if diff conftest.exp conftest.er2 >/dev/null; then
13983 lt_cv_prog_compiler_static_works=yes
13984 fi
13985 else
13986 lt_cv_prog_compiler_static_works=yes
13987 fi
13988 fi
13989 $RM -r conftest*
13990 LDFLAGS=$save_LDFLAGS
13991 ;;
13992 esac
13993 fi
13994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13995 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13996
13997 if test yes = "$lt_cv_prog_compiler_static_works"; then
13998 :
13999 else
14000 lt_prog_compiler_static=
14001 fi
14002
14003
14004
14005 ='-fPIC'
14006 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14007 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'
14008 archive_cmds_need_lc=no
14009 no_undefined_flag=
14010 ;;
14011
14012 *)
14013 dynamic_linker=no
14014 ;;
14015 esac
14016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14017 printf "%s\n" "$dynamic_linker" >&6; }
14018 test no = "$dynamic_linker" && can_build_shared=no
14019
14020 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14021 if test yes = "$GCC"; then
14022 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14023 fi
14024
14025 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14026 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14027 fi
14028
14029 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14030 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14031 fi
14032
14033 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14034 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14035
14036 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14037 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14038
14039 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14040 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14139 printf %s "checking how to hardcode library paths into programs... " >&6; }
14140 hardcode_action=
14141 if test -n "$hardcode_libdir_flag_spec" ||
14142 test -n "$runpath_var" ||
14143 test yes = "$hardcode_automatic"; then
14144
14145 # We can hardcode non-existent directories.
14146 if test no != "$hardcode_direct" &&
14147 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14148 # have to relink, otherwise we might link with an installed library
14149 # when we should be linking with a yet-to-be-installed one
14150 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14151 test no != "$hardcode_minus_L"; then
14152 # Linking always hardcodes the temporary library directory.
14153 hardcode_action=relink
14154 else
14155 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14156 hardcode_action=immediate
14157 fi
14158 else
14159 # We cannot hardcode anything, or else we can only hardcode existing
14160 # directories.
14161 hardcode_action=unsupported
14162 fi
14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14164 printf "%s\n" "$hardcode_action" >&6; }
14165
14166 if test relink = "$hardcode_action" ||
14167 test yes = "$inherit_rpath"; then
14168 # Fast installation is not supported
14169 enable_fast_install=no
14170 elif test yes = "$shlibpath_overrides_runpath" ||
14171 test no = "$enable_shared"; then
14172 # Fast installation is not necessary
14173 enable_fast_install=needless
14174 fi
14175
14176
14177
14178
14179
14180
14181 if test yes != "$enable_dlopen"; then
14182 enable_dlopen=unknown
14183 enable_dlopen_self=unknown
14184 enable_dlopen_self_static=unknown
14185 else
14186 lt_cv_dlopen=no
14187 lt_cv_dlopen_libs=
14188
14189 case $host_os in
14190 beos*)
14191 lt_cv_dlopen=load_add_on
14192 lt_cv_dlopen_libs=
14193 lt_cv_dlopen_self=yes
14194 ;;
14195
14196 mingw* | windows* | pw32* | cegcc*)
14197 lt_cv_dlopen=LoadLibrary
14198 lt_cv_dlopen_libs=
14199 ;;
14200
14201 cygwin*)
14202 lt_cv_dlopen=dlopen
14203 lt_cv_dlopen_libs=
14204 ;;
14205
14206 darwin*)
14207 # if libdl is installed we need to link against it
14208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14209 printf %s "checking for dlopen in -ldl... " >&6; }
14210 if test ${ac_cv_lib_dl_dlopen+y}
14211 then :
14212 printf %s "(cached) " >&6
14213 else case e in #(
14214 e) ac_check_lib_save_LIBS=$LIBS
14215 LIBS="-ldl $LIBS"
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218
14219 /* Override any GCC internal prototype to avoid an error.
14220 Use char because int might match the return type of a GCC
14221 builtin and then its argument prototype would still apply.
14222 The 'extern "C"' is for builds by C++ compilers;
14223 although this is not generally supported in C code supporting it here
14224 has little cost and some practical benefit (sr 110532). */
14225 #ifdef __cplusplus
14226 extern "C"
14227 #endif
14228 char dlopen (void);
14229 int
14230 main (void)
14231 {
14232 return dlopen ();
14233 ;
14234 return 0;
14235 }
14236 _ACEOF
14237 if ac_fn_c_try_link "$LINENO"
14238 then :
14239 ac_cv_lib_dl_dlopen=yes
14240 else case e in #(
14241 e) ac_cv_lib_dl_dlopen=no ;;
14242 esac
14243 fi
14244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14245 conftest$ac_exeext conftest.$ac_ext
14246 LIBS=$ac_check_lib_save_LIBS ;;
14247 esac
14248 fi
14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14250 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14251 if test "x$ac_cv_lib_dl_dlopen" = xyes
14252 then :
14253 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14254 else case e in #(
14255 e)
14256 lt_cv_dlopen=dyld
14257 lt_cv_dlopen_libs=
14258 lt_cv_dlopen_self=yes
14259 ;;
14260 esac
14261 fi
14262
14263 ;;
14264
14265 tpf*)
14266 # Don't try to run any link tests for TPF. We know it's impossible
14267 # because TPF is a cross-compiler, and we know how we open DSOs.
14268 lt_cv_dlopen=dlopen
14269 lt_cv_dlopen_libs=
14270 lt_cv_dlopen_self=no
14271 ;;
14272
14273 *)
14274 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14275 if test "x$ac_cv_func_shl_load" = xyes
14276 then :
14277 lt_cv_dlopen=shl_load
14278 else case e in #(
14279 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14280 printf %s "checking for shl_load in -ldld... " >&6; }
14281 if test ${ac_cv_lib_dld_shl_load+y}
14282 then :
14283 printf %s "(cached) " >&6
14284 else case e in #(
14285 e) ac_check_lib_save_LIBS=$LIBS
14286 LIBS="-ldld $LIBS"
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14289
14290 /* Override any GCC internal prototype to avoid an error.
14291 Use char because int might match the return type of a GCC
14292 builtin and then its argument prototype would still apply.
14293 The 'extern "C"' is for builds by C++ compilers;
14294 although this is not generally supported in C code supporting it here
14295 has little cost and some practical benefit (sr 110532). */
14296 #ifdef __cplusplus
14297 extern "C"
14298 #endif
14299 char shl_load (void);
14300 int
14301 main (void)
14302 {
14303 return shl_load ();
14304 ;
14305 return 0;
14306 }
14307 _ACEOF
14308 if ac_fn_c_try_link "$LINENO"
14309 then :
14310 ac_cv_lib_dld_shl_load=yes
14311 else case e in #(
14312 e) ac_cv_lib_dld_shl_load=no ;;
14313 esac
14314 fi
14315 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14316 conftest$ac_exeext conftest.$ac_ext
14317 LIBS=$ac_check_lib_save_LIBS ;;
14318 esac
14319 fi
14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14321 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14322 if test "x$ac_cv_lib_dld_shl_load" = xyes
14323 then :
14324 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14325 else case e in #(
14326 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14327 if test "x$ac_cv_func_dlopen" = xyes
14328 then :
14329 lt_cv_dlopen=dlopen
14330 else case e in #(
14331 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14332 printf %s "checking for dlopen in -ldl... " >&6; }
14333 if test ${ac_cv_lib_dl_dlopen+y}
14334 then :
14335 printf %s "(cached) " >&6
14336 else case e in #(
14337 e) ac_check_lib_save_LIBS=$LIBS
14338 LIBS="-ldl $LIBS"
14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h. */
14341
14342 /* Override any GCC internal prototype to avoid an error.
14343 Use char because int might match the return type of a GCC
14344 builtin and then its argument prototype would still apply.
14345 The 'extern "C"' is for builds by C++ compilers;
14346 although this is not generally supported in C code supporting it here
14347 has little cost and some practical benefit (sr 110532). */
14348 #ifdef __cplusplus
14349 extern "C"
14350 #endif
14351 char dlopen (void);
14352 int
14353 main (void)
14354 {
14355 return dlopen ();
14356 ;
14357 return 0;
14358 }
14359 _ACEOF
14360 if ac_fn_c_try_link "$LINENO"
14361 then :
14362 ac_cv_lib_dl_dlopen=yes
14363 else case e in #(
14364 e) ac_cv_lib_dl_dlopen=no ;;
14365 esac
14366 fi
14367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14368 conftest$ac_exeext conftest.$ac_ext
14369 LIBS=$ac_check_lib_save_LIBS ;;
14370 esac
14371 fi
14372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14373 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14374 if test "x$ac_cv_lib_dl_dlopen" = xyes
14375 then :
14376 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14377 else case e in #(
14378 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14379 printf %s "checking for dlopen in -lsvld... " >&6; }
14380 if test ${ac_cv_lib_svld_dlopen+y}
14381 then :
14382 printf %s "(cached) " >&6
14383 else case e in #(
14384 e) ac_check_lib_save_LIBS=$LIBS
14385 LIBS="-lsvld $LIBS"
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14388
14389 /* Override any GCC internal prototype to avoid an error.
14390 Use char because int might match the return type of a GCC
14391 builtin and then its argument prototype would still apply.
14392 The 'extern "C"' is for builds by C++ compilers;
14393 although this is not generally supported in C code supporting it here
14394 has little cost and some practical benefit (sr 110532). */
14395 #ifdef __cplusplus
14396 extern "C"
14397 #endif
14398 char dlopen (void);
14399 int
14400 main (void)
14401 {
14402 return dlopen ();
14403 ;
14404 return 0;
14405 }
14406 _ACEOF
14407 if ac_fn_c_try_link "$LINENO"
14408 then :
14409 ac_cv_lib_svld_dlopen=yes
14410 else case e in #(
14411 e) ac_cv_lib_svld_dlopen=no ;;
14412 esac
14413 fi
14414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14415 conftest$ac_exeext conftest.$ac_ext
14416 LIBS=$ac_check_lib_save_LIBS ;;
14417 esac
14418 fi
14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14420 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14421 if test "x$ac_cv_lib_svld_dlopen" = xyes
14422 then :
14423 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14424 else case e in #(
14425 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14426 printf %s "checking for dld_link in -ldld... " >&6; }
14427 if test ${ac_cv_lib_dld_dld_link+y}
14428 then :
14429 printf %s "(cached) " >&6
14430 else case e in #(
14431 e) ac_check_lib_save_LIBS=$LIBS
14432 LIBS="-ldld $LIBS"
14433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h. */
14435
14436 /* Override any GCC internal prototype to avoid an error.
14437 Use char because int might match the return type of a GCC
14438 builtin and then its argument prototype would still apply.
14439 The 'extern "C"' is for builds by C++ compilers;
14440 although this is not generally supported in C code supporting it here
14441 has little cost and some practical benefit (sr 110532). */
14442 #ifdef __cplusplus
14443 extern "C"
14444 #endif
14445 char dld_link (void);
14446 int
14447 main (void)
14448 {
14449 return dld_link ();
14450 ;
14451 return 0;
14452 }
14453 _ACEOF
14454 if ac_fn_c_try_link "$LINENO"
14455 then :
14456 ac_cv_lib_dld_dld_link=yes
14457 else case e in #(
14458 e) ac_cv_lib_dld_dld_link=no ;;
14459 esac
14460 fi
14461 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14462 conftest$ac_exeext conftest.$ac_ext
14463 LIBS=$ac_check_lib_save_LIBS ;;
14464 esac
14465 fi
14466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14467 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14468 if test "x$ac_cv_lib_dld_dld_link" = xyes
14469 then :
14470 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14471 fi
14472
14473 ;;
14474 esac
14475 fi
14476
14477 ;;
14478 esac
14479 fi
14480
14481 ;;
14482 esac
14483 fi
14484
14485 ;;
14486 esac
14487 fi
14488
14489 ;;
14490 esac
14491 fi
14492
14493 ;;
14494 esac
14495
14496 if test no = "$lt_cv_dlopen"; then
14497 enable_dlopen=no
14498 else
14499 enable_dlopen=yes
14500 fi
14501
14502 case $lt_cv_dlopen in
14503 dlopen)
14504 save_CPPFLAGS=$CPPFLAGS
14505 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14506
14507 save_LDFLAGS=$LDFLAGS
14508 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14509
14510 save_LIBS=$LIBS
14511 LIBS="$lt_cv_dlopen_libs $LIBS"
14512
14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14514 printf %s "checking whether a program can dlopen itself... " >&6; }
14515 if test ${lt_cv_dlopen_self+y}
14516 then :
14517 printf %s "(cached) " >&6
14518 else case e in #(
14519 e) if test yes = "$cross_compiling"; then :
14520 lt_cv_dlopen_self=cross
14521 else
14522 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14523 lt_status=$lt_dlunknown
14524 cat > conftest.$ac_ext <<_LT_EOF
14525 #line $LINENO "configure"
14526 #include "confdefs.h"
14527
14528 #if HAVE_DLFCN_H
14529 #include <dlfcn.h>
14530 #endif
14531
14532 #include <stdio.h>
14533
14534 #ifdef RTLD_GLOBAL
14535 # define LT_DLGLOBAL RTLD_GLOBAL
14536 #else
14537 # ifdef DL_GLOBAL
14538 # define LT_DLGLOBAL DL_GLOBAL
14539 # else
14540 # define LT_DLGLOBAL 0
14541 # endif
14542 #endif
14543
14544 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14545 find out it does not work in some platform. */
14546 #ifndef LT_DLLAZY_OR_NOW
14547 # ifdef RTLD_LAZY
14548 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14549 # else
14550 # ifdef DL_LAZY
14551 # define LT_DLLAZY_OR_NOW DL_LAZY
14552 # else
14553 # ifdef RTLD_NOW
14554 # define LT_DLLAZY_OR_NOW RTLD_NOW
14555 # else
14556 # ifdef DL_NOW
14557 # define LT_DLLAZY_OR_NOW DL_NOW
14558 # else
14559 # define LT_DLLAZY_OR_NOW 0
14560 # endif
14561 # endif
14562 # endif
14563 # endif
14564 #endif
14565
14566 /* When -fvisibility=hidden is used, assume the code has been annotated
14567 correspondingly for the symbols needed. */
14568 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14569 int fnord (void) __attribute__((visibility("default")));
14570 #endif
14571
14572 int fnord (void) { return 42; }
14573 int main (void)
14574 {
14575 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14576 int status = $lt_dlunknown;
14577
14578 if (self)
14579 {
14580 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14581 else
14582 {
14583 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14584 else puts (dlerror ());
14585 }
14586 /* dlclose (self); */
14587 }
14588 else
14589 puts (dlerror ());
14590
14591 return status;
14592 }
14593 _LT_EOF
14594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14595 (eval $ac_link) 2>&5
14596 ac_status=$?
14597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14598 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14599 (./conftest; exit; ) >&5 2>/dev/null
14600 lt_status=$?
14601 case x$lt_status in
14602 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14603 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14604 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14605 esac
14606 else :
14607 # compilation failed
14608 lt_cv_dlopen_self=no
14609 fi
14610 fi
14611 rm -fr conftest*
14612
14613 ;;
14614 esac
14615 fi
14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14617 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14618
14619 if test yes = "$lt_cv_dlopen_self"; then
14620 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14622 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14623 if test ${lt_cv_dlopen_self_static+y}
14624 then :
14625 printf %s "(cached) " >&6
14626 else case e in #(
14627 e) if test yes = "$cross_compiling"; then :
14628 lt_cv_dlopen_self_static=cross
14629 else
14630 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14631 lt_status=$lt_dlunknown
14632 cat > conftest.$ac_ext <<_LT_EOF
14633 #line $LINENO "configure"
14634 #include "confdefs.h"
14635
14636 #if HAVE_DLFCN_H
14637 #include <dlfcn.h>
14638 #endif
14639
14640 #include <stdio.h>
14641
14642 #ifdef RTLD_GLOBAL
14643 # define LT_DLGLOBAL RTLD_GLOBAL
14644 #else
14645 # ifdef DL_GLOBAL
14646 # define LT_DLGLOBAL DL_GLOBAL
14647 # else
14648 # define LT_DLGLOBAL 0
14649 # endif
14650 #endif
14651
14652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14653 find out it does not work in some platform. */
14654 #ifndef LT_DLLAZY_OR_NOW
14655 # ifdef RTLD_LAZY
14656 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14657 # else
14658 # ifdef DL_LAZY
14659 # define LT_DLLAZY_OR_NOW DL_LAZY
14660 # else
14661 # ifdef RTLD_NOW
14662 # define LT_DLLAZY_OR_NOW RTLD_NOW
14663 # else
14664 # ifdef DL_NOW
14665 # define LT_DLLAZY_OR_NOW DL_NOW
14666 # else
14667 # define LT_DLLAZY_OR_NOW 0
14668 # endif
14669 # endif
14670 # endif
14671 # endif
14672 #endif
14673
14674 /* When -fvisibility=hidden is used, assume the code has been annotated
14675 correspondingly for the symbols needed. */
14676 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14677 int fnord (void) __attribute__((visibility("default")));
14678 #endif
14679
14680 int fnord (void) { return 42; }
14681 int main (void)
14682 {
14683 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14684 int status = $lt_dlunknown;
14685
14686 if (self)
14687 {
14688 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14689 else
14690 {
14691 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14692 else puts (dlerror ());
14693 }
14694 /* dlclose (self); */
14695 }
14696 else
14697 puts (dlerror ());
14698
14699 return status;
14700 }
14701 _LT_EOF
14702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14703 (eval $ac_link) 2>&5
14704 ac_status=$?
14705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14706 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14707 (./conftest; exit; ) >&5 2>/dev/null
14708 lt_status=$?
14709 case x$lt_status in
14710 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14711 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14712 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14713 esac
14714 else :
14715 # compilation failed
14716 lt_cv_dlopen_self_static=no
14717 fi
14718 fi
14719 rm -fr conftest*
14720
14721 ;;
14722 esac
14723 fi
14724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14725 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14726 fi
14727
14728 CPPFLAGS=$save_CPPFLAGS
14729 LDFLAGS=$save_LDFLAGS
14730 LIBS=$save_LIBS
14731 ;;
14732 esac
14733
14734 case $lt_cv_dlopen_self in
14735 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14736 *) enable_dlopen_self=unknown ;;
14737 esac
14738
14739 case $lt_cv_dlopen_self_static in
14740 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14741 *) enable_dlopen_self_static=unknown ;;
14742 esac
14743 fi
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761 striplib=
14762 old_striplib=
14763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14764 printf %s "checking whether stripping libraries is possible... " >&6; }
14765 if test -z "$STRIP"; then
14766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14767 printf "%s\n" "no" >&6; }
14768 else
14769 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14770 old_striplib="$STRIP --strip-debug"
14771 striplib="$STRIP --strip-unneeded"
14772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14773 printf "%s\n" "yes" >&6; }
14774 else
14775 case $host_os in
14776 darwin*)
14777 # FIXME - insert some real tests, host_os isn't really good enough
14778 striplib="$STRIP -x"
14779 old_striplib="$STRIP -S"
14780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14781 printf "%s\n" "yes" >&6; }
14782 ;;
14783 freebsd*)
14784 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14785 old_striplib="$STRIP --strip-debug"
14786 striplib="$STRIP --strip-unneeded"
14787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14788 printf "%s\n" "yes" >&6; }
14789 else
14790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14791 printf "%s\n" "no" >&6; }
14792 fi
14793 ;;
14794 *)
14795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14796 printf "%s\n" "no" >&6; }
14797 ;;
14798 esac
14799 fi
14800 fi
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813 # Report what library types will actually be built
14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14815 printf %s "checking if libtool supports shared libraries... " >&6; }
14816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14817 printf "%s\n" "$can_build_shared" >&6; }
14818
14819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14820 printf %s "checking whether to build shared libraries... " >&6; }
14821 test no = "$can_build_shared" && enable_shared=no
14822
14823 # On AIX, shared libraries and static libraries use the same namespace, and
14824 # are all built from PIC.
14825 case $host_os in
14826 aix3*)
14827 test yes = "$enable_shared" && enable_static=no
14828 if test -n "$RANLIB"; then
14829 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14830 postinstall_cmds='$RANLIB $lib'
14831 fi
14832 ;;
14833
14834 aix[4-9]*)
14835 if test ia64 != "$host_cpu"; then
14836 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14837 yes,aix,yes) ;; # shared object as lib.so file only
14838 yes,svr4,*) ;; # shared object as lib.so archive member only
14839 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14840 esac
14841 fi
14842 ;;
14843 esac
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14845 printf "%s\n" "$enable_shared" >&6; }
14846
14847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14848 printf %s "checking whether to build static libraries... " >&6; }
14849 # Make sure either enable_shared or enable_static is yes.
14850 test yes = "$enable_shared" || enable_static=yes
14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14852 printf "%s\n" "$enable_static" >&6; }
14853
14854
14855
14856
14857 fi
14858 ac_ext=c
14859 ac_cpp='$CPP $CPPFLAGS'
14860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14863
14864 CC=$lt_save_CC
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880 ac_config_commands="$ac_config_commands libtool"
14881
14882
14883
14884
14885 # Only expand once:
14886
14887
14888 # (end lt_init)
14889 # Check whether --enable-largefile was given.
14890 if test ${enable_largefile+y}
14891 then :
14892 enableval=$enable_largefile;
14893 fi
14894 if test "$enable_largefile,$enable_year2038" != no,no
14895 then :
14896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
14897 printf %s "checking for $CC option to enable large file support... " >&6; }
14898 if test ${ac_cv_sys_largefile_opts+y}
14899 then :
14900 printf %s "(cached) " >&6
14901 else case e in #(
14902 e) ac_save_CC="$CC"
14903 ac_opt_found=no
14904 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
14905 if test x"$ac_opt" != x"none needed"
14906 then :
14907 CC="$ac_save_CC $ac_opt"
14908 fi
14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14911 #include <sys/types.h>
14912 #ifndef FTYPE
14913 # define FTYPE off_t
14914 #endif
14915 /* Check that FTYPE can represent 2**63 - 1 correctly.
14916 We can't simply define LARGE_FTYPE to be 9223372036854775807,
14917 since some C++ compilers masquerading as C compilers
14918 incorrectly reject 9223372036854775807. */
14919 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14920 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14921 && LARGE_FTYPE % 2147483647 == 1)
14922 ? 1 : -1];
14923 int
14924 main (void)
14925 {
14926
14927 ;
14928 return 0;
14929 }
14930 _ACEOF
14931 if ac_fn_c_try_compile "$LINENO"
14932 then :
14933 if test x"$ac_opt" = x"none needed"
14934 then :
14935 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14936 CC="$CC -DFTYPE=ino_t"
14937 if ac_fn_c_try_compile "$LINENO"
14938 then :
14939
14940 else case e in #(
14941 e) CC="$CC -D_FILE_OFFSET_BITS=64"
14942 if ac_fn_c_try_compile "$LINENO"
14943 then :
14944 ac_opt='-D_FILE_OFFSET_BITS=64'
14945 fi
14946 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14947 esac
14948 fi
14949 rm -f core conftest.err conftest.$ac_objext conftest.beam
14950 fi
14951 ac_cv_sys_largefile_opts=$ac_opt
14952 ac_opt_found=yes
14953 fi
14954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14955 test $ac_opt_found = no || break
14956 done
14957 CC="$ac_save_CC"
14958
14959 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14960 esac
14961 fi
14962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14963 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14964
14965 ac_have_largefile=yes
14966 case $ac_cv_sys_largefile_opts in #(
14967 "none needed") :
14968 ;; #(
14969 "supported through gnulib") :
14970 ;; #(
14971 "support not detected") :
14972 ac_have_largefile=no ;; #(
14973 "-D_FILE_OFFSET_BITS=64") :
14974
14975 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14976 ;; #(
14977 "-D_LARGE_FILES=1") :
14978
14979 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14980 ;; #(
14981 "-n32") :
14982 CC="$CC -n32" ;; #(
14983 *) :
14984 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14985 esac
14986
14987 if test "$enable_year2038" != no
14988 then :
14989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
14990 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
14991 if test ${ac_cv_sys_year2038_opts+y}
14992 then :
14993 printf %s "(cached) " >&6
14994 else case e in #(
14995 e) ac_save_CPPFLAGS="$CPPFLAGS"
14996 ac_opt_found=no
14997 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
14998 if test x"$ac_opt" != x"none needed"
14999 then :
15000 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
15001 fi
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004
15005 #include <time.h>
15006 /* Check that time_t can represent 2**32 - 1 correctly. */
15007 #define LARGE_TIME_T \\
15008 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15009 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15010 && LARGE_TIME_T % 65537 == 0)
15011 ? 1 : -1];
15012
15013 int
15014 main (void)
15015 {
15016
15017 ;
15018 return 0;
15019 }
15020 _ACEOF
15021 if ac_fn_c_try_compile "$LINENO"
15022 then :
15023 ac_cv_sys_year2038_opts="$ac_opt"
15024 ac_opt_found=yes
15025 fi
15026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15027 test $ac_opt_found = no || break
15028 done
15029 CPPFLAGS="$ac_save_CPPFLAGS"
15030 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15031 esac
15032 fi
15033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15034 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15035
15036 ac_have_year2038=yes
15037 case $ac_cv_sys_year2038_opts in #(
15038 "none needed") :
15039 ;; #(
15040 "support not detected") :
15041 ac_have_year2038=no ;; #(
15042 "-D_TIME_BITS=64") :
15043
15044 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15045 ;; #(
15046 "-D__MINGW_USE_VC2005_COMPAT") :
15047
15048 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15049 ;; #(
15050 "-U_USE_32_BIT_TIME_T"*) :
15051 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15052 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15053 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15054 will stop working after mid-January 2038. Remove
15055 _USE_32BIT_TIME_T from the compiler flags.
15056 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15057 *) :
15058 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15059 esac
15060
15061 fi
15062
15063 fi
15064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15065 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15066 if test ${ac_cv_func_fseeko_ftello+y}
15067 then :
15068 printf %s "(cached) " >&6
15069 else case e in #(
15070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15071 /* end confdefs.h. */
15072
15073 #if defined __hpux && !defined _LARGEFILE_SOURCE
15074 # include <limits.h>
15075 # if LONG_MAX >> 31 == 0
15076 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15077 # endif
15078 #endif
15079 #include <sys/types.h> /* for off_t */
15080 #include <stdio.h>
15081
15082 int
15083 main (void)
15084 {
15085
15086 int (*fp1) (FILE *, off_t, int) = fseeko;
15087 off_t (*fp2) (FILE *) = ftello;
15088 return fseeko (stdin, 0, 0)
15089 && fp1 (stdin, 0, 0)
15090 && ftello (stdin) >= 0
15091 && fp2 (stdin) >= 0;
15092
15093 ;
15094 return 0;
15095 }
15096 _ACEOF
15097 if ac_fn_c_try_compile "$LINENO"
15098 then :
15099 ac_cv_func_fseeko_ftello=yes
15100 else case e in #(
15101 e) ac_save_CPPFLAGS="$CPPFLAGS"
15102 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104 /* end confdefs.h. */
15105
15106 #if defined __hpux && !defined _LARGEFILE_SOURCE
15107 # include <limits.h>
15108 # if LONG_MAX >> 31 == 0
15109 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15110 # endif
15111 #endif
15112 #include <sys/types.h> /* for off_t */
15113 #include <stdio.h>
15114
15115 int
15116 main (void)
15117 {
15118
15119 int (*fp1) (FILE *, off_t, int) = fseeko;
15120 off_t (*fp2) (FILE *) = ftello;
15121 return fseeko (stdin, 0, 0)
15122 && fp1 (stdin, 0, 0)
15123 && ftello (stdin) >= 0
15124 && fp2 (stdin) >= 0;
15125
15126 ;
15127 return 0;
15128 }
15129 _ACEOF
15130 if ac_fn_c_try_compile "$LINENO"
15131 then :
15132 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15133 else case e in #(
15134 e) ac_cv_func_fseeko_ftello=no ;;
15135 esac
15136 fi
15137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15138 esac
15139 fi
15140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15141 esac
15142 fi
15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15144 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15145 if test "$ac_cv_func_fseeko_ftello" != no
15146 then :
15147
15148 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15149
15150 fi
15151 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15152 then :
15153
15154 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15155
15156 fi
15157
15158 ac_header_dirent=no
15159 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15160 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15162 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15163 if eval test \${$as_ac_Header+y}
15164 then :
15165 printf %s "(cached) " >&6
15166 else case e in #(
15167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h. */
15169 #include <sys/types.h>
15170 #include <$ac_hdr>
15171
15172 int
15173 main (void)
15174 {
15175 if ((DIR *) 0)
15176 return 0;
15177 ;
15178 return 0;
15179 }
15180 _ACEOF
15181 if ac_fn_c_try_compile "$LINENO"
15182 then :
15183 eval "$as_ac_Header=yes"
15184 else case e in #(
15185 e) eval "$as_ac_Header=no" ;;
15186 esac
15187 fi
15188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15189 esac
15190 fi
15191 eval ac_res=\$$as_ac_Header
15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15193 printf "%s\n" "$ac_res" >&6; }
15194 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15195 then :
15196 cat >>confdefs.h <<_ACEOF
15197 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15198 _ACEOF
15199
15200 ac_header_dirent=$ac_hdr; break
15201 fi
15202
15203 done
15204 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15205 if test $ac_header_dirent = dirent.h; then
15206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15207 printf %s "checking for library containing opendir... " >&6; }
15208 if test ${ac_cv_search_opendir+y}
15209 then :
15210 printf %s "(cached) " >&6
15211 else case e in #(
15212 e) ac_func_search_save_LIBS=$LIBS
15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15215
15216 /* Override any GCC internal prototype to avoid an error.
15217 Use char because int might match the return type of a GCC
15218 builtin and then its argument prototype would still apply.
15219 The 'extern "C"' is for builds by C++ compilers;
15220 although this is not generally supported in C code supporting it here
15221 has little cost and some practical benefit (sr 110532). */
15222 #ifdef __cplusplus
15223 extern "C"
15224 #endif
15225 char opendir (void);
15226 int
15227 main (void)
15228 {
15229 return opendir ();
15230 ;
15231 return 0;
15232 }
15233 _ACEOF
15234 for ac_lib in '' dir
15235 do
15236 if test -z "$ac_lib"; then
15237 ac_res="none required"
15238 else
15239 ac_res=-l$ac_lib
15240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15241 fi
15242 if ac_fn_c_try_link "$LINENO"
15243 then :
15244 ac_cv_search_opendir=$ac_res
15245 fi
15246 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15247 conftest$ac_exeext
15248 if test ${ac_cv_search_opendir+y}
15249 then :
15250 break
15251 fi
15252 done
15253 if test ${ac_cv_search_opendir+y}
15254 then :
15255
15256 else case e in #(
15257 e) ac_cv_search_opendir=no ;;
15258 esac
15259 fi
15260 rm conftest.$ac_ext
15261 LIBS=$ac_func_search_save_LIBS ;;
15262 esac
15263 fi
15264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15265 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15266 ac_res=$ac_cv_search_opendir
15267 if test "$ac_res" != no
15268 then :
15269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15270
15271 fi
15272
15273 else
15274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15275 printf %s "checking for library containing opendir... " >&6; }
15276 if test ${ac_cv_search_opendir+y}
15277 then :
15278 printf %s "(cached) " >&6
15279 else case e in #(
15280 e) ac_func_search_save_LIBS=$LIBS
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15283
15284 /* Override any GCC internal prototype to avoid an error.
15285 Use char because int might match the return type of a GCC
15286 builtin and then its argument prototype would still apply.
15287 The 'extern "C"' is for builds by C++ compilers;
15288 although this is not generally supported in C code supporting it here
15289 has little cost and some practical benefit (sr 110532). */
15290 #ifdef __cplusplus
15291 extern "C"
15292 #endif
15293 char opendir (void);
15294 int
15295 main (void)
15296 {
15297 return opendir ();
15298 ;
15299 return 0;
15300 }
15301 _ACEOF
15302 for ac_lib in '' x
15303 do
15304 if test -z "$ac_lib"; then
15305 ac_res="none required"
15306 else
15307 ac_res=-l$ac_lib
15308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15309 fi
15310 if ac_fn_c_try_link "$LINENO"
15311 then :
15312 ac_cv_search_opendir=$ac_res
15313 fi
15314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15315 conftest$ac_exeext
15316 if test ${ac_cv_search_opendir+y}
15317 then :
15318 break
15319 fi
15320 done
15321 if test ${ac_cv_search_opendir+y}
15322 then :
15323
15324 else case e in #(
15325 e) ac_cv_search_opendir=no ;;
15326 esac
15327 fi
15328 rm conftest.$ac_ext
15329 LIBS=$ac_func_search_save_LIBS ;;
15330 esac
15331 fi
15332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15333 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15334 ac_res=$ac_cv_search_opendir
15335 if test "$ac_res" != no
15336 then :
15337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15338
15339 fi
15340
15341 fi
15342
15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15344 printf %s "checking whether closedir returns void... " >&6; }
15345 if test ${ac_cv_func_closedir_void+y}
15346 then :
15347 printf %s "(cached) " >&6
15348 else case e in #(
15349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15350 /* end confdefs.h. */
15351
15352 #include <$ac_header_dirent>
15353
15354 int
15355 main (void)
15356 {
15357
15358 return closedir(0);
15359
15360 ;
15361 return 0;
15362 }
15363 _ACEOF
15364 if ac_fn_c_try_compile "$LINENO"
15365 then :
15366 ac_cv_func_closedir_void=no
15367 else case e in #(
15368 e) ac_cv_func_closedir_void=yes ;;
15369 esac
15370 fi
15371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15372 esac
15373 fi
15374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15375 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15376 if test $ac_cv_func_closedir_void = yes; then
15377
15378 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15379
15380 fi
15381
15382 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15383 if test "x$ac_cv_header_assert_h" = xyes
15384 then :
15385 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15386
15387 fi
15388 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15389 if test "x$ac_cv_header_float_h" = xyes
15390 then :
15391 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15392
15393 fi
15394 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15395 if test "x$ac_cv_header_limits_h" = xyes
15396 then :
15397 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15398
15399 fi
15400 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15401 if test "x$ac_cv_header_pwd_h" = xyes
15402 then :
15403 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15404
15405 fi
15406 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15407 if test "x$ac_cv_header_stdlib_h" = xyes
15408 then :
15409 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15410
15411 fi
15412 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15413 if test "x$ac_cv_header_sys_param_h" = xyes
15414 then :
15415 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15416
15417 fi
15418
15419 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15420 if test "x$ac_cv_func_putenv" = xyes
15421 then :
15422 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15423
15424 fi
15425
15426 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15427 if test "x$ac_cv_func_getcwd" = xyes
15428 then :
15429 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15430
15431 fi
15432 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15433 if test "x$ac_cv_func_memcmp" = xyes
15434 then :
15435 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15436
15437 fi
15438 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15439 if test "x$ac_cv_func_memcpy" = xyes
15440 then :
15441 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15442
15443 fi
15444 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15445 if test "x$ac_cv_func_mkstemp" = xyes
15446 then :
15447 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15448
15449 fi
15450 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15451 if test "x$ac_cv_func_mktemp" = xyes
15452 then :
15453 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15454
15455 fi
15456 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15457 if test "x$ac_cv_func_strchr" = xyes
15458 then :
15459 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15460
15461 fi
15462 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15463 if test "x$ac_cv_func_strrchr" = xyes
15464 then :
15465 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15466
15467 fi
15468
15469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15470 printf %s "checking for an ANSI C-conforming const... " >&6; }
15471 if test ${ac_cv_c_const+y}
15472 then :
15473 printf %s "(cached) " >&6
15474 else case e in #(
15475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h. */
15477
15478 int
15479 main (void)
15480 {
15481
15482 #ifndef __cplusplus
15483 /* Ultrix mips cc rejects this sort of thing. */
15484 typedef int charset[2];
15485 const charset cs = { 0, 0 };
15486 /* SunOS 4.1.1 cc rejects this. */
15487 char const *const *pcpcc;
15488 char **ppc;
15489 /* NEC SVR4.0.2 mips cc rejects this. */
15490 struct point {int x, y;};
15491 static struct point const zero = {0,0};
15492 /* IBM XL C 1.02.0.0 rejects this.
15493 It does not let you subtract one const X* pointer from another in
15494 an arm of an if-expression whose if-part is not a constant
15495 expression */
15496 const char *g = "string";
15497 pcpcc = &g + (g ? g-g : 0);
15498 /* HPUX 7.0 cc rejects these. */
15499 ++pcpcc;
15500 ppc = (char**) pcpcc;
15501 pcpcc = (char const *const *) ppc;
15502 { /* SCO 3.2v4 cc rejects this sort of thing. */
15503 char tx;
15504 char *t = &tx;
15505 char const *s = 0 ? (char *) 0 : (char const *) 0;
15506
15507 *t++ = 0;
15508 if (s) return 0;
15509 }
15510 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15511 int x[] = {25, 17};
15512 const int *foo = &x[0];
15513 ++foo;
15514 }
15515 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15516 typedef const int *iptr;
15517 iptr p = 0;
15518 ++p;
15519 }
15520 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15521 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15522 struct s { int j; const int *ap[3]; } bx;
15523 struct s *b = &bx; b->j = 5;
15524 }
15525 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15526 const int foo = 10;
15527 if (!foo) return 0;
15528 }
15529 return !cs[0] && !zero.x;
15530 #endif
15531
15532 ;
15533 return 0;
15534 }
15535 _ACEOF
15536 if ac_fn_c_try_compile "$LINENO"
15537 then :
15538 ac_cv_c_const=yes
15539 else case e in #(
15540 e) ac_cv_c_const=no ;;
15541 esac
15542 fi
15543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15544 esac
15545 fi
15546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15547 printf "%s\n" "$ac_cv_c_const" >&6; }
15548 if test $ac_cv_c_const = no; then
15549
15550 printf "%s\n" "#define const /**/" >>confdefs.h
15551
15552 fi
15553
15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15555 printf %s "checking for inline... " >&6; }
15556 if test ${ac_cv_c_inline+y}
15557 then :
15558 printf %s "(cached) " >&6
15559 else case e in #(
15560 e) ac_cv_c_inline=no
15561 for ac_kw in inline __inline__ __inline; do
15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15563 /* end confdefs.h. */
15564 #ifndef __cplusplus
15565 typedef int foo_t;
15566 static $ac_kw foo_t static_foo (void) {return 0; }
15567 $ac_kw foo_t foo (void) {return 0; }
15568 #endif
15569
15570 _ACEOF
15571 if ac_fn_c_try_compile "$LINENO"
15572 then :
15573 ac_cv_c_inline=$ac_kw
15574 fi
15575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15576 test "$ac_cv_c_inline" != no && break
15577 done
15578 ;;
15579 esac
15580 fi
15581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15582 printf "%s\n" "$ac_cv_c_inline" >&6; }
15583
15584 case $ac_cv_c_inline in
15585 inline | yes) ;;
15586 *)
15587 case $ac_cv_c_inline in
15588 no) ac_val=;;
15589 *) ac_val=$ac_cv_c_inline;;
15590 esac
15591 cat >>confdefs.h <<_ACEOF
15592 #ifndef __cplusplus
15593 #define inline $ac_val
15594 #endif
15595 _ACEOF
15596 ;;
15597 esac
15598
15599 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15600 if test "x$ac_cv_type_size_t" = xyes
15601 then :
15602
15603 else case e in #(
15604 e)
15605 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15606 ;;
15607 esac
15608 fi
15609
15610 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15611 case $ac_cv_c_int64_t in #(
15612 no|yes) ;; #(
15613 *)
15614
15615 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15616 ;;
15617 esac
15618
15619 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15620 case $ac_cv_c_uint64_t in #(
15621 no|yes) ;; #(
15622 *)
15623
15624 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15625
15626
15627 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15628 ;;
15629 esac
15630
15631 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15632 *':no:'*) :
15633 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15634 *) :
15635 ;;
15636 esac
15637 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15638 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15639 if test "x$ac_cv_have_decl_isascii" = xyes
15640 then :
15641 ac_have_decl=1
15642 else case e in #(
15643 e) ac_have_decl=0 ;;
15644 esac
15645 fi
15646 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15647
15648 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15649 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15650 then :
15651
15652 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15653
15654
15655 fi
15656
15657
15658
15659 kpse_save_CPPFLAGS=$CPPFLAGS
15660 kpse_save_LIBS=$LIBS
15661
15662 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
15663 kpse_BLD=`(cd "./../../." && pwd)`
15664 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
15665
15666 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
15667 : ${CONFIG_LT=./config.lt}
15668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15669 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
15670 as_write_fail=0
15671 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15672 #! $SHELL
15673 # Generated by $as_me.
15674 # Run this file to recreate a libtool stub with the current configuration.
15675 SHELL=\${CONFIG_SHELL-$SHELL}
15676 export SHELL
15677 _ASEOF
15678 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15679 ## -------------------- ##
15680 ## M4sh Initialization. ##
15681 ## -------------------- ##
15682
15683 # Be more Bourne compatible
15684 DUALCASE=1; export DUALCASE # for MKS sh
15685 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15686 then :
15687 emulate sh
15688 NULLCMD=:
15689 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15690 # is contrary to our usage. Disable this feature.
15691 alias -g '${1+"$@"}'='"$@"'
15692 setopt NO_GLOB_SUBST
15693 else case e in #(
15694 e) case `(set -o) 2>/dev/null` in #(
15695 *posix*) :
15696 set -o posix ;; #(
15697 *) :
15698 ;;
15699 esac ;;
15700 esac
15701 fi
15702
15703
15704
15705 # Reset variables that may have inherited troublesome values from
15706 # the environment.
15707
15708 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15709 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15710 # side effect of setting IFS to empty, thus disabling word splitting.)
15711 # Quoting is to prevent editors from complaining about space-tab.
15712 as_nl='
15713 '
15714 export as_nl
15715 IFS=" "" $as_nl"
15716
15717 PS1='$ '
15718 PS2='> '
15719 PS4='+ '
15720
15721 # Ensure predictable behavior from utilities with locale-dependent output.
15722 LC_ALL=C
15723 export LC_ALL
15724 LANGUAGE=C
15725 export LANGUAGE
15726
15727 # We cannot yet rely on "unset" to work, but we need these variables
15728 # to be unset--not just set to an empty or harmless value--now, to
15729 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15730 # also avoids known problems related to "unset" and subshell syntax
15731 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15732 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15733 do eval test \${$as_var+y} \
15734 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15735 done
15736
15737 # Ensure that fds 0, 1, and 2 are open.
15738 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15739 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15740 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15741
15742 # The user is always right.
15743 if ${PATH_SEPARATOR+false} :; then
15744 PATH_SEPARATOR=:
15745 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15746 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15747 PATH_SEPARATOR=';'
15748 }
15749 fi
15750
15751
15752 # Find who we are. Look in the path if we contain no directory separator.
15753 as_myself=
15754 case $0 in #((
15755 *[\\/]* ) as_myself=$0 ;;
15756 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15757 for as_dir in $PATH
15758 do
15759 IFS=$as_save_IFS
15760 case $as_dir in #(((
15761 '') as_dir=./ ;;
15762 */) ;;
15763 *) as_dir=$as_dir/ ;;
15764 esac
15765 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15766 done
15767 IFS=$as_save_IFS
15768
15769 ;;
15770 esac
15771 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15772 # in which case we are not to be found in the path.
15773 if test "x$as_myself" = x; then
15774 as_myself=$0
15775 fi
15776 if test ! -f "$as_myself"; then
15777 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15778 exit 1
15779 fi
15780
15781
15782
15783 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15784 # ----------------------------------------
15785 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15786 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15787 # script with STATUS, using 1 if that was 0.
15788 as_fn_error ()
15789 {
15790 as_status=$1; test $as_status -eq 0 && as_status=1
15791 if test "$4"; then
15792 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15794 fi
15795 printf "%s\n" "$as_me: error: $2" >&2
15796 as_fn_exit $as_status
15797 } # as_fn_error
15798
15799
15800 # as_fn_set_status STATUS
15801 # -----------------------
15802 # Set $? to STATUS, without forking.
15803 as_fn_set_status ()
15804 {
15805 return $1
15806 } # as_fn_set_status
15807
15808 # as_fn_exit STATUS
15809 # -----------------
15810 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15811 as_fn_exit ()
15812 {
15813 set +e
15814 as_fn_set_status $1
15815 exit $1
15816 } # as_fn_exit
15817
15818 # as_fn_unset VAR
15819 # ---------------
15820 # Portably unset VAR.
15821 as_fn_unset ()
15822 {
15823 { eval $1=; unset $1;}
15824 }
15825 as_unset=as_fn_unset
15826
15827 # as_fn_append VAR VALUE
15828 # ----------------------
15829 # Append the text in VALUE to the end of the definition contained in VAR. Take
15830 # advantage of any shell optimizations that allow amortized linear growth over
15831 # repeated appends, instead of the typical quadratic growth present in naive
15832 # implementations.
15833 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15834 then :
15835 eval 'as_fn_append ()
15836 {
15837 eval $1+=\$2
15838 }'
15839 else case e in #(
15840 e) as_fn_append ()
15841 {
15842 eval $1=\$$1\$2
15843 } ;;
15844 esac
15845 fi # as_fn_append
15846
15847 # as_fn_arith ARG...
15848 # ------------------
15849 # Perform arithmetic evaluation on the ARGs, and store the result in the
15850 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15851 # must be portable across $(()) and expr.
15852 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15853 then :
15854 eval 'as_fn_arith ()
15855 {
15856 as_val=$(( $* ))
15857 }'
15858 else case e in #(
15859 e) as_fn_arith ()
15860 {
15861 as_val=`expr "$@" || test $? -eq 1`
15862 } ;;
15863 esac
15864 fi # as_fn_arith
15865
15866
15867 if expr a : '\(a\)' >/dev/null 2>&1 &&
15868 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15869 as_expr=expr
15870 else
15871 as_expr=false
15872 fi
15873
15874 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15875 as_basename=basename
15876 else
15877 as_basename=false
15878 fi
15879
15880 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15881 as_dirname=dirname
15882 else
15883 as_dirname=false
15884 fi
15885
15886 as_me=`$as_basename -- "$0" ||
15887 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15888 X"$0" : 'X\(//\)$' \| \
15889 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15890 printf "%s\n" X/"$0" |
15891 sed '/^.*\/\([^/][^/]*\)\/*$/{
15892 s//\1/
15893 q
15894 }
15895 /^X\/\(\/\/\)$/{
15896 s//\1/
15897 q
15898 }
15899 /^X\/\(\/\).*/{
15900 s//\1/
15901 q
15902 }
15903 s/.*/./; q'`
15904
15905 # Avoid depending upon Character Ranges.
15906 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15907 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15908 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15909 as_cr_digits='0123456789'
15910 as_cr_alnum=$as_cr_Letters$as_cr_digits
15911
15912
15913 # Determine whether it's possible to make 'echo' print without a newline.
15914 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15915 # for compatibility with existing Makefiles.
15916 ECHO_C= ECHO_N= ECHO_T=
15917 case `echo -n x` in #(((((
15918 -n*)
15919 case `echo 'xy\c'` in
15920 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15921 xy) ECHO_C='\c';;
15922 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15923 ECHO_T=' ';;
15924 esac;;
15925 *)
15926 ECHO_N='-n';;
15927 esac
15928
15929 # For backward compatibility with old third-party macros, we provide
15930 # the shell variables $as_echo and $as_echo_n. New code should use
15931 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15932 as_echo='printf %s\n'
15933 as_echo_n='printf %s'
15934
15935 rm -f conf$$ conf$$.exe conf$$.file
15936 if test -d conf$$.dir; then
15937 rm -f conf$$.dir/conf$$.file
15938 else
15939 rm -f conf$$.dir
15940 mkdir conf$$.dir 2>/dev/null
15941 fi
15942 if (echo >conf$$.file) 2>/dev/null; then
15943 if ln -s conf$$.file conf$$ 2>/dev/null; then
15944 as_ln_s='ln -s'
15945 # ... but there are two gotchas:
15946 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15947 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15948 # In both cases, we have to default to 'cp -pR'.
15949 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15950 as_ln_s='cp -pR'
15951 elif ln conf$$.file conf$$ 2>/dev/null; then
15952 as_ln_s=ln
15953 else
15954 as_ln_s='cp -pR'
15955 fi
15956 else
15957 as_ln_s='cp -pR'
15958 fi
15959 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15960 rmdir conf$$.dir 2>/dev/null
15961
15962
15963 # as_fn_mkdir_p
15964 # -------------
15965 # Create "$as_dir" as a directory, including parents if necessary.
15966 as_fn_mkdir_p ()
15967 {
15968
15969 case $as_dir in #(
15970 -*) as_dir=./$as_dir;;
15971 esac
15972 test -d "$as_dir" || eval $as_mkdir_p || {
15973 as_dirs=
15974 while :; do
15975 case $as_dir in #(
15976 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15977 *) as_qdir=$as_dir;;
15978 esac
15979 as_dirs="'$as_qdir' $as_dirs"
15980 as_dir=`$as_dirname -- "$as_dir" ||
15981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15982 X"$as_dir" : 'X\(//\)[^/]' \| \
15983 X"$as_dir" : 'X\(//\)$' \| \
15984 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15985 printf "%s\n" X"$as_dir" |
15986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15987 s//\1/
15988 q
15989 }
15990 /^X\(\/\/\)[^/].*/{
15991 s//\1/
15992 q
15993 }
15994 /^X\(\/\/\)$/{
15995 s//\1/
15996 q
15997 }
15998 /^X\(\/\).*/{
15999 s//\1/
16000 q
16001 }
16002 s/.*/./; q'`
16003 test -d "$as_dir" && break
16004 done
16005 test -z "$as_dirs" || eval "mkdir $as_dirs"
16006 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16007
16008
16009 } # as_fn_mkdir_p
16010 if mkdir -p . 2>/dev/null; then
16011 as_mkdir_p='mkdir -p "$as_dir"'
16012 else
16013 test -d ./-p && rmdir ./-p
16014 as_mkdir_p=false
16015 fi
16016
16017
16018 # as_fn_executable_p FILE
16019 # -----------------------
16020 # Test if FILE is an executable regular file.
16021 as_fn_executable_p ()
16022 {
16023 test -f "$1" && test -x "$1"
16024 } # as_fn_executable_p
16025 as_test_x='test -x'
16026 as_executable_p=as_fn_executable_p
16027
16028 # Sed expression to map a string onto a valid CPP name.
16029 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16030 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16031
16032 # Sed expression to map a string onto a valid variable name.
16033 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16034 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16035
16036
16037 exec 6>&1
16038 ## --------------------------------- ##
16039 ## Main body of "$CONFIG_LT" script. ##
16040 ## --------------------------------- ##
16041 _ASEOF
16042 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
16043
16044 cat >>"$CONFIG_LT" <<\_LTEOF
16045 lt_cl_silent=false
16046 exec 5>>config.log
16047 {
16048 echo
16049 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16050 ## Running $as_me. ##
16051 _ASBOX
16052 } >&5
16053
16054 lt_cl_help="\
16055 '$as_me' creates a local libtool stub from the current configuration,
16056 for use in further configure time tests before the real libtool is
16057 generated.
16058
16059 Usage: $0 [OPTIONS]
16060
16061 -h, --help print this help, then exit
16062 -V, --version print version number, then exit
16063 -q, --quiet do not print progress messages
16064 -d, --debug don't remove temporary files
16065
16066 Report bugs to <[email protected]>."
16067
16068 lt_cl_version="\
16069 ptexenc config.lt 1.5.2
16070 configured by $0, generated by GNU Autoconf 2.72.
16071
16072 Copyright (C) 2024 Free Software Foundation, Inc.
16073 This config.lt script is free software; the Free Software Foundation
16074 gives unlimited permission to copy, distribute and modify it."
16075
16076 while test 0 != $#
16077 do
16078 case $1 in
16079 --version | --v* | -V )
16080 echo "$lt_cl_version"; exit 0 ;;
16081 --help | --h* | -h )
16082 echo "$lt_cl_help"; exit 0 ;;
16083 --debug | --d* | -d )
16084 debug=: ;;
16085 --quiet | --q* | --silent | --s* | -q )
16086 lt_cl_silent=: ;;
16087
16088 -*) as_fn_error $? "unrecognized option: $1
16089 Try '$0 --help' for more information." "$LINENO" 5 ;;
16090
16091 *) as_fn_error $? "unrecognized argument: $1
16092 Try '$0 --help' for more information." "$LINENO" 5 ;;
16093 esac
16094 shift
16095 done
16096
16097 if $lt_cl_silent; then
16098 exec 6>/dev/null
16099 fi
16100 _LTEOF
16101
16102 cat >>"$CONFIG_LT" <<_LTEOF
16103
16104
16105 # The HP-UX ksh and POSIX shell print the target directory to stdout
16106 # if CDPATH is set.
16107 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16108
16109 sed_quote_subst='$sed_quote_subst'
16110 double_quote_subst='$double_quote_subst'
16111 delay_variable_subst='$delay_variable_subst'
16112 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16113 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16114 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16115 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16116 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16117 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16118 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16119 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16120 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16121 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16122 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16123 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16124 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16125 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16126 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16127 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16128 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16129 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16130 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16131 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16132 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16133 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16134 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16135 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16136 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16137 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16138 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16139 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16140 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16141 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16142 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16143 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16144 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16145 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16146 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16147 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16148 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16149 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16150 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16151 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16152 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16153 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16154 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16155 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16156 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16157 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16158 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16159 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16160 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16161 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16162 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16163 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16164 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16165 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16166 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16167 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16168 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16169 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16170 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16171 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16172 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16173 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"`'
16174 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16175 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16176 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16177 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16178 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16179 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16180 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16181 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16182 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16183 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16184 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16185 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16186 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16187 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16188 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16189 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16190 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16191 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16192 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16193 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16194 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16195 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16196 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16197 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16198 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16199 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16200 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16201 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16202 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16203 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16204 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16205 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16206 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16207 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16208 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16209 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16210 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16211 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16212 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16213 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16214 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16215 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16216 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16217 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16218 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16219 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16220 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16221 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16222 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16223 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16224 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16225 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16226 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16227 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16228 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16229 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16230 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16231 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16232 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16233 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16234 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16235 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16236 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16237 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16238 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16239 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16240 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16241 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16242 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16243 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16244 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16245 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16246 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16247 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16248 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16249 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16250
16251 LTCC='$LTCC'
16252 LTCFLAGS='$LTCFLAGS'
16253 compiler='$compiler_DEFAULT'
16254
16255 # A function that is used when there is no print builtin or printf.
16256 func_fallback_echo ()
16257 {
16258 eval 'cat <<_LTECHO_EOF
16259 \$1
16260 _LTECHO_EOF'
16261 }
16262
16263 # Quote evaled strings.
16264 for var in AS \
16265 DLLTOOL \
16266 OBJDUMP \
16267 SHELL \
16268 ECHO \
16269 PATH_SEPARATOR \
16270 SED \
16271 GREP \
16272 EGREP \
16273 FGREP \
16274 LD \
16275 NM \
16276 LN_S \
16277 lt_SP2NL \
16278 lt_NL2SP \
16279 reload_flag \
16280 FILECMD \
16281 deplibs_check_method \
16282 file_magic_cmd \
16283 file_magic_glob \
16284 want_nocaseglob \
16285 sharedlib_from_linklib_cmd \
16286 AR \
16287 archiver_list_spec \
16288 STRIP \
16289 RANLIB \
16290 CC \
16291 CFLAGS \
16292 compiler \
16293 lt_cv_sys_global_symbol_pipe \
16294 lt_cv_sys_global_symbol_to_cdecl \
16295 lt_cv_sys_global_symbol_to_import \
16296 lt_cv_sys_global_symbol_to_c_name_address \
16297 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16298 lt_cv_nm_interface \
16299 nm_file_list_spec \
16300 lt_cv_truncate_bin \
16301 lt_prog_compiler_no_builtin_flag \
16302 lt_prog_compiler_pic \
16303 lt_prog_compiler_wl \
16304 lt_prog_compiler_static \
16305 lt_cv_prog_compiler_c_o \
16306 need_locks \
16307 MANIFEST_TOOL \
16308 DSYMUTIL \
16309 NMEDIT \
16310 LIPO \
16311 OTOOL \
16312 OTOOL64 \
16313 shrext_cmds \
16314 export_dynamic_flag_spec \
16315 whole_archive_flag_spec \
16316 compiler_needs_object \
16317 with_gnu_ld \
16318 allow_undefined_flag \
16319 no_undefined_flag \
16320 hardcode_libdir_flag_spec \
16321 hardcode_libdir_separator \
16322 exclude_expsyms \
16323 include_expsyms \
16324 file_list_spec \
16325 variables_saved_for_relink \
16326 libname_spec \
16327 library_names_spec \
16328 soname_spec \
16329 install_override_mode \
16330 finish_eval \
16331 old_striplib \
16332 striplib; do
16333 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16334 *[\\\\\\\`\\"\\\$]*)
16335 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16336 ;;
16337 *)
16338 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16339 ;;
16340 esac
16341 done
16342
16343 # Double-quote double-evaled strings.
16344 for var in reload_cmds \
16345 old_postinstall_cmds \
16346 old_postuninstall_cmds \
16347 old_archive_cmds \
16348 extract_expsyms_cmds \
16349 old_archive_from_new_cmds \
16350 old_archive_from_expsyms_cmds \
16351 archive_cmds \
16352 archive_expsym_cmds \
16353 module_cmds \
16354 module_expsym_cmds \
16355 export_symbols_cmds \
16356 prelink_cmds \
16357 postlink_cmds \
16358 postinstall_cmds \
16359 postuninstall_cmds \
16360 finish_cmds \
16361 sys_lib_search_path_spec \
16362 configure_time_dlsearch_path \
16363 configure_time_lt_sys_library_path; do
16364 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16365 *[\\\\\\\`\\"\\\$]*)
16366 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16367 ;;
16368 *)
16369 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16370 ;;
16371 esac
16372 done
16373
16374 ac_aux_dir='$ac_aux_dir'
16375
16376 # See if we are running on zsh, and set the options that allow our
16377 # commands through without removal of \ escapes INIT.
16378 if test -n "\${ZSH_VERSION+set}"; then
16379 setopt NO_GLOB_SUBST
16380 fi
16381
16382
16383 PACKAGE='$PACKAGE'
16384 VERSION='$VERSION'
16385 RM='$RM'
16386 ofile='$ofile'
16387
16388
16389
16390 _LTEOF
16391
16392 cat >>"$CONFIG_LT" <<\_LTEOF
16393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16394 printf "%s\n" "$as_me: creating $ofile" >&6;}
16395
16396
16397 # See if we are running on zsh, and set the options that allow our
16398 # commands through without removal of \ escapes.
16399 if test -n "${ZSH_VERSION+set}"; then
16400 setopt NO_GLOB_SUBST
16401 fi
16402
16403 cfgfile=${ofile}T
16404 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16405 $RM "$cfgfile"
16406
16407 cat <<_LT_EOF >> "$cfgfile"
16408 #! $SHELL
16409 # Generated automatically by $as_me ($PACKAGE) $VERSION
16410 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16411
16412 # Provide generalized library-building support services.
16413 # Written by Gordon Matzigkeit, 1996
16414
16415 # Copyright (C) 2024 Free Software Foundation, Inc.
16416 # This is free software; see the source for copying conditions. There is NO
16417 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16418
16419 # GNU Libtool is free software; you can redistribute it and/or modify
16420 # it under the terms of the GNU General Public License as published by
16421 # the Free Software Foundation; either version 2 of the License, or
16422 # (at your option) any later version.
16423 #
16424 # As a special exception to the GNU General Public License, if you
16425 # distribute this file as part of a program or library that is built
16426 # using GNU Libtool, you may include this file under the same
16427 # distribution terms that you use for the rest of that program.
16428 #
16429 # GNU Libtool is distributed in the hope that it will be useful, but
16430 # WITHOUT ANY WARRANTY; without even the implied warranty of
16431 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16432 # GNU General Public License for more details.
16433 #
16434 # You should have received a copy of the GNU General Public License
16435 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16436
16437
16438 # The names of the tagged configurations supported by this script.
16439 available_tags=''
16440
16441 # Configured defaults for sys_lib_dlsearch_path munging.
16442 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16443
16444 # ### BEGIN LIBTOOL CONFIG
16445
16446 # Which release of libtool.m4 was used?
16447 macro_version=$macro_version
16448 macro_revision=$macro_revision
16449
16450 # Assembler program.
16451 AS=$lt_AS
16452
16453 # DLL creation program.
16454 DLLTOOL=$lt_DLLTOOL
16455
16456 # Object dumper program.
16457 OBJDUMP=$lt_OBJDUMP
16458
16459 # Whether or not to build shared libraries.
16460 build_libtool_libs=$enable_shared
16461
16462 # Whether or not to build static libraries.
16463 build_old_libs=$enable_static
16464
16465 # What type of objects to build.
16466 pic_mode=$pic_mode
16467
16468 # Whether or not to optimize for fast installation.
16469 fast_install=$enable_fast_install
16470
16471 # Shared archive member basename,for filename based shared library versioning on AIX.
16472 shared_archive_member_spec=$shared_archive_member_spec
16473
16474 # Shell to use when invoking shell scripts.
16475 SHELL=$lt_SHELL
16476
16477 # An echo program that protects backslashes.
16478 ECHO=$lt_ECHO
16479
16480 # The PATH separator for the build system.
16481 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16482
16483 # The host system.
16484 host_alias=$host_alias
16485 host=$host
16486 host_os=$host_os
16487
16488 # The build system.
16489 build_alias=$build_alias
16490 build=$build
16491 build_os=$build_os
16492
16493 # A sed program that does not truncate output.
16494 SED=$lt_SED
16495
16496 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16497 Xsed="\$SED -e 1s/^X//"
16498
16499 # A grep program that handles long lines.
16500 GREP=$lt_GREP
16501
16502 # An ERE matcher.
16503 EGREP=$lt_EGREP
16504
16505 # A literal string matcher.
16506 FGREP=$lt_FGREP
16507
16508 # A BSD- or MS-compatible name lister.
16509 NM=$lt_NM
16510
16511 # Whether we need soft or hard links.
16512 LN_S=$lt_LN_S
16513
16514 # What is the maximum length of a command?
16515 max_cmd_len=$max_cmd_len
16516
16517 # Object file suffix (normally "o").
16518 objext=$ac_objext
16519
16520 # Executable file suffix (normally "").
16521 exeext=$exeext
16522
16523 # whether the shell understands "unset".
16524 lt_unset=$lt_unset
16525
16526 # turn spaces into newlines.
16527 SP2NL=$lt_lt_SP2NL
16528
16529 # turn newlines into spaces.
16530 NL2SP=$lt_lt_NL2SP
16531
16532 # convert \$build file names to \$host format.
16533 to_host_file_cmd=$lt_cv_to_host_file_cmd
16534
16535 # convert \$build files to toolchain format.
16536 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16537
16538 # A file(cmd) program that detects file types.
16539 FILECMD=$lt_FILECMD
16540
16541 # Method to check whether dependent libraries are shared objects.
16542 deplibs_check_method=$lt_deplibs_check_method
16543
16544 # Command to use when deplibs_check_method = "file_magic".
16545 file_magic_cmd=$lt_file_magic_cmd
16546
16547 # How to find potential files when deplibs_check_method = "file_magic".
16548 file_magic_glob=$lt_file_magic_glob
16549
16550 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16551 want_nocaseglob=$lt_want_nocaseglob
16552
16553 # Command to associate shared and link libraries.
16554 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16555
16556 # The archiver.
16557 AR=$lt_AR
16558
16559 # Flags to create an archive (by configure).
16560 lt_ar_flags=$lt_ar_flags
16561
16562 # Flags to create an archive.
16563 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16564
16565 # How to feed a file listing to the archiver.
16566 archiver_list_spec=$lt_archiver_list_spec
16567
16568 # A symbol stripping program.
16569 STRIP=$lt_STRIP
16570
16571 # Commands used to install an old-style archive.
16572 RANLIB=$lt_RANLIB
16573 old_postinstall_cmds=$lt_old_postinstall_cmds
16574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16575
16576 # Whether to use a lock for old archive extraction.
16577 lock_old_archive_extraction=$lock_old_archive_extraction
16578
16579 # A C compiler.
16580 LTCC=$lt_CC
16581
16582 # LTCC compiler flags.
16583 LTCFLAGS=$lt_CFLAGS
16584
16585 # Take the output of nm and produce a listing of raw symbols and C names.
16586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16587
16588 # Transform the output of nm in a proper C declaration.
16589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16590
16591 # Transform the output of nm into a list of symbols to manually relocate.
16592 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16593
16594 # Transform the output of nm in a C name address pair.
16595 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16596
16597 # Transform the output of nm in a C name address pair when lib prefix is needed.
16598 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16599
16600 # The name lister interface.
16601 nm_interface=$lt_lt_cv_nm_interface
16602
16603 # Specify filename containing input files for \$NM.
16604 nm_file_list_spec=$lt_nm_file_list_spec
16605
16606 # The root where to search for dependent libraries,and where our libraries should be installed.
16607 lt_sysroot=$lt_sysroot
16608
16609 # Command to truncate a binary pipe.
16610 lt_truncate_bin=$lt_lt_cv_truncate_bin
16611
16612 # The name of the directory that contains temporary libtool files.
16613 objdir=$objdir
16614
16615 # Used to examine libraries when file_magic_cmd begins with "file".
16616 MAGIC_CMD=$MAGIC_CMD
16617
16618 # Must we lock files when doing compilation?
16619 need_locks=$lt_need_locks
16620
16621 # Manifest tool.
16622 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16623
16624 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16625 DSYMUTIL=$lt_DSYMUTIL
16626
16627 # Tool to change global to local symbols on Mac OS X.
16628 NMEDIT=$lt_NMEDIT
16629
16630 # Tool to manipulate fat objects and archives on Mac OS X.
16631 LIPO=$lt_LIPO
16632
16633 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16634 OTOOL=$lt_OTOOL
16635
16636 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16637 OTOOL64=$lt_OTOOL64
16638
16639 # Old archive suffix (normally "a").
16640 libext=$libext
16641
16642 # Shared library suffix (normally ".so").
16643 shrext_cmds=$lt_shrext_cmds
16644
16645 # The commands to extract the exported symbol list from a shared archive.
16646 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16647
16648 # Variables whose values should be saved in libtool wrapper scripts and
16649 # restored at link time.
16650 variables_saved_for_relink=$lt_variables_saved_for_relink
16651
16652 # Do we need the "lib" prefix for modules?
16653 need_lib_prefix=$need_lib_prefix
16654
16655 # Do we need a version for libraries?
16656 need_version=$need_version
16657
16658 # Library versioning type.
16659 version_type=$version_type
16660
16661 # Shared library runtime path variable.
16662 runpath_var=$runpath_var
16663
16664 # Shared library path variable.
16665 shlibpath_var=$shlibpath_var
16666
16667 # Is shlibpath searched before the hard-coded library search path?
16668 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16669
16670 # Format of library name prefix.
16671 libname_spec=$lt_libname_spec
16672
16673 # List of archive names. First name is the real one, the rest are links.
16674 # The last name is the one that the linker finds with -lNAME
16675 library_names_spec=$lt_library_names_spec
16676
16677 # The coded name of the library, if different from the real name.
16678 soname_spec=$lt_soname_spec
16679
16680 # Permission mode override for installation of shared libraries.
16681 install_override_mode=$lt_install_override_mode
16682
16683 # Command to use after installation of a shared archive.
16684 postinstall_cmds=$lt_postinstall_cmds
16685
16686 # Command to use after uninstallation of a shared archive.
16687 postuninstall_cmds=$lt_postuninstall_cmds
16688
16689 # Commands used to finish a libtool library installation in a directory.
16690 finish_cmds=$lt_finish_cmds
16691
16692 # As "finish_cmds", except a single script fragment to be evaled but
16693 # not shown.
16694 finish_eval=$lt_finish_eval
16695
16696 # Whether we should hardcode library paths into libraries.
16697 hardcode_into_libs=$hardcode_into_libs
16698
16699 # Compile-time system search path for libraries.
16700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16701
16702 # Detected run-time system search path for libraries.
16703 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16704
16705 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16706 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16707
16708 # Whether dlopen is supported.
16709 dlopen_support=$enable_dlopen
16710
16711 # Whether dlopen of programs is supported.
16712 dlopen_self=$enable_dlopen_self
16713
16714 # Whether dlopen of statically linked programs is supported.
16715 dlopen_self_static=$enable_dlopen_self_static
16716
16717 # Commands to strip libraries.
16718 old_striplib=$lt_old_striplib
16719 striplib=$lt_striplib
16720
16721
16722 # The linker used to build libraries.
16723 LD=$lt_LD
16724
16725 # How to create reloadable object files.
16726 reload_flag=$lt_reload_flag
16727 reload_cmds=$lt_reload_cmds
16728
16729 # Commands used to build an old-style archive.
16730 old_archive_cmds=$lt_old_archive_cmds
16731
16732 # A language specific compiler.
16733 CC=$lt_compiler
16734
16735 # Is the compiler the GNU compiler?
16736 with_gcc=$GCC
16737
16738 # Compiler flag to turn off builtin functions.
16739 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16740
16741 # Additional compiler flags for building library objects.
16742 pic_flag=$lt_lt_prog_compiler_pic
16743
16744 # How to pass a linker flag through the compiler.
16745 wl=$lt_lt_prog_compiler_wl
16746
16747 # Compiler flag to prevent dynamic linking.
16748 link_static_flag=$lt_lt_prog_compiler_static
16749
16750 # Does compiler simultaneously support -c and -o options?
16751 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16752
16753 # Whether or not to add -lc for building shared libraries.
16754 build_libtool_need_lc=$archive_cmds_need_lc
16755
16756 # Whether or not to disallow shared libs when runtime libs are static.
16757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16758
16759 # Compiler flag to allow reflexive dlopens.
16760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16761
16762 # Compiler flag to generate shared objects directly from archives.
16763 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16764
16765 # Whether the compiler copes with passing no objects directly.
16766 compiler_needs_object=$lt_compiler_needs_object
16767
16768 # Create an old-style archive from a shared archive.
16769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16770
16771 # Create a temporary old-style archive to link instead of a shared archive.
16772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16773
16774 # Commands used to build a shared archive.
16775 archive_cmds=$lt_archive_cmds
16776 archive_expsym_cmds=$lt_archive_expsym_cmds
16777
16778 # Commands used to build a loadable module if different from building
16779 # a shared archive.
16780 module_cmds=$lt_module_cmds
16781 module_expsym_cmds=$lt_module_expsym_cmds
16782
16783 # Whether we are building with GNU ld or not.
16784 with_gnu_ld=$lt_with_gnu_ld
16785
16786 # Flag that allows shared libraries with undefined symbols to be built.
16787 allow_undefined_flag=$lt_allow_undefined_flag
16788
16789 # Flag that enforces no undefined symbols.
16790 no_undefined_flag=$lt_no_undefined_flag
16791
16792 # Flag to hardcode \$libdir into a binary during linking.
16793 # This must work even if \$libdir does not exist
16794 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16795
16796 # Whether we need a single "-rpath" flag with a separated argument.
16797 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16798
16799 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16800 # DIR into the resulting binary.
16801 hardcode_direct=$hardcode_direct
16802
16803 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16804 # DIR into the resulting binary and the resulting library dependency is
16805 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
16806 # library is relocated.
16807 hardcode_direct_absolute=$hardcode_direct_absolute
16808
16809 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16810 # into the resulting binary.
16811 hardcode_minus_L=$hardcode_minus_L
16812
16813 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16814 # into the resulting binary.
16815 hardcode_shlibpath_var=$hardcode_shlibpath_var
16816
16817 # Set to "yes" if building a shared library automatically hardcodes DIR
16818 # into the library and all subsequent libraries and executables linked
16819 # against it.
16820 hardcode_automatic=$hardcode_automatic
16821
16822 # Set to yes if linker adds runtime paths of dependent libraries
16823 # to runtime path list.
16824 inherit_rpath=$inherit_rpath
16825
16826 # Whether libtool must link a program against all its dependency libraries.
16827 link_all_deplibs=$link_all_deplibs
16828
16829 # Set to "yes" if exported symbols are required.
16830 always_export_symbols=$always_export_symbols
16831
16832 # The commands to list exported symbols.
16833 export_symbols_cmds=$lt_export_symbols_cmds
16834
16835 # Symbols that should not be listed in the preloaded symbols.
16836 exclude_expsyms=$lt_exclude_expsyms
16837
16838 # Symbols that must always be exported.
16839 include_expsyms=$lt_include_expsyms
16840
16841 # Commands necessary for linking programs (against libraries) with templates.
16842 prelink_cmds=$lt_prelink_cmds
16843
16844 # Commands necessary for finishing linking programs.
16845 postlink_cmds=$lt_postlink_cmds
16846
16847 # Specify filename containing input files.
16848 file_list_spec=$lt_file_list_spec
16849
16850 # How to hardcode a shared library path into an executable.
16851 hardcode_action=$hardcode_action
16852
16853 # ### END LIBTOOL CONFIG
16854
16855 _LT_EOF
16856
16857 cat <<'_LT_EOF' >> "$cfgfile"
16858
16859 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16860
16861 # func_munge_path_list VARIABLE PATH
16862 # -----------------------------------
16863 # VARIABLE is name of variable containing _space_ separated list of
16864 # directories to be munged by the contents of PATH, which is string
16865 # having a format:
16866 # "DIR[:DIR]:"
16867 # string "DIR[ DIR]" will be prepended to VARIABLE
16868 # ":DIR[:DIR]"
16869 # string "DIR[ DIR]" will be appended to VARIABLE
16870 # "DIRP[:DIRP]::[DIRA:]DIRA"
16871 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16872 # "DIRA[ DIRA]" will be appended to VARIABLE
16873 # "DIR[:DIR]"
16874 # VARIABLE will be replaced by "DIR[ DIR]"
16875 func_munge_path_list ()
16876 {
16877 case x$2 in
16878 x)
16879 ;;
16880 *:)
16881 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16882 ;;
16883 x:*)
16884 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16885 ;;
16886 *::*)
16887 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16888 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16889 ;;
16890 *)
16891 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16892 ;;
16893 esac
16894 }
16895
16896
16897 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16898 func_cc_basename ()
16899 {
16900 for cc_temp in $*""; do
16901 case $cc_temp in
16902 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16903 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16904 \-*) ;;
16905 *) break;;
16906 esac
16907 done
16908 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16909 }
16910
16911
16912 # ### END FUNCTIONS SHARED WITH CONFIGURE
16913
16914 _LT_EOF
16915
16916 case $host_os in
16917 aix3*)
16918 cat <<\_LT_EOF >> "$cfgfile"
16919 # AIX sometimes has problems with the GCC collect2 program. For some
16920 # reason, if we set the COLLECT_NAMES environment variable, the problems
16921 # vanish in a puff of smoke.
16922 if test set != "${COLLECT_NAMES+set}"; then
16923 COLLECT_NAMES=
16924 export COLLECT_NAMES
16925 fi
16926 _LT_EOF
16927 ;;
16928 esac
16929
16930
16931
16932 ltmain=$ac_aux_dir/ltmain.sh
16933
16934
16935 # We use sed instead of cat because bash on DJGPP gets confused if
16936 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16937 # text mode, it properly converts lines to CR/LF. This bash problem
16938 # is reportedly fixed, but why not run on old versions too?
16939 $SED '$q' "$ltmain" >> "$cfgfile" \
16940 || (rm -f "$cfgfile"; exit 1)
16941
16942 mv -f "$cfgfile" "$ofile" ||
16943 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16944 chmod +x "$ofile"
16945
16946
16947 as_fn_exit 0
16948 _LTEOF
16949 chmod +x "$CONFIG_LT"
16950
16951 # configure is writing to config.log, but config.lt does its own redirection,
16952 # appending to config.log, which fails on DOS, as config.log is still kept
16953 # open by configure. Here we exec the FD to /dev/null, effectively closing
16954 # config.log, so it can be properly (re)opened and appended to by config.lt.
16955 lt_cl_success=:
16956 test yes = "$silent" &&
16957 lt_config_lt_args="$lt_config_lt_args --quiet"
16958 exec 5>/dev/null
16959 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
16960 exec 5>>config.log
16961 $lt_cl_success || as_fn_exit 1
16962
16963 #
16964 #
16965 ac_ext=c
16966 ac_cpp='$CPP $CPPFLAGS'
16967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16970 ac_link="./libtool --mode=link --tag=CC $ac_link"
16971
16972 if test -n "$ac_tool_prefix"; then
16973 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16974 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16976 printf %s "checking for $ac_word... " >&6; }
16977 if test ${ac_cv_prog_PKG_CONFIG+y}
16978 then :
16979 printf %s "(cached) " >&6
16980 else case e in #(
16981 e) if test -n "$PKG_CONFIG"; then
16982 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
16983 else
16984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16985 for as_dir in $PATH
16986 do
16987 IFS=$as_save_IFS
16988 case $as_dir in #(((
16989 '') as_dir=./ ;;
16990 */) ;;
16991 *) as_dir=$as_dir/ ;;
16992 esac
16993 for ac_exec_ext in '' $ac_executable_extensions; do
16994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16995 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
16996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16997 break 2
16998 fi
16999 done
17000 done
17001 IFS=$as_save_IFS
17002
17003 fi ;;
17004 esac
17005 fi
17006 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17007 if test -n "$PKG_CONFIG"; then
17008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17009 printf "%s\n" "$PKG_CONFIG" >&6; }
17010 else
17011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17012 printf "%s\n" "no" >&6; }
17013 fi
17014
17015
17016 fi
17017 if test -z "$ac_cv_prog_PKG_CONFIG"; then
17018 ac_ct_PKG_CONFIG=$PKG_CONFIG
17019 # Extract the first word of "pkg-config", so it can be a program name with args.
17020 set dummy pkg-config; ac_word=$2
17021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17022 printf %s "checking for $ac_word... " >&6; }
17023 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
17024 then :
17025 printf %s "(cached) " >&6
17026 else case e in #(
17027 e) if test -n "$ac_ct_PKG_CONFIG"; then
17028 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17029 else
17030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17031 for as_dir in $PATH
17032 do
17033 IFS=$as_save_IFS
17034 case $as_dir in #(((
17035 '') as_dir=./ ;;
17036 */) ;;
17037 *) as_dir=$as_dir/ ;;
17038 esac
17039 for ac_exec_ext in '' $ac_executable_extensions; do
17040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17041 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17043 break 2
17044 fi
17045 done
17046 done
17047 IFS=$as_save_IFS
17048
17049 fi ;;
17050 esac
17051 fi
17052 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17053 if test -n "$ac_ct_PKG_CONFIG"; then
17054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17055 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
17056 else
17057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17058 printf "%s\n" "no" >&6; }
17059 fi
17060
17061 if test "x$ac_ct_PKG_CONFIG" = x; then
17062 PKG_CONFIG="false"
17063 else
17064 case $cross_compiling:$ac_tool_warned in
17065 yes:)
17066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17068 ac_tool_warned=yes ;;
17069 esac
17070 PKG_CONFIG=$ac_ct_PKG_CONFIG
17071 fi
17072 else
17073 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17074 fi
17075
17076 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
17077 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
17078 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
17079
17080 # Check whether --with-system-kpathsea was given.
17081 if test ${with_system_kpathsea+y}
17082 then :
17083 withval=$with_system_kpathsea;
17084 fi
17085 if test "x$with_system_kpathsea" = xyes; then
17086 if $PKG_CONFIG kpathsea; then
17087 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
17088 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
17089 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
17090 as_fn_error $? "did not find kpathsea" "$LINENO" 5
17091 fi
17092 else
17093 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
17094 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
17095 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
17096 KPATHSEA_RULE='# Rebuild libkpathsea
17097 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
17098 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
17099 ${top_builddir}/../kpathsea/paths.h:
17100 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17101 fi
17102
17103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
17104 printf %s "checking if libkpathsea supports debugging... " >&6; }
17105 if test ${kpse_cv_kpse_debug+y}
17106 then :
17107 printf %s "(cached) " >&6
17108 else case e in #(
17109 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
17110 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
17111
17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113 /* end confdefs.h. */
17114 #include <kpathsea/kpathsea.h>
17115 int
17116 main (void)
17117 {
17118 FILE *f = fopen("f", "r")
17119 ;
17120 return 0;
17121 }
17122 _ACEOF
17123 if ac_fn_c_try_link "$LINENO"
17124 then :
17125 kpse_cv_kpse_debug=yes
17126 else case e in #(
17127 e) kpse_cv_kpse_debug=no ;;
17128 esac
17129 fi
17130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17131 conftest$ac_exeext conftest.$ac_ext
17132 CPPFLAGS=$kpse_save_CPPFLAGS
17133 LIBS=$kpse_save_LIBS
17134 ;;
17135 esac
17136 fi
17137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
17138 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
17139 if test "x$kpse_cv_kpse_debug" != xyes
17140 then :
17141 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
17142 fi
17143
17144
17145 # Check whether --enable-kanji-iconv was given.
17146 if test ${enable_kanji_iconv+y}
17147 then :
17148 enableval=$enable_kanji_iconv;
17149 fi
17150
17151
17152 if test "x$enable_kanji_iconv" = "xyes"; then
17153
17154 printf "%s\n" "#define KANJI_ICONV 1" >>confdefs.h
17155
17156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
17157 printf %s "checking for iconv_open in -liconv... " >&6; }
17158 if test ${ac_cv_lib_iconv_iconv_open+y}
17159 then :
17160 printf %s "(cached) " >&6
17161 else case e in #(
17162 e) ac_check_lib_save_LIBS=$LIBS
17163 LIBS="-liconv $LIBS"
17164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165 /* end confdefs.h. */
17166
17167 /* Override any GCC internal prototype to avoid an error.
17168 Use char because int might match the return type of a GCC
17169 builtin and then its argument prototype would still apply.
17170 The 'extern "C"' is for builds by C++ compilers;
17171 although this is not generally supported in C code supporting it here
17172 has little cost and some practical benefit (sr 110532). */
17173 #ifdef __cplusplus
17174 extern "C"
17175 #endif
17176 char iconv_open (void);
17177 int
17178 main (void)
17179 {
17180 return iconv_open ();
17181 ;
17182 return 0;
17183 }
17184 _ACEOF
17185 if ac_fn_c_try_link "$LINENO"
17186 then :
17187 ac_cv_lib_iconv_iconv_open=yes
17188 else case e in #(
17189 e) ac_cv_lib_iconv_iconv_open=no ;;
17190 esac
17191 fi
17192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17193 conftest$ac_exeext conftest.$ac_ext
17194 LIBS=$ac_check_lib_save_LIBS ;;
17195 esac
17196 fi
17197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
17198 printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
17199 if test "x$ac_cv_lib_iconv_iconv_open" = xyes
17200 then :
17201 printf "%s\n" "#define HAVE_LIBICONV 1" >>confdefs.h
17202
17203 LIBS="-liconv $LIBS"
17204
17205 else case e in #(
17206 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
17207 printf %s "checking for libiconv_open in -liconv... " >&6; }
17208 if test ${ac_cv_lib_iconv_libiconv_open+y}
17209 then :
17210 printf %s "(cached) " >&6
17211 else case e in #(
17212 e) ac_check_lib_save_LIBS=$LIBS
17213 LIBS="-liconv $LIBS"
17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h. */
17216
17217 /* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply.
17220 The 'extern "C"' is for builds by C++ compilers;
17221 although this is not generally supported in C code supporting it here
17222 has little cost and some practical benefit (sr 110532). */
17223 #ifdef __cplusplus
17224 extern "C"
17225 #endif
17226 char libiconv_open (void);
17227 int
17228 main (void)
17229 {
17230 return libiconv_open ();
17231 ;
17232 return 0;
17233 }
17234 _ACEOF
17235 if ac_fn_c_try_link "$LINENO"
17236 then :
17237 ac_cv_lib_iconv_libiconv_open=yes
17238 else case e in #(
17239 e) ac_cv_lib_iconv_libiconv_open=no ;;
17240 esac
17241 fi
17242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17243 conftest$ac_exeext conftest.$ac_ext
17244 LIBS=$ac_check_lib_save_LIBS ;;
17245 esac
17246 fi
17247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
17248 printf "%s\n" "$ac_cv_lib_iconv_libiconv_open" >&6; }
17249 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes
17250 then :
17251 printf "%s\n" "#define HAVE_LIBICONV 1" >>confdefs.h
17252
17253 LIBS="-liconv $LIBS"
17254
17255 fi
17256 ;;
17257 esac
17258 fi
17259
17260 ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
17261 if test "x$ac_cv_header_iconv_h" = xyes
17262 then :
17263 printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
17264
17265 fi
17266
17267 ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
17268 if test "x$ac_cv_func_iconv" = xyes
17269 then :
17270 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
17271
17272 fi
17273
17274
17275 for ac_func in atexit on_exit
17276 do :
17277 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
17278 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17279 if eval test \"x\$"$as_ac_var"\" = x"yes"
17280 then :
17281 cat >>confdefs.h <<_ACEOF
17282 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
17283 _ACEOF
17284 break
17285 fi
17286
17287 done
17288 fi
17289
17290 ac_config_headers="$ac_config_headers ptexenc/c-auto.h:c-auto.in"
17291
17292
17293
17294
17295
17296
17297
17298 printf "%s\n" "#define TL_VERSION \"TeX Live 2026\"" >>confdefs.h
17299
17300
17301 ac_config_files="$ac_config_files Makefile ptexenc.pc"
17302
17303
17304 cat >confcache <<\_ACEOF
17305 # This file is a shell script that caches the results of configure
17306 # tests run on this system so they can be shared between configure
17307 # scripts and configure runs, see configure's option --config-cache.
17308 # It is not useful on other systems. If it contains results you don't
17309 # want to keep, you may remove or edit it.
17310 #
17311 # config.status only pays attention to the cache file if you give it
17312 # the --recheck option to rerun configure.
17313 #
17314 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17315 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17316 # following values.
17317
17318 _ACEOF
17319
17320 # The following way of writing the cache mishandles newlines in values,
17321 # but we know of no workaround that is simple, portable, and efficient.
17322 # So, we kill variables containing newlines.
17323 # Ultrix sh set writes to stderr and can't be redirected directly,
17324 # and sets the high bit in the cache file unless we assign to the vars.
17325 (
17326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17327 eval ac_val=\$$ac_var
17328 case $ac_val in #(
17329 *${as_nl}*)
17330 case $ac_var in #(
17331 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17332 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17333 esac
17334 case $ac_var in #(
17335 _ | IFS | as_nl) ;; #(
17336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17337 *) { eval $ac_var=; unset $ac_var;} ;;
17338 esac ;;
17339 esac
17340 done
17341
17342 (set) 2>&1 |
17343 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17344 *${as_nl}ac_space=\ *)
17345 # 'set' does not quote correctly, so add quotes: double-quote
17346 # substitution turns \\\\ into \\, and sed turns \\ into \.
17347 sed -n \
17348 "s/'/'\\\\''/g;
17349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17350 ;; #(
17351 *)
17352 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17353 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17354 ;;
17355 esac |
17356 sort
17357 ) |
17358 sed '
17359 /^ac_cv_env_/b end
17360 t clear
17361 :clear
17362 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17363 t end
17364 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17365 :end' >>confcache
17366 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17367 if test -w "$cache_file"; then
17368 if test "x$cache_file" != "x/dev/null"; then
17369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17370 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17371 if test ! -f "$cache_file" || test -h "$cache_file"; then
17372 cat confcache >"$cache_file"
17373 else
17374 case $cache_file in #(
17375 */* | ?:*)
17376 mv -f confcache "$cache_file"$$ &&
17377 mv -f "$cache_file"$$ "$cache_file" ;; #(
17378 *)
17379 mv -f confcache "$cache_file" ;;
17380 esac
17381 fi
17382 fi
17383 else
17384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17385 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17386 fi
17387 fi
17388 rm -f confcache
17389
17390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17391 # Let make expand exec_prefix.
17392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17393
17394 DEFS=-DHAVE_CONFIG_H
17395
17396 ac_libobjs=
17397 ac_ltlibobjs=
17398 U=
17399 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17400 # 1. Remove the extension, and $U if already installed.
17401 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17402 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17403 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17404 # will be set to the directory where LIBOBJS objects are built.
17405 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17406 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17407 done
17408 LIBOBJS=$ac_libobjs
17409
17410 LTLIBOBJS=$ac_ltlibobjs
17411
17412
17413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17414 printf %s "checking that generated files are newer than configure... " >&6; }
17415 if test -n "$am_sleep_pid"; then
17416 # Hide warnings about reused PIDs.
17417 wait $am_sleep_pid 2>/dev/null
17418 fi
17419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17420 printf "%s\n" "done" >&6; }
17421 case $enable_silent_rules in # (((
17422 yes) AM_DEFAULT_VERBOSITY=0;;
17423 no) AM_DEFAULT_VERBOSITY=1;;
17424 esac
17425 if test $am_cv_make_support_nested_variables = yes; then
17426 AM_V='$(V)'
17427 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17428 else
17429 AM_V=$AM_DEFAULT_VERBOSITY
17430 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17431 fi
17432
17433 if test -n "$EXEEXT"; then
17434 am__EXEEXT_TRUE=
17435 am__EXEEXT_FALSE='#'
17436 else
17437 am__EXEEXT_TRUE='#'
17438 am__EXEEXT_FALSE=
17439 fi
17440
17441 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17442 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17444 fi
17445 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17446 as_fn_error $? "conditional \"AMDEP\" was never defined.
17447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17448 fi
17449 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17450 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17452 fi
17453 # Check whether --enable-year2038 was given.
17454 if test ${enable_year2038+y}
17455 then :
17456 enableval=$enable_year2038;
17457 fi
17458
17459
17460 : "${CONFIG_STATUS=./config.status}"
17461 ac_write_fail=0
17462 ac_clean_files_save=$ac_clean_files
17463 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17465 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17466 as_write_fail=0
17467 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17468 #! $SHELL
17469 # Generated by $as_me.
17470 # Run this file to recreate the current configuration.
17471 # Compiler output produced by configure, useful for debugging
17472 # configure, is in config.log if it exists.
17473
17474 debug=false
17475 ac_cs_recheck=false
17476 ac_cs_silent=false
17477
17478 SHELL=\${CONFIG_SHELL-$SHELL}
17479 export SHELL
17480 _ASEOF
17481 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17482 ## -------------------- ##
17483 ## M4sh Initialization. ##
17484 ## -------------------- ##
17485
17486 # Be more Bourne compatible
17487 DUALCASE=1; export DUALCASE # for MKS sh
17488 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17489 then :
17490 emulate sh
17491 NULLCMD=:
17492 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17493 # is contrary to our usage. Disable this feature.
17494 alias -g '${1+"$@"}'='"$@"'
17495 setopt NO_GLOB_SUBST
17496 else case e in #(
17497 e) case `(set -o) 2>/dev/null` in #(
17498 *posix*) :
17499 set -o posix ;; #(
17500 *) :
17501 ;;
17502 esac ;;
17503 esac
17504 fi
17505
17506
17507
17508 # Reset variables that may have inherited troublesome values from
17509 # the environment.
17510
17511 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17512 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17513 # side effect of setting IFS to empty, thus disabling word splitting.)
17514 # Quoting is to prevent editors from complaining about space-tab.
17515 as_nl='
17516 '
17517 export as_nl
17518 IFS=" "" $as_nl"
17519
17520 PS1='$ '
17521 PS2='> '
17522 PS4='+ '
17523
17524 # Ensure predictable behavior from utilities with locale-dependent output.
17525 LC_ALL=C
17526 export LC_ALL
17527 LANGUAGE=C
17528 export LANGUAGE
17529
17530 # We cannot yet rely on "unset" to work, but we need these variables
17531 # to be unset--not just set to an empty or harmless value--now, to
17532 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17533 # also avoids known problems related to "unset" and subshell syntax
17534 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17535 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17536 do eval test \${$as_var+y} \
17537 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17538 done
17539
17540 # Ensure that fds 0, 1, and 2 are open.
17541 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17542 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17543 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17544
17545 # The user is always right.
17546 if ${PATH_SEPARATOR+false} :; then
17547 PATH_SEPARATOR=:
17548 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17549 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17550 PATH_SEPARATOR=';'
17551 }
17552 fi
17553
17554
17555 # Find who we are. Look in the path if we contain no directory separator.
17556 as_myself=
17557 case $0 in #((
17558 *[\\/]* ) as_myself=$0 ;;
17559 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17560 for as_dir in $PATH
17561 do
17562 IFS=$as_save_IFS
17563 case $as_dir in #(((
17564 '') as_dir=./ ;;
17565 */) ;;
17566 *) as_dir=$as_dir/ ;;
17567 esac
17568 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17569 done
17570 IFS=$as_save_IFS
17571
17572 ;;
17573 esac
17574 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17575 # in which case we are not to be found in the path.
17576 if test "x$as_myself" = x; then
17577 as_myself=$0
17578 fi
17579 if test ! -f "$as_myself"; then
17580 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17581 exit 1
17582 fi
17583
17584
17585
17586 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17587 # ----------------------------------------
17588 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17589 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17590 # script with STATUS, using 1 if that was 0.
17591 as_fn_error ()
17592 {
17593 as_status=$1; test $as_status -eq 0 && as_status=1
17594 if test "$4"; then
17595 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17597 fi
17598 printf "%s\n" "$as_me: error: $2" >&2
17599 as_fn_exit $as_status
17600 } # as_fn_error
17601
17602
17603 # as_fn_set_status STATUS
17604 # -----------------------
17605 # Set $? to STATUS, without forking.
17606 as_fn_set_status ()
17607 {
17608 return $1
17609 } # as_fn_set_status
17610
17611 # as_fn_exit STATUS
17612 # -----------------
17613 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17614 as_fn_exit ()
17615 {
17616 set +e
17617 as_fn_set_status $1
17618 exit $1
17619 } # as_fn_exit
17620
17621 # as_fn_unset VAR
17622 # ---------------
17623 # Portably unset VAR.
17624 as_fn_unset ()
17625 {
17626 { eval $1=; unset $1;}
17627 }
17628 as_unset=as_fn_unset
17629
17630 # as_fn_append VAR VALUE
17631 # ----------------------
17632 # Append the text in VALUE to the end of the definition contained in VAR. Take
17633 # advantage of any shell optimizations that allow amortized linear growth over
17634 # repeated appends, instead of the typical quadratic growth present in naive
17635 # implementations.
17636 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17637 then :
17638 eval 'as_fn_append ()
17639 {
17640 eval $1+=\$2
17641 }'
17642 else case e in #(
17643 e) as_fn_append ()
17644 {
17645 eval $1=\$$1\$2
17646 } ;;
17647 esac
17648 fi # as_fn_append
17649
17650 # as_fn_arith ARG...
17651 # ------------------
17652 # Perform arithmetic evaluation on the ARGs, and store the result in the
17653 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17654 # must be portable across $(()) and expr.
17655 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17656 then :
17657 eval 'as_fn_arith ()
17658 {
17659 as_val=$(( $* ))
17660 }'
17661 else case e in #(
17662 e) as_fn_arith ()
17663 {
17664 as_val=`expr "$@" || test $? -eq 1`
17665 } ;;
17666 esac
17667 fi # as_fn_arith
17668
17669
17670 if expr a : '\(a\)' >/dev/null 2>&1 &&
17671 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17672 as_expr=expr
17673 else
17674 as_expr=false
17675 fi
17676
17677 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17678 as_basename=basename
17679 else
17680 as_basename=false
17681 fi
17682
17683 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17684 as_dirname=dirname
17685 else
17686 as_dirname=false
17687 fi
17688
17689 as_me=`$as_basename -- "$0" ||
17690 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17691 X"$0" : 'X\(//\)$' \| \
17692 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17693 printf "%s\n" X/"$0" |
17694 sed '/^.*\/\([^/][^/]*\)\/*$/{
17695 s//\1/
17696 q
17697 }
17698 /^X\/\(\/\/\)$/{
17699 s//\1/
17700 q
17701 }
17702 /^X\/\(\/\).*/{
17703 s//\1/
17704 q
17705 }
17706 s/.*/./; q'`
17707
17708 # Avoid depending upon Character Ranges.
17709 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17710 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17711 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17712 as_cr_digits='0123456789'
17713 as_cr_alnum=$as_cr_Letters$as_cr_digits
17714
17715
17716 # Determine whether it's possible to make 'echo' print without a newline.
17717 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17718 # for compatibility with existing Makefiles.
17719 ECHO_C= ECHO_N= ECHO_T=
17720 case `echo -n x` in #(((((
17721 -n*)
17722 case `echo 'xy\c'` in
17723 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17724 xy) ECHO_C='\c';;
17725 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17726 ECHO_T=' ';;
17727 esac;;
17728 *)
17729 ECHO_N='-n';;
17730 esac
17731
17732 # For backward compatibility with old third-party macros, we provide
17733 # the shell variables $as_echo and $as_echo_n. New code should use
17734 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17735 as_echo='printf %s\n'
17736 as_echo_n='printf %s'
17737
17738 rm -f conf$$ conf$$.exe conf$$.file
17739 if test -d conf$$.dir; then
17740 rm -f conf$$.dir/conf$$.file
17741 else
17742 rm -f conf$$.dir
17743 mkdir conf$$.dir 2>/dev/null
17744 fi
17745 if (echo >conf$$.file) 2>/dev/null; then
17746 if ln -s conf$$.file conf$$ 2>/dev/null; then
17747 as_ln_s='ln -s'
17748 # ... but there are two gotchas:
17749 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17750 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17751 # In both cases, we have to default to 'cp -pR'.
17752 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17753 as_ln_s='cp -pR'
17754 elif ln conf$$.file conf$$ 2>/dev/null; then
17755 as_ln_s=ln
17756 else
17757 as_ln_s='cp -pR'
17758 fi
17759 else
17760 as_ln_s='cp -pR'
17761 fi
17762 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17763 rmdir conf$$.dir 2>/dev/null
17764
17765
17766 # as_fn_mkdir_p
17767 # -------------
17768 # Create "$as_dir" as a directory, including parents if necessary.
17769 as_fn_mkdir_p ()
17770 {
17771
17772 case $as_dir in #(
17773 -*) as_dir=./$as_dir;;
17774 esac
17775 test -d "$as_dir" || eval $as_mkdir_p || {
17776 as_dirs=
17777 while :; do
17778 case $as_dir in #(
17779 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17780 *) as_qdir=$as_dir;;
17781 esac
17782 as_dirs="'$as_qdir' $as_dirs"
17783 as_dir=`$as_dirname -- "$as_dir" ||
17784 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17785 X"$as_dir" : 'X\(//\)[^/]' \| \
17786 X"$as_dir" : 'X\(//\)$' \| \
17787 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17788 printf "%s\n" X"$as_dir" |
17789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17790 s//\1/
17791 q
17792 }
17793 /^X\(\/\/\)[^/].*/{
17794 s//\1/
17795 q
17796 }
17797 /^X\(\/\/\)$/{
17798 s//\1/
17799 q
17800 }
17801 /^X\(\/\).*/{
17802 s//\1/
17803 q
17804 }
17805 s/.*/./; q'`
17806 test -d "$as_dir" && break
17807 done
17808 test -z "$as_dirs" || eval "mkdir $as_dirs"
17809 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17810
17811
17812 } # as_fn_mkdir_p
17813 if mkdir -p . 2>/dev/null; then
17814 as_mkdir_p='mkdir -p "$as_dir"'
17815 else
17816 test -d ./-p && rmdir ./-p
17817 as_mkdir_p=false
17818 fi
17819
17820
17821 # as_fn_executable_p FILE
17822 # -----------------------
17823 # Test if FILE is an executable regular file.
17824 as_fn_executable_p ()
17825 {
17826 test -f "$1" && test -x "$1"
17827 } # as_fn_executable_p
17828 as_test_x='test -x'
17829 as_executable_p=as_fn_executable_p
17830
17831 # Sed expression to map a string onto a valid CPP name.
17832 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17833 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17834
17835 # Sed expression to map a string onto a valid variable name.
17836 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17837 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17838
17839
17840 exec 6>&1
17841 ## ----------------------------------- ##
17842 ## Main body of $CONFIG_STATUS script. ##
17843 ## ----------------------------------- ##
17844 _ASEOF
17845 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17846
17847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17848 # Save the log message, to keep $0 and so on meaningful, and to
17849 # report actual input values of CONFIG_FILES etc. instead of their
17850 # values after options handling.
17851 ac_log="
17852 This file was extended by ptexenc $as_me 1.5.2, which was
17853 generated by GNU Autoconf 2.72. Invocation command line was
17854
17855 CONFIG_FILES = $CONFIG_FILES
17856 CONFIG_HEADERS = $CONFIG_HEADERS
17857 CONFIG_LINKS = $CONFIG_LINKS
17858 CONFIG_COMMANDS = $CONFIG_COMMANDS
17859 $ $0 $@
17860
17861 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17862 "
17863
17864 _ACEOF
17865
17866 case $ac_config_files in *"
17867 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17868 esac
17869
17870 case $ac_config_headers in *"
17871 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17872 esac
17873
17874
17875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17876 # Files that config.status was made for.
17877 config_files="$ac_config_files"
17878 config_headers="$ac_config_headers"
17879 config_commands="$ac_config_commands"
17880
17881 _ACEOF
17882
17883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17884 ac_cs_usage="\
17885 '$as_me' instantiates files and other configuration actions
17886 from templates according to the current configuration. Unless the files
17887 and actions are specified as TAGs, all are instantiated by default.
17888
17889 Usage: $0 [OPTION]... [TAG]...
17890
17891 -h, --help print this help, then exit
17892 -V, --version print version number and configuration settings, then exit
17893 --config print configuration, then exit
17894 -q, --quiet, --silent
17895 do not print progress messages
17896 -d, --debug don't remove temporary files
17897 --recheck update $as_me by reconfiguring in the same conditions
17898 --file=FILE[:TEMPLATE]
17899 instantiate the configuration file FILE
17900 --header=FILE[:TEMPLATE]
17901 instantiate the configuration header FILE
17902
17903 Configuration files:
17904 $config_files
17905
17906 Configuration headers:
17907 $config_headers
17908
17909 Configuration commands:
17910 $config_commands
17911
17912 Report bugs to <[email protected]>."
17913
17914 _ACEOF
17915 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17916 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17918 ac_cs_config='$ac_cs_config_escaped'
17919 ac_cs_version="\\
17920 ptexenc config.status 1.5.2
17921 configured by $0, generated by GNU Autoconf 2.72,
17922 with options \\"\$ac_cs_config\\"
17923
17924 Copyright (C) 2023 Free Software Foundation, Inc.
17925 This config.status script is free software; the Free Software Foundation
17926 gives unlimited permission to copy, distribute and modify it."
17927
17928 ac_pwd='$ac_pwd'
17929 srcdir='$srcdir'
17930 INSTALL='$INSTALL'
17931 MKDIR_P='$MKDIR_P'
17932 AWK='$AWK'
17933 test -n "\$AWK" || AWK=awk
17934 _ACEOF
17935
17936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17937 # The default lists apply if the user does not specify any file.
17938 ac_need_defaults=:
17939 while test $# != 0
17940 do
17941 case $1 in
17942 --*=?*)
17943 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17944 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17945 ac_shift=:
17946 ;;
17947 --*=)
17948 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17949 ac_optarg=
17950 ac_shift=:
17951 ;;
17952 *)
17953 ac_option=$1
17954 ac_optarg=$2
17955 ac_shift=shift
17956 ;;
17957 esac
17958
17959 case $ac_option in
17960 # Handling of the options.
17961 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17962 ac_cs_recheck=: ;;
17963 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17964 printf "%s\n" "$ac_cs_version"; exit ;;
17965 --config | --confi | --conf | --con | --co | --c )
17966 printf "%s\n" "$ac_cs_config"; exit ;;
17967 --debug | --debu | --deb | --de | --d | -d )
17968 debug=: ;;
17969 --file | --fil | --fi | --f )
17970 $ac_shift
17971 case $ac_optarg in
17972 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17973 '') as_fn_error $? "missing file argument" ;;
17974 esac
17975 as_fn_append CONFIG_FILES " '$ac_optarg'"
17976 ac_need_defaults=false;;
17977 --header | --heade | --head | --hea )
17978 $ac_shift
17979 case $ac_optarg in
17980 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17981 esac
17982 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17983 ac_need_defaults=false;;
17984 --he | --h)
17985 # Conflict between --help and --header
17986 as_fn_error $? "ambiguous option: '$1'
17987 Try '$0 --help' for more information.";;
17988 --help | --hel | -h )
17989 printf "%s\n" "$ac_cs_usage"; exit ;;
17990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17991 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17992 ac_cs_silent=: ;;
17993
17994 # This is an error.
17995 -*) as_fn_error $? "unrecognized option: '$1'
17996 Try '$0 --help' for more information." ;;
17997
17998 *) as_fn_append ac_config_targets " $1"
17999 ac_need_defaults=false ;;
18000
18001 esac
18002 shift
18003 done
18004
18005 ac_configure_extra_args=
18006
18007 if $ac_cs_silent; then
18008 exec 6>/dev/null
18009 ac_configure_extra_args="$ac_configure_extra_args --silent"
18010 fi
18011
18012 _ACEOF
18013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18014 if \$ac_cs_recheck; then
18015 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18016 shift
18017 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18018 CONFIG_SHELL='$SHELL'
18019 export CONFIG_SHELL
18020 exec "\$@"
18021 fi
18022
18023 _ACEOF
18024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18025 exec 5>>config.log
18026 {
18027 echo
18028 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18029 ## Running $as_me. ##
18030 _ASBOX
18031 printf "%s\n" "$ac_log"
18032 } >&5
18033
18034 _ACEOF
18035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18036 #
18037 # INIT-COMMANDS
18038 #
18039 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18040
18041
18042 # The HP-UX ksh and POSIX shell print the target directory to stdout
18043 # if CDPATH is set.
18044 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18045
18046 sed_quote_subst='$sed_quote_subst'
18047 double_quote_subst='$double_quote_subst'
18048 delay_variable_subst='$delay_variable_subst'
18049 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18050 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18051 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18052 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18053 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18054 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18055 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18056 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18057 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18058 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18059 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18060 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18061 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18062 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18063 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18064 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18065 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18066 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18067 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18068 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18069 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18070 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18071 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18072 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18073 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18074 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18075 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18076 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18077 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18078 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18079 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18080 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18081 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18082 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18083 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18084 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18085 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18086 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18087 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18088 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18089 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18090 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18091 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18092 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18093 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18094 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18095 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18096 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18097 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18098 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18099 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18100 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18101 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18102 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18103 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18104 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18105 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18106 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18107 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18108 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18109 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18110 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"`'
18111 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18112 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18113 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18114 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18115 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18116 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18117 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18118 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18119 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18120 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18121 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18122 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18123 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18124 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18125 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18126 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18127 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18128 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18129 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18130 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18131 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18132 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18133 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18134 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18135 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18136 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18137 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18138 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18139 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18140 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18141 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18142 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18143 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18144 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18145 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18146 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18147 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18148 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18149 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18150 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18151 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18152 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18153 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18154 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18155 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18156 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18157 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18158 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18159 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18160 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18161 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18162 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18163 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18164 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18165 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18166 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18167 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18168 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18169 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18170 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18171 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18172 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18173 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18174 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18175 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18176 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18177 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18178 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18179 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18180 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18181 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18182 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18183 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18184 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18185 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18186 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18187
18188 LTCC='$LTCC'
18189 LTCFLAGS='$LTCFLAGS'
18190 compiler='$compiler_DEFAULT'
18191
18192 # A function that is used when there is no print builtin or printf.
18193 func_fallback_echo ()
18194 {
18195 eval 'cat <<_LTECHO_EOF
18196 \$1
18197 _LTECHO_EOF'
18198 }
18199
18200 # Quote evaled strings.
18201 for var in AS \
18202 DLLTOOL \
18203 OBJDUMP \
18204 SHELL \
18205 ECHO \
18206 PATH_SEPARATOR \
18207 SED \
18208 GREP \
18209 EGREP \
18210 FGREP \
18211 LD \
18212 NM \
18213 LN_S \
18214 lt_SP2NL \
18215 lt_NL2SP \
18216 reload_flag \
18217 FILECMD \
18218 deplibs_check_method \
18219 file_magic_cmd \
18220 file_magic_glob \
18221 want_nocaseglob \
18222 sharedlib_from_linklib_cmd \
18223 AR \
18224 archiver_list_spec \
18225 STRIP \
18226 RANLIB \
18227 CC \
18228 CFLAGS \
18229 compiler \
18230 lt_cv_sys_global_symbol_pipe \
18231 lt_cv_sys_global_symbol_to_cdecl \
18232 lt_cv_sys_global_symbol_to_import \
18233 lt_cv_sys_global_symbol_to_c_name_address \
18234 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18235 lt_cv_nm_interface \
18236 nm_file_list_spec \
18237 lt_cv_truncate_bin \
18238 lt_prog_compiler_no_builtin_flag \
18239 lt_prog_compiler_pic \
18240 lt_prog_compiler_wl \
18241 lt_prog_compiler_static \
18242 lt_cv_prog_compiler_c_o \
18243 need_locks \
18244 MANIFEST_TOOL \
18245 DSYMUTIL \
18246 NMEDIT \
18247 LIPO \
18248 OTOOL \
18249 OTOOL64 \
18250 shrext_cmds \
18251 export_dynamic_flag_spec \
18252 whole_archive_flag_spec \
18253 compiler_needs_object \
18254 with_gnu_ld \
18255 allow_undefined_flag \
18256 no_undefined_flag \
18257 hardcode_libdir_flag_spec \
18258 hardcode_libdir_separator \
18259 exclude_expsyms \
18260 include_expsyms \
18261 file_list_spec \
18262 variables_saved_for_relink \
18263 libname_spec \
18264 library_names_spec \
18265 soname_spec \
18266 install_override_mode \
18267 finish_eval \
18268 old_striplib \
18269 striplib; do
18270 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18271 *[\\\\\\\`\\"\\\$]*)
18272 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18273 ;;
18274 *)
18275 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18276 ;;
18277 esac
18278 done
18279
18280 # Double-quote double-evaled strings.
18281 for var in reload_cmds \
18282 old_postinstall_cmds \
18283 old_postuninstall_cmds \
18284 old_archive_cmds \
18285 extract_expsyms_cmds \
18286 old_archive_from_new_cmds \
18287 old_archive_from_expsyms_cmds \
18288 archive_cmds \
18289 archive_expsym_cmds \
18290 module_cmds \
18291 module_expsym_cmds \
18292 export_symbols_cmds \
18293 prelink_cmds \
18294 postlink_cmds \
18295 postinstall_cmds \
18296 postuninstall_cmds \
18297 finish_cmds \
18298 sys_lib_search_path_spec \
18299 configure_time_dlsearch_path \
18300 configure_time_lt_sys_library_path; do
18301 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18302 *[\\\\\\\`\\"\\\$]*)
18303 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18304 ;;
18305 *)
18306 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18307 ;;
18308 esac
18309 done
18310
18311 ac_aux_dir='$ac_aux_dir'
18312
18313 # See if we are running on zsh, and set the options that allow our
18314 # commands through without removal of \ escapes INIT.
18315 if test -n "\${ZSH_VERSION+set}"; then
18316 setopt NO_GLOB_SUBST
18317 fi
18318
18319
18320 PACKAGE='$PACKAGE'
18321 VERSION='$VERSION'
18322 RM='$RM'
18323 ofile='$ofile'
18324
18325 ac_aux_dir='$ac_aux_dir'
18326
18327
18328
18329 _ACEOF
18330
18331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18332
18333 # Handling of arguments.
18334 for ac_config_target in $ac_config_targets
18335 do
18336 case $ac_config_target in
18337 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18338 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18339 "ptexenc/c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS ptexenc/c-auto.h:c-auto.in" ;;
18340 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18341 "ptexenc.pc") CONFIG_FILES="$CONFIG_FILES ptexenc.pc" ;;
18342
18343 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18344 esac
18345 done
18346
18347
18348 # If the user did not use the arguments to specify the items to instantiate,
18349 # then the envvar interface is used. Set only those that are not.
18350 # We use the long form for the default assignment because of an extremely
18351 # bizarre bug on SunOS 4.1.3.
18352 if $ac_need_defaults; then
18353 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18354 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18355 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18356 fi
18357
18358 # Have a temporary directory for convenience. Make it in the build tree
18359 # simply because there is no reason against having it here, and in addition,
18360 # creating and moving files from /tmp can sometimes cause problems.
18361 # Hook for its removal unless debugging.
18362 # Note that there is a small window in which the directory will not be cleaned:
18363 # after its creation but before its name has been assigned to '$tmp'.
18364 $debug ||
18365 {
18366 tmp= ac_tmp=
18367 trap 'exit_status=$?
18368 : "${ac_tmp:=$tmp}"
18369 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18370 ' 0
18371 trap 'as_fn_exit 1' 1 2 13 15
18372 }
18373 # Create a (secure) tmp directory for tmp files.
18374
18375 {
18376 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18377 test -d "$tmp"
18378 } ||
18379 {
18380 tmp=./conf$$-$RANDOM
18381 (umask 077 && mkdir "$tmp")
18382 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18383 ac_tmp=$tmp
18384
18385 # Set up the scripts for CONFIG_FILES section.
18386 # No need to generate them if there are no CONFIG_FILES.
18387 # This happens for instance with './config.status config.h'.
18388 if test -n "$CONFIG_FILES"; then
18389
18390
18391 ac_cr=`echo X | tr X '\015'`
18392 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18393 # But we know of no other shell where ac_cr would be empty at this
18394 # point, so we can use a bashism as a fallback.
18395 if test "x$ac_cr" = x; then
18396 eval ac_cr=\$\'\\r\'
18397 fi
18398 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18399 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18400 ac_cs_awk_cr='\\r'
18401 else
18402 ac_cs_awk_cr=$ac_cr
18403 fi
18404
18405 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18406 _ACEOF
18407
18408
18409 {
18410 echo "cat >conf$$subs.awk <<_ACEOF" &&
18411 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18412 echo "_ACEOF"
18413 } >conf$$subs.sh ||
18414 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18415 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18416 ac_delim='%!_!# '
18417 for ac_last_try in false false false false false :; do
18418 . ./conf$$subs.sh ||
18419 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18420
18421 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18422 if test $ac_delim_n = $ac_delim_num; then
18423 break
18424 elif $ac_last_try; then
18425 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18426 else
18427 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18428 fi
18429 done
18430 rm -f conf$$subs.sh
18431
18432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18433 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18434 _ACEOF
18435 sed -n '
18436 h
18437 s/^/S["/; s/!.*/"]=/
18438 p
18439 g
18440 s/^[^!]*!//
18441 :repl
18442 t repl
18443 s/'"$ac_delim"'$//
18444 t delim
18445 :nl
18446 h
18447 s/\(.\{148\}\)..*/\1/
18448 t more1
18449 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18450 p
18451 n
18452 b repl
18453 :more1
18454 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18455 p
18456 g
18457 s/.\{148\}//
18458 t nl
18459 :delim
18460 h
18461 s/\(.\{148\}\)..*/\1/
18462 t more2
18463 s/["\\]/\\&/g; s/^/"/; s/$/"/
18464 p
18465 b
18466 :more2
18467 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18468 p
18469 g
18470 s/.\{148\}//
18471 t delim
18472 ' <conf$$subs.awk | sed '
18473 /^[^""]/{
18474 N
18475 s/\n//
18476 }
18477 ' >>$CONFIG_STATUS || ac_write_fail=1
18478 rm -f conf$$subs.awk
18479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18480 _ACAWK
18481 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18482 for (key in S) S_is_set[key] = 1
18483 FS = ""
18484
18485 }
18486 {
18487 line = $ 0
18488 nfields = split(line, field, "@")
18489 substed = 0
18490 len = length(field[1])
18491 for (i = 2; i < nfields; i++) {
18492 key = field[i]
18493 keylen = length(key)
18494 if (S_is_set[key]) {
18495 value = S[key]
18496 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18497 len += length(value) + length(field[++i])
18498 substed = 1
18499 } else
18500 len += 1 + keylen
18501 }
18502
18503 print line
18504 }
18505
18506 _ACAWK
18507 _ACEOF
18508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18509 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18510 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18511 else
18512 cat
18513 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18514 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18515 _ACEOF
18516
18517 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18518 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18519 # trailing colons and then remove the whole line if VPATH becomes empty
18520 # (actually we leave an empty line to preserve line numbers).
18521 if test "x$srcdir" = x.; then
18522 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18523 h
18524 s///
18525 s/^/:/
18526 s/[ ]*$/:/
18527 s/:\$(srcdir):/:/g
18528 s/:\${srcdir}:/:/g
18529 s/:@srcdir@:/:/g
18530 s/^:*//
18531 s/:*$//
18532 x
18533 s/\(=[ ]*\).*/\1/
18534 G
18535 s/\n//
18536 s/^[^=]*=[ ]*$//
18537 }'
18538 fi
18539
18540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18541 fi # test -n "$CONFIG_FILES"
18542
18543 # Set up the scripts for CONFIG_HEADERS section.
18544 # No need to generate them if there are no CONFIG_HEADERS.
18545 # This happens for instance with './config.status Makefile'.
18546 if test -n "$CONFIG_HEADERS"; then
18547 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18548 BEGIN {
18549 _ACEOF
18550
18551 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18552 # here-document in config.status, that substitutes the proper values into
18553 # config.h.in to produce config.h.
18554
18555 # Create a delimiter string that does not exist in confdefs.h, to ease
18556 # handling of long lines.
18557 ac_delim='%!_!# '
18558 for ac_last_try in false false :; do
18559 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18560 if test -z "$ac_tt"; then
18561 break
18562 elif $ac_last_try; then
18563 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18564 else
18565 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18566 fi
18567 done
18568
18569 # For the awk script, D is an array of macro values keyed by name,
18570 # likewise P contains macro parameters if any. Preserve backslash
18571 # newline sequences.
18572
18573 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18574 sed -n '
18575 s/.\{148\}/&'"$ac_delim"'/g
18576 t rset
18577 :rset
18578 s/^[ ]*#[ ]*define[ ][ ]*/ /
18579 t def
18580 d
18581 :def
18582 s/\\$//
18583 t bsnl
18584 s/["\\]/\\&/g
18585 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18586 D["\1"]=" \3"/p
18587 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18588 d
18589 :bsnl
18590 s/["\\]/\\&/g
18591 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18592 D["\1"]=" \3\\\\\\n"\\/p
18593 t cont
18594 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18595 t cont
18596 d
18597 :cont
18598 n
18599 s/.\{148\}/&'"$ac_delim"'/g
18600 t clear
18601 :clear
18602 s/\\$//
18603 t bsnlc
18604 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18605 d
18606 :bsnlc
18607 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18608 b cont
18609 ' <confdefs.h | sed '
18610 s/'"$ac_delim"'/"\\\
18611 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18612
18613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18614 for (key in D) D_is_set[key] = 1
18615 FS = ""
18616 }
18617 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18618 line = \$ 0
18619 split(line, arg, " ")
18620 if (arg[1] == "#") {
18621 defundef = arg[2]
18622 mac1 = arg[3]
18623 } else {
18624 defundef = substr(arg[1], 2)
18625 mac1 = arg[2]
18626 }
18627 split(mac1, mac2, "(") #)
18628 macro = mac2[1]
18629 prefix = substr(line, 1, index(line, defundef) - 1)
18630 if (D_is_set[macro]) {
18631 # Preserve the white space surrounding the "#".
18632 print prefix "define", macro P[macro] D[macro]
18633 next
18634 } else {
18635 # Replace #undef with comments. This is necessary, for example,
18636 # in the case of _POSIX_SOURCE, which is predefined and required
18637 # on some systems where configure will not decide to define it.
18638 if (defundef == "undef") {
18639 print "/*", prefix defundef, macro, "*/"
18640 next
18641 }
18642 }
18643 }
18644 { print }
18645 _ACAWK
18646 _ACEOF
18647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18648 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18649 fi # test -n "$CONFIG_HEADERS"
18650
18651
18652 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18653 shift
18654 for ac_tag
18655 do
18656 case $ac_tag in
18657 :[FHLC]) ac_mode=$ac_tag; continue;;
18658 esac
18659 case $ac_mode$ac_tag in
18660 :[FHL]*:*);;
18661 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18662 :[FH]-) ac_tag=-:-;;
18663 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18664 esac
18665 ac_save_IFS=$IFS
18666 IFS=:
18667 set x $ac_tag
18668 IFS=$ac_save_IFS
18669 shift
18670 ac_file=$1
18671 shift
18672
18673 case $ac_mode in
18674 :L) ac_source=$1;;
18675 :[FH])
18676 ac_file_inputs=
18677 for ac_f
18678 do
18679 case $ac_f in
18680 -) ac_f="$ac_tmp/stdin";;
18681 *) # Look for the file first in the build tree, then in the source tree
18682 # (if the path is not absolute). The absolute path cannot be DOS-style,
18683 # because $ac_f cannot contain ':'.
18684 test -f "$ac_f" ||
18685 case $ac_f in
18686 [\\/$]*) false;;
18687 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18688 esac ||
18689 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18690 esac
18691 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18692 as_fn_append ac_file_inputs " '$ac_f'"
18693 done
18694
18695 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18696 # use $as_me), people would be surprised to read:
18697 # /* config.h. Generated by config.status. */
18698 configure_input='Generated from '`
18699 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18700 `' by configure.'
18701 if test x"$ac_file" != x-; then
18702 configure_input="$ac_file. $configure_input"
18703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18704 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18705 fi
18706 # Neutralize special characters interpreted by sed in replacement strings.
18707 case $configure_input in #(
18708 *\&* | *\|* | *\\* )
18709 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18710 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18711 *) ac_sed_conf_input=$configure_input;;
18712 esac
18713
18714 case $ac_tag in
18715 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18716 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18717 esac
18718 ;;
18719 esac
18720
18721 ac_dir=`$as_dirname -- "$ac_file" ||
18722 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18723 X"$ac_file" : 'X\(//\)[^/]' \| \
18724 X"$ac_file" : 'X\(//\)$' \| \
18725 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18726 printf "%s\n" X"$ac_file" |
18727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18728 s//\1/
18729 q
18730 }
18731 /^X\(\/\/\)[^/].*/{
18732 s//\1/
18733 q
18734 }
18735 /^X\(\/\/\)$/{
18736 s//\1/
18737 q
18738 }
18739 /^X\(\/\).*/{
18740 s//\1/
18741 q
18742 }
18743 s/.*/./; q'`
18744 as_dir="$ac_dir"; as_fn_mkdir_p
18745 ac_builddir=.
18746
18747 case "$ac_dir" in
18748 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18749 *)
18750 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18751 # A ".." for each directory in $ac_dir_suffix.
18752 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18753 case $ac_top_builddir_sub in
18754 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18755 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18756 esac ;;
18757 esac
18758 ac_abs_top_builddir=$ac_pwd
18759 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18760 # for backward compatibility:
18761 ac_top_builddir=$ac_top_build_prefix
18762
18763 case $srcdir in
18764 .) # We are building in place.
18765 ac_srcdir=.
18766 ac_top_srcdir=$ac_top_builddir_sub
18767 ac_abs_top_srcdir=$ac_pwd ;;
18768 [\\/]* | ?:[\\/]* ) # Absolute name.
18769 ac_srcdir=$srcdir$ac_dir_suffix;
18770 ac_top_srcdir=$srcdir
18771 ac_abs_top_srcdir=$srcdir ;;
18772 *) # Relative name.
18773 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18774 ac_top_srcdir=$ac_top_build_prefix$srcdir
18775 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18776 esac
18777 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18778
18779
18780 case $ac_mode in
18781 :F)
18782 #
18783 # CONFIG_FILE
18784 #
18785
18786 case $INSTALL in
18787 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18788 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18789 esac
18790 ac_MKDIR_P=$MKDIR_P
18791 case $MKDIR_P in
18792 [\\/$]* | ?:[\\/]* ) ;;
18793 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18794 esac
18795 _ACEOF
18796
18797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18798 # If the template does not know about datarootdir, expand it.
18799 # FIXME: This hack should be removed a few years after 2.60.
18800 ac_datarootdir_hack=; ac_datarootdir_seen=
18801 ac_sed_dataroot='
18802 /datarootdir/ {
18803 p
18804 q
18805 }
18806 /@datadir@/p
18807 /@docdir@/p
18808 /@infodir@/p
18809 /@localedir@/p
18810 /@mandir@/p'
18811 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18812 *datarootdir*) ac_datarootdir_seen=yes;;
18813 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18815 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18816 _ACEOF
18817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18818 ac_datarootdir_hack='
18819 s&@datadir@&$datadir&g
18820 s&@docdir@&$docdir&g
18821 s&@infodir@&$infodir&g
18822 s&@localedir@&$localedir&g
18823 s&@mandir@&$mandir&g
18824 s&\\\${datarootdir}&$datarootdir&g' ;;
18825 esac
18826 _ACEOF
18827
18828 # Neutralize VPATH when '$srcdir' = '.'.
18829 # Shell code in configure.ac might set extrasub.
18830 # FIXME: do we really want to maintain this feature?
18831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18832 ac_sed_extra="$ac_vpsub
18833 $extrasub
18834 _ACEOF
18835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18836 :t
18837 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18838 s|@configure_input@|$ac_sed_conf_input|;t t
18839 s&@top_builddir@&$ac_top_builddir_sub&;t t
18840 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18841 s&@srcdir@&$ac_srcdir&;t t
18842 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18843 s&@top_srcdir@&$ac_top_srcdir&;t t
18844 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18845 s&@builddir@&$ac_builddir&;t t
18846 s&@abs_builddir@&$ac_abs_builddir&;t t
18847 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18848 s&@INSTALL@&$ac_INSTALL&;t t
18849 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18850 $ac_datarootdir_hack
18851 "
18852 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18853 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18854
18855 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18856 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18857 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18858 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18860 which seems to be undefined. Please make sure it is defined" >&5
18861 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18862 which seems to be undefined. Please make sure it is defined" >&2;}
18863
18864 rm -f "$ac_tmp/stdin"
18865 case $ac_file in
18866 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18867 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18868 esac \
18869 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18870 ;;
18871 :H)
18872 #
18873 # CONFIG_HEADER
18874 #
18875 if test x"$ac_file" != x-; then
18876 {
18877 printf "%s\n" "/* $configure_input */" >&1 \
18878 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18879 } >"$ac_tmp/config.h" \
18880 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18881 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18883 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18884 else
18885 rm -f "$ac_file"
18886 mv "$ac_tmp/config.h" "$ac_file" \
18887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18888 fi
18889 else
18890 printf "%s\n" "/* $configure_input */" >&1 \
18891 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18892 || as_fn_error $? "could not create -" "$LINENO" 5
18893 fi
18894 # Compute "$ac_file"'s index in $config_headers.
18895 _am_arg="$ac_file"
18896 _am_stamp_count=1
18897 for _am_header in $config_headers :; do
18898 case $_am_header in
18899 $_am_arg | $_am_arg:* )
18900 break ;;
18901 * )
18902 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18903 esac
18904 done
18905 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18906 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18907 X"$_am_arg" : 'X\(//\)[^/]' \| \
18908 X"$_am_arg" : 'X\(//\)$' \| \
18909 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18910 printf "%s\n" X"$_am_arg" |
18911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18912 s//\1/
18913 q
18914 }
18915 /^X\(\/\/\)[^/].*/{
18916 s//\1/
18917 q
18918 }
18919 /^X\(\/\/\)$/{
18920 s//\1/
18921 q
18922 }
18923 /^X\(\/\).*/{
18924 s//\1/
18925 q
18926 }
18927 s/.*/./; q'`/stamp-h$_am_stamp_count
18928 ;;
18929
18930 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18931 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18932 ;;
18933 esac
18934
18935
18936 case $ac_file$ac_mode in
18937 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18938 # Older Autoconf quotes --file arguments for eval, but not when files
18939 # are listed without --file. Let's play safe and only enable the eval
18940 # if we detect the quoting.
18941 # TODO: see whether this extra hack can be removed once we start
18942 # requiring Autoconf 2.70 or later.
18943 case $CONFIG_FILES in #(
18944 *\'*) :
18945 eval set x "$CONFIG_FILES" ;; #(
18946 *) :
18947 set x $CONFIG_FILES ;; #(
18948 *) :
18949 ;;
18950 esac
18951 shift
18952 # Used to flag and report bootstrapping failures.
18953 am_rc=0
18954 for am_mf
18955 do
18956 # Strip MF so we end up with the name of the file.
18957 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18958 # Check whether this is an Automake generated Makefile which includes
18959 # dependency-tracking related rules and includes.
18960 # Grep'ing the whole file directly is not great: AIX grep has a line
18961 # limit of 2048, but all sed's we know have understand at least 4000.
18962 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18963 || continue
18964 am_dirpart=`$as_dirname -- "$am_mf" ||
18965 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18966 X"$am_mf" : 'X\(//\)[^/]' \| \
18967 X"$am_mf" : 'X\(//\)$' \| \
18968 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18969 printf "%s\n" X"$am_mf" |
18970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18971 s//\1/
18972 q
18973 }
18974 /^X\(\/\/\)[^/].*/{
18975 s//\1/
18976 q
18977 }
18978 /^X\(\/\/\)$/{
18979 s//\1/
18980 q
18981 }
18982 /^X\(\/\).*/{
18983 s//\1/
18984 q
18985 }
18986 s/.*/./; q'`
18987 am_filepart=`$as_basename -- "$am_mf" ||
18988 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18989 X"$am_mf" : 'X\(//\)$' \| \
18990 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18991 printf "%s\n" X/"$am_mf" |
18992 sed '/^.*\/\([^/][^/]*\)\/*$/{
18993 s//\1/
18994 q
18995 }
18996 /^X\/\(\/\/\)$/{
18997 s//\1/
18998 q
18999 }
19000 /^X\/\(\/\).*/{
19001 s//\1/
19002 q
19003 }
19004 s/.*/./; q'`
19005 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19006 && sed -e '/# am--include-marker/d' "$am_filepart" \
19007 | $MAKE -f - am--depfiles" >&5
19008 (cd "$am_dirpart" \
19009 && sed -e '/# am--include-marker/d' "$am_filepart" \
19010 | $MAKE -f - am--depfiles) >&5 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } || am_rc=$?
19014 done
19015 if test $am_rc -ne 0; then
19016 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19017 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19018 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19019 for automatic dependency tracking. If GNU make was not used, consider
19020 re-running the configure script with MAKE=\"gmake\" (or whatever is
19021 necessary). You can also try re-running configure with the
19022 '--disable-dependency-tracking' option to at least be able to build
19023 the package (albeit without support for automatic dependency tracking).
19024 See 'config.log' for more details" "$LINENO" 5; }
19025 fi
19026 { am_dirpart=; unset am_dirpart;}
19027 { am_filepart=; unset am_filepart;}
19028 { am_mf=; unset am_mf;}
19029 { am_rc=; unset am_rc;}
19030 rm -f conftest-deps.mk
19031 }
19032 ;;
19033 "libtool":C)
19034
19035 # See if we are running on zsh, and set the options that allow our
19036 # commands through without removal of \ escapes.
19037 if test -n "${ZSH_VERSION+set}"; then
19038 setopt NO_GLOB_SUBST
19039 fi
19040
19041 cfgfile=${ofile}T
19042 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19043 $RM "$cfgfile"
19044
19045 cat <<_LT_EOF >> "$cfgfile"
19046 #! $SHELL
19047 # Generated automatically by $as_me ($PACKAGE) $VERSION
19048 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19049
19050 # Provide generalized library-building support services.
19051 # Written by Gordon Matzigkeit, 1996
19052
19053 # Copyright (C) 2024 Free Software Foundation, Inc.
19054 # This is free software; see the source for copying conditions. There is NO
19055 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19056
19057 # GNU Libtool is free software; you can redistribute it and/or modify
19058 # it under the terms of the GNU General Public License as published by
19059 # the Free Software Foundation; either version 2 of the License, or
19060 # (at your option) any later version.
19061 #
19062 # As a special exception to the GNU General Public License, if you
19063 # distribute this file as part of a program or library that is built
19064 # using GNU Libtool, you may include this file under the same
19065 # distribution terms that you use for the rest of that program.
19066 #
19067 # GNU Libtool is distributed in the hope that it will be useful, but
19068 # WITHOUT ANY WARRANTY; without even the implied warranty of
19069 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19070 # GNU General Public License for more details.
19071 #
19072 # You should have received a copy of the GNU General Public License
19073 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19074
19075
19076 # The names of the tagged configurations supported by this script.
19077 available_tags=''
19078
19079 # Configured defaults for sys_lib_dlsearch_path munging.
19080 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19081
19082 # ### BEGIN LIBTOOL CONFIG
19083
19084 # Which release of libtool.m4 was used?
19085 macro_version=$macro_version
19086 macro_revision=$macro_revision
19087
19088 # Assembler program.
19089 AS=$lt_AS
19090
19091 # DLL creation program.
19092 DLLTOOL=$lt_DLLTOOL
19093
19094 # Object dumper program.
19095 OBJDUMP=$lt_OBJDUMP
19096
19097 # Whether or not to build shared libraries.
19098 build_libtool_libs=$enable_shared
19099
19100 # Whether or not to build static libraries.
19101 build_old_libs=$enable_static
19102
19103 # What type of objects to build.
19104 pic_mode=$pic_mode
19105
19106 # Whether or not to optimize for fast installation.
19107 fast_install=$enable_fast_install
19108
19109 # Shared archive member basename,for filename based shared library versioning on AIX.
19110 shared_archive_member_spec=$shared_archive_member_spec
19111
19112 # Shell to use when invoking shell scripts.
19113 SHELL=$lt_SHELL
19114
19115 # An echo program that protects backslashes.
19116 ECHO=$lt_ECHO
19117
19118 # The PATH separator for the build system.
19119 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19120
19121 # The host system.
19122 host_alias=$host_alias
19123 host=$host
19124 host_os=$host_os
19125
19126 # The build system.
19127 build_alias=$build_alias
19128 build=$build
19129 build_os=$build_os
19130
19131 # A sed program that does not truncate output.
19132 SED=$lt_SED
19133
19134 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19135 Xsed="\$SED -e 1s/^X//"
19136
19137 # A grep program that handles long lines.
19138 GREP=$lt_GREP
19139
19140 # An ERE matcher.
19141 EGREP=$lt_EGREP
19142
19143 # A literal string matcher.
19144 FGREP=$lt_FGREP
19145
19146 # A BSD- or MS-compatible name lister.
19147 NM=$lt_NM
19148
19149 # Whether we need soft or hard links.
19150 LN_S=$lt_LN_S
19151
19152 # What is the maximum length of a command?
19153 max_cmd_len=$max_cmd_len
19154
19155 # Object file suffix (normally "o").
19156 objext=$ac_objext
19157
19158 # Executable file suffix (normally "").
19159 exeext=$exeext
19160
19161 # whether the shell understands "unset".
19162 lt_unset=$lt_unset
19163
19164 # turn spaces into newlines.
19165 SP2NL=$lt_lt_SP2NL
19166
19167 # turn newlines into spaces.
19168 NL2SP=$lt_lt_NL2SP
19169
19170 # convert \$build file names to \$host format.
19171 to_host_file_cmd=$lt_cv_to_host_file_cmd
19172
19173 # convert \$build files to toolchain format.
19174 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19175
19176 # A file(cmd) program that detects file types.
19177 FILECMD=$lt_FILECMD
19178
19179 # Method to check whether dependent libraries are shared objects.
19180 deplibs_check_method=$lt_deplibs_check_method
19181
19182 # Command to use when deplibs_check_method = "file_magic".
19183 file_magic_cmd=$lt_file_magic_cmd
19184
19185 # How to find potential files when deplibs_check_method = "file_magic".
19186 file_magic_glob=$lt_file_magic_glob
19187
19188 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19189 want_nocaseglob=$lt_want_nocaseglob
19190
19191 # Command to associate shared and link libraries.
19192 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19193
19194 # The archiver.
19195 AR=$lt_AR
19196
19197 # Flags to create an archive (by configure).
19198 lt_ar_flags=$lt_ar_flags
19199
19200 # Flags to create an archive.
19201 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19202
19203 # How to feed a file listing to the archiver.
19204 archiver_list_spec=$lt_archiver_list_spec
19205
19206 # A symbol stripping program.
19207 STRIP=$lt_STRIP
19208
19209 # Commands used to install an old-style archive.
19210 RANLIB=$lt_RANLIB
19211 old_postinstall_cmds=$lt_old_postinstall_cmds
19212 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19213
19214 # Whether to use a lock for old archive extraction.
19215 lock_old_archive_extraction=$lock_old_archive_extraction
19216
19217 # A C compiler.
19218 LTCC=$lt_CC
19219
19220 # LTCC compiler flags.
19221 LTCFLAGS=$lt_CFLAGS
19222
19223 # Take the output of nm and produce a listing of raw symbols and C names.
19224 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19225
19226 # Transform the output of nm in a proper C declaration.
19227 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19228
19229 # Transform the output of nm into a list of symbols to manually relocate.
19230 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19231
19232 # Transform the output of nm in a C name address pair.
19233 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19234
19235 # Transform the output of nm in a C name address pair when lib prefix is needed.
19236 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19237
19238 # The name lister interface.
19239 nm_interface=$lt_lt_cv_nm_interface
19240
19241 # Specify filename containing input files for \$NM.
19242 nm_file_list_spec=$lt_nm_file_list_spec
19243
19244 # The root where to search for dependent libraries,and where our libraries should be installed.
19245 lt_sysroot=$lt_sysroot
19246
19247 # Command to truncate a binary pipe.
19248 lt_truncate_bin=$lt_lt_cv_truncate_bin
19249
19250 # The name of the directory that contains temporary libtool files.
19251 objdir=$objdir
19252
19253 # Used to examine libraries when file_magic_cmd begins with "file".
19254 MAGIC_CMD=$MAGIC_CMD
19255
19256 # Must we lock files when doing compilation?
19257 need_locks=$lt_need_locks
19258
19259 # Manifest tool.
19260 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19261
19262 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19263 DSYMUTIL=$lt_DSYMUTIL
19264
19265 # Tool to change global to local symbols on Mac OS X.
19266 NMEDIT=$lt_NMEDIT
19267
19268 # Tool to manipulate fat objects and archives on Mac OS X.
19269 LIPO=$lt_LIPO
19270
19271 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19272 OTOOL=$lt_OTOOL
19273
19274 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19275 OTOOL64=$lt_OTOOL64
19276
19277 # Old archive suffix (normally "a").
19278 libext=$libext
19279
19280 # Shared library suffix (normally ".so").
19281 shrext_cmds=$lt_shrext_cmds
19282
19283 # The commands to extract the exported symbol list from a shared archive.
19284 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19285
19286 # Variables whose values should be saved in libtool wrapper scripts and
19287 # restored at link time.
19288 variables_saved_for_relink=$lt_variables_saved_for_relink
19289
19290 # Do we need the "lib" prefix for modules?
19291 need_lib_prefix=$need_lib_prefix
19292
19293 # Do we need a version for libraries?
19294 need_version=$need_version
19295
19296 # Library versioning type.
19297 version_type=$version_type
19298
19299 # Shared library runtime path variable.
19300 runpath_var=$runpath_var
19301
19302 # Shared library path variable.
19303 shlibpath_var=$shlibpath_var
19304
19305 # Is shlibpath searched before the hard-coded library search path?
19306 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19307
19308 # Format of library name prefix.
19309 libname_spec=$lt_libname_spec
19310
19311 # List of archive names. First name is the real one, the rest are links.
19312 # The last name is the one that the linker finds with -lNAME
19313 library_names_spec=$lt_library_names_spec
19314
19315 # The coded name of the library, if different from the real name.
19316 soname_spec=$lt_soname_spec
19317
19318 # Permission mode override for installation of shared libraries.
19319 install_override_mode=$lt_install_override_mode
19320
19321 # Command to use after installation of a shared archive.
19322 postinstall_cmds=$lt_postinstall_cmds
19323
19324 # Command to use after uninstallation of a shared archive.
19325 postuninstall_cmds=$lt_postuninstall_cmds
19326
19327 # Commands used to finish a libtool library installation in a directory.
19328 finish_cmds=$lt_finish_cmds
19329
19330 # As "finish_cmds", except a single script fragment to be evaled but
19331 # not shown.
19332 finish_eval=$lt_finish_eval
19333
19334 # Whether we should hardcode library paths into libraries.
19335 hardcode_into_libs=$hardcode_into_libs
19336
19337 # Compile-time system search path for libraries.
19338 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19339
19340 # Detected run-time system search path for libraries.
19341 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19342
19343 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19344 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19345
19346 # Whether dlopen is supported.
19347 dlopen_support=$enable_dlopen
19348
19349 # Whether dlopen of programs is supported.
19350 dlopen_self=$enable_dlopen_self
19351
19352 # Whether dlopen of statically linked programs is supported.
19353 dlopen_self_static=$enable_dlopen_self_static
19354
19355 # Commands to strip libraries.
19356 old_striplib=$lt_old_striplib
19357 striplib=$lt_striplib
19358
19359
19360 # The linker used to build libraries.
19361 LD=$lt_LD
19362
19363 # How to create reloadable object files.
19364 reload_flag=$lt_reload_flag
19365 reload_cmds=$lt_reload_cmds
19366
19367 # Commands used to build an old-style archive.
19368 old_archive_cmds=$lt_old_archive_cmds
19369
19370 # A language specific compiler.
19371 CC=$lt_compiler
19372
19373 # Is the compiler the GNU compiler?
19374 with_gcc=$GCC
19375
19376 # Compiler flag to turn off builtin functions.
19377 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19378
19379 # Additional compiler flags for building library objects.
19380 pic_flag=$lt_lt_prog_compiler_pic
19381
19382 # How to pass a linker flag through the compiler.
19383 wl=$lt_lt_prog_compiler_wl
19384
19385 # Compiler flag to prevent dynamic linking.
19386 link_static_flag=$lt_lt_prog_compiler_static
19387
19388 # Does compiler simultaneously support -c and -o options?
19389 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19390
19391 # Whether or not to add -lc for building shared libraries.
19392 build_libtool_need_lc=$archive_cmds_need_lc
19393
19394 # Whether or not to disallow shared libs when runtime libs are static.
19395 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19396
19397 # Compiler flag to allow reflexive dlopens.
19398 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19399
19400 # Compiler flag to generate shared objects directly from archives.
19401 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19402
19403 # Whether the compiler copes with passing no objects directly.
19404 compiler_needs_object=$lt_compiler_needs_object
19405
19406 # Create an old-style archive from a shared archive.
19407 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19408
19409 # Create a temporary old-style archive to link instead of a shared archive.
19410 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19411
19412 # Commands used to build a shared archive.
19413 archive_cmds=$lt_archive_cmds
19414 archive_expsym_cmds=$lt_archive_expsym_cmds
19415
19416 # Commands used to build a loadable module if different from building
19417 # a shared archive.
19418 module_cmds=$lt_module_cmds
19419 module_expsym_cmds=$lt_module_expsym_cmds
19420
19421 # Whether we are building with GNU ld or not.
19422 with_gnu_ld=$lt_with_gnu_ld
19423
19424 # Flag that allows shared libraries with undefined symbols to be built.
19425 allow_undefined_flag=$lt_allow_undefined_flag
19426
19427 # Flag that enforces no undefined symbols.
19428 no_undefined_flag=$lt_no_undefined_flag
19429
19430 # Flag to hardcode \$libdir into a binary during linking.
19431 # This must work even if \$libdir does not exist
19432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19433
19434 # Whether we need a single "-rpath" flag with a separated argument.
19435 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19436
19437 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19438 # DIR into the resulting binary.
19439 hardcode_direct=$hardcode_direct
19440
19441 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19442 # DIR into the resulting binary and the resulting library dependency is
19443 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19444 # library is relocated.
19445 hardcode_direct_absolute=$hardcode_direct_absolute
19446
19447 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19448 # into the resulting binary.
19449 hardcode_minus_L=$hardcode_minus_L
19450
19451 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19452 # into the resulting binary.
19453 hardcode_shlibpath_var=$hardcode_shlibpath_var
19454
19455 # Set to "yes" if building a shared library automatically hardcodes DIR
19456 # into the library and all subsequent libraries and executables linked
19457 # against it.
19458 hardcode_automatic=$hardcode_automatic
19459
19460 # Set to yes if linker adds runtime paths of dependent libraries
19461 # to runtime path list.
19462 inherit_rpath=$inherit_rpath
19463
19464 # Whether libtool must link a program against all its dependency libraries.
19465 link_all_deplibs=$link_all_deplibs
19466
19467 # Set to "yes" if exported symbols are required.
19468 always_export_symbols=$always_export_symbols
19469
19470 # The commands to list exported symbols.
19471 export_symbols_cmds=$lt_export_symbols_cmds
19472
19473 # Symbols that should not be listed in the preloaded symbols.
19474 exclude_expsyms=$lt_exclude_expsyms
19475
19476 # Symbols that must always be exported.
19477 include_expsyms=$lt_include_expsyms
19478
19479 # Commands necessary for linking programs (against libraries) with templates.
19480 prelink_cmds=$lt_prelink_cmds
19481
19482 # Commands necessary for finishing linking programs.
19483 postlink_cmds=$lt_postlink_cmds
19484
19485 # Specify filename containing input files.
19486 file_list_spec=$lt_file_list_spec
19487
19488 # How to hardcode a shared library path into an executable.
19489 hardcode_action=$hardcode_action
19490
19491 # ### END LIBTOOL CONFIG
19492
19493 _LT_EOF
19494
19495 cat <<'_LT_EOF' >> "$cfgfile"
19496
19497 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19498
19499 # func_munge_path_list VARIABLE PATH
19500 # -----------------------------------
19501 # VARIABLE is name of variable containing _space_ separated list of
19502 # directories to be munged by the contents of PATH, which is string
19503 # having a format:
19504 # "DIR[:DIR]:"
19505 # string "DIR[ DIR]" will be prepended to VARIABLE
19506 # ":DIR[:DIR]"
19507 # string "DIR[ DIR]" will be appended to VARIABLE
19508 # "DIRP[:DIRP]::[DIRA:]DIRA"
19509 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19510 # "DIRA[ DIRA]" will be appended to VARIABLE
19511 # "DIR[:DIR]"
19512 # VARIABLE will be replaced by "DIR[ DIR]"
19513 func_munge_path_list ()
19514 {
19515 case x$2 in
19516 x)
19517 ;;
19518 *:)
19519 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19520 ;;
19521 x:*)
19522 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19523 ;;
19524 *::*)
19525 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19526 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19527 ;;
19528 *)
19529 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19530 ;;
19531 esac
19532 }
19533
19534
19535 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19536 func_cc_basename ()
19537 {
19538 for cc_temp in $*""; do
19539 case $cc_temp in
19540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19542 \-*) ;;
19543 *) break;;
19544 esac
19545 done
19546 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19547 }
19548
19549
19550 # ### END FUNCTIONS SHARED WITH CONFIGURE
19551
19552 _LT_EOF
19553
19554 case $host_os in
19555 aix3*)
19556 cat <<\_LT_EOF >> "$cfgfile"
19557 # AIX sometimes has problems with the GCC collect2 program. For some
19558 # reason, if we set the COLLECT_NAMES environment variable, the problems
19559 # vanish in a puff of smoke.
19560 if test set != "${COLLECT_NAMES+set}"; then
19561 COLLECT_NAMES=
19562 export COLLECT_NAMES
19563 fi
19564 _LT_EOF
19565 ;;
19566 esac
19567
19568
19569
19570 ltmain=$ac_aux_dir/ltmain.sh
19571
19572
19573 # We use sed instead of cat because bash on DJGPP gets confused if
19574 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19575 # text mode, it properly converts lines to CR/LF. This bash problem
19576 # is reportedly fixed, but why not run on old versions too?
19577 $SED '$q' "$ltmain" >> "$cfgfile" \
19578 || (rm -f "$cfgfile"; exit 1)
19579
19580 mv -f "$cfgfile" "$ofile" ||
19581 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19582 chmod +x "$ofile"
19583
19584 ;;
19585 "ptexenc/c-auto.h":H) sed -e 's/^#define PACKAGE/#define PTEXENC_PACKAGE/' \
19586 -e 's/^#define VERSION/#define PTEXENC_VERSION/' ptexenc/c-auto.h >c-auto.tmp \
19587 && mv -f c-auto.tmp ptexenc/c-auto.h ;;
19588
19589 esac
19590 done # for ac_tag
19591
19592
19593 as_fn_exit 0
19594 _ACEOF
19595 ac_clean_files=$ac_clean_files_save
19596
19597 test $ac_write_fail = 0 ||
19598 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19599
19600
19601 # configure is writing to config.log, and then calls config.status.
19602 # config.status does its own redirection, appending to config.log.
19603 # Unfortunately, on DOS this fails, as config.log is still kept open
19604 # by configure, so config.status won't be able to write to it; its
19605 # output is simply discarded. So we exec the FD to /dev/null,
19606 # effectively closing config.log, so it can be properly (re)opened and
19607 # appended to by config.status. When coming back to configure, we
19608 # need to make the FD available again.
19609 if test "$no_create" != yes; then
19610 ac_cs_success=:
19611 ac_config_status_args=
19612 test "$silent" = yes &&
19613 ac_config_status_args="$ac_config_status_args --quiet"
19614 exec 5>/dev/null
19615 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19616 exec 5>>config.log
19617 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19618 # would make configure fail if this is the last instruction.
19619 $ac_cs_success || as_fn_exit 1
19620 fi
19621 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19623 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19624 fi
19625
19626