Debian Codegraph @

texk/gregorio/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 Gregorio (TeX Live) 6.1.0.
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='Gregorio (TeX Live)'
616 PACKAGE_TARNAME='gregorio--tex-live-'
617 PACKAGE_VERSION='6.1.0'
618 PACKAGE_STRING='Gregorio (TeX Live) 6.1.0'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL='http://gregorio-project.github.io/'
621
622 ac_unique_file="gregorio-src/src/gregorio-utils.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 ac_func_c_list=
656 enable_year2038=no
657 ac_subst_vars='am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 LIBOBJS
661 KPATHSEA_RULE
662 KPATHSEA_DEPEND
663 KPATHSEA_LIBS
664 KPATHSEA_INCLUDES
665 PKG_CONFIG
666 PERL5
667 GREGORIO_TREE
668 LT_SYS_LIBRARY_PATH
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 FILECMD
677 LN_S
678 NM
679 ac_ct_DUMPBIN
680 DUMPBIN
681 LD
682 FGREP
683 EGREP
684 GREP
685 SED
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 LIBTOOL
695 OBJDUMP
696 DLLTOOL
697 AS
698 ac_ct_AR
699 AR
700 WARNING_CFLAGS
701 am__fastdepCC_FALSE
702 am__fastdepCC_TRUE
703 CCDEPMODE
704 am__nodep
705 AMDEPBACKSLASH
706 AMDEP_FALSE
707 AMDEP_TRUE
708 am__include
709 DEPDIR
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
716 CC
717 MAINT
718 MAINTAINER_MODE_FALSE
719 MAINTAINER_MODE_TRUE
720 am__xargs_n
721 am__rm_f_notfound
722 AM_BACKSLASH
723 AM_DEFAULT_VERBOSITY
724 AM_DEFAULT_V
725 AM_V
726 CSCOPE
727 ETAGS
728 CTAGS
729 am__untar
730 am__tar
731 AMTAR
732 am__leading_dot
733 SET_MAKE
734 AWK
735 mkdir_p
736 MKDIR_P
737 INSTALL_STRIP_PROGRAM
738 STRIP
739 install_sh
740 MAKEINFO
741 AUTOHEADER
742 AUTOMAKE
743 AUTOCONF
744 ACLOCAL
745 VERSION
746 PACKAGE
747 CYGPATH_W
748 am__isrc
749 INSTALL_DATA
750 INSTALL_SCRIPT
751 INSTALL_PROGRAM
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 runstatedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL
791 am__quote'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_silent_rules
796 enable_maintainer_mode
797 enable_dependency_tracking
798 enable_compiler_warnings
799 enable_shared
800 enable_static
801 enable_pic
802 with_pic
803 enable_fast_install
804 enable_aix_soname
805 with_aix_soname
806 with_gnu_ld
807 with_sysroot
808 enable_libtool_lock
809 enable_largefile
810 with_system_kpathsea
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 Gregorio (TeX Live) 6.1.0 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
1420 [DATAROOTDIR/doc/gregorio--tex-live-]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of Gregorio (TeX Live) 6.1.0:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-silent-rules less verbose build output (undo: "make V=1")
1451 --disable-silent-rules verbose build output (undo: "make V=0")
1452 --enable-maintainer-mode
1453 enable make rules and dependencies not useful (and
1454 sometimes confusing) to the casual installer
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-compiler-warnings=[no|min|yes|max|all]
1460 Turn on compiler warnings [default: yes if
1461 maintainer-mode, min otherwise]
1462 --enable-shared[=PKGS] build shared libraries [default=yes]
1463 --enable-static[=PKGS] build static libraries [default=yes]
1464 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1465 both]
1466 --enable-fast-install[=PKGS]
1467 optimize for fast installation [default=yes]
1468 --enable-aix-soname=aix|svr4|both
1469 shared library versioning (aka "SONAME") variant to
1470 provide on AIX, [default=aix].
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1472 --disable-largefile omit support for large files
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 Gregorio (TeX Live) home page: <http://gregorio-project.github.io/>.
1500 _ACEOF
1501 ac_status=$?
1502 fi
1503
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" ||
1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509 continue
1510 ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529 .) # We are building in place.
1530 ac_srcdir=.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1537 *) # Relative name.
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for configure.gnu first; this name is used for a wrapper for
1546 # Metaconfig's "Configure" on case-insensitive file systems.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562 cat <<\_ACEOF
1563 Gregorio (TeX Live) configure 6.1.0
1564 generated by GNU Autoconf 2.72
1565
1566 Copyright (C) 2023 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570 exit
1571 fi
1572
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1576
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext conftest.beam
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 printf "%s\n" "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext
1603 then :
1604 ac_retval=0
1605 else case e in #(
1606 e) printf "%s\n" "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1 ;;
1610 esac
1611 fi
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_compile
1616
1617 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists and can be compiled using the include files in
1620 # INCLUDES, setting the cache variable VAR accordingly.
1621 ac_fn_c_check_header_compile ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625 printf %s "checking for $2... " >&6; }
1626 if eval test \${$3+y}
1627 then :
1628 printf %s "(cached) " >&6
1629 else case e in #(
1630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1632 $4
1633 #include <$2>
1634 _ACEOF
1635 if ac_fn_c_try_compile "$LINENO"
1636 then :
1637 eval "$3=yes"
1638 else case e in #(
1639 e) eval "$3=no" ;;
1640 esac
1641 fi
1642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1643 esac
1644 fi
1645 eval ac_res=\$$3
1646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647 printf "%s\n" "$ac_res" >&6; }
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649
1650 } # ac_fn_c_check_header_compile
1651
1652 # ac_fn_c_try_link LINENO
1653 # -----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_link ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1659 if { { ac_try="$ac_link"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 printf "%s\n" "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest$ac_exeext && {
1678 test "$cross_compiling" = yes ||
1679 test -x conftest$ac_exeext
1680 }
1681 then :
1682 ac_retval=0
1683 else case e in #(
1684 e) printf "%s\n" "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1 ;;
1688 esac
1689 fi
1690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692 # interfere with the next link command; also delete a directory that is
1693 # left behind by Apple's compiler. We do this before executing the actions.
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1697
1698 } # ac_fn_c_try_link
1699
1700 # ac_fn_c_check_func LINENO FUNC VAR
1701 # ----------------------------------
1702 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1703 ac_fn_c_check_func ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 printf %s "checking for $2... " >&6; }
1708 if eval test \${$3+y}
1709 then :
1710 printf %s "(cached) " >&6
1711 else case e in #(
1712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1716 #define $2 innocuous_$2
1717
1718 /* System header to define __stub macros and hopefully few prototypes,
1719 which can conflict with char $2 (void); below. */
1720
1721 #include <limits.h>
1722 #undef $2
1723
1724 /* Override any GCC internal prototype to avoid an error.
1725 Use char because int might match the return type of a GCC
1726 builtin and then its argument prototype would still apply. */
1727 #ifdef __cplusplus
1728 extern "C"
1729 #endif
1730 char $2 (void);
1731 /* The GNU C library defines this for functions which it implements
1732 to always fail with ENOSYS. Some functions are actually named
1733 something starting with __ and the normal name is an alias. */
1734 #if defined __stub_$2 || defined __stub___$2
1735 choke me
1736 #endif
1737
1738 int
1739 main (void)
1740 {
1741 return $2 ();
1742 ;
1743 return 0;
1744 }
1745 _ACEOF
1746 if ac_fn_c_try_link "$LINENO"
1747 then :
1748 eval "$3=yes"
1749 else case e in #(
1750 e) eval "$3=no" ;;
1751 esac
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1754 conftest$ac_exeext conftest.$ac_ext ;;
1755 esac
1756 fi
1757 eval ac_res=\$$3
1758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 printf "%s\n" "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_func
1763
1764 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1765 # -------------------------------------------
1766 # Tests whether TYPE exists after having included INCLUDES, setting cache
1767 # variable VAR accordingly.
1768 ac_fn_c_check_type ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 printf %s "checking for $2... " >&6; }
1773 if eval test \${$3+y}
1774 then :
1775 printf %s "(cached) " >&6
1776 else case e in #(
1777 e) eval "$3=no"
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 $4
1781 int
1782 main (void)
1783 {
1784 if (sizeof ($2))
1785 return 0;
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"
1791 then :
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 $4
1795 int
1796 main (void)
1797 {
1798 if (sizeof (($2)))
1799 return 0;
1800 ;
1801 return 0;
1802 }
1803 _ACEOF
1804 if ac_fn_c_try_compile "$LINENO"
1805 then :
1806
1807 else case e in #(
1808 e) eval "$3=yes" ;;
1809 esac
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1814 esac
1815 fi
1816 eval ac_res=\$$3
1817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 printf "%s\n" "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821 } # ac_fn_c_check_type
1822
1823 # ac_fn_c_find_intX_t LINENO BITS VAR
1824 # -----------------------------------
1825 # Finds a signed integer type with width BITS, setting cache variable VAR
1826 # accordingly.
1827 ac_fn_c_find_intX_t ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1831 printf %s "checking for int$2_t... " >&6; }
1832 if eval test \${$3+y}
1833 then :
1834 printf %s "(cached) " >&6
1835 else case e in #(
1836 e) eval "$3=no"
1837 # Order is important - never check a type that is potentially smaller
1838 # than half of the expected target width.
1839 for ac_type in int$2_t 'int' 'long int' \
1840 'long long int' 'short int' 'signed char'; do
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 $ac_includes_default
1844 enum { N = $2 / 2 - 1 };
1845 int
1846 main (void)
1847 {
1848 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1849 test_array [0] = 0;
1850 return test_array [0];
1851
1852 ;
1853 return 0;
1854 }
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"
1857 then :
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 $ac_includes_default
1861 enum { N = $2 / 2 - 1 };
1862 int
1863 main (void)
1864 {
1865 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1866 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1867 test_array [0] = 0;
1868 return test_array [0];
1869
1870 ;
1871 return 0;
1872 }
1873 _ACEOF
1874 if ac_fn_c_try_compile "$LINENO"
1875 then :
1876
1877 else case e in #(
1878 e) case $ac_type in #(
1879 int$2_t) :
1880 eval "$3=yes" ;; #(
1881 *) :
1882 eval "$3=\$ac_type" ;;
1883 esac ;;
1884 esac
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1889 if eval test \"x\$"$3"\" = x"no"
1890 then :
1891
1892 else case e in #(
1893 e) break ;;
1894 esac
1895 fi
1896 done ;;
1897 esac
1898 fi
1899 eval ac_res=\$$3
1900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 printf "%s\n" "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903
1904 } # ac_fn_c_find_intX_t
1905
1906 # ac_fn_c_find_uintX_t LINENO BITS VAR
1907 # ------------------------------------
1908 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1909 # accordingly.
1910 ac_fn_c_find_uintX_t ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1914 printf %s "checking for uint$2_t... " >&6; }
1915 if eval test \${$3+y}
1916 then :
1917 printf %s "(cached) " >&6
1918 else case e in #(
1919 e) eval "$3=no"
1920 # Order is important - never check a type that is potentially smaller
1921 # than half of the expected target width.
1922 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1923 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 $ac_includes_default
1927 int
1928 main (void)
1929 {
1930 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1931 test_array [0] = 0;
1932 return test_array [0];
1933
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"
1939 then :
1940 case $ac_type in #(
1941 uint$2_t) :
1942 eval "$3=yes" ;; #(
1943 *) :
1944 eval "$3=\$ac_type" ;;
1945 esac
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1948 if eval test \"x\$"$3"\" = x"no"
1949 then :
1950
1951 else case e in #(
1952 e) break ;;
1953 esac
1954 fi
1955 done ;;
1956 esac
1957 fi
1958 eval ac_res=\$$3
1959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 printf "%s\n" "$ac_res" >&6; }
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962
1963 } # ac_fn_c_find_uintX_t
1964
1965 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1966 # ------------------------------------------------------------------
1967 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1968 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1969 ac_fn_check_decl ()
1970 {
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 as_decl_name=`echo $2|sed 's/ *(.*//'`
1973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1974 printf %s "checking whether $as_decl_name is declared... " >&6; }
1975 if eval test \${$3+y}
1976 then :
1977 printf %s "(cached) " >&6
1978 else case e in #(
1979 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1980 eval ac_save_FLAGS=\$$6
1981 as_fn_append $6 " $5"
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1984 $4
1985 int
1986 main (void)
1987 {
1988 #ifndef $as_decl_name
1989 #ifdef __cplusplus
1990 (void) $as_decl_use;
1991 #else
1992 (void) $as_decl_name;
1993 #endif
1994 #endif
1995
1996 ;
1997 return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"
2001 then :
2002 eval "$3=yes"
2003 else case e in #(
2004 e) eval "$3=no" ;;
2005 esac
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2008 eval $6=\$ac_save_FLAGS
2009 ;;
2010 esac
2011 fi
2012 eval ac_res=\$$3
2013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 printf "%s\n" "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016
2017 } # ac_fn_check_decl
2018
2019 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2020 # ----------------------------------------------------
2021 # Tries to find if the field MEMBER exists in type AGGR, after including
2022 # INCLUDES, setting cache variable VAR accordingly.
2023 ac_fn_c_check_member ()
2024 {
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2027 printf %s "checking for $2.$3... " >&6; }
2028 if eval test \${$4+y}
2029 then :
2030 printf %s "(cached) " >&6
2031 else case e in #(
2032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 $5
2035 int
2036 main (void)
2037 {
2038 static $2 ac_aggr;
2039 if (ac_aggr.$3)
2040 return 0;
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"
2046 then :
2047 eval "$4=yes"
2048 else case e in #(
2049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2051 $5
2052 int
2053 main (void)
2054 {
2055 static $2 ac_aggr;
2056 if (sizeof ac_aggr.$3)
2057 return 0;
2058 ;
2059 return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"
2063 then :
2064 eval "$4=yes"
2065 else case e in #(
2066 e) eval "$4=no" ;;
2067 esac
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2070 esac
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2073 esac
2074 fi
2075 eval ac_res=\$$4
2076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 printf "%s\n" "$ac_res" >&6; }
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079
2080 } # ac_fn_c_check_member
2081
2082 # ac_fn_c_try_run LINENO
2083 # ----------------------
2084 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2085 # executables *can* be run.
2086 ac_fn_c_try_run ()
2087 {
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 if { { ac_try="$ac_link"
2090 case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093 esac
2094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2095 printf "%s\n" "$ac_try_echo"; } >&5
2096 (eval "$ac_link") 2>&5
2097 ac_status=$?
2098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2100 { { case "(($ac_try" in
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2103 esac
2104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105 printf "%s\n" "$ac_try_echo"; } >&5
2106 (eval "$ac_try") 2>&5
2107 ac_status=$?
2108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109 test $ac_status = 0; }; }
2110 then :
2111 ac_retval=0
2112 else case e in #(
2113 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2114 printf "%s\n" "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.$ac_ext >&5
2116
2117 ac_retval=$ac_status ;;
2118 esac
2119 fi
2120 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122 as_fn_set_status $ac_retval
2123
2124 } # ac_fn_c_try_run
2125
2126 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2127 # --------------------------------------------
2128 # Tries to find the compile-time value of EXPR in a program that includes
2129 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2130 # computed
2131 ac_fn_c_compute_int ()
2132 {
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 if test "$cross_compiling" = yes; then
2135 # Depending upon the size, compute the lo and hi bounds.
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2138 $4
2139 int
2140 main (void)
2141 {
2142 static int test_array [1 - 2 * !(($2) >= 0)];
2143 test_array [0] = 0;
2144 return test_array [0];
2145
2146 ;
2147 return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"
2151 then :
2152 ac_lo=0 ac_mid=0
2153 while :; do
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2156 $4
2157 int
2158 main (void)
2159 {
2160 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2161 test_array [0] = 0;
2162 return test_array [0];
2163
2164 ;
2165 return 0;
2166 }
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"
2169 then :
2170 ac_hi=$ac_mid; break
2171 else case e in #(
2172 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2173 if test $ac_lo -le $ac_mid; then
2174 ac_lo= ac_hi=
2175 break
2176 fi
2177 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2178 esac
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2181 done
2182 else case e in #(
2183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2185 $4
2186 int
2187 main (void)
2188 {
2189 static int test_array [1 - 2 * !(($2) < 0)];
2190 test_array [0] = 0;
2191 return test_array [0];
2192
2193 ;
2194 return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"
2198 then :
2199 ac_hi=-1 ac_mid=-1
2200 while :; do
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2203 $4
2204 int
2205 main (void)
2206 {
2207 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2208 test_array [0] = 0;
2209 return test_array [0];
2210
2211 ;
2212 return 0;
2213 }
2214 _ACEOF
2215 if ac_fn_c_try_compile "$LINENO"
2216 then :
2217 ac_lo=$ac_mid; break
2218 else case e in #(
2219 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2220 if test $ac_mid -le $ac_hi; then
2221 ac_lo= ac_hi=
2222 break
2223 fi
2224 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2225 esac
2226 fi
2227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2228 done
2229 else case e in #(
2230 e) ac_lo= ac_hi= ;;
2231 esac
2232 fi
2233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2234 esac
2235 fi
2236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2237 # Binary search between lo and hi bounds.
2238 while test "x$ac_lo" != "x$ac_hi"; do
2239 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2242 $4
2243 int
2244 main (void)
2245 {
2246 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2247 test_array [0] = 0;
2248 return test_array [0];
2249
2250 ;
2251 return 0;
2252 }
2253 _ACEOF
2254 if ac_fn_c_try_compile "$LINENO"
2255 then :
2256 ac_hi=$ac_mid
2257 else case e in #(
2258 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2259 esac
2260 fi
2261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2262 done
2263 case $ac_lo in #((
2264 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2265 '') ac_retval=1 ;;
2266 esac
2267 else
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2270 $4
2271 static long int longval (void) { return $2; }
2272 static unsigned long int ulongval (void) { return $2; }
2273 #include <stdio.h>
2274 #include <stdlib.h>
2275 int
2276 main (void)
2277 {
2278
2279 FILE *f = fopen ("conftest.val", "w");
2280 if (! f)
2281 return 1;
2282 if (($2) < 0)
2283 {
2284 long int i = longval ();
2285 if (i != ($2))
2286 return 1;
2287 fprintf (f, "%ld", i);
2288 }
2289 else
2290 {
2291 unsigned long int i = ulongval ();
2292 if (i != ($2))
2293 return 1;
2294 fprintf (f, "%lu", i);
2295 }
2296 /* Do not output a trailing newline, as this causes \r\n confusion
2297 on some platforms. */
2298 return ferror (f) || fclose (f) != 0;
2299
2300 ;
2301 return 0;
2302 }
2303 _ACEOF
2304 if ac_fn_c_try_run "$LINENO"
2305 then :
2306 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2307 else case e in #(
2308 e) ac_retval=1 ;;
2309 esac
2310 fi
2311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2312 conftest.$ac_objext conftest.beam conftest.$ac_ext
2313 rm -f conftest.val
2314
2315 fi
2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 as_fn_set_status $ac_retval
2318
2319 } # ac_fn_c_compute_int
2320 ac_configure_args_raw=
2321 for ac_arg
2322 do
2323 case $ac_arg in
2324 *\'*)
2325 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2326 esac
2327 as_fn_append ac_configure_args_raw " '$ac_arg'"
2328 done
2329
2330 case $ac_configure_args_raw in
2331 *$as_nl*)
2332 ac_safe_unquote= ;;
2333 *)
2334 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2335 ac_unsafe_a="$ac_unsafe_z#~"
2336 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2337 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2338 esac
2339
2340 cat >config.log <<_ACEOF
2341 This file contains any messages produced by compilers while
2342 running configure, to aid debugging if configure makes a mistake.
2343
2344 It was created by Gregorio (TeX Live) $as_me 6.1.0, which was
2345 generated by GNU Autoconf 2.72. Invocation command line was
2346
2347 $ $0$ac_configure_args_raw
2348
2349 _ACEOF
2350 exec 5>>config.log
2351 {
2352 cat <<_ASUNAME
2353 ## --------- ##
2354 ## Platform. ##
2355 ## --------- ##
2356
2357 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2358 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2359 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2360 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2361 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2362
2363 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2364 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2365
2366 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2367 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2368 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2369 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2370 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2371 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2372 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2373
2374 _ASUNAME
2375
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH
2378 do
2379 IFS=$as_save_IFS
2380 case $as_dir in #(((
2381 '') as_dir=./ ;;
2382 */) ;;
2383 *) as_dir=$as_dir/ ;;
2384 esac
2385 printf "%s\n" "PATH: $as_dir"
2386 done
2387 IFS=$as_save_IFS
2388
2389 } >&5
2390
2391 cat >&5 <<_ACEOF
2392
2393
2394 ## ----------- ##
2395 ## Core tests. ##
2396 ## ----------- ##
2397
2398 _ACEOF
2399
2400
2401 # Keep a trace of the command line.
2402 # Strip out --no-create and --no-recursion so they do not pile up.
2403 # Strip out --silent because we don't want to record it for future runs.
2404 # Also quote any args containing shell meta-characters.
2405 # Make two passes to allow for proper duplicate-argument suppression.
2406 ac_configure_args=
2407 ac_configure_args0=
2408 ac_configure_args1=
2409 ac_must_keep_next=false
2410 for ac_pass in 1 2
2411 do
2412 for ac_arg
2413 do
2414 case $ac_arg in
2415 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2417 | -silent | --silent | --silen | --sile | --sil)
2418 continue ;;
2419 *\'*)
2420 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2421 esac
2422 case $ac_pass in
2423 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2424 2)
2425 as_fn_append ac_configure_args1 " '$ac_arg'"
2426 if test $ac_must_keep_next = true; then
2427 ac_must_keep_next=false # Got value, back to normal.
2428 else
2429 case $ac_arg in
2430 *=* | --config-cache | -C | -disable-* | --disable-* \
2431 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2432 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2433 | -with-* | --with-* | -without-* | --without-* | --x)
2434 case "$ac_configure_args0 " in
2435 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2436 esac
2437 ;;
2438 -* ) ac_must_keep_next=true ;;
2439 esac
2440 fi
2441 as_fn_append ac_configure_args " '$ac_arg'"
2442 ;;
2443 esac
2444 done
2445 done
2446 { ac_configure_args0=; unset ac_configure_args0;}
2447 { ac_configure_args1=; unset ac_configure_args1;}
2448
2449 # When interrupted or exit'd, cleanup temporary files, and complete
2450 # config.log. We remove comments because anyway the quotes in there
2451 # would cause problems or look ugly.
2452 # WARNING: Use '\'' to represent an apostrophe within the trap.
2453 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2454 trap 'exit_status=$?
2455 # Sanitize IFS.
2456 IFS=" "" $as_nl"
2457 # Save into config.log some information that might help in debugging.
2458 {
2459 echo
2460
2461 printf "%s\n" "## ---------------- ##
2462 ## Cache variables. ##
2463 ## ---------------- ##"
2464 echo
2465 # The following way of writing the cache mishandles newlines in values,
2466 (
2467 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2468 eval ac_val=\$$ac_var
2469 case $ac_val in #(
2470 *${as_nl}*)
2471 case $ac_var in #(
2472 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2473 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2474 esac
2475 case $ac_var in #(
2476 _ | IFS | as_nl) ;; #(
2477 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2478 *) { eval $ac_var=; unset $ac_var;} ;;
2479 esac ;;
2480 esac
2481 done
2482 (set) 2>&1 |
2483 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2484 *${as_nl}ac_space=\ *)
2485 sed -n \
2486 "s/'\''/'\''\\\\'\'''\''/g;
2487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2488 ;; #(
2489 *)
2490 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2491 ;;
2492 esac |
2493 sort
2494 )
2495 echo
2496
2497 printf "%s\n" "## ----------------- ##
2498 ## Output variables. ##
2499 ## ----------------- ##"
2500 echo
2501 for ac_var in $ac_subst_vars
2502 do
2503 eval ac_val=\$$ac_var
2504 case $ac_val in
2505 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2506 esac
2507 printf "%s\n" "$ac_var='\''$ac_val'\''"
2508 done | sort
2509 echo
2510
2511 if test -n "$ac_subst_files"; then
2512 printf "%s\n" "## ------------------- ##
2513 ## File substitutions. ##
2514 ## ------------------- ##"
2515 echo
2516 for ac_var in $ac_subst_files
2517 do
2518 eval ac_val=\$$ac_var
2519 case $ac_val in
2520 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2521 esac
2522 printf "%s\n" "$ac_var='\''$ac_val'\''"
2523 done | sort
2524 echo
2525 fi
2526
2527 if test -s confdefs.h; then
2528 printf "%s\n" "## ----------- ##
2529 ## confdefs.h. ##
2530 ## ----------- ##"
2531 echo
2532 cat confdefs.h
2533 echo
2534 fi
2535 test "$ac_signal" != 0 &&
2536 printf "%s\n" "$as_me: caught signal $ac_signal"
2537 printf "%s\n" "$as_me: exit $exit_status"
2538 } >&5
2539 rm -f core *.core core.conftest.* &&
2540 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2541 exit $exit_status
2542 ' 0
2543 for ac_signal in 1 2 13 15; do
2544 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2545 done
2546 ac_signal=0
2547
2548 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2549 rm -f -r conftest* confdefs.h
2550
2551 printf "%s\n" "/* confdefs.h */" > confdefs.h
2552
2553 # Predefined preprocessor variables.
2554
2555 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2556
2557 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2558
2559 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2560
2561 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2562
2563 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2564
2565 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2566
2567
2568 # Let the site file select an alternate cache file if it wants to.
2569 # Prefer an explicitly selected file to automatically selected ones.
2570 if test -n "$CONFIG_SITE"; then
2571 ac_site_files="$CONFIG_SITE"
2572 elif test "x$prefix" != xNONE; then
2573 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2574 else
2575 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2576 fi
2577
2578 for ac_site_file in $ac_site_files
2579 do
2580 case $ac_site_file in #(
2581 */*) :
2582 ;; #(
2583 *) :
2584 ac_site_file=./$ac_site_file ;;
2585 esac
2586 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2588 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2589 sed 's/^/| /' "$ac_site_file" >&5
2590 . "$ac_site_file" \
2591 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2592 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2593 as_fn_error $? "failed to load site script $ac_site_file
2594 See 'config.log' for more details" "$LINENO" 5; }
2595 fi
2596 done
2597
2598 if test -r "$cache_file"; then
2599 # Some versions of bash will fail to source /dev/null (special files
2600 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2601 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2603 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2604 case $cache_file in
2605 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2606 *) . "./$cache_file";;
2607 esac
2608 fi
2609 else
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2611 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2612 >$cache_file
2613 fi
2614
2615 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2616 # Test code for whether the C compiler supports C89 (global declarations)
2617 ac_c_conftest_c89_globals='
2618 /* Does the compiler advertise C89 conformance?
2619 Do not test the value of __STDC__, because some compilers set it to 0
2620 while being otherwise adequately conformant. */
2621 #if !defined __STDC__
2622 # error "Compiler does not advertise C89 conformance"
2623 #endif
2624
2625 #include <stddef.h>
2626 #include <stdarg.h>
2627 struct stat;
2628 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2629 struct buf { int x; };
2630 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2631 static char *e (char **p, int i)
2632 {
2633 return p[i];
2634 }
2635 static char *f (char * (*g) (char **, int), char **p, ...)
2636 {
2637 char *s;
2638 va_list v;
2639 va_start (v,p);
2640 s = g (p, va_arg (v,int));
2641 va_end (v);
2642 return s;
2643 }
2644
2645 /* C89 style stringification. */
2646 #define noexpand_stringify(a) #a
2647 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2648
2649 /* C89 style token pasting. Exercises some of the corner cases that
2650 e.g. old MSVC gets wrong, but not very hard. */
2651 #define noexpand_concat(a,b) a##b
2652 #define expand_concat(a,b) noexpand_concat(a,b)
2653 extern int vA;
2654 extern int vbee;
2655 #define aye A
2656 #define bee B
2657 int *pvA = &expand_concat(v,aye);
2658 int *pvbee = &noexpand_concat(v,bee);
2659
2660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2661 function prototypes and stuff, but not \xHH hex character constants.
2662 These do not provoke an error unfortunately, instead are silently treated
2663 as an "x". The following induces an error, until -std is added to get
2664 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2665 array size at least. It is necessary to write \x00 == 0 to get something
2666 that is true only with -std. */
2667 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2668
2669 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2670 inside strings and character constants. */
2671 #define FOO(x) '\''x'\''
2672 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2673
2674 int test (int i, double x);
2675 struct s1 {int (*f) (int a);};
2676 struct s2 {int (*f) (double a);};
2677 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2678 int, int);'
2679
2680 # Test code for whether the C compiler supports C89 (body of main).
2681 ac_c_conftest_c89_main='
2682 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2683 '
2684
2685 # Test code for whether the C compiler supports C99 (global declarations)
2686 ac_c_conftest_c99_globals='
2687 /* Does the compiler advertise C99 conformance? */
2688 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2689 # error "Compiler does not advertise C99 conformance"
2690 #endif
2691
2692 // See if C++-style comments work.
2693
2694 #include <stdbool.h>
2695 extern int puts (const char *);
2696 extern int printf (const char *, ...);
2697 extern int dprintf (int, const char *, ...);
2698 extern void *malloc (size_t);
2699 extern void free (void *);
2700
2701 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2702 // dprintf is used instead of fprintf to avoid needing to declare
2703 // FILE and stderr.
2704 #define debug(...) dprintf (2, __VA_ARGS__)
2705 #define showlist(...) puts (#__VA_ARGS__)
2706 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2707 static void
2708 test_varargs_macros (void)
2709 {
2710 int x = 1234;
2711 int y = 5678;
2712 debug ("Flag");
2713 debug ("X = %d\n", x);
2714 showlist (The first, second, and third items.);
2715 report (x>y, "x is %d but y is %d", x, y);
2716 }
2717
2718 // Check long long types.
2719 #define BIG64 18446744073709551615ull
2720 #define BIG32 4294967295ul
2721 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2722 #if !BIG_OK
2723 #error "your preprocessor is broken"
2724 #endif
2725 #if BIG_OK
2726 #else
2727 #error "your preprocessor is broken"
2728 #endif
2729 static long long int bignum = -9223372036854775807LL;
2730 static unsigned long long int ubignum = BIG64;
2731
2732 struct incomplete_array
2733 {
2734 int datasize;
2735 double data[];
2736 };
2737
2738 struct named_init {
2739 int number;
2740 const wchar_t *name;
2741 double average;
2742 };
2743
2744 typedef const char *ccp;
2745
2746 static inline int
2747 test_restrict (ccp restrict text)
2748 {
2749 // Iterate through items via the restricted pointer.
2750 // Also check for declarations in for loops.
2751 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2752 continue;
2753 return 0;
2754 }
2755
2756 // Check varargs and va_copy.
2757 static bool
2758 test_varargs (const char *format, ...)
2759 {
2760 va_list args;
2761 va_start (args, format);
2762 va_list args_copy;
2763 va_copy (args_copy, args);
2764
2765 const char *str = "";
2766 int number = 0;
2767 float fnumber = 0;
2768
2769 while (*format)
2770 {
2771 switch (*format++)
2772 {
2773 case '\''s'\'': // string
2774 str = va_arg (args_copy, const char *);
2775 break;
2776 case '\''d'\'': // int
2777 number = va_arg (args_copy, int);
2778 break;
2779 case '\''f'\'': // float
2780 fnumber = va_arg (args_copy, double);
2781 break;
2782 default:
2783 break;
2784 }
2785 }
2786 va_end (args_copy);
2787 va_end (args);
2788
2789 return *str && number && fnumber;
2790 }
2791 '
2792
2793 # Test code for whether the C compiler supports C99 (body of main).
2794 ac_c_conftest_c99_main='
2795 // Check bool.
2796 _Bool success = false;
2797 success |= (argc != 0);
2798
2799 // Check restrict.
2800 if (test_restrict ("String literal") == 0)
2801 success = true;
2802 char *restrict newvar = "Another string";
2803
2804 // Check varargs.
2805 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2806 test_varargs_macros ();
2807
2808 // Check flexible array members.
2809 struct incomplete_array *ia =
2810 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2811 ia->datasize = 10;
2812 for (int i = 0; i < ia->datasize; ++i)
2813 ia->data[i] = i * 1.234;
2814 // Work around memory leak warnings.
2815 free (ia);
2816
2817 // Check named initializers.
2818 struct named_init ni = {
2819 .number = 34,
2820 .name = L"Test wide string",
2821 .average = 543.34343,
2822 };
2823
2824 ni.number = 58;
2825
2826 int dynamic_array[ni.number];
2827 dynamic_array[0] = argv[0][0];
2828 dynamic_array[ni.number - 1] = 543;
2829
2830 // work around unused variable warnings
2831 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2832 || dynamic_array[ni.number - 1] != 543);
2833 '
2834
2835 # Test code for whether the C compiler supports C11 (global declarations)
2836 ac_c_conftest_c11_globals='
2837 /* Does the compiler advertise C11 conformance? */
2838 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2839 # error "Compiler does not advertise C11 conformance"
2840 #endif
2841
2842 // Check _Alignas.
2843 char _Alignas (double) aligned_as_double;
2844 char _Alignas (0) no_special_alignment;
2845 extern char aligned_as_int;
2846 char _Alignas (0) _Alignas (int) aligned_as_int;
2847
2848 // Check _Alignof.
2849 enum
2850 {
2851 int_alignment = _Alignof (int),
2852 int_array_alignment = _Alignof (int[100]),
2853 char_alignment = _Alignof (char)
2854 };
2855 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2856
2857 // Check _Noreturn.
2858 int _Noreturn does_not_return (void) { for (;;) continue; }
2859
2860 // Check _Static_assert.
2861 struct test_static_assert
2862 {
2863 int x;
2864 _Static_assert (sizeof (int) <= sizeof (long int),
2865 "_Static_assert does not work in struct");
2866 long int y;
2867 };
2868
2869 // Check UTF-8 literals.
2870 #define u8 syntax error!
2871 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2872
2873 // Check duplicate typedefs.
2874 typedef long *long_ptr;
2875 typedef long int *long_ptr;
2876 typedef long_ptr long_ptr;
2877
2878 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2879 struct anonymous
2880 {
2881 union {
2882 struct { int i; int j; };
2883 struct { int k; long int l; } w;
2884 };
2885 int m;
2886 } v1;
2887 '
2888
2889 # Test code for whether the C compiler supports C11 (body of main).
2890 ac_c_conftest_c11_main='
2891 _Static_assert ((offsetof (struct anonymous, i)
2892 == offsetof (struct anonymous, w.k)),
2893 "Anonymous union alignment botch");
2894 v1.i = 2;
2895 v1.w.k = 5;
2896 ok |= v1.i != 5;
2897 '
2898
2899 # Test code for whether the C compiler supports C11 (complete).
2900 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2901 ${ac_c_conftest_c99_globals}
2902 ${ac_c_conftest_c11_globals}
2903
2904 int
2905 main (int argc, char **argv)
2906 {
2907 int ok = 0;
2908 ${ac_c_conftest_c89_main}
2909 ${ac_c_conftest_c99_main}
2910 ${ac_c_conftest_c11_main}
2911 return ok;
2912 }
2913 "
2914
2915 # Test code for whether the C compiler supports C99 (complete).
2916 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2917 ${ac_c_conftest_c99_globals}
2918
2919 int
2920 main (int argc, char **argv)
2921 {
2922 int ok = 0;
2923 ${ac_c_conftest_c89_main}
2924 ${ac_c_conftest_c99_main}
2925 return ok;
2926 }
2927 "
2928
2929 # Test code for whether the C compiler supports C89 (complete).
2930 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2931
2932 int
2933 main (int argc, char **argv)
2934 {
2935 int ok = 0;
2936 ${ac_c_conftest_c89_main}
2937 return ok;
2938 }
2939 "
2940
2941 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2942 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2943 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2944 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2945 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2946 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2947 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2948 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2949 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2950 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2951 as_fn_append ac_func_c_list " realpath HAVE_REALPATH"
2952
2953 # Auxiliary files required by this configure script.
2954 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2955
2956 # Locations in which to look for auxiliary files.
2957 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2958
2959 # Search for a directory containing all of the required auxiliary files,
2960 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2961 # If we don't find one directory that contains all the files we need,
2962 # we report the set of missing files from the *first* directory in
2963 # $ac_aux_dir_candidates and give up.
2964 ac_missing_aux_files=""
2965 ac_first_candidate=:
2966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 as_found=false
2969 for as_dir in $ac_aux_dir_candidates
2970 do
2971 IFS=$as_save_IFS
2972 case $as_dir in #(((
2973 '') as_dir=./ ;;
2974 */) ;;
2975 *) as_dir=$as_dir/ ;;
2976 esac
2977 as_found=:
2978
2979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2980 ac_aux_dir_found=yes
2981 ac_install_sh=
2982 for ac_aux in $ac_aux_files
2983 do
2984 # As a special case, if "install-sh" is required, that requirement
2985 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2986 # and $ac_install_sh is set appropriately for whichever one is found.
2987 if test x"$ac_aux" = x"install-sh"
2988 then
2989 if test -f "${as_dir}install-sh"; then
2990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2991 ac_install_sh="${as_dir}install-sh -c"
2992 elif test -f "${as_dir}install.sh"; then
2993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2994 ac_install_sh="${as_dir}install.sh -c"
2995 elif test -f "${as_dir}shtool"; then
2996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2997 ac_install_sh="${as_dir}shtool install -c"
2998 else
2999 ac_aux_dir_found=no
3000 if $ac_first_candidate; then
3001 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3002 else
3003 break
3004 fi
3005 fi
3006 else
3007 if test -f "${as_dir}${ac_aux}"; then
3008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3009 else
3010 ac_aux_dir_found=no
3011 if $ac_first_candidate; then
3012 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3013 else
3014 break
3015 fi
3016 fi
3017 fi
3018 done
3019 if test "$ac_aux_dir_found" = yes; then
3020 ac_aux_dir="$as_dir"
3021 break
3022 fi
3023 ac_first_candidate=false
3024
3025 as_found=false
3026 done
3027 IFS=$as_save_IFS
3028 if $as_found
3029 then :
3030
3031 else case e in #(
3032 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3033 esac
3034 fi
3035
3036
3037 # These three variables are undocumented and unsupported,
3038 # and are intended to be withdrawn in a future Autoconf release.
3039 # They can cause serious problems if a builder's source tree is in a directory
3040 # whose full name contains unusual characters.
3041 if test -f "${ac_aux_dir}config.guess"; then
3042 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3043 fi
3044 if test -f "${ac_aux_dir}config.sub"; then
3045 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3046 fi
3047 if test -f "$ac_aux_dir/configure"; then
3048 ac_configure="$SHELL ${ac_aux_dir}configure"
3049 fi
3050
3051 # Check that the precious variables saved in the cache have kept the same
3052 # value.
3053 ac_cache_corrupted=false
3054 for ac_var in $ac_precious_vars; do
3055 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3056 eval ac_new_set=\$ac_env_${ac_var}_set
3057 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3058 eval ac_new_val=\$ac_env_${ac_var}_value
3059 case $ac_old_set,$ac_new_set in
3060 set,)
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3062 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3063 ac_cache_corrupted=: ;;
3064 ,set)
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3066 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3067 ac_cache_corrupted=: ;;
3068 ,);;
3069 *)
3070 if test "x$ac_old_val" != "x$ac_new_val"; then
3071 # differences in whitespace do not lead to failure.
3072 ac_old_val_w=`echo x $ac_old_val`
3073 ac_new_val_w=`echo x $ac_new_val`
3074 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3076 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3077 ac_cache_corrupted=:
3078 else
3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3080 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3081 eval $ac_var=\$ac_old_val
3082 fi
3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3084 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3086 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3087 fi;;
3088 esac
3089 # Pass precious variables to config.status.
3090 if test "$ac_new_set" = set; then
3091 case $ac_new_val in
3092 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3093 *) ac_arg=$ac_var=$ac_new_val ;;
3094 esac
3095 case " $ac_configure_args " in
3096 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3097 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3098 esac
3099 fi
3100 done
3101 if $ac_cache_corrupted; then
3102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3103 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3105 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3106 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3107 and start over" "$LINENO" 5
3108 fi
3109 ## -------------------- ##
3110 ## Main body of script. ##
3111 ## -------------------- ##
3112
3113 ac_ext=c
3114 ac_cpp='$CPP $CPPFLAGS'
3115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118
3119
3120
3121
3122
3123
3124
3125 am__api_version='1.18'
3126
3127
3128
3129 # Find a good install program. We prefer a C program (faster),
3130 # so one script is as good as another. But avoid the broken or
3131 # incompatible versions:
3132 # SysV /etc/install, /usr/sbin/install
3133 # SunOS /usr/etc/install
3134 # IRIX /sbin/install
3135 # AIX /bin/install
3136 # AmigaOS /C/install, which installs bootblocks on floppy discs
3137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3140 # OS/2's system install, which has a completely different semantic
3141 # ./install, which can be erroneously created by make from ./install.sh.
3142 # Reject install programs that cannot install multiple files.
3143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3144 printf %s "checking for a BSD-compatible install... " >&6; }
3145 if test -z "$INSTALL"; then
3146 if test ${ac_cv_path_install+y}
3147 then :
3148 printf %s "(cached) " >&6
3149 else case e in #(
3150 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153 IFS=$as_save_IFS
3154 case $as_dir in #(((
3155 '') as_dir=./ ;;
3156 */) ;;
3157 *) as_dir=$as_dir/ ;;
3158 esac
3159 # Account for fact that we put trailing slashes in our PATH walk.
3160 case $as_dir in #((
3161 ./ | /[cC]/* | \
3162 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3163 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3164 /usr/ucb/* ) ;;
3165 *)
3166 # OSF1 and SCO ODT 3.0 have their own names for install.
3167 # Don't use installbsd from OSF since it installs stuff as root
3168 # by default.
3169 for ac_prog in ginstall scoinst install; do
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3172 if test $ac_prog = install &&
3173 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3174 # AIX install. It has an incompatible calling convention.
3175 :
3176 elif test $ac_prog = install &&
3177 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3178 # program-specific install script used by HP pwplus--don't use.
3179 :
3180 else
3181 rm -rf conftest.one conftest.two conftest.dir
3182 echo one > conftest.one
3183 echo two > conftest.two
3184 mkdir conftest.dir
3185 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3186 test -s conftest.one && test -s conftest.two &&
3187 test -s conftest.dir/conftest.one &&
3188 test -s conftest.dir/conftest.two
3189 then
3190 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3191 break 3
3192 fi
3193 fi
3194 fi
3195 done
3196 done
3197 ;;
3198 esac
3199
3200 done
3201 IFS=$as_save_IFS
3202
3203 rm -rf conftest.one conftest.two conftest.dir
3204 ;;
3205 esac
3206 fi
3207 if test ${ac_cv_path_install+y}; then
3208 INSTALL=$ac_cv_path_install
3209 else
3210 # As a last resort, use the slow shell script. Don't cache a
3211 # value for INSTALL within a source directory, because that will
3212 # break other packages using the cache if that directory is
3213 # removed, or if the value is a relative name.
3214 INSTALL=$ac_install_sh
3215 fi
3216 fi
3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3218 printf "%s\n" "$INSTALL" >&6; }
3219
3220 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3221 # It thinks the first close brace ends the variable substitution.
3222 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3223
3224 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3225
3226 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3227
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3229 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3230 if test ${am_cv_sleep_fractional_seconds+y}
3231 then :
3232 printf %s "(cached) " >&6
3233 else case e in #(
3234 e) if sleep 0.001 2>/dev/null
3235 then :
3236 am_cv_sleep_fractional_seconds=yes
3237 else case e in #(
3238 e) am_cv_sleep_fractional_seconds=no ;;
3239 esac
3240 fi
3241 ;;
3242 esac
3243 fi
3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3245 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3246
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3248 printf %s "checking filesystem timestamp resolution... " >&6; }
3249 if test ${am_cv_filesystem_timestamp_resolution+y}
3250 then :
3251 printf %s "(cached) " >&6
3252 else case e in #(
3253 e) # Default to the worst case.
3254 am_cv_filesystem_timestamp_resolution=2
3255
3256 # Only try to go finer than 1 sec if sleep can do it.
3257 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3258 # - 1 sec is not much of a win compared to 2 sec, and
3259 # - it takes 2 seconds to perform the test whether 1 sec works.
3260 #
3261 # Instead, just use the default 2s on platforms that have 1s resolution,
3262 # accept the extra 1s delay when using $sleep in the Automake tests, in
3263 # exchange for not incurring the 2s delay for running the test for all
3264 # packages.
3265 #
3266 am_try_resolutions=
3267 if test "$am_cv_sleep_fractional_seconds" = yes; then
3268 # Even a millisecond often causes a bunch of false positives,
3269 # so just try a hundredth of a second. The time saved between .001 and
3270 # .01 is not terribly consequential.
3271 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3272 fi
3273
3274 # In order to catch current-generation FAT out, we must *modify* files
3275 # that already exist; the *creation* timestamp is finer. Use names
3276 # that make ls -t sort them differently when they have equal
3277 # timestamps than when they have distinct timestamps, keeping
3278 # in mind that ls -t prints the *newest* file first.
3279 rm -f conftest.ts?
3280 : > conftest.ts1
3281 : > conftest.ts2
3282 : > conftest.ts3
3283
3284 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3285 # clobber the current shell's arguments. (Outer-level square brackets
3286 # are removed by m4; they're present so that m4 does not expand
3287 # <dollar><star>; be careful, easy to get confused.)
3288 if (
3289 set X `ls -t conftest.ts[12]` &&
3290 {
3291 test "$*" != "X conftest.ts1 conftest.ts2" ||
3292 test "$*" != "X conftest.ts2 conftest.ts1";
3293 }
3294 ); then :; else
3295 # If neither matched, then we have a broken ls. This can happen
3296 # if, for instance, CONFIG_SHELL is bash and it inherits a
3297 # broken ls alias from the environment. This has actually
3298 # happened. Such a system could not be considered "sane".
3299 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3301 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3302 as_fn_error $? "ls -t produces unexpected output.
3303 Make sure there is not a broken ls alias in your environment.
3304 See 'config.log' for more details" "$LINENO" 5; }
3305 fi
3306
3307 for am_try_res in $am_try_resolutions; do
3308 # Any one fine-grained sleep might happen to cross the boundary
3309 # between two values of a coarser actual resolution, but if we do
3310 # two fine-grained sleeps in a row, at least one of them will fall
3311 # entirely within a coarse interval.
3312 echo alpha > conftest.ts1
3313 sleep $am_try_res
3314 echo beta > conftest.ts2
3315 sleep $am_try_res
3316 echo gamma > conftest.ts3
3317
3318 # We assume that 'ls -t' will make use of high-resolution
3319 # timestamps if the operating system supports them at all.
3320 if (set X `ls -t conftest.ts?` &&
3321 test "$2" = conftest.ts3 &&
3322 test "$3" = conftest.ts2 &&
3323 test "$4" = conftest.ts1); then
3324 #
3325 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3326 # because we don't need to test make.
3327 make_ok=true
3328 if test $am_try_res != 1; then
3329 # But if we've succeeded so far with a subsecond resolution, we
3330 # have one more thing to check: make. It can happen that
3331 # everything else supports the subsecond mtimes, but make doesn't;
3332 # notably on macOS, which ships make 3.81 from 2006 (the last one
3333 # released under GPLv2). https://bugs.gnu.org/68808
3334 #
3335 # We test $MAKE if it is defined in the environment, else "make".
3336 # It might get overridden later, but our hope is that in practice
3337 # it does not matter: it is the system "make" which is (by far)
3338 # the most likely to be broken, whereas if the user overrides it,
3339 # probably they did so with a better, or at least not worse, make.
3340 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3341 #
3342 # Create a Makefile (real tab character here):
3343 rm -f conftest.mk
3344 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3345 echo ' touch conftest.ts2' >>conftest.mk
3346 #
3347 # Now, running
3348 # touch conftest.ts1; touch conftest.ts2; make
3349 # should touch ts1 because ts2 is newer. This could happen by luck,
3350 # but most often, it will fail if make's support is insufficient. So
3351 # test for several consecutive successes.
3352 #
3353 # (We reuse conftest.ts[12] because we still want to modify existing
3354 # files, not create new ones, per above.)
3355 n=0
3356 make=${MAKE-make}
3357 until test $n -eq 3; do
3358 echo one > conftest.ts1
3359 sleep $am_try_res
3360 echo two > conftest.ts2 # ts2 should now be newer than ts1
3361 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3362 make_ok=false
3363 break # out of $n loop
3364 fi
3365 n=`expr $n + 1`
3366 done
3367 fi
3368 #
3369 if $make_ok; then
3370 # Everything we know to check worked out, so call this resolution good.
3371 am_cv_filesystem_timestamp_resolution=$am_try_res
3372 break # out of $am_try_res loop
3373 fi
3374 # Otherwise, we'll go on to check the next resolution.
3375 fi
3376 done
3377 rm -f conftest.ts?
3378 # (end _am_filesystem_timestamp_resolution)
3379 ;;
3380 esac
3381 fi
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3383 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3384
3385 # This check should not be cached, as it may vary across builds of
3386 # different projects.
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3388 printf %s "checking whether build environment is sane... " >&6; }
3389 # Reject unsafe characters in $srcdir or the absolute working directory
3390 # name. Accept space and tab only in the latter.
3391 am_lf='
3392 '
3393 case `pwd` in
3394 *[\\\"\#\$\&\'\`$am_lf]*)
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 printf "%s\n" "no" >&6; }
3397 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3398 esac
3399 case $srcdir in
3400 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 printf "%s\n" "no" >&6; }
3403 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3404 esac
3405
3406 # Do 'set' in a subshell so we don't clobber the current shell's
3407 # arguments. Must try -L first in case configure is actually a
3408 # symlink; some systems play weird games with the mod time of symlinks
3409 # (eg FreeBSD returns the mod time of the symlink's containing
3410 # directory).
3411 am_build_env_is_sane=no
3412 am_has_slept=no
3413 rm -f conftest.file
3414 for am_try in 1 2; do
3415 echo "timestamp, slept: $am_has_slept" > conftest.file
3416 if (
3417 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3418 if test "$*" = "X"; then
3419 # -L didn't work.
3420 set X `ls -t "$srcdir/configure" conftest.file`
3421 fi
3422 test "$2" = conftest.file
3423 ); then
3424 am_build_env_is_sane=yes
3425 break
3426 fi
3427 # Just in case.
3428 sleep "$am_cv_filesystem_timestamp_resolution"
3429 am_has_slept=yes
3430 done
3431
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3433 printf "%s\n" "$am_build_env_is_sane" >&6; }
3434 if test "$am_build_env_is_sane" = no; then
3435 as_fn_error $? "newly created file is older than distributed files!
3436 Check your system clock" "$LINENO" 5
3437 fi
3438
3439 # If we didn't sleep, we still need to ensure time stamps of config.status and
3440 # generated files are strictly newer.
3441 am_sleep_pid=
3442 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3443 then :
3444
3445 else case e in #(
3446 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3447 am_sleep_pid=$!
3448 ;;
3449 esac
3450 fi
3451
3452 rm -f conftest.file
3453
3454 test "$program_prefix" != NONE &&
3455 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3456 # Use a double $ so make ignores it.
3457 test "$program_suffix" != NONE &&
3458 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3459 # Double any \ or $.
3460 # By default was 's,x,x', remove it if useless.
3461 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3462 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3463
3464
3465 # Expand $ac_aux_dir to an absolute path.
3466 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3467
3468
3469 if test x"${MISSING+set}" != xset; then
3470 MISSING="\${SHELL} '$am_aux_dir/missing'"
3471 fi
3472 # Use eval to expand $SHELL
3473 if eval "$MISSING --is-lightweight"; then
3474 am_missing_run="$MISSING "
3475 else
3476 am_missing_run=
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3478 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3479 fi
3480
3481 if test x"${install_sh+set}" != xset; then
3482 case $am_aux_dir in
3483 *\ * | *\ *)
3484 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3485 *)
3486 install_sh="\${SHELL} $am_aux_dir/install-sh"
3487 esac
3488 fi
3489
3490 # Installed binaries are usually stripped using 'strip' when the user
3491 # run "make install-strip". However 'strip' might not be the right
3492 # tool to use in cross-compilation environments, therefore Automake
3493 # will honor the 'STRIP' environment variable to overrule this program.
3494 if test "$cross_compiling" != no; then
3495 if test -n "$ac_tool_prefix"; then
3496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3497 set dummy ${ac_tool_prefix}strip; ac_word=$2
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 printf %s "checking for $ac_word... " >&6; }
3500 if test ${ac_cv_prog_STRIP+y}
3501 then :
3502 printf %s "(cached) " >&6
3503 else case e in #(
3504 e) if test -n "$STRIP"; then
3505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3506 else
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3509 do
3510 IFS=$as_save_IFS
3511 case $as_dir in #(((
3512 '') as_dir=./ ;;
3513 */) ;;
3514 *) as_dir=$as_dir/ ;;
3515 esac
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3520 break 2
3521 fi
3522 done
3523 done
3524 IFS=$as_save_IFS
3525
3526 fi ;;
3527 esac
3528 fi
3529 STRIP=$ac_cv_prog_STRIP
3530 if test -n "$STRIP"; then
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3532 printf "%s\n" "$STRIP" >&6; }
3533 else
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 printf "%s\n" "no" >&6; }
3536 fi
3537
3538
3539 fi
3540 if test -z "$ac_cv_prog_STRIP"; then
3541 ac_ct_STRIP=$STRIP
3542 # Extract the first word of "strip", so it can be a program name with args.
3543 set dummy strip; ac_word=$2
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 printf %s "checking for $ac_word... " >&6; }
3546 if test ${ac_cv_prog_ac_ct_STRIP+y}
3547 then :
3548 printf %s "(cached) " >&6
3549 else case e in #(
3550 e) if test -n "$ac_ct_STRIP"; then
3551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 case $as_dir in #(((
3558 '') as_dir=./ ;;
3559 */) ;;
3560 *) as_dir=$as_dir/ ;;
3561 esac
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_ac_ct_STRIP="strip"
3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568 done
3569 done
3570 IFS=$as_save_IFS
3571
3572 fi ;;
3573 esac
3574 fi
3575 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3576 if test -n "$ac_ct_STRIP"; then
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3578 printf "%s\n" "$ac_ct_STRIP" >&6; }
3579 else
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 printf "%s\n" "no" >&6; }
3582 fi
3583
3584 if test "x$ac_ct_STRIP" = x; then
3585 STRIP=":"
3586 else
3587 case $cross_compiling:$ac_tool_warned in
3588 yes:)
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned=yes ;;
3592 esac
3593 STRIP=$ac_ct_STRIP
3594 fi
3595 else
3596 STRIP="$ac_cv_prog_STRIP"
3597 fi
3598
3599 fi
3600 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3601
3602
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3604 printf %s "checking for a race-free mkdir -p... " >&6; }
3605 if test -z "$MKDIR_P"; then
3606 if test ${ac_cv_path_mkdir+y}
3607 then :
3608 printf %s "(cached) " >&6
3609 else case e in #(
3610 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3612 do
3613 IFS=$as_save_IFS
3614 case $as_dir in #(((
3615 '') as_dir=./ ;;
3616 */) ;;
3617 *) as_dir=$as_dir/ ;;
3618 esac
3619 for ac_prog in mkdir gmkdir; do
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3622 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3623 'mkdir ('*'coreutils) '* | \
3624 *'BusyBox '* | \
3625 'mkdir (fileutils) '4.1*)
3626 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3627 break 3;;
3628 esac
3629 done
3630 done
3631 done
3632 IFS=$as_save_IFS
3633 ;;
3634 esac
3635 fi
3636
3637 test -d ./--version && rmdir ./--version
3638 if test ${ac_cv_path_mkdir+y}; then
3639 MKDIR_P="$ac_cv_path_mkdir -p"
3640 else
3641 # As a last resort, use plain mkdir -p,
3642 # in the hope it doesn't have the bugs of ancient mkdir.
3643 MKDIR_P='mkdir -p'
3644 fi
3645 fi
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3647 printf "%s\n" "$MKDIR_P" >&6; }
3648
3649 for ac_prog in gawk mawk nawk awk
3650 do
3651 # Extract the first word of "$ac_prog", so it can be a program name with args.
3652 set dummy $ac_prog; ac_word=$2
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 printf %s "checking for $ac_word... " >&6; }
3655 if test ${ac_cv_prog_AWK+y}
3656 then :
3657 printf %s "(cached) " >&6
3658 else case e in #(
3659 e) if test -n "$AWK"; then
3660 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665 IFS=$as_save_IFS
3666 case $as_dir in #(((
3667 '') as_dir=./ ;;
3668 */) ;;
3669 *) as_dir=$as_dir/ ;;
3670 esac
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3673 ac_cv_prog_AWK="$ac_prog"
3674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677 done
3678 done
3679 IFS=$as_save_IFS
3680
3681 fi ;;
3682 esac
3683 fi
3684 AWK=$ac_cv_prog_AWK
3685 if test -n "$AWK"; then
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3687 printf "%s\n" "$AWK" >&6; }
3688 else
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 printf "%s\n" "no" >&6; }
3691 fi
3692
3693
3694 test -n "$AWK" && break
3695 done
3696
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3698 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3699 set x ${MAKE-make}
3700 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3701 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3702 then :
3703 printf %s "(cached) " >&6
3704 else case e in #(
3705 e) cat >conftest.make <<\_ACEOF
3706 SHELL = /bin/sh
3707 all:
3708 @echo '@@@%%%=$(MAKE)=@@@%%%'
3709 _ACEOF
3710 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3711 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3712 *@@@%%%=?*=@@@%%%*)
3713 eval ac_cv_prog_make_${ac_make}_set=yes;;
3714 *)
3715 eval ac_cv_prog_make_${ac_make}_set=no;;
3716 esac
3717 rm -f conftest.make ;;
3718 esac
3719 fi
3720 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 printf "%s\n" "yes" >&6; }
3723 SET_MAKE=
3724 else
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 printf "%s\n" "no" >&6; }
3727 SET_MAKE="MAKE=${MAKE-make}"
3728 fi
3729
3730 rm -rf .tst 2>/dev/null
3731 mkdir .tst 2>/dev/null
3732 if test -d .tst; then
3733 am__leading_dot=.
3734 else
3735 am__leading_dot=_
3736 fi
3737 rmdir .tst 2>/dev/null
3738
3739 AM_DEFAULT_VERBOSITY=1
3740 # Check whether --enable-silent-rules was given.
3741 if test ${enable_silent_rules+y}
3742 then :
3743 enableval=$enable_silent_rules;
3744 fi
3745
3746 am_make=${MAKE-make}
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3748 printf %s "checking whether $am_make supports nested variables... " >&6; }
3749 if test ${am_cv_make_support_nested_variables+y}
3750 then :
3751 printf %s "(cached) " >&6
3752 else case e in #(
3753 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3754 BAR0=false
3755 BAR1=true
3756 V=1
3757 am__doit:
3758 @$(TRUE)
3759 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3760 am_cv_make_support_nested_variables=yes
3761 else
3762 am_cv_make_support_nested_variables=no
3763 fi ;;
3764 esac
3765 fi
3766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3767 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3768 AM_BACKSLASH='\'
3769
3770 am__rm_f_notfound=
3771 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3772 then :
3773
3774 else case e in #(
3775 e) am__rm_f_notfound='""' ;;
3776 esac
3777 fi
3778
3779
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3781 printf %s "checking xargs -n works... " >&6; }
3782 if test ${am_cv_xargs_n_works+y}
3783 then :
3784 printf %s "(cached) " >&6
3785 else case e in #(
3786 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3787 3"
3788 then :
3789 am_cv_xargs_n_works=yes
3790 else case e in #(
3791 e) am_cv_xargs_n_works=no ;;
3792 esac
3793 fi ;;
3794 esac
3795 fi
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3797 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3798 if test "$am_cv_xargs_n_works" = yes
3799 then :
3800 am__xargs_n='xargs -n'
3801 else case e in #(
3802 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3803 ;;
3804 esac
3805 fi
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816 DEPDIR="${am__leading_dot}deps"
3817
3818 ac_config_commands="$ac_config_commands depfiles"
3819
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3821 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3822 cat > confinc.mk << 'END'
3823 am__doit:
3824 @echo this is the am__doit target >confinc.out
3825 .PHONY: am__doit
3826 END
3827 am__include="#"
3828 am__quote=
3829 # BSD make does it like this.
3830 echo '.include "confinc.mk" # ignored' > confmf.BSD
3831 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3832 echo 'include confinc.mk # ignored' > confmf.GNU
3833 _am_result=no
3834 for s in GNU BSD; do
3835 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3836 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }
3840 case $?:`cat confinc.out 2>/dev/null` in #(
3841 '0:this is the am__doit target') :
3842 case $s in #(
3843 BSD) :
3844 am__include='.include' am__quote='"' ;; #(
3845 *) :
3846 am__include='include' am__quote='' ;;
3847 esac ;; #(
3848 *) :
3849 ;;
3850 esac
3851 if test "$am__include" != "#"; then
3852 _am_result="yes ($s style)"
3853 break
3854 fi
3855 done
3856 rm -f confinc.* confmf.*
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3858 printf "%s\n" "${_am_result}" >&6; }
3859
3860 # Check whether --enable-dependency-tracking was given.
3861 if test ${enable_dependency_tracking+y}
3862 then :
3863 enableval=$enable_dependency_tracking;
3864 fi
3865
3866 if test "x$enable_dependency_tracking" != xno; then
3867 am_depcomp="$ac_aux_dir/depcomp"
3868 AMDEPBACKSLASH='\'
3869 am__nodep='_no'
3870 fi
3871 if test "x$enable_dependency_tracking" != xno; then
3872 AMDEP_TRUE=
3873 AMDEP_FALSE='#'
3874 else
3875 AMDEP_TRUE='#'
3876 AMDEP_FALSE=
3877 fi
3878
3879
3880 ac_ext=c
3881 ac_cpp='$CPP $CPPFLAGS'
3882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885 if test -n "$ac_tool_prefix"; then
3886 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3887 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 printf %s "checking for $ac_word... " >&6; }
3890 if test ${ac_cv_prog_CC+y}
3891 then :
3892 printf %s "(cached) " >&6
3893 else case e in #(
3894 e) if test -n "$CC"; then
3895 ac_cv_prog_CC="$CC" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3899 do
3900 IFS=$as_save_IFS
3901 case $as_dir in #(((
3902 '') as_dir=./ ;;
3903 */) ;;
3904 *) as_dir=$as_dir/ ;;
3905 esac
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3910 break 2
3911 fi
3912 done
3913 done
3914 IFS=$as_save_IFS
3915
3916 fi ;;
3917 esac
3918 fi
3919 CC=$ac_cv_prog_CC
3920 if test -n "$CC"; then
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 printf "%s\n" "$CC" >&6; }
3923 else
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 printf "%s\n" "no" >&6; }
3926 fi
3927
3928
3929 fi
3930 if test -z "$ac_cv_prog_CC"; then
3931 ac_ct_CC=$CC
3932 # Extract the first word of "gcc", so it can be a program name with args.
3933 set dummy gcc; ac_word=$2
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 printf %s "checking for $ac_word... " >&6; }
3936 if test ${ac_cv_prog_ac_ct_CC+y}
3937 then :
3938 printf %s "(cached) " >&6
3939 else case e in #(
3940 e) if test -n "$ac_ct_CC"; then
3941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946 IFS=$as_save_IFS
3947 case $as_dir in #(((
3948 '') as_dir=./ ;;
3949 */) ;;
3950 *) as_dir=$as_dir/ ;;
3951 esac
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_ac_ct_CC="gcc"
3955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958 done
3959 done
3960 IFS=$as_save_IFS
3961
3962 fi ;;
3963 esac
3964 fi
3965 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3966 if test -n "$ac_ct_CC"; then
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3968 printf "%s\n" "$ac_ct_CC" >&6; }
3969 else
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 printf "%s\n" "no" >&6; }
3972 fi
3973
3974 if test "x$ac_ct_CC" = x; then
3975 CC=""
3976 else
3977 case $cross_compiling:$ac_tool_warned in
3978 yes:)
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3980 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3981 ac_tool_warned=yes ;;
3982 esac
3983 CC=$ac_ct_CC
3984 fi
3985 else
3986 CC="$ac_cv_prog_CC"
3987 fi
3988
3989 if test -z "$CC"; then
3990 if test -n "$ac_tool_prefix"; then
3991 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3992 set dummy ${ac_tool_prefix}cc; ac_word=$2
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 printf %s "checking for $ac_word... " >&6; }
3995 if test ${ac_cv_prog_CC+y}
3996 then :
3997 printf %s "(cached) " >&6
3998 else case e in #(
3999 e) if test -n "$CC"; then
4000 ac_cv_prog_CC="$CC" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005 IFS=$as_save_IFS
4006 case $as_dir in #(((
4007 '') as_dir=./ ;;
4008 */) ;;
4009 *) as_dir=$as_dir/ ;;
4010 esac
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4013 ac_cv_prog_CC="${ac_tool_prefix}cc"
4014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4015 break 2
4016 fi
4017 done
4018 done
4019 IFS=$as_save_IFS
4020
4021 fi ;;
4022 esac
4023 fi
4024 CC=$ac_cv_prog_CC
4025 if test -n "$CC"; then
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027 printf "%s\n" "$CC" >&6; }
4028 else
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 printf "%s\n" "no" >&6; }
4031 fi
4032
4033
4034 fi
4035 fi
4036 if test -z "$CC"; then
4037 # Extract the first word of "cc", so it can be a program name with args.
4038 set dummy cc; ac_word=$2
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 printf %s "checking for $ac_word... " >&6; }
4041 if test ${ac_cv_prog_CC+y}
4042 then :
4043 printf %s "(cached) " >&6
4044 else case e in #(
4045 e) if test -n "$CC"; then
4046 ac_cv_prog_CC="$CC" # Let the user override the test.
4047 else
4048 ac_prog_rejected=no
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052 IFS=$as_save_IFS
4053 case $as_dir in #(((
4054 '') as_dir=./ ;;
4055 */) ;;
4056 *) as_dir=$as_dir/ ;;
4057 esac
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4060 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4061 ac_prog_rejected=yes
4062 continue
4063 fi
4064 ac_cv_prog_CC="cc"
4065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4066 break 2
4067 fi
4068 done
4069 done
4070 IFS=$as_save_IFS
4071
4072 if test $ac_prog_rejected = yes; then
4073 # We found a bogon in the path, so make sure we never use it.
4074 set dummy $ac_cv_prog_CC
4075 shift
4076 if test $# != 0; then
4077 # We chose a different compiler from the bogus one.
4078 # However, it has the same basename, so the bogon will be chosen
4079 # first if we set CC to just the basename; use the full file name.
4080 shift
4081 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4082 fi
4083 fi
4084 fi ;;
4085 esac
4086 fi
4087 CC=$ac_cv_prog_CC
4088 if test -n "$CC"; then
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4090 printf "%s\n" "$CC" >&6; }
4091 else
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 printf "%s\n" "no" >&6; }
4094 fi
4095
4096
4097 fi
4098 if test -z "$CC"; then
4099 if test -n "$ac_tool_prefix"; then
4100 for ac_prog in cl.exe
4101 do
4102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105 printf %s "checking for $ac_word... " >&6; }
4106 if test ${ac_cv_prog_CC+y}
4107 then :
4108 printf %s "(cached) " >&6
4109 else case e in #(
4110 e) if test -n "$CC"; then
4111 ac_cv_prog_CC="$CC" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116 IFS=$as_save_IFS
4117 case $as_dir in #(((
4118 '') as_dir=./ ;;
4119 */) ;;
4120 *) as_dir=$as_dir/ ;;
4121 esac
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4124 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4126 break 2
4127 fi
4128 done
4129 done
4130 IFS=$as_save_IFS
4131
4132 fi ;;
4133 esac
4134 fi
4135 CC=$ac_cv_prog_CC
4136 if test -n "$CC"; then
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4138 printf "%s\n" "$CC" >&6; }
4139 else
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 printf "%s\n" "no" >&6; }
4142 fi
4143
4144
4145 test -n "$CC" && break
4146 done
4147 fi
4148 if test -z "$CC"; then
4149 ac_ct_CC=$CC
4150 for ac_prog in cl.exe
4151 do
4152 # Extract the first word of "$ac_prog", so it can be a program name with args.
4153 set dummy $ac_prog; ac_word=$2
4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 printf %s "checking for $ac_word... " >&6; }
4156 if test ${ac_cv_prog_ac_ct_CC+y}
4157 then :
4158 printf %s "(cached) " >&6
4159 else case e in #(
4160 e) if test -n "$ac_ct_CC"; then
4161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4162 else
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH
4165 do
4166 IFS=$as_save_IFS
4167 case $as_dir in #(((
4168 '') as_dir=./ ;;
4169 */) ;;
4170 *) as_dir=$as_dir/ ;;
4171 esac
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_ac_ct_CC="$ac_prog"
4175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4176 break 2
4177 fi
4178 done
4179 done
4180 IFS=$as_save_IFS
4181
4182 fi ;;
4183 esac
4184 fi
4185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4186 if test -n "$ac_ct_CC"; then
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4188 printf "%s\n" "$ac_ct_CC" >&6; }
4189 else
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191 printf "%s\n" "no" >&6; }
4192 fi
4193
4194
4195 test -n "$ac_ct_CC" && break
4196 done
4197
4198 if test "x$ac_ct_CC" = x; then
4199 CC=""
4200 else
4201 case $cross_compiling:$ac_tool_warned in
4202 yes:)
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205 ac_tool_warned=yes ;;
4206 esac
4207 CC=$ac_ct_CC
4208 fi
4209 fi
4210
4211 fi
4212 if test -z "$CC"; then
4213 if test -n "$ac_tool_prefix"; then
4214 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4215 set dummy ${ac_tool_prefix}clang; ac_word=$2
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 printf %s "checking for $ac_word... " >&6; }
4218 if test ${ac_cv_prog_CC+y}
4219 then :
4220 printf %s "(cached) " >&6
4221 else case e in #(
4222 e) if test -n "$CC"; then
4223 ac_cv_prog_CC="$CC" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228 IFS=$as_save_IFS
4229 case $as_dir in #(((
4230 '') as_dir=./ ;;
4231 */) ;;
4232 *) as_dir=$as_dir/ ;;
4233 esac
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4236 ac_cv_prog_CC="${ac_tool_prefix}clang"
4237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4238 break 2
4239 fi
4240 done
4241 done
4242 IFS=$as_save_IFS
4243
4244 fi ;;
4245 esac
4246 fi
4247 CC=$ac_cv_prog_CC
4248 if test -n "$CC"; then
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250 printf "%s\n" "$CC" >&6; }
4251 else
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 printf "%s\n" "no" >&6; }
4254 fi
4255
4256
4257 fi
4258 if test -z "$ac_cv_prog_CC"; then
4259 ac_ct_CC=$CC
4260 # Extract the first word of "clang", so it can be a program name with args.
4261 set dummy clang; ac_word=$2
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 printf %s "checking for $ac_word... " >&6; }
4264 if test ${ac_cv_prog_ac_ct_CC+y}
4265 then :
4266 printf %s "(cached) " >&6
4267 else case e in #(
4268 e) if test -n "$ac_ct_CC"; then
4269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274 IFS=$as_save_IFS
4275 case $as_dir in #(((
4276 '') as_dir=./ ;;
4277 */) ;;
4278 *) as_dir=$as_dir/ ;;
4279 esac
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_ac_ct_CC="clang"
4283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4284 break 2
4285 fi
4286 done
4287 done
4288 IFS=$as_save_IFS
4289
4290 fi ;;
4291 esac
4292 fi
4293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4294 if test -n "$ac_ct_CC"; then
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4296 printf "%s\n" "$ac_ct_CC" >&6; }
4297 else
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 printf "%s\n" "no" >&6; }
4300 fi
4301
4302 if test "x$ac_ct_CC" = x; then
4303 CC=""
4304 else
4305 case $cross_compiling:$ac_tool_warned in
4306 yes:)
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309 ac_tool_warned=yes ;;
4310 esac
4311 CC=$ac_ct_CC
4312 fi
4313 else
4314 CC="$ac_cv_prog_CC"
4315 fi
4316
4317 fi
4318
4319
4320 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4321 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4322 as_fn_error $? "no acceptable C compiler found in \$PATH
4323 See 'config.log' for more details" "$LINENO" 5; }
4324
4325 # Provide some information about the compiler.
4326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4327 set X $ac_compile
4328 ac_compiler=$2
4329 for ac_option in --version -v -V -qversion -version; do
4330 { { ac_try="$ac_compiler $ac_option >&5"
4331 case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 printf "%s\n" "$ac_try_echo"; } >&5
4337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4338 ac_status=$?
4339 if test -s conftest.err; then
4340 sed '10a\
4341 ... rest of stderr output deleted ...
4342 10q' conftest.err >conftest.er1
4343 cat conftest.er1 >&5
4344 fi
4345 rm -f conftest.er1 conftest.err
4346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; }
4348 done
4349
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352
4353 int
4354 main (void)
4355 {
4356
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 ac_clean_files_save=$ac_clean_files
4362 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4363 # Try to create an executable without -o first, disregard a.out.
4364 # It will help us diagnose broken compilers, and finding out an intuition
4365 # of exeext.
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4367 printf %s "checking whether the C compiler works... " >&6; }
4368 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4369
4370 # The possible output files:
4371 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4372
4373 ac_rmfiles=
4374 for ac_file in $ac_files
4375 do
4376 case $ac_file in
4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4378 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4379 esac
4380 done
4381 rm -f $ac_rmfiles
4382
4383 if { { ac_try="$ac_link_default"
4384 case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387 esac
4388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389 printf "%s\n" "$ac_try_echo"; } >&5
4390 (eval "$ac_link_default") 2>&5
4391 ac_status=$?
4392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393 test $ac_status = 0; }
4394 then :
4395 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4396 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4397 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4398 # so that the user can short-circuit this test for compilers unknown to
4399 # Autoconf.
4400 for ac_file in $ac_files ''
4401 do
4402 test -f "$ac_file" || continue
4403 case $ac_file in
4404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4405 ;;
4406 [ab].out )
4407 # We found the default executable, but exeext='' is most
4408 # certainly right.
4409 break;;
4410 *.* )
4411 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4412 then :; else
4413 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4414 fi
4415 # We set ac_cv_exeext here because the later test for it is not
4416 # safe: cross compilers may not add the suffix if given an '-o'
4417 # argument, so we may need to know it at that point already.
4418 # Even if this section looks crufty: it has the advantage of
4419 # actually working.
4420 break;;
4421 * )
4422 break;;
4423 esac
4424 done
4425 test "$ac_cv_exeext" = no && ac_cv_exeext=
4426
4427 else case e in #(
4428 e) ac_file='' ;;
4429 esac
4430 fi
4431 if test -z "$ac_file"
4432 then :
4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 printf "%s\n" "no" >&6; }
4435 printf "%s\n" "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4439 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4440 as_fn_error 77 "C compiler cannot create executables
4441 See 'config.log' for more details" "$LINENO" 5; }
4442 else case e in #(
4443 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4444 printf "%s\n" "yes" >&6; } ;;
4445 esac
4446 fi
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4448 printf %s "checking for C compiler default output file name... " >&6; }
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4450 printf "%s\n" "$ac_file" >&6; }
4451 ac_exeext=$ac_cv_exeext
4452
4453 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4454 ac_clean_files=$ac_clean_files_save
4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4456 printf %s "checking for suffix of executables... " >&6; }
4457 if { { ac_try="$ac_link"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463 printf "%s\n" "$ac_try_echo"; } >&5
4464 (eval "$ac_link") 2>&5
4465 ac_status=$?
4466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }
4468 then :
4469 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4470 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4471 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4472 # 'rm'.
4473 for ac_file in conftest.exe conftest conftest.*; do
4474 test -f "$ac_file" || continue
4475 case $ac_file in
4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4477 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4478 break;;
4479 * ) break;;
4480 esac
4481 done
4482 else case e in #(
4483 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4484 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4485 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4486 See 'config.log' for more details" "$LINENO" 5; } ;;
4487 esac
4488 fi
4489 rm -f conftest conftest$ac_cv_exeext
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4491 printf "%s\n" "$ac_cv_exeext" >&6; }
4492
4493 rm -f conftest.$ac_ext
4494 EXEEXT=$ac_cv_exeext
4495 ac_exeext=$EXEEXT
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 #include <stdio.h>
4499 int
4500 main (void)
4501 {
4502 FILE *f = fopen ("conftest.out", "w");
4503 if (!f)
4504 return 1;
4505 return ferror (f) || fclose (f) != 0;
4506
4507 ;
4508 return 0;
4509 }
4510 _ACEOF
4511 ac_clean_files="$ac_clean_files conftest.out"
4512 # Check that the compiler produces executables we can run. If not, either
4513 # the compiler is broken, or we cross compile.
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4515 printf %s "checking whether we are cross compiling... " >&6; }
4516 if test "$cross_compiling" != yes; then
4517 { { ac_try="$ac_link"
4518 case "(($ac_try" in
4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4521 esac
4522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4523 printf "%s\n" "$ac_try_echo"; } >&5
4524 (eval "$ac_link") 2>&5
4525 ac_status=$?
4526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4527 test $ac_status = 0; }
4528 if { ac_try='./conftest$ac_cv_exeext'
4529 { { case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4532 esac
4533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534 printf "%s\n" "$ac_try_echo"; } >&5
4535 (eval "$ac_try") 2>&5
4536 ac_status=$?
4537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538 test $ac_status = 0; }; }; then
4539 cross_compiling=no
4540 else
4541 if test "$cross_compiling" = maybe; then
4542 cross_compiling=yes
4543 else
4544 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4545 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4546 as_fn_error 77 "cannot run C compiled programs.
4547 If you meant to cross compile, use '--host'.
4548 See 'config.log' for more details" "$LINENO" 5; }
4549 fi
4550 fi
4551 fi
4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4553 printf "%s\n" "$cross_compiling" >&6; }
4554
4555 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4556 conftest.o conftest.obj conftest.out
4557 ac_clean_files=$ac_clean_files_save
4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4559 printf %s "checking for suffix of object files... " >&6; }
4560 if test ${ac_cv_objext+y}
4561 then :
4562 printf %s "(cached) " >&6
4563 else case e in #(
4564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566
4567 int
4568 main (void)
4569 {
4570
4571 ;
4572 return 0;
4573 }
4574 _ACEOF
4575 rm -f conftest.o conftest.obj
4576 if { { ac_try="$ac_compile"
4577 case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580 esac
4581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4582 printf "%s\n" "$ac_try_echo"; } >&5
4583 (eval "$ac_compile") 2>&5
4584 ac_status=$?
4585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }
4587 then :
4588 for ac_file in conftest.o conftest.obj conftest.*; do
4589 test -f "$ac_file" || continue;
4590 case $ac_file in
4591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4592 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4593 break;;
4594 esac
4595 done
4596 else case e in #(
4597 e) printf "%s\n" "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4599
4600 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4601 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4602 as_fn_error $? "cannot compute suffix of object files: cannot compile
4603 See 'config.log' for more details" "$LINENO" 5; } ;;
4604 esac
4605 fi
4606 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4607 esac
4608 fi
4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4610 printf "%s\n" "$ac_cv_objext" >&6; }
4611 OBJEXT=$ac_cv_objext
4612 ac_objext=$OBJEXT
4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4614 printf %s "checking whether the compiler supports GNU C... " >&6; }
4615 if test ${ac_cv_c_compiler_gnu+y}
4616 then :
4617 printf %s "(cached) " >&6
4618 else case e in #(
4619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621
4622 int
4623 main (void)
4624 {
4625 #ifndef __GNUC__
4626 choke me
4627 #endif
4628
4629 ;
4630 return 0;
4631 }
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"
4634 then :
4635 ac_compiler_gnu=yes
4636 else case e in #(
4637 e) ac_compiler_gnu=no ;;
4638 esac
4639 fi
4640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4642 ;;
4643 esac
4644 fi
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4646 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4648
4649 if test $ac_compiler_gnu = yes; then
4650 GCC=yes
4651 else
4652 GCC=
4653 fi
4654 ac_test_CFLAGS=${CFLAGS+y}
4655 ac_save_CFLAGS=$CFLAGS
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4657 printf %s "checking whether $CC accepts -g... " >&6; }
4658 if test ${ac_cv_prog_cc_g+y}
4659 then :
4660 printf %s "(cached) " >&6
4661 else case e in #(
4662 e) ac_save_c_werror_flag=$ac_c_werror_flag
4663 ac_c_werror_flag=yes
4664 ac_cv_prog_cc_g=no
4665 CFLAGS="-g"
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668
4669 int
4670 main (void)
4671 {
4672
4673 ;
4674 return 0;
4675 }
4676 _ACEOF
4677 if ac_fn_c_try_compile "$LINENO"
4678 then :
4679 ac_cv_prog_cc_g=yes
4680 else case e in #(
4681 e) CFLAGS=""
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684
4685 int
4686 main (void)
4687 {
4688
4689 ;
4690 return 0;
4691 }
4692 _ACEOF
4693 if ac_fn_c_try_compile "$LINENO"
4694 then :
4695
4696 else case e in #(
4697 e) ac_c_werror_flag=$ac_save_c_werror_flag
4698 CFLAGS="-g"
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4701
4702 int
4703 main (void)
4704 {
4705
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 if ac_fn_c_try_compile "$LINENO"
4711 then :
4712 ac_cv_prog_cc_g=yes
4713 fi
4714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4715 esac
4716 fi
4717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4718 esac
4719 fi
4720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4721 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4722 esac
4723 fi
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4725 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4726 if test $ac_test_CFLAGS; then
4727 CFLAGS=$ac_save_CFLAGS
4728 elif test $ac_cv_prog_cc_g = yes; then
4729 if test "$GCC" = yes; then
4730 CFLAGS="-g -O2"
4731 else
4732 CFLAGS="-g"
4733 fi
4734 else
4735 if test "$GCC" = yes; then
4736 CFLAGS="-O2"
4737 else
4738 CFLAGS=
4739 fi
4740 fi
4741 ac_prog_cc_stdc=no
4742 if test x$ac_prog_cc_stdc = xno
4743 then :
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4745 printf %s "checking for $CC option to enable C11 features... " >&6; }
4746 if test ${ac_cv_prog_cc_c11+y}
4747 then :
4748 printf %s "(cached) " >&6
4749 else case e in #(
4750 e) ac_cv_prog_cc_c11=no
4751 ac_save_CC=$CC
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 $ac_c_conftest_c11_program
4755 _ACEOF
4756 for ac_arg in '' -std=gnu11
4757 do
4758 CC="$ac_save_CC $ac_arg"
4759 if ac_fn_c_try_compile "$LINENO"
4760 then :
4761 ac_cv_prog_cc_c11=$ac_arg
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext conftest.beam
4764 test "x$ac_cv_prog_cc_c11" != "xno" && break
4765 done
4766 rm -f conftest.$ac_ext
4767 CC=$ac_save_CC ;;
4768 esac
4769 fi
4770
4771 if test "x$ac_cv_prog_cc_c11" = xno
4772 then :
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4774 printf "%s\n" "unsupported" >&6; }
4775 else case e in #(
4776 e) if test "x$ac_cv_prog_cc_c11" = x
4777 then :
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4779 printf "%s\n" "none needed" >&6; }
4780 else case e in #(
4781 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4782 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4783 CC="$CC $ac_cv_prog_cc_c11" ;;
4784 esac
4785 fi
4786 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4787 ac_prog_cc_stdc=c11 ;;
4788 esac
4789 fi
4790 fi
4791 if test x$ac_prog_cc_stdc = xno
4792 then :
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4794 printf %s "checking for $CC option to enable C99 features... " >&6; }
4795 if test ${ac_cv_prog_cc_c99+y}
4796 then :
4797 printf %s "(cached) " >&6
4798 else case e in #(
4799 e) ac_cv_prog_cc_c99=no
4800 ac_save_CC=$CC
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 $ac_c_conftest_c99_program
4804 _ACEOF
4805 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4806 do
4807 CC="$ac_save_CC $ac_arg"
4808 if ac_fn_c_try_compile "$LINENO"
4809 then :
4810 ac_cv_prog_cc_c99=$ac_arg
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext conftest.beam
4813 test "x$ac_cv_prog_cc_c99" != "xno" && break
4814 done
4815 rm -f conftest.$ac_ext
4816 CC=$ac_save_CC ;;
4817 esac
4818 fi
4819
4820 if test "x$ac_cv_prog_cc_c99" = xno
4821 then :
4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4823 printf "%s\n" "unsupported" >&6; }
4824 else case e in #(
4825 e) if test "x$ac_cv_prog_cc_c99" = x
4826 then :
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4828 printf "%s\n" "none needed" >&6; }
4829 else case e in #(
4830 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4831 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4832 CC="$CC $ac_cv_prog_cc_c99" ;;
4833 esac
4834 fi
4835 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4836 ac_prog_cc_stdc=c99 ;;
4837 esac
4838 fi
4839 fi
4840 if test x$ac_prog_cc_stdc = xno
4841 then :
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4843 printf %s "checking for $CC option to enable C89 features... " >&6; }
4844 if test ${ac_cv_prog_cc_c89+y}
4845 then :
4846 printf %s "(cached) " >&6
4847 else case e in #(
4848 e) ac_cv_prog_cc_c89=no
4849 ac_save_CC=$CC
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4852 $ac_c_conftest_c89_program
4853 _ACEOF
4854 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4855 do
4856 CC="$ac_save_CC $ac_arg"
4857 if ac_fn_c_try_compile "$LINENO"
4858 then :
4859 ac_cv_prog_cc_c89=$ac_arg
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext conftest.beam
4862 test "x$ac_cv_prog_cc_c89" != "xno" && break
4863 done
4864 rm -f conftest.$ac_ext
4865 CC=$ac_save_CC ;;
4866 esac
4867 fi
4868
4869 if test "x$ac_cv_prog_cc_c89" = xno
4870 then :
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4872 printf "%s\n" "unsupported" >&6; }
4873 else case e in #(
4874 e) if test "x$ac_cv_prog_cc_c89" = x
4875 then :
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4877 printf "%s\n" "none needed" >&6; }
4878 else case e in #(
4879 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4880 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4881 CC="$CC $ac_cv_prog_cc_c89" ;;
4882 esac
4883 fi
4884 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4885 ac_prog_cc_stdc=c89 ;;
4886 esac
4887 fi
4888 fi
4889
4890 ac_ext=c
4891 ac_cpp='$CPP $CPPFLAGS'
4892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895
4896
4897 ac_ext=c
4898 ac_cpp='$CPP $CPPFLAGS'
4899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4903 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4904 if test ${am_cv_prog_cc_c_o+y}
4905 then :
4906 printf %s "(cached) " >&6
4907 else case e in #(
4908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4910
4911 int
4912 main (void)
4913 {
4914
4915 ;
4916 return 0;
4917 }
4918 _ACEOF
4919 # Make sure it works both with $CC and with simple cc.
4920 # Following AC_PROG_CC_C_O, we do the test twice because some
4921 # compilers refuse to overwrite an existing .o file with -o,
4922 # though they will create one.
4923 am_cv_prog_cc_c_o=yes
4924 for am_i in 1 2; do
4925 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4926 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } \
4930 && test -f conftest2.$ac_objext; then
4931 : OK
4932 else
4933 am_cv_prog_cc_c_o=no
4934 break
4935 fi
4936 done
4937 # aligned with autoconf, so not including core; see bug#72225.
4938 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4939 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4940 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4941 unset am_i ;;
4942 esac
4943 fi
4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4945 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4946 if test "$am_cv_prog_cc_c_o" != yes; then
4947 # Losing compiler, so override with the script.
4948 # FIXME: It is wrong to rewrite CC.
4949 # But if we don't then we get into trouble of one sort or another.
4950 # A longer-term fix would be to have automake use am__CC in this case,
4951 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4952 CC="$am_aux_dir/compile $CC"
4953 fi
4954 ac_ext=c
4955 ac_cpp='$CPP $CPPFLAGS'
4956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959
4960
4961 depcc="$CC" am_compiler_list=
4962
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4964 printf %s "checking dependency style of $depcc... " >&6; }
4965 if test ${am_cv_CC_dependencies_compiler_type+y}
4966 then :
4967 printf %s "(cached) " >&6
4968 else case e in #(
4969 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4970 # We make a subdir and do the tests there. Otherwise we can end up
4971 # making bogus files that we don't know about and never remove. For
4972 # instance it was reported that on HP-UX the gcc test will end up
4973 # making a dummy file named 'D' -- because '-MD' means "put the output
4974 # in D".
4975 rm -rf conftest.dir
4976 mkdir conftest.dir
4977 # Copy depcomp to subdir because otherwise we won't find it if we're
4978 # using a relative directory.
4979 cp "$am_depcomp" conftest.dir
4980 cd conftest.dir
4981 # We will build objects and dependencies in a subdirectory because
4982 # it helps to detect inapplicable dependency modes. For instance
4983 # both Tru64's cc and ICC support -MD to output dependencies as a
4984 # side effect of compilation, but ICC will put the dependencies in
4985 # the current directory while Tru64 will put them in the object
4986 # directory.
4987 mkdir sub
4988
4989 am_cv_CC_dependencies_compiler_type=none
4990 if test "$am_compiler_list" = ""; then
4991 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4992 fi
4993 am__universal=false
4994 case " $depcc " in #(
4995 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4996 esac
4997
4998 for depmode in $am_compiler_list; do
4999 # Setup a source with many dependencies, because some compilers
5000 # like to wrap large dependency lists on column 80 (with \), and
5001 # we should not choose a depcomp mode which is confused by this.
5002 #
5003 # We need to recreate these files for each test, as the compiler may
5004 # overwrite some of them when testing with obscure command lines.
5005 # This happens at least with the AIX C compiler.
5006 : > sub/conftest.c
5007 for i in 1 2 3 4 5 6; do
5008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5009 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5010 # Solaris 10 /bin/sh.
5011 echo '/* dummy */' > sub/conftst$i.h
5012 done
5013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5014
5015 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5016 # mode. It turns out that the SunPro C++ compiler does not properly
5017 # handle '-M -o', and we need to detect this. Also, some Intel
5018 # versions had trouble with output in subdirs.
5019 am__obj=sub/conftest.${OBJEXT-o}
5020 am__minus_obj="-o $am__obj"
5021 case $depmode in
5022 gcc)
5023 # This depmode causes a compiler race in universal mode.
5024 test "$am__universal" = false || continue
5025 ;;
5026 nosideeffect)
5027 # After this tag, mechanisms are not by side-effect, so they'll
5028 # only be used when explicitly requested.
5029 if test "x$enable_dependency_tracking" = xyes; then
5030 continue
5031 else
5032 break
5033 fi
5034 ;;
5035 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5036 # This compiler won't grok '-c -o', but also, the minuso test has
5037 # not run yet. These depmodes are late enough in the game, and
5038 # so weak that their functioning should not be impacted.
5039 am__obj=conftest.${OBJEXT-o}
5040 am__minus_obj=
5041 ;;
5042 none) break ;;
5043 esac
5044 if depmode=$depmode \
5045 source=sub/conftest.c object=$am__obj \
5046 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5047 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5048 >/dev/null 2>conftest.err &&
5049 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5050 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5051 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5053 # icc doesn't choke on unknown options, it will just issue warnings
5054 # or remarks (even with -Werror). So we grep stderr for any message
5055 # that says an option was ignored or not supported.
5056 # When given -MP, icc 7.0 and 7.1 complain thus:
5057 # icc: Command line warning: ignoring option '-M'; no argument required
5058 # The diagnosis changed in icc 8.0:
5059 # icc: Command line remark: option '-MP' not supported
5060 if (grep 'ignoring option' conftest.err ||
5061 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5062 am_cv_CC_dependencies_compiler_type=$depmode
5063 break
5064 fi
5065 fi
5066 done
5067
5068 cd ..
5069 rm -rf conftest.dir
5070 else
5071 am_cv_CC_dependencies_compiler_type=none
5072 fi
5073 ;;
5074 esac
5075 fi
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5077 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5078 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5079
5080 if
5081 test "x$enable_dependency_tracking" != xno \
5082 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5083 am__fastdepCC_TRUE=
5084 am__fastdepCC_FALSE='#'
5085 else
5086 am__fastdepCC_TRUE='#'
5087 am__fastdepCC_FALSE=
5088 fi
5089
5090
5091
5092 ac_header= ac_cache=
5093 for ac_item in $ac_header_c_list
5094 do
5095 if test $ac_cache; then
5096 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5097 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5098 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5099 fi
5100 ac_header= ac_cache=
5101 elif test $ac_header; then
5102 ac_cache=$ac_item
5103 else
5104 ac_header=$ac_item
5105 fi
5106 done
5107
5108
5109
5110
5111
5112
5113
5114
5115 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5116 then :
5117
5118 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5119
5120 fi
5121
5122
5123
5124
5125
5126
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5128 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5129 if test ${ac_cv_safe_to_define___extensions__+y}
5130 then :
5131 printf %s "(cached) " >&6
5132 else case e in #(
5133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5135
5136 # define __EXTENSIONS__ 1
5137 $ac_includes_default
5138 int
5139 main (void)
5140 {
5141
5142 ;
5143 return 0;
5144 }
5145 _ACEOF
5146 if ac_fn_c_try_compile "$LINENO"
5147 then :
5148 ac_cv_safe_to_define___extensions__=yes
5149 else case e in #(
5150 e) ac_cv_safe_to_define___extensions__=no ;;
5151 esac
5152 fi
5153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5154 esac
5155 fi
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5157 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5158
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5160 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5161 if test ${ac_cv_should_define__xopen_source+y}
5162 then :
5163 printf %s "(cached) " >&6
5164 else case e in #(
5165 e) ac_cv_should_define__xopen_source=no
5166 if test $ac_cv_header_wchar_h = yes
5167 then :
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170
5171 #include <wchar.h>
5172 mbstate_t x;
5173 int
5174 main (void)
5175 {
5176
5177 ;
5178 return 0;
5179 }
5180 _ACEOF
5181 if ac_fn_c_try_compile "$LINENO"
5182 then :
5183
5184 else case e in #(
5185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187
5188 #define _XOPEN_SOURCE 500
5189 #include <wchar.h>
5190 mbstate_t x;
5191 int
5192 main (void)
5193 {
5194
5195 ;
5196 return 0;
5197 }
5198 _ACEOF
5199 if ac_fn_c_try_compile "$LINENO"
5200 then :
5201 ac_cv_should_define__xopen_source=yes
5202 fi
5203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5204 esac
5205 fi
5206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5207 fi ;;
5208 esac
5209 fi
5210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5211 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5212
5213 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5214
5215 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5216
5217 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5218
5219 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5220
5221 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5222
5223 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5224
5225 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5226
5227 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5228
5229 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5230
5231 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5232
5233 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5234
5235 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5236
5237 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5238
5239 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5240
5241 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5242
5243 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5244
5245 if test $ac_cv_header_minix_config_h = yes
5246 then :
5247 MINIX=yes
5248 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5249
5250 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5251
5252 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5253
5254 else case e in #(
5255 e) MINIX= ;;
5256 esac
5257 fi
5258 if test $ac_cv_safe_to_define___extensions__ = yes
5259 then :
5260 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5261
5262 fi
5263 if test $ac_cv_should_define__xopen_source = yes
5264 then :
5265 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5266
5267 fi
5268
5269 # Check whether --enable-compiler-warnings was given.
5270 if test ${enable_compiler_warnings+y}
5271 then :
5272 enableval=$enable_compiler_warnings;
5273 fi
5274 case $enable_compiler_warnings in #(
5275 no | min | yes | max | all) :
5276 ;; #(
5277 *) :
5278 if test "x$enable_maintainer_mode" = xyes
5279 then :
5280 enable_compiler_warnings=yes
5281 else case e in #(
5282 e) enable_compiler_warnings=min ;;
5283 esac
5284 fi ;;
5285 esac
5286
5287 case `pwd` in
5288 *\ * | *\ *)
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5290 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5291 esac
5292
5293
5294
5295 macro_version='2.5.4'
5296 macro_revision='2.5.4'
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311 ltmain=$ac_aux_dir/ltmain.sh
5312
5313
5314
5315 # Make sure we can run config.sub.
5316 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5317 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5318
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5320 printf %s "checking build system type... " >&6; }
5321 if test ${ac_cv_build+y}
5322 then :
5323 printf %s "(cached) " >&6
5324 else case e in #(
5325 e) ac_build_alias=$build_alias
5326 test "x$ac_build_alias" = x &&
5327 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5328 test "x$ac_build_alias" = x &&
5329 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5330 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5331 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5332 ;;
5333 esac
5334 fi
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5336 printf "%s\n" "$ac_cv_build" >&6; }
5337 case $ac_cv_build in
5338 *-*-*) ;;
5339 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5340 esac
5341 build=$ac_cv_build
5342 ac_save_IFS=$IFS; IFS='-'
5343 set x $ac_cv_build
5344 shift
5345 build_cpu=$1
5346 build_vendor=$2
5347 shift; shift
5348 # Remember, the first character of IFS is used to create $*,
5349 # except with old shells:
5350 build_os=$*
5351 IFS=$ac_save_IFS
5352 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5353
5354
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5356 printf %s "checking host system type... " >&6; }
5357 if test ${ac_cv_host+y}
5358 then :
5359 printf %s "(cached) " >&6
5360 else case e in #(
5361 e) if test "x$host_alias" = x; then
5362 ac_cv_host=$ac_cv_build
5363 else
5364 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5365 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5366 fi
5367 ;;
5368 esac
5369 fi
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5371 printf "%s\n" "$ac_cv_host" >&6; }
5372 case $ac_cv_host in
5373 *-*-*) ;;
5374 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5375 esac
5376 host=$ac_cv_host
5377 ac_save_IFS=$IFS; IFS='-'
5378 set x $ac_cv_host
5379 shift
5380 host_cpu=$1
5381 host_vendor=$2
5382 shift; shift
5383 # Remember, the first character of IFS is used to create $*,
5384 # except with old shells:
5385 host_os=$*
5386 IFS=$ac_save_IFS
5387 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5388
5389
5390 # Backslashify metacharacters that are still active within
5391 # double-quoted strings.
5392 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5393
5394 # Same as above, but do not quote variable references.
5395 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5396
5397 # Sed substitution to delay expansion of an escaped shell variable in a
5398 # double_quote_subst'ed string.
5399 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5400
5401 # Sed substitution to delay expansion of an escaped single quote.
5402 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5403
5404 # Sed substitution to avoid accidental globbing in evaled expressions
5405 no_glob_subst='s/\*/\\\*/g'
5406
5407 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5408 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5409 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5410
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5412 printf %s "checking how to print strings... " >&6; }
5413 # Test print first, because it will be a builtin if present.
5414 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5415 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5416 ECHO='print -r --'
5417 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5418 ECHO='printf %s\n'
5419 else
5420 # Use this function as a fallback that always works.
5421 func_fallback_echo ()
5422 {
5423 eval 'cat <<_LTECHO_EOF
5424 $1
5425 _LTECHO_EOF'
5426 }
5427 ECHO='func_fallback_echo'
5428 fi
5429
5430 # func_echo_all arg...
5431 # Invoke $ECHO with all args, space-separated.
5432 func_echo_all ()
5433 {
5434 $ECHO ""
5435 }
5436
5437 case $ECHO in
5438 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5439 printf "%s\n" "printf" >&6; } ;;
5440 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5441 printf "%s\n" "print -r" >&6; } ;;
5442 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5443 printf "%s\n" "cat" >&6; } ;;
5444 esac
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5460 printf %s "checking for a sed that does not truncate output... " >&6; }
5461 if test ${ac_cv_path_SED+y}
5462 then :
5463 printf %s "(cached) " >&6
5464 else case e in #(
5465 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5466 for ac_i in 1 2 3 4 5 6 7; do
5467 ac_script="$ac_script$as_nl$ac_script"
5468 done
5469 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5470 { ac_script=; unset ac_script;}
5471 if test -z "$SED"; then
5472 ac_path_SED_found=false
5473 # Loop through the user's path and test for each of PROGNAME-LIST
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477 IFS=$as_save_IFS
5478 case $as_dir in #(((
5479 '') as_dir=./ ;;
5480 */) ;;
5481 *) as_dir=$as_dir/ ;;
5482 esac
5483 for ac_prog in sed gsed
5484 do
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5487 as_fn_executable_p "$ac_path_SED" || continue
5488 # Check for GNU ac_path_SED and select it if it is found.
5489 # Check for GNU $ac_path_SED
5490 case `"$ac_path_SED" --version 2>&1` in #(
5491 *GNU*)
5492 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5493 #(
5494 *)
5495 ac_count=0
5496 printf %s 0123456789 >"conftest.in"
5497 while :
5498 do
5499 cat "conftest.in" "conftest.in" >"conftest.tmp"
5500 mv "conftest.tmp" "conftest.in"
5501 cp "conftest.in" "conftest.nl"
5502 printf "%s\n" '' >> "conftest.nl"
5503 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5505 as_fn_arith $ac_count + 1 && ac_count=$as_val
5506 if test $ac_count -gt ${ac_path_SED_max-0}; then
5507 # Best one so far, save it but keep looking for a better one
5508 ac_cv_path_SED="$ac_path_SED"
5509 ac_path_SED_max=$ac_count
5510 fi
5511 # 10*(2^10) chars as input seems more than enough
5512 test $ac_count -gt 10 && break
5513 done
5514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5515 esac
5516
5517 $ac_path_SED_found && break 3
5518 done
5519 done
5520 done
5521 IFS=$as_save_IFS
5522 if test -z "$ac_cv_path_SED"; then
5523 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5524 fi
5525 else
5526 ac_cv_path_SED=$SED
5527 fi
5528 ;;
5529 esac
5530 fi
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5532 printf "%s\n" "$ac_cv_path_SED" >&6; }
5533 SED="$ac_cv_path_SED"
5534 rm -f conftest.sed
5535
5536 test -z "$SED" && SED=sed
5537 Xsed="$SED -e 1s/^X//"
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5550 printf %s "checking for grep that handles long lines and -e... " >&6; }
5551 if test ${ac_cv_path_GREP+y}
5552 then :
5553 printf %s "(cached) " >&6
5554 else case e in #(
5555 e) if test -z "$GREP"; then
5556 ac_path_GREP_found=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560 do
5561 IFS=$as_save_IFS
5562 case $as_dir in #(((
5563 '') as_dir=./ ;;
5564 */) ;;
5565 *) as_dir=$as_dir/ ;;
5566 esac
5567 for ac_prog in grep ggrep
5568 do
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5571 as_fn_executable_p "$ac_path_GREP" || continue
5572 # Check for GNU ac_path_GREP and select it if it is found.
5573 # Check for GNU $ac_path_GREP
5574 case `"$ac_path_GREP" --version 2>&1` in #(
5575 *GNU*)
5576 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5577 #(
5578 *)
5579 ac_count=0
5580 printf %s 0123456789 >"conftest.in"
5581 while :
5582 do
5583 cat "conftest.in" "conftest.in" >"conftest.tmp"
5584 mv "conftest.tmp" "conftest.in"
5585 cp "conftest.in" "conftest.nl"
5586 printf "%s\n" 'GREP' >> "conftest.nl"
5587 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5589 as_fn_arith $ac_count + 1 && ac_count=$as_val
5590 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5591 # Best one so far, save it but keep looking for a better one
5592 ac_cv_path_GREP="$ac_path_GREP"
5593 ac_path_GREP_max=$ac_count
5594 fi
5595 # 10*(2^10) chars as input seems more than enough
5596 test $ac_count -gt 10 && break
5597 done
5598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5599 esac
5600
5601 $ac_path_GREP_found && break 3
5602 done
5603 done
5604 done
5605 IFS=$as_save_IFS
5606 if test -z "$ac_cv_path_GREP"; then
5607 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5608 fi
5609 else
5610 ac_cv_path_GREP=$GREP
5611 fi
5612 ;;
5613 esac
5614 fi
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5616 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5617 GREP="$ac_cv_path_GREP"
5618
5619
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5621 printf %s "checking for egrep... " >&6; }
5622 if test ${ac_cv_path_EGREP+y}
5623 then :
5624 printf %s "(cached) " >&6
5625 else case e in #(
5626 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5627 then ac_cv_path_EGREP="$GREP -E"
5628 else
5629 if test -z "$EGREP"; then
5630 ac_path_EGREP_found=false
5631 # Loop through the user's path and test for each of PROGNAME-LIST
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5634 do
5635 IFS=$as_save_IFS
5636 case $as_dir in #(((
5637 '') as_dir=./ ;;
5638 */) ;;
5639 *) as_dir=$as_dir/ ;;
5640 esac
5641 for ac_prog in egrep
5642 do
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5645 as_fn_executable_p "$ac_path_EGREP" || continue
5646 # Check for GNU ac_path_EGREP and select it if it is found.
5647 # Check for GNU $ac_path_EGREP
5648 case `"$ac_path_EGREP" --version 2>&1` in #(
5649 *GNU*)
5650 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5651 #(
5652 *)
5653 ac_count=0
5654 printf %s 0123456789 >"conftest.in"
5655 while :
5656 do
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 printf "%s\n" 'EGREP' >> "conftest.nl"
5661 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663 as_fn_arith $ac_count + 1 && ac_count=$as_val
5664 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_EGREP="$ac_path_EGREP"
5667 ac_path_EGREP_max=$ac_count
5668 fi
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5671 done
5672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5673 esac
5674
5675 $ac_path_EGREP_found && break 3
5676 done
5677 done
5678 done
5679 IFS=$as_save_IFS
5680 if test -z "$ac_cv_path_EGREP"; then
5681 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5682 fi
5683 else
5684 ac_cv_path_EGREP=$EGREP
5685 fi
5686
5687 fi ;;
5688 esac
5689 fi
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5691 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5692 EGREP="$ac_cv_path_EGREP"
5693
5694 EGREP_TRADITIONAL=$EGREP
5695 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5696
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5698 printf %s "checking for fgrep... " >&6; }
5699 if test ${ac_cv_path_FGREP+y}
5700 then :
5701 printf %s "(cached) " >&6
5702 else case e in #(
5703 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5704 then ac_cv_path_FGREP="$GREP -F"
5705 else
5706 if test -z "$FGREP"; then
5707 ac_path_FGREP_found=false
5708 # Loop through the user's path and test for each of PROGNAME-LIST
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5711 do
5712 IFS=$as_save_IFS
5713 case $as_dir in #(((
5714 '') as_dir=./ ;;
5715 */) ;;
5716 *) as_dir=$as_dir/ ;;
5717 esac
5718 for ac_prog in fgrep
5719 do
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5722 as_fn_executable_p "$ac_path_FGREP" || continue
5723 # Check for GNU ac_path_FGREP and select it if it is found.
5724 # Check for GNU $ac_path_FGREP
5725 case `"$ac_path_FGREP" --version 2>&1` in #(
5726 *GNU*)
5727 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5728 #(
5729 *)
5730 ac_count=0
5731 printf %s 0123456789 >"conftest.in"
5732 while :
5733 do
5734 cat "conftest.in" "conftest.in" >"conftest.tmp"
5735 mv "conftest.tmp" "conftest.in"
5736 cp "conftest.in" "conftest.nl"
5737 printf "%s\n" 'FGREP' >> "conftest.nl"
5738 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5739 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5740 as_fn_arith $ac_count + 1 && ac_count=$as_val
5741 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5742 # Best one so far, save it but keep looking for a better one
5743 ac_cv_path_FGREP="$ac_path_FGREP"
5744 ac_path_FGREP_max=$ac_count
5745 fi
5746 # 10*(2^10) chars as input seems more than enough
5747 test $ac_count -gt 10 && break
5748 done
5749 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5750 esac
5751
5752 $ac_path_FGREP_found && break 3
5753 done
5754 done
5755 done
5756 IFS=$as_save_IFS
5757 if test -z "$ac_cv_path_FGREP"; then
5758 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5759 fi
5760 else
5761 ac_cv_path_FGREP=$FGREP
5762 fi
5763
5764 fi ;;
5765 esac
5766 fi
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5768 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5769 FGREP="$ac_cv_path_FGREP"
5770
5771
5772 test -z "$GREP" && GREP=grep
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792 # Check whether --with-gnu-ld was given.
5793 if test ${with_gnu_ld+y}
5794 then :
5795 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5796 else case e in #(
5797 e) with_gnu_ld=no ;;
5798 esac
5799 fi
5800
5801 ac_prog=ld
5802 if test yes = "$GCC"; then
5803 # Check if gcc -print-prog-name=ld gives a path.
5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5805 printf %s "checking for ld used by $CC... " >&6; }
5806 case $host in
5807 *-*-mingw* | *-*-windows*)
5808 # gcc leaves a trailing carriage return, which upsets mingw
5809 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5810 *)
5811 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5812 esac
5813 case $ac_prog in
5814 # Accept absolute paths.
5815 [\\/]* | ?:[\\/]*)
5816 re_direlt='/[^/][^/]*/\.\./'
5817 # Canonicalize the pathname of ld
5818 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5819 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5820 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5821 done
5822 test -z "$LD" && LD=$ac_prog
5823 ;;
5824 "")
5825 # If it fails, then pretend we aren't using GCC.
5826 ac_prog=ld
5827 ;;
5828 *)
5829 # If it is relative, then search for the first ld in PATH.
5830 with_gnu_ld=unknown
5831 ;;
5832 esac
5833 elif test yes = "$with_gnu_ld"; then
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5835 printf %s "checking for GNU ld... " >&6; }
5836 else
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5838 printf %s "checking for non-GNU ld... " >&6; }
5839 fi
5840 if test ${lt_cv_path_LD+y}
5841 then :
5842 printf %s "(cached) " >&6
5843 else case e in #(
5844 e) if test -z "$LD"; then
5845 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5846 for ac_dir in $PATH; do
5847 IFS=$lt_save_ifs
5848 test -z "$ac_dir" && ac_dir=.
5849 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5850 lt_cv_path_LD=$ac_dir/$ac_prog
5851 # Check to see if the program is GNU ld. I'd rather use --version,
5852 # but apparently some variants of GNU ld only accept -v.
5853 # Break only if it was the GNU/non-GNU ld that we prefer.
5854 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5855 *GNU* | *'with BFD'*)
5856 test no != "$with_gnu_ld" && break
5857 ;;
5858 *)
5859 test yes != "$with_gnu_ld" && break
5860 ;;
5861 esac
5862 fi
5863 done
5864 IFS=$lt_save_ifs
5865 else
5866 lt_cv_path_LD=$LD # Let the user override the test with a path.
5867 fi ;;
5868 esac
5869 fi
5870
5871 LD=$lt_cv_path_LD
5872 if test -n "$LD"; then
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5874 printf "%s\n" "$LD" >&6; }
5875 else
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 printf "%s\n" "no" >&6; }
5878 fi
5879 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5881 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5882 if test ${lt_cv_prog_gnu_ld+y}
5883 then :
5884 printf %s "(cached) " >&6
5885 else case e in #(
5886 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5887 case `$LD -v 2>&1 </dev/null` in
5888 *GNU* | *'with BFD'*)
5889 lt_cv_prog_gnu_ld=yes
5890 ;;
5891 *)
5892 lt_cv_prog_gnu_ld=no
5893 ;;
5894 esac ;;
5895 esac
5896 fi
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5898 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5899 with_gnu_ld=$lt_cv_prog_gnu_ld
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5910 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5911 if test ${lt_cv_path_NM+y}
5912 then :
5913 printf %s "(cached) " >&6
5914 else case e in #(
5915 e) if test -n "$NM"; then
5916 # Let the user override the test.
5917 lt_cv_path_NM=$NM
5918 else
5919 lt_nm_to_check=${ac_tool_prefix}nm
5920 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5921 lt_nm_to_check="$lt_nm_to_check nm"
5922 fi
5923 for lt_tmp_nm in $lt_nm_to_check; do
5924 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5925 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5926 IFS=$lt_save_ifs
5927 test -z "$ac_dir" && ac_dir=.
5928 tmp_nm=$ac_dir/$lt_tmp_nm
5929 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5930 # Check to see if the nm accepts a BSD-compat flag.
5931 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5932 # nm: unknown option "B" ignored
5933 # Tru64's nm complains that /dev/null is an invalid object file
5934 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5935 case $build_os in
5936 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5937 *) lt_bad_file=/dev/null ;;
5938 esac
5939 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5940 *$lt_bad_file* | *'Invalid file or object type'*)
5941 lt_cv_path_NM="$tmp_nm -B"
5942 break 2
5943 ;;
5944 *)
5945 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5946 */dev/null*)
5947 lt_cv_path_NM="$tmp_nm -p"
5948 break 2
5949 ;;
5950 *)
5951 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5952 continue # so that we can try to find one that supports BSD flags
5953 ;;
5954 esac
5955 ;;
5956 esac
5957 fi
5958 done
5959 IFS=$lt_save_ifs
5960 done
5961 : ${lt_cv_path_NM=no}
5962 fi ;;
5963 esac
5964 fi
5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5966 printf "%s\n" "$lt_cv_path_NM" >&6; }
5967 if test no != "$lt_cv_path_NM"; then
5968 NM=$lt_cv_path_NM
5969 else
5970 # Didn't find any BSD compatible name lister, look for dumpbin.
5971 if test -n "$DUMPBIN"; then :
5972 # Let the user override the test.
5973 else
5974 if test -n "$ac_tool_prefix"; then
5975 for ac_prog in dumpbin "link -dump"
5976 do
5977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 printf %s "checking for $ac_word... " >&6; }
5981 if test ${ac_cv_prog_DUMPBIN+y}
5982 then :
5983 printf %s "(cached) " >&6
5984 else case e in #(
5985 e) if test -n "$DUMPBIN"; then
5986 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5987 else
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH
5990 do
5991 IFS=$as_save_IFS
5992 case $as_dir in #(((
5993 '') as_dir=./ ;;
5994 */) ;;
5995 *) as_dir=$as_dir/ ;;
5996 esac
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003 done
6004 done
6005 IFS=$as_save_IFS
6006
6007 fi ;;
6008 esac
6009 fi
6010 DUMPBIN=$ac_cv_prog_DUMPBIN
6011 if test -n "$DUMPBIN"; then
6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6013 printf "%s\n" "$DUMPBIN" >&6; }
6014 else
6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 printf "%s\n" "no" >&6; }
6017 fi
6018
6019
6020 test -n "$DUMPBIN" && break
6021 done
6022 fi
6023 if test -z "$DUMPBIN"; then
6024 ac_ct_DUMPBIN=$DUMPBIN
6025 for ac_prog in dumpbin "link -dump"
6026 do
6027 # Extract the first word of "$ac_prog", so it can be a program name with args.
6028 set dummy $ac_prog; ac_word=$2
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 printf %s "checking for $ac_word... " >&6; }
6031 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6032 then :
6033 printf %s "(cached) " >&6
6034 else case e in #(
6035 e) if test -n "$ac_ct_DUMPBIN"; then
6036 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041 IFS=$as_save_IFS
6042 case $as_dir in #(((
6043 '') as_dir=./ ;;
6044 */) ;;
6045 *) as_dir=$as_dir/ ;;
6046 esac
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6049 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6051 break 2
6052 fi
6053 done
6054 done
6055 IFS=$as_save_IFS
6056
6057 fi ;;
6058 esac
6059 fi
6060 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6061 if test -n "$ac_ct_DUMPBIN"; then
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6063 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6064 else
6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 printf "%s\n" "no" >&6; }
6067 fi
6068
6069
6070 test -n "$ac_ct_DUMPBIN" && break
6071 done
6072
6073 if test "x$ac_ct_DUMPBIN" = x; then
6074 DUMPBIN=":"
6075 else
6076 case $cross_compiling:$ac_tool_warned in
6077 yes:)
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6080 ac_tool_warned=yes ;;
6081 esac
6082 DUMPBIN=$ac_ct_DUMPBIN
6083 fi
6084 fi
6085
6086 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6087 *COFF*)
6088 DUMPBIN="$DUMPBIN -symbols -headers"
6089 ;;
6090 *)
6091 DUMPBIN=:
6092 ;;
6093 esac
6094 fi
6095
6096 if test : != "$DUMPBIN"; then
6097 NM=$DUMPBIN
6098 fi
6099 fi
6100 test -z "$NM" && NM=nm
6101
6102
6103
6104
6105
6106
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6108 printf %s "checking the name lister ($NM) interface... " >&6; }
6109 if test ${lt_cv_nm_interface+y}
6110 then :
6111 printf %s "(cached) " >&6
6112 else case e in #(
6113 e) lt_cv_nm_interface="BSD nm"
6114 echo "int some_variable = 0;" > conftest.$ac_ext
6115 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6116 (eval "$ac_compile" 2>conftest.err)
6117 cat conftest.err >&5
6118 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6119 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6120 cat conftest.err >&5
6121 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6122 cat conftest.out >&5
6123 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6124 lt_cv_nm_interface="MS dumpbin"
6125 fi
6126 rm -f conftest* ;;
6127 esac
6128 fi
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6130 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6131
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6133 printf %s "checking whether ln -s works... " >&6; }
6134 LN_S=$as_ln_s
6135 if test "$LN_S" = "ln -s"; then
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6137 printf "%s\n" "yes" >&6; }
6138 else
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6140 printf "%s\n" "no, using $LN_S" >&6; }
6141 fi
6142
6143 # find the maximum length of command line arguments
6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6145 printf %s "checking the maximum length of command line arguments... " >&6; }
6146 if test ${lt_cv_sys_max_cmd_len+y}
6147 then :
6148 printf %s "(cached) " >&6
6149 else case e in #(
6150 e) i=0
6151 teststring=ABCD
6152
6153 case $build_os in
6154 msdosdjgpp*)
6155 # On DJGPP, this test can blow up pretty badly due to problems in libc
6156 # (any single argument exceeding 2000 bytes causes a buffer overrun
6157 # during glob expansion). Even if it were fixed, the result of this
6158 # check would be larger than it should be.
6159 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6160 ;;
6161
6162 gnu* | ironclad*)
6163 # Under GNU Hurd and Ironclad, this test is not required because there
6164 # is no limit to the length of command line arguments.
6165 # Libtool will interpret -1 as no limit whatsoever
6166 lt_cv_sys_max_cmd_len=-1;
6167 ;;
6168
6169 cygwin* | mingw* | windows* | cegcc*)
6170 # On Win9x/ME, this test blows up -- it succeeds, but takes
6171 # about 5 minutes as the teststring grows exponentially.
6172 # Worse, since 9x/ME are not pre-emptively multitasking,
6173 # you end up with a "frozen" computer, even though with patience
6174 # the test eventually succeeds (with a max line length of 256k).
6175 # Instead, let's just punt: use the minimum linelength reported by
6176 # all of the supported platforms: 8192 (on NT/2K/XP).
6177 lt_cv_sys_max_cmd_len=8192;
6178 ;;
6179
6180 mint*)
6181 # On MiNT this can take a long time and run out of memory.
6182 lt_cv_sys_max_cmd_len=8192;
6183 ;;
6184
6185 amigaos*)
6186 # On AmigaOS with pdksh, this test takes hours, literally.
6187 # So we just punt and use a minimum line length of 8192.
6188 lt_cv_sys_max_cmd_len=8192;
6189 ;;
6190
6191 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6192 # This has been around since 386BSD, at least. Likely further.
6193 if test -x /sbin/sysctl; then
6194 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6195 elif test -x /usr/sbin/sysctl; then
6196 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6197 else
6198 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6199 fi
6200 # And add a safety zone
6201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6203 ;;
6204
6205 interix*)
6206 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6207 lt_cv_sys_max_cmd_len=196608
6208 ;;
6209
6210 os2*)
6211 # The test takes a long time on OS/2.
6212 lt_cv_sys_max_cmd_len=8192
6213 ;;
6214
6215 osf*)
6216 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6217 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6218 # nice to cause kernel panics so lets avoid the loop below.
6219 # First set a reasonable default.
6220 lt_cv_sys_max_cmd_len=16384
6221 #
6222 if test -x /sbin/sysconfig; then
6223 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6224 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6225 esac
6226 fi
6227 ;;
6228 sco3.2v5*)
6229 lt_cv_sys_max_cmd_len=102400
6230 ;;
6231 sysv5* | sco5v6* | sysv4.2uw2*)
6232 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6233 if test -n "$kargmax"; then
6234 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6235 else
6236 lt_cv_sys_max_cmd_len=32768
6237 fi
6238 ;;
6239 *)
6240 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6241 if test -n "$lt_cv_sys_max_cmd_len" && \
6242 test undefined != "$lt_cv_sys_max_cmd_len"; then
6243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6245 else
6246 # Make teststring a little bigger before we do anything with it.
6247 # a 1K string should be a reasonable start.
6248 for i in 1 2 3 4 5 6 7 8; do
6249 teststring=$teststring$teststring
6250 done
6251 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6252 # If test is not a shell built-in, we'll probably end up computing a
6253 # maximum length that is only half of the actual maximum length, but
6254 # we can't tell.
6255 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6256 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6257 test 17 != "$i" # 1/2 MB should be enough
6258 do
6259 i=`expr $i + 1`
6260 teststring=$teststring$teststring
6261 done
6262 # Only check the string length outside the loop.
6263 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6264 teststring=
6265 # Add a significant safety factor because C++ compilers can tack on
6266 # massive amounts of additional arguments before passing them to the
6267 # linker. It appears as though 1/2 is a usable value.
6268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6269 fi
6270 ;;
6271 esac
6272 ;;
6273 esac
6274 fi
6275
6276 if test -n "$lt_cv_sys_max_cmd_len"; then
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6278 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6279 else
6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6281 printf "%s\n" "none" >&6; }
6282 fi
6283 max_cmd_len=$lt_cv_sys_max_cmd_len
6284
6285
6286
6287
6288
6289
6290 : ${CP="cp -f"}
6291 : ${MV="mv -f"}
6292 : ${RM="rm -f"}
6293
6294 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6295 lt_unset=unset
6296 else
6297 lt_unset=false
6298 fi
6299
6300
6301
6302
6303
6304 # test EBCDIC or ASCII
6305 case `echo X|tr X '\101'` in
6306 A) # ASCII based system
6307 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6308 lt_SP2NL='tr \040 \012'
6309 lt_NL2SP='tr \015\012 \040\040'
6310 ;;
6311 *) # EBCDIC based system
6312 lt_SP2NL='tr \100 \n'
6313 lt_NL2SP='tr \r\n \100\100'
6314 ;;
6315 esac
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6326 printf %s "checking how to convert $build file names to $host format... " >&6; }
6327 if test ${lt_cv_to_host_file_cmd+y}
6328 then :
6329 printf %s "(cached) " >&6
6330 else case e in #(
6331 e) case $host in
6332 *-*-mingw* )
6333 case $build in
6334 *-*-mingw* | *-*-windows* ) # actually msys
6335 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6336 ;;
6337 *-*-cygwin* )
6338 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6339 ;;
6340 * ) # otherwise, assume *nix
6341 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6342 ;;
6343 esac
6344 ;;
6345 *-*-cygwin* )
6346 case $build in
6347 *-*-mingw* | *-*-windows* ) # actually msys
6348 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6349 ;;
6350 *-*-cygwin* )
6351 lt_cv_to_host_file_cmd=func_convert_file_noop
6352 ;;
6353 * ) # otherwise, assume *nix
6354 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6355 ;;
6356 esac
6357 ;;
6358 * ) # unhandled hosts (and "normal" native builds)
6359 lt_cv_to_host_file_cmd=func_convert_file_noop
6360 ;;
6361 esac
6362 ;;
6363 esac
6364 fi
6365
6366 to_host_file_cmd=$lt_cv_to_host_file_cmd
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6368 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6369
6370
6371
6372
6373
6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6375 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6376 if test ${lt_cv_to_tool_file_cmd+y}
6377 then :
6378 printf %s "(cached) " >&6
6379 else case e in #(
6380 e) #assume ordinary cross tools, or native build.
6381 lt_cv_to_tool_file_cmd=func_convert_file_noop
6382 case $host in
6383 *-*-mingw* | *-*-windows* )
6384 case $build in
6385 *-*-mingw* | *-*-windows* ) # actually msys
6386 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6387 ;;
6388 esac
6389 ;;
6390 esac
6391 ;;
6392 esac
6393 fi
6394
6395 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6397 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6398
6399
6400
6401
6402
6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6404 printf %s "checking for $LD option to reload object files... " >&6; }
6405 if test ${lt_cv_ld_reload_flag+y}
6406 then :
6407 printf %s "(cached) " >&6
6408 else case e in #(
6409 e) lt_cv_ld_reload_flag='-r' ;;
6410 esac
6411 fi
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6413 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6414 reload_flag=$lt_cv_ld_reload_flag
6415 case $reload_flag in
6416 "" | " "*) ;;
6417 *) reload_flag=" $reload_flag" ;;
6418 esac
6419 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6420 case $host_os in
6421 cygwin* | mingw* | windows* | pw32* | cegcc*)
6422 if test yes != "$GCC"; then
6423 reload_cmds=false
6424 fi
6425 ;;
6426 darwin*)
6427 if test yes = "$GCC"; then
6428 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6429 else
6430 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6431 fi
6432 ;;
6433 esac
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443 # Extract the first word of "file", so it can be a program name with args.
6444 set dummy file; ac_word=$2
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 printf %s "checking for $ac_word... " >&6; }
6447 if test ${ac_cv_prog_FILECMD+y}
6448 then :
6449 printf %s "(cached) " >&6
6450 else case e in #(
6451 e) if test -n "$FILECMD"; then
6452 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457 IFS=$as_save_IFS
6458 case $as_dir in #(((
6459 '') as_dir=./ ;;
6460 */) ;;
6461 *) as_dir=$as_dir/ ;;
6462 esac
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6465 ac_cv_prog_FILECMD="file"
6466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6467 break 2
6468 fi
6469 done
6470 done
6471 IFS=$as_save_IFS
6472
6473 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6474 fi ;;
6475 esac
6476 fi
6477 FILECMD=$ac_cv_prog_FILECMD
6478 if test -n "$FILECMD"; then
6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6480 printf "%s\n" "$FILECMD" >&6; }
6481 else
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 printf "%s\n" "no" >&6; }
6484 fi
6485
6486
6487
6488
6489
6490
6491
6492
6493 if test -n "$ac_tool_prefix"; then
6494 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6495 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 printf %s "checking for $ac_word... " >&6; }
6498 if test ${ac_cv_prog_OBJDUMP+y}
6499 then :
6500 printf %s "(cached) " >&6
6501 else case e in #(
6502 e) if test -n "$OBJDUMP"; then
6503 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508 IFS=$as_save_IFS
6509 case $as_dir in #(((
6510 '') as_dir=./ ;;
6511 */) ;;
6512 *) as_dir=$as_dir/ ;;
6513 esac
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520 done
6521 done
6522 IFS=$as_save_IFS
6523
6524 fi ;;
6525 esac
6526 fi
6527 OBJDUMP=$ac_cv_prog_OBJDUMP
6528 if test -n "$OBJDUMP"; then
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6530 printf "%s\n" "$OBJDUMP" >&6; }
6531 else
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 printf "%s\n" "no" >&6; }
6534 fi
6535
6536
6537 fi
6538 if test -z "$ac_cv_prog_OBJDUMP"; then
6539 ac_ct_OBJDUMP=$OBJDUMP
6540 # Extract the first word of "objdump", so it can be a program name with args.
6541 set dummy objdump; ac_word=$2
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 printf %s "checking for $ac_word... " >&6; }
6544 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6545 then :
6546 printf %s "(cached) " >&6
6547 else case e in #(
6548 e) if test -n "$ac_ct_OBJDUMP"; then
6549 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554 IFS=$as_save_IFS
6555 case $as_dir in #(((
6556 '') as_dir=./ ;;
6557 */) ;;
6558 *) as_dir=$as_dir/ ;;
6559 esac
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6564 break 2
6565 fi
6566 done
6567 done
6568 IFS=$as_save_IFS
6569
6570 fi ;;
6571 esac
6572 fi
6573 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6574 if test -n "$ac_ct_OBJDUMP"; then
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6576 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6577 else
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 printf "%s\n" "no" >&6; }
6580 fi
6581
6582 if test "x$ac_ct_OBJDUMP" = x; then
6583 OBJDUMP="false"
6584 else
6585 case $cross_compiling:$ac_tool_warned in
6586 yes:)
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6588 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589 ac_tool_warned=yes ;;
6590 esac
6591 OBJDUMP=$ac_ct_OBJDUMP
6592 fi
6593 else
6594 OBJDUMP="$ac_cv_prog_OBJDUMP"
6595 fi
6596
6597 test -z "$OBJDUMP" && OBJDUMP=objdump
6598
6599
6600
6601
6602
6603
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6605 printf %s "checking how to recognize dependent libraries... " >&6; }
6606 if test ${lt_cv_deplibs_check_method+y}
6607 then :
6608 printf %s "(cached) " >&6
6609 else case e in #(
6610 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6611 lt_cv_file_magic_test_file=
6612 lt_cv_deplibs_check_method='unknown'
6613 # Need to set the preceding variable on all platforms that support
6614 # interlibrary dependencies.
6615 # 'none' -- dependencies not supported.
6616 # 'unknown' -- same as none, but documents that we really don't know.
6617 # 'pass_all' -- all dependencies passed with no checks.
6618 # 'file_magic [[regex]]' -- check by looking for files in library path
6619 # that responds to the $file_magic_cmd with a given extended regex.
6620 # If you have 'file' or equivalent on your system and you're not sure
6621 # whether 'pass_all' will *always* work, you probably want this one.
6622
6623 case $host_os in
6624 aix[4-9]*)
6625 lt_cv_deplibs_check_method=pass_all
6626 ;;
6627
6628 beos*)
6629 lt_cv_deplibs_check_method=pass_all
6630 ;;
6631
6632 bsdi[45]*)
6633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6634 lt_cv_file_magic_cmd='$FILECMD -L'
6635 lt_cv_file_magic_test_file=/shlib/libc.so
6636 ;;
6637
6638 cygwin*)
6639 # func_win32_libid is a shell function defined in ltmain.sh
6640 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6641 lt_cv_file_magic_cmd='func_win32_libid'
6642 ;;
6643
6644 mingw* | windows* | pw32*)
6645 # Base MSYS/MinGW do not provide the 'file' command needed by
6646 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6647 # unless we find 'file', for example because we are cross-compiling.
6648 if ( file / ) >/dev/null 2>&1; then
6649 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6650 lt_cv_file_magic_cmd='func_win32_libid'
6651 else
6652 # Keep this pattern in sync with the one in func_win32_libid.
6653 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6654 lt_cv_file_magic_cmd='$OBJDUMP -f'
6655 fi
6656 ;;
6657
6658 cegcc*)
6659 # use the weaker test based on 'objdump'. See mingw*.
6660 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6661 lt_cv_file_magic_cmd='$OBJDUMP -f'
6662 ;;
6663
6664 darwin* | rhapsody*)
6665 lt_cv_deplibs_check_method=pass_all
6666 ;;
6667
6668 freebsd* | dragonfly* | midnightbsd*)
6669 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6670 case $host_cpu in
6671 i*86 )
6672 # Not sure whether the presence of OpenBSD here was a mistake.
6673 # Let's accept both of them until this is cleared up.
6674 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6675 lt_cv_file_magic_cmd=$FILECMD
6676 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6677 ;;
6678 esac
6679 else
6680 lt_cv_deplibs_check_method=pass_all
6681 fi
6682 ;;
6683
6684 haiku*)
6685 lt_cv_deplibs_check_method=pass_all
6686 ;;
6687
6688 hpux10.20* | hpux11*)
6689 lt_cv_file_magic_cmd=$FILECMD
6690 case $host_cpu in
6691 ia64*)
6692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6693 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6694 ;;
6695 hppa*64*)
6696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6697 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6698 ;;
6699 *)
6700 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6701 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6702 ;;
6703 esac
6704 ;;
6705
6706 interix[3-9]*)
6707 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6709 ;;
6710
6711 irix5* | irix6* | nonstopux*)
6712 case $LD in
6713 *-32|*"-32 ") libmagic=32-bit;;
6714 *-n32|*"-n32 ") libmagic=N32;;
6715 *-64|*"-64 ") libmagic=64-bit;;
6716 *) libmagic=never-match;;
6717 esac
6718 lt_cv_deplibs_check_method=pass_all
6719 ;;
6720
6721 # This must be glibc/ELF.
6722 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6723 lt_cv_deplibs_check_method=pass_all
6724 ;;
6725
6726 *-mlibc)
6727 lt_cv_deplibs_check_method=pass_all
6728 ;;
6729
6730 netbsd* | netbsdelf*-gnu)
6731 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6733 else
6734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6735 fi
6736 ;;
6737
6738 newos6*)
6739 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6740 lt_cv_file_magic_cmd=$FILECMD
6741 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6742 ;;
6743
6744 *nto* | *qnx*)
6745 lt_cv_deplibs_check_method=pass_all
6746 ;;
6747
6748 openbsd*)
6749 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6751 else
6752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6753 fi
6754 ;;
6755
6756 osf3* | osf4* | osf5*)
6757 lt_cv_deplibs_check_method=pass_all
6758 ;;
6759
6760 rdos*)
6761 lt_cv_deplibs_check_method=pass_all
6762 ;;
6763
6764 serenity*)
6765 lt_cv_deplibs_check_method=pass_all
6766 ;;
6767
6768 solaris*)
6769 lt_cv_deplibs_check_method=pass_all
6770 ;;
6771
6772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6773 lt_cv_deplibs_check_method=pass_all
6774 ;;
6775
6776 sysv4 | sysv4.3*)
6777 case $host_vendor in
6778 motorola)
6779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6780 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6781 ;;
6782 ncr)
6783 lt_cv_deplibs_check_method=pass_all
6784 ;;
6785 sequent)
6786 lt_cv_file_magic_cmd='/bin/file'
6787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6788 ;;
6789 sni)
6790 lt_cv_file_magic_cmd='/bin/file'
6791 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6792 lt_cv_file_magic_test_file=/lib/libc.so
6793 ;;
6794 siemens)
6795 lt_cv_deplibs_check_method=pass_all
6796 ;;
6797 pc)
6798 lt_cv_deplibs_check_method=pass_all
6799 ;;
6800 esac
6801 ;;
6802
6803 tpf*)
6804 lt_cv_deplibs_check_method=pass_all
6805 ;;
6806 os2*)
6807 lt_cv_deplibs_check_method=pass_all
6808 ;;
6809 esac
6810 ;;
6811 esac
6812 fi
6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6814 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6815
6816 file_magic_glob=
6817 want_nocaseglob=no
6818 if test "$build" = "$host"; then
6819 case $host_os in
6820 mingw* | windows* | pw32*)
6821 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6822 want_nocaseglob=yes
6823 else
6824 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6825 fi
6826 ;;
6827 esac
6828 fi
6829
6830 file_magic_cmd=$lt_cv_file_magic_cmd
6831 deplibs_check_method=$lt_cv_deplibs_check_method
6832 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855 if test -n "$ac_tool_prefix"; then
6856 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6857 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 printf %s "checking for $ac_word... " >&6; }
6860 if test ${ac_cv_prog_DLLTOOL+y}
6861 then :
6862 printf %s "(cached) " >&6
6863 else case e in #(
6864 e) if test -n "$DLLTOOL"; then
6865 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 case $as_dir in #(((
6872 '') as_dir=./ ;;
6873 */) ;;
6874 *) as_dir=$as_dir/ ;;
6875 esac
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi ;;
6887 esac
6888 fi
6889 DLLTOOL=$ac_cv_prog_DLLTOOL
6890 if test -n "$DLLTOOL"; then
6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6892 printf "%s\n" "$DLLTOOL" >&6; }
6893 else
6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 printf "%s\n" "no" >&6; }
6896 fi
6897
6898
6899 fi
6900 if test -z "$ac_cv_prog_DLLTOOL"; then
6901 ac_ct_DLLTOOL=$DLLTOOL
6902 # Extract the first word of "dlltool", so it can be a program name with args.
6903 set dummy dlltool; ac_word=$2
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 printf %s "checking for $ac_word... " >&6; }
6906 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6907 then :
6908 printf %s "(cached) " >&6
6909 else case e in #(
6910 e) if test -n "$ac_ct_DLLTOOL"; then
6911 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916 IFS=$as_save_IFS
6917 case $as_dir in #(((
6918 '') as_dir=./ ;;
6919 */) ;;
6920 *) as_dir=$as_dir/ ;;
6921 esac
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6924 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6926 break 2
6927 fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6931
6932 fi ;;
6933 esac
6934 fi
6935 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6936 if test -n "$ac_ct_DLLTOOL"; then
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6938 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6939 else
6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 printf "%s\n" "no" >&6; }
6942 fi
6943
6944 if test "x$ac_ct_DLLTOOL" = x; then
6945 DLLTOOL="false"
6946 else
6947 case $cross_compiling:$ac_tool_warned in
6948 yes:)
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6950 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951 ac_tool_warned=yes ;;
6952 esac
6953 DLLTOOL=$ac_ct_DLLTOOL
6954 fi
6955 else
6956 DLLTOOL="$ac_cv_prog_DLLTOOL"
6957 fi
6958
6959 test -z "$DLLTOOL" && DLLTOOL=dlltool
6960
6961
6962
6963
6964
6965
6966
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6968 printf %s "checking how to associate runtime and link libraries... " >&6; }
6969 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6970 then :
6971 printf %s "(cached) " >&6
6972 else case e in #(
6973 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6974
6975 case $host_os in
6976 cygwin* | mingw* | windows* | pw32* | cegcc*)
6977 # two different shell functions defined in ltmain.sh;
6978 # decide which one to use based on capabilities of $DLLTOOL
6979 case `$DLLTOOL --help 2>&1` in
6980 *--identify-strict*)
6981 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6982 ;;
6983 *)
6984 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6985 ;;
6986 esac
6987 ;;
6988 *)
6989 # fallback: assume linklib IS sharedlib
6990 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6991 ;;
6992 esac
6993 ;;
6994 esac
6995 fi
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6997 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6998 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6999 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7000
7001
7002
7003
7004
7005
7006
7007 if test -n "$ac_tool_prefix"; then
7008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7009 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 printf %s "checking for $ac_word... " >&6; }
7012 if test ${ac_cv_prog_RANLIB+y}
7013 then :
7014 printf %s "(cached) " >&6
7015 else case e in #(
7016 e) if test -n "$RANLIB"; then
7017 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7018 else
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7021 do
7022 IFS=$as_save_IFS
7023 case $as_dir in #(((
7024 '') as_dir=./ ;;
7025 */) ;;
7026 *) as_dir=$as_dir/ ;;
7027 esac
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038 fi ;;
7039 esac
7040 fi
7041 RANLIB=$ac_cv_prog_RANLIB
7042 if test -n "$RANLIB"; then
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7044 printf "%s\n" "$RANLIB" >&6; }
7045 else
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 printf "%s\n" "no" >&6; }
7048 fi
7049
7050
7051 fi
7052 if test -z "$ac_cv_prog_RANLIB"; then
7053 ac_ct_RANLIB=$RANLIB
7054 # Extract the first word of "ranlib", so it can be a program name with args.
7055 set dummy ranlib; ac_word=$2
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 printf %s "checking for $ac_word... " >&6; }
7058 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7059 then :
7060 printf %s "(cached) " >&6
7061 else case e in #(
7062 e) if test -n "$ac_ct_RANLIB"; then
7063 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068 IFS=$as_save_IFS
7069 case $as_dir in #(((
7070 '') as_dir=./ ;;
7071 */) ;;
7072 *) as_dir=$as_dir/ ;;
7073 esac
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_ac_ct_RANLIB="ranlib"
7077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084 fi ;;
7085 esac
7086 fi
7087 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7088 if test -n "$ac_ct_RANLIB"; then
7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7090 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7091 else
7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 printf "%s\n" "no" >&6; }
7094 fi
7095
7096 if test "x$ac_ct_RANLIB" = x; then
7097 RANLIB=":"
7098 else
7099 case $cross_compiling:$ac_tool_warned in
7100 yes:)
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7104 esac
7105 RANLIB=$ac_ct_RANLIB
7106 fi
7107 else
7108 RANLIB="$ac_cv_prog_RANLIB"
7109 fi
7110
7111 if test -n "$ac_tool_prefix"; then
7112 for ac_prog in ar
7113 do
7114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 printf %s "checking for $ac_word... " >&6; }
7118 if test ${ac_cv_prog_AR+y}
7119 then :
7120 printf %s "(cached) " >&6
7121 else case e in #(
7122 e) if test -n "$AR"; then
7123 ac_cv_prog_AR="$AR" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128 IFS=$as_save_IFS
7129 case $as_dir in #(((
7130 '') as_dir=./ ;;
7131 */) ;;
7132 *) as_dir=$as_dir/ ;;
7133 esac
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144 fi ;;
7145 esac
7146 fi
7147 AR=$ac_cv_prog_AR
7148 if test -n "$AR"; then
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7150 printf "%s\n" "$AR" >&6; }
7151 else
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 printf "%s\n" "no" >&6; }
7154 fi
7155
7156
7157 test -n "$AR" && break
7158 done
7159 fi
7160 if test -z "$AR"; then
7161 ac_ct_AR=$AR
7162 for ac_prog in ar
7163 do
7164 # Extract the first word of "$ac_prog", so it can be a program name with args.
7165 set dummy $ac_prog; ac_word=$2
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 printf %s "checking for $ac_word... " >&6; }
7168 if test ${ac_cv_prog_ac_ct_AR+y}
7169 then :
7170 printf %s "(cached) " >&6
7171 else case e in #(
7172 e) if test -n "$ac_ct_AR"; then
7173 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178 IFS=$as_save_IFS
7179 case $as_dir in #(((
7180 '') as_dir=./ ;;
7181 */) ;;
7182 *) as_dir=$as_dir/ ;;
7183 esac
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_ac_ct_AR="$ac_prog"
7187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194 fi ;;
7195 esac
7196 fi
7197 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7198 if test -n "$ac_ct_AR"; then
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7200 printf "%s\n" "$ac_ct_AR" >&6; }
7201 else
7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 printf "%s\n" "no" >&6; }
7204 fi
7205
7206
7207 test -n "$ac_ct_AR" && break
7208 done
7209
7210 if test "x$ac_ct_AR" = x; then
7211 AR="false"
7212 else
7213 case $cross_compiling:$ac_tool_warned in
7214 yes:)
7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7216 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217 ac_tool_warned=yes ;;
7218 esac
7219 AR=$ac_ct_AR
7220 fi
7221 fi
7222
7223 : ${AR=ar}
7224
7225
7226
7227
7228
7229
7230 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7231 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7232 # higher priority because that's what people were doing historically (setting
7233 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7234 # variable obsoleted/removed.
7235
7236 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7237 lt_ar_flags=$AR_FLAGS
7238
7239
7240
7241
7242
7243
7244 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7245 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7246
7247
7248
7249
7250
7251
7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7253 printf %s "checking for archiver @FILE support... " >&6; }
7254 if test ${lt_cv_ar_at_file+y}
7255 then :
7256 printf %s "(cached) " >&6
7257 else case e in #(
7258 e) lt_cv_ar_at_file=no
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261
7262 int
7263 main (void)
7264 {
7265
7266 ;
7267 return 0;
7268 }
7269 _ACEOF
7270 if ac_fn_c_try_compile "$LINENO"
7271 then :
7272 echo conftest.$ac_objext > conftest.lst
7273 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7275 (eval $lt_ar_try) 2>&5
7276 ac_status=$?
7277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7278 test $ac_status = 0; }
7279 if test 0 -eq "$ac_status"; then
7280 # Ensure the archiver fails upon bogus file names.
7281 rm -f conftest.$ac_objext libconftest.a
7282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7283 (eval $lt_ar_try) 2>&5
7284 ac_status=$?
7285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7286 test $ac_status = 0; }
7287 if test 0 -ne "$ac_status"; then
7288 lt_cv_ar_at_file=@
7289 fi
7290 fi
7291 rm -f conftest.* libconftest.a
7292
7293 fi
7294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7295 ;;
7296 esac
7297 fi
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7299 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7300
7301 if test no = "$lt_cv_ar_at_file"; then
7302 archiver_list_spec=
7303 else
7304 archiver_list_spec=$lt_cv_ar_at_file
7305 fi
7306
7307
7308
7309
7310
7311
7312
7313 if test -n "$ac_tool_prefix"; then
7314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7315 set dummy ${ac_tool_prefix}strip; ac_word=$2
7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 printf %s "checking for $ac_word... " >&6; }
7318 if test ${ac_cv_prog_STRIP+y}
7319 then :
7320 printf %s "(cached) " >&6
7321 else case e in #(
7322 e) if test -n "$STRIP"; then
7323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328 IFS=$as_save_IFS
7329 case $as_dir in #(((
7330 '') as_dir=./ ;;
7331 */) ;;
7332 *) as_dir=$as_dir/ ;;
7333 esac
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7338 break 2
7339 fi
7340 done
7341 done
7342 IFS=$as_save_IFS
7343
7344 fi ;;
7345 esac
7346 fi
7347 STRIP=$ac_cv_prog_STRIP
7348 if test -n "$STRIP"; then
7349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7350 printf "%s\n" "$STRIP" >&6; }
7351 else
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 printf "%s\n" "no" >&6; }
7354 fi
7355
7356
7357 fi
7358 if test -z "$ac_cv_prog_STRIP"; then
7359 ac_ct_STRIP=$STRIP
7360 # Extract the first word of "strip", so it can be a program name with args.
7361 set dummy strip; ac_word=$2
7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 printf %s "checking for $ac_word... " >&6; }
7364 if test ${ac_cv_prog_ac_ct_STRIP+y}
7365 then :
7366 printf %s "(cached) " >&6
7367 else case e in #(
7368 e) if test -n "$ac_ct_STRIP"; then
7369 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374 IFS=$as_save_IFS
7375 case $as_dir in #(((
7376 '') as_dir=./ ;;
7377 */) ;;
7378 *) as_dir=$as_dir/ ;;
7379 esac
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7382 ac_cv_prog_ac_ct_STRIP="strip"
7383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7384 break 2
7385 fi
7386 done
7387 done
7388 IFS=$as_save_IFS
7389
7390 fi ;;
7391 esac
7392 fi
7393 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7394 if test -n "$ac_ct_STRIP"; then
7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7396 printf "%s\n" "$ac_ct_STRIP" >&6; }
7397 else
7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 printf "%s\n" "no" >&6; }
7400 fi
7401
7402 if test "x$ac_ct_STRIP" = x; then
7403 STRIP=":"
7404 else
7405 case $cross_compiling:$ac_tool_warned in
7406 yes:)
7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7408 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7409 ac_tool_warned=yes ;;
7410 esac
7411 STRIP=$ac_ct_STRIP
7412 fi
7413 else
7414 STRIP="$ac_cv_prog_STRIP"
7415 fi
7416
7417 test -z "$STRIP" && STRIP=:
7418
7419
7420
7421
7422
7423
7424
7425 test -z "$RANLIB" && RANLIB=:
7426
7427
7428
7429
7430
7431
7432 # Determine commands to create old-style static archives.
7433 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7434 old_postinstall_cmds='chmod 644 $oldlib'
7435 old_postuninstall_cmds=
7436
7437 if test -n "$RANLIB"; then
7438 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7439 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7440 fi
7441
7442 case $host_os in
7443 darwin*)
7444 lock_old_archive_extraction=yes ;;
7445 *)
7446 lock_old_archive_extraction=no ;;
7447 esac
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487 # If no C compiler was specified, use CC.
7488 LTCC=${LTCC-"$CC"}
7489
7490 # If no C compiler flags were specified, use CFLAGS.
7491 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7492
7493 # Allow CC to be a program name with arguments.
7494 compiler=$CC
7495
7496
7497 # Check for command to grab the raw symbol name followed by C symbol from nm.
7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7499 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7500 if test ${lt_cv_sys_global_symbol_pipe+y}
7501 then :
7502 printf %s "(cached) " >&6
7503 else case e in #(
7504 e)
7505 # These are sane defaults that work on at least a few old systems.
7506 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7507
7508 # Character class describing NM global symbol codes.
7509 symcode='[BCDEGRST]'
7510
7511 # Regexp to match symbols that can be accessed directly from C.
7512 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7513
7514 # Define system-specific variables.
7515 case $host_os in
7516 aix*)
7517 symcode='[BCDT]'
7518 ;;
7519 cygwin* | mingw* | windows* | pw32* | cegcc*)
7520 symcode='[ABCDGISTW]'
7521 ;;
7522 hpux*)
7523 if test ia64 = "$host_cpu"; then
7524 symcode='[ABCDEGRST]'
7525 fi
7526 ;;
7527 irix* | nonstopux*)
7528 symcode='[BCDEGRST]'
7529 ;;
7530 osf*)
7531 symcode='[BCDEGQRST]'
7532 ;;
7533 solaris*)
7534 symcode='[BCDRT]'
7535 ;;
7536 sco3.2v5*)
7537 symcode='[DT]'
7538 ;;
7539 sysv4.2uw2*)
7540 symcode='[DT]'
7541 ;;
7542 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7543 symcode='[ABDT]'
7544 ;;
7545 sysv4)
7546 symcode='[DFNSTU]'
7547 ;;
7548 esac
7549
7550 # If we're using GNU nm, then use its standard symbol codes.
7551 case `$NM -V 2>&1` in
7552 *GNU* | *'with BFD'*)
7553 symcode='[ABCDGIRSTW]' ;;
7554 esac
7555
7556 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7557 # Gets list of data symbols to import.
7558 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7559 # Adjust the below global symbol transforms to fixup imported variables.
7560 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7561 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7562 lt_c_name_lib_hook="\
7563 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7564 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7565 else
7566 # Disable hooks by default.
7567 lt_cv_sys_global_symbol_to_import=
7568 lt_cdecl_hook=
7569 lt_c_name_hook=
7570 lt_c_name_lib_hook=
7571 fi
7572
7573 # Transform an extracted symbol line into a proper C declaration.
7574 # Some systems (esp. on ia64) link data and code symbols differently,
7575 # so use this general approach.
7576 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7577 $lt_cdecl_hook\
7578 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7579 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7580
7581 # Transform an extracted symbol line into symbol name and symbol address
7582 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7583 $lt_c_name_hook\
7584 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7585 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7586
7587 # Transform an extracted symbol line into symbol name with lib prefix and
7588 # symbol address.
7589 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7590 $lt_c_name_lib_hook\
7591 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7592 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7593 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7594
7595 # Handle CRLF in mingw tool chain
7596 opt_cr=
7597 case $build_os in
7598 mingw* | windows*)
7599 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7600 ;;
7601 esac
7602
7603 # Try without a prefix underscore, then with it.
7604 for ac_symprfx in "" "_"; do
7605
7606 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7607 symxfrm="\\1 $ac_symprfx\\2 \\2"
7608
7609 # Write the raw and C identifiers.
7610 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7611 # Fake it for dumpbin and say T for any non-static function,
7612 # D for any global variable and I for any imported variable.
7613 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7614 # which start with @ or ?.
7615 lt_cv_sys_global_symbol_pipe="$AWK '"\
7616 " {last_section=section; section=\$ 3};"\
7617 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7618 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7619 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7620 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7621 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7622 " \$ 0!~/External *\|/{next};"\
7623 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7624 " {if(hide[section]) next};"\
7625 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7626 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7627 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7628 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7629 " ' prfx=^$ac_symprfx"
7630 else
7631 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7632 fi
7633 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7634
7635 # Check to see that the pipe works correctly.
7636 pipe_works=no
7637
7638 rm -f conftest*
7639 cat > conftest.$ac_ext <<_LT_EOF
7640 #ifdef __cplusplus
7641 extern "C" {
7642 #endif
7643 char nm_test_var;
7644 void nm_test_func(void);
7645 void nm_test_func(void){}
7646 #ifdef __cplusplus
7647 }
7648 #endif
7649 int main(void){nm_test_var='a';nm_test_func();return(0);}
7650 _LT_EOF
7651
7652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7653 (eval $ac_compile) 2>&5
7654 ac_status=$?
7655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7656 test $ac_status = 0; }; then
7657 # Now try to grab the symbols.
7658 nlist=conftest.nm
7659 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7660 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7661 # Try sorting and uniquifying the output.
7662 if sort "$nlist" | uniq > "$nlist"T; then
7663 mv -f "$nlist"T "$nlist"
7664 else
7665 rm -f "$nlist"T
7666 fi
7667
7668 # Make sure that we snagged all the symbols we need.
7669 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7670 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7671 cat <<_LT_EOF > conftest.$ac_ext
7672 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7673 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7674 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7675 relocations are performed -- see ld's documentation on pseudo-relocs. */
7676 # define LT_DLSYM_CONST
7677 #elif defined __osf__
7678 /* This system does not cope well with relocations in const data. */
7679 # define LT_DLSYM_CONST
7680 #else
7681 # define LT_DLSYM_CONST const
7682 #endif
7683
7684 #ifdef __cplusplus
7685 extern "C" {
7686 #endif
7687
7688 _LT_EOF
7689 # Now generate the symbol file.
7690 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7691
7692 cat <<_LT_EOF >> conftest.$ac_ext
7693
7694 /* The mapping between symbol names and symbols. */
7695 LT_DLSYM_CONST struct {
7696 const char *name;
7697 void *address;
7698 }
7699 lt__PROGRAM__LTX_preloaded_symbols[] =
7700 {
7701 { "@PROGRAM@", (void *) 0 },
7702 _LT_EOF
7703 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7704 cat <<\_LT_EOF >> conftest.$ac_ext
7705 {0, (void *) 0}
7706 };
7707
7708 /* This works around a problem in FreeBSD linker */
7709 #ifdef FREEBSD_WORKAROUND
7710 static const void *lt_preloaded_setup() {
7711 return lt__PROGRAM__LTX_preloaded_symbols;
7712 }
7713 #endif
7714
7715 #ifdef __cplusplus
7716 }
7717 #endif
7718 _LT_EOF
7719 # Now try linking the two files.
7720 mv conftest.$ac_objext conftstm.$ac_objext
7721 lt_globsym_save_LIBS=$LIBS
7722 lt_globsym_save_CFLAGS=$CFLAGS
7723 LIBS=conftstm.$ac_objext
7724 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7726 (eval $ac_link) 2>&5
7727 ac_status=$?
7728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7729 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7730 pipe_works=yes
7731 fi
7732 LIBS=$lt_globsym_save_LIBS
7733 CFLAGS=$lt_globsym_save_CFLAGS
7734 else
7735 echo "cannot find nm_test_func in $nlist" >&5
7736 fi
7737 else
7738 echo "cannot find nm_test_var in $nlist" >&5
7739 fi
7740 else
7741 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7742 fi
7743 else
7744 echo "$progname: failed program was:" >&5
7745 cat conftest.$ac_ext >&5
7746 fi
7747 rm -rf conftest* conftst*
7748
7749 # Do not use the global_symbol_pipe unless it works.
7750 if test yes = "$pipe_works"; then
7751 break
7752 else
7753 lt_cv_sys_global_symbol_pipe=
7754 fi
7755 done
7756 ;;
7757 esac
7758 fi
7759
7760 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7761 lt_cv_sys_global_symbol_to_cdecl=
7762 fi
7763 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7765 printf "%s\n" "failed" >&6; }
7766 else
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7768 printf "%s\n" "ok" >&6; }
7769 fi
7770
7771 # Response file support.
7772 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7773 nm_file_list_spec='@'
7774 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7775 nm_file_list_spec='@'
7776 fi
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7815 printf %s "checking for sysroot... " >&6; }
7816
7817 # Check whether --with-sysroot was given.
7818 if test ${with_sysroot+y}
7819 then :
7820 withval=$with_sysroot;
7821 else case e in #(
7822 e) with_sysroot=no ;;
7823 esac
7824 fi
7825
7826
7827 lt_sysroot=
7828 case $with_sysroot in #(
7829 yes)
7830 if test yes = "$GCC"; then
7831 # Trim trailing / since we'll always append absolute paths and we want
7832 # to avoid //, if only for less confusing output for the user.
7833 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7834 fi
7835 ;; #(
7836 /*)
7837 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7838 ;; #(
7839 no|'')
7840 ;; #(
7841 *)
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7843 printf "%s\n" "$with_sysroot" >&6; }
7844 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7845 ;;
7846 esac
7847
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7849 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7850
7851
7852
7853
7854
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7856 printf %s "checking for a working dd... " >&6; }
7857 if test ${ac_cv_path_lt_DD+y}
7858 then :
7859 printf %s "(cached) " >&6
7860 else case e in #(
7861 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7862 cat conftest.i conftest.i >conftest2.i
7863 : ${lt_DD:=$DD}
7864 if test -z "$lt_DD"; then
7865 ac_path_lt_DD_found=false
7866 # Loop through the user's path and test for each of PROGNAME-LIST
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 case $as_dir in #(((
7872 '') as_dir=./ ;;
7873 */) ;;
7874 *) as_dir=$as_dir/ ;;
7875 esac
7876 for ac_prog in dd
7877 do
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7880 as_fn_executable_p "$ac_path_lt_DD" || continue
7881 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7882 cmp -s conftest.i conftest.out \
7883 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7884 fi
7885 $ac_path_lt_DD_found && break 3
7886 done
7887 done
7888 done
7889 IFS=$as_save_IFS
7890 if test -z "$ac_cv_path_lt_DD"; then
7891 :
7892 fi
7893 else
7894 ac_cv_path_lt_DD=$lt_DD
7895 fi
7896
7897 rm -f conftest.i conftest2.i conftest.out ;;
7898 esac
7899 fi
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7901 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7902
7903
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7905 printf %s "checking how to truncate binary pipes... " >&6; }
7906 if test ${lt_cv_truncate_bin+y}
7907 then :
7908 printf %s "(cached) " >&6
7909 else case e in #(
7910 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7911 cat conftest.i conftest.i >conftest2.i
7912 lt_cv_truncate_bin=
7913 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7914 cmp -s conftest.i conftest.out \
7915 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7916 fi
7917 rm -f conftest.i conftest2.i conftest.out
7918 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7919 esac
7920 fi
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7922 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7923
7924
7925
7926
7927
7928
7929
7930 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7931 func_cc_basename ()
7932 {
7933 for cc_temp in $*""; do
7934 case $cc_temp in
7935 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7936 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7937 \-*) ;;
7938 *) break;;
7939 esac
7940 done
7941 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7942 }
7943
7944 # Check whether --enable-libtool-lock was given.
7945 if test ${enable_libtool_lock+y}
7946 then :
7947 enableval=$enable_libtool_lock;
7948 fi
7949
7950 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7951
7952 # Some flags need to be propagated to the compiler or linker for good
7953 # libtool support.
7954 case $host in
7955 ia64-*-hpux*)
7956 # Find out what ABI is being produced by ac_compile, and set mode
7957 # options accordingly.
7958 echo 'int i;' > conftest.$ac_ext
7959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7960 (eval $ac_compile) 2>&5
7961 ac_status=$?
7962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7963 test $ac_status = 0; }; then
7964 case `$FILECMD conftest.$ac_objext` in
7965 *ELF-32*)
7966 HPUX_IA64_MODE=32
7967 ;;
7968 *ELF-64*)
7969 HPUX_IA64_MODE=64
7970 ;;
7971 esac
7972 fi
7973 rm -rf conftest*
7974 ;;
7975 *-*-irix6*)
7976 # Find out what ABI is being produced by ac_compile, and set linker
7977 # options accordingly.
7978 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7980 (eval $ac_compile) 2>&5
7981 ac_status=$?
7982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7983 test $ac_status = 0; }; then
7984 if test yes = "$lt_cv_prog_gnu_ld"; then
7985 case `$FILECMD conftest.$ac_objext` in
7986 *32-bit*)
7987 LD="${LD-ld} -melf32bsmip"
7988 ;;
7989 *N32*)
7990 LD="${LD-ld} -melf32bmipn32"
7991 ;;
7992 *64-bit*)
7993 LD="${LD-ld} -melf64bmip"
7994 ;;
7995 esac
7996 else
7997 case `$FILECMD conftest.$ac_objext` in
7998 *32-bit*)
7999 LD="${LD-ld} -32"
8000 ;;
8001 *N32*)
8002 LD="${LD-ld} -n32"
8003 ;;
8004 *64-bit*)
8005 LD="${LD-ld} -64"
8006 ;;
8007 esac
8008 fi
8009 fi
8010 rm -rf conftest*
8011 ;;
8012
8013 mips64*-*linux*)
8014 # Find out what ABI is being produced by ac_compile, and set linker
8015 # options accordingly.
8016 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8018 (eval $ac_compile) 2>&5
8019 ac_status=$?
8020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8021 test $ac_status = 0; }; then
8022 emul=elf
8023 case `$FILECMD conftest.$ac_objext` in
8024 *32-bit*)
8025 emul="${emul}32"
8026 ;;
8027 *64-bit*)
8028 emul="${emul}64"
8029 ;;
8030 esac
8031 case `$FILECMD conftest.$ac_objext` in
8032 *MSB*)
8033 emul="${emul}btsmip"
8034 ;;
8035 *LSB*)
8036 emul="${emul}ltsmip"
8037 ;;
8038 esac
8039 case `$FILECMD conftest.$ac_objext` in
8040 *N32*)
8041 emul="${emul}n32"
8042 ;;
8043 esac
8044 LD="${LD-ld} -m $emul"
8045 fi
8046 rm -rf conftest*
8047 ;;
8048
8049 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8050 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8051 # Find out what ABI is being produced by ac_compile, and set linker
8052 # options accordingly. Note that the listed cases only cover the
8053 # situations where additional linker options are needed (such as when
8054 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8055 # vice versa); the common cases where no linker options are needed do
8056 # not appear in the list.
8057 echo 'int i;' > conftest.$ac_ext
8058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8059 (eval $ac_compile) 2>&5
8060 ac_status=$?
8061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8062 test $ac_status = 0; }; then
8063 case `$FILECMD conftest.o` in
8064 *32-bit*)
8065 case $host in
8066 x86_64-*kfreebsd*-gnu)
8067 LD="${LD-ld} -m elf_i386_fbsd"
8068 ;;
8069 x86_64-*linux*|x86_64-gnu*)
8070 case `$FILECMD conftest.o` in
8071 *x86-64*)
8072 LD="${LD-ld} -m elf32_x86_64"
8073 ;;
8074 *)
8075 LD="${LD-ld} -m elf_i386"
8076 ;;
8077 esac
8078 ;;
8079 powerpc64le-*linux*)
8080 LD="${LD-ld} -m elf32lppclinux"
8081 ;;
8082 powerpc64-*linux*)
8083 LD="${LD-ld} -m elf32ppclinux"
8084 ;;
8085 s390x-*linux*)
8086 LD="${LD-ld} -m elf_s390"
8087 ;;
8088 sparc64-*linux*)
8089 LD="${LD-ld} -m elf32_sparc"
8090 ;;
8091 esac
8092 ;;
8093 *64-bit*)
8094 case $host in
8095 x86_64-*kfreebsd*-gnu)
8096 LD="${LD-ld} -m elf_x86_64_fbsd"
8097 ;;
8098 x86_64-*linux*|x86_64-gnu*)
8099 LD="${LD-ld} -m elf_x86_64"
8100 ;;
8101 powerpcle-*linux*)
8102 LD="${LD-ld} -m elf64lppc"
8103 ;;
8104 powerpc-*linux*)
8105 LD="${LD-ld} -m elf64ppc"
8106 ;;
8107 s390*-*linux*|s390*-*tpf*)
8108 LD="${LD-ld} -m elf64_s390"
8109 ;;
8110 sparc*-*linux*)
8111 LD="${LD-ld} -m elf64_sparc"
8112 ;;
8113 esac
8114 ;;
8115 esac
8116 fi
8117 rm -rf conftest*
8118 ;;
8119
8120 *-*-sco3.2v5*)
8121 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8122 SAVE_CFLAGS=$CFLAGS
8123 CFLAGS="$CFLAGS -belf"
8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8125 printf %s "checking whether the C compiler needs -belf... " >&6; }
8126 if test ${lt_cv_cc_needs_belf+y}
8127 then :
8128 printf %s "(cached) " >&6
8129 else case e in #(
8130 e) ac_ext=c
8131 ac_cpp='$CPP $CPPFLAGS'
8132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8135
8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h. */
8138
8139 int
8140 main (void)
8141 {
8142
8143 ;
8144 return 0;
8145 }
8146 _ACEOF
8147 if ac_fn_c_try_link "$LINENO"
8148 then :
8149 lt_cv_cc_needs_belf=yes
8150 else case e in #(
8151 e) lt_cv_cc_needs_belf=no ;;
8152 esac
8153 fi
8154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8155 conftest$ac_exeext conftest.$ac_ext
8156 ac_ext=c
8157 ac_cpp='$CPP $CPPFLAGS'
8158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8161 ;;
8162 esac
8163 fi
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8165 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8166 if test yes != "$lt_cv_cc_needs_belf"; then
8167 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8168 CFLAGS=$SAVE_CFLAGS
8169 fi
8170 ;;
8171 *-*solaris*)
8172 # Find out what ABI is being produced by ac_compile, and set linker
8173 # options accordingly.
8174 echo 'int i;' > conftest.$ac_ext
8175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8176 (eval $ac_compile) 2>&5
8177 ac_status=$?
8178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8179 test $ac_status = 0; }; then
8180 case `$FILECMD conftest.o` in
8181 *64-bit*)
8182 case $lt_cv_prog_gnu_ld in
8183 yes*)
8184 case $host in
8185 i?86-*-solaris*|x86_64-*-solaris*)
8186 LD="${LD-ld} -m elf_x86_64"
8187 ;;
8188 sparc*-*-solaris*)
8189 LD="${LD-ld} -m elf64_sparc"
8190 ;;
8191 esac
8192 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8193 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8194 LD=${LD-ld}_sol2
8195 fi
8196 ;;
8197 *)
8198 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8199 LD="${LD-ld} -64"
8200 fi
8201 ;;
8202 esac
8203 ;;
8204 esac
8205 fi
8206 rm -rf conftest*
8207 ;;
8208 esac
8209
8210 need_locks=$enable_libtool_lock
8211
8212 if test -n "$ac_tool_prefix"; then
8213 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8214 set dummy ${ac_tool_prefix}mt; ac_word=$2
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 printf %s "checking for $ac_word... " >&6; }
8217 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8218 then :
8219 printf %s "(cached) " >&6
8220 else case e in #(
8221 e) if test -n "$MANIFEST_TOOL"; then
8222 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8226 do
8227 IFS=$as_save_IFS
8228 case $as_dir in #(((
8229 '') as_dir=./ ;;
8230 */) ;;
8231 *) as_dir=$as_dir/ ;;
8232 esac
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8235 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8237 break 2
8238 fi
8239 done
8240 done
8241 IFS=$as_save_IFS
8242
8243 fi ;;
8244 esac
8245 fi
8246 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8247 if test -n "$MANIFEST_TOOL"; then
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8249 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8250 else
8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 printf "%s\n" "no" >&6; }
8253 fi
8254
8255
8256 fi
8257 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8258 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8259 # Extract the first word of "mt", so it can be a program name with args.
8260 set dummy mt; ac_word=$2
8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 printf %s "checking for $ac_word... " >&6; }
8263 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8264 then :
8265 printf %s "(cached) " >&6
8266 else case e in #(
8267 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8268 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273 IFS=$as_save_IFS
8274 case $as_dir in #(((
8275 '') as_dir=./ ;;
8276 */) ;;
8277 *) as_dir=$as_dir/ ;;
8278 esac
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8281 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8283 break 2
8284 fi
8285 done
8286 done
8287 IFS=$as_save_IFS
8288
8289 fi ;;
8290 esac
8291 fi
8292 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8293 if test -n "$ac_ct_MANIFEST_TOOL"; then
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8295 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8296 else
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 printf "%s\n" "no" >&6; }
8299 fi
8300
8301 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8302 MANIFEST_TOOL=":"
8303 else
8304 case $cross_compiling:$ac_tool_warned in
8305 yes:)
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8308 ac_tool_warned=yes ;;
8309 esac
8310 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8311 fi
8312 else
8313 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8314 fi
8315
8316 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8318 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8319 if test ${lt_cv_path_manifest_tool+y}
8320 then :
8321 printf %s "(cached) " >&6
8322 else case e in #(
8323 e) lt_cv_path_manifest_tool=no
8324 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8325 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8326 cat conftest.err >&5
8327 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8328 lt_cv_path_manifest_tool=yes
8329 fi
8330 rm -f conftest* ;;
8331 esac
8332 fi
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8334 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8335 if test yes != "$lt_cv_path_manifest_tool"; then
8336 MANIFEST_TOOL=:
8337 fi
8338
8339
8340
8341
8342
8343
8344 case $host_os in
8345 rhapsody* | darwin*)
8346 if test -n "$ac_tool_prefix"; then
8347 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8348 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 printf %s "checking for $ac_word... " >&6; }
8351 if test ${ac_cv_prog_DSYMUTIL+y}
8352 then :
8353 printf %s "(cached) " >&6
8354 else case e in #(
8355 e) if test -n "$DSYMUTIL"; then
8356 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8360 do
8361 IFS=$as_save_IFS
8362 case $as_dir in #(((
8363 '') as_dir=./ ;;
8364 */) ;;
8365 *) as_dir=$as_dir/ ;;
8366 esac
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8369 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8371 break 2
8372 fi
8373 done
8374 done
8375 IFS=$as_save_IFS
8376
8377 fi ;;
8378 esac
8379 fi
8380 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8381 if test -n "$DSYMUTIL"; then
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8383 printf "%s\n" "$DSYMUTIL" >&6; }
8384 else
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 printf "%s\n" "no" >&6; }
8387 fi
8388
8389
8390 fi
8391 if test -z "$ac_cv_prog_DSYMUTIL"; then
8392 ac_ct_DSYMUTIL=$DSYMUTIL
8393 # Extract the first word of "dsymutil", so it can be a program name with args.
8394 set dummy dsymutil; ac_word=$2
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396 printf %s "checking for $ac_word... " >&6; }
8397 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8398 then :
8399 printf %s "(cached) " >&6
8400 else case e in #(
8401 e) if test -n "$ac_ct_DSYMUTIL"; then
8402 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8406 do
8407 IFS=$as_save_IFS
8408 case $as_dir in #(((
8409 '') as_dir=./ ;;
8410 */) ;;
8411 *) as_dir=$as_dir/ ;;
8412 esac
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8415 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8417 break 2
8418 fi
8419 done
8420 done
8421 IFS=$as_save_IFS
8422
8423 fi ;;
8424 esac
8425 fi
8426 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8427 if test -n "$ac_ct_DSYMUTIL"; then
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8429 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8430 else
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 printf "%s\n" "no" >&6; }
8433 fi
8434
8435 if test "x$ac_ct_DSYMUTIL" = x; then
8436 DSYMUTIL=":"
8437 else
8438 case $cross_compiling:$ac_tool_warned in
8439 yes:)
8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8441 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8442 ac_tool_warned=yes ;;
8443 esac
8444 DSYMUTIL=$ac_ct_DSYMUTIL
8445 fi
8446 else
8447 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8448 fi
8449
8450 if test -n "$ac_tool_prefix"; then
8451 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8452 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 printf %s "checking for $ac_word... " >&6; }
8455 if test ${ac_cv_prog_NMEDIT+y}
8456 then :
8457 printf %s "(cached) " >&6
8458 else case e in #(
8459 e) if test -n "$NMEDIT"; then
8460 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8461 else
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in $PATH
8464 do
8465 IFS=$as_save_IFS
8466 case $as_dir in #(((
8467 '') as_dir=./ ;;
8468 */) ;;
8469 *) as_dir=$as_dir/ ;;
8470 esac
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8473 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8475 break 2
8476 fi
8477 done
8478 done
8479 IFS=$as_save_IFS
8480
8481 fi ;;
8482 esac
8483 fi
8484 NMEDIT=$ac_cv_prog_NMEDIT
8485 if test -n "$NMEDIT"; then
8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8487 printf "%s\n" "$NMEDIT" >&6; }
8488 else
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8490 printf "%s\n" "no" >&6; }
8491 fi
8492
8493
8494 fi
8495 if test -z "$ac_cv_prog_NMEDIT"; then
8496 ac_ct_NMEDIT=$NMEDIT
8497 # Extract the first word of "nmedit", so it can be a program name with args.
8498 set dummy nmedit; ac_word=$2
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 printf %s "checking for $ac_word... " >&6; }
8501 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8502 then :
8503 printf %s "(cached) " >&6
8504 else case e in #(
8505 e) if test -n "$ac_ct_NMEDIT"; then
8506 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8507 else
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8510 do
8511 IFS=$as_save_IFS
8512 case $as_dir in #(((
8513 '') as_dir=./ ;;
8514 */) ;;
8515 *) as_dir=$as_dir/ ;;
8516 esac
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8519 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8521 break 2
8522 fi
8523 done
8524 done
8525 IFS=$as_save_IFS
8526
8527 fi ;;
8528 esac
8529 fi
8530 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8531 if test -n "$ac_ct_NMEDIT"; then
8532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8533 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8534 else
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536 printf "%s\n" "no" >&6; }
8537 fi
8538
8539 if test "x$ac_ct_NMEDIT" = x; then
8540 NMEDIT=":"
8541 else
8542 case $cross_compiling:$ac_tool_warned in
8543 yes:)
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8545 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8546 ac_tool_warned=yes ;;
8547 esac
8548 NMEDIT=$ac_ct_NMEDIT
8549 fi
8550 else
8551 NMEDIT="$ac_cv_prog_NMEDIT"
8552 fi
8553
8554 if test -n "$ac_tool_prefix"; then
8555 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8556 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 printf %s "checking for $ac_word... " >&6; }
8559 if test ${ac_cv_prog_LIPO+y}
8560 then :
8561 printf %s "(cached) " >&6
8562 else case e in #(
8563 e) if test -n "$LIPO"; then
8564 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8565 else
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 for as_dir in $PATH
8568 do
8569 IFS=$as_save_IFS
8570 case $as_dir in #(((
8571 '') as_dir=./ ;;
8572 */) ;;
8573 *) as_dir=$as_dir/ ;;
8574 esac
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8577 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8579 break 2
8580 fi
8581 done
8582 done
8583 IFS=$as_save_IFS
8584
8585 fi ;;
8586 esac
8587 fi
8588 LIPO=$ac_cv_prog_LIPO
8589 if test -n "$LIPO"; then
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8591 printf "%s\n" "$LIPO" >&6; }
8592 else
8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 printf "%s\n" "no" >&6; }
8595 fi
8596
8597
8598 fi
8599 if test -z "$ac_cv_prog_LIPO"; then
8600 ac_ct_LIPO=$LIPO
8601 # Extract the first word of "lipo", so it can be a program name with args.
8602 set dummy lipo; ac_word=$2
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 printf %s "checking for $ac_word... " >&6; }
8605 if test ${ac_cv_prog_ac_ct_LIPO+y}
8606 then :
8607 printf %s "(cached) " >&6
8608 else case e in #(
8609 e) if test -n "$ac_ct_LIPO"; then
8610 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8611 else
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH
8614 do
8615 IFS=$as_save_IFS
8616 case $as_dir in #(((
8617 '') as_dir=./ ;;
8618 */) ;;
8619 *) as_dir=$as_dir/ ;;
8620 esac
8621 for ac_exec_ext in '' $ac_executable_extensions; do
8622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8623 ac_cv_prog_ac_ct_LIPO="lipo"
8624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8625 break 2
8626 fi
8627 done
8628 done
8629 IFS=$as_save_IFS
8630
8631 fi ;;
8632 esac
8633 fi
8634 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8635 if test -n "$ac_ct_LIPO"; then
8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8637 printf "%s\n" "$ac_ct_LIPO" >&6; }
8638 else
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640 printf "%s\n" "no" >&6; }
8641 fi
8642
8643 if test "x$ac_ct_LIPO" = x; then
8644 LIPO=":"
8645 else
8646 case $cross_compiling:$ac_tool_warned in
8647 yes:)
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8649 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8650 ac_tool_warned=yes ;;
8651 esac
8652 LIPO=$ac_ct_LIPO
8653 fi
8654 else
8655 LIPO="$ac_cv_prog_LIPO"
8656 fi
8657
8658 if test -n "$ac_tool_prefix"; then
8659 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8660 set dummy ${ac_tool_prefix}otool; ac_word=$2
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662 printf %s "checking for $ac_word... " >&6; }
8663 if test ${ac_cv_prog_OTOOL+y}
8664 then :
8665 printf %s "(cached) " >&6
8666 else case e in #(
8667 e) if test -n "$OTOOL"; then
8668 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8669 else
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 for as_dir in $PATH
8672 do
8673 IFS=$as_save_IFS
8674 case $as_dir in #(((
8675 '') as_dir=./ ;;
8676 */) ;;
8677 *) as_dir=$as_dir/ ;;
8678 esac
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8681 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8683 break 2
8684 fi
8685 done
8686 done
8687 IFS=$as_save_IFS
8688
8689 fi ;;
8690 esac
8691 fi
8692 OTOOL=$ac_cv_prog_OTOOL
8693 if test -n "$OTOOL"; then
8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8695 printf "%s\n" "$OTOOL" >&6; }
8696 else
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 printf "%s\n" "no" >&6; }
8699 fi
8700
8701
8702 fi
8703 if test -z "$ac_cv_prog_OTOOL"; then
8704 ac_ct_OTOOL=$OTOOL
8705 # Extract the first word of "otool", so it can be a program name with args.
8706 set dummy otool; ac_word=$2
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 printf %s "checking for $ac_word... " >&6; }
8709 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8710 then :
8711 printf %s "(cached) " >&6
8712 else case e in #(
8713 e) if test -n "$ac_ct_OTOOL"; then
8714 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8715 else
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8718 do
8719 IFS=$as_save_IFS
8720 case $as_dir in #(((
8721 '') as_dir=./ ;;
8722 */) ;;
8723 *) as_dir=$as_dir/ ;;
8724 esac
8725 for ac_exec_ext in '' $ac_executable_extensions; do
8726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8727 ac_cv_prog_ac_ct_OTOOL="otool"
8728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8729 break 2
8730 fi
8731 done
8732 done
8733 IFS=$as_save_IFS
8734
8735 fi ;;
8736 esac
8737 fi
8738 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8739 if test -n "$ac_ct_OTOOL"; then
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8741 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8742 else
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 printf "%s\n" "no" >&6; }
8745 fi
8746
8747 if test "x$ac_ct_OTOOL" = x; then
8748 OTOOL=":"
8749 else
8750 case $cross_compiling:$ac_tool_warned in
8751 yes:)
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8753 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8754 ac_tool_warned=yes ;;
8755 esac
8756 OTOOL=$ac_ct_OTOOL
8757 fi
8758 else
8759 OTOOL="$ac_cv_prog_OTOOL"
8760 fi
8761
8762 if test -n "$ac_tool_prefix"; then
8763 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8764 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766 printf %s "checking for $ac_word... " >&6; }
8767 if test ${ac_cv_prog_OTOOL64+y}
8768 then :
8769 printf %s "(cached) " >&6
8770 else case e in #(
8771 e) if test -n "$OTOOL64"; then
8772 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8773 else
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8776 do
8777 IFS=$as_save_IFS
8778 case $as_dir in #(((
8779 '') as_dir=./ ;;
8780 */) ;;
8781 *) as_dir=$as_dir/ ;;
8782 esac
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8785 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8787 break 2
8788 fi
8789 done
8790 done
8791 IFS=$as_save_IFS
8792
8793 fi ;;
8794 esac
8795 fi
8796 OTOOL64=$ac_cv_prog_OTOOL64
8797 if test -n "$OTOOL64"; then
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8799 printf "%s\n" "$OTOOL64" >&6; }
8800 else
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 printf "%s\n" "no" >&6; }
8803 fi
8804
8805
8806 fi
8807 if test -z "$ac_cv_prog_OTOOL64"; then
8808 ac_ct_OTOOL64=$OTOOL64
8809 # Extract the first word of "otool64", so it can be a program name with args.
8810 set dummy otool64; ac_word=$2
8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812 printf %s "checking for $ac_word... " >&6; }
8813 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8814 then :
8815 printf %s "(cached) " >&6
8816 else case e in #(
8817 e) if test -n "$ac_ct_OTOOL64"; then
8818 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8819 else
8820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8821 for as_dir in $PATH
8822 do
8823 IFS=$as_save_IFS
8824 case $as_dir in #(((
8825 '') as_dir=./ ;;
8826 */) ;;
8827 *) as_dir=$as_dir/ ;;
8828 esac
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8831 ac_cv_prog_ac_ct_OTOOL64="otool64"
8832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8833 break 2
8834 fi
8835 done
8836 done
8837 IFS=$as_save_IFS
8838
8839 fi ;;
8840 esac
8841 fi
8842 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8843 if test -n "$ac_ct_OTOOL64"; then
8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8845 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8846 else
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 printf "%s\n" "no" >&6; }
8849 fi
8850
8851 if test "x$ac_ct_OTOOL64" = x; then
8852 OTOOL64=":"
8853 else
8854 case $cross_compiling:$ac_tool_warned in
8855 yes:)
8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8858 ac_tool_warned=yes ;;
8859 esac
8860 OTOOL64=$ac_ct_OTOOL64
8861 fi
8862 else
8863 OTOOL64="$ac_cv_prog_OTOOL64"
8864 fi
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8893 printf %s "checking for -single_module linker flag... " >&6; }
8894 if test ${lt_cv_apple_cc_single_mod+y}
8895 then :
8896 printf %s "(cached) " >&6
8897 else case e in #(
8898 e) lt_cv_apple_cc_single_mod=no
8899 if test -z "$LT_MULTI_MODULE"; then
8900 # By default we will add the -single_module flag. You can override
8901 # by either setting the environment variable LT_MULTI_MODULE
8902 # non-empty at configure time, or by adding -multi_module to the
8903 # link flags.
8904 rm -rf libconftest.dylib*
8905 echo "int foo(void){return 1;}" > conftest.c
8906 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8907 -dynamiclib -Wl,-single_module conftest.c" >&5
8908 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8909 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8910 _lt_result=$?
8911 # If there is a non-empty error log, and "single_module"
8912 # appears in it, assume the flag caused a linker warning
8913 if test -s conftest.err && $GREP single_module conftest.err; then
8914 cat conftest.err >&5
8915 # Otherwise, if the output was created with a 0 exit code from
8916 # the compiler, it worked.
8917 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8918 lt_cv_apple_cc_single_mod=yes
8919 else
8920 cat conftest.err >&5
8921 fi
8922 rm -rf libconftest.dylib*
8923 rm -f conftest.*
8924 fi ;;
8925 esac
8926 fi
8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8928 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8929
8930 # Feature test to disable chained fixups since it is not
8931 # compatible with '-undefined dynamic_lookup'
8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8933 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8934 if test ${lt_cv_support_no_fixup_chains+y}
8935 then :
8936 printf %s "(cached) " >&6
8937 else case e in #(
8938 e) save_LDFLAGS=$LDFLAGS
8939 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942
8943 int
8944 main (void)
8945 {
8946
8947 ;
8948 return 0;
8949 }
8950 _ACEOF
8951 if ac_fn_c_try_link "$LINENO"
8952 then :
8953 lt_cv_support_no_fixup_chains=yes
8954 else case e in #(
8955 e) lt_cv_support_no_fixup_chains=no
8956 ;;
8957 esac
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8960 conftest$ac_exeext conftest.$ac_ext
8961 LDFLAGS=$save_LDFLAGS
8962
8963 ;;
8964 esac
8965 fi
8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8967 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8968
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8970 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8971 if test ${lt_cv_ld_exported_symbols_list+y}
8972 then :
8973 printf %s "(cached) " >&6
8974 else case e in #(
8975 e) lt_cv_ld_exported_symbols_list=no
8976 save_LDFLAGS=$LDFLAGS
8977 echo "_main" > conftest.sym
8978 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8981
8982 int
8983 main (void)
8984 {
8985
8986 ;
8987 return 0;
8988 }
8989 _ACEOF
8990 if ac_fn_c_try_link "$LINENO"
8991 then :
8992 lt_cv_ld_exported_symbols_list=yes
8993 else case e in #(
8994 e) lt_cv_ld_exported_symbols_list=no ;;
8995 esac
8996 fi
8997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8998 conftest$ac_exeext conftest.$ac_ext
8999 LDFLAGS=$save_LDFLAGS
9000 ;;
9001 esac
9002 fi
9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9004 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9005
9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9007 printf %s "checking for -force_load linker flag... " >&6; }
9008 if test ${lt_cv_ld_force_load+y}
9009 then :
9010 printf %s "(cached) " >&6
9011 else case e in #(
9012 e) lt_cv_ld_force_load=no
9013 cat > conftest.c << _LT_EOF
9014 int forced_loaded() { return 2;}
9015 _LT_EOF
9016 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9017 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9018 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9019 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9020 echo "$RANLIB libconftest.a" >&5
9021 $RANLIB libconftest.a 2>&5
9022 cat > conftest.c << _LT_EOF
9023 int main(void) { return 0;}
9024 _LT_EOF
9025 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9026 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9027 _lt_result=$?
9028 if test -s conftest.err && $GREP force_load conftest.err; then
9029 cat conftest.err >&5
9030 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9031 lt_cv_ld_force_load=yes
9032 else
9033 cat conftest.err >&5
9034 fi
9035 rm -f conftest.err libconftest.a conftest conftest.c
9036 rm -rf conftest.dSYM
9037 ;;
9038 esac
9039 fi
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9041 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9042 case $host_os in
9043 rhapsody* | darwin1.[012])
9044 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9045 darwin1.*)
9046 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9047 darwin*)
9048 case $MACOSX_DEPLOYMENT_TARGET,$host in
9049 10.[012],*|,*powerpc*-darwin[5-8]*)
9050 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9051 *)
9052 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9053 if test yes = "$lt_cv_support_no_fixup_chains"; then
9054 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9055 fi
9056 ;;
9057 esac
9058 ;;
9059 esac
9060 if test yes = "$lt_cv_apple_cc_single_mod"; then
9061 _lt_dar_single_mod='$single_module'
9062 fi
9063 _lt_dar_needs_single_mod=no
9064 case $host_os in
9065 rhapsody* | darwin1.*)
9066 _lt_dar_needs_single_mod=yes ;;
9067 darwin*)
9068 # When targeting Mac OS X 10.4 (darwin 8) or later,
9069 # -single_module is the default and -multi_module is unsupported.
9070 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9071 # target any OS version that needs -single_module.
9072 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9073 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9074 _lt_dar_needs_single_mod=yes ;;
9075 esac
9076 ;;
9077 esac
9078 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9079 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9080 else
9081 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9082 fi
9083 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9084 _lt_dsymutil='~$DSYMUTIL $lib || :'
9085 else
9086 _lt_dsymutil=
9087 fi
9088 ;;
9089 esac
9090
9091 # func_munge_path_list VARIABLE PATH
9092 # -----------------------------------
9093 # VARIABLE is name of variable containing _space_ separated list of
9094 # directories to be munged by the contents of PATH, which is string
9095 # having a format:
9096 # "DIR[:DIR]:"
9097 # string "DIR[ DIR]" will be prepended to VARIABLE
9098 # ":DIR[:DIR]"
9099 # string "DIR[ DIR]" will be appended to VARIABLE
9100 # "DIRP[:DIRP]::[DIRA:]DIRA"
9101 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9102 # "DIRA[ DIRA]" will be appended to VARIABLE
9103 # "DIR[:DIR]"
9104 # VARIABLE will be replaced by "DIR[ DIR]"
9105 func_munge_path_list ()
9106 {
9107 case x$2 in
9108 x)
9109 ;;
9110 *:)
9111 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9112 ;;
9113 x:*)
9114 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9115 ;;
9116 *::*)
9117 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9118 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9119 ;;
9120 *)
9121 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9122 ;;
9123 esac
9124 }
9125
9126 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9127 "
9128 if test "x$ac_cv_header_dlfcn_h" = xyes
9129 then :
9130 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9131
9132 fi
9133
9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
9135 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
9136 if test ${ac_cv_c_undeclared_builtin_options+y}
9137 then :
9138 printf %s "(cached) " >&6
9139 else case e in #(
9140 e) ac_save_CFLAGS=$CFLAGS
9141 ac_cv_c_undeclared_builtin_options='cannot detect'
9142 for ac_arg in '' -fno-builtin; do
9143 CFLAGS="$ac_save_CFLAGS $ac_arg"
9144 # This test program should *not* compile successfully.
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9147
9148 int
9149 main (void)
9150 {
9151 (void) strchr;
9152 ;
9153 return 0;
9154 }
9155 _ACEOF
9156 if ac_fn_c_try_compile "$LINENO"
9157 then :
9158
9159 else case e in #(
9160 e) # This test program should compile successfully.
9161 # No library function is consistently available on
9162 # freestanding implementations, so test against a dummy
9163 # declaration. Include always-available headers on the
9164 # off chance that they somehow elicit warnings.
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9167 #include <float.h>
9168 #include <limits.h>
9169 #include <stdarg.h>
9170 #include <stddef.h>
9171 extern void ac_decl (int, char *);
9172
9173 int
9174 main (void)
9175 {
9176 (void) ac_decl (0, (char *) 0);
9177 (void) ac_decl;
9178
9179 ;
9180 return 0;
9181 }
9182 _ACEOF
9183 if ac_fn_c_try_compile "$LINENO"
9184 then :
9185 if test x"$ac_arg" = x
9186 then :
9187 ac_cv_c_undeclared_builtin_options='none needed'
9188 else case e in #(
9189 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
9190 esac
9191 fi
9192 break
9193 fi
9194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9195 esac
9196 fi
9197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9198 done
9199 CFLAGS=$ac_save_CFLAGS
9200 ;;
9201 esac
9202 fi
9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
9204 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
9205 case $ac_cv_c_undeclared_builtin_options in #(
9206 'cannot detect') :
9207 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9208 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9209 as_fn_error $? "cannot make $CC report undeclared builtins
9210 See 'config.log' for more details" "$LINENO" 5; } ;; #(
9211 'none needed') :
9212 ac_c_undeclared_builtin_options='' ;; #(
9213 *) :
9214 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
9215 esac
9216
9217 echo 'tldbg:KPSE_COMMON called (pkg=gregorio, amopt=)' >&5
9218 echo 'tldbg:KPSE_BASIC called (pkg=gregorio, amopt=)' >&5
9219
9220 #
9221 # am_init_automake
9222 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9223 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9224 # is not polluted with repeated "-I."
9225 am__isrc=' -I$(srcdir)'
9226 # test to see if srcdir already configured
9227 if test -f $srcdir/config.status; then
9228 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9229 fi
9230 fi
9231
9232 # test whether we have cygpath
9233 if test -z "$CYGPATH_W"; then
9234 if (cygpath --version) >/dev/null 2>/dev/null; then
9235 CYGPATH_W='cygpath -w'
9236 else
9237 CYGPATH_W=echo
9238 fi
9239 fi
9240
9241
9242 # Define the identity of the package.
9243 PACKAGE='gregorio--tex-live-'
9244 VERSION='6.1.0'
9245
9246
9247 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
9248
9249
9250 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
9251
9252 # Some tools Automake needs.
9253
9254 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9255
9256
9257 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9258
9259
9260 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9261
9262
9263 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9264
9265
9266 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9267
9268 # For better backward compatibility. To be removed once Automake 1.9.x
9269 # dies out for good. For more background, see:
9270 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9271 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9272 mkdir_p='$(MKDIR_P)'
9273
9274 # We need awk for the "check" target (and possibly the TAP driver). The
9275 # system "awk" is bad on some platforms.
9276 # Always define AMTAR for backward compatibility. Yes, it's still used
9277 # in the wild :-( We should find a proper way to deprecate it ...
9278 AMTAR='$${TAR-tar}'
9279
9280
9281 # We'll loop over all known methods to create a tar archive until one works.
9282 _am_tools='gnutar plaintar pax cpio none'
9283
9284 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9285 # There is notably a 21 bits limit for the UID and the GID. In fact,
9286 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9287 # and bug#13588).
9288 am_max_uid=2097151 # 2^21 - 1
9289 am_max_gid=$am_max_uid
9290 # The $UID and $GID variables are not portable, so we need to resort
9291 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9292 # below are definitely unexpected, so allow the users to see them
9293 # (that is, avoid stderr redirection).
9294 am_uid=`id -u || echo unknown`
9295 am_gid=`id -g || echo unknown`
9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9297 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9298 if test x$am_uid = xunknown; then
9299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9300 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9301 elif test $am_uid -le $am_max_uid; then
9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9303 printf "%s\n" "yes" >&6; }
9304 else
9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306 printf "%s\n" "no" >&6; }
9307 _am_tools=none
9308 fi
9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9310 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9311 if test x$gm_gid = xunknown; then
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9313 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9314 elif test $am_gid -le $am_max_gid; then
9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9316 printf "%s\n" "yes" >&6; }
9317 else
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 printf "%s\n" "no" >&6; }
9320 _am_tools=none
9321 fi
9322
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9324 printf %s "checking how to create a ustar tar archive... " >&6; }
9325
9326 # Go ahead even if we have the value already cached. We do so because we
9327 # need to set the values for the 'am__tar' and 'am__untar' variables.
9328 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9329
9330 for _am_tool in $_am_tools; do
9331 case $_am_tool in
9332 gnutar)
9333 for _am_tar in tar gnutar gtar; do
9334 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9335 ($_am_tar --version) >&5 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } && break
9339 done
9340 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9341 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9342 am__untar="$_am_tar -xf -"
9343 ;;
9344 plaintar)
9345 # Must skip GNU tar: if it does not support --format= it doesn't create
9346 # ustar tarball either.
9347 (tar --version) >/dev/null 2>&1 && continue
9348 am__tar='tar chf - "$$tardir"'
9349 am__tar_='tar chf - "$tardir"'
9350 am__untar='tar xf -'
9351 ;;
9352 pax)
9353 am__tar='pax -L -x ustar -w "$$tardir"'
9354 am__tar_='pax -L -x ustar -w "$tardir"'
9355 am__untar='pax -r'
9356 ;;
9357 cpio)
9358 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9359 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9360 am__untar='cpio -i -H ustar -d'
9361 ;;
9362 none)
9363 am__tar=false
9364 am__tar_=false
9365 am__untar=false
9366 ;;
9367 esac
9368
9369 # If the value was cached, stop now. We just wanted to have am__tar
9370 # and am__untar set.
9371 test -n "${am_cv_prog_tar_ustar}" && break
9372
9373 # tar/untar a dummy directory, and stop if the command works.
9374 rm -rf conftest.dir
9375 mkdir conftest.dir
9376 echo GrepMe > conftest.dir/file
9377 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9378 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }
9382 rm -rf conftest.dir
9383 if test -s conftest.tar; then
9384 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9385 ($am__untar <conftest.tar) >&5 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }
9389 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9390 (cat conftest.dir/file) >&5 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }
9394 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9395 fi
9396 done
9397 rm -rf conftest.dir
9398
9399 if test ${am_cv_prog_tar_ustar+y}
9400 then :
9401 printf %s "(cached) " >&6
9402 else case e in #(
9403 e) am_cv_prog_tar_ustar=$_am_tool ;;
9404 esac
9405 fi
9406
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9408 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9409
9410
9411
9412
9413
9414 # Variables for tags utilities; see am/tags.am
9415 if test -z "$CTAGS"; then
9416 CTAGS=ctags
9417 fi
9418
9419 if test -z "$ETAGS"; then
9420 ETAGS=etags
9421 fi
9422
9423 if test -z "$CSCOPE"; then
9424 CSCOPE=cscope
9425 fi
9426
9427
9428
9429
9430
9431
9432
9433
9434 # am_maintainer_mode
9435
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9437 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9438 # Check whether --enable-maintainer-mode was given.
9439 if test ${enable_maintainer_mode+y}
9440 then :
9441 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9442 else case e in #(
9443 e) USE_MAINTAINER_MODE=no ;;
9444 esac
9445 fi
9446
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9448 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9449 if test $USE_MAINTAINER_MODE = yes; then
9450 MAINTAINER_MODE_TRUE=
9451 MAINTAINER_MODE_FALSE='#'
9452 else
9453 MAINTAINER_MODE_TRUE='#'
9454 MAINTAINER_MODE_FALSE=
9455 fi
9456
9457 MAINT=$MAINTAINER_MODE_TRUE
9458
9459
9460
9461 # See comments in kpse-setup.m4 about system extensions.
9462
9463
9464 # Check whether prototypes work.
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9466 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9467 if test ${kb_cv_c_prototypes+y}
9468 then :
9469 printf %s "(cached) " >&6
9470 else case e in #(
9471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9473 #include <stdarg.h>
9474 int
9475 main (void)
9476 {
9477 extern void foo(int i,...);
9478 ;
9479 return 0;
9480 }
9481 _ACEOF
9482 if ac_fn_c_try_link "$LINENO"
9483 then :
9484 kb_cv_c_prototypes=yes
9485 else case e in #(
9486 e) kb_cv_c_prototypes=no ;;
9487 esac
9488 fi
9489 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9490 conftest$ac_exeext conftest.$ac_ext ;;
9491 esac
9492 fi
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9494 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9495 if test "x$kb_cv_c_prototypes" = xno; then
9496 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9497 fi
9498
9499 # kpse_compiler_warnings options.
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9501 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9502 if test ${kpse_cv_warning_cflags+y}
9503 then :
9504 printf %s "(cached) " >&6
9505 else case e in #(
9506 e) if test "x$GCC" = xyes; then
9507 kpse_cv_warning_cflags=
9508 if test "x$enable_compiler_warnings" != xno; then
9509 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9510 case `$CC -dumpversion` in #(
9511 3.4.* | 4.* | 5.*) :
9512 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9513 *) :
9514 ;;
9515 esac
9516 case `$CC -dumpversion` in #(
9517 3.[234].* | 4.* | 5.*) :
9518 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9519 *) :
9520 ;;
9521 esac
9522 if test "x$enable_compiler_warnings" != xmin; then
9523 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9524 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9525 if test "x$enable_compiler_warnings" != xyes; then
9526 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9527 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9528 case `$CC -dumpversion` in #(
9529 3.4.* | 4.* | 5.*) :
9530 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9531 *) :
9532 ;;
9533 esac
9534 if test "x$enable_compiler_warnings" != xmax; then
9535 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9536 fi
9537 fi
9538 fi
9539 fi
9540 elif test "x$enable_compiler_warnings" = xno; then
9541 kpse_cv_warning_cflags=
9542 else
9543 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9544 fi ;;
9545 esac
9546 fi
9547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9548 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9549 WARNING_CFLAGS=$kpse_cv_warning_cflags
9550
9551
9552
9553
9554
9555
9556
9557 # end of kpse_basic macro.
9558 echo 'tldbg:KPSE_BASIC done (pkg=gregorio, amopt=)' >&5
9559
9560 # am_prog_ar must be called before lt_init.
9561
9562 if test -n "$ac_tool_prefix"; then
9563 for ac_prog in ar lib "link -lib"
9564 do
9565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568 printf %s "checking for $ac_word... " >&6; }
9569 if test ${ac_cv_prog_AR+y}
9570 then :
9571 printf %s "(cached) " >&6
9572 else case e in #(
9573 e) if test -n "$AR"; then
9574 ac_cv_prog_AR="$AR" # Let the user override the test.
9575 else
9576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577 for as_dir in $PATH
9578 do
9579 IFS=$as_save_IFS
9580 case $as_dir in #(((
9581 '') as_dir=./ ;;
9582 */) ;;
9583 *) as_dir=$as_dir/ ;;
9584 esac
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9587 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9589 break 2
9590 fi
9591 done
9592 done
9593 IFS=$as_save_IFS
9594
9595 fi ;;
9596 esac
9597 fi
9598 AR=$ac_cv_prog_AR
9599 if test -n "$AR"; then
9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9601 printf "%s\n" "$AR" >&6; }
9602 else
9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 printf "%s\n" "no" >&6; }
9605 fi
9606
9607
9608 test -n "$AR" && break
9609 done
9610 fi
9611 if test -z "$AR"; then
9612 ac_ct_AR=$AR
9613 for ac_prog in ar lib "link -lib"
9614 do
9615 # Extract the first word of "$ac_prog", so it can be a program name with args.
9616 set dummy $ac_prog; ac_word=$2
9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618 printf %s "checking for $ac_word... " >&6; }
9619 if test ${ac_cv_prog_ac_ct_AR+y}
9620 then :
9621 printf %s "(cached) " >&6
9622 else case e in #(
9623 e) if test -n "$ac_ct_AR"; then
9624 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9625 else
9626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627 for as_dir in $PATH
9628 do
9629 IFS=$as_save_IFS
9630 case $as_dir in #(((
9631 '') as_dir=./ ;;
9632 */) ;;
9633 *) as_dir=$as_dir/ ;;
9634 esac
9635 for ac_exec_ext in '' $ac_executable_extensions; do
9636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9637 ac_cv_prog_ac_ct_AR="$ac_prog"
9638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9639 break 2
9640 fi
9641 done
9642 done
9643 IFS=$as_save_IFS
9644
9645 fi ;;
9646 esac
9647 fi
9648 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9649 if test -n "$ac_ct_AR"; then
9650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9651 printf "%s\n" "$ac_ct_AR" >&6; }
9652 else
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9654 printf "%s\n" "no" >&6; }
9655 fi
9656
9657
9658 test -n "$ac_ct_AR" && break
9659 done
9660
9661 if test "x$ac_ct_AR" = x; then
9662 AR="false"
9663 else
9664 case $cross_compiling:$ac_tool_warned in
9665 yes:)
9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9667 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9668 ac_tool_warned=yes ;;
9669 esac
9670 AR=$ac_ct_AR
9671 fi
9672 fi
9673
9674 : ${AR=ar}
9675 : ${ARFLAGS=cr}
9676
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9678 printf %s "checking the archiver ($AR) interface... " >&6; }
9679 if test ${am_cv_ar_interface+y}
9680 then :
9681 printf %s "(cached) " >&6
9682 else case e in #(
9683 e) ac_ext=c
9684 ac_cpp='$CPP $CPPFLAGS'
9685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9688
9689 am_cv_ar_interface=ar
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692 int some_variable = 0;
9693 _ACEOF
9694 if ac_fn_c_try_compile "$LINENO"
9695 then :
9696 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9698 (eval $am_ar_try) 2>&5
9699 ac_status=$?
9700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9701 test $ac_status = 0; }
9702 if test "$ac_status" -eq 0; then
9703 am_cv_ar_interface=ar
9704 else
9705 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9707 (eval $am_ar_try) 2>&5
9708 ac_status=$?
9709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9710 test $ac_status = 0; }
9711 if test "$ac_status" -eq 0; then
9712 am_cv_ar_interface=lib
9713 else
9714 am_cv_ar_interface=unknown
9715 fi
9716 fi
9717 rm -f conftest.lib libconftest.a
9718
9719 fi
9720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9721 ac_ext=c
9722 ac_cpp='$CPP $CPPFLAGS'
9723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9726 ;;
9727 esac
9728 fi
9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9730 printf "%s\n" "$am_cv_ar_interface" >&6; }
9731
9732 case $am_cv_ar_interface in
9733 ar)
9734 ;;
9735 lib)
9736 # Microsoft lib, so override with the ar-lib wrapper script.
9737 # FIXME: It is wrong to rewrite AR.
9738 # But if we don't then we get into trouble of one sort or another.
9739 # A longer-term fix would be to have automake use am__AR in this case,
9740 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9741 # similar.
9742 AR="$am_aux_dir/ar-lib $AR"
9743 ;;
9744 unknown)
9745 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9746 ;;
9747 esac
9748
9749 # (end am_prog_ar)
9750 # starting lt_prereq + lt_init.
9751
9752
9753
9754
9755
9756 # Set options
9757 enable_win32_dll=yes
9758
9759 case $host in
9760 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9761 if test -n "$ac_tool_prefix"; then
9762 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9763 set dummy ${ac_tool_prefix}as; ac_word=$2
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765 printf %s "checking for $ac_word... " >&6; }
9766 if test ${ac_cv_prog_AS+y}
9767 then :
9768 printf %s "(cached) " >&6
9769 else case e in #(
9770 e) if test -n "$AS"; then
9771 ac_cv_prog_AS="$AS" # Let the user override the test.
9772 else
9773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774 for as_dir in $PATH
9775 do
9776 IFS=$as_save_IFS
9777 case $as_dir in #(((
9778 '') as_dir=./ ;;
9779 */) ;;
9780 *) as_dir=$as_dir/ ;;
9781 esac
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9784 ac_cv_prog_AS="${ac_tool_prefix}as"
9785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9786 break 2
9787 fi
9788 done
9789 done
9790 IFS=$as_save_IFS
9791
9792 fi ;;
9793 esac
9794 fi
9795 AS=$ac_cv_prog_AS
9796 if test -n "$AS"; then
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9798 printf "%s\n" "$AS" >&6; }
9799 else
9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801 printf "%s\n" "no" >&6; }
9802 fi
9803
9804
9805 fi
9806 if test -z "$ac_cv_prog_AS"; then
9807 ac_ct_AS=$AS
9808 # Extract the first word of "as", so it can be a program name with args.
9809 set dummy as; ac_word=$2
9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811 printf %s "checking for $ac_word... " >&6; }
9812 if test ${ac_cv_prog_ac_ct_AS+y}
9813 then :
9814 printf %s "(cached) " >&6
9815 else case e in #(
9816 e) if test -n "$ac_ct_AS"; then
9817 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9818 else
9819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820 for as_dir in $PATH
9821 do
9822 IFS=$as_save_IFS
9823 case $as_dir in #(((
9824 '') as_dir=./ ;;
9825 */) ;;
9826 *) as_dir=$as_dir/ ;;
9827 esac
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9830 ac_cv_prog_ac_ct_AS="as"
9831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9832 break 2
9833 fi
9834 done
9835 done
9836 IFS=$as_save_IFS
9837
9838 fi ;;
9839 esac
9840 fi
9841 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9842 if test -n "$ac_ct_AS"; then
9843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9844 printf "%s\n" "$ac_ct_AS" >&6; }
9845 else
9846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 printf "%s\n" "no" >&6; }
9848 fi
9849
9850 if test "x$ac_ct_AS" = x; then
9851 AS="false"
9852 else
9853 case $cross_compiling:$ac_tool_warned in
9854 yes:)
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9857 ac_tool_warned=yes ;;
9858 esac
9859 AS=$ac_ct_AS
9860 fi
9861 else
9862 AS="$ac_cv_prog_AS"
9863 fi
9864
9865 if test -n "$ac_tool_prefix"; then
9866 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9867 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869 printf %s "checking for $ac_word... " >&6; }
9870 if test ${ac_cv_prog_DLLTOOL+y}
9871 then :
9872 printf %s "(cached) " >&6
9873 else case e in #(
9874 e) if test -n "$DLLTOOL"; then
9875 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9876 else
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 for as_dir in $PATH
9879 do
9880 IFS=$as_save_IFS
9881 case $as_dir in #(((
9882 '') as_dir=./ ;;
9883 */) ;;
9884 *) as_dir=$as_dir/ ;;
9885 esac
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9888 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9890 break 2
9891 fi
9892 done
9893 done
9894 IFS=$as_save_IFS
9895
9896 fi ;;
9897 esac
9898 fi
9899 DLLTOOL=$ac_cv_prog_DLLTOOL
9900 if test -n "$DLLTOOL"; then
9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9902 printf "%s\n" "$DLLTOOL" >&6; }
9903 else
9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905 printf "%s\n" "no" >&6; }
9906 fi
9907
9908
9909 fi
9910 if test -z "$ac_cv_prog_DLLTOOL"; then
9911 ac_ct_DLLTOOL=$DLLTOOL
9912 # Extract the first word of "dlltool", so it can be a program name with args.
9913 set dummy dlltool; ac_word=$2
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9915 printf %s "checking for $ac_word... " >&6; }
9916 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9917 then :
9918 printf %s "(cached) " >&6
9919 else case e in #(
9920 e) if test -n "$ac_ct_DLLTOOL"; then
9921 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9922 else
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 for as_dir in $PATH
9925 do
9926 IFS=$as_save_IFS
9927 case $as_dir in #(((
9928 '') as_dir=./ ;;
9929 */) ;;
9930 *) as_dir=$as_dir/ ;;
9931 esac
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9934 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9936 break 2
9937 fi
9938 done
9939 done
9940 IFS=$as_save_IFS
9941
9942 fi ;;
9943 esac
9944 fi
9945 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9946 if test -n "$ac_ct_DLLTOOL"; then
9947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9948 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9949 else
9950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 printf "%s\n" "no" >&6; }
9952 fi
9953
9954 if test "x$ac_ct_DLLTOOL" = x; then
9955 DLLTOOL="false"
9956 else
9957 case $cross_compiling:$ac_tool_warned in
9958 yes:)
9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9960 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9961 ac_tool_warned=yes ;;
9962 esac
9963 DLLTOOL=$ac_ct_DLLTOOL
9964 fi
9965 else
9966 DLLTOOL="$ac_cv_prog_DLLTOOL"
9967 fi
9968
9969 if test -n "$ac_tool_prefix"; then
9970 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9971 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9973 printf %s "checking for $ac_word... " >&6; }
9974 if test ${ac_cv_prog_OBJDUMP+y}
9975 then :
9976 printf %s "(cached) " >&6
9977 else case e in #(
9978 e) if test -n "$OBJDUMP"; then
9979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9980 else
9981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 for as_dir in $PATH
9983 do
9984 IFS=$as_save_IFS
9985 case $as_dir in #(((
9986 '') as_dir=./ ;;
9987 */) ;;
9988 *) as_dir=$as_dir/ ;;
9989 esac
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9992 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9994 break 2
9995 fi
9996 done
9997 done
9998 IFS=$as_save_IFS
9999
10000 fi ;;
10001 esac
10002 fi
10003 OBJDUMP=$ac_cv_prog_OBJDUMP
10004 if test -n "$OBJDUMP"; then
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10006 printf "%s\n" "$OBJDUMP" >&6; }
10007 else
10008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009 printf "%s\n" "no" >&6; }
10010 fi
10011
10012
10013 fi
10014 if test -z "$ac_cv_prog_OBJDUMP"; then
10015 ac_ct_OBJDUMP=$OBJDUMP
10016 # Extract the first word of "objdump", so it can be a program name with args.
10017 set dummy objdump; ac_word=$2
10018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10019 printf %s "checking for $ac_word... " >&6; }
10020 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10021 then :
10022 printf %s "(cached) " >&6
10023 else case e in #(
10024 e) if test -n "$ac_ct_OBJDUMP"; then
10025 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10026 else
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10029 do
10030 IFS=$as_save_IFS
10031 case $as_dir in #(((
10032 '') as_dir=./ ;;
10033 */) ;;
10034 *) as_dir=$as_dir/ ;;
10035 esac
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10038 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10040 break 2
10041 fi
10042 done
10043 done
10044 IFS=$as_save_IFS
10045
10046 fi ;;
10047 esac
10048 fi
10049 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10050 if test -n "$ac_ct_OBJDUMP"; then
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10052 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10053 else
10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 printf "%s\n" "no" >&6; }
10056 fi
10057
10058 if test "x$ac_ct_OBJDUMP" = x; then
10059 OBJDUMP="false"
10060 else
10061 case $cross_compiling:$ac_tool_warned in
10062 yes:)
10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10064 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10065 ac_tool_warned=yes ;;
10066 esac
10067 OBJDUMP=$ac_ct_OBJDUMP
10068 fi
10069 else
10070 OBJDUMP="$ac_cv_prog_OBJDUMP"
10071 fi
10072
10073 ;;
10074 esac
10075
10076 test -z "$AS" && AS=as
10077
10078
10079
10080
10081
10082 test -z "$DLLTOOL" && DLLTOOL=dlltool
10083
10084
10085
10086
10087
10088 test -z "$OBJDUMP" && OBJDUMP=objdump
10089
10090
10091
10092
10093
10094
10095
10096 enable_dlopen=no
10097
10098
10099
10100 # Check whether --enable-shared was given.
10101 if test ${enable_shared+y}
10102 then :
10103 enableval=$enable_shared; p=${PACKAGE-default}
10104 case $enableval in
10105 yes) enable_shared=yes ;;
10106 no) enable_shared=no ;;
10107 *)
10108 enable_shared=no
10109 # Look at the argument we got. We use all the common list separators.
10110 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10111 for pkg in $enableval; do
10112 IFS=$lt_save_ifs
10113 if test "X$pkg" = "X$p"; then
10114 enable_shared=yes
10115 fi
10116 done
10117 IFS=$lt_save_ifs
10118 ;;
10119 esac
10120 else case e in #(
10121 e) enable_shared=yes ;;
10122 esac
10123 fi
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133 # Check whether --enable-static was given.
10134 if test ${enable_static+y}
10135 then :
10136 enableval=$enable_static; p=${PACKAGE-default}
10137 case $enableval in
10138 yes) enable_static=yes ;;
10139 no) enable_static=no ;;
10140 *)
10141 enable_static=no
10142 # Look at the argument we got. We use all the common list separators.
10143 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10144 for pkg in $enableval; do
10145 IFS=$lt_save_ifs
10146 if test "X$pkg" = "X$p"; then
10147 enable_static=yes
10148 fi
10149 done
10150 IFS=$lt_save_ifs
10151 ;;
10152 esac
10153 else case e in #(
10154 e) enable_static=yes ;;
10155 esac
10156 fi
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166 # Check whether --enable-pic was given.
10167 if test ${enable_pic+y}
10168 then :
10169 enableval=$enable_pic; lt_p=${PACKAGE-default}
10170 case $enableval in
10171 yes|no) pic_mode=$enableval ;;
10172 *)
10173 pic_mode=default
10174 # Look at the argument we got. We use all the common list separators.
10175 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10176 for lt_pkg in $enableval; do
10177 IFS=$lt_save_ifs
10178 if test "X$lt_pkg" = "X$lt_p"; then
10179 pic_mode=yes
10180 fi
10181 done
10182 IFS=$lt_save_ifs
10183 ;;
10184 esac
10185 else case e in #(
10186 e) # Check whether --with-pic was given.
10187 if test ${with_pic+y}
10188 then :
10189 withval=$with_pic; lt_p=${PACKAGE-default}
10190 case $withval in
10191 yes|no) pic_mode=$withval ;;
10192 *)
10193 pic_mode=default
10194 # Look at the argument we got. We use all the common list separators.
10195 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10196 for lt_pkg in $withval; do
10197 IFS=$lt_save_ifs
10198 if test "X$lt_pkg" = "X$lt_p"; then
10199 pic_mode=yes
10200 fi
10201 done
10202 IFS=$lt_save_ifs
10203 ;;
10204 esac
10205 else case e in #(
10206 e) pic_mode=default ;;
10207 esac
10208 fi
10209
10210 ;;
10211 esac
10212 fi
10213
10214
10215
10216
10217
10218
10219
10220
10221 # Check whether --enable-fast-install was given.
10222 if test ${enable_fast_install+y}
10223 then :
10224 enableval=$enable_fast_install; p=${PACKAGE-default}
10225 case $enableval in
10226 yes) enable_fast_install=yes ;;
10227 no) enable_fast_install=no ;;
10228 *)
10229 enable_fast_install=no
10230 # Look at the argument we got. We use all the common list separators.
10231 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10232 for pkg in $enableval; do
10233 IFS=$lt_save_ifs
10234 if test "X$pkg" = "X$p"; then
10235 enable_fast_install=yes
10236 fi
10237 done
10238 IFS=$lt_save_ifs
10239 ;;
10240 esac
10241 else case e in #(
10242 e) enable_fast_install=yes ;;
10243 esac
10244 fi
10245
10246
10247
10248
10249
10250
10251
10252
10253 shared_archive_member_spec=
10254 case $host,$enable_shared in
10255 power*-*-aix[5-9]*,yes)
10256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10257 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10258 # Check whether --enable-aix-soname was given.
10259 if test ${enable_aix_soname+y}
10260 then :
10261 enableval=$enable_aix_soname; case $enableval in
10262 aix|svr4|both)
10263 ;;
10264 *)
10265 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10266 ;;
10267 esac
10268 lt_cv_with_aix_soname=$enable_aix_soname
10269 else case e in #(
10270 e) # Check whether --with-aix-soname was given.
10271 if test ${with_aix_soname+y}
10272 then :
10273 withval=$with_aix_soname; case $withval in
10274 aix|svr4|both)
10275 ;;
10276 *)
10277 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10278 ;;
10279 esac
10280 lt_cv_with_aix_soname=$with_aix_soname
10281 else case e in #(
10282 e) if test ${lt_cv_with_aix_soname+y}
10283 then :
10284 printf %s "(cached) " >&6
10285 else case e in #(
10286 e) lt_cv_with_aix_soname=aix ;;
10287 esac
10288 fi
10289 ;;
10290 esac
10291 fi
10292
10293 enable_aix_soname=$lt_cv_with_aix_soname ;;
10294 esac
10295 fi
10296
10297 with_aix_soname=$enable_aix_soname
10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10299 printf "%s\n" "$with_aix_soname" >&6; }
10300 if test aix != "$with_aix_soname"; then
10301 # For the AIX way of multilib, we name the shared archive member
10302 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10303 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10304 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10305 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10306 if test 64 = "${OBJECT_MODE-32}"; then
10307 shared_archive_member_spec=shr_64
10308 else
10309 shared_archive_member_spec=shr
10310 fi
10311 fi
10312 ;;
10313 *)
10314 with_aix_soname=aix
10315 ;;
10316 esac
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327 # This can be used to rebuild libtool when needed
10328 LIBTOOL_DEPS=$ltmain
10329
10330 # Always use our own libtool.
10331 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362 test -z "$LN_S" && LN_S="ln -s"
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377 if test -n "${ZSH_VERSION+set}"; then
10378 setopt NO_GLOB_SUBST
10379 fi
10380
10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10382 printf %s "checking for objdir... " >&6; }
10383 if test ${lt_cv_objdir+y}
10384 then :
10385 printf %s "(cached) " >&6
10386 else case e in #(
10387 e) rm -f .libs 2>/dev/null
10388 mkdir .libs 2>/dev/null
10389 if test -d .libs; then
10390 lt_cv_objdir=.libs
10391 else
10392 # MS-DOS does not allow filenames that begin with a dot.
10393 lt_cv_objdir=_libs
10394 fi
10395 rmdir .libs 2>/dev/null ;;
10396 esac
10397 fi
10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10399 printf "%s\n" "$lt_cv_objdir" >&6; }
10400 objdir=$lt_cv_objdir
10401
10402
10403
10404
10405
10406 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10407
10408
10409
10410
10411 case $host_os in
10412 aix3*)
10413 # AIX sometimes has problems with the GCC collect2 program. For some
10414 # reason, if we set the COLLECT_NAMES environment variable, the problems
10415 # vanish in a puff of smoke.
10416 if test set != "${COLLECT_NAMES+set}"; then
10417 COLLECT_NAMES=
10418 export COLLECT_NAMES
10419 fi
10420 ;;
10421 esac
10422
10423 # Global variables:
10424 ofile=libtool
10425 can_build_shared=yes
10426
10427 # All known linkers require a '.a' archive for static linking (except MSVC and
10428 # ICC, which need '.lib').
10429 libext=a
10430
10431 with_gnu_ld=$lt_cv_prog_gnu_ld
10432
10433 old_CC=$CC
10434 old_CFLAGS=$CFLAGS
10435
10436 # Set sane defaults for various variables
10437 test -z "$CC" && CC=cc
10438 test -z "$LTCC" && LTCC=$CC
10439 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10440 test -z "$LD" && LD=ld
10441 test -z "$ac_objext" && ac_objext=o
10442
10443 func_cc_basename $compiler
10444 cc_basename=$func_cc_basename_result
10445
10446
10447 # Only perform the check for file, if the check method requires it
10448 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10449 case $deplibs_check_method in
10450 file_magic*)
10451 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10453 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10454 if test ${lt_cv_path_MAGIC_CMD+y}
10455 then :
10456 printf %s "(cached) " >&6
10457 else case e in #(
10458 e) case $MAGIC_CMD in
10459 [\\/*] | ?:[\\/]*)
10460 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10461 ;;
10462 *)
10463 lt_save_MAGIC_CMD=$MAGIC_CMD
10464 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10465 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10466 for ac_dir in $ac_dummy; do
10467 IFS=$lt_save_ifs
10468 test -z "$ac_dir" && ac_dir=.
10469 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10470 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10471 if test -n "$file_magic_test_file"; then
10472 case $deplibs_check_method in
10473 "file_magic "*)
10474 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10475 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10476 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10477 $EGREP "$file_magic_regex" > /dev/null; then
10478 :
10479 else
10480 cat <<_LT_EOF 1>&2
10481
10482 *** Warning: the command libtool uses to detect shared libraries,
10483 *** $file_magic_cmd, produces output that libtool cannot recognize.
10484 *** The result is that libtool may fail to recognize shared libraries
10485 *** as such. This will affect the creation of libtool libraries that
10486 *** depend on shared libraries, but programs linked with such libtool
10487 *** libraries will work regardless of this problem. Nevertheless, you
10488 *** may want to report the problem to your system manager and/or to
10489 *** [email protected]
10490
10491 _LT_EOF
10492 fi ;;
10493 esac
10494 fi
10495 break
10496 fi
10497 done
10498 IFS=$lt_save_ifs
10499 MAGIC_CMD=$lt_save_MAGIC_CMD
10500 ;;
10501 esac ;;
10502 esac
10503 fi
10504
10505 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10506 if test -n "$MAGIC_CMD"; then
10507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10508 printf "%s\n" "$MAGIC_CMD" >&6; }
10509 else
10510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511 printf "%s\n" "no" >&6; }
10512 fi
10513
10514
10515
10516
10517
10518 if test -z "$lt_cv_path_MAGIC_CMD"; then
10519 if test -n "$ac_tool_prefix"; then
10520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10521 printf %s "checking for file... " >&6; }
10522 if test ${lt_cv_path_MAGIC_CMD+y}
10523 then :
10524 printf %s "(cached) " >&6
10525 else case e in #(
10526 e) case $MAGIC_CMD in
10527 [\\/*] | ?:[\\/]*)
10528 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10529 ;;
10530 *)
10531 lt_save_MAGIC_CMD=$MAGIC_CMD
10532 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10533 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10534 for ac_dir in $ac_dummy; do
10535 IFS=$lt_save_ifs
10536 test -z "$ac_dir" && ac_dir=.
10537 if test -f "$ac_dir/file"; then
10538 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10539 if test -n "$file_magic_test_file"; then
10540 case $deplibs_check_method in
10541 "file_magic "*)
10542 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10543 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10544 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10545 $EGREP "$file_magic_regex" > /dev/null; then
10546 :
10547 else
10548 cat <<_LT_EOF 1>&2
10549
10550 *** Warning: the command libtool uses to detect shared libraries,
10551 *** $file_magic_cmd, produces output that libtool cannot recognize.
10552 *** The result is that libtool may fail to recognize shared libraries
10553 *** as such. This will affect the creation of libtool libraries that
10554 *** depend on shared libraries, but programs linked with such libtool
10555 *** libraries will work regardless of this problem. Nevertheless, you
10556 *** may want to report the problem to your system manager and/or to
10557 *** [email protected]
10558
10559 _LT_EOF
10560 fi ;;
10561 esac
10562 fi
10563 break
10564 fi
10565 done
10566 IFS=$lt_save_ifs
10567 MAGIC_CMD=$lt_save_MAGIC_CMD
10568 ;;
10569 esac ;;
10570 esac
10571 fi
10572
10573 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10574 if test -n "$MAGIC_CMD"; then
10575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10576 printf "%s\n" "$MAGIC_CMD" >&6; }
10577 else
10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579 printf "%s\n" "no" >&6; }
10580 fi
10581
10582
10583 else
10584 MAGIC_CMD=:
10585 fi
10586 fi
10587
10588 fi
10589 ;;
10590 esac
10591
10592 # Use C for the default configuration in the libtool script
10593
10594 lt_save_CC=$CC
10595 ac_ext=c
10596 ac_cpp='$CPP $CPPFLAGS'
10597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10600
10601
10602 # Source file extension for C test sources.
10603 ac_ext=c
10604
10605 # Object file extension for compiled C test sources.
10606 objext=o
10607 objext=$objext
10608
10609 # Code to be used in simple compile tests
10610 lt_simple_compile_test_code="int some_variable = 0;"
10611
10612 # Code to be used in simple link tests
10613 lt_simple_link_test_code='int main(void){return(0);}'
10614
10615
10616
10617
10618
10619
10620
10621 # If no C compiler was specified, use CC.
10622 LTCC=${LTCC-"$CC"}
10623
10624 # If no C compiler flags were specified, use CFLAGS.
10625 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10626
10627 # Allow CC to be a program name with arguments.
10628 compiler=$CC
10629
10630 # Save the default compiler, since it gets overwritten when the other
10631 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10632 compiler_DEFAULT=$CC
10633
10634 # save warnings/boilerplate of simple test code
10635 ac_outfile=conftest.$ac_objext
10636 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10637 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10638 _lt_compiler_boilerplate=`cat conftest.err`
10639 $RM conftest*
10640
10641 ac_outfile=conftest.$ac_objext
10642 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10643 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10644 _lt_linker_boilerplate=`cat conftest.err`
10645 $RM -r conftest*
10646
10647
10648 ## CAVEAT EMPTOR:
10649 ## There is no encapsulation within the following macros, do not change
10650 ## the running order or otherwise move them around unless you know exactly
10651 ## what you are doing...
10652 if test -n "$compiler"; then
10653
10654 lt_prog_compiler_no_builtin_flag=
10655
10656 if test yes = "$GCC"; then
10657 case $cc_basename in
10658 nvcc*)
10659 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10660 *)
10661 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10662 esac
10663
10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10665 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10666 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10667 then :
10668 printf %s "(cached) " >&6
10669 else case e in #(
10670 e) lt_cv_prog_compiler_rtti_exceptions=no
10671 ac_outfile=conftest.$ac_objext
10672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10673 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10674 # Insert the option either (1) after the last *FLAGS variable, or
10675 # (2) before a word containing "conftest.", or (3) at the end.
10676 # Note that $ac_compile itself does not contain backslashes and begins
10677 # with a dollar sign (not a hyphen), so the echo should work correctly.
10678 # The option is referenced via a variable to avoid confusing sed.
10679 lt_compile=`echo "$ac_compile" | $SED \
10680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10682 -e 's:$: $lt_compiler_flag:'`
10683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10684 (eval "$lt_compile" 2>conftest.err)
10685 ac_status=$?
10686 cat conftest.err >&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 if (exit $ac_status) && test -s "$ac_outfile"; then
10689 # The compiler can only warn and ignore the option if not recognized
10690 # So say no if there are warnings other than the usual output.
10691 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10694 lt_cv_prog_compiler_rtti_exceptions=yes
10695 fi
10696 fi
10697 $RM conftest*
10698 ;;
10699 esac
10700 fi
10701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10702 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10703
10704 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10705 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10706 else
10707 :
10708 fi
10709
10710 fi
10711
10712
10713
10714
10715
10716
10717 lt_prog_compiler_wl=
10718 lt_prog_compiler_pic=
10719 lt_prog_compiler_static=
10720
10721
10722 if test yes = "$GCC"; then
10723 lt_prog_compiler_wl='-Wl,'
10724 lt_prog_compiler_static='-static'
10725
10726 case $host_os in
10727 aix*)
10728 # All AIX code is PIC.
10729 if test ia64 = "$host_cpu"; then
10730 # AIX 5 now supports IA64 processor
10731 lt_prog_compiler_static='-Bstatic'
10732 fi
10733 lt_prog_compiler_pic='-fPIC'
10734 ;;
10735
10736 amigaos*)
10737 case $host_cpu in
10738 powerpc)
10739 # see comment about AmigaOS4 .so support
10740 lt_prog_compiler_pic='-fPIC'
10741 ;;
10742 m68k)
10743 # FIXME: we need at least 68020 code to build shared libraries, but
10744 # adding the '-m68020' flag to GCC prevents building anything better,
10745 # like '-m68040'.
10746 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10747 ;;
10748 esac
10749 ;;
10750
10751 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10752 # PIC is the default for these OSes.
10753 ;;
10754
10755 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10756 # This hack is so that the source file can tell whether it is being
10757 # built for inclusion in a dll (and should export symbols for example).
10758 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10759 # (--disable-auto-import) libraries
10760 lt_prog_compiler_pic='-DDLL_EXPORT'
10761 case $host_os in
10762 os2*)
10763 lt_prog_compiler_static='$wl-static'
10764 ;;
10765 esac
10766 ;;
10767
10768 darwin* | rhapsody*)
10769 # PIC is the default on this platform
10770 # Common symbols not allowed in MH_DYLIB files
10771 lt_prog_compiler_pic='-fno-common'
10772 ;;
10773
10774 haiku*)
10775 # PIC is the default for Haiku.
10776 # The "-static" flag exists, but is broken.
10777 lt_prog_compiler_static=
10778 ;;
10779
10780 hpux*)
10781 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10782 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10783 # sets the default TLS model and affects inlining.
10784 case $host_cpu in
10785 hppa*64*)
10786 # +Z the default
10787 ;;
10788 *)
10789 lt_prog_compiler_pic='-fPIC'
10790 ;;
10791 esac
10792 ;;
10793
10794 interix[3-9]*)
10795 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10796 # Instead, we relocate shared libraries at runtime.
10797 ;;
10798
10799 msdosdjgpp*)
10800 # Just because we use GCC doesn't mean we suddenly get shared libraries
10801 # on systems that don't support them.
10802 lt_prog_compiler_can_build_shared=no
10803 enable_shared=no
10804 ;;
10805
10806 *nto* | *qnx*)
10807 # QNX uses GNU C++, but need to define -shared option too, otherwise
10808 # it will coredump.
10809 lt_prog_compiler_pic='-fPIC -shared'
10810 ;;
10811
10812 sysv4*MP*)
10813 if test -d /usr/nec; then
10814 lt_prog_compiler_pic=-Kconform_pic
10815 fi
10816 ;;
10817
10818 *)
10819 lt_prog_compiler_pic='-fPIC'
10820 ;;
10821 esac
10822
10823 case $cc_basename in
10824 nvcc*) # Cuda Compiler Driver 2.2
10825 lt_prog_compiler_wl='-Xlinker '
10826 if test -n "$lt_prog_compiler_pic"; then
10827 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10828 fi
10829 ;;
10830 esac
10831 else
10832 # PORTME Check for flag to pass linker flags through the system compiler.
10833 case $host_os in
10834 aix*)
10835 lt_prog_compiler_wl='-Wl,'
10836 if test ia64 = "$host_cpu"; then
10837 # AIX 5 now supports IA64 processor
10838 lt_prog_compiler_static='-Bstatic'
10839 else
10840 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10841 fi
10842 ;;
10843
10844 darwin* | rhapsody*)
10845 # PIC is the default on this platform
10846 # Common symbols not allowed in MH_DYLIB files
10847 lt_prog_compiler_pic='-fno-common'
10848 case $cc_basename in
10849 nagfor*)
10850 # NAG Fortran compiler
10851 lt_prog_compiler_wl='-Wl,-Wl,,'
10852 lt_prog_compiler_pic='-PIC'
10853 lt_prog_compiler_static='-Bstatic'
10854 ;;
10855 esac
10856 ;;
10857
10858 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10859 # This hack is so that the source file can tell whether it is being
10860 # built for inclusion in a dll (and should export symbols for example).
10861 lt_prog_compiler_pic='-DDLL_EXPORT'
10862 case $host_os in
10863 os2*)
10864 lt_prog_compiler_static='$wl-static'
10865 ;;
10866 esac
10867 ;;
10868
10869 hpux9* | hpux10* | hpux11*)
10870 lt_prog_compiler_wl='-Wl,'
10871 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10872 # not for PA HP-UX.
10873 case $host_cpu in
10874 hppa*64*|ia64*)
10875 # +Z the default
10876 ;;
10877 *)
10878 lt_prog_compiler_pic='+Z'
10879 ;;
10880 esac
10881 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10882 lt_prog_compiler_static='$wl-a ${wl}archive'
10883 ;;
10884
10885 irix5* | irix6* | nonstopux*)
10886 lt_prog_compiler_wl='-Wl,'
10887 # PIC (with -KPIC) is the default.
10888 lt_prog_compiler_static='-non_shared'
10889 ;;
10890
10891 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10892 case $cc_basename in
10893 # old Intel for x86_64, which still supported -KPIC.
10894 ecc*)
10895 lt_prog_compiler_wl='-Wl,'
10896 lt_prog_compiler_pic='-KPIC'
10897 lt_prog_compiler_static='-static'
10898 ;;
10899 *flang* | ftn | f18* | f95*)
10900 # Flang compiler.
10901 lt_prog_compiler_wl='-Wl,'
10902 lt_prog_compiler_pic='-fPIC'
10903 lt_prog_compiler_static='-static'
10904 ;;
10905 # icc used to be incompatible with GCC.
10906 # ICC 10 doesn't accept -KPIC any more.
10907 icc* | ifort*)
10908 lt_prog_compiler_wl='-Wl,'
10909 lt_prog_compiler_pic='-fPIC'
10910 lt_prog_compiler_static='-static'
10911 ;;
10912 # Lahey Fortran 8.1.
10913 lf95*)
10914 lt_prog_compiler_wl='-Wl,'
10915 lt_prog_compiler_pic='--shared'
10916 lt_prog_compiler_static='--static'
10917 ;;
10918 nagfor*)
10919 # NAG Fortran compiler
10920 lt_prog_compiler_wl='-Wl,-Wl,,'
10921 lt_prog_compiler_pic='-PIC'
10922 lt_prog_compiler_static='-Bstatic'
10923 ;;
10924 tcc*)
10925 # Fabrice Bellard et al's Tiny C Compiler
10926 lt_prog_compiler_wl='-Wl,'
10927 lt_prog_compiler_pic='-fPIC'
10928 lt_prog_compiler_static='-static'
10929 ;;
10930 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10931 # Portland Group compilers (*not* the Pentium gcc compiler,
10932 # which looks to be a dead project)
10933 lt_prog_compiler_wl='-Wl,'
10934 lt_prog_compiler_pic='-fpic'
10935 lt_prog_compiler_static='-Bstatic'
10936 ;;
10937 ccc*)
10938 lt_prog_compiler_wl='-Wl,'
10939 # All Alpha code is PIC.
10940 lt_prog_compiler_static='-non_shared'
10941 ;;
10942 xl* | bgxl* | bgf* | mpixl*)
10943 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10944 lt_prog_compiler_wl='-Wl,'
10945 lt_prog_compiler_pic='-qpic'
10946 lt_prog_compiler_static='-qstaticlink'
10947 ;;
10948 *)
10949 case `$CC -V 2>&1 | $SED 5q` in
10950 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10951 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10952 lt_prog_compiler_pic='-KPIC'
10953 lt_prog_compiler_static='-Bstatic'
10954 lt_prog_compiler_wl=''
10955 ;;
10956 *Sun\ F* | *Sun*Fortran*)
10957 lt_prog_compiler_pic='-KPIC'
10958 lt_prog_compiler_static='-Bstatic'
10959 lt_prog_compiler_wl='-Qoption ld '
10960 ;;
10961 *Sun\ C*)
10962 # Sun C 5.9
10963 lt_prog_compiler_pic='-KPIC'
10964 lt_prog_compiler_static='-Bstatic'
10965 lt_prog_compiler_wl='-Wl,'
10966 ;;
10967 *Intel*\ [CF]*Compiler*)
10968 lt_prog_compiler_wl='-Wl,'
10969 lt_prog_compiler_pic='-fPIC'
10970 lt_prog_compiler_static='-static'
10971 ;;
10972 *Portland\ Group*)
10973 lt_prog_compiler_wl='-Wl,'
10974 lt_prog_compiler_pic='-fpic'
10975 lt_prog_compiler_static='-Bstatic'
10976 ;;
10977 esac
10978 ;;
10979 esac
10980 ;;
10981
10982 newsos6)
10983 lt_prog_compiler_pic='-KPIC'
10984 lt_prog_compiler_static='-Bstatic'
10985 ;;
10986
10987 *-mlibc)
10988 lt_prog_compiler_wl='-Wl,'
10989 lt_prog_compiler_pic='-fPIC'
10990 lt_prog_compiler_static='-static'
10991 ;;
10992
10993 *nto* | *qnx*)
10994 # QNX uses GNU C++, but need to define -shared option too, otherwise
10995 # it will coredump.
10996 lt_prog_compiler_pic='-fPIC -shared'
10997 ;;
10998
10999 osf3* | osf4* | osf5*)
11000 lt_prog_compiler_wl='-Wl,'
11001 # All OSF/1 code is PIC.
11002 lt_prog_compiler_static='-non_shared'
11003 ;;
11004
11005 rdos*)
11006 lt_prog_compiler_static='-non_shared'
11007 ;;
11008
11009 serenity*)
11010 ;;
11011
11012 solaris*)
11013 lt_prog_compiler_pic='-KPIC'
11014 lt_prog_compiler_static='-Bstatic'
11015 case $cc_basename in
11016 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11017 lt_prog_compiler_wl='-Qoption ld ';;
11018 *)
11019 lt_prog_compiler_wl='-Wl,';;
11020 esac
11021 ;;
11022
11023 sunos4*)
11024 lt_prog_compiler_wl='-Qoption ld '
11025 lt_prog_compiler_pic='-PIC'
11026 lt_prog_compiler_static='-Bstatic'
11027 ;;
11028
11029 sysv4 | sysv4.2uw2* | sysv4.3*)
11030 lt_prog_compiler_wl='-Wl,'
11031 lt_prog_compiler_pic='-KPIC'
11032 lt_prog_compiler_static='-Bstatic'
11033 ;;
11034
11035 sysv4*MP*)
11036 if test -d /usr/nec; then
11037 lt_prog_compiler_pic='-Kconform_pic'
11038 lt_prog_compiler_static='-Bstatic'
11039 fi
11040 ;;
11041
11042 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11043 lt_prog_compiler_wl='-Wl,'
11044 lt_prog_compiler_pic='-KPIC'
11045 lt_prog_compiler_static='-Bstatic'
11046 ;;
11047
11048 unicos*)
11049 lt_prog_compiler_wl='-Wl,'
11050 lt_prog_compiler_can_build_shared=no
11051 ;;
11052
11053 uts4*)
11054 lt_prog_compiler_pic='-pic'
11055 lt_prog_compiler_static='-Bstatic'
11056 ;;
11057
11058 *)
11059 lt_prog_compiler_can_build_shared=no
11060 ;;
11061 esac
11062 fi
11063
11064 case $host_os in
11065 # For platforms that do not support PIC, -DPIC is meaningless:
11066 *djgpp*)
11067 lt_prog_compiler_pic=
11068 ;;
11069 *)
11070 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11071 ;;
11072 esac
11073
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11075 printf %s "checking for $compiler option to produce PIC... " >&6; }
11076 if test ${lt_cv_prog_compiler_pic+y}
11077 then :
11078 printf %s "(cached) " >&6
11079 else case e in #(
11080 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11081 esac
11082 fi
11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11084 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11085 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11086
11087 #
11088 # Check to make sure the PIC flag actually works.
11089 #
11090 if test -n "$lt_prog_compiler_pic"; then
11091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11092 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11093 if test ${lt_cv_prog_compiler_pic_works+y}
11094 then :
11095 printf %s "(cached) " >&6
11096 else case e in #(
11097 e) lt_cv_prog_compiler_pic_works=no
11098 ac_outfile=conftest.$ac_objext
11099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11100 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11101 # Insert the option either (1) after the last *FLAGS variable, or
11102 # (2) before a word containing "conftest.", or (3) at the end.
11103 # Note that $ac_compile itself does not contain backslashes and begins
11104 # with a dollar sign (not a hyphen), so the echo should work correctly.
11105 # The option is referenced via a variable to avoid confusing sed.
11106 lt_compile=`echo "$ac_compile" | $SED \
11107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11109 -e 's:$: $lt_compiler_flag:'`
11110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11111 (eval "$lt_compile" 2>conftest.err)
11112 ac_status=$?
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 if (exit $ac_status) && test -s "$ac_outfile"; then
11116 # The compiler can only warn and ignore the option if not recognized
11117 # So say no if there are warnings other than the usual output.
11118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11120 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11121 lt_cv_prog_compiler_pic_works=yes
11122 fi
11123 fi
11124 $RM conftest*
11125 ;;
11126 esac
11127 fi
11128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11129 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11130
11131 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11132 case $lt_prog_compiler_pic in
11133 "" | " "*) ;;
11134 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11135 esac
11136 else
11137 lt_prog_compiler_pic=
11138 lt_prog_compiler_can_build_shared=no
11139 fi
11140
11141 fi
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153 #
11154 # Check to make sure the static flag actually works.
11155 #
11156 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11158 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11159 if test ${lt_cv_prog_compiler_static_works+y}
11160 then :
11161 printf %s "(cached) " >&6
11162 else case e in #(
11163 e) lt_cv_prog_compiler_static_works=no
11164 save_LDFLAGS=$LDFLAGS
11165 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11166 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11167 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11168 # The linker can only warn and ignore the option if not recognized
11169 # So say no if there are warnings
11170 if test -s conftest.err; then
11171 # Append any errors to the config.log.
11172 cat conftest.err 1>&5
11173 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11175 if diff conftest.exp conftest.er2 >/dev/null; then
11176 lt_cv_prog_compiler_static_works=yes
11177 fi
11178 else
11179 lt_cv_prog_compiler_static_works=yes
11180 fi
11181 fi
11182 $RM -r conftest*
11183 LDFLAGS=$save_LDFLAGS
11184 ;;
11185 esac
11186 fi
11187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11188 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11189
11190 if test yes = "$lt_cv_prog_compiler_static_works"; then
11191 :
11192 else
11193 lt_prog_compiler_static=
11194 fi
11195
11196
11197
11198
11199
11200
11201
11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11203 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11204 if test ${lt_cv_prog_compiler_c_o+y}
11205 then :
11206 printf %s "(cached) " >&6
11207 else case e in #(
11208 e) lt_cv_prog_compiler_c_o=no
11209 $RM -r conftest 2>/dev/null
11210 mkdir conftest
11211 cd conftest
11212 mkdir out
11213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11214
11215 lt_compiler_flag="-o out/conftest2.$ac_objext"
11216 # Insert the option either (1) after the last *FLAGS variable, or
11217 # (2) before a word containing "conftest.", or (3) at the end.
11218 # Note that $ac_compile itself does not contain backslashes and begins
11219 # with a dollar sign (not a hyphen), so the echo should work correctly.
11220 lt_compile=`echo "$ac_compile" | $SED \
11221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11223 -e 's:$: $lt_compiler_flag:'`
11224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11225 (eval "$lt_compile" 2>out/conftest.err)
11226 ac_status=$?
11227 cat out/conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11230 then
11231 # The compiler can only warn and ignore the option if not recognized
11232 # So say no if there are warnings
11233 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11234 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11235 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11236 lt_cv_prog_compiler_c_o=yes
11237 fi
11238 fi
11239 chmod u+w . 2>&5
11240 $RM conftest*
11241 # SGI C++ compiler will create directory out/ii_files/ for
11242 # template instantiation
11243 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11244 $RM out/* && rmdir out
11245 cd ..
11246 $RM -r conftest
11247 $RM conftest*
11248 ;;
11249 esac
11250 fi
11251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11252 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11253
11254
11255
11256
11257
11258
11259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11260 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11261 if test ${lt_cv_prog_compiler_c_o+y}
11262 then :
11263 printf %s "(cached) " >&6
11264 else case e in #(
11265 e) lt_cv_prog_compiler_c_o=no
11266 $RM -r conftest 2>/dev/null
11267 mkdir conftest
11268 cd conftest
11269 mkdir out
11270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11271
11272 lt_compiler_flag="-o out/conftest2.$ac_objext"
11273 # Insert the option either (1) after the last *FLAGS variable, or
11274 # (2) before a word containing "conftest.", or (3) at the end.
11275 # Note that $ac_compile itself does not contain backslashes and begins
11276 # with a dollar sign (not a hyphen), so the echo should work correctly.
11277 lt_compile=`echo "$ac_compile" | $SED \
11278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11280 -e 's:$: $lt_compiler_flag:'`
11281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11282 (eval "$lt_compile" 2>out/conftest.err)
11283 ac_status=$?
11284 cat out/conftest.err >&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11287 then
11288 # The compiler can only warn and ignore the option if not recognized
11289 # So say no if there are warnings
11290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11293 lt_cv_prog_compiler_c_o=yes
11294 fi
11295 fi
11296 chmod u+w . 2>&5
11297 $RM conftest*
11298 # SGI C++ compiler will create directory out/ii_files/ for
11299 # template instantiation
11300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11301 $RM out/* && rmdir out
11302 cd ..
11303 $RM -r conftest
11304 $RM conftest*
11305 ;;
11306 esac
11307 fi
11308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11309 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11310
11311
11312
11313
11314 hard_links=nottested
11315 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11316 # do not overwrite the value of need_locks provided by the user
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11318 printf %s "checking if we can lock with hard links... " >&6; }
11319 hard_links=yes
11320 $RM conftest*
11321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11322 touch conftest.a
11323 ln conftest.a conftest.b 2>&5 || hard_links=no
11324 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11326 printf "%s\n" "$hard_links" >&6; }
11327 if test no = "$hard_links"; then
11328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11329 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11330 need_locks=warn
11331 fi
11332 else
11333 need_locks=no
11334 fi
11335
11336
11337
11338
11339
11340
11341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11342 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11343
11344 runpath_var=
11345 allow_undefined_flag=
11346 always_export_symbols=no
11347 archive_cmds=
11348 archive_expsym_cmds=
11349 compiler_needs_object=no
11350 enable_shared_with_static_runtimes=no
11351 export_dynamic_flag_spec=
11352 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11353 hardcode_automatic=no
11354 hardcode_direct=no
11355 hardcode_direct_absolute=no
11356 hardcode_libdir_flag_spec=
11357 hardcode_libdir_separator=
11358 hardcode_minus_L=no
11359 hardcode_shlibpath_var=unsupported
11360 inherit_rpath=no
11361 link_all_deplibs=unknown
11362 module_cmds=
11363 module_expsym_cmds=
11364 old_archive_from_new_cmds=
11365 old_archive_from_expsyms_cmds=
11366 thread_safe_flag_spec=
11367 whole_archive_flag_spec=
11368 # include_expsyms should be a list of space-separated symbols to be *always*
11369 # included in the symbol list
11370 include_expsyms=
11371 # exclude_expsyms can be an extended regexp of symbols to exclude
11372 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11373 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11374 # as well as any symbol that contains 'd'.
11375 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11377 # platforms (ab)use it in PIC code, but their linkers get confused if
11378 # the symbol is explicitly referenced. Since portable code cannot
11379 # rely on this symbol name, it's probably fine to never include it in
11380 # preloaded symbol tables.
11381 # Exclude shared library initialization/finalization symbols.
11382 extract_expsyms_cmds=
11383
11384 case $host_os in
11385 cygwin* | mingw* | windows* | pw32* | cegcc*)
11386 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11387 # When not using gcc, we currently assume that we are using
11388 # Microsoft Visual C++ or Intel C++ Compiler.
11389 if test yes != "$GCC"; then
11390 with_gnu_ld=no
11391 fi
11392 ;;
11393 interix*)
11394 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11395 with_gnu_ld=yes
11396 ;;
11397 esac
11398
11399 ld_shlibs=yes
11400
11401 # On some targets, GNU ld is compatible enough with the native linker
11402 # that we're better off using the native interface for both.
11403 lt_use_gnu_ld_interface=no
11404 if test yes = "$with_gnu_ld"; then
11405 case $host_os in
11406 aix*)
11407 # The AIX port of GNU ld has always aspired to compatibility
11408 # with the native linker. However, as the warning in the GNU ld
11409 # block says, versions before 2.19.5* couldn't really create working
11410 # shared libraries, regardless of the interface used.
11411 case `$LD -v 2>&1` in
11412 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11413 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11414 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11415 *)
11416 lt_use_gnu_ld_interface=yes
11417 ;;
11418 esac
11419 ;;
11420 *)
11421 lt_use_gnu_ld_interface=yes
11422 ;;
11423 esac
11424 fi
11425
11426 if test yes = "$lt_use_gnu_ld_interface"; then
11427 # If archive_cmds runs LD, not CC, wlarc should be empty
11428 wlarc='$wl'
11429
11430 # Set some defaults for GNU ld with shared library support. These
11431 # are reset later if shared libraries are not supported. Putting them
11432 # here allows them to be overridden if necessary.
11433 runpath_var=LD_RUN_PATH
11434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11435 export_dynamic_flag_spec='$wl--export-dynamic'
11436 # ancient GNU ld didn't support --whole-archive et. al.
11437 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11438 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11439 else
11440 whole_archive_flag_spec=
11441 fi
11442 supports_anon_versioning=no
11443 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11444 *GNU\ gold*) supports_anon_versioning=yes ;;
11445 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11446 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11447 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11448 *\ 2.11.*) ;; # other 2.11 versions
11449 *) supports_anon_versioning=yes ;;
11450 esac
11451
11452 # See if GNU ld supports shared libraries.
11453 case $host_os in
11454 aix[3-9]*)
11455 # On AIX/PPC, the GNU linker is very broken
11456 if test ia64 != "$host_cpu"; then
11457 ld_shlibs=no
11458 cat <<_LT_EOF 1>&2
11459
11460 *** Warning: the GNU linker, at least up to release 2.19, is reported
11461 *** to be unable to reliably create shared libraries on AIX.
11462 *** Therefore, libtool is disabling shared libraries support. If you
11463 *** really care for shared libraries, you may want to install binutils
11464 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11465 *** You will then need to restart the configuration process.
11466
11467 _LT_EOF
11468 fi
11469 ;;
11470
11471 amigaos*)
11472 case $host_cpu in
11473 powerpc)
11474 # see comment about AmigaOS4 .so support
11475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11476 archive_expsym_cmds=''
11477 ;;
11478 m68k)
11479 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11480 hardcode_libdir_flag_spec='-L$libdir'
11481 hardcode_minus_L=yes
11482 ;;
11483 esac
11484 ;;
11485
11486 beos*)
11487 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11488 allow_undefined_flag=unsupported
11489 # Joseph Beckenbach <[email protected]> says some releases of gcc
11490 # support --undefined. This deserves some investigation. FIXME
11491 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11492 else
11493 ld_shlibs=no
11494 fi
11495 ;;
11496
11497 cygwin* | mingw* | windows* | pw32* | cegcc*)
11498 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11499 # as there is no search path for DLLs.
11500 hardcode_libdir_flag_spec='-L$libdir'
11501 export_dynamic_flag_spec='$wl--export-all-symbols'
11502 allow_undefined_flag=unsupported
11503 always_export_symbols=no
11504 enable_shared_with_static_runtimes=yes
11505 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11506 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11507 file_list_spec='@'
11508
11509 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11511 # If the export-symbols file already is a .def file, use it as
11512 # is; otherwise, prepend EXPORTS...
11513 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11514 cp $export_symbols $output_objdir/$soname.def;
11515 else
11516 echo EXPORTS > $output_objdir/$soname.def;
11517 cat $export_symbols >> $output_objdir/$soname.def;
11518 fi~
11519 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11520 else
11521 ld_shlibs=no
11522 fi
11523 ;;
11524
11525 haiku*)
11526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11527 link_all_deplibs=no
11528 ;;
11529
11530 os2*)
11531 hardcode_libdir_flag_spec='-L$libdir'
11532 hardcode_minus_L=yes
11533 allow_undefined_flag=unsupported
11534 shrext_cmds=.dll
11535 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11536 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11537 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11538 $ECHO EXPORTS >> $output_objdir/$libname.def~
11539 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11540 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11541 emximp -o $lib $output_objdir/$libname.def'
11542 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11543 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11544 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11545 $ECHO EXPORTS >> $output_objdir/$libname.def~
11546 prefix_cmds="$SED"~
11547 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11548 prefix_cmds="$prefix_cmds -e 1d";
11549 fi~
11550 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11551 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11552 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11553 emximp -o $lib $output_objdir/$libname.def'
11554 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11555 enable_shared_with_static_runtimes=yes
11556 file_list_spec='@'
11557 ;;
11558
11559 interix[3-9]*)
11560 hardcode_direct=no
11561 hardcode_shlibpath_var=no
11562 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11563 export_dynamic_flag_spec='$wl-E'
11564 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11565 # Instead, shared libraries are loaded at an image base (0x10000000 by
11566 # default) and relocated if they conflict, which is a slow very memory
11567 # consuming and fragmenting process. To avoid this, we pick a random,
11568 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11569 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11570 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11571 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11572 ;;
11573
11574 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11575 tmp_diet=no
11576 if test linux-dietlibc = "$host_os"; then
11577 case $cc_basename in
11578 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11579 esac
11580 fi
11581 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11582 && test no = "$tmp_diet"
11583 then
11584 tmp_addflag=' $pic_flag'
11585 tmp_sharedflag='-shared'
11586 case $cc_basename,$host_cpu in
11587 pgcc*) # Portland Group C compiler
11588 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11589 tmp_addflag=' $pic_flag'
11590 ;;
11591 pgf77* | pgf90* | pgf95* | pgfortran*)
11592 # Portland Group f77 and f90 compilers
11593 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11594 tmp_addflag=' $pic_flag -Mnomain' ;;
11595 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11596 tmp_addflag=' -i_dynamic' ;;
11597 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11598 tmp_addflag=' -i_dynamic -nofor_main' ;;
11599 ifc* | ifort*) # Intel Fortran compiler
11600 tmp_addflag=' -nofor_main' ;;
11601 lf95*) # Lahey Fortran 8.1
11602 whole_archive_flag_spec=
11603 tmp_sharedflag='--shared' ;;
11604 nagfor*) # NAGFOR 5.3
11605 tmp_sharedflag='-Wl,-shared' ;;
11606 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11607 tmp_sharedflag='-qmkshrobj'
11608 tmp_addflag= ;;
11609 nvcc*) # Cuda Compiler Driver 2.2
11610 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11611 compiler_needs_object=yes
11612 ;;
11613 esac
11614 case `$CC -V 2>&1 | $SED 5q` in
11615 *Sun\ C*) # Sun C 5.9
11616 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11617 compiler_needs_object=yes
11618 tmp_sharedflag='-G' ;;
11619 *Sun\ F*) # Sun Fortran 8.3
11620 tmp_sharedflag='-G' ;;
11621 esac
11622 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11623
11624 if test yes = "$supports_anon_versioning"; then
11625 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11626 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11627 echo "local: *; };" >> $output_objdir/$libname.ver~
11628 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11629 fi
11630
11631 case $cc_basename in
11632 tcc*)
11633 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11634 export_dynamic_flag_spec='-rdynamic'
11635 ;;
11636 xlf* | bgf* | bgxlf* | mpixlf*)
11637 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11638 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11640 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11641 if test yes = "$supports_anon_versioning"; then
11642 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11643 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11644 echo "local: *; };" >> $output_objdir/$libname.ver~
11645 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11646 fi
11647 ;;
11648 esac
11649 else
11650 ld_shlibs=no
11651 fi
11652 ;;
11653
11654 *-mlibc)
11655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11656 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11657 ;;
11658
11659 netbsd* | netbsdelf*-gnu)
11660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11661 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11662 wlarc=
11663 else
11664 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11665 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11666 fi
11667 ;;
11668
11669 solaris*)
11670 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11671 ld_shlibs=no
11672 cat <<_LT_EOF 1>&2
11673
11674 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11675 *** create shared libraries on Solaris systems. Therefore, libtool
11676 *** is disabling shared libraries support. We urge you to upgrade GNU
11677 *** binutils to release 2.9.1 or newer. Another option is to modify
11678 *** your PATH or compiler configuration so that the native linker is
11679 *** used, and then restart.
11680
11681 _LT_EOF
11682 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11683 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11684 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11685 else
11686 ld_shlibs=no
11687 fi
11688 ;;
11689
11690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11691 case `$LD -v 2>&1` in
11692 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11693 ld_shlibs=no
11694 cat <<_LT_EOF 1>&2
11695
11696 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11697 *** reliably create shared libraries on SCO systems. Therefore, libtool
11698 *** is disabling shared libraries support. We urge you to upgrade GNU
11699 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11700 *** your PATH or compiler configuration so that the native linker is
11701 *** used, and then restart.
11702
11703 _LT_EOF
11704 ;;
11705 *)
11706 # For security reasons, it is highly recommended that you always
11707 # use absolute paths for naming shared libraries, and exclude the
11708 # DT_RUNPATH tag from executables and libraries. But doing so
11709 # requires that you compile everything twice, which is a pain.
11710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11711 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11714 else
11715 ld_shlibs=no
11716 fi
11717 ;;
11718 esac
11719 ;;
11720
11721 sunos4*)
11722 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11723 wlarc=
11724 hardcode_direct=yes
11725 hardcode_shlibpath_var=no
11726 ;;
11727
11728 *)
11729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11730 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11731 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11732 else
11733 ld_shlibs=no
11734 fi
11735 ;;
11736 esac
11737
11738 if test no = "$ld_shlibs"; then
11739 runpath_var=
11740 hardcode_libdir_flag_spec=
11741 export_dynamic_flag_spec=
11742 whole_archive_flag_spec=
11743 fi
11744 else
11745 # PORTME fill in a description of your system's linker (not GNU ld)
11746 case $host_os in
11747 aix3*)
11748 allow_undefined_flag=unsupported
11749 always_export_symbols=yes
11750 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11751 # Note: this linker hardcodes the directories in LIBPATH if there
11752 # are no directories specified by -L.
11753 hardcode_minus_L=yes
11754 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11755 # Neither direct hardcoding nor static linking is supported with a
11756 # broken collect2.
11757 hardcode_direct=unsupported
11758 fi
11759 ;;
11760
11761 aix[4-9]*)
11762 if test ia64 = "$host_cpu"; then
11763 # On IA64, the linker does run time linking by default, so we don't
11764 # have to do anything special.
11765 aix_use_runtimelinking=no
11766 exp_sym_flag='-Bexport'
11767 no_entry_flag=
11768 else
11769 # If we're using GNU nm, then we don't want the "-C" option.
11770 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11771 # Without the "-l" option, or with the "-B" option, AIX nm treats
11772 # weak defined symbols like other global defined symbols, whereas
11773 # GNU nm marks them as "W".
11774 # While the 'weak' keyword is ignored in the Export File, we need
11775 # it in the Import File for the 'aix-soname' feature, so we have
11776 # to replace the "-B" option with "-P" for AIX nm.
11777 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11778 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11779 else
11780 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11781 fi
11782 aix_use_runtimelinking=no
11783
11784 # Test if we are trying to use run time linking or normal
11785 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11786 # have runtime linking enabled, and use it for executables.
11787 # For shared libraries, we enable/disable runtime linking
11788 # depending on the kind of the shared library created -
11789 # when "with_aix_soname,aix_use_runtimelinking" is:
11790 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11791 # "aix,yes" lib.so shared, rtl:yes, for executables
11792 # lib.a static archive
11793 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11794 # lib.a(lib.so.V) shared, rtl:no, for executables
11795 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11796 # lib.a(lib.so.V) shared, rtl:no
11797 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11798 # lib.a static archive
11799 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11800 for ld_flag in $LDFLAGS; do
11801 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11802 aix_use_runtimelinking=yes
11803 break
11804 fi
11805 done
11806 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11807 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11808 # so we don't have lib.a shared libs to link our executables.
11809 # We have to force runtime linking in this case.
11810 aix_use_runtimelinking=yes
11811 LDFLAGS="$LDFLAGS -Wl,-brtl"
11812 fi
11813 ;;
11814 esac
11815
11816 exp_sym_flag='-bexport'
11817 no_entry_flag='-bnoentry'
11818 fi
11819
11820 # When large executables or shared objects are built, AIX ld can
11821 # have problems creating the table of contents. If linking a library
11822 # or program results in "error TOC overflow" add -mminimal-toc to
11823 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11824 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11825
11826 archive_cmds=''
11827 hardcode_direct=yes
11828 hardcode_direct_absolute=yes
11829 hardcode_libdir_separator=':'
11830 link_all_deplibs=yes
11831 file_list_spec='$wl-f,'
11832 case $with_aix_soname,$aix_use_runtimelinking in
11833 aix,*) ;; # traditional, no import file
11834 svr4,* | *,yes) # use import file
11835 # The Import File defines what to hardcode.
11836 hardcode_direct=no
11837 hardcode_direct_absolute=no
11838 ;;
11839 esac
11840
11841 if test yes = "$GCC"; then
11842 case $host_os in aix4.[012]|aix4.[012].*)
11843 # We only want to do this on AIX 4.2 and lower, the check
11844 # below for broken collect2 doesn't work under 4.3+
11845 collect2name=`$CC -print-prog-name=collect2`
11846 if test -f "$collect2name" &&
11847 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11848 then
11849 # We have reworked collect2
11850 :
11851 else
11852 # We have old collect2
11853 hardcode_direct=unsupported
11854 # It fails to find uninstalled libraries when the uninstalled
11855 # path is not listed in the libpath. Setting hardcode_minus_L
11856 # to unsupported forces relinking
11857 hardcode_minus_L=yes
11858 hardcode_libdir_flag_spec='-L$libdir'
11859 hardcode_libdir_separator=
11860 fi
11861 ;;
11862 esac
11863 shared_flag='-shared'
11864 if test yes = "$aix_use_runtimelinking"; then
11865 shared_flag="$shared_flag "'$wl-G'
11866 fi
11867 # Need to ensure runtime linking is disabled for the traditional
11868 # shared library, or the linker may eventually find shared libraries
11869 # /with/ Import File - we do not want to mix them.
11870 shared_flag_aix='-shared'
11871 shared_flag_svr4='-shared $wl-G'
11872 else
11873 # not using gcc
11874 if test ia64 = "$host_cpu"; then
11875 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11876 # chokes on -Wl,-G. The following line is correct:
11877 shared_flag='-G'
11878 else
11879 if test yes = "$aix_use_runtimelinking"; then
11880 shared_flag='$wl-G'
11881 else
11882 shared_flag='$wl-bM:SRE'
11883 fi
11884 shared_flag_aix='$wl-bM:SRE'
11885 shared_flag_svr4='$wl-G'
11886 fi
11887 fi
11888
11889 export_dynamic_flag_spec='$wl-bexpall'
11890 # It seems that -bexpall does not export symbols beginning with
11891 # underscore (_), so it is better to generate a list of symbols to export.
11892 always_export_symbols=yes
11893 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11894 # Warning - without using the other runtime loading flags (-brtl),
11895 # -berok will link without error, but may produce a broken library.
11896 allow_undefined_flag='-berok'
11897 # Determine the default libpath from the value encoded in an
11898 # empty executable.
11899 if test set = "${lt_cv_aix_libpath+set}"; then
11900 aix_libpath=$lt_cv_aix_libpath
11901 else
11902 if test ${lt_cv_aix_libpath_+y}
11903 then :
11904 printf %s "(cached) " >&6
11905 else case e in #(
11906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11908
11909 int
11910 main (void)
11911 {
11912
11913 ;
11914 return 0;
11915 }
11916 _ACEOF
11917 if ac_fn_c_try_link "$LINENO"
11918 then :
11919
11920 lt_aix_libpath_sed='
11921 /Import File Strings/,/^$/ {
11922 /^0/ {
11923 s/^0 *\([^ ]*\) *$/\1/
11924 p
11925 }
11926 }'
11927 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11928 # Check for a 64-bit object if we didn't find anything.
11929 if test -z "$lt_cv_aix_libpath_"; then
11930 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11931 fi
11932 fi
11933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11934 conftest$ac_exeext conftest.$ac_ext
11935 if test -z "$lt_cv_aix_libpath_"; then
11936 lt_cv_aix_libpath_=/usr/lib:/lib
11937 fi
11938 ;;
11939 esac
11940 fi
11941
11942 aix_libpath=$lt_cv_aix_libpath_
11943 fi
11944
11945 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11946 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11947 else
11948 if test ia64 = "$host_cpu"; then
11949 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11950 allow_undefined_flag="-z nodefs"
11951 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
11952 else
11953 # Determine the default libpath from the value encoded in an
11954 # empty executable.
11955 if test set = "${lt_cv_aix_libpath+set}"; then
11956 aix_libpath=$lt_cv_aix_libpath
11957 else
11958 if test ${lt_cv_aix_libpath_+y}
11959 then :
11960 printf %s "(cached) " >&6
11961 else case e in #(
11962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11964
11965 int
11966 main (void)
11967 {
11968
11969 ;
11970 return 0;
11971 }
11972 _ACEOF
11973 if ac_fn_c_try_link "$LINENO"
11974 then :
11975
11976 lt_aix_libpath_sed='
11977 /Import File Strings/,/^$/ {
11978 /^0/ {
11979 s/^0 *\([^ ]*\) *$/\1/
11980 p
11981 }
11982 }'
11983 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11984 # Check for a 64-bit object if we didn't find anything.
11985 if test -z "$lt_cv_aix_libpath_"; then
11986 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11987 fi
11988 fi
11989 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11990 conftest$ac_exeext conftest.$ac_ext
11991 if test -z "$lt_cv_aix_libpath_"; then
11992 lt_cv_aix_libpath_=/usr/lib:/lib
11993 fi
11994 ;;
11995 esac
11996 fi
11997
11998 aix_libpath=$lt_cv_aix_libpath_
11999 fi
12000
12001 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12002 # Warning - without using the other run time loading flags,
12003 # -berok will link without error, but may produce a broken library.
12004 no_undefined_flag=' $wl-bernotok'
12005 allow_undefined_flag=' $wl-berok'
12006 if test yes = "$with_gnu_ld"; then
12007 # We only use this code for GNU lds that support --whole-archive.
12008 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12009 else
12010 # Exported symbols can be pulled into shared objects from archives
12011 whole_archive_flag_spec='$convenience'
12012 fi
12013 archive_cmds_need_lc=yes
12014 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12015 # -brtl affects multiple linker settings, -berok does not and is overridden later
12016 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12017 if test svr4 != "$with_aix_soname"; then
12018 # This is similar to how AIX traditionally builds its shared libraries.
12019 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12020 fi
12021 if test aix != "$with_aix_soname"; then
12022 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12023 else
12024 # used by -dlpreopen to get the symbols
12025 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12026 fi
12027 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12028 fi
12029 fi
12030 ;;
12031
12032 amigaos*)
12033 case $host_cpu in
12034 powerpc)
12035 # see comment about AmigaOS4 .so support
12036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12037 archive_expsym_cmds=''
12038 ;;
12039 m68k)
12040 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12041 hardcode_libdir_flag_spec='-L$libdir'
12042 hardcode_minus_L=yes
12043 ;;
12044 esac
12045 ;;
12046
12047 bsdi[45]*)
12048 export_dynamic_flag_spec=-rdynamic
12049 ;;
12050
12051 cygwin* | mingw* | windows* | pw32* | cegcc*)
12052 # When not using gcc, we currently assume that we are using
12053 # Microsoft Visual C++ or Intel C++ Compiler.
12054 # hardcode_libdir_flag_spec is actually meaningless, as there is
12055 # no search path for DLLs.
12056 case $cc_basename in
12057 cl* | icl*)
12058 # Native MSVC or ICC
12059 hardcode_libdir_flag_spec=' '
12060 allow_undefined_flag=unsupported
12061 always_export_symbols=yes
12062 file_list_spec='@'
12063 # Tell ltmain to make .lib files, not .a files.
12064 libext=lib
12065 # Tell ltmain to make .dll files, not .so files.
12066 shrext_cmds=.dll
12067 # FIXME: Setting linknames here is a bad hack.
12068 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12069 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12070 cp "$export_symbols" "$output_objdir/$soname.def";
12071 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12072 else
12073 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12074 fi~
12075 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12076 linknames='
12077 # The linker will not automatically build a static lib if we build a DLL.
12078 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12079 enable_shared_with_static_runtimes=yes
12080 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12081 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12082 # Don't use ranlib
12083 old_postinstall_cmds='chmod 644 $oldlib'
12084 postlink_cmds='lt_outputfile="@OUTPUT@"~
12085 lt_tool_outputfile="@TOOL_OUTPUT@"~
12086 case $lt_outputfile in
12087 *.exe|*.EXE) ;;
12088 *)
12089 lt_outputfile=$lt_outputfile.exe
12090 lt_tool_outputfile=$lt_tool_outputfile.exe
12091 ;;
12092 esac~
12093 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12094 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12095 $RM "$lt_outputfile.manifest";
12096 fi'
12097 ;;
12098 *)
12099 # Assume MSVC and ICC wrapper
12100 hardcode_libdir_flag_spec=' '
12101 allow_undefined_flag=unsupported
12102 # Tell ltmain to make .lib files, not .a files.
12103 libext=lib
12104 # Tell ltmain to make .dll files, not .so files.
12105 shrext_cmds=.dll
12106 # FIXME: Setting linknames here is a bad hack.
12107 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12108 # The linker will automatically build a .lib file if we build a DLL.
12109 old_archive_from_new_cmds='true'
12110 # FIXME: Should let the user specify the lib program.
12111 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12112 enable_shared_with_static_runtimes=yes
12113 ;;
12114 esac
12115 ;;
12116
12117 darwin* | rhapsody*)
12118
12119
12120 archive_cmds_need_lc=no
12121 hardcode_direct=no
12122 hardcode_automatic=yes
12123 hardcode_shlibpath_var=unsupported
12124 if test yes = "$lt_cv_ld_force_load"; then
12125 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12126
12127 else
12128 whole_archive_flag_spec=''
12129 fi
12130 link_all_deplibs=yes
12131 allow_undefined_flag=$_lt_dar_allow_undefined
12132 case $cc_basename in
12133 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12134 *) _lt_dar_can_shared=$GCC ;;
12135 esac
12136 if test yes = "$_lt_dar_can_shared"; then
12137 output_verbose_link_cmd=func_echo_all
12138 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12139 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12140 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
12141 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
12142
12143 else
12144 ld_shlibs=no
12145 fi
12146
12147 ;;
12148
12149 dgux*)
12150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12151 hardcode_libdir_flag_spec='-L$libdir'
12152 hardcode_shlibpath_var=no
12153 ;;
12154
12155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12156 # support. Future versions do this automatically, but an explicit c++rt0.o
12157 # does not break anything, and helps significantly (at the cost of a little
12158 # extra space).
12159 freebsd2.2*)
12160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12161 hardcode_libdir_flag_spec='-R$libdir'
12162 hardcode_direct=yes
12163 hardcode_shlibpath_var=no
12164 ;;
12165
12166 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12167 freebsd2.*)
12168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12169 hardcode_direct=yes
12170 hardcode_minus_L=yes
12171 hardcode_shlibpath_var=no
12172 ;;
12173
12174 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12175 freebsd* | dragonfly* | midnightbsd*)
12176 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12177 hardcode_libdir_flag_spec='-R$libdir'
12178 hardcode_direct=yes
12179 hardcode_shlibpath_var=no
12180 ;;
12181
12182 hpux9*)
12183 if test yes = "$GCC"; then
12184 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12185 else
12186 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12187 fi
12188 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12189 hardcode_libdir_separator=:
12190 hardcode_direct=yes
12191
12192 # hardcode_minus_L: Not really in the search PATH,
12193 # but as the default location of the library.
12194 hardcode_minus_L=yes
12195 export_dynamic_flag_spec='$wl-E'
12196 ;;
12197
12198 hpux10*)
12199 if test yes,no = "$GCC,$with_gnu_ld"; then
12200 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12201 else
12202 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12203 fi
12204 if test no = "$with_gnu_ld"; then
12205 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12206 hardcode_libdir_separator=:
12207 hardcode_direct=yes
12208 hardcode_direct_absolute=yes
12209 export_dynamic_flag_spec='$wl-E'
12210 # hardcode_minus_L: Not really in the search PATH,
12211 # but as the default location of the library.
12212 hardcode_minus_L=yes
12213 fi
12214 ;;
12215
12216 hpux11*)
12217 if test yes,no = "$GCC,$with_gnu_ld"; then
12218 case $host_cpu in
12219 hppa*64*)
12220 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12221 ;;
12222 ia64*)
12223 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12224 ;;
12225 *)
12226 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12227 ;;
12228 esac
12229 else
12230 case $host_cpu in
12231 hppa*64*)
12232 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12233 ;;
12234 ia64*)
12235 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12236 ;;
12237 *)
12238
12239 # Older versions of the 11.00 compiler do not understand -b yet
12240 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12242 printf %s "checking if $CC understands -b... " >&6; }
12243 if test ${lt_cv_prog_compiler__b+y}
12244 then :
12245 printf %s "(cached) " >&6
12246 else case e in #(
12247 e) lt_cv_prog_compiler__b=no
12248 save_LDFLAGS=$LDFLAGS
12249 LDFLAGS="$LDFLAGS -b"
12250 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12252 # The linker can only warn and ignore the option if not recognized
12253 # So say no if there are warnings
12254 if test -s conftest.err; then
12255 # Append any errors to the config.log.
12256 cat conftest.err 1>&5
12257 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12259 if diff conftest.exp conftest.er2 >/dev/null; then
12260 lt_cv_prog_compiler__b=yes
12261 fi
12262 else
12263 lt_cv_prog_compiler__b=yes
12264 fi
12265 fi
12266 $RM -r conftest*
12267 LDFLAGS=$save_LDFLAGS
12268 ;;
12269 esac
12270 fi
12271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12272 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12273
12274 if test yes = "$lt_cv_prog_compiler__b"; then
12275 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12276 else
12277 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12278 fi
12279
12280 ;;
12281 esac
12282 fi
12283 if test no = "$with_gnu_ld"; then
12284 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12285 hardcode_libdir_separator=:
12286
12287 case $host_cpu in
12288 hppa*64*|ia64*)
12289 hardcode_direct=no
12290 hardcode_shlibpath_var=no
12291 ;;
12292 *)
12293 hardcode_direct=yes
12294 hardcode_direct_absolute=yes
12295 export_dynamic_flag_spec='$wl-E'
12296
12297 # hardcode_minus_L: Not really in the search PATH,
12298 # but as the default location of the library.
12299 hardcode_minus_L=yes
12300 ;;
12301 esac
12302 fi
12303 ;;
12304
12305 irix5* | irix6* | nonstopux*)
12306 if test yes = "$GCC"; then
12307 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12308 # Try to use the -exported_symbol ld option, if it does not
12309 # work, assume that -exports_file does not work either and
12310 # implicitly export all symbols.
12311 # This should be the same for all languages, so no per-tag cache variable.
12312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12313 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12314 if test ${lt_cv_irix_exported_symbol+y}
12315 then :
12316 printf %s "(cached) " >&6
12317 else case e in #(
12318 e) save_LDFLAGS=$LDFLAGS
12319 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12322 int foo (void) { return 0; }
12323 _ACEOF
12324 if ac_fn_c_try_link "$LINENO"
12325 then :
12326 lt_cv_irix_exported_symbol=yes
12327 else case e in #(
12328 e) lt_cv_irix_exported_symbol=no ;;
12329 esac
12330 fi
12331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12332 conftest$ac_exeext conftest.$ac_ext
12333 LDFLAGS=$save_LDFLAGS ;;
12334 esac
12335 fi
12336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12337 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12338 if test yes = "$lt_cv_irix_exported_symbol"; then
12339 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
12340 fi
12341 else
12342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
12344 fi
12345 archive_cmds_need_lc='no'
12346 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12347 hardcode_libdir_separator=:
12348 inherit_rpath=yes
12349 link_all_deplibs=yes
12350 ;;
12351
12352 linux*)
12353 case $cc_basename in
12354 tcc*)
12355 # Fabrice Bellard et al's Tiny C Compiler
12356 ld_shlibs=yes
12357 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12358 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12359 ;;
12360 esac
12361 ;;
12362
12363 *-mlibc)
12364 ;;
12365
12366 netbsd* | netbsdelf*-gnu)
12367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12369 else
12370 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12371 fi
12372 hardcode_libdir_flag_spec='-R$libdir'
12373 hardcode_direct=yes
12374 hardcode_shlibpath_var=no
12375 ;;
12376
12377 newsos6)
12378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12379 hardcode_direct=yes
12380 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12381 hardcode_libdir_separator=:
12382 hardcode_shlibpath_var=no
12383 ;;
12384
12385 *nto* | *qnx*)
12386 ;;
12387
12388 openbsd*)
12389 if test -f /usr/libexec/ld.so; then
12390 hardcode_direct=yes
12391 hardcode_shlibpath_var=no
12392 hardcode_direct_absolute=yes
12393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12394 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12395 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12396 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12397 export_dynamic_flag_spec='$wl-E'
12398 else
12399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12400 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12401 fi
12402 else
12403 ld_shlibs=no
12404 fi
12405 ;;
12406
12407 os2*)
12408 hardcode_libdir_flag_spec='-L$libdir'
12409 hardcode_minus_L=yes
12410 allow_undefined_flag=unsupported
12411 shrext_cmds=.dll
12412 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12413 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12414 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12415 $ECHO EXPORTS >> $output_objdir/$libname.def~
12416 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12417 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12418 emximp -o $lib $output_objdir/$libname.def'
12419 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12420 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12421 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12422 $ECHO EXPORTS >> $output_objdir/$libname.def~
12423 prefix_cmds="$SED"~
12424 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12425 prefix_cmds="$prefix_cmds -e 1d";
12426 fi~
12427 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12428 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12429 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12430 emximp -o $lib $output_objdir/$libname.def'
12431 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12432 enable_shared_with_static_runtimes=yes
12433 file_list_spec='@'
12434 ;;
12435
12436 osf3*)
12437 if test yes = "$GCC"; then
12438 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12439 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12440 else
12441 allow_undefined_flag=' -expect_unresolved \*'
12442 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12443 fi
12444 archive_cmds_need_lc='no'
12445 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12446 hardcode_libdir_separator=:
12447 ;;
12448
12449 osf4* | osf5*) # as osf3* with the addition of -msym flag
12450 if test yes = "$GCC"; then
12451 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12452 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12453 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12454 else
12455 allow_undefined_flag=' -expect_unresolved \*'
12456 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12457 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12458 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
12459
12460 # Both c and cxx compiler support -rpath directly
12461 hardcode_libdir_flag_spec='-rpath $libdir'
12462 fi
12463 archive_cmds_need_lc='no'
12464 hardcode_libdir_separator=:
12465 ;;
12466
12467 serenity*)
12468 ;;
12469
12470 solaris*)
12471 no_undefined_flag=' -z defs'
12472 if test yes = "$GCC"; then
12473 wlarc='$wl'
12474 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12475 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12476 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12477 else
12478 case `$CC -V 2>&1` in
12479 *"Compilers 5.0"*)
12480 wlarc=''
12481 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12483 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12484 ;;
12485 *)
12486 wlarc='$wl'
12487 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12488 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12489 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12490 ;;
12491 esac
12492 fi
12493 hardcode_libdir_flag_spec='-R$libdir'
12494 hardcode_shlibpath_var=no
12495 case $host_os in
12496 solaris2.[0-5] | solaris2.[0-5].*) ;;
12497 *)
12498 # The compiler driver will combine and reorder linker options,
12499 # but understands '-z linker_flag'. GCC discards it without '$wl',
12500 # but is careful enough not to reorder.
12501 # Supported since Solaris 2.6 (maybe 2.5.1?)
12502 if test yes = "$GCC"; then
12503 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12504 else
12505 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12506 fi
12507 ;;
12508 esac
12509 link_all_deplibs=yes
12510 ;;
12511
12512 sunos4*)
12513 if test sequent = "$host_vendor"; then
12514 # Use $CC to link under sequent, because it throws in some extra .o
12515 # files that make .init and .fini sections work.
12516 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12517 else
12518 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12519 fi
12520 hardcode_libdir_flag_spec='-L$libdir'
12521 hardcode_direct=yes
12522 hardcode_minus_L=yes
12523 hardcode_shlibpath_var=no
12524 ;;
12525
12526 sysv4)
12527 case $host_vendor in
12528 sni)
12529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12530 hardcode_direct=yes # is this really true???
12531 ;;
12532 siemens)
12533 ## LD is ld it makes a PLAMLIB
12534 ## CC just makes a GrossModule.
12535 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12536 reload_cmds='$CC -r -o $output$reload_objs'
12537 hardcode_direct=no
12538 ;;
12539 motorola)
12540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12541 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12542 ;;
12543 esac
12544 runpath_var='LD_RUN_PATH'
12545 hardcode_shlibpath_var=no
12546 ;;
12547
12548 sysv4.3*)
12549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12550 hardcode_shlibpath_var=no
12551 export_dynamic_flag_spec='-Bexport'
12552 ;;
12553
12554 sysv4*MP*)
12555 if test -d /usr/nec; then
12556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12557 hardcode_shlibpath_var=no
12558 runpath_var=LD_RUN_PATH
12559 hardcode_runpath_var=yes
12560 ld_shlibs=yes
12561 fi
12562 ;;
12563
12564 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12565 no_undefined_flag='$wl-z,text'
12566 archive_cmds_need_lc=no
12567 hardcode_shlibpath_var=no
12568 runpath_var='LD_RUN_PATH'
12569
12570 if test yes = "$GCC"; then
12571 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12572 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12573 else
12574 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12575 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12576 fi
12577 ;;
12578
12579 sysv5* | sco3.2v5* | sco5v6*)
12580 # Note: We CANNOT use -z defs as we might desire, because we do not
12581 # link with -lc, and that would cause any symbols used from libc to
12582 # always be unresolved, which means just about no library would
12583 # ever link correctly. If we're not using GNU ld we use -z text
12584 # though, which does catch some bad symbols but isn't as heavy-handed
12585 # as -z defs.
12586 no_undefined_flag='$wl-z,text'
12587 allow_undefined_flag='$wl-z,nodefs'
12588 archive_cmds_need_lc=no
12589 hardcode_shlibpath_var=no
12590 hardcode_libdir_flag_spec='$wl-R,$libdir'
12591 hardcode_libdir_separator=':'
12592 link_all_deplibs=yes
12593 export_dynamic_flag_spec='$wl-Bexport'
12594 runpath_var='LD_RUN_PATH'
12595
12596 if test yes = "$GCC"; then
12597 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12598 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12599 else
12600 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12601 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12602 fi
12603 ;;
12604
12605 uts4*)
12606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12607 hardcode_libdir_flag_spec='-L$libdir'
12608 hardcode_shlibpath_var=no
12609 ;;
12610
12611 *)
12612 ld_shlibs=no
12613 ;;
12614 esac
12615
12616 if test sni = "$host_vendor"; then
12617 case $host in
12618 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12619 export_dynamic_flag_spec='$wl-Blargedynsym'
12620 ;;
12621 esac
12622 fi
12623 fi
12624
12625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12626 printf "%s\n" "$ld_shlibs" >&6; }
12627 test no = "$ld_shlibs" && can_build_shared=no
12628
12629 with_gnu_ld=$with_gnu_ld
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645 #
12646 # Do we need to explicitly link libc?
12647 #
12648 case "x$archive_cmds_need_lc" in
12649 x|xyes)
12650 # Assume -lc should be added
12651 archive_cmds_need_lc=yes
12652
12653 if test yes,yes = "$GCC,$enable_shared"; then
12654 case $archive_cmds in
12655 *'~'*)
12656 # FIXME: we may have to deal with multi-command sequences.
12657 ;;
12658 '$CC '*)
12659 # Test whether the compiler implicitly links with -lc since on some
12660 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12661 # to ld, don't add -lc before -lgcc.
12662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12663 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12664 if test ${lt_cv_archive_cmds_need_lc+y}
12665 then :
12666 printf %s "(cached) " >&6
12667 else case e in #(
12668 e) $RM conftest*
12669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12670
12671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12672 (eval $ac_compile) 2>&5
12673 ac_status=$?
12674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12675 test $ac_status = 0; } 2>conftest.err; then
12676 soname=conftest
12677 lib=conftest
12678 libobjs=conftest.$ac_objext
12679 deplibs=
12680 wl=$lt_prog_compiler_wl
12681 pic_flag=$lt_prog_compiler_pic
12682 compiler_flags=-v
12683 linker_flags=-v
12684 verstring=
12685 output_objdir=.
12686 libname=conftest
12687 lt_save_allow_undefined_flag=$allow_undefined_flag
12688 allow_undefined_flag=
12689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12690 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12691 ac_status=$?
12692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12693 test $ac_status = 0; }
12694 then
12695 lt_cv_archive_cmds_need_lc=no
12696 else
12697 lt_cv_archive_cmds_need_lc=yes
12698 fi
12699 allow_undefined_flag=$lt_save_allow_undefined_flag
12700 else
12701 cat conftest.err 1>&5
12702 fi
12703 $RM conftest*
12704 ;;
12705 esac
12706 fi
12707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12708 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12709 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12710 ;;
12711 esac
12712 fi
12713 ;;
12714 esac
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12868 printf %s "checking dynamic linker characteristics... " >&6; }
12869
12870 if test yes = "$GCC"; then
12871 case $host_os in
12872 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12873 *) lt_awk_arg='/^libraries:/' ;;
12874 esac
12875 case $host_os in
12876 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12877 *) lt_sed_strip_eq='s|=/|/|g' ;;
12878 esac
12879 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12880 case $lt_search_path_spec in
12881 *\;*)
12882 # if the path contains ";" then we assume it to be the separator
12883 # otherwise default to the standard path separator (i.e. ":") - it is
12884 # assumed that no part of a normal pathname contains ";" but that should
12885 # okay in the real world where ";" in dirpaths is itself problematic.
12886 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12887 ;;
12888 *)
12889 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12890 ;;
12891 esac
12892 # Ok, now we have the path, separated by spaces, we can step through it
12893 # and add multilib dir if necessary...
12894 lt_tmp_lt_search_path_spec=
12895 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12896 # ...but if some path component already ends with the multilib dir we assume
12897 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12898 case "$lt_multi_os_dir; $lt_search_path_spec " in
12899 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12900 lt_multi_os_dir=
12901 ;;
12902 esac
12903 for lt_sys_path in $lt_search_path_spec; do
12904 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12905 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12906 elif test -n "$lt_multi_os_dir"; then
12907 test -d "$lt_sys_path" && \
12908 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12909 fi
12910 done
12911 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12912 BEGIN {RS = " "; FS = "/|\n";} {
12913 lt_foo = "";
12914 lt_count = 0;
12915 for (lt_i = NF; lt_i > 0; lt_i--) {
12916 if ($lt_i != "" && $lt_i != ".") {
12917 if ($lt_i == "..") {
12918 lt_count++;
12919 } else {
12920 if (lt_count == 0) {
12921 lt_foo = "/" $lt_i lt_foo;
12922 } else {
12923 lt_count--;
12924 }
12925 }
12926 }
12927 }
12928 if (lt_foo != "") { lt_freq[lt_foo]++; }
12929 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12930 }'`
12931 # AWK program above erroneously prepends '/' to C:/dos/paths
12932 # for these hosts.
12933 case $host_os in
12934 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12935 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12936 esac
12937 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12938 else
12939 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12940 fi
12941 library_names_spec=
12942 libname_spec='lib$name'
12943 soname_spec=
12944 shrext_cmds=.so
12945 postinstall_cmds=
12946 postuninstall_cmds=
12947 finish_cmds=
12948 finish_eval=
12949 shlibpath_var=
12950 shlibpath_overrides_runpath=unknown
12951 version_type=none
12952 dynamic_linker="$host_os ld.so"
12953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12954 need_lib_prefix=unknown
12955 hardcode_into_libs=no
12956
12957 # when you set need_version to no, make sure it does not cause -set_version
12958 # flags to be left without arguments
12959 need_version=unknown
12960
12961
12962
12963 case $host_os in
12964 aix3*)
12965 version_type=linux # correct to gnu/linux during the next big refactor
12966 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12967 shlibpath_var=LIBPATH
12968
12969 # AIX 3 has no versioning support, so we append a major version to the name.
12970 soname_spec='$libname$release$shared_ext$major'
12971 ;;
12972
12973 aix[4-9]*)
12974 version_type=linux # correct to gnu/linux during the next big refactor
12975 need_lib_prefix=no
12976 need_version=no
12977 hardcode_into_libs=yes
12978 if test ia64 = "$host_cpu"; then
12979 # AIX 5 supports IA64
12980 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12981 shlibpath_var=LD_LIBRARY_PATH
12982 else
12983 # With GCC up to 2.95.x, collect2 would create an import file
12984 # for dependence libraries. The import file would start with
12985 # the line '#! .'. This would cause the generated library to
12986 # depend on '.', always an invalid library. This was fixed in
12987 # development snapshots of GCC prior to 3.0.
12988 case $host_os in
12989 aix4 | aix4.[01] | aix4.[01].*)
12990 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12991 echo ' yes '
12992 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12993 :
12994 else
12995 can_build_shared=no
12996 fi
12997 ;;
12998 esac
12999 # Using Import Files as archive members, it is possible to support
13000 # filename-based versioning of shared library archives on AIX. While
13001 # this would work for both with and without runtime linking, it will
13002 # prevent static linking of such archives. So we do filename-based
13003 # shared library versioning with .so extension only, which is used
13004 # when both runtime linking and shared linking is enabled.
13005 # Unfortunately, runtime linking may impact performance, so we do
13006 # not want this to be the default eventually. Also, we use the
13007 # versioned .so libs for executables only if there is the -brtl
13008 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13009 # To allow for filename-based versioning support, we need to create
13010 # libNAME.so.V as an archive file, containing:
13011 # *) an Import File, referring to the versioned filename of the
13012 # archive as well as the shared archive member, telling the
13013 # bitwidth (32 or 64) of that shared object, and providing the
13014 # list of exported symbols of that shared object, eventually
13015 # decorated with the 'weak' keyword
13016 # *) the shared object with the F_LOADONLY flag set, to really avoid
13017 # it being seen by the linker.
13018 # At run time we better use the real file rather than another symlink,
13019 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13020
13021 case $with_aix_soname,$aix_use_runtimelinking in
13022 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13023 # soname into executable. Probably we can add versioning support to
13024 # collect2, so additional links can be useful in future.
13025 aix,yes) # traditional libtool
13026 dynamic_linker='AIX unversionable lib.so'
13027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13028 # instead of lib<name>.a to let people know that these are not
13029 # typical AIX shared libraries.
13030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13031 ;;
13032 aix,no) # traditional AIX only
13033 dynamic_linker='AIX lib.a(lib.so.V)'
13034 # We preserve .a as extension for shared libraries through AIX4.2
13035 # and later when we are not doing run time linking.
13036 library_names_spec='$libname$release.a $libname.a'
13037 soname_spec='$libname$release$shared_ext$major'
13038 ;;
13039 svr4,*) # full svr4 only
13040 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13041 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13042 # We do not specify a path in Import Files, so LIBPATH fires.
13043 shlibpath_overrides_runpath=yes
13044 ;;
13045 *,yes) # both, prefer svr4
13046 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13047 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13048 # unpreferred sharedlib libNAME.a needs extra handling
13049 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13050 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13051 # We do not specify a path in Import Files, so LIBPATH fires.
13052 shlibpath_overrides_runpath=yes
13053 ;;
13054 *,no) # both, prefer aix
13055 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13056 library_names_spec='$libname$release.a $libname.a'
13057 soname_spec='$libname$release$shared_ext$major'
13058 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13059 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13060 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13061 ;;
13062 esac
13063 shlibpath_var=LIBPATH
13064 fi
13065 ;;
13066
13067 amigaos*)
13068 case $host_cpu in
13069 powerpc)
13070 # Since July 2007 AmigaOS4 officially supports .so libraries.
13071 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13073 ;;
13074 m68k)
13075 library_names_spec='$libname.ixlibrary $libname.a'
13076 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13077 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13078 ;;
13079 esac
13080 ;;
13081
13082 beos*)
13083 library_names_spec='$libname$shared_ext'
13084 dynamic_linker="$host_os ld.so"
13085 shlibpath_var=LIBRARY_PATH
13086 ;;
13087
13088 bsdi[45]*)
13089 version_type=linux # correct to gnu/linux during the next big refactor
13090 need_version=no
13091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13092 soname_spec='$libname$release$shared_ext$major'
13093 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13094 shlibpath_var=LD_LIBRARY_PATH
13095 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13096 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13097 # the default ld.so.conf also contains /usr/contrib/lib and
13098 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13099 # libtool to hard-code these into programs
13100 ;;
13101
13102 cygwin* | mingw* | windows* | pw32* | cegcc*)
13103 version_type=windows
13104 shrext_cmds=.dll
13105 need_version=no
13106 need_lib_prefix=no
13107
13108 case $GCC,$cc_basename in
13109 yes,*)
13110 # gcc
13111 library_names_spec='$libname.dll.a'
13112 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13113 # If user builds GCC with multilib enabled,
13114 # it should just install on $(libdir)
13115 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13116 if test xyes = x"$multilib"; then
13117 postinstall_cmds='base_file=`basename \$file`~
13118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13119 dldir=$destdir/`dirname \$dlpath`~
13120 $install_prog $dir/$dlname $destdir/$dlname~
13121 chmod a+x $destdir/$dlname~
13122 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13123 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13124 fi'
13125 else
13126 postinstall_cmds='base_file=`basename \$file`~
13127 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13128 dldir=$destdir/`dirname \$dlpath`~
13129 test -d \$dldir || mkdir -p \$dldir~
13130 $install_prog $dir/$dlname \$dldir/$dlname~
13131 chmod a+x \$dldir/$dlname~
13132 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13133 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13134 fi'
13135 fi
13136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13137 dlpath=$dir/\$dldll~
13138 $RM \$dlpath'
13139 shlibpath_overrides_runpath=yes
13140
13141 case $host_os in
13142 cygwin*)
13143 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13144 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13145
13146 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13147 ;;
13148 mingw* | windows* | cegcc*)
13149 # MinGW DLLs use traditional 'lib' prefix
13150 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13151 ;;
13152 pw32*)
13153 # pw32 DLLs use 'pw' prefix rather than 'lib'
13154 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13155 ;;
13156 esac
13157 dynamic_linker='Win32 ld.exe'
13158 ;;
13159
13160 *,cl* | *,icl*)
13161 # Native MSVC or ICC
13162 libname_spec='$name'
13163 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13164 library_names_spec='$libname.dll.lib'
13165
13166 case $build_os in
13167 mingw* | windows*)
13168 sys_lib_search_path_spec=
13169 lt_save_ifs=$IFS
13170 IFS=';'
13171 for lt_path in $LIB
13172 do
13173 IFS=$lt_save_ifs
13174 # Let DOS variable expansion print the short 8.3 style file name.
13175 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13176 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13177 done
13178 IFS=$lt_save_ifs
13179 # Convert to MSYS style.
13180 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13181 ;;
13182 cygwin*)
13183 # Convert to unix form, then to dos form, then back to unix form
13184 # but this time dos style (no spaces!) so that the unix form looks
13185 # like /cygdrive/c/PROGRA~1:/cygdr...
13186 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13187 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13188 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13189 ;;
13190 *)
13191 sys_lib_search_path_spec=$LIB
13192 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13193 # It is most probably a Windows format PATH.
13194 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13195 else
13196 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13197 fi
13198 # FIXME: find the short name or the path components, as spaces are
13199 # common. (e.g. "Program Files" -> "PROGRA~1")
13200 ;;
13201 esac
13202
13203 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13204 postinstall_cmds='base_file=`basename \$file`~
13205 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13206 dldir=$destdir/`dirname \$dlpath`~
13207 test -d \$dldir || mkdir -p \$dldir~
13208 $install_prog $dir/$dlname \$dldir/$dlname'
13209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13210 dlpath=$dir/\$dldll~
13211 $RM \$dlpath'
13212 shlibpath_overrides_runpath=yes
13213 dynamic_linker='Win32 link.exe'
13214 ;;
13215
13216 *)
13217 # Assume MSVC and ICC wrapper
13218 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13219 dynamic_linker='Win32 ld.exe'
13220 ;;
13221 esac
13222 # FIXME: first we should search . and the directory the executable is in
13223 shlibpath_var=PATH
13224 ;;
13225
13226 darwin* | rhapsody*)
13227 dynamic_linker="$host_os dyld"
13228 version_type=darwin
13229 need_lib_prefix=no
13230 need_version=no
13231 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13232 soname_spec='$libname$release$major$shared_ext'
13233 shlibpath_overrides_runpath=yes
13234 shlibpath_var=DYLD_LIBRARY_PATH
13235 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13236
13237 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13238 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13239 ;;
13240
13241 dgux*)
13242 version_type=linux # correct to gnu/linux during the next big refactor
13243 need_lib_prefix=no
13244 need_version=no
13245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13246 soname_spec='$libname$release$shared_ext$major'
13247 shlibpath_var=LD_LIBRARY_PATH
13248 ;;
13249
13250 freebsd* | dragonfly* | midnightbsd*)
13251 # DragonFly does not have aout. When/if they implement a new
13252 # versioning mechanism, adjust this.
13253 if test -x /usr/bin/objformat; then
13254 objformat=`/usr/bin/objformat`
13255 else
13256 case $host_os in
13257 freebsd[23].*) objformat=aout ;;
13258 *) objformat=elf ;;
13259 esac
13260 fi
13261 version_type=freebsd-$objformat
13262 case $version_type in
13263 freebsd-elf*)
13264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13265 soname_spec='$libname$release$shared_ext$major'
13266 need_version=no
13267 need_lib_prefix=no
13268 ;;
13269 freebsd-*)
13270 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13271 need_version=yes
13272 ;;
13273 esac
13274 case $host_cpu in
13275 powerpc64)
13276 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13277 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280 int test_pointer_size[sizeof (void *) - 5];
13281
13282 _ACEOF
13283 if ac_fn_c_try_compile "$LINENO"
13284 then :
13285 shlibpath_var=LD_LIBRARY_PATH
13286 else case e in #(
13287 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13288 esac
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13291 ;;
13292 *)
13293 shlibpath_var=LD_LIBRARY_PATH
13294 ;;
13295 esac
13296 case $host_os in
13297 freebsd2.*)
13298 shlibpath_overrides_runpath=yes
13299 ;;
13300 freebsd3.[01]* | freebsdelf3.[01]*)
13301 shlibpath_overrides_runpath=yes
13302 hardcode_into_libs=yes
13303 ;;
13304 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13305 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13306 shlibpath_overrides_runpath=no
13307 hardcode_into_libs=yes
13308 ;;
13309 *) # from 4.6 on, and DragonFly
13310 shlibpath_overrides_runpath=yes
13311 hardcode_into_libs=yes
13312 ;;
13313 esac
13314 ;;
13315
13316 haiku*)
13317 version_type=linux # correct to gnu/linux during the next big refactor
13318 need_lib_prefix=no
13319 need_version=no
13320 dynamic_linker="$host_os runtime_loader"
13321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13322 soname_spec='$libname$release$shared_ext$major'
13323 shlibpath_var=LIBRARY_PATH
13324 shlibpath_overrides_runpath=no
13325 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13326 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13327 hardcode_into_libs=no
13328 ;;
13329
13330 hpux9* | hpux10* | hpux11*)
13331 # Give a soname corresponding to the major version so that dld.sl refuses to
13332 # link against other versions.
13333 version_type=sunos
13334 need_lib_prefix=no
13335 need_version=no
13336 case $host_cpu in
13337 ia64*)
13338 shrext_cmds='.so'
13339 hardcode_into_libs=yes
13340 dynamic_linker="$host_os dld.so"
13341 shlibpath_var=LD_LIBRARY_PATH
13342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13344 soname_spec='$libname$release$shared_ext$major'
13345 if test 32 = "$HPUX_IA64_MODE"; then
13346 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13347 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13348 else
13349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13350 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13351 fi
13352 ;;
13353 hppa*64*)
13354 shrext_cmds='.sl'
13355 hardcode_into_libs=yes
13356 dynamic_linker="$host_os dld.sl"
13357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13360 soname_spec='$libname$release$shared_ext$major'
13361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13363 ;;
13364 *)
13365 shrext_cmds='.sl'
13366 dynamic_linker="$host_os dld.sl"
13367 shlibpath_var=SHLIB_PATH
13368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13370 soname_spec='$libname$release$shared_ext$major'
13371 ;;
13372 esac
13373 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13374 postinstall_cmds='chmod 555 $lib'
13375 # or fails outright, so override atomically:
13376 install_override_mode=555
13377 ;;
13378
13379 interix[3-9]*)
13380 version_type=linux # correct to gnu/linux during the next big refactor
13381 need_lib_prefix=no
13382 need_version=no
13383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13384 soname_spec='$libname$release$shared_ext$major'
13385 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13386 shlibpath_var=LD_LIBRARY_PATH
13387 shlibpath_overrides_runpath=no
13388 hardcode_into_libs=yes
13389 ;;
13390
13391 irix5* | irix6* | nonstopux*)
13392 case $host_os in
13393 nonstopux*) version_type=nonstopux ;;
13394 *)
13395 if test yes = "$lt_cv_prog_gnu_ld"; then
13396 version_type=linux # correct to gnu/linux during the next big refactor
13397 else
13398 version_type=irix
13399 fi ;;
13400 esac
13401 need_lib_prefix=no
13402 need_version=no
13403 soname_spec='$libname$release$shared_ext$major'
13404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13405 case $host_os in
13406 irix5* | nonstopux*)
13407 libsuff= shlibsuff=
13408 ;;
13409 *)
13410 case $LD in # libtool.m4 will add one of these switches to LD
13411 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13412 libsuff= shlibsuff= libmagic=32-bit;;
13413 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13414 libsuff=32 shlibsuff=N32 libmagic=N32;;
13415 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13416 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13417 *) libsuff= shlibsuff= libmagic=never-match;;
13418 esac
13419 ;;
13420 esac
13421 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13422 shlibpath_overrides_runpath=no
13423 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13424 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13425 hardcode_into_libs=yes
13426 ;;
13427
13428 # No shared lib support for Linux oldld, aout, or coff.
13429 linux*oldld* | linux*aout* | linux*coff*)
13430 dynamic_linker=no
13431 ;;
13432
13433 linux*android*)
13434 version_type=none # Android doesn't support versioned libraries.
13435 need_lib_prefix=no
13436 need_version=no
13437 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13438 soname_spec='$libname$release$shared_ext'
13439 finish_cmds=
13440 shlibpath_var=LD_LIBRARY_PATH
13441 shlibpath_overrides_runpath=yes
13442
13443 # This implies no fast_install, which is unacceptable.
13444 # Some rework will be needed to allow for fast_install
13445 # before this can be enabled.
13446 hardcode_into_libs=yes
13447
13448 dynamic_linker='Android linker'
13449 # -rpath works at least for libraries that are not overridden by
13450 # libraries installed in system locations.
13451 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13452 ;;
13453
13454 # This must be glibc/ELF.
13455 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13456 version_type=linux # correct to gnu/linux during the next big refactor
13457 need_lib_prefix=no
13458 need_version=no
13459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13460 soname_spec='$libname$release$shared_ext$major'
13461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13462 shlibpath_var=LD_LIBRARY_PATH
13463 shlibpath_overrides_runpath=no
13464
13465 # Some binutils ld are patched to set DT_RUNPATH
13466 if test ${lt_cv_shlibpath_overrides_runpath+y}
13467 then :
13468 printf %s "(cached) " >&6
13469 else case e in #(
13470 e) lt_cv_shlibpath_overrides_runpath=no
13471 save_LDFLAGS=$LDFLAGS
13472 save_libdir=$libdir
13473 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13474 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13477
13478 int
13479 main (void)
13480 {
13481
13482 ;
13483 return 0;
13484 }
13485 _ACEOF
13486 if ac_fn_c_try_link "$LINENO"
13487 then :
13488 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13489 then :
13490 lt_cv_shlibpath_overrides_runpath=yes
13491 fi
13492 fi
13493 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13494 conftest$ac_exeext conftest.$ac_ext
13495 LDFLAGS=$save_LDFLAGS
13496 libdir=$save_libdir
13497 ;;
13498 esac
13499 fi
13500
13501 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13502
13503 # This implies no fast_install, which is unacceptable.
13504 # Some rework will be needed to allow for fast_install
13505 # before this can be enabled.
13506 hardcode_into_libs=yes
13507
13508 # Ideally, we could use ldconfig to report *all* directories which are
13509 # searched for libraries, however this is still not possible. Aside from not
13510 # being certain /sbin/ldconfig is available, command
13511 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13512 # even though it is searched at run-time. Try to do the best guess by
13513 # appending ld.so.conf contents (and includes) to the search path.
13514 if test -f /etc/ld.so.conf; then
13515 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13516 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13517 fi
13518
13519 # We used to test for /lib/ld.so.1 and disable shared libraries on
13520 # powerpc, because MkLinux only supported shared libraries with the
13521 # GNU dynamic linker. Since this was broken with cross compilers,
13522 # most powerpc-linux boxes support dynamic linking these days and
13523 # people can always --disable-shared, the test was removed, and we
13524 # assume the GNU/Linux dynamic linker is in use.
13525 dynamic_linker='GNU/Linux ld.so'
13526 ;;
13527
13528 netbsdelf*-gnu)
13529 version_type=linux
13530 need_lib_prefix=no
13531 need_version=no
13532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13533 soname_spec='$libname$release$shared_ext$major'
13534 shlibpath_var=LD_LIBRARY_PATH
13535 shlibpath_overrides_runpath=no
13536 hardcode_into_libs=yes
13537 dynamic_linker='NetBSD ld.elf_so'
13538 ;;
13539
13540 netbsd*)
13541 version_type=sunos
13542 need_lib_prefix=no
13543 need_version=no
13544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13545 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13547 dynamic_linker='NetBSD (a.out) ld.so'
13548 else
13549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13550 soname_spec='$libname$release$shared_ext$major'
13551 dynamic_linker='NetBSD ld.elf_so'
13552 fi
13553 shlibpath_var=LD_LIBRARY_PATH
13554 shlibpath_overrides_runpath=yes
13555 hardcode_into_libs=yes
13556 ;;
13557
13558 *-mlibc)
13559 version_type=linux # correct to gnu/linux during the next big refactor
13560 need_lib_prefix=no
13561 need_version=no
13562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13563 soname_spec='$libname$release$shared_ext$major'
13564 dynamic_linker='mlibc ld.so'
13565 shlibpath_var=LD_LIBRARY_PATH
13566 shlibpath_overrides_runpath=no
13567 hardcode_into_libs=yes
13568 ;;
13569
13570 newsos6)
13571 version_type=linux # correct to gnu/linux during the next big refactor
13572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13573 shlibpath_var=LD_LIBRARY_PATH
13574 shlibpath_overrides_runpath=yes
13575 ;;
13576
13577 *nto* | *qnx*)
13578 version_type=qnx
13579 need_lib_prefix=no
13580 need_version=no
13581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13582 soname_spec='$libname$release$shared_ext$major'
13583 shlibpath_var=LD_LIBRARY_PATH
13584 shlibpath_overrides_runpath=no
13585 hardcode_into_libs=yes
13586 dynamic_linker='ldqnx.so'
13587 ;;
13588
13589 openbsd*)
13590 version_type=sunos
13591 sys_lib_dlsearch_path_spec=/usr/lib
13592 need_lib_prefix=no
13593 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13594 need_version=no
13595 else
13596 need_version=yes
13597 fi
13598 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13600 shlibpath_var=LD_LIBRARY_PATH
13601 shlibpath_overrides_runpath=yes
13602 ;;
13603
13604 os2*)
13605 libname_spec='$name'
13606 version_type=windows
13607 shrext_cmds=.dll
13608 need_version=no
13609 need_lib_prefix=no
13610 # OS/2 can only load a DLL with a base name of 8 characters or less.
13611 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13612 v=$($ECHO $release$versuffix | tr -d .-);
13613 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13614 $ECHO $n$v`$shared_ext'
13615 library_names_spec='${libname}_dll.$libext'
13616 dynamic_linker='OS/2 ld.exe'
13617 shlibpath_var=BEGINLIBPATH
13618 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13620 postinstall_cmds='base_file=`basename \$file`~
13621 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13622 dldir=$destdir/`dirname \$dlpath`~
13623 test -d \$dldir || mkdir -p \$dldir~
13624 $install_prog $dir/$dlname \$dldir/$dlname~
13625 chmod a+x \$dldir/$dlname~
13626 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13627 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13628 fi'
13629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13630 dlpath=$dir/\$dldll~
13631 $RM \$dlpath'
13632 ;;
13633
13634 osf3* | osf4* | osf5*)
13635 version_type=osf
13636 need_lib_prefix=no
13637 need_version=no
13638 soname_spec='$libname$release$shared_ext$major'
13639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13640 shlibpath_var=LD_LIBRARY_PATH
13641 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13643 ;;
13644
13645 rdos*)
13646 dynamic_linker=no
13647 ;;
13648
13649 serenity*)
13650 version_type=linux # correct to gnu/linux during the next big refactor
13651 need_lib_prefix=no
13652 need_version=no
13653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13654 soname_spec='$libname$release$shared_ext$major'
13655 shlibpath_var=LD_LIBRARY_PATH
13656 shlibpath_overrides_runpath=no
13657 dynamic_linker='SerenityOS LibELF'
13658 ;;
13659
13660 solaris*)
13661 version_type=linux # correct to gnu/linux during the next big refactor
13662 need_lib_prefix=no
13663 need_version=no
13664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13665 soname_spec='$libname$release$shared_ext$major'
13666 shlibpath_var=LD_LIBRARY_PATH
13667 shlibpath_overrides_runpath=yes
13668 hardcode_into_libs=yes
13669 # ldd complains unless libraries are executable
13670 postinstall_cmds='chmod +x $lib'
13671 ;;
13672
13673 sunos4*)
13674 version_type=sunos
13675 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13676 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13677 shlibpath_var=LD_LIBRARY_PATH
13678 shlibpath_overrides_runpath=yes
13679 if test yes = "$with_gnu_ld"; then
13680 need_lib_prefix=no
13681 fi
13682 need_version=yes
13683 ;;
13684
13685 sysv4 | sysv4.3*)
13686 version_type=linux # correct to gnu/linux during the next big refactor
13687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13688 soname_spec='$libname$release$shared_ext$major'
13689 shlibpath_var=LD_LIBRARY_PATH
13690 case $host_vendor in
13691 sni)
13692 shlibpath_overrides_runpath=no
13693 need_lib_prefix=no
13694 runpath_var=LD_RUN_PATH
13695 ;;
13696 siemens)
13697 need_lib_prefix=no
13698 ;;
13699 motorola)
13700 need_lib_prefix=no
13701 need_version=no
13702 shlibpath_overrides_runpath=no
13703 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13704 ;;
13705 esac
13706 ;;
13707
13708 sysv4*MP*)
13709 if test -d /usr/nec; then
13710 version_type=linux # correct to gnu/linux during the next big refactor
13711 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13712 soname_spec='$libname$shared_ext.$major'
13713 shlibpath_var=LD_LIBRARY_PATH
13714 fi
13715 ;;
13716
13717 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13718 version_type=sco
13719 need_lib_prefix=no
13720 need_version=no
13721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13722 soname_spec='$libname$release$shared_ext$major'
13723 shlibpath_var=LD_LIBRARY_PATH
13724 shlibpath_overrides_runpath=yes
13725 hardcode_into_libs=yes
13726 if test yes = "$with_gnu_ld"; then
13727 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13728 else
13729 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13730 case $host_os in
13731 sco3.2v5*)
13732 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13733 ;;
13734 esac
13735 fi
13736 sys_lib_dlsearch_path_spec='/usr/lib'
13737 ;;
13738
13739 tpf*)
13740 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13741 version_type=linux # correct to gnu/linux during the next big refactor
13742 need_lib_prefix=no
13743 need_version=no
13744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13745 shlibpath_var=LD_LIBRARY_PATH
13746 shlibpath_overrides_runpath=no
13747 hardcode_into_libs=yes
13748 ;;
13749
13750 uts4*)
13751 version_type=linux # correct to gnu/linux during the next big refactor
13752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13753 soname_spec='$libname$release$shared_ext$major'
13754 shlibpath_var=LD_LIBRARY_PATH
13755 ;;
13756
13757 emscripten*)
13758 version_type=none
13759 need_lib_prefix=no
13760 need_version=no
13761 library_names_spec='$libname$release$shared_ext'
13762 soname_spec='$libname$release$shared_ext'
13763 finish_cmds=
13764 dynamic_linker="Emscripten linker"
13765 lt_prog_compiler_wl=
13766 lt_prog_compiler_pic=
13767 lt_prog_compiler_static=
13768
13769
13770 if test yes = "$GCC"; then
13771 lt_prog_compiler_wl='-Wl,'
13772 lt_prog_compiler_static='-static'
13773
13774 case $host_os in
13775 aix*)
13776 # All AIX code is PIC.
13777 if test ia64 = "$host_cpu"; then
13778 # AIX 5 now supports IA64 processor
13779 lt_prog_compiler_static='-Bstatic'
13780 fi
13781 lt_prog_compiler_pic='-fPIC'
13782 ;;
13783
13784 amigaos*)
13785 case $host_cpu in
13786 powerpc)
13787 # see comment about AmigaOS4 .so support
13788 lt_prog_compiler_pic='-fPIC'
13789 ;;
13790 m68k)
13791 # FIXME: we need at least 68020 code to build shared libraries, but
13792 # adding the '-m68020' flag to GCC prevents building anything better,
13793 # like '-m68040'.
13794 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13795 ;;
13796 esac
13797 ;;
13798
13799 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13800 # PIC is the default for these OSes.
13801 ;;
13802
13803 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13804 # This hack is so that the source file can tell whether it is being
13805 # built for inclusion in a dll (and should export symbols for example).
13806 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13807 # (--disable-auto-import) libraries
13808 lt_prog_compiler_pic='-DDLL_EXPORT'
13809 case $host_os in
13810 os2*)
13811 lt_prog_compiler_static='$wl-static'
13812 ;;
13813 esac
13814 ;;
13815
13816 darwin* | rhapsody*)
13817 # PIC is the default on this platform
13818 # Common symbols not allowed in MH_DYLIB files
13819 lt_prog_compiler_pic='-fno-common'
13820 ;;
13821
13822 haiku*)
13823 # PIC is the default for Haiku.
13824 # The "-static" flag exists, but is broken.
13825 lt_prog_compiler_static=
13826 ;;
13827
13828 hpux*)
13829 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13830 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13831 # sets the default TLS model and affects inlining.
13832 case $host_cpu in
13833 hppa*64*)
13834 # +Z the default
13835 ;;
13836 *)
13837 lt_prog_compiler_pic='-fPIC'
13838 ;;
13839 esac
13840 ;;
13841
13842 interix[3-9]*)
13843 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13844 # Instead, we relocate shared libraries at runtime.
13845 ;;
13846
13847 msdosdjgpp*)
13848 # Just because we use GCC doesn't mean we suddenly get shared libraries
13849 # on systems that don't support them.
13850 lt_prog_compiler_can_build_shared=no
13851 enable_shared=no
13852 ;;
13853
13854 *nto* | *qnx*)
13855 # QNX uses GNU C++, but need to define -shared option too, otherwise
13856 # it will coredump.
13857 lt_prog_compiler_pic='-fPIC -shared'
13858 ;;
13859
13860 sysv4*MP*)
13861 if test -d /usr/nec; then
13862 lt_prog_compiler_pic=-Kconform_pic
13863 fi
13864 ;;
13865
13866 *)
13867 lt_prog_compiler_pic='-fPIC'
13868 ;;
13869 esac
13870
13871 case $cc_basename in
13872 nvcc*) # Cuda Compiler Driver 2.2
13873 lt_prog_compiler_wl='-Xlinker '
13874 if test -n "$lt_prog_compiler_pic"; then
13875 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13876 fi
13877 ;;
13878 esac
13879 else
13880 # PORTME Check for flag to pass linker flags through the system compiler.
13881 case $host_os in
13882 aix*)
13883 lt_prog_compiler_wl='-Wl,'
13884 if test ia64 = "$host_cpu"; then
13885 # AIX 5 now supports IA64 processor
13886 lt_prog_compiler_static='-Bstatic'
13887 else
13888 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13889 fi
13890 ;;
13891
13892 darwin* | rhapsody*)
13893 # PIC is the default on this platform
13894 # Common symbols not allowed in MH_DYLIB files
13895 lt_prog_compiler_pic='-fno-common'
13896 case $cc_basename in
13897 nagfor*)
13898 # NAG Fortran compiler
13899 lt_prog_compiler_wl='-Wl,-Wl,,'
13900 lt_prog_compiler_pic='-PIC'
13901 lt_prog_compiler_static='-Bstatic'
13902 ;;
13903 esac
13904 ;;
13905
13906 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13907 # This hack is so that the source file can tell whether it is being
13908 # built for inclusion in a dll (and should export symbols for example).
13909 lt_prog_compiler_pic='-DDLL_EXPORT'
13910 case $host_os in
13911 os2*)
13912 lt_prog_compiler_static='$wl-static'
13913 ;;
13914 esac
13915 ;;
13916
13917 hpux9* | hpux10* | hpux11*)
13918 lt_prog_compiler_wl='-Wl,'
13919 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13920 # not for PA HP-UX.
13921 case $host_cpu in
13922 hppa*64*|ia64*)
13923 # +Z the default
13924 ;;
13925 *)
13926 lt_prog_compiler_pic='+Z'
13927 ;;
13928 esac
13929 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13930 lt_prog_compiler_static='$wl-a ${wl}archive'
13931 ;;
13932
13933 irix5* | irix6* | nonstopux*)
13934 lt_prog_compiler_wl='-Wl,'
13935 # PIC (with -KPIC) is the default.
13936 lt_prog_compiler_static='-non_shared'
13937 ;;
13938
13939 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13940 case $cc_basename in
13941 # old Intel for x86_64, which still supported -KPIC.
13942 ecc*)
13943 lt_prog_compiler_wl='-Wl,'
13944 lt_prog_compiler_pic='-KPIC'
13945 lt_prog_compiler_static='-static'
13946 ;;
13947 *flang* | ftn | f18* | f95*)
13948 # Flang compiler.
13949 lt_prog_compiler_wl='-Wl,'
13950 lt_prog_compiler_pic='-fPIC'
13951 lt_prog_compiler_static='-static'
13952 ;;
13953 # icc used to be incompatible with GCC.
13954 # ICC 10 doesn't accept -KPIC any more.
13955 icc* | ifort*)
13956 lt_prog_compiler_wl='-Wl,'
13957 lt_prog_compiler_pic='-fPIC'
13958 lt_prog_compiler_static='-static'
13959 ;;
13960 # Lahey Fortran 8.1.
13961 lf95*)
13962 lt_prog_compiler_wl='-Wl,'
13963 lt_prog_compiler_pic='--shared'
13964 lt_prog_compiler_static='--static'
13965 ;;
13966 nagfor*)
13967 # NAG Fortran compiler
13968 lt_prog_compiler_wl='-Wl,-Wl,,'
13969 lt_prog_compiler_pic='-PIC'
13970 lt_prog_compiler_static='-Bstatic'
13971 ;;
13972 tcc*)
13973 # Fabrice Bellard et al's Tiny C Compiler
13974 lt_prog_compiler_wl='-Wl,'
13975 lt_prog_compiler_pic='-fPIC'
13976 lt_prog_compiler_static='-static'
13977 ;;
13978 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13979 # Portland Group compilers (*not* the Pentium gcc compiler,
13980 # which looks to be a dead project)
13981 lt_prog_compiler_wl='-Wl,'
13982 lt_prog_compiler_pic='-fpic'
13983 lt_prog_compiler_static='-Bstatic'
13984 ;;
13985 ccc*)
13986 lt_prog_compiler_wl='-Wl,'
13987 # All Alpha code is PIC.
13988 lt_prog_compiler_static='-non_shared'
13989 ;;
13990 xl* | bgxl* | bgf* | mpixl*)
13991 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13992 lt_prog_compiler_wl='-Wl,'
13993 lt_prog_compiler_pic='-qpic'
13994 lt_prog_compiler_static='-qstaticlink'
13995 ;;
13996 *)
13997 case `$CC -V 2>&1 | $SED 5q` in
13998 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13999 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14000 lt_prog_compiler_pic='-KPIC'
14001 lt_prog_compiler_static='-Bstatic'
14002 lt_prog_compiler_wl=''
14003 ;;
14004 *Sun\ F* | *Sun*Fortran*)
14005 lt_prog_compiler_pic='-KPIC'
14006 lt_prog_compiler_static='-Bstatic'
14007 lt_prog_compiler_wl='-Qoption ld '
14008 ;;
14009 *Sun\ C*)
14010 # Sun C 5.9
14011 lt_prog_compiler_pic='-KPIC'
14012 lt_prog_compiler_static='-Bstatic'
14013 lt_prog_compiler_wl='-Wl,'
14014 ;;
14015 *Intel*\ [CF]*Compiler*)
14016 lt_prog_compiler_wl='-Wl,'
14017 lt_prog_compiler_pic='-fPIC'
14018 lt_prog_compiler_static='-static'
14019 ;;
14020 *Portland\ Group*)
14021 lt_prog_compiler_wl='-Wl,'
14022 lt_prog_compiler_pic='-fpic'
14023 lt_prog_compiler_static='-Bstatic'
14024 ;;
14025 esac
14026 ;;
14027 esac
14028 ;;
14029
14030 newsos6)
14031 lt_prog_compiler_pic='-KPIC'
14032 lt_prog_compiler_static='-Bstatic'
14033 ;;
14034
14035 *-mlibc)
14036 lt_prog_compiler_wl='-Wl,'
14037 lt_prog_compiler_pic='-fPIC'
14038 lt_prog_compiler_static='-static'
14039 ;;
14040
14041 *nto* | *qnx*)
14042 # QNX uses GNU C++, but need to define -shared option too, otherwise
14043 # it will coredump.
14044 lt_prog_compiler_pic='-fPIC -shared'
14045 ;;
14046
14047 osf3* | osf4* | osf5*)
14048 lt_prog_compiler_wl='-Wl,'
14049 # All OSF/1 code is PIC.
14050 lt_prog_compiler_static='-non_shared'
14051 ;;
14052
14053 rdos*)
14054 lt_prog_compiler_static='-non_shared'
14055 ;;
14056
14057 serenity*)
14058 ;;
14059
14060 solaris*)
14061 lt_prog_compiler_pic='-KPIC'
14062 lt_prog_compiler_static='-Bstatic'
14063 case $cc_basename in
14064 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14065 lt_prog_compiler_wl='-Qoption ld ';;
14066 *)
14067 lt_prog_compiler_wl='-Wl,';;
14068 esac
14069 ;;
14070
14071 sunos4*)
14072 lt_prog_compiler_wl='-Qoption ld '
14073 lt_prog_compiler_pic='-PIC'
14074 lt_prog_compiler_static='-Bstatic'
14075 ;;
14076
14077 sysv4 | sysv4.2uw2* | sysv4.3*)
14078 lt_prog_compiler_wl='-Wl,'
14079 lt_prog_compiler_pic='-KPIC'
14080 lt_prog_compiler_static='-Bstatic'
14081 ;;
14082
14083 sysv4*MP*)
14084 if test -d /usr/nec; then
14085 lt_prog_compiler_pic='-Kconform_pic'
14086 lt_prog_compiler_static='-Bstatic'
14087 fi
14088 ;;
14089
14090 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14091 lt_prog_compiler_wl='-Wl,'
14092 lt_prog_compiler_pic='-KPIC'
14093 lt_prog_compiler_static='-Bstatic'
14094 ;;
14095
14096 unicos*)
14097 lt_prog_compiler_wl='-Wl,'
14098 lt_prog_compiler_can_build_shared=no
14099 ;;
14100
14101 uts4*)
14102 lt_prog_compiler_pic='-pic'
14103 lt_prog_compiler_static='-Bstatic'
14104 ;;
14105
14106 *)
14107 lt_prog_compiler_can_build_shared=no
14108 ;;
14109 esac
14110 fi
14111
14112 case $host_os in
14113 # For platforms that do not support PIC, -DPIC is meaningless:
14114 *djgpp*)
14115 lt_prog_compiler_pic=
14116 ;;
14117 *)
14118 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14119 ;;
14120 esac
14121
14122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14123 printf %s "checking for $compiler option to produce PIC... " >&6; }
14124 if test ${lt_cv_prog_compiler_pic+y}
14125 then :
14126 printf %s "(cached) " >&6
14127 else case e in #(
14128 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14129 esac
14130 fi
14131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14132 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14133 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14134
14135 #
14136 # Check to make sure the PIC flag actually works.
14137 #
14138 if test -n "$lt_prog_compiler_pic"; then
14139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14140 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14141 if test ${lt_cv_prog_compiler_pic_works+y}
14142 then :
14143 printf %s "(cached) " >&6
14144 else case e in #(
14145 e) lt_cv_prog_compiler_pic_works=no
14146 ac_outfile=conftest.$ac_objext
14147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14148 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14149 # Insert the option either (1) after the last *FLAGS variable, or
14150 # (2) before a word containing "conftest.", or (3) at the end.
14151 # Note that $ac_compile itself does not contain backslashes and begins
14152 # with a dollar sign (not a hyphen), so the echo should work correctly.
14153 # The option is referenced via a variable to avoid confusing sed.
14154 lt_compile=`echo "$ac_compile" | $SED \
14155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14157 -e 's:$: $lt_compiler_flag:'`
14158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14159 (eval "$lt_compile" 2>conftest.err)
14160 ac_status=$?
14161 cat conftest.err >&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 if (exit $ac_status) && test -s "$ac_outfile"; then
14164 # The compiler can only warn and ignore the option if not recognized
14165 # So say no if there are warnings other than the usual output.
14166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14169 lt_cv_prog_compiler_pic_works=yes
14170 fi
14171 fi
14172 $RM conftest*
14173 ;;
14174 esac
14175 fi
14176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14177 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14178
14179 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14180 case $lt_prog_compiler_pic in
14181 "" | " "*) ;;
14182 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14183 esac
14184 else
14185 lt_prog_compiler_pic=
14186 lt_prog_compiler_can_build_shared=no
14187 fi
14188
14189 fi
14190
14191
14192
14193
14194
14195 #
14196 # Check to make sure the static flag actually works.
14197 #
14198 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14200 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14201 if test ${lt_cv_prog_compiler_static_works+y}
14202 then :
14203 printf %s "(cached) " >&6
14204 else case e in #(
14205 e) lt_cv_prog_compiler_static_works=no
14206 save_LDFLAGS=$LDFLAGS
14207 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14208 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14209 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14210 # The linker can only warn and ignore the option if not recognized
14211 # So say no if there are warnings
14212 if test -s conftest.err; then
14213 # Append any errors to the config.log.
14214 cat conftest.err 1>&5
14215 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14217 if diff conftest.exp conftest.er2 >/dev/null; then
14218 lt_cv_prog_compiler_static_works=yes
14219 fi
14220 else
14221 lt_cv_prog_compiler_static_works=yes
14222 fi
14223 fi
14224 $RM -r conftest*
14225 LDFLAGS=$save_LDFLAGS
14226 ;;
14227 esac
14228 fi
14229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14230 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14231
14232 if test yes = "$lt_cv_prog_compiler_static_works"; then
14233 :
14234 else
14235 lt_prog_compiler_static=
14236 fi
14237
14238
14239
14240 ='-fPIC'
14241 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14242 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
14243 archive_cmds_need_lc=no
14244 no_undefined_flag=
14245 ;;
14246
14247 *)
14248 dynamic_linker=no
14249 ;;
14250 esac
14251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14252 printf "%s\n" "$dynamic_linker" >&6; }
14253 test no = "$dynamic_linker" && can_build_shared=no
14254
14255 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14256 if test yes = "$GCC"; then
14257 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14258 fi
14259
14260 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14261 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14262 fi
14263
14264 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14265 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14266 fi
14267
14268 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14269 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14270
14271 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14272 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14273
14274 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14275 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14374 printf %s "checking how to hardcode library paths into programs... " >&6; }
14375 hardcode_action=
14376 if test -n "$hardcode_libdir_flag_spec" ||
14377 test -n "$runpath_var" ||
14378 test yes = "$hardcode_automatic"; then
14379
14380 # We can hardcode non-existent directories.
14381 if test no != "$hardcode_direct" &&
14382 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14383 # have to relink, otherwise we might link with an installed library
14384 # when we should be linking with a yet-to-be-installed one
14385 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14386 test no != "$hardcode_minus_L"; then
14387 # Linking always hardcodes the temporary library directory.
14388 hardcode_action=relink
14389 else
14390 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14391 hardcode_action=immediate
14392 fi
14393 else
14394 # We cannot hardcode anything, or else we can only hardcode existing
14395 # directories.
14396 hardcode_action=unsupported
14397 fi
14398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14399 printf "%s\n" "$hardcode_action" >&6; }
14400
14401 if test relink = "$hardcode_action" ||
14402 test yes = "$inherit_rpath"; then
14403 # Fast installation is not supported
14404 enable_fast_install=no
14405 elif test yes = "$shlibpath_overrides_runpath" ||
14406 test no = "$enable_shared"; then
14407 # Fast installation is not necessary
14408 enable_fast_install=needless
14409 fi
14410
14411
14412
14413
14414
14415
14416 if test yes != "$enable_dlopen"; then
14417 enable_dlopen=unknown
14418 enable_dlopen_self=unknown
14419 enable_dlopen_self_static=unknown
14420 else
14421 lt_cv_dlopen=no
14422 lt_cv_dlopen_libs=
14423
14424 case $host_os in
14425 beos*)
14426 lt_cv_dlopen=load_add_on
14427 lt_cv_dlopen_libs=
14428 lt_cv_dlopen_self=yes
14429 ;;
14430
14431 mingw* | windows* | pw32* | cegcc*)
14432 lt_cv_dlopen=LoadLibrary
14433 lt_cv_dlopen_libs=
14434 ;;
14435
14436 cygwin*)
14437 lt_cv_dlopen=dlopen
14438 lt_cv_dlopen_libs=
14439 ;;
14440
14441 darwin*)
14442 # if libdl is installed we need to link against it
14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14444 printf %s "checking for dlopen in -ldl... " >&6; }
14445 if test ${ac_cv_lib_dl_dlopen+y}
14446 then :
14447 printf %s "(cached) " >&6
14448 else case e in #(
14449 e) ac_check_lib_save_LIBS=$LIBS
14450 LIBS="-ldl $LIBS"
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14453
14454 /* Override any GCC internal prototype to avoid an error.
14455 Use char because int might match the return type of a GCC
14456 builtin and then its argument prototype would still apply.
14457 The 'extern "C"' is for builds by C++ compilers;
14458 although this is not generally supported in C code supporting it here
14459 has little cost and some practical benefit (sr 110532). */
14460 #ifdef __cplusplus
14461 extern "C"
14462 #endif
14463 char dlopen (void);
14464 int
14465 main (void)
14466 {
14467 return dlopen ();
14468 ;
14469 return 0;
14470 }
14471 _ACEOF
14472 if ac_fn_c_try_link "$LINENO"
14473 then :
14474 ac_cv_lib_dl_dlopen=yes
14475 else case e in #(
14476 e) ac_cv_lib_dl_dlopen=no ;;
14477 esac
14478 fi
14479 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14480 conftest$ac_exeext conftest.$ac_ext
14481 LIBS=$ac_check_lib_save_LIBS ;;
14482 esac
14483 fi
14484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14485 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14486 if test "x$ac_cv_lib_dl_dlopen" = xyes
14487 then :
14488 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14489 else case e in #(
14490 e)
14491 lt_cv_dlopen=dyld
14492 lt_cv_dlopen_libs=
14493 lt_cv_dlopen_self=yes
14494 ;;
14495 esac
14496 fi
14497
14498 ;;
14499
14500 tpf*)
14501 # Don't try to run any link tests for TPF. We know it's impossible
14502 # because TPF is a cross-compiler, and we know how we open DSOs.
14503 lt_cv_dlopen=dlopen
14504 lt_cv_dlopen_libs=
14505 lt_cv_dlopen_self=no
14506 ;;
14507
14508 *)
14509 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14510 if test "x$ac_cv_func_shl_load" = xyes
14511 then :
14512 lt_cv_dlopen=shl_load
14513 else case e in #(
14514 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14515 printf %s "checking for shl_load in -ldld... " >&6; }
14516 if test ${ac_cv_lib_dld_shl_load+y}
14517 then :
14518 printf %s "(cached) " >&6
14519 else case e in #(
14520 e) ac_check_lib_save_LIBS=$LIBS
14521 LIBS="-ldld $LIBS"
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14524
14525 /* Override any GCC internal prototype to avoid an error.
14526 Use char because int might match the return type of a GCC
14527 builtin and then its argument prototype would still apply.
14528 The 'extern "C"' is for builds by C++ compilers;
14529 although this is not generally supported in C code supporting it here
14530 has little cost and some practical benefit (sr 110532). */
14531 #ifdef __cplusplus
14532 extern "C"
14533 #endif
14534 char shl_load (void);
14535 int
14536 main (void)
14537 {
14538 return shl_load ();
14539 ;
14540 return 0;
14541 }
14542 _ACEOF
14543 if ac_fn_c_try_link "$LINENO"
14544 then :
14545 ac_cv_lib_dld_shl_load=yes
14546 else case e in #(
14547 e) ac_cv_lib_dld_shl_load=no ;;
14548 esac
14549 fi
14550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14551 conftest$ac_exeext conftest.$ac_ext
14552 LIBS=$ac_check_lib_save_LIBS ;;
14553 esac
14554 fi
14555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14556 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14557 if test "x$ac_cv_lib_dld_shl_load" = xyes
14558 then :
14559 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14560 else case e in #(
14561 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14562 if test "x$ac_cv_func_dlopen" = xyes
14563 then :
14564 lt_cv_dlopen=dlopen
14565 else case e in #(
14566 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14567 printf %s "checking for dlopen in -ldl... " >&6; }
14568 if test ${ac_cv_lib_dl_dlopen+y}
14569 then :
14570 printf %s "(cached) " >&6
14571 else case e in #(
14572 e) ac_check_lib_save_LIBS=$LIBS
14573 LIBS="-ldl $LIBS"
14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h. */
14576
14577 /* Override any GCC internal prototype to avoid an error.
14578 Use char because int might match the return type of a GCC
14579 builtin and then its argument prototype would still apply.
14580 The 'extern "C"' is for builds by C++ compilers;
14581 although this is not generally supported in C code supporting it here
14582 has little cost and some practical benefit (sr 110532). */
14583 #ifdef __cplusplus
14584 extern "C"
14585 #endif
14586 char dlopen (void);
14587 int
14588 main (void)
14589 {
14590 return dlopen ();
14591 ;
14592 return 0;
14593 }
14594 _ACEOF
14595 if ac_fn_c_try_link "$LINENO"
14596 then :
14597 ac_cv_lib_dl_dlopen=yes
14598 else case e in #(
14599 e) ac_cv_lib_dl_dlopen=no ;;
14600 esac
14601 fi
14602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14603 conftest$ac_exeext conftest.$ac_ext
14604 LIBS=$ac_check_lib_save_LIBS ;;
14605 esac
14606 fi
14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14608 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14609 if test "x$ac_cv_lib_dl_dlopen" = xyes
14610 then :
14611 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14612 else case e in #(
14613 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14614 printf %s "checking for dlopen in -lsvld... " >&6; }
14615 if test ${ac_cv_lib_svld_dlopen+y}
14616 then :
14617 printf %s "(cached) " >&6
14618 else case e in #(
14619 e) ac_check_lib_save_LIBS=$LIBS
14620 LIBS="-lsvld $LIBS"
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14623
14624 /* Override any GCC internal prototype to avoid an error.
14625 Use char because int might match the return type of a GCC
14626 builtin and then its argument prototype would still apply.
14627 The 'extern "C"' is for builds by C++ compilers;
14628 although this is not generally supported in C code supporting it here
14629 has little cost and some practical benefit (sr 110532). */
14630 #ifdef __cplusplus
14631 extern "C"
14632 #endif
14633 char dlopen (void);
14634 int
14635 main (void)
14636 {
14637 return dlopen ();
14638 ;
14639 return 0;
14640 }
14641 _ACEOF
14642 if ac_fn_c_try_link "$LINENO"
14643 then :
14644 ac_cv_lib_svld_dlopen=yes
14645 else case e in #(
14646 e) ac_cv_lib_svld_dlopen=no ;;
14647 esac
14648 fi
14649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14650 conftest$ac_exeext conftest.$ac_ext
14651 LIBS=$ac_check_lib_save_LIBS ;;
14652 esac
14653 fi
14654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14655 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14656 if test "x$ac_cv_lib_svld_dlopen" = xyes
14657 then :
14658 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14659 else case e in #(
14660 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14661 printf %s "checking for dld_link in -ldld... " >&6; }
14662 if test ${ac_cv_lib_dld_dld_link+y}
14663 then :
14664 printf %s "(cached) " >&6
14665 else case e in #(
14666 e) ac_check_lib_save_LIBS=$LIBS
14667 LIBS="-ldld $LIBS"
14668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14669 /* end confdefs.h. */
14670
14671 /* Override any GCC internal prototype to avoid an error.
14672 Use char because int might match the return type of a GCC
14673 builtin and then its argument prototype would still apply.
14674 The 'extern "C"' is for builds by C++ compilers;
14675 although this is not generally supported in C code supporting it here
14676 has little cost and some practical benefit (sr 110532). */
14677 #ifdef __cplusplus
14678 extern "C"
14679 #endif
14680 char dld_link (void);
14681 int
14682 main (void)
14683 {
14684 return dld_link ();
14685 ;
14686 return 0;
14687 }
14688 _ACEOF
14689 if ac_fn_c_try_link "$LINENO"
14690 then :
14691 ac_cv_lib_dld_dld_link=yes
14692 else case e in #(
14693 e) ac_cv_lib_dld_dld_link=no ;;
14694 esac
14695 fi
14696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14697 conftest$ac_exeext conftest.$ac_ext
14698 LIBS=$ac_check_lib_save_LIBS ;;
14699 esac
14700 fi
14701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14702 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14703 if test "x$ac_cv_lib_dld_dld_link" = xyes
14704 then :
14705 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14706 fi
14707
14708 ;;
14709 esac
14710 fi
14711
14712 ;;
14713 esac
14714 fi
14715
14716 ;;
14717 esac
14718 fi
14719
14720 ;;
14721 esac
14722 fi
14723
14724 ;;
14725 esac
14726 fi
14727
14728 ;;
14729 esac
14730
14731 if test no = "$lt_cv_dlopen"; then
14732 enable_dlopen=no
14733 else
14734 enable_dlopen=yes
14735 fi
14736
14737 case $lt_cv_dlopen in
14738 dlopen)
14739 save_CPPFLAGS=$CPPFLAGS
14740 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14741
14742 save_LDFLAGS=$LDFLAGS
14743 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14744
14745 save_LIBS=$LIBS
14746 LIBS="$lt_cv_dlopen_libs $LIBS"
14747
14748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14749 printf %s "checking whether a program can dlopen itself... " >&6; }
14750 if test ${lt_cv_dlopen_self+y}
14751 then :
14752 printf %s "(cached) " >&6
14753 else case e in #(
14754 e) if test yes = "$cross_compiling"; then :
14755 lt_cv_dlopen_self=cross
14756 else
14757 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14758 lt_status=$lt_dlunknown
14759 cat > conftest.$ac_ext <<_LT_EOF
14760 #line $LINENO "configure"
14761 #include "confdefs.h"
14762
14763 #if HAVE_DLFCN_H
14764 #include <dlfcn.h>
14765 #endif
14766
14767 #include <stdio.h>
14768
14769 #ifdef RTLD_GLOBAL
14770 # define LT_DLGLOBAL RTLD_GLOBAL
14771 #else
14772 # ifdef DL_GLOBAL
14773 # define LT_DLGLOBAL DL_GLOBAL
14774 # else
14775 # define LT_DLGLOBAL 0
14776 # endif
14777 #endif
14778
14779 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14780 find out it does not work in some platform. */
14781 #ifndef LT_DLLAZY_OR_NOW
14782 # ifdef RTLD_LAZY
14783 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14784 # else
14785 # ifdef DL_LAZY
14786 # define LT_DLLAZY_OR_NOW DL_LAZY
14787 # else
14788 # ifdef RTLD_NOW
14789 # define LT_DLLAZY_OR_NOW RTLD_NOW
14790 # else
14791 # ifdef DL_NOW
14792 # define LT_DLLAZY_OR_NOW DL_NOW
14793 # else
14794 # define LT_DLLAZY_OR_NOW 0
14795 # endif
14796 # endif
14797 # endif
14798 # endif
14799 #endif
14800
14801 /* When -fvisibility=hidden is used, assume the code has been annotated
14802 correspondingly for the symbols needed. */
14803 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14804 int fnord (void) __attribute__((visibility("default")));
14805 #endif
14806
14807 int fnord (void) { return 42; }
14808 int main (void)
14809 {
14810 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14811 int status = $lt_dlunknown;
14812
14813 if (self)
14814 {
14815 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14816 else
14817 {
14818 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14819 else puts (dlerror ());
14820 }
14821 /* dlclose (self); */
14822 }
14823 else
14824 puts (dlerror ());
14825
14826 return status;
14827 }
14828 _LT_EOF
14829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14830 (eval $ac_link) 2>&5
14831 ac_status=$?
14832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14833 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14834 (./conftest; exit; ) >&5 2>/dev/null
14835 lt_status=$?
14836 case x$lt_status in
14837 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14838 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14839 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14840 esac
14841 else :
14842 # compilation failed
14843 lt_cv_dlopen_self=no
14844 fi
14845 fi
14846 rm -fr conftest*
14847
14848 ;;
14849 esac
14850 fi
14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14852 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14853
14854 if test yes = "$lt_cv_dlopen_self"; then
14855 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14857 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14858 if test ${lt_cv_dlopen_self_static+y}
14859 then :
14860 printf %s "(cached) " >&6
14861 else case e in #(
14862 e) if test yes = "$cross_compiling"; then :
14863 lt_cv_dlopen_self_static=cross
14864 else
14865 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14866 lt_status=$lt_dlunknown
14867 cat > conftest.$ac_ext <<_LT_EOF
14868 #line $LINENO "configure"
14869 #include "confdefs.h"
14870
14871 #if HAVE_DLFCN_H
14872 #include <dlfcn.h>
14873 #endif
14874
14875 #include <stdio.h>
14876
14877 #ifdef RTLD_GLOBAL
14878 # define LT_DLGLOBAL RTLD_GLOBAL
14879 #else
14880 # ifdef DL_GLOBAL
14881 # define LT_DLGLOBAL DL_GLOBAL
14882 # else
14883 # define LT_DLGLOBAL 0
14884 # endif
14885 #endif
14886
14887 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14888 find out it does not work in some platform. */
14889 #ifndef LT_DLLAZY_OR_NOW
14890 # ifdef RTLD_LAZY
14891 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14892 # else
14893 # ifdef DL_LAZY
14894 # define LT_DLLAZY_OR_NOW DL_LAZY
14895 # else
14896 # ifdef RTLD_NOW
14897 # define LT_DLLAZY_OR_NOW RTLD_NOW
14898 # else
14899 # ifdef DL_NOW
14900 # define LT_DLLAZY_OR_NOW DL_NOW
14901 # else
14902 # define LT_DLLAZY_OR_NOW 0
14903 # endif
14904 # endif
14905 # endif
14906 # endif
14907 #endif
14908
14909 /* When -fvisibility=hidden is used, assume the code has been annotated
14910 correspondingly for the symbols needed. */
14911 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14912 int fnord (void) __attribute__((visibility("default")));
14913 #endif
14914
14915 int fnord (void) { return 42; }
14916 int main (void)
14917 {
14918 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14919 int status = $lt_dlunknown;
14920
14921 if (self)
14922 {
14923 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14924 else
14925 {
14926 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14927 else puts (dlerror ());
14928 }
14929 /* dlclose (self); */
14930 }
14931 else
14932 puts (dlerror ());
14933
14934 return status;
14935 }
14936 _LT_EOF
14937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14938 (eval $ac_link) 2>&5
14939 ac_status=$?
14940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14941 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14942 (./conftest; exit; ) >&5 2>/dev/null
14943 lt_status=$?
14944 case x$lt_status in
14945 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14946 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14947 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14948 esac
14949 else :
14950 # compilation failed
14951 lt_cv_dlopen_self_static=no
14952 fi
14953 fi
14954 rm -fr conftest*
14955
14956 ;;
14957 esac
14958 fi
14959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14960 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14961 fi
14962
14963 CPPFLAGS=$save_CPPFLAGS
14964 LDFLAGS=$save_LDFLAGS
14965 LIBS=$save_LIBS
14966 ;;
14967 esac
14968
14969 case $lt_cv_dlopen_self in
14970 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14971 *) enable_dlopen_self=unknown ;;
14972 esac
14973
14974 case $lt_cv_dlopen_self_static in
14975 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14976 *) enable_dlopen_self_static=unknown ;;
14977 esac
14978 fi
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996 striplib=
14997 old_striplib=
14998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14999 printf %s "checking whether stripping libraries is possible... " >&6; }
15000 if test -z "$STRIP"; then
15001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002 printf "%s\n" "no" >&6; }
15003 else
15004 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15005 old_striplib="$STRIP --strip-debug"
15006 striplib="$STRIP --strip-unneeded"
15007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15008 printf "%s\n" "yes" >&6; }
15009 else
15010 case $host_os in
15011 darwin*)
15012 # FIXME - insert some real tests, host_os isn't really good enough
15013 striplib="$STRIP -x"
15014 old_striplib="$STRIP -S"
15015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15016 printf "%s\n" "yes" >&6; }
15017 ;;
15018 freebsd*)
15019 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15020 old_striplib="$STRIP --strip-debug"
15021 striplib="$STRIP --strip-unneeded"
15022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15023 printf "%s\n" "yes" >&6; }
15024 else
15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15026 printf "%s\n" "no" >&6; }
15027 fi
15028 ;;
15029 *)
15030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15031 printf "%s\n" "no" >&6; }
15032 ;;
15033 esac
15034 fi
15035 fi
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048 # Report what library types will actually be built
15049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15050 printf %s "checking if libtool supports shared libraries... " >&6; }
15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15052 printf "%s\n" "$can_build_shared" >&6; }
15053
15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15055 printf %s "checking whether to build shared libraries... " >&6; }
15056 test no = "$can_build_shared" && enable_shared=no
15057
15058 # On AIX, shared libraries and static libraries use the same namespace, and
15059 # are all built from PIC.
15060 case $host_os in
15061 aix3*)
15062 test yes = "$enable_shared" && enable_static=no
15063 if test -n "$RANLIB"; then
15064 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15065 postinstall_cmds='$RANLIB $lib'
15066 fi
15067 ;;
15068
15069 aix[4-9]*)
15070 if test ia64 != "$host_cpu"; then
15071 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15072 yes,aix,yes) ;; # shared object as lib.so file only
15073 yes,svr4,*) ;; # shared object as lib.so archive member only
15074 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15075 esac
15076 fi
15077 ;;
15078 esac
15079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15080 printf "%s\n" "$enable_shared" >&6; }
15081
15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15083 printf %s "checking whether to build static libraries... " >&6; }
15084 # Make sure either enable_shared or enable_static is yes.
15085 test yes = "$enable_shared" || enable_static=yes
15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15087 printf "%s\n" "$enable_static" >&6; }
15088
15089
15090
15091
15092 fi
15093 ac_ext=c
15094 ac_cpp='$CPP $CPPFLAGS'
15095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15098
15099 CC=$lt_save_CC
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115 ac_config_commands="$ac_config_commands libtool"
15116
15117
15118
15119
15120 # Only expand once:
15121
15122
15123 # (end lt_init)
15124 # Check whether --enable-largefile was given.
15125 if test ${enable_largefile+y}
15126 then :
15127 enableval=$enable_largefile;
15128 fi
15129 if test "$enable_largefile,$enable_year2038" != no,no
15130 then :
15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
15132 printf %s "checking for $CC option to enable large file support... " >&6; }
15133 if test ${ac_cv_sys_largefile_opts+y}
15134 then :
15135 printf %s "(cached) " >&6
15136 else case e in #(
15137 e) ac_save_CC="$CC"
15138 ac_opt_found=no
15139 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
15140 if test x"$ac_opt" != x"none needed"
15141 then :
15142 CC="$ac_save_CC $ac_opt"
15143 fi
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15146 #include <sys/types.h>
15147 #ifndef FTYPE
15148 # define FTYPE off_t
15149 #endif
15150 /* Check that FTYPE can represent 2**63 - 1 correctly.
15151 We can't simply define LARGE_FTYPE to be 9223372036854775807,
15152 since some C++ compilers masquerading as C compilers
15153 incorrectly reject 9223372036854775807. */
15154 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
15155 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
15156 && LARGE_FTYPE % 2147483647 == 1)
15157 ? 1 : -1];
15158 int
15159 main (void)
15160 {
15161
15162 ;
15163 return 0;
15164 }
15165 _ACEOF
15166 if ac_fn_c_try_compile "$LINENO"
15167 then :
15168 if test x"$ac_opt" = x"none needed"
15169 then :
15170 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
15171 CC="$CC -DFTYPE=ino_t"
15172 if ac_fn_c_try_compile "$LINENO"
15173 then :
15174
15175 else case e in #(
15176 e) CC="$CC -D_FILE_OFFSET_BITS=64"
15177 if ac_fn_c_try_compile "$LINENO"
15178 then :
15179 ac_opt='-D_FILE_OFFSET_BITS=64'
15180 fi
15181 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
15182 esac
15183 fi
15184 rm -f core conftest.err conftest.$ac_objext conftest.beam
15185 fi
15186 ac_cv_sys_largefile_opts=$ac_opt
15187 ac_opt_found=yes
15188 fi
15189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15190 test $ac_opt_found = no || break
15191 done
15192 CC="$ac_save_CC"
15193
15194 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
15195 esac
15196 fi
15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
15198 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
15199
15200 ac_have_largefile=yes
15201 case $ac_cv_sys_largefile_opts in #(
15202 "none needed") :
15203 ;; #(
15204 "supported through gnulib") :
15205 ;; #(
15206 "support not detected") :
15207 ac_have_largefile=no ;; #(
15208 "-D_FILE_OFFSET_BITS=64") :
15209
15210 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
15211 ;; #(
15212 "-D_LARGE_FILES=1") :
15213
15214 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
15215 ;; #(
15216 "-n32") :
15217 CC="$CC -n32" ;; #(
15218 *) :
15219 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
15220 esac
15221
15222 if test "$enable_year2038" != no
15223 then :
15224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
15225 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
15226 if test ${ac_cv_sys_year2038_opts+y}
15227 then :
15228 printf %s "(cached) " >&6
15229 else case e in #(
15230 e) ac_save_CPPFLAGS="$CPPFLAGS"
15231 ac_opt_found=no
15232 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
15233 if test x"$ac_opt" != x"none needed"
15234 then :
15235 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
15236 fi
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239
15240 #include <time.h>
15241 /* Check that time_t can represent 2**32 - 1 correctly. */
15242 #define LARGE_TIME_T \\
15243 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15244 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15245 && LARGE_TIME_T % 65537 == 0)
15246 ? 1 : -1];
15247
15248 int
15249 main (void)
15250 {
15251
15252 ;
15253 return 0;
15254 }
15255 _ACEOF
15256 if ac_fn_c_try_compile "$LINENO"
15257 then :
15258 ac_cv_sys_year2038_opts="$ac_opt"
15259 ac_opt_found=yes
15260 fi
15261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15262 test $ac_opt_found = no || break
15263 done
15264 CPPFLAGS="$ac_save_CPPFLAGS"
15265 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15266 esac
15267 fi
15268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15269 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15270
15271 ac_have_year2038=yes
15272 case $ac_cv_sys_year2038_opts in #(
15273 "none needed") :
15274 ;; #(
15275 "support not detected") :
15276 ac_have_year2038=no ;; #(
15277 "-D_TIME_BITS=64") :
15278
15279 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15280 ;; #(
15281 "-D__MINGW_USE_VC2005_COMPAT") :
15282
15283 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15284 ;; #(
15285 "-U_USE_32_BIT_TIME_T"*) :
15286 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15287 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15288 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15289 will stop working after mid-January 2038. Remove
15290 _USE_32BIT_TIME_T from the compiler flags.
15291 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15292 *) :
15293 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15294 esac
15295
15296 fi
15297
15298 fi
15299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15300 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15301 if test ${ac_cv_func_fseeko_ftello+y}
15302 then :
15303 printf %s "(cached) " >&6
15304 else case e in #(
15305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h. */
15307
15308 #if defined __hpux && !defined _LARGEFILE_SOURCE
15309 # include <limits.h>
15310 # if LONG_MAX >> 31 == 0
15311 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15312 # endif
15313 #endif
15314 #include <sys/types.h> /* for off_t */
15315 #include <stdio.h>
15316
15317 int
15318 main (void)
15319 {
15320
15321 int (*fp1) (FILE *, off_t, int) = fseeko;
15322 off_t (*fp2) (FILE *) = ftello;
15323 return fseeko (stdin, 0, 0)
15324 && fp1 (stdin, 0, 0)
15325 && ftello (stdin) >= 0
15326 && fp2 (stdin) >= 0;
15327
15328 ;
15329 return 0;
15330 }
15331 _ACEOF
15332 if ac_fn_c_try_compile "$LINENO"
15333 then :
15334 ac_cv_func_fseeko_ftello=yes
15335 else case e in #(
15336 e) ac_save_CPPFLAGS="$CPPFLAGS"
15337 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340
15341 #if defined __hpux && !defined _LARGEFILE_SOURCE
15342 # include <limits.h>
15343 # if LONG_MAX >> 31 == 0
15344 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15345 # endif
15346 #endif
15347 #include <sys/types.h> /* for off_t */
15348 #include <stdio.h>
15349
15350 int
15351 main (void)
15352 {
15353
15354 int (*fp1) (FILE *, off_t, int) = fseeko;
15355 off_t (*fp2) (FILE *) = ftello;
15356 return fseeko (stdin, 0, 0)
15357 && fp1 (stdin, 0, 0)
15358 && ftello (stdin) >= 0
15359 && fp2 (stdin) >= 0;
15360
15361 ;
15362 return 0;
15363 }
15364 _ACEOF
15365 if ac_fn_c_try_compile "$LINENO"
15366 then :
15367 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15368 else case e in #(
15369 e) ac_cv_func_fseeko_ftello=no ;;
15370 esac
15371 fi
15372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15373 esac
15374 fi
15375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15376 esac
15377 fi
15378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15379 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15380 if test "$ac_cv_func_fseeko_ftello" != no
15381 then :
15382
15383 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15384
15385 fi
15386 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15387 then :
15388
15389 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15390
15391 fi
15392
15393 ac_header_dirent=no
15394 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15395 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15397 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15398 if eval test \${$as_ac_Header+y}
15399 then :
15400 printf %s "(cached) " >&6
15401 else case e in #(
15402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15404 #include <sys/types.h>
15405 #include <$ac_hdr>
15406
15407 int
15408 main (void)
15409 {
15410 if ((DIR *) 0)
15411 return 0;
15412 ;
15413 return 0;
15414 }
15415 _ACEOF
15416 if ac_fn_c_try_compile "$LINENO"
15417 then :
15418 eval "$as_ac_Header=yes"
15419 else case e in #(
15420 e) eval "$as_ac_Header=no" ;;
15421 esac
15422 fi
15423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15424 esac
15425 fi
15426 eval ac_res=\$$as_ac_Header
15427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15428 printf "%s\n" "$ac_res" >&6; }
15429 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15430 then :
15431 cat >>confdefs.h <<_ACEOF
15432 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15433 _ACEOF
15434
15435 ac_header_dirent=$ac_hdr; break
15436 fi
15437
15438 done
15439 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15440 if test $ac_header_dirent = dirent.h; then
15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15442 printf %s "checking for library containing opendir... " >&6; }
15443 if test ${ac_cv_search_opendir+y}
15444 then :
15445 printf %s "(cached) " >&6
15446 else case e in #(
15447 e) ac_func_search_save_LIBS=$LIBS
15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449 /* end confdefs.h. */
15450
15451 /* Override any GCC internal prototype to avoid an error.
15452 Use char because int might match the return type of a GCC
15453 builtin and then its argument prototype would still apply.
15454 The 'extern "C"' is for builds by C++ compilers;
15455 although this is not generally supported in C code supporting it here
15456 has little cost and some practical benefit (sr 110532). */
15457 #ifdef __cplusplus
15458 extern "C"
15459 #endif
15460 char opendir (void);
15461 int
15462 main (void)
15463 {
15464 return opendir ();
15465 ;
15466 return 0;
15467 }
15468 _ACEOF
15469 for ac_lib in '' dir
15470 do
15471 if test -z "$ac_lib"; then
15472 ac_res="none required"
15473 else
15474 ac_res=-l$ac_lib
15475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15476 fi
15477 if ac_fn_c_try_link "$LINENO"
15478 then :
15479 ac_cv_search_opendir=$ac_res
15480 fi
15481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15482 conftest$ac_exeext
15483 if test ${ac_cv_search_opendir+y}
15484 then :
15485 break
15486 fi
15487 done
15488 if test ${ac_cv_search_opendir+y}
15489 then :
15490
15491 else case e in #(
15492 e) ac_cv_search_opendir=no ;;
15493 esac
15494 fi
15495 rm conftest.$ac_ext
15496 LIBS=$ac_func_search_save_LIBS ;;
15497 esac
15498 fi
15499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15500 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15501 ac_res=$ac_cv_search_opendir
15502 if test "$ac_res" != no
15503 then :
15504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15505
15506 fi
15507
15508 else
15509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15510 printf %s "checking for library containing opendir... " >&6; }
15511 if test ${ac_cv_search_opendir+y}
15512 then :
15513 printf %s "(cached) " >&6
15514 else case e in #(
15515 e) ac_func_search_save_LIBS=$LIBS
15516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517 /* end confdefs.h. */
15518
15519 /* Override any GCC internal prototype to avoid an error.
15520 Use char because int might match the return type of a GCC
15521 builtin and then its argument prototype would still apply.
15522 The 'extern "C"' is for builds by C++ compilers;
15523 although this is not generally supported in C code supporting it here
15524 has little cost and some practical benefit (sr 110532). */
15525 #ifdef __cplusplus
15526 extern "C"
15527 #endif
15528 char opendir (void);
15529 int
15530 main (void)
15531 {
15532 return opendir ();
15533 ;
15534 return 0;
15535 }
15536 _ACEOF
15537 for ac_lib in '' x
15538 do
15539 if test -z "$ac_lib"; then
15540 ac_res="none required"
15541 else
15542 ac_res=-l$ac_lib
15543 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15544 fi
15545 if ac_fn_c_try_link "$LINENO"
15546 then :
15547 ac_cv_search_opendir=$ac_res
15548 fi
15549 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15550 conftest$ac_exeext
15551 if test ${ac_cv_search_opendir+y}
15552 then :
15553 break
15554 fi
15555 done
15556 if test ${ac_cv_search_opendir+y}
15557 then :
15558
15559 else case e in #(
15560 e) ac_cv_search_opendir=no ;;
15561 esac
15562 fi
15563 rm conftest.$ac_ext
15564 LIBS=$ac_func_search_save_LIBS ;;
15565 esac
15566 fi
15567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15568 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15569 ac_res=$ac_cv_search_opendir
15570 if test "$ac_res" != no
15571 then :
15572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15573
15574 fi
15575
15576 fi
15577
15578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15579 printf %s "checking whether closedir returns void... " >&6; }
15580 if test ${ac_cv_func_closedir_void+y}
15581 then :
15582 printf %s "(cached) " >&6
15583 else case e in #(
15584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15586
15587 #include <$ac_header_dirent>
15588
15589 int
15590 main (void)
15591 {
15592
15593 return closedir(0);
15594
15595 ;
15596 return 0;
15597 }
15598 _ACEOF
15599 if ac_fn_c_try_compile "$LINENO"
15600 then :
15601 ac_cv_func_closedir_void=no
15602 else case e in #(
15603 e) ac_cv_func_closedir_void=yes ;;
15604 esac
15605 fi
15606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15607 esac
15608 fi
15609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15610 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15611 if test $ac_cv_func_closedir_void = yes; then
15612
15613 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15614
15615 fi
15616
15617 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15618 if test "x$ac_cv_header_assert_h" = xyes
15619 then :
15620 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15621
15622 fi
15623 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15624 if test "x$ac_cv_header_float_h" = xyes
15625 then :
15626 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15627
15628 fi
15629 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15630 if test "x$ac_cv_header_limits_h" = xyes
15631 then :
15632 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15633
15634 fi
15635 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15636 if test "x$ac_cv_header_pwd_h" = xyes
15637 then :
15638 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15639
15640 fi
15641 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15642 if test "x$ac_cv_header_stdlib_h" = xyes
15643 then :
15644 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15645
15646 fi
15647 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15648 if test "x$ac_cv_header_sys_param_h" = xyes
15649 then :
15650 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15651
15652 fi
15653
15654 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15655 if test "x$ac_cv_func_putenv" = xyes
15656 then :
15657 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15658
15659 fi
15660
15661 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15662 if test "x$ac_cv_func_getcwd" = xyes
15663 then :
15664 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15665
15666 fi
15667 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15668 if test "x$ac_cv_func_memcmp" = xyes
15669 then :
15670 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15671
15672 fi
15673 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15674 if test "x$ac_cv_func_memcpy" = xyes
15675 then :
15676 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15677
15678 fi
15679 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15680 if test "x$ac_cv_func_mkstemp" = xyes
15681 then :
15682 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15683
15684 fi
15685 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15686 if test "x$ac_cv_func_mktemp" = xyes
15687 then :
15688 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15689
15690 fi
15691 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15692 if test "x$ac_cv_func_strchr" = xyes
15693 then :
15694 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15695
15696 fi
15697 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15698 if test "x$ac_cv_func_strrchr" = xyes
15699 then :
15700 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15701
15702 fi
15703
15704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15705 printf %s "checking for an ANSI C-conforming const... " >&6; }
15706 if test ${ac_cv_c_const+y}
15707 then :
15708 printf %s "(cached) " >&6
15709 else case e in #(
15710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15712
15713 int
15714 main (void)
15715 {
15716
15717 #ifndef __cplusplus
15718 /* Ultrix mips cc rejects this sort of thing. */
15719 typedef int charset[2];
15720 const charset cs = { 0, 0 };
15721 /* SunOS 4.1.1 cc rejects this. */
15722 char const *const *pcpcc;
15723 char **ppc;
15724 /* NEC SVR4.0.2 mips cc rejects this. */
15725 struct point {int x, y;};
15726 static struct point const zero = {0,0};
15727 /* IBM XL C 1.02.0.0 rejects this.
15728 It does not let you subtract one const X* pointer from another in
15729 an arm of an if-expression whose if-part is not a constant
15730 expression */
15731 const char *g = "string";
15732 pcpcc = &g + (g ? g-g : 0);
15733 /* HPUX 7.0 cc rejects these. */
15734 ++pcpcc;
15735 ppc = (char**) pcpcc;
15736 pcpcc = (char const *const *) ppc;
15737 { /* SCO 3.2v4 cc rejects this sort of thing. */
15738 char tx;
15739 char *t = &tx;
15740 char const *s = 0 ? (char *) 0 : (char const *) 0;
15741
15742 *t++ = 0;
15743 if (s) return 0;
15744 }
15745 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15746 int x[] = {25, 17};
15747 const int *foo = &x[0];
15748 ++foo;
15749 }
15750 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15751 typedef const int *iptr;
15752 iptr p = 0;
15753 ++p;
15754 }
15755 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15756 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15757 struct s { int j; const int *ap[3]; } bx;
15758 struct s *b = &bx; b->j = 5;
15759 }
15760 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15761 const int foo = 10;
15762 if (!foo) return 0;
15763 }
15764 return !cs[0] && !zero.x;
15765 #endif
15766
15767 ;
15768 return 0;
15769 }
15770 _ACEOF
15771 if ac_fn_c_try_compile "$LINENO"
15772 then :
15773 ac_cv_c_const=yes
15774 else case e in #(
15775 e) ac_cv_c_const=no ;;
15776 esac
15777 fi
15778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15779 esac
15780 fi
15781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15782 printf "%s\n" "$ac_cv_c_const" >&6; }
15783 if test $ac_cv_c_const = no; then
15784
15785 printf "%s\n" "#define const /**/" >>confdefs.h
15786
15787 fi
15788
15789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15790 printf %s "checking for inline... " >&6; }
15791 if test ${ac_cv_c_inline+y}
15792 then :
15793 printf %s "(cached) " >&6
15794 else case e in #(
15795 e) ac_cv_c_inline=no
15796 for ac_kw in inline __inline__ __inline; do
15797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798 /* end confdefs.h. */
15799 #ifndef __cplusplus
15800 typedef int foo_t;
15801 static $ac_kw foo_t static_foo (void) {return 0; }
15802 $ac_kw foo_t foo (void) {return 0; }
15803 #endif
15804
15805 _ACEOF
15806 if ac_fn_c_try_compile "$LINENO"
15807 then :
15808 ac_cv_c_inline=$ac_kw
15809 fi
15810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15811 test "$ac_cv_c_inline" != no && break
15812 done
15813 ;;
15814 esac
15815 fi
15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15817 printf "%s\n" "$ac_cv_c_inline" >&6; }
15818
15819 case $ac_cv_c_inline in
15820 inline | yes) ;;
15821 *)
15822 case $ac_cv_c_inline in
15823 no) ac_val=;;
15824 *) ac_val=$ac_cv_c_inline;;
15825 esac
15826 cat >>confdefs.h <<_ACEOF
15827 #ifndef __cplusplus
15828 #define inline $ac_val
15829 #endif
15830 _ACEOF
15831 ;;
15832 esac
15833
15834 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15835 if test "x$ac_cv_type_size_t" = xyes
15836 then :
15837
15838 else case e in #(
15839 e)
15840 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15841 ;;
15842 esac
15843 fi
15844
15845 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15846 case $ac_cv_c_int64_t in #(
15847 no|yes) ;; #(
15848 *)
15849
15850 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15851 ;;
15852 esac
15853
15854 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15855 case $ac_cv_c_uint64_t in #(
15856 no|yes) ;; #(
15857 *)
15858
15859 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15860
15861
15862 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15863 ;;
15864 esac
15865
15866 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15867 *':no:'*) :
15868 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15869 *) :
15870 ;;
15871 esac
15872 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15873 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15874 if test "x$ac_cv_have_decl_isascii" = xyes
15875 then :
15876 ac_have_decl=1
15877 else case e in #(
15878 e) ac_have_decl=0 ;;
15879 esac
15880 fi
15881 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15882
15883 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15884 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15885 then :
15886
15887 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15888
15889
15890 fi
15891
15892
15893
15894
15895 # [from gnulib] canonicalize.m4 serial 26
15896
15897
15898
15899 # Check whether realpath works. Assume that if a platform has both
15900 # realpath and canonicalize_file_name, but the former is broken, then
15901 # so is the latter.
15902
15903 # end function from canonicalize.m4. now call it:
15904
15905 ac_func=
15906 for ac_item in $ac_func_c_list
15907 do
15908 if test $ac_func; then
15909 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
15910 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
15911 echo "#define $ac_item 1" >> confdefs.h
15912 fi
15913 ac_func=
15914 else
15915 ac_func=$ac_item
15916 fi
15917 done
15918
15919
15920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
15921 printf %s "checking whether realpath works... " >&6; }
15922 if test ${gl_cv_func_realpath_works+y}
15923 then :
15924 printf %s "(cached) " >&6
15925 else case e in #(
15926 e)
15927 touch conftest.a
15928 mkdir conftest.d
15929 if test "$cross_compiling" = yes
15930 then :
15931 case "$host_os" in
15932 # Guess yes on glibc systems.
15933 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
15934 # If we don't know, assume the worst.
15935 *) gl_cv_func_realpath_works="guessing no" ;;
15936 esac
15937
15938 else case e in #(
15939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15941
15942
15943 GL_NOCRASH
15944 #include <stdlib.h>
15945 #include <string.h>
15946
15947 int
15948 main (void)
15949 {
15950
15951 int result = 0;
15952 {
15953 char *name = realpath ("conftest.a", NULL);
15954 if (!(name && *name == '/'))
15955 result |= 1;
15956 }
15957 {
15958 char *name = realpath ("conftest.b/../conftest.a", NULL);
15959 if (name != NULL)
15960 result |= 2;
15961 }
15962 {
15963 char *name = realpath ("conftest.a/", NULL);
15964 if (name != NULL)
15965 result |= 4;
15966 }
15967 {
15968 char *name1 = realpath (".", NULL);
15969 char *name2 = realpath ("conftest.d//./..", NULL);
15970 if (strcmp (name1, name2) != 0)
15971 result |= 8;
15972 }
15973 return result;
15974
15975 ;
15976 return 0;
15977 }
15978
15979 _ACEOF
15980 if ac_fn_c_try_run "$LINENO"
15981 then :
15982 gl_cv_func_realpath_works=yes
15983 else case e in #(
15984 e) gl_cv_func_realpath_works=no ;;
15985 esac
15986 fi
15987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15988 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15989 esac
15990 fi
15991
15992 rm -rf conftest.a conftest.d
15993 ;;
15994 esac
15995 fi
15996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
15997 printf "%s\n" "$gl_cv_func_realpath_works" >&6; }
15998 case "$gl_cv_func_realpath_works" in
15999 *yes)
16000
16001 printf "%s\n" "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
16002
16003 ;;
16004 esac
16005
16006
16007 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16008 if test "x$ac_cv_header_stdint_h" = xyes
16009 then :
16010 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
16011
16012 fi
16013
16014 ac_fn_c_check_header_compile "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default"
16015 if test "x$ac_cv_header_stdalign_h" = xyes
16016 then :
16017 printf "%s\n" "#define HAVE_STDALIGN_H 1" >>confdefs.h
16018
16019 fi
16020
16021
16022 # The cast to long int works around a bug in the HP C Compiler,
16023 # see AC_CHECK_SIZEOF for more information.
16024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of uint32_t" >&5
16025 printf %s "checking alignment of uint32_t... " >&6; }
16026 if test ${ac_cv_alignof_uint32_t+y}
16027 then :
16028 printf %s "(cached) " >&6
16029 else case e in #(
16030 e) if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint32_t" "$ac_includes_default
16031 typedef struct { char x; uint32_t y; } ac__type_alignof_;"
16032 then :
16033
16034 else case e in #(
16035 e) if test "$ac_cv_type_uint32_t" = yes; then
16036 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16037 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16038 as_fn_error 77 "cannot compute alignment of uint32_t
16039 See 'config.log' for more details" "$LINENO" 5; }
16040 else
16041 ac_cv_alignof_uint32_t=0
16042 fi ;;
16043 esac
16044 fi
16045 ;;
16046 esac
16047 fi
16048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint32_t" >&5
16049 printf "%s\n" "$ac_cv_alignof_uint32_t" >&6; }
16050
16051
16052
16053 printf "%s\n" "#define ALIGNOF_UINT32_T $ac_cv_alignof_uint32_t" >>confdefs.h
16054
16055
16056
16057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16058 printf %s "checking whether byte ordering is bigendian... " >&6; }
16059 if test ${ac_cv_c_bigendian+y}
16060 then :
16061 printf %s "(cached) " >&6
16062 else case e in #(
16063 e) ac_cv_c_bigendian=unknown
16064 # See if we're dealing with a universal compiler.
16065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16066 /* end confdefs.h. */
16067 #ifndef __APPLE_CC__
16068 not a universal capable compiler
16069 #endif
16070 typedef int dummy;
16071
16072 _ACEOF
16073 if ac_fn_c_try_compile "$LINENO"
16074 then :
16075
16076 # Check for potential -arch flags. It is not universal unless
16077 # there are at least two -arch flags with different values.
16078 ac_arch=
16079 ac_prev=
16080 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16081 if test -n "$ac_prev"; then
16082 case $ac_word in
16083 i?86 | x86_64 | ppc | ppc64)
16084 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16085 ac_arch=$ac_word
16086 else
16087 ac_cv_c_bigendian=universal
16088 break
16089 fi
16090 ;;
16091 esac
16092 ac_prev=
16093 elif test "x$ac_word" = "x-arch"; then
16094 ac_prev=arch
16095 fi
16096 done
16097 fi
16098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16099 if test $ac_cv_c_bigendian = unknown; then
16100 # See if sys/param.h defines the BYTE_ORDER macro.
16101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h. */
16103 #include <sys/types.h>
16104 #include <sys/param.h>
16105
16106 int
16107 main (void)
16108 {
16109 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
16110 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
16111 && LITTLE_ENDIAN)
16112 bogus endian macros
16113 #endif
16114
16115 ;
16116 return 0;
16117 }
16118 _ACEOF
16119 if ac_fn_c_try_compile "$LINENO"
16120 then :
16121 # It does; now see whether it defined to BIG_ENDIAN or not.
16122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16123 /* end confdefs.h. */
16124 #include <sys/types.h>
16125 #include <sys/param.h>
16126
16127 int
16128 main (void)
16129 {
16130 #if BYTE_ORDER != BIG_ENDIAN
16131 not big endian
16132 #endif
16133
16134 ;
16135 return 0;
16136 }
16137 _ACEOF
16138 if ac_fn_c_try_compile "$LINENO"
16139 then :
16140 ac_cv_c_bigendian=yes
16141 else case e in #(
16142 e) ac_cv_c_bigendian=no ;;
16143 esac
16144 fi
16145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16146 fi
16147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16148 fi
16149 if test $ac_cv_c_bigendian = unknown; then
16150 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h. */
16153 #include <limits.h>
16154
16155 int
16156 main (void)
16157 {
16158 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16159 bogus endian macros
16160 #endif
16161
16162 ;
16163 return 0;
16164 }
16165 _ACEOF
16166 if ac_fn_c_try_compile "$LINENO"
16167 then :
16168 # It does; now see whether it defined to _BIG_ENDIAN or not.
16169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16170 /* end confdefs.h. */
16171 #include <limits.h>
16172
16173 int
16174 main (void)
16175 {
16176 #ifndef _BIG_ENDIAN
16177 not big endian
16178 #endif
16179
16180 ;
16181 return 0;
16182 }
16183 _ACEOF
16184 if ac_fn_c_try_compile "$LINENO"
16185 then :
16186 ac_cv_c_bigendian=yes
16187 else case e in #(
16188 e) ac_cv_c_bigendian=no ;;
16189 esac
16190 fi
16191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16192 fi
16193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16194 fi
16195 if test $ac_cv_c_bigendian = unknown; then
16196 # Compile a test program.
16197 if test "$cross_compiling" = yes
16198 then :
16199 # Try to guess by grepping values from an object file.
16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201 /* end confdefs.h. */
16202 unsigned short int ascii_mm[] =
16203 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16204 unsigned short int ascii_ii[] =
16205 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16206 int use_ascii (int i) {
16207 return ascii_mm[i] + ascii_ii[i];
16208 }
16209 unsigned short int ebcdic_ii[] =
16210 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16211 unsigned short int ebcdic_mm[] =
16212 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16213 int use_ebcdic (int i) {
16214 return ebcdic_mm[i] + ebcdic_ii[i];
16215 }
16216 int
16217 main (int argc, char **argv)
16218 {
16219 /* Intimidate the compiler so that it does not
16220 optimize the arrays away. */
16221 char *p = argv[0];
16222 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
16223 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
16224 return use_ascii (argc) == use_ebcdic (*p);
16225 }
16226 _ACEOF
16227 if ac_fn_c_try_link "$LINENO"
16228 then :
16229 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
16230 ac_cv_c_bigendian=yes
16231 fi
16232 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
16233 if test "$ac_cv_c_bigendian" = unknown; then
16234 ac_cv_c_bigendian=no
16235 else
16236 # finding both strings is unlikely to happen, but who knows?
16237 ac_cv_c_bigendian=unknown
16238 fi
16239 fi
16240 fi
16241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16242 conftest$ac_exeext conftest.$ac_ext
16243 else case e in #(
16244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245 /* end confdefs.h. */
16246 $ac_includes_default
16247 int
16248 main (void)
16249 {
16250
16251 /* Are we little or big endian? From Harbison&Steele. */
16252 union
16253 {
16254 long int l;
16255 char c[sizeof (long int)];
16256 } u;
16257 u.l = 1;
16258 return u.c[sizeof (long int) - 1] == 1;
16259
16260 ;
16261 return 0;
16262 }
16263 _ACEOF
16264 if ac_fn_c_try_run "$LINENO"
16265 then :
16266 ac_cv_c_bigendian=no
16267 else case e in #(
16268 e) ac_cv_c_bigendian=yes ;;
16269 esac
16270 fi
16271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16272 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16273 esac
16274 fi
16275
16276 fi ;;
16277 esac
16278 fi
16279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16280 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
16281 case $ac_cv_c_bigendian in #(
16282 yes)
16283 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
16284 ;; #(
16285 no)
16286 ;; #(
16287 universal)
16288
16289 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16290
16291 ;; #(
16292 *)
16293 as_fn_error $? "unknown endianness
16294 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16295 esac
16296
16297
16298 GREGORIO_TREE=gregorio-src
16299
16300 PERL5='/usr/bin/env perl'
16301
16302
16303 kpse_save_CPPFLAGS=$CPPFLAGS
16304 kpse_save_LIBS=$LIBS
16305
16306 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
16307 kpse_BLD=`(cd "./../../." && pwd)`
16308 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
16309
16310 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
16311 : ${CONFIG_LT=./config.lt}
16312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
16313 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
16314 as_write_fail=0
16315 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
16316 #! $SHELL
16317 # Generated by $as_me.
16318 # Run this file to recreate a libtool stub with the current configuration.
16319 SHELL=\${CONFIG_SHELL-$SHELL}
16320 export SHELL
16321 _ASEOF
16322 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
16323 ## -------------------- ##
16324 ## M4sh Initialization. ##
16325 ## -------------------- ##
16326
16327 # Be more Bourne compatible
16328 DUALCASE=1; export DUALCASE # for MKS sh
16329 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16330 then :
16331 emulate sh
16332 NULLCMD=:
16333 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16334 # is contrary to our usage. Disable this feature.
16335 alias -g '${1+"$@"}'='"$@"'
16336 setopt NO_GLOB_SUBST
16337 else case e in #(
16338 e) case `(set -o) 2>/dev/null` in #(
16339 *posix*) :
16340 set -o posix ;; #(
16341 *) :
16342 ;;
16343 esac ;;
16344 esac
16345 fi
16346
16347
16348
16349 # Reset variables that may have inherited troublesome values from
16350 # the environment.
16351
16352 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16353 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16354 # side effect of setting IFS to empty, thus disabling word splitting.)
16355 # Quoting is to prevent editors from complaining about space-tab.
16356 as_nl='
16357 '
16358 export as_nl
16359 IFS=" "" $as_nl"
16360
16361 PS1='$ '
16362 PS2='> '
16363 PS4='+ '
16364
16365 # Ensure predictable behavior from utilities with locale-dependent output.
16366 LC_ALL=C
16367 export LC_ALL
16368 LANGUAGE=C
16369 export LANGUAGE
16370
16371 # We cannot yet rely on "unset" to work, but we need these variables
16372 # to be unset--not just set to an empty or harmless value--now, to
16373 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16374 # also avoids known problems related to "unset" and subshell syntax
16375 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16376 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16377 do eval test \${$as_var+y} \
16378 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16379 done
16380
16381 # Ensure that fds 0, 1, and 2 are open.
16382 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16383 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16384 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16385
16386 # The user is always right.
16387 if ${PATH_SEPARATOR+false} :; then
16388 PATH_SEPARATOR=:
16389 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16390 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16391 PATH_SEPARATOR=';'
16392 }
16393 fi
16394
16395
16396 # Find who we are. Look in the path if we contain no directory separator.
16397 as_myself=
16398 case $0 in #((
16399 *[\\/]* ) as_myself=$0 ;;
16400 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16401 for as_dir in $PATH
16402 do
16403 IFS=$as_save_IFS
16404 case $as_dir in #(((
16405 '') as_dir=./ ;;
16406 */) ;;
16407 *) as_dir=$as_dir/ ;;
16408 esac
16409 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16410 done
16411 IFS=$as_save_IFS
16412
16413 ;;
16414 esac
16415 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16416 # in which case we are not to be found in the path.
16417 if test "x$as_myself" = x; then
16418 as_myself=$0
16419 fi
16420 if test ! -f "$as_myself"; then
16421 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16422 exit 1
16423 fi
16424
16425
16426
16427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16428 # ----------------------------------------
16429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16431 # script with STATUS, using 1 if that was 0.
16432 as_fn_error ()
16433 {
16434 as_status=$1; test $as_status -eq 0 && as_status=1
16435 if test "$4"; then
16436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16438 fi
16439 printf "%s\n" "$as_me: error: $2" >&2
16440 as_fn_exit $as_status
16441 } # as_fn_error
16442
16443
16444 # as_fn_set_status STATUS
16445 # -----------------------
16446 # Set $? to STATUS, without forking.
16447 as_fn_set_status ()
16448 {
16449 return $1
16450 } # as_fn_set_status
16451
16452 # as_fn_exit STATUS
16453 # -----------------
16454 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16455 as_fn_exit ()
16456 {
16457 set +e
16458 as_fn_set_status $1
16459 exit $1
16460 } # as_fn_exit
16461
16462 # as_fn_unset VAR
16463 # ---------------
16464 # Portably unset VAR.
16465 as_fn_unset ()
16466 {
16467 { eval $1=; unset $1;}
16468 }
16469 as_unset=as_fn_unset
16470
16471 # as_fn_append VAR VALUE
16472 # ----------------------
16473 # Append the text in VALUE to the end of the definition contained in VAR. Take
16474 # advantage of any shell optimizations that allow amortized linear growth over
16475 # repeated appends, instead of the typical quadratic growth present in naive
16476 # implementations.
16477 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16478 then :
16479 eval 'as_fn_append ()
16480 {
16481 eval $1+=\$2
16482 }'
16483 else case e in #(
16484 e) as_fn_append ()
16485 {
16486 eval $1=\$$1\$2
16487 } ;;
16488 esac
16489 fi # as_fn_append
16490
16491 # as_fn_arith ARG...
16492 # ------------------
16493 # Perform arithmetic evaluation on the ARGs, and store the result in the
16494 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16495 # must be portable across $(()) and expr.
16496 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16497 then :
16498 eval 'as_fn_arith ()
16499 {
16500 as_val=$(( $* ))
16501 }'
16502 else case e in #(
16503 e) as_fn_arith ()
16504 {
16505 as_val=`expr "$@" || test $? -eq 1`
16506 } ;;
16507 esac
16508 fi # as_fn_arith
16509
16510
16511 if expr a : '\(a\)' >/dev/null 2>&1 &&
16512 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16513 as_expr=expr
16514 else
16515 as_expr=false
16516 fi
16517
16518 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16519 as_basename=basename
16520 else
16521 as_basename=false
16522 fi
16523
16524 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16525 as_dirname=dirname
16526 else
16527 as_dirname=false
16528 fi
16529
16530 as_me=`$as_basename -- "$0" ||
16531 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16532 X"$0" : 'X\(//\)$' \| \
16533 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16534 printf "%s\n" X/"$0" |
16535 sed '/^.*\/\([^/][^/]*\)\/*$/{
16536 s//\1/
16537 q
16538 }
16539 /^X\/\(\/\/\)$/{
16540 s//\1/
16541 q
16542 }
16543 /^X\/\(\/\).*/{
16544 s//\1/
16545 q
16546 }
16547 s/.*/./; q'`
16548
16549 # Avoid depending upon Character Ranges.
16550 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16551 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16552 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16553 as_cr_digits='0123456789'
16554 as_cr_alnum=$as_cr_Letters$as_cr_digits
16555
16556
16557 # Determine whether it's possible to make 'echo' print without a newline.
16558 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16559 # for compatibility with existing Makefiles.
16560 ECHO_C= ECHO_N= ECHO_T=
16561 case `echo -n x` in #(((((
16562 -n*)
16563 case `echo 'xy\c'` in
16564 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16565 xy) ECHO_C='\c';;
16566 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16567 ECHO_T=' ';;
16568 esac;;
16569 *)
16570 ECHO_N='-n';;
16571 esac
16572
16573 # For backward compatibility with old third-party macros, we provide
16574 # the shell variables $as_echo and $as_echo_n. New code should use
16575 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16576 as_echo='printf %s\n'
16577 as_echo_n='printf %s'
16578
16579 rm -f conf$$ conf$$.exe conf$$.file
16580 if test -d conf$$.dir; then
16581 rm -f conf$$.dir/conf$$.file
16582 else
16583 rm -f conf$$.dir
16584 mkdir conf$$.dir 2>/dev/null
16585 fi
16586 if (echo >conf$$.file) 2>/dev/null; then
16587 if ln -s conf$$.file conf$$ 2>/dev/null; then
16588 as_ln_s='ln -s'
16589 # ... but there are two gotchas:
16590 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16591 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16592 # In both cases, we have to default to 'cp -pR'.
16593 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16594 as_ln_s='cp -pR'
16595 elif ln conf$$.file conf$$ 2>/dev/null; then
16596 as_ln_s=ln
16597 else
16598 as_ln_s='cp -pR'
16599 fi
16600 else
16601 as_ln_s='cp -pR'
16602 fi
16603 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16604 rmdir conf$$.dir 2>/dev/null
16605
16606
16607 # as_fn_mkdir_p
16608 # -------------
16609 # Create "$as_dir" as a directory, including parents if necessary.
16610 as_fn_mkdir_p ()
16611 {
16612
16613 case $as_dir in #(
16614 -*) as_dir=./$as_dir;;
16615 esac
16616 test -d "$as_dir" || eval $as_mkdir_p || {
16617 as_dirs=
16618 while :; do
16619 case $as_dir in #(
16620 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16621 *) as_qdir=$as_dir;;
16622 esac
16623 as_dirs="'$as_qdir' $as_dirs"
16624 as_dir=`$as_dirname -- "$as_dir" ||
16625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16626 X"$as_dir" : 'X\(//\)[^/]' \| \
16627 X"$as_dir" : 'X\(//\)$' \| \
16628 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16629 printf "%s\n" X"$as_dir" |
16630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16631 s//\1/
16632 q
16633 }
16634 /^X\(\/\/\)[^/].*/{
16635 s//\1/
16636 q
16637 }
16638 /^X\(\/\/\)$/{
16639 s//\1/
16640 q
16641 }
16642 /^X\(\/\).*/{
16643 s//\1/
16644 q
16645 }
16646 s/.*/./; q'`
16647 test -d "$as_dir" && break
16648 done
16649 test -z "$as_dirs" || eval "mkdir $as_dirs"
16650 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16651
16652
16653 } # as_fn_mkdir_p
16654 if mkdir -p . 2>/dev/null; then
16655 as_mkdir_p='mkdir -p "$as_dir"'
16656 else
16657 test -d ./-p && rmdir ./-p
16658 as_mkdir_p=false
16659 fi
16660
16661
16662 # as_fn_executable_p FILE
16663 # -----------------------
16664 # Test if FILE is an executable regular file.
16665 as_fn_executable_p ()
16666 {
16667 test -f "$1" && test -x "$1"
16668 } # as_fn_executable_p
16669 as_test_x='test -x'
16670 as_executable_p=as_fn_executable_p
16671
16672 # Sed expression to map a string onto a valid CPP name.
16673 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16674 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16675
16676 # Sed expression to map a string onto a valid variable name.
16677 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16678 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16679
16680
16681 exec 6>&1
16682 ## --------------------------------- ##
16683 ## Main body of "$CONFIG_LT" script. ##
16684 ## --------------------------------- ##
16685 _ASEOF
16686 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
16687
16688 cat >>"$CONFIG_LT" <<\_LTEOF
16689 lt_cl_silent=false
16690 exec 5>>config.log
16691 {
16692 echo
16693 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16694 ## Running $as_me. ##
16695 _ASBOX
16696 } >&5
16697
16698 lt_cl_help="\
16699 '$as_me' creates a local libtool stub from the current configuration,
16700 for use in further configure time tests before the real libtool is
16701 generated.
16702
16703 Usage: $0 [OPTIONS]
16704
16705 -h, --help print this help, then exit
16706 -V, --version print version number, then exit
16707 -q, --quiet do not print progress messages
16708 -d, --debug don't remove temporary files
16709
16710 Report bugs to <[email protected]>."
16711
16712 lt_cl_version="\
16713 Gregorio (TeX Live) config.lt 6.1.0
16714 configured by $0, generated by GNU Autoconf 2.72.
16715
16716 Copyright (C) 2024 Free Software Foundation, Inc.
16717 This config.lt script is free software; the Free Software Foundation
16718 gives unlimited permission to copy, distribute and modify it."
16719
16720 while test 0 != $#
16721 do
16722 case $1 in
16723 --version | --v* | -V )
16724 echo "$lt_cl_version"; exit 0 ;;
16725 --help | --h* | -h )
16726 echo "$lt_cl_help"; exit 0 ;;
16727 --debug | --d* | -d )
16728 debug=: ;;
16729 --quiet | --q* | --silent | --s* | -q )
16730 lt_cl_silent=: ;;
16731
16732 -*) as_fn_error $? "unrecognized option: $1
16733 Try '$0 --help' for more information." "$LINENO" 5 ;;
16734
16735 *) as_fn_error $? "unrecognized argument: $1
16736 Try '$0 --help' for more information." "$LINENO" 5 ;;
16737 esac
16738 shift
16739 done
16740
16741 if $lt_cl_silent; then
16742 exec 6>/dev/null
16743 fi
16744 _LTEOF
16745
16746 cat >>"$CONFIG_LT" <<_LTEOF
16747
16748
16749 # The HP-UX ksh and POSIX shell print the target directory to stdout
16750 # if CDPATH is set.
16751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16752
16753 sed_quote_subst='$sed_quote_subst'
16754 double_quote_subst='$double_quote_subst'
16755 delay_variable_subst='$delay_variable_subst'
16756 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16757 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16758 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16759 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16760 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16761 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16762 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16763 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16764 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16765 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16766 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16767 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16768 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16769 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16770 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16771 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16772 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16773 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16774 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16775 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16776 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16777 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16778 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16779 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16780 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16781 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16782 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16783 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16784 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16785 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16786 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16787 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16788 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16789 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16790 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16791 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16792 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16793 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16794 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16795 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16796 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16797 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16798 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16799 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16800 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16801 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16802 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16803 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16804 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16805 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16806 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16807 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16808 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16809 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16810 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16811 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16812 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16813 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16814 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16815 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16816 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16817 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"`'
16818 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16819 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16820 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16821 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16822 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16823 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16824 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16825 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16826 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16827 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16828 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16829 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16830 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16831 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16832 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16833 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16834 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16835 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16836 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16837 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16838 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16839 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16840 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16841 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16842 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16843 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16844 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16845 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16846 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16847 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16848 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16849 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16850 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16851 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16852 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16853 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16854 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16855 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16856 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16857 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16858 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16859 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16860 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16861 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16862 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16863 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16864 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16865 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16866 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16867 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16868 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16869 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16870 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16871 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16872 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16873 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16874 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16875 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16876 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16877 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16878 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16879 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16880 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16881 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16882 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16883 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16884 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16885 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16886 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16887 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16888 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16889 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16890 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16891 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16892 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16893 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16894
16895 LTCC='$LTCC'
16896 LTCFLAGS='$LTCFLAGS'
16897 compiler='$compiler_DEFAULT'
16898
16899 # A function that is used when there is no print builtin or printf.
16900 func_fallback_echo ()
16901 {
16902 eval 'cat <<_LTECHO_EOF
16903 \$1
16904 _LTECHO_EOF'
16905 }
16906
16907 # Quote evaled strings.
16908 for var in AS \
16909 DLLTOOL \
16910 OBJDUMP \
16911 SHELL \
16912 ECHO \
16913 PATH_SEPARATOR \
16914 SED \
16915 GREP \
16916 EGREP \
16917 FGREP \
16918 LD \
16919 NM \
16920 LN_S \
16921 lt_SP2NL \
16922 lt_NL2SP \
16923 reload_flag \
16924 FILECMD \
16925 deplibs_check_method \
16926 file_magic_cmd \
16927 file_magic_glob \
16928 want_nocaseglob \
16929 sharedlib_from_linklib_cmd \
16930 AR \
16931 archiver_list_spec \
16932 STRIP \
16933 RANLIB \
16934 CC \
16935 CFLAGS \
16936 compiler \
16937 lt_cv_sys_global_symbol_pipe \
16938 lt_cv_sys_global_symbol_to_cdecl \
16939 lt_cv_sys_global_symbol_to_import \
16940 lt_cv_sys_global_symbol_to_c_name_address \
16941 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16942 lt_cv_nm_interface \
16943 nm_file_list_spec \
16944 lt_cv_truncate_bin \
16945 lt_prog_compiler_no_builtin_flag \
16946 lt_prog_compiler_pic \
16947 lt_prog_compiler_wl \
16948 lt_prog_compiler_static \
16949 lt_cv_prog_compiler_c_o \
16950 need_locks \
16951 MANIFEST_TOOL \
16952 DSYMUTIL \
16953 NMEDIT \
16954 LIPO \
16955 OTOOL \
16956 OTOOL64 \
16957 shrext_cmds \
16958 export_dynamic_flag_spec \
16959 whole_archive_flag_spec \
16960 compiler_needs_object \
16961 with_gnu_ld \
16962 allow_undefined_flag \
16963 no_undefined_flag \
16964 hardcode_libdir_flag_spec \
16965 hardcode_libdir_separator \
16966 exclude_expsyms \
16967 include_expsyms \
16968 file_list_spec \
16969 variables_saved_for_relink \
16970 libname_spec \
16971 library_names_spec \
16972 soname_spec \
16973 install_override_mode \
16974 finish_eval \
16975 old_striplib \
16976 striplib; do
16977 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16978 *[\\\\\\\`\\"\\\$]*)
16979 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16980 ;;
16981 *)
16982 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16983 ;;
16984 esac
16985 done
16986
16987 # Double-quote double-evaled strings.
16988 for var in reload_cmds \
16989 old_postinstall_cmds \
16990 old_postuninstall_cmds \
16991 old_archive_cmds \
16992 extract_expsyms_cmds \
16993 old_archive_from_new_cmds \
16994 old_archive_from_expsyms_cmds \
16995 archive_cmds \
16996 archive_expsym_cmds \
16997 module_cmds \
16998 module_expsym_cmds \
16999 export_symbols_cmds \
17000 prelink_cmds \
17001 postlink_cmds \
17002 postinstall_cmds \
17003 postuninstall_cmds \
17004 finish_cmds \
17005 sys_lib_search_path_spec \
17006 configure_time_dlsearch_path \
17007 configure_time_lt_sys_library_path; do
17008 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17009 *[\\\\\\\`\\"\\\$]*)
17010 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17011 ;;
17012 *)
17013 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17014 ;;
17015 esac
17016 done
17017
17018 ac_aux_dir='$ac_aux_dir'
17019
17020 # See if we are running on zsh, and set the options that allow our
17021 # commands through without removal of \ escapes INIT.
17022 if test -n "\${ZSH_VERSION+set}"; then
17023 setopt NO_GLOB_SUBST
17024 fi
17025
17026
17027 PACKAGE='$PACKAGE'
17028 VERSION='$VERSION'
17029 RM='$RM'
17030 ofile='$ofile'
17031
17032
17033
17034 _LTEOF
17035
17036 cat >>"$CONFIG_LT" <<\_LTEOF
17037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
17038 printf "%s\n" "$as_me: creating $ofile" >&6;}
17039
17040
17041 # See if we are running on zsh, and set the options that allow our
17042 # commands through without removal of \ escapes.
17043 if test -n "${ZSH_VERSION+set}"; then
17044 setopt NO_GLOB_SUBST
17045 fi
17046
17047 cfgfile=${ofile}T
17048 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17049 $RM "$cfgfile"
17050
17051 cat <<_LT_EOF >> "$cfgfile"
17052 #! $SHELL
17053 # Generated automatically by $as_me ($PACKAGE) $VERSION
17054 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17055
17056 # Provide generalized library-building support services.
17057 # Written by Gordon Matzigkeit, 1996
17058
17059 # Copyright (C) 2024 Free Software Foundation, Inc.
17060 # This is free software; see the source for copying conditions. There is NO
17061 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17062
17063 # GNU Libtool is free software; you can redistribute it and/or modify
17064 # it under the terms of the GNU General Public License as published by
17065 # the Free Software Foundation; either version 2 of the License, or
17066 # (at your option) any later version.
17067 #
17068 # As a special exception to the GNU General Public License, if you
17069 # distribute this file as part of a program or library that is built
17070 # using GNU Libtool, you may include this file under the same
17071 # distribution terms that you use for the rest of that program.
17072 #
17073 # GNU Libtool is distributed in the hope that it will be useful, but
17074 # WITHOUT ANY WARRANTY; without even the implied warranty of
17075 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17076 # GNU General Public License for more details.
17077 #
17078 # You should have received a copy of the GNU General Public License
17079 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17080
17081
17082 # The names of the tagged configurations supported by this script.
17083 available_tags=''
17084
17085 # Configured defaults for sys_lib_dlsearch_path munging.
17086 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17087
17088 # ### BEGIN LIBTOOL CONFIG
17089
17090 # Which release of libtool.m4 was used?
17091 macro_version=$macro_version
17092 macro_revision=$macro_revision
17093
17094 # Assembler program.
17095 AS=$lt_AS
17096
17097 # DLL creation program.
17098 DLLTOOL=$lt_DLLTOOL
17099
17100 # Object dumper program.
17101 OBJDUMP=$lt_OBJDUMP
17102
17103 # Whether or not to build shared libraries.
17104 build_libtool_libs=$enable_shared
17105
17106 # Whether or not to build static libraries.
17107 build_old_libs=$enable_static
17108
17109 # What type of objects to build.
17110 pic_mode=$pic_mode
17111
17112 # Whether or not to optimize for fast installation.
17113 fast_install=$enable_fast_install
17114
17115 # Shared archive member basename,for filename based shared library versioning on AIX.
17116 shared_archive_member_spec=$shared_archive_member_spec
17117
17118 # Shell to use when invoking shell scripts.
17119 SHELL=$lt_SHELL
17120
17121 # An echo program that protects backslashes.
17122 ECHO=$lt_ECHO
17123
17124 # The PATH separator for the build system.
17125 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17126
17127 # The host system.
17128 host_alias=$host_alias
17129 host=$host
17130 host_os=$host_os
17131
17132 # The build system.
17133 build_alias=$build_alias
17134 build=$build
17135 build_os=$build_os
17136
17137 # A sed program that does not truncate output.
17138 SED=$lt_SED
17139
17140 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17141 Xsed="\$SED -e 1s/^X//"
17142
17143 # A grep program that handles long lines.
17144 GREP=$lt_GREP
17145
17146 # An ERE matcher.
17147 EGREP=$lt_EGREP
17148
17149 # A literal string matcher.
17150 FGREP=$lt_FGREP
17151
17152 # A BSD- or MS-compatible name lister.
17153 NM=$lt_NM
17154
17155 # Whether we need soft or hard links.
17156 LN_S=$lt_LN_S
17157
17158 # What is the maximum length of a command?
17159 max_cmd_len=$max_cmd_len
17160
17161 # Object file suffix (normally "o").
17162 objext=$ac_objext
17163
17164 # Executable file suffix (normally "").
17165 exeext=$exeext
17166
17167 # whether the shell understands "unset".
17168 lt_unset=$lt_unset
17169
17170 # turn spaces into newlines.
17171 SP2NL=$lt_lt_SP2NL
17172
17173 # turn newlines into spaces.
17174 NL2SP=$lt_lt_NL2SP
17175
17176 # convert \$build file names to \$host format.
17177 to_host_file_cmd=$lt_cv_to_host_file_cmd
17178
17179 # convert \$build files to toolchain format.
17180 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17181
17182 # A file(cmd) program that detects file types.
17183 FILECMD=$lt_FILECMD
17184
17185 # Method to check whether dependent libraries are shared objects.
17186 deplibs_check_method=$lt_deplibs_check_method
17187
17188 # Command to use when deplibs_check_method = "file_magic".
17189 file_magic_cmd=$lt_file_magic_cmd
17190
17191 # How to find potential files when deplibs_check_method = "file_magic".
17192 file_magic_glob=$lt_file_magic_glob
17193
17194 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17195 want_nocaseglob=$lt_want_nocaseglob
17196
17197 # Command to associate shared and link libraries.
17198 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17199
17200 # The archiver.
17201 AR=$lt_AR
17202
17203 # Flags to create an archive (by configure).
17204 lt_ar_flags=$lt_ar_flags
17205
17206 # Flags to create an archive.
17207 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17208
17209 # How to feed a file listing to the archiver.
17210 archiver_list_spec=$lt_archiver_list_spec
17211
17212 # A symbol stripping program.
17213 STRIP=$lt_STRIP
17214
17215 # Commands used to install an old-style archive.
17216 RANLIB=$lt_RANLIB
17217 old_postinstall_cmds=$lt_old_postinstall_cmds
17218 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17219
17220 # Whether to use a lock for old archive extraction.
17221 lock_old_archive_extraction=$lock_old_archive_extraction
17222
17223 # A C compiler.
17224 LTCC=$lt_CC
17225
17226 # LTCC compiler flags.
17227 LTCFLAGS=$lt_CFLAGS
17228
17229 # Take the output of nm and produce a listing of raw symbols and C names.
17230 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17231
17232 # Transform the output of nm in a proper C declaration.
17233 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17234
17235 # Transform the output of nm into a list of symbols to manually relocate.
17236 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17237
17238 # Transform the output of nm in a C name address pair.
17239 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17240
17241 # Transform the output of nm in a C name address pair when lib prefix is needed.
17242 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17243
17244 # The name lister interface.
17245 nm_interface=$lt_lt_cv_nm_interface
17246
17247 # Specify filename containing input files for \$NM.
17248 nm_file_list_spec=$lt_nm_file_list_spec
17249
17250 # The root where to search for dependent libraries,and where our libraries should be installed.
17251 lt_sysroot=$lt_sysroot
17252
17253 # Command to truncate a binary pipe.
17254 lt_truncate_bin=$lt_lt_cv_truncate_bin
17255
17256 # The name of the directory that contains temporary libtool files.
17257 objdir=$objdir
17258
17259 # Used to examine libraries when file_magic_cmd begins with "file".
17260 MAGIC_CMD=$MAGIC_CMD
17261
17262 # Must we lock files when doing compilation?
17263 need_locks=$lt_need_locks
17264
17265 # Manifest tool.
17266 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17267
17268 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17269 DSYMUTIL=$lt_DSYMUTIL
17270
17271 # Tool to change global to local symbols on Mac OS X.
17272 NMEDIT=$lt_NMEDIT
17273
17274 # Tool to manipulate fat objects and archives on Mac OS X.
17275 LIPO=$lt_LIPO
17276
17277 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17278 OTOOL=$lt_OTOOL
17279
17280 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17281 OTOOL64=$lt_OTOOL64
17282
17283 # Old archive suffix (normally "a").
17284 libext=$libext
17285
17286 # Shared library suffix (normally ".so").
17287 shrext_cmds=$lt_shrext_cmds
17288
17289 # The commands to extract the exported symbol list from a shared archive.
17290 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17291
17292 # Variables whose values should be saved in libtool wrapper scripts and
17293 # restored at link time.
17294 variables_saved_for_relink=$lt_variables_saved_for_relink
17295
17296 # Do we need the "lib" prefix for modules?
17297 need_lib_prefix=$need_lib_prefix
17298
17299 # Do we need a version for libraries?
17300 need_version=$need_version
17301
17302 # Library versioning type.
17303 version_type=$version_type
17304
17305 # Shared library runtime path variable.
17306 runpath_var=$runpath_var
17307
17308 # Shared library path variable.
17309 shlibpath_var=$shlibpath_var
17310
17311 # Is shlibpath searched before the hard-coded library search path?
17312 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17313
17314 # Format of library name prefix.
17315 libname_spec=$lt_libname_spec
17316
17317 # List of archive names. First name is the real one, the rest are links.
17318 # The last name is the one that the linker finds with -lNAME
17319 library_names_spec=$lt_library_names_spec
17320
17321 # The coded name of the library, if different from the real name.
17322 soname_spec=$lt_soname_spec
17323
17324 # Permission mode override for installation of shared libraries.
17325 install_override_mode=$lt_install_override_mode
17326
17327 # Command to use after installation of a shared archive.
17328 postinstall_cmds=$lt_postinstall_cmds
17329
17330 # Command to use after uninstallation of a shared archive.
17331 postuninstall_cmds=$lt_postuninstall_cmds
17332
17333 # Commands used to finish a libtool library installation in a directory.
17334 finish_cmds=$lt_finish_cmds
17335
17336 # As "finish_cmds", except a single script fragment to be evaled but
17337 # not shown.
17338 finish_eval=$lt_finish_eval
17339
17340 # Whether we should hardcode library paths into libraries.
17341 hardcode_into_libs=$hardcode_into_libs
17342
17343 # Compile-time system search path for libraries.
17344 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17345
17346 # Detected run-time system search path for libraries.
17347 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17348
17349 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17350 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17351
17352 # Whether dlopen is supported.
17353 dlopen_support=$enable_dlopen
17354
17355 # Whether dlopen of programs is supported.
17356 dlopen_self=$enable_dlopen_self
17357
17358 # Whether dlopen of statically linked programs is supported.
17359 dlopen_self_static=$enable_dlopen_self_static
17360
17361 # Commands to strip libraries.
17362 old_striplib=$lt_old_striplib
17363 striplib=$lt_striplib
17364
17365
17366 # The linker used to build libraries.
17367 LD=$lt_LD
17368
17369 # How to create reloadable object files.
17370 reload_flag=$lt_reload_flag
17371 reload_cmds=$lt_reload_cmds
17372
17373 # Commands used to build an old-style archive.
17374 old_archive_cmds=$lt_old_archive_cmds
17375
17376 # A language specific compiler.
17377 CC=$lt_compiler
17378
17379 # Is the compiler the GNU compiler?
17380 with_gcc=$GCC
17381
17382 # Compiler flag to turn off builtin functions.
17383 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17384
17385 # Additional compiler flags for building library objects.
17386 pic_flag=$lt_lt_prog_compiler_pic
17387
17388 # How to pass a linker flag through the compiler.
17389 wl=$lt_lt_prog_compiler_wl
17390
17391 # Compiler flag to prevent dynamic linking.
17392 link_static_flag=$lt_lt_prog_compiler_static
17393
17394 # Does compiler simultaneously support -c and -o options?
17395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17396
17397 # Whether or not to add -lc for building shared libraries.
17398 build_libtool_need_lc=$archive_cmds_need_lc
17399
17400 # Whether or not to disallow shared libs when runtime libs are static.
17401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17402
17403 # Compiler flag to allow reflexive dlopens.
17404 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17405
17406 # Compiler flag to generate shared objects directly from archives.
17407 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17408
17409 # Whether the compiler copes with passing no objects directly.
17410 compiler_needs_object=$lt_compiler_needs_object
17411
17412 # Create an old-style archive from a shared archive.
17413 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17414
17415 # Create a temporary old-style archive to link instead of a shared archive.
17416 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17417
17418 # Commands used to build a shared archive.
17419 archive_cmds=$lt_archive_cmds
17420 archive_expsym_cmds=$lt_archive_expsym_cmds
17421
17422 # Commands used to build a loadable module if different from building
17423 # a shared archive.
17424 module_cmds=$lt_module_cmds
17425 module_expsym_cmds=$lt_module_expsym_cmds
17426
17427 # Whether we are building with GNU ld or not.
17428 with_gnu_ld=$lt_with_gnu_ld
17429
17430 # Flag that allows shared libraries with undefined symbols to be built.
17431 allow_undefined_flag=$lt_allow_undefined_flag
17432
17433 # Flag that enforces no undefined symbols.
17434 no_undefined_flag=$lt_no_undefined_flag
17435
17436 # Flag to hardcode \$libdir into a binary during linking.
17437 # This must work even if \$libdir does not exist
17438 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17439
17440 # Whether we need a single "-rpath" flag with a separated argument.
17441 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17442
17443 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17444 # DIR into the resulting binary.
17445 hardcode_direct=$hardcode_direct
17446
17447 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17448 # DIR into the resulting binary and the resulting library dependency is
17449 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17450 # library is relocated.
17451 hardcode_direct_absolute=$hardcode_direct_absolute
17452
17453 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17454 # into the resulting binary.
17455 hardcode_minus_L=$hardcode_minus_L
17456
17457 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17458 # into the resulting binary.
17459 hardcode_shlibpath_var=$hardcode_shlibpath_var
17460
17461 # Set to "yes" if building a shared library automatically hardcodes DIR
17462 # into the library and all subsequent libraries and executables linked
17463 # against it.
17464 hardcode_automatic=$hardcode_automatic
17465
17466 # Set to yes if linker adds runtime paths of dependent libraries
17467 # to runtime path list.
17468 inherit_rpath=$inherit_rpath
17469
17470 # Whether libtool must link a program against all its dependency libraries.
17471 link_all_deplibs=$link_all_deplibs
17472
17473 # Set to "yes" if exported symbols are required.
17474 always_export_symbols=$always_export_symbols
17475
17476 # The commands to list exported symbols.
17477 export_symbols_cmds=$lt_export_symbols_cmds
17478
17479 # Symbols that should not be listed in the preloaded symbols.
17480 exclude_expsyms=$lt_exclude_expsyms
17481
17482 # Symbols that must always be exported.
17483 include_expsyms=$lt_include_expsyms
17484
17485 # Commands necessary for linking programs (against libraries) with templates.
17486 prelink_cmds=$lt_prelink_cmds
17487
17488 # Commands necessary for finishing linking programs.
17489 postlink_cmds=$lt_postlink_cmds
17490
17491 # Specify filename containing input files.
17492 file_list_spec=$lt_file_list_spec
17493
17494 # How to hardcode a shared library path into an executable.
17495 hardcode_action=$hardcode_action
17496
17497 # ### END LIBTOOL CONFIG
17498
17499 _LT_EOF
17500
17501 cat <<'_LT_EOF' >> "$cfgfile"
17502
17503 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17504
17505 # func_munge_path_list VARIABLE PATH
17506 # -----------------------------------
17507 # VARIABLE is name of variable containing _space_ separated list of
17508 # directories to be munged by the contents of PATH, which is string
17509 # having a format:
17510 # "DIR[:DIR]:"
17511 # string "DIR[ DIR]" will be prepended to VARIABLE
17512 # ":DIR[:DIR]"
17513 # string "DIR[ DIR]" will be appended to VARIABLE
17514 # "DIRP[:DIRP]::[DIRA:]DIRA"
17515 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17516 # "DIRA[ DIRA]" will be appended to VARIABLE
17517 # "DIR[:DIR]"
17518 # VARIABLE will be replaced by "DIR[ DIR]"
17519 func_munge_path_list ()
17520 {
17521 case x$2 in
17522 x)
17523 ;;
17524 *:)
17525 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17526 ;;
17527 x:*)
17528 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17529 ;;
17530 *::*)
17531 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17532 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17533 ;;
17534 *)
17535 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17536 ;;
17537 esac
17538 }
17539
17540
17541 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17542 func_cc_basename ()
17543 {
17544 for cc_temp in $*""; do
17545 case $cc_temp in
17546 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17547 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17548 \-*) ;;
17549 *) break;;
17550 esac
17551 done
17552 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17553 }
17554
17555
17556 # ### END FUNCTIONS SHARED WITH CONFIGURE
17557
17558 _LT_EOF
17559
17560 case $host_os in
17561 aix3*)
17562 cat <<\_LT_EOF >> "$cfgfile"
17563 # AIX sometimes has problems with the GCC collect2 program. For some
17564 # reason, if we set the COLLECT_NAMES environment variable, the problems
17565 # vanish in a puff of smoke.
17566 if test set != "${COLLECT_NAMES+set}"; then
17567 COLLECT_NAMES=
17568 export COLLECT_NAMES
17569 fi
17570 _LT_EOF
17571 ;;
17572 esac
17573
17574
17575
17576 ltmain=$ac_aux_dir/ltmain.sh
17577
17578
17579 # We use sed instead of cat because bash on DJGPP gets confused if
17580 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17581 # text mode, it properly converts lines to CR/LF. This bash problem
17582 # is reportedly fixed, but why not run on old versions too?
17583 $SED '$q' "$ltmain" >> "$cfgfile" \
17584 || (rm -f "$cfgfile"; exit 1)
17585
17586 mv -f "$cfgfile" "$ofile" ||
17587 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17588 chmod +x "$ofile"
17589
17590
17591 as_fn_exit 0
17592 _LTEOF
17593 chmod +x "$CONFIG_LT"
17594
17595 # configure is writing to config.log, but config.lt does its own redirection,
17596 # appending to config.log, which fails on DOS, as config.log is still kept
17597 # open by configure. Here we exec the FD to /dev/null, effectively closing
17598 # config.log, so it can be properly (re)opened and appended to by config.lt.
17599 lt_cl_success=:
17600 test yes = "$silent" &&
17601 lt_config_lt_args="$lt_config_lt_args --quiet"
17602 exec 5>/dev/null
17603 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
17604 exec 5>>config.log
17605 $lt_cl_success || as_fn_exit 1
17606
17607 #
17608 #
17609 ac_ext=c
17610 ac_cpp='$CPP $CPPFLAGS'
17611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17614 ac_link="./libtool --mode=link --tag=CC $ac_link"
17615
17616 if test -n "$ac_tool_prefix"; then
17617 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17618 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17620 printf %s "checking for $ac_word... " >&6; }
17621 if test ${ac_cv_prog_PKG_CONFIG+y}
17622 then :
17623 printf %s "(cached) " >&6
17624 else case e in #(
17625 e) if test -n "$PKG_CONFIG"; then
17626 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
17627 else
17628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17629 for as_dir in $PATH
17630 do
17631 IFS=$as_save_IFS
17632 case $as_dir in #(((
17633 '') as_dir=./ ;;
17634 */) ;;
17635 *) as_dir=$as_dir/ ;;
17636 esac
17637 for ac_exec_ext in '' $ac_executable_extensions; do
17638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17639 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17641 break 2
17642 fi
17643 done
17644 done
17645 IFS=$as_save_IFS
17646
17647 fi ;;
17648 esac
17649 fi
17650 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17651 if test -n "$PKG_CONFIG"; then
17652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17653 printf "%s\n" "$PKG_CONFIG" >&6; }
17654 else
17655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17656 printf "%s\n" "no" >&6; }
17657 fi
17658
17659
17660 fi
17661 if test -z "$ac_cv_prog_PKG_CONFIG"; then
17662 ac_ct_PKG_CONFIG=$PKG_CONFIG
17663 # Extract the first word of "pkg-config", so it can be a program name with args.
17664 set dummy pkg-config; ac_word=$2
17665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17666 printf %s "checking for $ac_word... " >&6; }
17667 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
17668 then :
17669 printf %s "(cached) " >&6
17670 else case e in #(
17671 e) if test -n "$ac_ct_PKG_CONFIG"; then
17672 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17673 else
17674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17675 for as_dir in $PATH
17676 do
17677 IFS=$as_save_IFS
17678 case $as_dir in #(((
17679 '') as_dir=./ ;;
17680 */) ;;
17681 *) as_dir=$as_dir/ ;;
17682 esac
17683 for ac_exec_ext in '' $ac_executable_extensions; do
17684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17685 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17687 break 2
17688 fi
17689 done
17690 done
17691 IFS=$as_save_IFS
17692
17693 fi ;;
17694 esac
17695 fi
17696 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17697 if test -n "$ac_ct_PKG_CONFIG"; then
17698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17699 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
17700 else
17701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17702 printf "%s\n" "no" >&6; }
17703 fi
17704
17705 if test "x$ac_ct_PKG_CONFIG" = x; then
17706 PKG_CONFIG="false"
17707 else
17708 case $cross_compiling:$ac_tool_warned in
17709 yes:)
17710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17711 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17712 ac_tool_warned=yes ;;
17713 esac
17714 PKG_CONFIG=$ac_ct_PKG_CONFIG
17715 fi
17716 else
17717 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17718 fi
17719
17720 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
17721 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
17722 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
17723
17724 # Check whether --with-system-kpathsea was given.
17725 if test ${with_system_kpathsea+y}
17726 then :
17727 withval=$with_system_kpathsea;
17728 fi
17729 if test "x$with_system_kpathsea" = xyes; then
17730 if $PKG_CONFIG kpathsea; then
17731 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
17732 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
17733 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
17734 as_fn_error $? "did not find kpathsea" "$LINENO" 5
17735 fi
17736 else
17737 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
17738 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
17739 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
17740 KPATHSEA_RULE='# Rebuild libkpathsea
17741 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
17742 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
17743 ${top_builddir}/../kpathsea/paths.h:
17744 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17745 fi
17746
17747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
17748 printf %s "checking if libkpathsea supports debugging... " >&6; }
17749 if test ${kpse_cv_kpse_debug+y}
17750 then :
17751 printf %s "(cached) " >&6
17752 else case e in #(
17753 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
17754 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
17755
17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757 /* end confdefs.h. */
17758 #include <kpathsea/kpathsea.h>
17759 int
17760 main (void)
17761 {
17762 FILE *f = fopen("f", "r")
17763 ;
17764 return 0;
17765 }
17766 _ACEOF
17767 if ac_fn_c_try_link "$LINENO"
17768 then :
17769 kpse_cv_kpse_debug=yes
17770 else case e in #(
17771 e) kpse_cv_kpse_debug=no ;;
17772 esac
17773 fi
17774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17775 conftest$ac_exeext conftest.$ac_ext
17776 CPPFLAGS=$kpse_save_CPPFLAGS
17777 LIBS=$kpse_save_LIBS
17778 ;;
17779 esac
17780 fi
17781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
17782 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
17783 if test "x$kpse_cv_kpse_debug" != xyes
17784 then :
17785 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
17786 fi
17787
17788
17789 ac_config_headers="$ac_config_headers config_.h"
17790
17791
17792 ac_config_files="$ac_config_files Makefile"
17793
17794
17795 cat >confcache <<\_ACEOF
17796 # This file is a shell script that caches the results of configure
17797 # tests run on this system so they can be shared between configure
17798 # scripts and configure runs, see configure's option --config-cache.
17799 # It is not useful on other systems. If it contains results you don't
17800 # want to keep, you may remove or edit it.
17801 #
17802 # config.status only pays attention to the cache file if you give it
17803 # the --recheck option to rerun configure.
17804 #
17805 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17806 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17807 # following values.
17808
17809 _ACEOF
17810
17811 # The following way of writing the cache mishandles newlines in values,
17812 # but we know of no workaround that is simple, portable, and efficient.
17813 # So, we kill variables containing newlines.
17814 # Ultrix sh set writes to stderr and can't be redirected directly,
17815 # and sets the high bit in the cache file unless we assign to the vars.
17816 (
17817 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17818 eval ac_val=\$$ac_var
17819 case $ac_val in #(
17820 *${as_nl}*)
17821 case $ac_var in #(
17822 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17823 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17824 esac
17825 case $ac_var in #(
17826 _ | IFS | as_nl) ;; #(
17827 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17828 *) { eval $ac_var=; unset $ac_var;} ;;
17829 esac ;;
17830 esac
17831 done
17832
17833 (set) 2>&1 |
17834 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17835 *${as_nl}ac_space=\ *)
17836 # 'set' does not quote correctly, so add quotes: double-quote
17837 # substitution turns \\\\ into \\, and sed turns \\ into \.
17838 sed -n \
17839 "s/'/'\\\\''/g;
17840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17841 ;; #(
17842 *)
17843 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17845 ;;
17846 esac |
17847 sort
17848 ) |
17849 sed '
17850 /^ac_cv_env_/b end
17851 t clear
17852 :clear
17853 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17854 t end
17855 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17856 :end' >>confcache
17857 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17858 if test -w "$cache_file"; then
17859 if test "x$cache_file" != "x/dev/null"; then
17860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17861 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17862 if test ! -f "$cache_file" || test -h "$cache_file"; then
17863 cat confcache >"$cache_file"
17864 else
17865 case $cache_file in #(
17866 */* | ?:*)
17867 mv -f confcache "$cache_file"$$ &&
17868 mv -f "$cache_file"$$ "$cache_file" ;; #(
17869 *)
17870 mv -f confcache "$cache_file" ;;
17871 esac
17872 fi
17873 fi
17874 else
17875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17876 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17877 fi
17878 fi
17879 rm -f confcache
17880
17881 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17882 # Let make expand exec_prefix.
17883 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17884
17885 DEFS=-DHAVE_CONFIG_H
17886
17887 ac_libobjs=
17888 ac_ltlibobjs=
17889 U=
17890 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17891 # 1. Remove the extension, and $U if already installed.
17892 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17893 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17894 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17895 # will be set to the directory where LIBOBJS objects are built.
17896 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17897 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17898 done
17899 LIBOBJS=$ac_libobjs
17900
17901 LTLIBOBJS=$ac_ltlibobjs
17902
17903
17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17905 printf %s "checking that generated files are newer than configure... " >&6; }
17906 if test -n "$am_sleep_pid"; then
17907 # Hide warnings about reused PIDs.
17908 wait $am_sleep_pid 2>/dev/null
17909 fi
17910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17911 printf "%s\n" "done" >&6; }
17912 case $enable_silent_rules in # (((
17913 yes) AM_DEFAULT_VERBOSITY=0;;
17914 no) AM_DEFAULT_VERBOSITY=1;;
17915 esac
17916 if test $am_cv_make_support_nested_variables = yes; then
17917 AM_V='$(V)'
17918 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17919 else
17920 AM_V=$AM_DEFAULT_VERBOSITY
17921 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17922 fi
17923
17924 if test -n "$EXEEXT"; then
17925 am__EXEEXT_TRUE=
17926 am__EXEEXT_FALSE='#'
17927 else
17928 am__EXEEXT_TRUE='#'
17929 am__EXEEXT_FALSE=
17930 fi
17931
17932 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17933 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17935 fi
17936 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17937 as_fn_error $? "conditional \"AMDEP\" was never defined.
17938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17939 fi
17940 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17941 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17943 fi
17944 # Check whether --enable-year2038 was given.
17945 if test ${enable_year2038+y}
17946 then :
17947 enableval=$enable_year2038;
17948 fi
17949
17950
17951
17952 : "${CONFIG_STATUS=./config.status}"
17953 ac_write_fail=0
17954 ac_clean_files_save=$ac_clean_files
17955 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17957 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17958 as_write_fail=0
17959 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17960 #! $SHELL
17961 # Generated by $as_me.
17962 # Run this file to recreate the current configuration.
17963 # Compiler output produced by configure, useful for debugging
17964 # configure, is in config.log if it exists.
17965
17966 debug=false
17967 ac_cs_recheck=false
17968 ac_cs_silent=false
17969
17970 SHELL=\${CONFIG_SHELL-$SHELL}
17971 export SHELL
17972 _ASEOF
17973 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17974 ## -------------------- ##
17975 ## M4sh Initialization. ##
17976 ## -------------------- ##
17977
17978 # Be more Bourne compatible
17979 DUALCASE=1; export DUALCASE # for MKS sh
17980 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17981 then :
17982 emulate sh
17983 NULLCMD=:
17984 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17985 # is contrary to our usage. Disable this feature.
17986 alias -g '${1+"$@"}'='"$@"'
17987 setopt NO_GLOB_SUBST
17988 else case e in #(
17989 e) case `(set -o) 2>/dev/null` in #(
17990 *posix*) :
17991 set -o posix ;; #(
17992 *) :
17993 ;;
17994 esac ;;
17995 esac
17996 fi
17997
17998
17999
18000 # Reset variables that may have inherited troublesome values from
18001 # the environment.
18002
18003 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18004 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18005 # side effect of setting IFS to empty, thus disabling word splitting.)
18006 # Quoting is to prevent editors from complaining about space-tab.
18007 as_nl='
18008 '
18009 export as_nl
18010 IFS=" "" $as_nl"
18011
18012 PS1='$ '
18013 PS2='> '
18014 PS4='+ '
18015
18016 # Ensure predictable behavior from utilities with locale-dependent output.
18017 LC_ALL=C
18018 export LC_ALL
18019 LANGUAGE=C
18020 export LANGUAGE
18021
18022 # We cannot yet rely on "unset" to work, but we need these variables
18023 # to be unset--not just set to an empty or harmless value--now, to
18024 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
18025 # also avoids known problems related to "unset" and subshell syntax
18026 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
18027 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
18028 do eval test \${$as_var+y} \
18029 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18030 done
18031
18032 # Ensure that fds 0, 1, and 2 are open.
18033 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
18034 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
18035 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
18036
18037 # The user is always right.
18038 if ${PATH_SEPARATOR+false} :; then
18039 PATH_SEPARATOR=:
18040 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18041 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18042 PATH_SEPARATOR=';'
18043 }
18044 fi
18045
18046
18047 # Find who we are. Look in the path if we contain no directory separator.
18048 as_myself=
18049 case $0 in #((
18050 *[\\/]* ) as_myself=$0 ;;
18051 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18052 for as_dir in $PATH
18053 do
18054 IFS=$as_save_IFS
18055 case $as_dir in #(((
18056 '') as_dir=./ ;;
18057 */) ;;
18058 *) as_dir=$as_dir/ ;;
18059 esac
18060 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
18061 done
18062 IFS=$as_save_IFS
18063
18064 ;;
18065 esac
18066 # We did not find ourselves, most probably we were run as 'sh COMMAND'
18067 # in which case we are not to be found in the path.
18068 if test "x$as_myself" = x; then
18069 as_myself=$0
18070 fi
18071 if test ! -f "$as_myself"; then
18072 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18073 exit 1
18074 fi
18075
18076
18077
18078 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18079 # ----------------------------------------
18080 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18081 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18082 # script with STATUS, using 1 if that was 0.
18083 as_fn_error ()
18084 {
18085 as_status=$1; test $as_status -eq 0 && as_status=1
18086 if test "$4"; then
18087 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18089 fi
18090 printf "%s\n" "$as_me: error: $2" >&2
18091 as_fn_exit $as_status
18092 } # as_fn_error
18093
18094
18095 # as_fn_set_status STATUS
18096 # -----------------------
18097 # Set $? to STATUS, without forking.
18098 as_fn_set_status ()
18099 {
18100 return $1
18101 } # as_fn_set_status
18102
18103 # as_fn_exit STATUS
18104 # -----------------
18105 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18106 as_fn_exit ()
18107 {
18108 set +e
18109 as_fn_set_status $1
18110 exit $1
18111 } # as_fn_exit
18112
18113 # as_fn_unset VAR
18114 # ---------------
18115 # Portably unset VAR.
18116 as_fn_unset ()
18117 {
18118 { eval $1=; unset $1;}
18119 }
18120 as_unset=as_fn_unset
18121
18122 # as_fn_append VAR VALUE
18123 # ----------------------
18124 # Append the text in VALUE to the end of the definition contained in VAR. Take
18125 # advantage of any shell optimizations that allow amortized linear growth over
18126 # repeated appends, instead of the typical quadratic growth present in naive
18127 # implementations.
18128 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18129 then :
18130 eval 'as_fn_append ()
18131 {
18132 eval $1+=\$2
18133 }'
18134 else case e in #(
18135 e) as_fn_append ()
18136 {
18137 eval $1=\$$1\$2
18138 } ;;
18139 esac
18140 fi # as_fn_append
18141
18142 # as_fn_arith ARG...
18143 # ------------------
18144 # Perform arithmetic evaluation on the ARGs, and store the result in the
18145 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18146 # must be portable across $(()) and expr.
18147 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18148 then :
18149 eval 'as_fn_arith ()
18150 {
18151 as_val=$(( $* ))
18152 }'
18153 else case e in #(
18154 e) as_fn_arith ()
18155 {
18156 as_val=`expr "$@" || test $? -eq 1`
18157 } ;;
18158 esac
18159 fi # as_fn_arith
18160
18161
18162 if expr a : '\(a\)' >/dev/null 2>&1 &&
18163 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18164 as_expr=expr
18165 else
18166 as_expr=false
18167 fi
18168
18169 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18170 as_basename=basename
18171 else
18172 as_basename=false
18173 fi
18174
18175 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18176 as_dirname=dirname
18177 else
18178 as_dirname=false
18179 fi
18180
18181 as_me=`$as_basename -- "$0" ||
18182 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18183 X"$0" : 'X\(//\)$' \| \
18184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18185 printf "%s\n" X/"$0" |
18186 sed '/^.*\/\([^/][^/]*\)\/*$/{
18187 s//\1/
18188 q
18189 }
18190 /^X\/\(\/\/\)$/{
18191 s//\1/
18192 q
18193 }
18194 /^X\/\(\/\).*/{
18195 s//\1/
18196 q
18197 }
18198 s/.*/./; q'`
18199
18200 # Avoid depending upon Character Ranges.
18201 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18202 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18203 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18204 as_cr_digits='0123456789'
18205 as_cr_alnum=$as_cr_Letters$as_cr_digits
18206
18207
18208 # Determine whether it's possible to make 'echo' print without a newline.
18209 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18210 # for compatibility with existing Makefiles.
18211 ECHO_C= ECHO_N= ECHO_T=
18212 case `echo -n x` in #(((((
18213 -n*)
18214 case `echo 'xy\c'` in
18215 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18216 xy) ECHO_C='\c';;
18217 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18218 ECHO_T=' ';;
18219 esac;;
18220 *)
18221 ECHO_N='-n';;
18222 esac
18223
18224 # For backward compatibility with old third-party macros, we provide
18225 # the shell variables $as_echo and $as_echo_n. New code should use
18226 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18227 as_echo='printf %s\n'
18228 as_echo_n='printf %s'
18229
18230 rm -f conf$$ conf$$.exe conf$$.file
18231 if test -d conf$$.dir; then
18232 rm -f conf$$.dir/conf$$.file
18233 else
18234 rm -f conf$$.dir
18235 mkdir conf$$.dir 2>/dev/null
18236 fi
18237 if (echo >conf$$.file) 2>/dev/null; then
18238 if ln -s conf$$.file conf$$ 2>/dev/null; then
18239 as_ln_s='ln -s'
18240 # ... but there are two gotchas:
18241 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
18242 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
18243 # In both cases, we have to default to 'cp -pR'.
18244 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18245 as_ln_s='cp -pR'
18246 elif ln conf$$.file conf$$ 2>/dev/null; then
18247 as_ln_s=ln
18248 else
18249 as_ln_s='cp -pR'
18250 fi
18251 else
18252 as_ln_s='cp -pR'
18253 fi
18254 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18255 rmdir conf$$.dir 2>/dev/null
18256
18257
18258 # as_fn_mkdir_p
18259 # -------------
18260 # Create "$as_dir" as a directory, including parents if necessary.
18261 as_fn_mkdir_p ()
18262 {
18263
18264 case $as_dir in #(
18265 -*) as_dir=./$as_dir;;
18266 esac
18267 test -d "$as_dir" || eval $as_mkdir_p || {
18268 as_dirs=
18269 while :; do
18270 case $as_dir in #(
18271 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18272 *) as_qdir=$as_dir;;
18273 esac
18274 as_dirs="'$as_qdir' $as_dirs"
18275 as_dir=`$as_dirname -- "$as_dir" ||
18276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18277 X"$as_dir" : 'X\(//\)[^/]' \| \
18278 X"$as_dir" : 'X\(//\)$' \| \
18279 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18280 printf "%s\n" X"$as_dir" |
18281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18282 s//\1/
18283 q
18284 }
18285 /^X\(\/\/\)[^/].*/{
18286 s//\1/
18287 q
18288 }
18289 /^X\(\/\/\)$/{
18290 s//\1/
18291 q
18292 }
18293 /^X\(\/\).*/{
18294 s//\1/
18295 q
18296 }
18297 s/.*/./; q'`
18298 test -d "$as_dir" && break
18299 done
18300 test -z "$as_dirs" || eval "mkdir $as_dirs"
18301 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18302
18303
18304 } # as_fn_mkdir_p
18305 if mkdir -p . 2>/dev/null; then
18306 as_mkdir_p='mkdir -p "$as_dir"'
18307 else
18308 test -d ./-p && rmdir ./-p
18309 as_mkdir_p=false
18310 fi
18311
18312
18313 # as_fn_executable_p FILE
18314 # -----------------------
18315 # Test if FILE is an executable regular file.
18316 as_fn_executable_p ()
18317 {
18318 test -f "$1" && test -x "$1"
18319 } # as_fn_executable_p
18320 as_test_x='test -x'
18321 as_executable_p=as_fn_executable_p
18322
18323 # Sed expression to map a string onto a valid CPP name.
18324 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18325 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
18326
18327 # Sed expression to map a string onto a valid variable name.
18328 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18329 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
18330
18331
18332 exec 6>&1
18333 ## ----------------------------------- ##
18334 ## Main body of $CONFIG_STATUS script. ##
18335 ## ----------------------------------- ##
18336 _ASEOF
18337 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18338
18339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18340 # Save the log message, to keep $0 and so on meaningful, and to
18341 # report actual input values of CONFIG_FILES etc. instead of their
18342 # values after options handling.
18343 ac_log="
18344 This file was extended by Gregorio (TeX Live) $as_me 6.1.0, which was
18345 generated by GNU Autoconf 2.72. Invocation command line was
18346
18347 CONFIG_FILES = $CONFIG_FILES
18348 CONFIG_HEADERS = $CONFIG_HEADERS
18349 CONFIG_LINKS = $CONFIG_LINKS
18350 CONFIG_COMMANDS = $CONFIG_COMMANDS
18351 $ $0 $@
18352
18353 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18354 "
18355
18356 _ACEOF
18357
18358 case $ac_config_files in *"
18359 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18360 esac
18361
18362 case $ac_config_headers in *"
18363 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18364 esac
18365
18366
18367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18368 # Files that config.status was made for.
18369 config_files="$ac_config_files"
18370 config_headers="$ac_config_headers"
18371 config_commands="$ac_config_commands"
18372
18373 _ACEOF
18374
18375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18376 ac_cs_usage="\
18377 '$as_me' instantiates files and other configuration actions
18378 from templates according to the current configuration. Unless the files
18379 and actions are specified as TAGs, all are instantiated by default.
18380
18381 Usage: $0 [OPTION]... [TAG]...
18382
18383 -h, --help print this help, then exit
18384 -V, --version print version number and configuration settings, then exit
18385 --config print configuration, then exit
18386 -q, --quiet, --silent
18387 do not print progress messages
18388 -d, --debug don't remove temporary files
18389 --recheck update $as_me by reconfiguring in the same conditions
18390 --file=FILE[:TEMPLATE]
18391 instantiate the configuration file FILE
18392 --header=FILE[:TEMPLATE]
18393 instantiate the configuration header FILE
18394
18395 Configuration files:
18396 $config_files
18397
18398 Configuration headers:
18399 $config_headers
18400
18401 Configuration commands:
18402 $config_commands
18403
18404 Report bugs to <[email protected]>.
18405 Gregorio (TeX Live) home page: <http://gregorio-project.github.io/>."
18406
18407 _ACEOF
18408 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18409 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18411 ac_cs_config='$ac_cs_config_escaped'
18412 ac_cs_version="\\
18413 Gregorio (TeX Live) config.status 6.1.0
18414 configured by $0, generated by GNU Autoconf 2.72,
18415 with options \\"\$ac_cs_config\\"
18416
18417 Copyright (C) 2023 Free Software Foundation, Inc.
18418 This config.status script is free software; the Free Software Foundation
18419 gives unlimited permission to copy, distribute and modify it."
18420
18421 ac_pwd='$ac_pwd'
18422 srcdir='$srcdir'
18423 INSTALL='$INSTALL'
18424 MKDIR_P='$MKDIR_P'
18425 AWK='$AWK'
18426 test -n "\$AWK" || AWK=awk
18427 _ACEOF
18428
18429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18430 # The default lists apply if the user does not specify any file.
18431 ac_need_defaults=:
18432 while test $# != 0
18433 do
18434 case $1 in
18435 --*=?*)
18436 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18437 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18438 ac_shift=:
18439 ;;
18440 --*=)
18441 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18442 ac_optarg=
18443 ac_shift=:
18444 ;;
18445 *)
18446 ac_option=$1
18447 ac_optarg=$2
18448 ac_shift=shift
18449 ;;
18450 esac
18451
18452 case $ac_option in
18453 # Handling of the options.
18454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18455 ac_cs_recheck=: ;;
18456 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18457 printf "%s\n" "$ac_cs_version"; exit ;;
18458 --config | --confi | --conf | --con | --co | --c )
18459 printf "%s\n" "$ac_cs_config"; exit ;;
18460 --debug | --debu | --deb | --de | --d | -d )
18461 debug=: ;;
18462 --file | --fil | --fi | --f )
18463 $ac_shift
18464 case $ac_optarg in
18465 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18466 '') as_fn_error $? "missing file argument" ;;
18467 esac
18468 as_fn_append CONFIG_FILES " '$ac_optarg'"
18469 ac_need_defaults=false;;
18470 --header | --heade | --head | --hea )
18471 $ac_shift
18472 case $ac_optarg in
18473 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18474 esac
18475 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18476 ac_need_defaults=false;;
18477 --he | --h)
18478 # Conflict between --help and --header
18479 as_fn_error $? "ambiguous option: '$1'
18480 Try '$0 --help' for more information.";;
18481 --help | --hel | -h )
18482 printf "%s\n" "$ac_cs_usage"; exit ;;
18483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18484 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18485 ac_cs_silent=: ;;
18486
18487 # This is an error.
18488 -*) as_fn_error $? "unrecognized option: '$1'
18489 Try '$0 --help' for more information." ;;
18490
18491 *) as_fn_append ac_config_targets " $1"
18492 ac_need_defaults=false ;;
18493
18494 esac
18495 shift
18496 done
18497
18498 ac_configure_extra_args=
18499
18500 if $ac_cs_silent; then
18501 exec 6>/dev/null
18502 ac_configure_extra_args="$ac_configure_extra_args --silent"
18503 fi
18504
18505 _ACEOF
18506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18507 if \$ac_cs_recheck; then
18508 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18509 shift
18510 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18511 CONFIG_SHELL='$SHELL'
18512 export CONFIG_SHELL
18513 exec "\$@"
18514 fi
18515
18516 _ACEOF
18517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18518 exec 5>>config.log
18519 {
18520 echo
18521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18522 ## Running $as_me. ##
18523 _ASBOX
18524 printf "%s\n" "$ac_log"
18525 } >&5
18526
18527 _ACEOF
18528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18529 #
18530 # INIT-COMMANDS
18531 #
18532 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18533
18534
18535 # The HP-UX ksh and POSIX shell print the target directory to stdout
18536 # if CDPATH is set.
18537 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18538
18539 sed_quote_subst='$sed_quote_subst'
18540 double_quote_subst='$double_quote_subst'
18541 delay_variable_subst='$delay_variable_subst'
18542 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18543 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18544 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18545 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18546 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18547 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18548 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18549 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18550 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18551 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18552 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18553 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18554 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18555 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18556 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18557 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18558 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18559 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18560 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18561 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18562 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18563 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18564 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18565 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18566 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18567 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18568 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18569 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18570 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18571 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18572 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18573 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18574 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18575 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18576 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18577 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18578 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18579 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18580 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18581 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18582 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18583 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18584 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18585 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18586 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18587 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18588 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18589 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18590 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18591 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18592 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18593 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18594 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18595 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18596 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18597 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18598 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18599 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18600 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18601 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18602 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18603 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"`'
18604 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18605 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18606 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18607 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18608 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18609 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18610 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18611 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18612 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18613 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18614 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18615 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18616 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18617 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18618 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18619 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18620 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18621 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18622 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18623 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18624 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18625 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18626 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18627 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18628 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18629 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18630 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18631 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18632 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18633 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18634 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18635 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18636 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18637 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18638 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18639 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18640 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18641 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18642 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18643 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18644 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18645 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18646 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18647 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18648 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18649 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18650 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18651 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18652 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18653 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18654 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18655 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18656 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18657 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18658 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18659 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18660 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18661 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18662 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18663 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18664 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18665 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18666 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18667 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18668 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18669 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18670 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18671 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18672 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18673 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18674 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18675 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18676 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18677 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18678 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18679 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18680
18681 LTCC='$LTCC'
18682 LTCFLAGS='$LTCFLAGS'
18683 compiler='$compiler_DEFAULT'
18684
18685 # A function that is used when there is no print builtin or printf.
18686 func_fallback_echo ()
18687 {
18688 eval 'cat <<_LTECHO_EOF
18689 \$1
18690 _LTECHO_EOF'
18691 }
18692
18693 # Quote evaled strings.
18694 for var in AS \
18695 DLLTOOL \
18696 OBJDUMP \
18697 SHELL \
18698 ECHO \
18699 PATH_SEPARATOR \
18700 SED \
18701 GREP \
18702 EGREP \
18703 FGREP \
18704 LD \
18705 NM \
18706 LN_S \
18707 lt_SP2NL \
18708 lt_NL2SP \
18709 reload_flag \
18710 FILECMD \
18711 deplibs_check_method \
18712 file_magic_cmd \
18713 file_magic_glob \
18714 want_nocaseglob \
18715 sharedlib_from_linklib_cmd \
18716 AR \
18717 archiver_list_spec \
18718 STRIP \
18719 RANLIB \
18720 CC \
18721 CFLAGS \
18722 compiler \
18723 lt_cv_sys_global_symbol_pipe \
18724 lt_cv_sys_global_symbol_to_cdecl \
18725 lt_cv_sys_global_symbol_to_import \
18726 lt_cv_sys_global_symbol_to_c_name_address \
18727 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18728 lt_cv_nm_interface \
18729 nm_file_list_spec \
18730 lt_cv_truncate_bin \
18731 lt_prog_compiler_no_builtin_flag \
18732 lt_prog_compiler_pic \
18733 lt_prog_compiler_wl \
18734 lt_prog_compiler_static \
18735 lt_cv_prog_compiler_c_o \
18736 need_locks \
18737 MANIFEST_TOOL \
18738 DSYMUTIL \
18739 NMEDIT \
18740 LIPO \
18741 OTOOL \
18742 OTOOL64 \
18743 shrext_cmds \
18744 export_dynamic_flag_spec \
18745 whole_archive_flag_spec \
18746 compiler_needs_object \
18747 with_gnu_ld \
18748 allow_undefined_flag \
18749 no_undefined_flag \
18750 hardcode_libdir_flag_spec \
18751 hardcode_libdir_separator \
18752 exclude_expsyms \
18753 include_expsyms \
18754 file_list_spec \
18755 variables_saved_for_relink \
18756 libname_spec \
18757 library_names_spec \
18758 soname_spec \
18759 install_override_mode \
18760 finish_eval \
18761 old_striplib \
18762 striplib; do
18763 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18764 *[\\\\\\\`\\"\\\$]*)
18765 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18766 ;;
18767 *)
18768 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18769 ;;
18770 esac
18771 done
18772
18773 # Double-quote double-evaled strings.
18774 for var in reload_cmds \
18775 old_postinstall_cmds \
18776 old_postuninstall_cmds \
18777 old_archive_cmds \
18778 extract_expsyms_cmds \
18779 old_archive_from_new_cmds \
18780 old_archive_from_expsyms_cmds \
18781 archive_cmds \
18782 archive_expsym_cmds \
18783 module_cmds \
18784 module_expsym_cmds \
18785 export_symbols_cmds \
18786 prelink_cmds \
18787 postlink_cmds \
18788 postinstall_cmds \
18789 postuninstall_cmds \
18790 finish_cmds \
18791 sys_lib_search_path_spec \
18792 configure_time_dlsearch_path \
18793 configure_time_lt_sys_library_path; do
18794 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18795 *[\\\\\\\`\\"\\\$]*)
18796 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18797 ;;
18798 *)
18799 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18800 ;;
18801 esac
18802 done
18803
18804 ac_aux_dir='$ac_aux_dir'
18805
18806 # See if we are running on zsh, and set the options that allow our
18807 # commands through without removal of \ escapes INIT.
18808 if test -n "\${ZSH_VERSION+set}"; then
18809 setopt NO_GLOB_SUBST
18810 fi
18811
18812
18813 PACKAGE='$PACKAGE'
18814 VERSION='$VERSION'
18815 RM='$RM'
18816 ofile='$ofile'
18817
18818 ac_aux_dir='$ac_aux_dir'
18819
18820
18821
18822 _ACEOF
18823
18824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18825
18826 # Handling of arguments.
18827 for ac_config_target in $ac_config_targets
18828 do
18829 case $ac_config_target in
18830 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18831 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18832 "config_.h") CONFIG_HEADERS="$CONFIG_HEADERS config_.h" ;;
18833 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18834
18835 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18836 esac
18837 done
18838
18839
18840 # If the user did not use the arguments to specify the items to instantiate,
18841 # then the envvar interface is used. Set only those that are not.
18842 # We use the long form for the default assignment because of an extremely
18843 # bizarre bug on SunOS 4.1.3.
18844 if $ac_need_defaults; then
18845 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18846 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18847 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18848 fi
18849
18850 # Have a temporary directory for convenience. Make it in the build tree
18851 # simply because there is no reason against having it here, and in addition,
18852 # creating and moving files from /tmp can sometimes cause problems.
18853 # Hook for its removal unless debugging.
18854 # Note that there is a small window in which the directory will not be cleaned:
18855 # after its creation but before its name has been assigned to '$tmp'.
18856 $debug ||
18857 {
18858 tmp= ac_tmp=
18859 trap 'exit_status=$?
18860 : "${ac_tmp:=$tmp}"
18861 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18862 ' 0
18863 trap 'as_fn_exit 1' 1 2 13 15
18864 }
18865 # Create a (secure) tmp directory for tmp files.
18866
18867 {
18868 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18869 test -d "$tmp"
18870 } ||
18871 {
18872 tmp=./conf$$-$RANDOM
18873 (umask 077 && mkdir "$tmp")
18874 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18875 ac_tmp=$tmp
18876
18877 # Set up the scripts for CONFIG_FILES section.
18878 # No need to generate them if there are no CONFIG_FILES.
18879 # This happens for instance with './config.status config.h'.
18880 if test -n "$CONFIG_FILES"; then
18881
18882
18883 ac_cr=`echo X | tr X '\015'`
18884 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18885 # But we know of no other shell where ac_cr would be empty at this
18886 # point, so we can use a bashism as a fallback.
18887 if test "x$ac_cr" = x; then
18888 eval ac_cr=\$\'\\r\'
18889 fi
18890 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18891 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18892 ac_cs_awk_cr='\\r'
18893 else
18894 ac_cs_awk_cr=$ac_cr
18895 fi
18896
18897 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18898 _ACEOF
18899
18900
18901 {
18902 echo "cat >conf$$subs.awk <<_ACEOF" &&
18903 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18904 echo "_ACEOF"
18905 } >conf$$subs.sh ||
18906 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18907 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18908 ac_delim='%!_!# '
18909 for ac_last_try in false false false false false :; do
18910 . ./conf$$subs.sh ||
18911 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18912
18913 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18914 if test $ac_delim_n = $ac_delim_num; then
18915 break
18916 elif $ac_last_try; then
18917 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18918 else
18919 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18920 fi
18921 done
18922 rm -f conf$$subs.sh
18923
18924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18925 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18926 _ACEOF
18927 sed -n '
18928 h
18929 s/^/S["/; s/!.*/"]=/
18930 p
18931 g
18932 s/^[^!]*!//
18933 :repl
18934 t repl
18935 s/'"$ac_delim"'$//
18936 t delim
18937 :nl
18938 h
18939 s/\(.\{148\}\)..*/\1/
18940 t more1
18941 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18942 p
18943 n
18944 b repl
18945 :more1
18946 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18947 p
18948 g
18949 s/.\{148\}//
18950 t nl
18951 :delim
18952 h
18953 s/\(.\{148\}\)..*/\1/
18954 t more2
18955 s/["\\]/\\&/g; s/^/"/; s/$/"/
18956 p
18957 b
18958 :more2
18959 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18960 p
18961 g
18962 s/.\{148\}//
18963 t delim
18964 ' <conf$$subs.awk | sed '
18965 /^[^""]/{
18966 N
18967 s/\n//
18968 }
18969 ' >>$CONFIG_STATUS || ac_write_fail=1
18970 rm -f conf$$subs.awk
18971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18972 _ACAWK
18973 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18974 for (key in S) S_is_set[key] = 1
18975 FS = ""
18976
18977 }
18978 {
18979 line = $ 0
18980 nfields = split(line, field, "@")
18981 substed = 0
18982 len = length(field[1])
18983 for (i = 2; i < nfields; i++) {
18984 key = field[i]
18985 keylen = length(key)
18986 if (S_is_set[key]) {
18987 value = S[key]
18988 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18989 len += length(value) + length(field[++i])
18990 substed = 1
18991 } else
18992 len += 1 + keylen
18993 }
18994
18995 print line
18996 }
18997
18998 _ACAWK
18999 _ACEOF
19000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19001 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19002 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19003 else
19004 cat
19005 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19006 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19007 _ACEOF
19008
19009 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19010 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19011 # trailing colons and then remove the whole line if VPATH becomes empty
19012 # (actually we leave an empty line to preserve line numbers).
19013 if test "x$srcdir" = x.; then
19014 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19015 h
19016 s///
19017 s/^/:/
19018 s/[ ]*$/:/
19019 s/:\$(srcdir):/:/g
19020 s/:\${srcdir}:/:/g
19021 s/:@srcdir@:/:/g
19022 s/^:*//
19023 s/:*$//
19024 x
19025 s/\(=[ ]*\).*/\1/
19026 G
19027 s/\n//
19028 s/^[^=]*=[ ]*$//
19029 }'
19030 fi
19031
19032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19033 fi # test -n "$CONFIG_FILES"
19034
19035 # Set up the scripts for CONFIG_HEADERS section.
19036 # No need to generate them if there are no CONFIG_HEADERS.
19037 # This happens for instance with './config.status Makefile'.
19038 if test -n "$CONFIG_HEADERS"; then
19039 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19040 BEGIN {
19041 _ACEOF
19042
19043 # Transform confdefs.h into an awk script 'defines.awk', embedded as
19044 # here-document in config.status, that substitutes the proper values into
19045 # config.h.in to produce config.h.
19046
19047 # Create a delimiter string that does not exist in confdefs.h, to ease
19048 # handling of long lines.
19049 ac_delim='%!_!# '
19050 for ac_last_try in false false :; do
19051 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19052 if test -z "$ac_tt"; then
19053 break
19054 elif $ac_last_try; then
19055 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19056 else
19057 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19058 fi
19059 done
19060
19061 # For the awk script, D is an array of macro values keyed by name,
19062 # likewise P contains macro parameters if any. Preserve backslash
19063 # newline sequences.
19064
19065 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19066 sed -n '
19067 s/.\{148\}/&'"$ac_delim"'/g
19068 t rset
19069 :rset
19070 s/^[ ]*#[ ]*define[ ][ ]*/ /
19071 t def
19072 d
19073 :def
19074 s/\\$//
19075 t bsnl
19076 s/["\\]/\\&/g
19077 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19078 D["\1"]=" \3"/p
19079 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19080 d
19081 :bsnl
19082 s/["\\]/\\&/g
19083 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19084 D["\1"]=" \3\\\\\\n"\\/p
19085 t cont
19086 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19087 t cont
19088 d
19089 :cont
19090 n
19091 s/.\{148\}/&'"$ac_delim"'/g
19092 t clear
19093 :clear
19094 s/\\$//
19095 t bsnlc
19096 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19097 d
19098 :bsnlc
19099 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19100 b cont
19101 ' <confdefs.h | sed '
19102 s/'"$ac_delim"'/"\\\
19103 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19104
19105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19106 for (key in D) D_is_set[key] = 1
19107 FS = ""
19108 }
19109 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19110 line = \$ 0
19111 split(line, arg, " ")
19112 if (arg[1] == "#") {
19113 defundef = arg[2]
19114 mac1 = arg[3]
19115 } else {
19116 defundef = substr(arg[1], 2)
19117 mac1 = arg[2]
19118 }
19119 split(mac1, mac2, "(") #)
19120 macro = mac2[1]
19121 prefix = substr(line, 1, index(line, defundef) - 1)
19122 if (D_is_set[macro]) {
19123 # Preserve the white space surrounding the "#".
19124 print prefix "define", macro P[macro] D[macro]
19125 next
19126 } else {
19127 # Replace #undef with comments. This is necessary, for example,
19128 # in the case of _POSIX_SOURCE, which is predefined and required
19129 # on some systems where configure will not decide to define it.
19130 if (defundef == "undef") {
19131 print "/*", prefix defundef, macro, "*/"
19132 next
19133 }
19134 }
19135 }
19136 { print }
19137 _ACAWK
19138 _ACEOF
19139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19140 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19141 fi # test -n "$CONFIG_HEADERS"
19142
19143
19144 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19145 shift
19146 for ac_tag
19147 do
19148 case $ac_tag in
19149 :[FHLC]) ac_mode=$ac_tag; continue;;
19150 esac
19151 case $ac_mode$ac_tag in
19152 :[FHL]*:*);;
19153 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
19154 :[FH]-) ac_tag=-:-;;
19155 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19156 esac
19157 ac_save_IFS=$IFS
19158 IFS=:
19159 set x $ac_tag
19160 IFS=$ac_save_IFS
19161 shift
19162 ac_file=$1
19163 shift
19164
19165 case $ac_mode in
19166 :L) ac_source=$1;;
19167 :[FH])
19168 ac_file_inputs=
19169 for ac_f
19170 do
19171 case $ac_f in
19172 -) ac_f="$ac_tmp/stdin";;
19173 *) # Look for the file first in the build tree, then in the source tree
19174 # (if the path is not absolute). The absolute path cannot be DOS-style,
19175 # because $ac_f cannot contain ':'.
19176 test -f "$ac_f" ||
19177 case $ac_f in
19178 [\\/$]*) false;;
19179 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19180 esac ||
19181 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
19182 esac
19183 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19184 as_fn_append ac_file_inputs " '$ac_f'"
19185 done
19186
19187 # Let's still pretend it is 'configure' which instantiates (i.e., don't
19188 # use $as_me), people would be surprised to read:
19189 # /* config.h. Generated by config.status. */
19190 configure_input='Generated from '`
19191 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19192 `' by configure.'
19193 if test x"$ac_file" != x-; then
19194 configure_input="$ac_file. $configure_input"
19195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19196 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19197 fi
19198 # Neutralize special characters interpreted by sed in replacement strings.
19199 case $configure_input in #(
19200 *\&* | *\|* | *\\* )
19201 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19202 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19203 *) ac_sed_conf_input=$configure_input;;
19204 esac
19205
19206 case $ac_tag in
19207 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19208 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19209 esac
19210 ;;
19211 esac
19212
19213 ac_dir=`$as_dirname -- "$ac_file" ||
19214 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19215 X"$ac_file" : 'X\(//\)[^/]' \| \
19216 X"$ac_file" : 'X\(//\)$' \| \
19217 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19218 printf "%s\n" X"$ac_file" |
19219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19220 s//\1/
19221 q
19222 }
19223 /^X\(\/\/\)[^/].*/{
19224 s//\1/
19225 q
19226 }
19227 /^X\(\/\/\)$/{
19228 s//\1/
19229 q
19230 }
19231 /^X\(\/\).*/{
19232 s//\1/
19233 q
19234 }
19235 s/.*/./; q'`
19236 as_dir="$ac_dir"; as_fn_mkdir_p
19237 ac_builddir=.
19238
19239 case "$ac_dir" in
19240 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19241 *)
19242 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19243 # A ".." for each directory in $ac_dir_suffix.
19244 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19245 case $ac_top_builddir_sub in
19246 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19247 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19248 esac ;;
19249 esac
19250 ac_abs_top_builddir=$ac_pwd
19251 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19252 # for backward compatibility:
19253 ac_top_builddir=$ac_top_build_prefix
19254
19255 case $srcdir in
19256 .) # We are building in place.
19257 ac_srcdir=.
19258 ac_top_srcdir=$ac_top_builddir_sub
19259 ac_abs_top_srcdir=$ac_pwd ;;
19260 [\\/]* | ?:[\\/]* ) # Absolute name.
19261 ac_srcdir=$srcdir$ac_dir_suffix;
19262 ac_top_srcdir=$srcdir
19263 ac_abs_top_srcdir=$srcdir ;;
19264 *) # Relative name.
19265 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19266 ac_top_srcdir=$ac_top_build_prefix$srcdir
19267 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19268 esac
19269 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19270
19271
19272 case $ac_mode in
19273 :F)
19274 #
19275 # CONFIG_FILE
19276 #
19277
19278 case $INSTALL in
19279 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19280 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19281 esac
19282 ac_MKDIR_P=$MKDIR_P
19283 case $MKDIR_P in
19284 [\\/$]* | ?:[\\/]* ) ;;
19285 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19286 esac
19287 _ACEOF
19288
19289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19290 # If the template does not know about datarootdir, expand it.
19291 # FIXME: This hack should be removed a few years after 2.60.
19292 ac_datarootdir_hack=; ac_datarootdir_seen=
19293 ac_sed_dataroot='
19294 /datarootdir/ {
19295 p
19296 q
19297 }
19298 /@datadir@/p
19299 /@docdir@/p
19300 /@infodir@/p
19301 /@localedir@/p
19302 /@mandir@/p'
19303 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19304 *datarootdir*) ac_datarootdir_seen=yes;;
19305 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19307 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19308 _ACEOF
19309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19310 ac_datarootdir_hack='
19311 s&@datadir@&$datadir&g
19312 s&@docdir@&$docdir&g
19313 s&@infodir@&$infodir&g
19314 s&@localedir@&$localedir&g
19315 s&@mandir@&$mandir&g
19316 s&\\\${datarootdir}&$datarootdir&g' ;;
19317 esac
19318 _ACEOF
19319
19320 # Neutralize VPATH when '$srcdir' = '.'.
19321 # Shell code in configure.ac might set extrasub.
19322 # FIXME: do we really want to maintain this feature?
19323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19324 ac_sed_extra="$ac_vpsub
19325 $extrasub
19326 _ACEOF
19327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19328 :t
19329 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19330 s|@configure_input@|$ac_sed_conf_input|;t t
19331 s&@top_builddir@&$ac_top_builddir_sub&;t t
19332 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19333 s&@srcdir@&$ac_srcdir&;t t
19334 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19335 s&@top_srcdir@&$ac_top_srcdir&;t t
19336 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19337 s&@builddir@&$ac_builddir&;t t
19338 s&@abs_builddir@&$ac_abs_builddir&;t t
19339 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19340 s&@INSTALL@&$ac_INSTALL&;t t
19341 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19342 $ac_datarootdir_hack
19343 "
19344 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19345 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19346
19347 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19348 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19349 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19350 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19352 which seems to be undefined. Please make sure it is defined" >&5
19353 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19354 which seems to be undefined. Please make sure it is defined" >&2;}
19355
19356 rm -f "$ac_tmp/stdin"
19357 case $ac_file in
19358 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19359 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19360 esac \
19361 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19362 ;;
19363 :H)
19364 #
19365 # CONFIG_HEADER
19366 #
19367 if test x"$ac_file" != x-; then
19368 {
19369 printf "%s\n" "/* $configure_input */" >&1 \
19370 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19371 } >"$ac_tmp/config.h" \
19372 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19373 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19375 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19376 else
19377 rm -f "$ac_file"
19378 mv "$ac_tmp/config.h" "$ac_file" \
19379 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19380 fi
19381 else
19382 printf "%s\n" "/* $configure_input */" >&1 \
19383 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19384 || as_fn_error $? "could not create -" "$LINENO" 5
19385 fi
19386 # Compute "$ac_file"'s index in $config_headers.
19387 _am_arg="$ac_file"
19388 _am_stamp_count=1
19389 for _am_header in $config_headers :; do
19390 case $_am_header in
19391 $_am_arg | $_am_arg:* )
19392 break ;;
19393 * )
19394 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19395 esac
19396 done
19397 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19398 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19399 X"$_am_arg" : 'X\(//\)[^/]' \| \
19400 X"$_am_arg" : 'X\(//\)$' \| \
19401 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19402 printf "%s\n" X"$_am_arg" |
19403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19404 s//\1/
19405 q
19406 }
19407 /^X\(\/\/\)[^/].*/{
19408 s//\1/
19409 q
19410 }
19411 /^X\(\/\/\)$/{
19412 s//\1/
19413 q
19414 }
19415 /^X\(\/\).*/{
19416 s//\1/
19417 q
19418 }
19419 s/.*/./; q'`/stamp-h$_am_stamp_count
19420 ;;
19421
19422 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19423 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19424 ;;
19425 esac
19426
19427
19428 case $ac_file$ac_mode in
19429 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19430 # Older Autoconf quotes --file arguments for eval, but not when files
19431 # are listed without --file. Let's play safe and only enable the eval
19432 # if we detect the quoting.
19433 # TODO: see whether this extra hack can be removed once we start
19434 # requiring Autoconf 2.70 or later.
19435 case $CONFIG_FILES in #(
19436 *\'*) :
19437 eval set x "$CONFIG_FILES" ;; #(
19438 *) :
19439 set x $CONFIG_FILES ;; #(
19440 *) :
19441 ;;
19442 esac
19443 shift
19444 # Used to flag and report bootstrapping failures.
19445 am_rc=0
19446 for am_mf
19447 do
19448 # Strip MF so we end up with the name of the file.
19449 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19450 # Check whether this is an Automake generated Makefile which includes
19451 # dependency-tracking related rules and includes.
19452 # Grep'ing the whole file directly is not great: AIX grep has a line
19453 # limit of 2048, but all sed's we know have understand at least 4000.
19454 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19455 || continue
19456 am_dirpart=`$as_dirname -- "$am_mf" ||
19457 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19458 X"$am_mf" : 'X\(//\)[^/]' \| \
19459 X"$am_mf" : 'X\(//\)$' \| \
19460 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19461 printf "%s\n" X"$am_mf" |
19462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19463 s//\1/
19464 q
19465 }
19466 /^X\(\/\/\)[^/].*/{
19467 s//\1/
19468 q
19469 }
19470 /^X\(\/\/\)$/{
19471 s//\1/
19472 q
19473 }
19474 /^X\(\/\).*/{
19475 s//\1/
19476 q
19477 }
19478 s/.*/./; q'`
19479 am_filepart=`$as_basename -- "$am_mf" ||
19480 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19481 X"$am_mf" : 'X\(//\)$' \| \
19482 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19483 printf "%s\n" X/"$am_mf" |
19484 sed '/^.*\/\([^/][^/]*\)\/*$/{
19485 s//\1/
19486 q
19487 }
19488 /^X\/\(\/\/\)$/{
19489 s//\1/
19490 q
19491 }
19492 /^X\/\(\/\).*/{
19493 s//\1/
19494 q
19495 }
19496 s/.*/./; q'`
19497 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19498 && sed -e '/# am--include-marker/d' "$am_filepart" \
19499 | $MAKE -f - am--depfiles" >&5
19500 (cd "$am_dirpart" \
19501 && sed -e '/# am--include-marker/d' "$am_filepart" \
19502 | $MAKE -f - am--depfiles) >&5 2>&5
19503 ac_status=$?
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } || am_rc=$?
19506 done
19507 if test $am_rc -ne 0; then
19508 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19509 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19510 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19511 for automatic dependency tracking. If GNU make was not used, consider
19512 re-running the configure script with MAKE=\"gmake\" (or whatever is
19513 necessary). You can also try re-running configure with the
19514 '--disable-dependency-tracking' option to at least be able to build
19515 the package (albeit without support for automatic dependency tracking).
19516 See 'config.log' for more details" "$LINENO" 5; }
19517 fi
19518 { am_dirpart=; unset am_dirpart;}
19519 { am_filepart=; unset am_filepart;}
19520 { am_mf=; unset am_mf;}
19521 { am_rc=; unset am_rc;}
19522 rm -f conftest-deps.mk
19523 }
19524 ;;
19525 "libtool":C)
19526
19527 # See if we are running on zsh, and set the options that allow our
19528 # commands through without removal of \ escapes.
19529 if test -n "${ZSH_VERSION+set}"; then
19530 setopt NO_GLOB_SUBST
19531 fi
19532
19533 cfgfile=${ofile}T
19534 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19535 $RM "$cfgfile"
19536
19537 cat <<_LT_EOF >> "$cfgfile"
19538 #! $SHELL
19539 # Generated automatically by $as_me ($PACKAGE) $VERSION
19540 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19541
19542 # Provide generalized library-building support services.
19543 # Written by Gordon Matzigkeit, 1996
19544
19545 # Copyright (C) 2024 Free Software Foundation, Inc.
19546 # This is free software; see the source for copying conditions. There is NO
19547 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19548
19549 # GNU Libtool is free software; you can redistribute it and/or modify
19550 # it under the terms of the GNU General Public License as published by
19551 # the Free Software Foundation; either version 2 of the License, or
19552 # (at your option) any later version.
19553 #
19554 # As a special exception to the GNU General Public License, if you
19555 # distribute this file as part of a program or library that is built
19556 # using GNU Libtool, you may include this file under the same
19557 # distribution terms that you use for the rest of that program.
19558 #
19559 # GNU Libtool is distributed in the hope that it will be useful, but
19560 # WITHOUT ANY WARRANTY; without even the implied warranty of
19561 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19562 # GNU General Public License for more details.
19563 #
19564 # You should have received a copy of the GNU General Public License
19565 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19566
19567
19568 # The names of the tagged configurations supported by this script.
19569 available_tags=''
19570
19571 # Configured defaults for sys_lib_dlsearch_path munging.
19572 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19573
19574 # ### BEGIN LIBTOOL CONFIG
19575
19576 # Which release of libtool.m4 was used?
19577 macro_version=$macro_version
19578 macro_revision=$macro_revision
19579
19580 # Assembler program.
19581 AS=$lt_AS
19582
19583 # DLL creation program.
19584 DLLTOOL=$lt_DLLTOOL
19585
19586 # Object dumper program.
19587 OBJDUMP=$lt_OBJDUMP
19588
19589 # Whether or not to build shared libraries.
19590 build_libtool_libs=$enable_shared
19591
19592 # Whether or not to build static libraries.
19593 build_old_libs=$enable_static
19594
19595 # What type of objects to build.
19596 pic_mode=$pic_mode
19597
19598 # Whether or not to optimize for fast installation.
19599 fast_install=$enable_fast_install
19600
19601 # Shared archive member basename,for filename based shared library versioning on AIX.
19602 shared_archive_member_spec=$shared_archive_member_spec
19603
19604 # Shell to use when invoking shell scripts.
19605 SHELL=$lt_SHELL
19606
19607 # An echo program that protects backslashes.
19608 ECHO=$lt_ECHO
19609
19610 # The PATH separator for the build system.
19611 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19612
19613 # The host system.
19614 host_alias=$host_alias
19615 host=$host
19616 host_os=$host_os
19617
19618 # The build system.
19619 build_alias=$build_alias
19620 build=$build
19621 build_os=$build_os
19622
19623 # A sed program that does not truncate output.
19624 SED=$lt_SED
19625
19626 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19627 Xsed="\$SED -e 1s/^X//"
19628
19629 # A grep program that handles long lines.
19630 GREP=$lt_GREP
19631
19632 # An ERE matcher.
19633 EGREP=$lt_EGREP
19634
19635 # A literal string matcher.
19636 FGREP=$lt_FGREP
19637
19638 # A BSD- or MS-compatible name lister.
19639 NM=$lt_NM
19640
19641 # Whether we need soft or hard links.
19642 LN_S=$lt_LN_S
19643
19644 # What is the maximum length of a command?
19645 max_cmd_len=$max_cmd_len
19646
19647 # Object file suffix (normally "o").
19648 objext=$ac_objext
19649
19650 # Executable file suffix (normally "").
19651 exeext=$exeext
19652
19653 # whether the shell understands "unset".
19654 lt_unset=$lt_unset
19655
19656 # turn spaces into newlines.
19657 SP2NL=$lt_lt_SP2NL
19658
19659 # turn newlines into spaces.
19660 NL2SP=$lt_lt_NL2SP
19661
19662 # convert \$build file names to \$host format.
19663 to_host_file_cmd=$lt_cv_to_host_file_cmd
19664
19665 # convert \$build files to toolchain format.
19666 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19667
19668 # A file(cmd) program that detects file types.
19669 FILECMD=$lt_FILECMD
19670
19671 # Method to check whether dependent libraries are shared objects.
19672 deplibs_check_method=$lt_deplibs_check_method
19673
19674 # Command to use when deplibs_check_method = "file_magic".
19675 file_magic_cmd=$lt_file_magic_cmd
19676
19677 # How to find potential files when deplibs_check_method = "file_magic".
19678 file_magic_glob=$lt_file_magic_glob
19679
19680 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19681 want_nocaseglob=$lt_want_nocaseglob
19682
19683 # Command to associate shared and link libraries.
19684 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19685
19686 # The archiver.
19687 AR=$lt_AR
19688
19689 # Flags to create an archive (by configure).
19690 lt_ar_flags=$lt_ar_flags
19691
19692 # Flags to create an archive.
19693 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19694
19695 # How to feed a file listing to the archiver.
19696 archiver_list_spec=$lt_archiver_list_spec
19697
19698 # A symbol stripping program.
19699 STRIP=$lt_STRIP
19700
19701 # Commands used to install an old-style archive.
19702 RANLIB=$lt_RANLIB
19703 old_postinstall_cmds=$lt_old_postinstall_cmds
19704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19705
19706 # Whether to use a lock for old archive extraction.
19707 lock_old_archive_extraction=$lock_old_archive_extraction
19708
19709 # A C compiler.
19710 LTCC=$lt_CC
19711
19712 # LTCC compiler flags.
19713 LTCFLAGS=$lt_CFLAGS
19714
19715 # Take the output of nm and produce a listing of raw symbols and C names.
19716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19717
19718 # Transform the output of nm in a proper C declaration.
19719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19720
19721 # Transform the output of nm into a list of symbols to manually relocate.
19722 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19723
19724 # Transform the output of nm in a C name address pair.
19725 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19726
19727 # Transform the output of nm in a C name address pair when lib prefix is needed.
19728 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19729
19730 # The name lister interface.
19731 nm_interface=$lt_lt_cv_nm_interface
19732
19733 # Specify filename containing input files for \$NM.
19734 nm_file_list_spec=$lt_nm_file_list_spec
19735
19736 # The root where to search for dependent libraries,and where our libraries should be installed.
19737 lt_sysroot=$lt_sysroot
19738
19739 # Command to truncate a binary pipe.
19740 lt_truncate_bin=$lt_lt_cv_truncate_bin
19741
19742 # The name of the directory that contains temporary libtool files.
19743 objdir=$objdir
19744
19745 # Used to examine libraries when file_magic_cmd begins with "file".
19746 MAGIC_CMD=$MAGIC_CMD
19747
19748 # Must we lock files when doing compilation?
19749 need_locks=$lt_need_locks
19750
19751 # Manifest tool.
19752 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19753
19754 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19755 DSYMUTIL=$lt_DSYMUTIL
19756
19757 # Tool to change global to local symbols on Mac OS X.
19758 NMEDIT=$lt_NMEDIT
19759
19760 # Tool to manipulate fat objects and archives on Mac OS X.
19761 LIPO=$lt_LIPO
19762
19763 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19764 OTOOL=$lt_OTOOL
19765
19766 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19767 OTOOL64=$lt_OTOOL64
19768
19769 # Old archive suffix (normally "a").
19770 libext=$libext
19771
19772 # Shared library suffix (normally ".so").
19773 shrext_cmds=$lt_shrext_cmds
19774
19775 # The commands to extract the exported symbol list from a shared archive.
19776 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19777
19778 # Variables whose values should be saved in libtool wrapper scripts and
19779 # restored at link time.
19780 variables_saved_for_relink=$lt_variables_saved_for_relink
19781
19782 # Do we need the "lib" prefix for modules?
19783 need_lib_prefix=$need_lib_prefix
19784
19785 # Do we need a version for libraries?
19786 need_version=$need_version
19787
19788 # Library versioning type.
19789 version_type=$version_type
19790
19791 # Shared library runtime path variable.
19792 runpath_var=$runpath_var
19793
19794 # Shared library path variable.
19795 shlibpath_var=$shlibpath_var
19796
19797 # Is shlibpath searched before the hard-coded library search path?
19798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19799
19800 # Format of library name prefix.
19801 libname_spec=$lt_libname_spec
19802
19803 # List of archive names. First name is the real one, the rest are links.
19804 # The last name is the one that the linker finds with -lNAME
19805 library_names_spec=$lt_library_names_spec
19806
19807 # The coded name of the library, if different from the real name.
19808 soname_spec=$lt_soname_spec
19809
19810 # Permission mode override for installation of shared libraries.
19811 install_override_mode=$lt_install_override_mode
19812
19813 # Command to use after installation of a shared archive.
19814 postinstall_cmds=$lt_postinstall_cmds
19815
19816 # Command to use after uninstallation of a shared archive.
19817 postuninstall_cmds=$lt_postuninstall_cmds
19818
19819 # Commands used to finish a libtool library installation in a directory.
19820 finish_cmds=$lt_finish_cmds
19821
19822 # As "finish_cmds", except a single script fragment to be evaled but
19823 # not shown.
19824 finish_eval=$lt_finish_eval
19825
19826 # Whether we should hardcode library paths into libraries.
19827 hardcode_into_libs=$hardcode_into_libs
19828
19829 # Compile-time system search path for libraries.
19830 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19831
19832 # Detected run-time system search path for libraries.
19833 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19834
19835 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19836 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19837
19838 # Whether dlopen is supported.
19839 dlopen_support=$enable_dlopen
19840
19841 # Whether dlopen of programs is supported.
19842 dlopen_self=$enable_dlopen_self
19843
19844 # Whether dlopen of statically linked programs is supported.
19845 dlopen_self_static=$enable_dlopen_self_static
19846
19847 # Commands to strip libraries.
19848 old_striplib=$lt_old_striplib
19849 striplib=$lt_striplib
19850
19851
19852 # The linker used to build libraries.
19853 LD=$lt_LD
19854
19855 # How to create reloadable object files.
19856 reload_flag=$lt_reload_flag
19857 reload_cmds=$lt_reload_cmds
19858
19859 # Commands used to build an old-style archive.
19860 old_archive_cmds=$lt_old_archive_cmds
19861
19862 # A language specific compiler.
19863 CC=$lt_compiler
19864
19865 # Is the compiler the GNU compiler?
19866 with_gcc=$GCC
19867
19868 # Compiler flag to turn off builtin functions.
19869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19870
19871 # Additional compiler flags for building library objects.
19872 pic_flag=$lt_lt_prog_compiler_pic
19873
19874 # How to pass a linker flag through the compiler.
19875 wl=$lt_lt_prog_compiler_wl
19876
19877 # Compiler flag to prevent dynamic linking.
19878 link_static_flag=$lt_lt_prog_compiler_static
19879
19880 # Does compiler simultaneously support -c and -o options?
19881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19882
19883 # Whether or not to add -lc for building shared libraries.
19884 build_libtool_need_lc=$archive_cmds_need_lc
19885
19886 # Whether or not to disallow shared libs when runtime libs are static.
19887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19888
19889 # Compiler flag to allow reflexive dlopens.
19890 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19891
19892 # Compiler flag to generate shared objects directly from archives.
19893 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19894
19895 # Whether the compiler copes with passing no objects directly.
19896 compiler_needs_object=$lt_compiler_needs_object
19897
19898 # Create an old-style archive from a shared archive.
19899 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19900
19901 # Create a temporary old-style archive to link instead of a shared archive.
19902 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19903
19904 # Commands used to build a shared archive.
19905 archive_cmds=$lt_archive_cmds
19906 archive_expsym_cmds=$lt_archive_expsym_cmds
19907
19908 # Commands used to build a loadable module if different from building
19909 # a shared archive.
19910 module_cmds=$lt_module_cmds
19911 module_expsym_cmds=$lt_module_expsym_cmds
19912
19913 # Whether we are building with GNU ld or not.
19914 with_gnu_ld=$lt_with_gnu_ld
19915
19916 # Flag that allows shared libraries with undefined symbols to be built.
19917 allow_undefined_flag=$lt_allow_undefined_flag
19918
19919 # Flag that enforces no undefined symbols.
19920 no_undefined_flag=$lt_no_undefined_flag
19921
19922 # Flag to hardcode \$libdir into a binary during linking.
19923 # This must work even if \$libdir does not exist
19924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19925
19926 # Whether we need a single "-rpath" flag with a separated argument.
19927 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19928
19929 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19930 # DIR into the resulting binary.
19931 hardcode_direct=$hardcode_direct
19932
19933 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19934 # DIR into the resulting binary and the resulting library dependency is
19935 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19936 # library is relocated.
19937 hardcode_direct_absolute=$hardcode_direct_absolute
19938
19939 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19940 # into the resulting binary.
19941 hardcode_minus_L=$hardcode_minus_L
19942
19943 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19944 # into the resulting binary.
19945 hardcode_shlibpath_var=$hardcode_shlibpath_var
19946
19947 # Set to "yes" if building a shared library automatically hardcodes DIR
19948 # into the library and all subsequent libraries and executables linked
19949 # against it.
19950 hardcode_automatic=$hardcode_automatic
19951
19952 # Set to yes if linker adds runtime paths of dependent libraries
19953 # to runtime path list.
19954 inherit_rpath=$inherit_rpath
19955
19956 # Whether libtool must link a program against all its dependency libraries.
19957 link_all_deplibs=$link_all_deplibs
19958
19959 # Set to "yes" if exported symbols are required.
19960 always_export_symbols=$always_export_symbols
19961
19962 # The commands to list exported symbols.
19963 export_symbols_cmds=$lt_export_symbols_cmds
19964
19965 # Symbols that should not be listed in the preloaded symbols.
19966 exclude_expsyms=$lt_exclude_expsyms
19967
19968 # Symbols that must always be exported.
19969 include_expsyms=$lt_include_expsyms
19970
19971 # Commands necessary for linking programs (against libraries) with templates.
19972 prelink_cmds=$lt_prelink_cmds
19973
19974 # Commands necessary for finishing linking programs.
19975 postlink_cmds=$lt_postlink_cmds
19976
19977 # Specify filename containing input files.
19978 file_list_spec=$lt_file_list_spec
19979
19980 # How to hardcode a shared library path into an executable.
19981 hardcode_action=$hardcode_action
19982
19983 # ### END LIBTOOL CONFIG
19984
19985 _LT_EOF
19986
19987 cat <<'_LT_EOF' >> "$cfgfile"
19988
19989 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19990
19991 # func_munge_path_list VARIABLE PATH
19992 # -----------------------------------
19993 # VARIABLE is name of variable containing _space_ separated list of
19994 # directories to be munged by the contents of PATH, which is string
19995 # having a format:
19996 # "DIR[:DIR]:"
19997 # string "DIR[ DIR]" will be prepended to VARIABLE
19998 # ":DIR[:DIR]"
19999 # string "DIR[ DIR]" will be appended to VARIABLE
20000 # "DIRP[:DIRP]::[DIRA:]DIRA"
20001 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20002 # "DIRA[ DIRA]" will be appended to VARIABLE
20003 # "DIR[:DIR]"
20004 # VARIABLE will be replaced by "DIR[ DIR]"
20005 func_munge_path_list ()
20006 {
20007 case x$2 in
20008 x)
20009 ;;
20010 *:)
20011 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20012 ;;
20013 x:*)
20014 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20015 ;;
20016 *::*)
20017 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20018 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20019 ;;
20020 *)
20021 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20022 ;;
20023 esac
20024 }
20025
20026
20027 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20028 func_cc_basename ()
20029 {
20030 for cc_temp in $*""; do
20031 case $cc_temp in
20032 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20033 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20034 \-*) ;;
20035 *) break;;
20036 esac
20037 done
20038 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20039 }
20040
20041
20042 # ### END FUNCTIONS SHARED WITH CONFIGURE
20043
20044 _LT_EOF
20045
20046 case $host_os in
20047 aix3*)
20048 cat <<\_LT_EOF >> "$cfgfile"
20049 # AIX sometimes has problems with the GCC collect2 program. For some
20050 # reason, if we set the COLLECT_NAMES environment variable, the problems
20051 # vanish in a puff of smoke.
20052 if test set != "${COLLECT_NAMES+set}"; then
20053 COLLECT_NAMES=
20054 export COLLECT_NAMES
20055 fi
20056 _LT_EOF
20057 ;;
20058 esac
20059
20060
20061
20062 ltmain=$ac_aux_dir/ltmain.sh
20063
20064
20065 # We use sed instead of cat because bash on DJGPP gets confused if
20066 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20067 # text mode, it properly converts lines to CR/LF. This bash problem
20068 # is reportedly fixed, but why not run on old versions too?
20069 $SED '$q' "$ltmain" >> "$cfgfile" \
20070 || (rm -f "$cfgfile"; exit 1)
20071
20072 mv -f "$cfgfile" "$ofile" ||
20073 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20074 chmod +x "$ofile"
20075
20076 ;;
20077
20078 esac
20079 done # for ac_tag
20080
20081
20082 as_fn_exit 0
20083 _ACEOF
20084 ac_clean_files=$ac_clean_files_save
20085
20086 test $ac_write_fail = 0 ||
20087 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20088
20089
20090 # configure is writing to config.log, and then calls config.status.
20091 # config.status does its own redirection, appending to config.log.
20092 # Unfortunately, on DOS this fails, as config.log is still kept open
20093 # by configure, so config.status won't be able to write to it; its
20094 # output is simply discarded. So we exec the FD to /dev/null,
20095 # effectively closing config.log, so it can be properly (re)opened and
20096 # appended to by config.status. When coming back to configure, we
20097 # need to make the FD available again.
20098 if test "$no_create" != yes; then
20099 ac_cs_success=:
20100 ac_config_status_args=
20101 test "$silent" = yes &&
20102 ac_config_status_args="$ac_config_status_args --quiet"
20103 exec 5>/dev/null
20104 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20105 exec 5>>config.log
20106 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20107 # would make configure fail if this is the last instruction.
20108 $ac_cs_success || as_fn_exit 1
20109 fi
20110 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20112 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20113 fi
20114
20115