Debian Codegraph @

texk/lcdf-typetools/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 LCDF typetools (TeX Live) 2.110.
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='LCDF typetools (TeX Live)'
616 PACKAGE_TARNAME='lcdf-typetools--tex-live-'
617 PACKAGE_VERSION='2.110'
618 PACKAGE_STRING='LCDF typetools (TeX Live) 2.110'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="lcdf-typetools-src/NEWS.md"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 enable_year2038=no
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 LCDF_TYPETOOLS_TREE
661 encdir
662 glyphlistdir
663 have_kpathsea_FALSE
664 have_kpathsea_TRUE
665 KPATHSEA_RULE
666 KPATHSEA_DEPEND
667 KPATHSEA_LIBS
668 KPATHSEA_INCLUDES
669 PKG_CONFIG
670 texlive_build_FALSE
671 texlive_build_TRUE
672 SELECTED_SUBDIRS
673 CPP
674 FIXLIBC_FALSE
675 FIXLIBC_TRUE
676 CXXLD
677 TEMPLATE_OBJS
678 CXXCPP
679 WARNING_CXXFLAGS
680 am__fastdepCXX_FALSE
681 am__fastdepCXX_TRUE
682 CXXDEPMODE
683 ac_ct_CXX
684 CXXFLAGS
685 CXX
686 LCDF_TYPETOOLS_VERSION
687 LT_SYS_LIBRARY_PATH
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
693 MANIFEST_TOOL
694 RANLIB
695 FILECMD
696 LN_S
697 NM
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 EGREP
703 GREP
704 SED
705 host_os
706 host_vendor
707 host_cpu
708 host
709 build_os
710 build_vendor
711 build_cpu
712 build
713 LIBTOOL
714 OBJDUMP
715 DLLTOOL
716 AS
717 ac_ct_AR
718 AR
719 WARNING_CFLAGS
720 am__fastdepCC_FALSE
721 am__fastdepCC_TRUE
722 CCDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__include
728 DEPDIR
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 MAINT
737 MAINTAINER_MODE_FALSE
738 MAINTAINER_MODE_TRUE
739 am__xargs_n
740 am__rm_f_notfound
741 AM_BACKSLASH
742 AM_DEFAULT_VERBOSITY
743 AM_DEFAULT_V
744 AM_V
745 CSCOPE
746 ETAGS
747 CTAGS
748 am__untar
749 am__tar
750 AMTAR
751 am__leading_dot
752 SET_MAKE
753 AWK
754 mkdir_p
755 MKDIR_P
756 INSTALL_STRIP_PROGRAM
757 STRIP
758 install_sh
759 MAKEINFO
760 AUTOHEADER
761 AUTOMAKE
762 AUTOCONF
763 ACLOCAL
764 VERSION
765 PACKAGE
766 CYGPATH_W
767 am__isrc
768 INSTALL_DATA
769 INSTALL_SCRIPT
770 INSTALL_PROGRAM
771 target_alias
772 host_alias
773 build_alias
774 LIBS
775 ECHO_T
776 ECHO_N
777 ECHO_C
778 DEFS
779 mandir
780 localedir
781 libdir
782 psdir
783 pdfdir
784 dvidir
785 htmldir
786 infodir
787 docdir
788 oldincludedir
789 includedir
790 runstatedir
791 localstatedir
792 sharedstatedir
793 sysconfdir
794 datadir
795 datarootdir
796 libexecdir
797 sbindir
798 bindir
799 program_transform_name
800 prefix
801 exec_prefix
802 PACKAGE_URL
803 PACKAGE_BUGREPORT
804 PACKAGE_STRING
805 PACKAGE_VERSION
806 PACKAGE_TARNAME
807 PACKAGE_NAME
808 PATH_SEPARATOR
809 SHELL
810 am__quote'
811 ac_subst_files=''
812 ac_user_opts='
813 enable_option_checking
814 enable_silent_rules
815 enable_maintainer_mode
816 enable_dependency_tracking
817 enable_compiler_warnings
818 enable_shared
819 enable_static
820 enable_pic
821 with_pic
822 enable_fast_install
823 enable_aix_soname
824 with_aix_soname
825 with_gnu_ld
826 with_sysroot
827 enable_libtool_lock
828 enable_largefile
829 enable_precondition_checking
830 enable_adobe_code
831 enable_cxx_runtime_hack
832 enable_cfftot1
833 enable_mmafm
834 enable_mmpfb
835 enable_otfinfo
836 enable_otftotfm
837 enable_t1dotlessj
838 enable_t1lint
839 enable_t1rawafm
840 enable_t1reencode
841 enable_t1testpage
842 enable_ttftotype42
843 enable_updmap
844 with_kpathsea
845 with_system_kpathsea
846 enable_selfauto_set
847 enable_year2038
848 '
849 ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 CC
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
857 LT_SYS_LIBRARY_PATH
858 CXX
859 CXXFLAGS
860 CCC
861 CXXCPP
862 CPP'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 runstatedir='${localstatedir}/run'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
921 ac_prev=
922 continue
923 fi
924
925 case $ac_option in
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
929 esac
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: '$ac_useropt'"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: '$ac_useropt'"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -runstatedir | --runstatedir | --runstatedi | --runstated \
1153 | --runstate | --runstat | --runsta | --runst | --runs \
1154 | --run | --ru | --r)
1155 ac_prev=runstatedir ;;
1156 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1157 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1158 | --run=* | --ru=* | --r=*)
1159 runstatedir=$ac_optarg ;;
1160
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 ac_prev=sbindir ;;
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 | --sbi=* | --sb=*)
1165 sbindir=$ac_optarg ;;
1166
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1170 | --sha | --sh)
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 | --sha=* | --sh=*)
1176 sharedstatedir=$ac_optarg ;;
1177
1178 -site | --site | --sit)
1179 ac_prev=site ;;
1180 -site=* | --site=* | --sit=*)
1181 site=$ac_optarg ;;
1182
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 ac_prev=srcdir ;;
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1187
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1194
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1199
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 verbose=yes ;;
1202
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1205
1206 -with-* | --with-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: '$ac_useropt'"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=\$ac_optarg ;;
1221
1222 -without-* | --without-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: '$ac_useropt'"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=no ;;
1237
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1241
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1248
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1255
1256 -*) as_fn_error $? "unrecognized option: '$ac_option'
1257 Try '$0 --help' for more information"
1258 ;;
1259
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 case $ac_envvar in #(
1264 '' | [0-9]* | *[!_$as_cr_alnum]* )
1265 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1266 esac
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1269
1270 *)
1271 # FIXME: should be removed in autoconf 3.0.
1272 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276 ;;
1277
1278 esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 as_fn_error $? "missing argument to $ac_option"
1284 fi
1285
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1288 no) ;;
1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir runstatedir
1299 do
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1302 case $ac_val in
1303 */ )
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1306 esac
1307 # Be sure to have absolute directory names.
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313 done
1314
1315 # There might be people who depend on the old broken behavior: '$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1328 fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 as_fn_error $? "working directory cannot be determined"
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 as_fn_error $? "pwd does not report name of working directory"
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 printf "%s\n" X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
1372 srcdir=$ac_confdir
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 srcdir=..
1375 fi
1376 else
1377 ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1382 fi
1383 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1384 ac_abs_confdir=`(
1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1403
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411 'configure' configures LCDF typetools (TeX Live) 2.110 to adapt to many kinds of systems.
1412
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418 Defaults for the options are specified in brackets.
1419
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print 'checking ...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for '--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or '..']
1430
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1436
1437 By default, 'make install' will install all the files in
1438 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than '$ac_default_prefix' using '--prefix',
1440 for instance '--prefix=\$HOME'.
1441
1442 For better control, use the options below.
1443
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root
1461 [DATAROOTDIR/doc/lcdf-typetools--tex-live-]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1466 _ACEOF
1467
1468 cat <<\_ACEOF
1469
1470 Program names:
1471 --program-prefix=PREFIX prepend PREFIX to installed program names
1472 --program-suffix=SUFFIX append SUFFIX to installed program names
1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1474
1475 System types:
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of LCDF typetools (TeX Live) 2.110:";;
1484 esac
1485 cat <<\_ACEOF
1486
1487 Optional Features:
1488 --disable-option-checking ignore unrecognized --enable/--with options
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --enable-silent-rules less verbose build output (undo: "make V=1")
1492 --disable-silent-rules verbose build output (undo: "make V=0")
1493 --enable-maintainer-mode
1494 enable make rules and dependencies not useful (and
1495 sometimes confusing) to the casual installer
1496 --enable-dependency-tracking
1497 do not reject slow dependency extractors
1498 --disable-dependency-tracking
1499 speeds up one-time build
1500 --enable-compiler-warnings=[no|min|yes|max|all]
1501 Turn on compiler warnings [default: yes if
1502 maintainer-mode, min otherwise]
1503 --enable-shared[=PKGS] build shared libraries [default=yes]
1504 --enable-static[=PKGS] build static libraries [default=yes]
1505 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1506 both]
1507 --enable-fast-install[=PKGS]
1508 optimize for fast installation [default=yes]
1509 --enable-aix-soname=aix|svr4|both
1510 shared library versioning (aka "SONAME") variant to
1511 provide on AIX, [default=aix].
1512 --disable-libtool-lock avoid locking (might break parallel builds)
1513 --disable-largefile omit support for large files
1514 --enable-precondition-checking
1515 include precondition checking assertions
1516 --disable-adobe-code do not include Adobe code
1517 --enable-cxx-runtime-hack link C++ runtime statically
1518 --disable-cfftot1 do not build the cfftot1 program
1519 --disable-mmafm do not build the mmafm program
1520 --disable-mmpfb do not build the mmpfb program
1521 --disable-otfinfo do not build the otfinfo program
1522 --disable-otftotfm do not build the otftotfm program
1523 --disable-t1dotlessj do not build the t1dotlessj program
1524 --disable-t1lint do not build the t1lint program
1525 --disable-t1rawafm do not build the t1rawafm program
1526 --disable-t1reencode do not build the t1reencode program
1527 --disable-t1testpage do not build the t1testpage program
1528 --disable-ttftotype42 do not build the ttftotype42 program
1529 --disable-auto-cfftot1 disable running cfftot1 from otftotfm
1530 --disable-auto-t1dotlessj
1531 disable running t1dotlessj from otftotfm
1532 --disable-auto-ttftotype42
1533 disable running ttftotype42 from otftotfm
1534 --disable-auto-updmap disable running updmap from otftotfm
1535 --disable-selfauto-set disable setting SELFAUTO variables from kpsewhich
1536 --enable-year2038 support timestamps after 2038
1537
1538 Optional Packages:
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1542 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1543 compiler's sysroot if not specified).
1544 --without-kpathsea build otftotfm without kpathsea
1545 --with-system-kpathsea use installed kpathsea headers and library (requires
1546 pkg-config)
1547
1548 Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
1553 LIBS libraries to pass to the linker, e.g. -l<library>
1554 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
1556 LT_SYS_LIBRARY_PATH
1557 User-defined run-time library search path.
1558 CXX C++ compiler command
1559 CXXFLAGS C++ compiler flags
1560 CXXCPP C++ preprocessor
1561 CPP C preprocessor
1562
1563 Use these variables to override the choices made by 'configure' or to help
1564 it to find libraries and programs with nonstandard names/locations.
1565
1566 Report bugs to <[email protected]>.
1567 _ACEOF
1568 ac_status=$?
1569 fi
1570
1571 if test "$ac_init_help" = "recursive"; then
1572 # If there are subdirs, report their specific --help.
1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574 test -d "$ac_dir" ||
1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 continue
1577 ac_builddir=.
1578
1579 case "$ac_dir" in
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *)
1582 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 esac ;;
1589 esac
1590 ac_abs_top_builddir=$ac_pwd
1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir=$ac_top_build_prefix
1594
1595 case $srcdir in
1596 .) # We are building in place.
1597 ac_srcdir=.
1598 ac_top_srcdir=$ac_top_builddir_sub
1599 ac_abs_top_srcdir=$ac_pwd ;;
1600 [\\/]* | ?:[\\/]* ) # Absolute name.
1601 ac_srcdir=$srcdir$ac_dir_suffix;
1602 ac_top_srcdir=$srcdir
1603 ac_abs_top_srcdir=$srcdir ;;
1604 *) # Relative name.
1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608 esac
1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610
1611 cd "$ac_dir" || { ac_status=$?; continue; }
1612 # Check for configure.gnu first; this name is used for a wrapper for
1613 # Metaconfig's "Configure" on case-insensitive file systems.
1614 if test -f "$ac_srcdir/configure.gnu"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617 elif test -f "$ac_srcdir/configure"; then
1618 echo &&
1619 $SHELL "$ac_srcdir/configure" --help=recursive
1620 else
1621 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622 fi || ac_status=$?
1623 cd "$ac_pwd" || { ac_status=$?; break; }
1624 done
1625 fi
1626
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1629 cat <<\_ACEOF
1630 LCDF typetools (TeX Live) configure 2.110
1631 generated by GNU Autoconf 2.72
1632
1633 Copyright (C) 2023 Free Software Foundation, Inc.
1634 This configure script is free software; the Free Software Foundation
1635 gives unlimited permission to copy, distribute and modify it.
1636 _ACEOF
1637 exit
1638 fi
1639
1640 ## ------------------------ ##
1641 ## Autoconf initialization. ##
1642 ## ------------------------ ##
1643
1644 # ac_fn_c_try_compile LINENO
1645 # --------------------------
1646 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_compile ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext conftest.beam
1651 if { { ac_try="$ac_compile"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 printf "%s\n" "$ac_try_echo"; } >&5
1658 (eval "$ac_compile") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1664 fi
1665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest.$ac_objext
1670 then :
1671 ac_retval=0
1672 else case e in #(
1673 e) printf "%s\n" "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676 ac_retval=1 ;;
1677 esac
1678 fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_compile
1683
1684 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685 # -------------------------------------------------------
1686 # Tests whether HEADER exists and can be compiled using the include files in
1687 # INCLUDES, setting the cache variable VAR accordingly.
1688 ac_fn_c_check_header_compile ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 printf %s "checking for $2... " >&6; }
1693 if eval test \${$3+y}
1694 then :
1695 printf %s "(cached) " >&6
1696 else case e in #(
1697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1699 $4
1700 #include <$2>
1701 _ACEOF
1702 if ac_fn_c_try_compile "$LINENO"
1703 then :
1704 eval "$3=yes"
1705 else case e in #(
1706 e) eval "$3=no" ;;
1707 esac
1708 fi
1709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1710 esac
1711 fi
1712 eval ac_res=\$$3
1713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 printf "%s\n" "$ac_res" >&6; }
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717 } # ac_fn_c_check_header_compile
1718
1719 # ac_fn_c_try_link LINENO
1720 # -----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_link ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1726 if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 printf "%s\n" "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>conftest.err
1734 ac_status=$?
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1739 fi
1740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest$ac_exeext && {
1745 test "$cross_compiling" = yes ||
1746 test -x conftest$ac_exeext
1747 }
1748 then :
1749 ac_retval=0
1750 else case e in #(
1751 e) printf "%s\n" "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1 ;;
1755 esac
1756 fi
1757 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1758 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1759 # interfere with the next link command; also delete a directory that is
1760 # left behind by Apple's compiler. We do this before executing the actions.
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_link
1766
1767 # ac_fn_c_check_func LINENO FUNC VAR
1768 # ----------------------------------
1769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1770 ac_fn_c_check_func ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 printf %s "checking for $2... " >&6; }
1775 if eval test \${$3+y}
1776 then :
1777 printf %s "(cached) " >&6
1778 else case e in #(
1779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783 #define $2 innocuous_$2
1784
1785 /* System header to define __stub macros and hopefully few prototypes,
1786 which can conflict with char $2 (void); below. */
1787
1788 #include <limits.h>
1789 #undef $2
1790
1791 /* Override any GCC internal prototype to avoid an error.
1792 Use char because int might match the return type of a GCC
1793 builtin and then its argument prototype would still apply. */
1794 #ifdef __cplusplus
1795 extern "C"
1796 #endif
1797 char $2 (void);
1798 /* The GNU C library defines this for functions which it implements
1799 to always fail with ENOSYS. Some functions are actually named
1800 something starting with __ and the normal name is an alias. */
1801 #if defined __stub_$2 || defined __stub___$2
1802 choke me
1803 #endif
1804
1805 int
1806 main (void)
1807 {
1808 return $2 ();
1809 ;
1810 return 0;
1811 }
1812 _ACEOF
1813 if ac_fn_c_try_link "$LINENO"
1814 then :
1815 eval "$3=yes"
1816 else case e in #(
1817 e) eval "$3=no" ;;
1818 esac
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1821 conftest$ac_exeext conftest.$ac_ext ;;
1822 esac
1823 fi
1824 eval ac_res=\$$3
1825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 printf "%s\n" "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
1829 } # ac_fn_c_check_func
1830
1831 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1832 # -------------------------------------------
1833 # Tests whether TYPE exists after having included INCLUDES, setting cache
1834 # variable VAR accordingly.
1835 ac_fn_c_check_type ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 printf %s "checking for $2... " >&6; }
1840 if eval test \${$3+y}
1841 then :
1842 printf %s "(cached) " >&6
1843 else case e in #(
1844 e) eval "$3=no"
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 $4
1848 int
1849 main (void)
1850 {
1851 if (sizeof ($2))
1852 return 0;
1853 ;
1854 return 0;
1855 }
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"
1858 then :
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 $4
1862 int
1863 main (void)
1864 {
1865 if (sizeof (($2)))
1866 return 0;
1867 ;
1868 return 0;
1869 }
1870 _ACEOF
1871 if ac_fn_c_try_compile "$LINENO"
1872 then :
1873
1874 else case e in #(
1875 e) eval "$3=yes" ;;
1876 esac
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1881 esac
1882 fi
1883 eval ac_res=\$$3
1884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 printf "%s\n" "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887
1888 } # ac_fn_c_check_type
1889
1890 # ac_fn_c_find_intX_t LINENO BITS VAR
1891 # -----------------------------------
1892 # Finds a signed integer type with width BITS, setting cache variable VAR
1893 # accordingly.
1894 ac_fn_c_find_intX_t ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1898 printf %s "checking for int$2_t... " >&6; }
1899 if eval test \${$3+y}
1900 then :
1901 printf %s "(cached) " >&6
1902 else case e in #(
1903 e) eval "$3=no"
1904 # Order is important - never check a type that is potentially smaller
1905 # than half of the expected target width.
1906 for ac_type in int$2_t 'int' 'long int' \
1907 'long long int' 'short int' 'signed char'; do
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 $ac_includes_default
1911 enum { N = $2 / 2 - 1 };
1912 int
1913 main (void)
1914 {
1915 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1916 test_array [0] = 0;
1917 return test_array [0];
1918
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"
1924 then :
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1927 $ac_includes_default
1928 enum { N = $2 / 2 - 1 };
1929 int
1930 main (void)
1931 {
1932 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1933 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1934 test_array [0] = 0;
1935 return test_array [0];
1936
1937 ;
1938 return 0;
1939 }
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"
1942 then :
1943
1944 else case e in #(
1945 e) case $ac_type in #(
1946 int$2_t) :
1947 eval "$3=yes" ;; #(
1948 *) :
1949 eval "$3=\$ac_type" ;;
1950 esac ;;
1951 esac
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1956 if eval test \"x\$"$3"\" = x"no"
1957 then :
1958
1959 else case e in #(
1960 e) break ;;
1961 esac
1962 fi
1963 done ;;
1964 esac
1965 fi
1966 eval ac_res=\$$3
1967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 printf "%s\n" "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_find_intX_t
1972
1973 # ac_fn_c_find_uintX_t LINENO BITS VAR
1974 # ------------------------------------
1975 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1976 # accordingly.
1977 ac_fn_c_find_uintX_t ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1981 printf %s "checking for uint$2_t... " >&6; }
1982 if eval test \${$3+y}
1983 then :
1984 printf %s "(cached) " >&6
1985 else case e in #(
1986 e) eval "$3=no"
1987 # Order is important - never check a type that is potentially smaller
1988 # than half of the expected target width.
1989 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1990 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 $ac_includes_default
1994 int
1995 main (void)
1996 {
1997 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1998 test_array [0] = 0;
1999 return test_array [0];
2000
2001 ;
2002 return 0;
2003 }
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"
2006 then :
2007 case $ac_type in #(
2008 uint$2_t) :
2009 eval "$3=yes" ;; #(
2010 *) :
2011 eval "$3=\$ac_type" ;;
2012 esac
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015 if eval test \"x\$"$3"\" = x"no"
2016 then :
2017
2018 else case e in #(
2019 e) break ;;
2020 esac
2021 fi
2022 done ;;
2023 esac
2024 fi
2025 eval ac_res=\$$3
2026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 printf "%s\n" "$ac_res" >&6; }
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029
2030 } # ac_fn_c_find_uintX_t
2031
2032 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2033 # ------------------------------------------------------------------
2034 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2035 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2036 ac_fn_check_decl ()
2037 {
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 as_decl_name=`echo $2|sed 's/ *(.*//'`
2040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2041 printf %s "checking whether $as_decl_name is declared... " >&6; }
2042 if eval test \${$3+y}
2043 then :
2044 printf %s "(cached) " >&6
2045 else case e in #(
2046 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2047 eval ac_save_FLAGS=\$$6
2048 as_fn_append $6 " $5"
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2051 $4
2052 int
2053 main (void)
2054 {
2055 #ifndef $as_decl_name
2056 #ifdef __cplusplus
2057 (void) $as_decl_use;
2058 #else
2059 (void) $as_decl_name;
2060 #endif
2061 #endif
2062
2063 ;
2064 return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"
2068 then :
2069 eval "$3=yes"
2070 else case e in #(
2071 e) eval "$3=no" ;;
2072 esac
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2075 eval $6=\$ac_save_FLAGS
2076 ;;
2077 esac
2078 fi
2079 eval ac_res=\$$3
2080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 printf "%s\n" "$ac_res" >&6; }
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083
2084 } # ac_fn_check_decl
2085
2086 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2087 # ----------------------------------------------------
2088 # Tries to find if the field MEMBER exists in type AGGR, after including
2089 # INCLUDES, setting cache variable VAR accordingly.
2090 ac_fn_c_check_member ()
2091 {
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2094 printf %s "checking for $2.$3... " >&6; }
2095 if eval test \${$4+y}
2096 then :
2097 printf %s "(cached) " >&6
2098 else case e in #(
2099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 $5
2102 int
2103 main (void)
2104 {
2105 static $2 ac_aggr;
2106 if (ac_aggr.$3)
2107 return 0;
2108 ;
2109 return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"
2113 then :
2114 eval "$4=yes"
2115 else case e in #(
2116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2118 $5
2119 int
2120 main (void)
2121 {
2122 static $2 ac_aggr;
2123 if (sizeof ac_aggr.$3)
2124 return 0;
2125 ;
2126 return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"
2130 then :
2131 eval "$4=yes"
2132 else case e in #(
2133 e) eval "$4=no" ;;
2134 esac
2135 fi
2136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2137 esac
2138 fi
2139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2140 esac
2141 fi
2142 eval ac_res=\$$4
2143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 printf "%s\n" "$ac_res" >&6; }
2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146
2147 } # ac_fn_c_check_member
2148
2149 # ac_fn_cxx_try_compile LINENO
2150 # ----------------------------
2151 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2152 ac_fn_cxx_try_compile ()
2153 {
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 rm -f conftest.$ac_objext conftest.beam
2156 if { { ac_try="$ac_compile"
2157 case "(($ac_try" in
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2160 esac
2161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162 printf "%s\n" "$ac_try_echo"; } >&5
2163 (eval "$ac_compile") 2>conftest.err
2164 ac_status=$?
2165 if test -s conftest.err; then
2166 grep -v '^ *+' conftest.err >conftest.er1
2167 cat conftest.er1 >&5
2168 mv -f conftest.er1 conftest.err
2169 fi
2170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171 test $ac_status = 0; } && {
2172 test -z "$ac_cxx_werror_flag" ||
2173 test ! -s conftest.err
2174 } && test -s conftest.$ac_objext
2175 then :
2176 ac_retval=0
2177 else case e in #(
2178 e) printf "%s\n" "$as_me: failed program was:" >&5
2179 sed 's/^/| /' conftest.$ac_ext >&5
2180
2181 ac_retval=1 ;;
2182 esac
2183 fi
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185 as_fn_set_status $ac_retval
2186
2187 } # ac_fn_cxx_try_compile
2188
2189 # ac_fn_cxx_try_cpp LINENO
2190 # ------------------------
2191 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2192 ac_fn_cxx_try_cpp ()
2193 {
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 if { { ac_try="$ac_cpp conftest.$ac_ext"
2196 case "(($ac_try" in
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2199 esac
2200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201 printf "%s\n" "$ac_try_echo"; } >&5
2202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2203 ac_status=$?
2204 if test -s conftest.err; then
2205 grep -v '^ *+' conftest.err >conftest.er1
2206 cat conftest.er1 >&5
2207 mv -f conftest.er1 conftest.err
2208 fi
2209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2210 test $ac_status = 0; } > conftest.i && {
2211 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2212 test ! -s conftest.err
2213 }
2214 then :
2215 ac_retval=0
2216 else case e in #(
2217 e) printf "%s\n" "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 ac_retval=1 ;;
2221 esac
2222 fi
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224 as_fn_set_status $ac_retval
2225
2226 } # ac_fn_cxx_try_cpp
2227
2228 # ac_fn_cxx_try_link LINENO
2229 # -------------------------
2230 # Try to link conftest.$ac_ext, and return whether this succeeded.
2231 ac_fn_cxx_try_link ()
2232 {
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2235 if { { ac_try="$ac_link"
2236 case "(($ac_try" in
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2239 esac
2240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2241 printf "%s\n" "$ac_try_echo"; } >&5
2242 (eval "$ac_link") 2>conftest.err
2243 ac_status=$?
2244 if test -s conftest.err; then
2245 grep -v '^ *+' conftest.err >conftest.er1
2246 cat conftest.er1 >&5
2247 mv -f conftest.er1 conftest.err
2248 fi
2249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2250 test $ac_status = 0; } && {
2251 test -z "$ac_cxx_werror_flag" ||
2252 test ! -s conftest.err
2253 } && test -s conftest$ac_exeext && {
2254 test "$cross_compiling" = yes ||
2255 test -x conftest$ac_exeext
2256 }
2257 then :
2258 ac_retval=0
2259 else case e in #(
2260 e) printf "%s\n" "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2262
2263 ac_retval=1 ;;
2264 esac
2265 fi
2266 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2267 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2268 # interfere with the next link command; also delete a directory that is
2269 # left behind by Apple's compiler. We do this before executing the actions.
2270 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2271 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272 as_fn_set_status $ac_retval
2273
2274 } # ac_fn_cxx_try_link
2275
2276 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2277 # ---------------------------------------------------------
2278 # Tests whether HEADER exists and can be compiled using the include files in
2279 # INCLUDES, setting the cache variable VAR accordingly.
2280 ac_fn_cxx_check_header_compile ()
2281 {
2282 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2284 printf %s "checking for $2... " >&6; }
2285 if eval test \${$3+y}
2286 then :
2287 printf %s "(cached) " >&6
2288 else case e in #(
2289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2291 $4
2292 #include <$2>
2293 _ACEOF
2294 if ac_fn_cxx_try_compile "$LINENO"
2295 then :
2296 eval "$3=yes"
2297 else case e in #(
2298 e) eval "$3=no" ;;
2299 esac
2300 fi
2301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2302 esac
2303 fi
2304 eval ac_res=\$$3
2305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 printf "%s\n" "$ac_res" >&6; }
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308
2309 } # ac_fn_cxx_check_header_compile
2310
2311 # ac_fn_cxx_try_run LINENO
2312 # ------------------------
2313 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2314 # executables *can* be run.
2315 ac_fn_cxx_try_run ()
2316 {
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 if { { ac_try="$ac_link"
2319 case "(($ac_try" in
2320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321 *) ac_try_echo=$ac_try;;
2322 esac
2323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2324 printf "%s\n" "$ac_try_echo"; } >&5
2325 (eval "$ac_link") 2>&5
2326 ac_status=$?
2327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2328 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2329 { { case "(($ac_try" in
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2332 esac
2333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2334 printf "%s\n" "$ac_try_echo"; } >&5
2335 (eval "$ac_try") 2>&5
2336 ac_status=$?
2337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2338 test $ac_status = 0; }; }
2339 then :
2340 ac_retval=0
2341 else case e in #(
2342 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2343 printf "%s\n" "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 ac_retval=$ac_status ;;
2347 esac
2348 fi
2349 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351 as_fn_set_status $ac_retval
2352
2353 } # ac_fn_cxx_try_run
2354
2355 # ac_fn_c_try_run LINENO
2356 # ----------------------
2357 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2358 # executables *can* be run.
2359 ac_fn_c_try_run ()
2360 {
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 if { { ac_try="$ac_link"
2363 case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366 esac
2367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2368 printf "%s\n" "$ac_try_echo"; } >&5
2369 (eval "$ac_link") 2>&5
2370 ac_status=$?
2371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2373 { { case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376 esac
2377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378 printf "%s\n" "$ac_try_echo"; } >&5
2379 (eval "$ac_try") 2>&5
2380 ac_status=$?
2381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2382 test $ac_status = 0; }; }
2383 then :
2384 ac_retval=0
2385 else case e in #(
2386 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2387 printf "%s\n" "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389
2390 ac_retval=$ac_status ;;
2391 esac
2392 fi
2393 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2394 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2395 as_fn_set_status $ac_retval
2396
2397 } # ac_fn_c_try_run
2398
2399 # ac_fn_cxx_check_func LINENO FUNC VAR
2400 # ------------------------------------
2401 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2402 ac_fn_cxx_check_func ()
2403 {
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2406 printf %s "checking for $2... " >&6; }
2407 if eval test \${$3+y}
2408 then :
2409 printf %s "(cached) " >&6
2410 else case e in #(
2411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2415 #define $2 innocuous_$2
2416
2417 /* System header to define __stub macros and hopefully few prototypes,
2418 which can conflict with char $2 (void); below. */
2419
2420 #include <limits.h>
2421 #undef $2
2422
2423 /* Override any GCC internal prototype to avoid an error.
2424 Use char because int might match the return type of a GCC
2425 builtin and then its argument prototype would still apply. */
2426 #ifdef __cplusplus
2427 extern "C"
2428 #endif
2429 char $2 (void);
2430 /* The GNU C library defines this for functions which it implements
2431 to always fail with ENOSYS. Some functions are actually named
2432 something starting with __ and the normal name is an alias. */
2433 #if defined __stub_$2 || defined __stub___$2
2434 choke me
2435 #endif
2436
2437 int
2438 main (void)
2439 {
2440 return $2 ();
2441 ;
2442 return 0;
2443 }
2444 _ACEOF
2445 if ac_fn_cxx_try_link "$LINENO"
2446 then :
2447 eval "$3=yes"
2448 else case e in #(
2449 e) eval "$3=no" ;;
2450 esac
2451 fi
2452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2453 conftest$ac_exeext conftest.$ac_ext ;;
2454 esac
2455 fi
2456 eval ac_res=\$$3
2457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 printf "%s\n" "$ac_res" >&6; }
2459 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2460
2461 } # ac_fn_cxx_check_func
2462
2463 # ac_fn_c_try_cpp LINENO
2464 # ----------------------
2465 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2466 ac_fn_c_try_cpp ()
2467 {
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 if { { ac_try="$ac_cpp conftest.$ac_ext"
2470 case "(($ac_try" in
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2473 esac
2474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2475 printf "%s\n" "$ac_try_echo"; } >&5
2476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2477 ac_status=$?
2478 if test -s conftest.err; then
2479 grep -v '^ *+' conftest.err >conftest.er1
2480 cat conftest.er1 >&5
2481 mv -f conftest.er1 conftest.err
2482 fi
2483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2484 test $ac_status = 0; } > conftest.i && {
2485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2486 test ! -s conftest.err
2487 }
2488 then :
2489 ac_retval=0
2490 else case e in #(
2491 e) printf "%s\n" "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 ac_retval=1 ;;
2495 esac
2496 fi
2497 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2498 as_fn_set_status $ac_retval
2499
2500 } # ac_fn_c_try_cpp
2501
2502 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2503 # --------------------------------------------
2504 # Tries to find the compile-time value of EXPR in a program that includes
2505 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2506 # computed
2507 ac_fn_c_compute_int ()
2508 {
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 if test "$cross_compiling" = yes; then
2511 # Depending upon the size, compute the lo and hi bounds.
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2514 $4
2515 int
2516 main (void)
2517 {
2518 static int test_array [1 - 2 * !(($2) >= 0)];
2519 test_array [0] = 0;
2520 return test_array [0];
2521
2522 ;
2523 return 0;
2524 }
2525 _ACEOF
2526 if ac_fn_c_try_compile "$LINENO"
2527 then :
2528 ac_lo=0 ac_mid=0
2529 while :; do
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2532 $4
2533 int
2534 main (void)
2535 {
2536 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2537 test_array [0] = 0;
2538 return test_array [0];
2539
2540 ;
2541 return 0;
2542 }
2543 _ACEOF
2544 if ac_fn_c_try_compile "$LINENO"
2545 then :
2546 ac_hi=$ac_mid; break
2547 else case e in #(
2548 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2549 if test $ac_lo -le $ac_mid; then
2550 ac_lo= ac_hi=
2551 break
2552 fi
2553 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2554 esac
2555 fi
2556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2557 done
2558 else case e in #(
2559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h. */
2561 $4
2562 int
2563 main (void)
2564 {
2565 static int test_array [1 - 2 * !(($2) < 0)];
2566 test_array [0] = 0;
2567 return test_array [0];
2568
2569 ;
2570 return 0;
2571 }
2572 _ACEOF
2573 if ac_fn_c_try_compile "$LINENO"
2574 then :
2575 ac_hi=-1 ac_mid=-1
2576 while :; do
2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578 /* end confdefs.h. */
2579 $4
2580 int
2581 main (void)
2582 {
2583 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2584 test_array [0] = 0;
2585 return test_array [0];
2586
2587 ;
2588 return 0;
2589 }
2590 _ACEOF
2591 if ac_fn_c_try_compile "$LINENO"
2592 then :
2593 ac_lo=$ac_mid; break
2594 else case e in #(
2595 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2596 if test $ac_mid -le $ac_hi; then
2597 ac_lo= ac_hi=
2598 break
2599 fi
2600 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2601 esac
2602 fi
2603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2604 done
2605 else case e in #(
2606 e) ac_lo= ac_hi= ;;
2607 esac
2608 fi
2609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2610 esac
2611 fi
2612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2613 # Binary search between lo and hi bounds.
2614 while test "x$ac_lo" != "x$ac_hi"; do
2615 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h. */
2618 $4
2619 int
2620 main (void)
2621 {
2622 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2623 test_array [0] = 0;
2624 return test_array [0];
2625
2626 ;
2627 return 0;
2628 }
2629 _ACEOF
2630 if ac_fn_c_try_compile "$LINENO"
2631 then :
2632 ac_hi=$ac_mid
2633 else case e in #(
2634 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2635 esac
2636 fi
2637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2638 done
2639 case $ac_lo in #((
2640 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2641 '') ac_retval=1 ;;
2642 esac
2643 else
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h. */
2646 $4
2647 static long int longval (void) { return $2; }
2648 static unsigned long int ulongval (void) { return $2; }
2649 #include <stdio.h>
2650 #include <stdlib.h>
2651 int
2652 main (void)
2653 {
2654
2655 FILE *f = fopen ("conftest.val", "w");
2656 if (! f)
2657 return 1;
2658 if (($2) < 0)
2659 {
2660 long int i = longval ();
2661 if (i != ($2))
2662 return 1;
2663 fprintf (f, "%ld", i);
2664 }
2665 else
2666 {
2667 unsigned long int i = ulongval ();
2668 if (i != ($2))
2669 return 1;
2670 fprintf (f, "%lu", i);
2671 }
2672 /* Do not output a trailing newline, as this causes \r\n confusion
2673 on some platforms. */
2674 return ferror (f) || fclose (f) != 0;
2675
2676 ;
2677 return 0;
2678 }
2679 _ACEOF
2680 if ac_fn_c_try_run "$LINENO"
2681 then :
2682 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2683 else case e in #(
2684 e) ac_retval=1 ;;
2685 esac
2686 fi
2687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2688 conftest.$ac_objext conftest.beam conftest.$ac_ext
2689 rm -f conftest.val
2690
2691 fi
2692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2693 as_fn_set_status $ac_retval
2694
2695 } # ac_fn_c_compute_int
2696 ac_configure_args_raw=
2697 for ac_arg
2698 do
2699 case $ac_arg in
2700 *\'*)
2701 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2702 esac
2703 as_fn_append ac_configure_args_raw " '$ac_arg'"
2704 done
2705
2706 case $ac_configure_args_raw in
2707 *$as_nl*)
2708 ac_safe_unquote= ;;
2709 *)
2710 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2711 ac_unsafe_a="$ac_unsafe_z#~"
2712 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2713 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2714 esac
2715
2716 cat >config.log <<_ACEOF
2717 This file contains any messages produced by compilers while
2718 running configure, to aid debugging if configure makes a mistake.
2719
2720 It was created by LCDF typetools (TeX Live) $as_me 2.110, which was
2721 generated by GNU Autoconf 2.72. Invocation command line was
2722
2723 $ $0$ac_configure_args_raw
2724
2725 _ACEOF
2726 exec 5>>config.log
2727 {
2728 cat <<_ASUNAME
2729 ## --------- ##
2730 ## Platform. ##
2731 ## --------- ##
2732
2733 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2734 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2735 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2736 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2737 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2738
2739 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2740 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2741
2742 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2743 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2744 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2745 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2746 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2747 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2748 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2749
2750 _ASUNAME
2751
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755 IFS=$as_save_IFS
2756 case $as_dir in #(((
2757 '') as_dir=./ ;;
2758 */) ;;
2759 *) as_dir=$as_dir/ ;;
2760 esac
2761 printf "%s\n" "PATH: $as_dir"
2762 done
2763 IFS=$as_save_IFS
2764
2765 } >&5
2766
2767 cat >&5 <<_ACEOF
2768
2769
2770 ## ----------- ##
2771 ## Core tests. ##
2772 ## ----------- ##
2773
2774 _ACEOF
2775
2776
2777 # Keep a trace of the command line.
2778 # Strip out --no-create and --no-recursion so they do not pile up.
2779 # Strip out --silent because we don't want to record it for future runs.
2780 # Also quote any args containing shell meta-characters.
2781 # Make two passes to allow for proper duplicate-argument suppression.
2782 ac_configure_args=
2783 ac_configure_args0=
2784 ac_configure_args1=
2785 ac_must_keep_next=false
2786 for ac_pass in 1 2
2787 do
2788 for ac_arg
2789 do
2790 case $ac_arg in
2791 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2792 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2793 | -silent | --silent | --silen | --sile | --sil)
2794 continue ;;
2795 *\'*)
2796 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2797 esac
2798 case $ac_pass in
2799 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2800 2)
2801 as_fn_append ac_configure_args1 " '$ac_arg'"
2802 if test $ac_must_keep_next = true; then
2803 ac_must_keep_next=false # Got value, back to normal.
2804 else
2805 case $ac_arg in
2806 *=* | --config-cache | -C | -disable-* | --disable-* \
2807 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2808 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2809 | -with-* | --with-* | -without-* | --without-* | --x)
2810 case "$ac_configure_args0 " in
2811 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2812 esac
2813 ;;
2814 -* ) ac_must_keep_next=true ;;
2815 esac
2816 fi
2817 as_fn_append ac_configure_args " '$ac_arg'"
2818 ;;
2819 esac
2820 done
2821 done
2822 { ac_configure_args0=; unset ac_configure_args0;}
2823 { ac_configure_args1=; unset ac_configure_args1;}
2824
2825 # When interrupted or exit'd, cleanup temporary files, and complete
2826 # config.log. We remove comments because anyway the quotes in there
2827 # would cause problems or look ugly.
2828 # WARNING: Use '\'' to represent an apostrophe within the trap.
2829 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2830 trap 'exit_status=$?
2831 # Sanitize IFS.
2832 IFS=" "" $as_nl"
2833 # Save into config.log some information that might help in debugging.
2834 {
2835 echo
2836
2837 printf "%s\n" "## ---------------- ##
2838 ## Cache variables. ##
2839 ## ---------------- ##"
2840 echo
2841 # The following way of writing the cache mishandles newlines in values,
2842 (
2843 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2844 eval ac_val=\$$ac_var
2845 case $ac_val in #(
2846 *${as_nl}*)
2847 case $ac_var in #(
2848 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2849 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2850 esac
2851 case $ac_var in #(
2852 _ | IFS | as_nl) ;; #(
2853 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2854 *) { eval $ac_var=; unset $ac_var;} ;;
2855 esac ;;
2856 esac
2857 done
2858 (set) 2>&1 |
2859 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2860 *${as_nl}ac_space=\ *)
2861 sed -n \
2862 "s/'\''/'\''\\\\'\'''\''/g;
2863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2864 ;; #(
2865 *)
2866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2867 ;;
2868 esac |
2869 sort
2870 )
2871 echo
2872
2873 printf "%s\n" "## ----------------- ##
2874 ## Output variables. ##
2875 ## ----------------- ##"
2876 echo
2877 for ac_var in $ac_subst_vars
2878 do
2879 eval ac_val=\$$ac_var
2880 case $ac_val in
2881 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2882 esac
2883 printf "%s\n" "$ac_var='\''$ac_val'\''"
2884 done | sort
2885 echo
2886
2887 if test -n "$ac_subst_files"; then
2888 printf "%s\n" "## ------------------- ##
2889 ## File substitutions. ##
2890 ## ------------------- ##"
2891 echo
2892 for ac_var in $ac_subst_files
2893 do
2894 eval ac_val=\$$ac_var
2895 case $ac_val in
2896 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2897 esac
2898 printf "%s\n" "$ac_var='\''$ac_val'\''"
2899 done | sort
2900 echo
2901 fi
2902
2903 if test -s confdefs.h; then
2904 printf "%s\n" "## ----------- ##
2905 ## confdefs.h. ##
2906 ## ----------- ##"
2907 echo
2908 cat confdefs.h
2909 echo
2910 fi
2911 test "$ac_signal" != 0 &&
2912 printf "%s\n" "$as_me: caught signal $ac_signal"
2913 printf "%s\n" "$as_me: exit $exit_status"
2914 } >&5
2915 rm -f core *.core core.conftest.* &&
2916 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2917 exit $exit_status
2918 ' 0
2919 for ac_signal in 1 2 13 15; do
2920 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2921 done
2922 ac_signal=0
2923
2924 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2925 rm -f -r conftest* confdefs.h
2926
2927 printf "%s\n" "/* confdefs.h */" > confdefs.h
2928
2929 # Predefined preprocessor variables.
2930
2931 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2932
2933 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2934
2935 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2936
2937 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2938
2939 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2940
2941 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2942
2943
2944 # Let the site file select an alternate cache file if it wants to.
2945 # Prefer an explicitly selected file to automatically selected ones.
2946 if test -n "$CONFIG_SITE"; then
2947 ac_site_files="$CONFIG_SITE"
2948 elif test "x$prefix" != xNONE; then
2949 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2950 else
2951 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2952 fi
2953
2954 for ac_site_file in $ac_site_files
2955 do
2956 case $ac_site_file in #(
2957 */*) :
2958 ;; #(
2959 *) :
2960 ac_site_file=./$ac_site_file ;;
2961 esac
2962 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2964 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2965 sed 's/^/| /' "$ac_site_file" >&5
2966 . "$ac_site_file" \
2967 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2968 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2969 as_fn_error $? "failed to load site script $ac_site_file
2970 See 'config.log' for more details" "$LINENO" 5; }
2971 fi
2972 done
2973
2974 if test -r "$cache_file"; then
2975 # Some versions of bash will fail to source /dev/null (special files
2976 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2977 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2979 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2980 case $cache_file in
2981 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2982 *) . "./$cache_file";;
2983 esac
2984 fi
2985 else
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2987 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2988 >$cache_file
2989 fi
2990
2991 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2992 # Test code for whether the C compiler supports C89 (global declarations)
2993 ac_c_conftest_c89_globals='
2994 /* Does the compiler advertise C89 conformance?
2995 Do not test the value of __STDC__, because some compilers set it to 0
2996 while being otherwise adequately conformant. */
2997 #if !defined __STDC__
2998 # error "Compiler does not advertise C89 conformance"
2999 #endif
3000
3001 #include <stddef.h>
3002 #include <stdarg.h>
3003 struct stat;
3004 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3005 struct buf { int x; };
3006 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3007 static char *e (char **p, int i)
3008 {
3009 return p[i];
3010 }
3011 static char *f (char * (*g) (char **, int), char **p, ...)
3012 {
3013 char *s;
3014 va_list v;
3015 va_start (v,p);
3016 s = g (p, va_arg (v,int));
3017 va_end (v);
3018 return s;
3019 }
3020
3021 /* C89 style stringification. */
3022 #define noexpand_stringify(a) #a
3023 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
3024
3025 /* C89 style token pasting. Exercises some of the corner cases that
3026 e.g. old MSVC gets wrong, but not very hard. */
3027 #define noexpand_concat(a,b) a##b
3028 #define expand_concat(a,b) noexpand_concat(a,b)
3029 extern int vA;
3030 extern int vbee;
3031 #define aye A
3032 #define bee B
3033 int *pvA = &expand_concat(v,aye);
3034 int *pvbee = &noexpand_concat(v,bee);
3035
3036 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3037 function prototypes and stuff, but not \xHH hex character constants.
3038 These do not provoke an error unfortunately, instead are silently treated
3039 as an "x". The following induces an error, until -std is added to get
3040 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3041 array size at least. It is necessary to write \x00 == 0 to get something
3042 that is true only with -std. */
3043 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3044
3045 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3046 inside strings and character constants. */
3047 #define FOO(x) '\''x'\''
3048 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3049
3050 int test (int i, double x);
3051 struct s1 {int (*f) (int a);};
3052 struct s2 {int (*f) (double a);};
3053 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3054 int, int);'
3055
3056 # Test code for whether the C compiler supports C89 (body of main).
3057 ac_c_conftest_c89_main='
3058 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3059 '
3060
3061 # Test code for whether the C compiler supports C99 (global declarations)
3062 ac_c_conftest_c99_globals='
3063 /* Does the compiler advertise C99 conformance? */
3064 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3065 # error "Compiler does not advertise C99 conformance"
3066 #endif
3067
3068 // See if C++-style comments work.
3069
3070 #include <stdbool.h>
3071 extern int puts (const char *);
3072 extern int printf (const char *, ...);
3073 extern int dprintf (int, const char *, ...);
3074 extern void *malloc (size_t);
3075 extern void free (void *);
3076
3077 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3078 // dprintf is used instead of fprintf to avoid needing to declare
3079 // FILE and stderr.
3080 #define debug(...) dprintf (2, __VA_ARGS__)
3081 #define showlist(...) puts (#__VA_ARGS__)
3082 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3083 static void
3084 test_varargs_macros (void)
3085 {
3086 int x = 1234;
3087 int y = 5678;
3088 debug ("Flag");
3089 debug ("X = %d\n", x);
3090 showlist (The first, second, and third items.);
3091 report (x>y, "x is %d but y is %d", x, y);
3092 }
3093
3094 // Check long long types.
3095 #define BIG64 18446744073709551615ull
3096 #define BIG32 4294967295ul
3097 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3098 #if !BIG_OK
3099 #error "your preprocessor is broken"
3100 #endif
3101 #if BIG_OK
3102 #else
3103 #error "your preprocessor is broken"
3104 #endif
3105 static long long int bignum = -9223372036854775807LL;
3106 static unsigned long long int ubignum = BIG64;
3107
3108 struct incomplete_array
3109 {
3110 int datasize;
3111 double data[];
3112 };
3113
3114 struct named_init {
3115 int number;
3116 const wchar_t *name;
3117 double average;
3118 };
3119
3120 typedef const char *ccp;
3121
3122 static inline int
3123 test_restrict (ccp restrict text)
3124 {
3125 // Iterate through items via the restricted pointer.
3126 // Also check for declarations in for loops.
3127 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3128 continue;
3129 return 0;
3130 }
3131
3132 // Check varargs and va_copy.
3133 static bool
3134 test_varargs (const char *format, ...)
3135 {
3136 va_list args;
3137 va_start (args, format);
3138 va_list args_copy;
3139 va_copy (args_copy, args);
3140
3141 const char *str = "";
3142 int number = 0;
3143 float fnumber = 0;
3144
3145 while (*format)
3146 {
3147 switch (*format++)
3148 {
3149 case '\''s'\'': // string
3150 str = va_arg (args_copy, const char *);
3151 break;
3152 case '\''d'\'': // int
3153 number = va_arg (args_copy, int);
3154 break;
3155 case '\''f'\'': // float
3156 fnumber = va_arg (args_copy, double);
3157 break;
3158 default:
3159 break;
3160 }
3161 }
3162 va_end (args_copy);
3163 va_end (args);
3164
3165 return *str && number && fnumber;
3166 }
3167 '
3168
3169 # Test code for whether the C compiler supports C99 (body of main).
3170 ac_c_conftest_c99_main='
3171 // Check bool.
3172 _Bool success = false;
3173 success |= (argc != 0);
3174
3175 // Check restrict.
3176 if (test_restrict ("String literal") == 0)
3177 success = true;
3178 char *restrict newvar = "Another string";
3179
3180 // Check varargs.
3181 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3182 test_varargs_macros ();
3183
3184 // Check flexible array members.
3185 struct incomplete_array *ia =
3186 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3187 ia->datasize = 10;
3188 for (int i = 0; i < ia->datasize; ++i)
3189 ia->data[i] = i * 1.234;
3190 // Work around memory leak warnings.
3191 free (ia);
3192
3193 // Check named initializers.
3194 struct named_init ni = {
3195 .number = 34,
3196 .name = L"Test wide string",
3197 .average = 543.34343,
3198 };
3199
3200 ni.number = 58;
3201
3202 int dynamic_array[ni.number];
3203 dynamic_array[0] = argv[0][0];
3204 dynamic_array[ni.number - 1] = 543;
3205
3206 // work around unused variable warnings
3207 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3208 || dynamic_array[ni.number - 1] != 543);
3209 '
3210
3211 # Test code for whether the C compiler supports C11 (global declarations)
3212 ac_c_conftest_c11_globals='
3213 /* Does the compiler advertise C11 conformance? */
3214 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3215 # error "Compiler does not advertise C11 conformance"
3216 #endif
3217
3218 // Check _Alignas.
3219 char _Alignas (double) aligned_as_double;
3220 char _Alignas (0) no_special_alignment;
3221 extern char aligned_as_int;
3222 char _Alignas (0) _Alignas (int) aligned_as_int;
3223
3224 // Check _Alignof.
3225 enum
3226 {
3227 int_alignment = _Alignof (int),
3228 int_array_alignment = _Alignof (int[100]),
3229 char_alignment = _Alignof (char)
3230 };
3231 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3232
3233 // Check _Noreturn.
3234 int _Noreturn does_not_return (void) { for (;;) continue; }
3235
3236 // Check _Static_assert.
3237 struct test_static_assert
3238 {
3239 int x;
3240 _Static_assert (sizeof (int) <= sizeof (long int),
3241 "_Static_assert does not work in struct");
3242 long int y;
3243 };
3244
3245 // Check UTF-8 literals.
3246 #define u8 syntax error!
3247 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3248
3249 // Check duplicate typedefs.
3250 typedef long *long_ptr;
3251 typedef long int *long_ptr;
3252 typedef long_ptr long_ptr;
3253
3254 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3255 struct anonymous
3256 {
3257 union {
3258 struct { int i; int j; };
3259 struct { int k; long int l; } w;
3260 };
3261 int m;
3262 } v1;
3263 '
3264
3265 # Test code for whether the C compiler supports C11 (body of main).
3266 ac_c_conftest_c11_main='
3267 _Static_assert ((offsetof (struct anonymous, i)
3268 == offsetof (struct anonymous, w.k)),
3269 "Anonymous union alignment botch");
3270 v1.i = 2;
3271 v1.w.k = 5;
3272 ok |= v1.i != 5;
3273 '
3274
3275 # Test code for whether the C compiler supports C11 (complete).
3276 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3277 ${ac_c_conftest_c99_globals}
3278 ${ac_c_conftest_c11_globals}
3279
3280 int
3281 main (int argc, char **argv)
3282 {
3283 int ok = 0;
3284 ${ac_c_conftest_c89_main}
3285 ${ac_c_conftest_c99_main}
3286 ${ac_c_conftest_c11_main}
3287 return ok;
3288 }
3289 "
3290
3291 # Test code for whether the C compiler supports C99 (complete).
3292 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3293 ${ac_c_conftest_c99_globals}
3294
3295 int
3296 main (int argc, char **argv)
3297 {
3298 int ok = 0;
3299 ${ac_c_conftest_c89_main}
3300 ${ac_c_conftest_c99_main}
3301 return ok;
3302 }
3303 "
3304
3305 # Test code for whether the C compiler supports C89 (complete).
3306 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3307
3308 int
3309 main (int argc, char **argv)
3310 {
3311 int ok = 0;
3312 ${ac_c_conftest_c89_main}
3313 return ok;
3314 }
3315 "
3316
3317 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3318 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3319 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3320 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3321 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3322 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3323 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3324 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3325 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3326 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3327 # Test code for whether the C++ compiler supports C++98 (global declarations)
3328 ac_cxx_conftest_cxx98_globals='
3329 // Does the compiler advertise C++98 conformance?
3330 #if !defined __cplusplus || __cplusplus < 199711L
3331 # error "Compiler does not advertise C++98 conformance"
3332 #endif
3333
3334 // These inclusions are to reject old compilers that
3335 // lack the unsuffixed header files.
3336 #include <cstdlib>
3337 #include <exception>
3338
3339 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3340 extern void assert (int);
3341 namespace std {
3342 extern int strcmp (const char *, const char *);
3343 }
3344
3345 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3346 using std::exception;
3347 using std::strcmp;
3348
3349 namespace {
3350
3351 void test_exception_syntax()
3352 {
3353 try {
3354 throw "test";
3355 } catch (const char *s) {
3356 // Extra parentheses suppress a warning when building autoconf itself,
3357 // due to lint rules shared with more typical C programs.
3358 assert (!(strcmp) (s, "test"));
3359 }
3360 }
3361
3362 template <typename T> struct test_template
3363 {
3364 T const val;
3365 explicit test_template(T t) : val(t) {}
3366 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3367 };
3368
3369 } // anonymous namespace
3370 '
3371
3372 # Test code for whether the C++ compiler supports C++98 (body of main)
3373 ac_cxx_conftest_cxx98_main='
3374 assert (argc);
3375 assert (! argv[0]);
3376 {
3377 test_exception_syntax ();
3378 test_template<double> tt (2.0);
3379 assert (tt.add (4) == 6.0);
3380 assert (true && !false);
3381 }
3382 '
3383
3384 # Test code for whether the C++ compiler supports C++11 (global declarations)
3385 ac_cxx_conftest_cxx11_globals='
3386 // Does the compiler advertise C++ 2011 conformance?
3387 #if !defined __cplusplus || __cplusplus < 201103L
3388 # error "Compiler does not advertise C++11 conformance"
3389 #endif
3390
3391 namespace cxx11test
3392 {
3393 constexpr int get_val() { return 20; }
3394
3395 struct testinit
3396 {
3397 int i;
3398 double d;
3399 };
3400
3401 class delegate
3402 {
3403 public:
3404 delegate(int n) : n(n) {}
3405 delegate(): delegate(2354) {}
3406
3407 virtual int getval() { return this->n; };
3408 protected:
3409 int n;
3410 };
3411
3412 class overridden : public delegate
3413 {
3414 public:
3415 overridden(int n): delegate(n) {}
3416 virtual int getval() override final { return this->n * 2; }
3417 };
3418
3419 class nocopy
3420 {
3421 public:
3422 nocopy(int i): i(i) {}
3423 nocopy() = default;
3424 nocopy(const nocopy&) = delete;
3425 nocopy & operator=(const nocopy&) = delete;
3426 private:
3427 int i;
3428 };
3429
3430 // for testing lambda expressions
3431 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3432 {
3433 return f(v);
3434 }
3435
3436 // for testing variadic templates and trailing return types
3437 template <typename V> auto sum(V first) -> V
3438 {
3439 return first;
3440 }
3441 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3442 {
3443 return first + sum(rest...);
3444 }
3445 }
3446 '
3447
3448 # Test code for whether the C++ compiler supports C++11 (body of main)
3449 ac_cxx_conftest_cxx11_main='
3450 {
3451 // Test auto and decltype
3452 auto a1 = 6538;
3453 auto a2 = 48573953.4;
3454 auto a3 = "String literal";
3455
3456 int total = 0;
3457 for (auto i = a3; *i; ++i) { total += *i; }
3458
3459 decltype(a2) a4 = 34895.034;
3460 }
3461 {
3462 // Test constexpr
3463 short sa[cxx11test::get_val()] = { 0 };
3464 }
3465 {
3466 // Test initializer lists
3467 cxx11test::testinit il = { 4323, 435234.23544 };
3468 }
3469 {
3470 // Test range-based for
3471 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3472 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3473 for (auto &x : array) { x += 23; }
3474 }
3475 {
3476 // Test lambda expressions
3477 using cxx11test::eval;
3478 assert (eval ([](int x) { return x*2; }, 21) == 42);
3479 double d = 2.0;
3480 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3481 assert (d == 5.0);
3482 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3483 assert (d == 5.0);
3484 }
3485 {
3486 // Test use of variadic templates
3487 using cxx11test::sum;
3488 auto a = sum(1);
3489 auto b = sum(1, 2);
3490 auto c = sum(1.0, 2.0, 3.0);
3491 }
3492 {
3493 // Test constructor delegation
3494 cxx11test::delegate d1;
3495 cxx11test::delegate d2();
3496 cxx11test::delegate d3(45);
3497 }
3498 {
3499 // Test override and final
3500 cxx11test::overridden o1(55464);
3501 }
3502 {
3503 // Test nullptr
3504 char *c = nullptr;
3505 }
3506 {
3507 // Test template brackets
3508 test_template<::test_template<int>> v(test_template<int>(12));
3509 }
3510 {
3511 // Unicode literals
3512 char const *utf8 = u8"UTF-8 string \u2500";
3513 char16_t const *utf16 = u"UTF-8 string \u2500";
3514 char32_t const *utf32 = U"UTF-32 string \u2500";
3515 }
3516 '
3517
3518 # Test code for whether the C compiler supports C++11 (complete).
3519 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3520 ${ac_cxx_conftest_cxx11_globals}
3521
3522 int
3523 main (int argc, char **argv)
3524 {
3525 int ok = 0;
3526 ${ac_cxx_conftest_cxx98_main}
3527 ${ac_cxx_conftest_cxx11_main}
3528 return ok;
3529 }
3530 "
3531
3532 # Test code for whether the C compiler supports C++98 (complete).
3533 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3534 int
3535 main (int argc, char **argv)
3536 {
3537 int ok = 0;
3538 ${ac_cxx_conftest_cxx98_main}
3539 return ok;
3540 }
3541 "
3542
3543
3544 # Auxiliary files required by this configure script.
3545 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
3546
3547 # Locations in which to look for auxiliary files.
3548 ac_aux_dir_candidates="${srcdir}/../../build-aux"
3549
3550 # Search for a directory containing all of the required auxiliary files,
3551 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3552 # If we don't find one directory that contains all the files we need,
3553 # we report the set of missing files from the *first* directory in
3554 # $ac_aux_dir_candidates and give up.
3555 ac_missing_aux_files=""
3556 ac_first_candidate=:
3557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 as_found=false
3560 for as_dir in $ac_aux_dir_candidates
3561 do
3562 IFS=$as_save_IFS
3563 case $as_dir in #(((
3564 '') as_dir=./ ;;
3565 */) ;;
3566 *) as_dir=$as_dir/ ;;
3567 esac
3568 as_found=:
3569
3570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3571 ac_aux_dir_found=yes
3572 ac_install_sh=
3573 for ac_aux in $ac_aux_files
3574 do
3575 # As a special case, if "install-sh" is required, that requirement
3576 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3577 # and $ac_install_sh is set appropriately for whichever one is found.
3578 if test x"$ac_aux" = x"install-sh"
3579 then
3580 if test -f "${as_dir}install-sh"; then
3581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3582 ac_install_sh="${as_dir}install-sh -c"
3583 elif test -f "${as_dir}install.sh"; then
3584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3585 ac_install_sh="${as_dir}install.sh -c"
3586 elif test -f "${as_dir}shtool"; then
3587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3588 ac_install_sh="${as_dir}shtool install -c"
3589 else
3590 ac_aux_dir_found=no
3591 if $ac_first_candidate; then
3592 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3593 else
3594 break
3595 fi
3596 fi
3597 else
3598 if test -f "${as_dir}${ac_aux}"; then
3599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3600 else
3601 ac_aux_dir_found=no
3602 if $ac_first_candidate; then
3603 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3604 else
3605 break
3606 fi
3607 fi
3608 fi
3609 done
3610 if test "$ac_aux_dir_found" = yes; then
3611 ac_aux_dir="$as_dir"
3612 break
3613 fi
3614 ac_first_candidate=false
3615
3616 as_found=false
3617 done
3618 IFS=$as_save_IFS
3619 if $as_found
3620 then :
3621
3622 else case e in #(
3623 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3624 esac
3625 fi
3626
3627
3628 # These three variables are undocumented and unsupported,
3629 # and are intended to be withdrawn in a future Autoconf release.
3630 # They can cause serious problems if a builder's source tree is in a directory
3631 # whose full name contains unusual characters.
3632 if test -f "${ac_aux_dir}config.guess"; then
3633 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3634 fi
3635 if test -f "${ac_aux_dir}config.sub"; then
3636 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3637 fi
3638 if test -f "$ac_aux_dir/configure"; then
3639 ac_configure="$SHELL ${ac_aux_dir}configure"
3640 fi
3641
3642 # Check that the precious variables saved in the cache have kept the same
3643 # value.
3644 ac_cache_corrupted=false
3645 for ac_var in $ac_precious_vars; do
3646 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3647 eval ac_new_set=\$ac_env_${ac_var}_set
3648 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3649 eval ac_new_val=\$ac_env_${ac_var}_value
3650 case $ac_old_set,$ac_new_set in
3651 set,)
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3653 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3654 ac_cache_corrupted=: ;;
3655 ,set)
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3657 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3658 ac_cache_corrupted=: ;;
3659 ,);;
3660 *)
3661 if test "x$ac_old_val" != "x$ac_new_val"; then
3662 # differences in whitespace do not lead to failure.
3663 ac_old_val_w=`echo x $ac_old_val`
3664 ac_new_val_w=`echo x $ac_new_val`
3665 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3667 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3668 ac_cache_corrupted=:
3669 else
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3671 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3672 eval $ac_var=\$ac_old_val
3673 fi
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3675 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3677 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3678 fi;;
3679 esac
3680 # Pass precious variables to config.status.
3681 if test "$ac_new_set" = set; then
3682 case $ac_new_val in
3683 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3684 *) ac_arg=$ac_var=$ac_new_val ;;
3685 esac
3686 case " $ac_configure_args " in
3687 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3688 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3689 esac
3690 fi
3691 done
3692 if $ac_cache_corrupted; then
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3694 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3696 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3697 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3698 and start over" "$LINENO" 5
3699 fi
3700 ## -------------------- ##
3701 ## Main body of script. ##
3702 ## -------------------- ##
3703
3704 ac_ext=c
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710
3711
3712
3713
3714
3715
3716 am__api_version='1.18'
3717
3718
3719
3720 # Find a good install program. We prefer a C program (faster),
3721 # so one script is as good as another. But avoid the broken or
3722 # incompatible versions:
3723 # SysV /etc/install, /usr/sbin/install
3724 # SunOS /usr/etc/install
3725 # IRIX /sbin/install
3726 # AIX /bin/install
3727 # AmigaOS /C/install, which installs bootblocks on floppy discs
3728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3731 # OS/2's system install, which has a completely different semantic
3732 # ./install, which can be erroneously created by make from ./install.sh.
3733 # Reject install programs that cannot install multiple files.
3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3735 printf %s "checking for a BSD-compatible install... " >&6; }
3736 if test -z "$INSTALL"; then
3737 if test ${ac_cv_path_install+y}
3738 then :
3739 printf %s "(cached) " >&6
3740 else case e in #(
3741 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744 IFS=$as_save_IFS
3745 case $as_dir in #(((
3746 '') as_dir=./ ;;
3747 */) ;;
3748 *) as_dir=$as_dir/ ;;
3749 esac
3750 # Account for fact that we put trailing slashes in our PATH walk.
3751 case $as_dir in #((
3752 ./ | /[cC]/* | \
3753 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3754 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3755 /usr/ucb/* ) ;;
3756 *)
3757 # OSF1 and SCO ODT 3.0 have their own names for install.
3758 # Don't use installbsd from OSF since it installs stuff as root
3759 # by default.
3760 for ac_prog in ginstall scoinst install; do
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3763 if test $ac_prog = install &&
3764 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3765 # AIX install. It has an incompatible calling convention.
3766 :
3767 elif test $ac_prog = install &&
3768 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3769 # program-specific install script used by HP pwplus--don't use.
3770 :
3771 else
3772 rm -rf conftest.one conftest.two conftest.dir
3773 echo one > conftest.one
3774 echo two > conftest.two
3775 mkdir conftest.dir
3776 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3777 test -s conftest.one && test -s conftest.two &&
3778 test -s conftest.dir/conftest.one &&
3779 test -s conftest.dir/conftest.two
3780 then
3781 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3782 break 3
3783 fi
3784 fi
3785 fi
3786 done
3787 done
3788 ;;
3789 esac
3790
3791 done
3792 IFS=$as_save_IFS
3793
3794 rm -rf conftest.one conftest.two conftest.dir
3795 ;;
3796 esac
3797 fi
3798 if test ${ac_cv_path_install+y}; then
3799 INSTALL=$ac_cv_path_install
3800 else
3801 # As a last resort, use the slow shell script. Don't cache a
3802 # value for INSTALL within a source directory, because that will
3803 # break other packages using the cache if that directory is
3804 # removed, or if the value is a relative name.
3805 INSTALL=$ac_install_sh
3806 fi
3807 fi
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3809 printf "%s\n" "$INSTALL" >&6; }
3810
3811 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3812 # It thinks the first close brace ends the variable substitution.
3813 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3814
3815 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3816
3817 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3818
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3820 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3821 if test ${am_cv_sleep_fractional_seconds+y}
3822 then :
3823 printf %s "(cached) " >&6
3824 else case e in #(
3825 e) if sleep 0.001 2>/dev/null
3826 then :
3827 am_cv_sleep_fractional_seconds=yes
3828 else case e in #(
3829 e) am_cv_sleep_fractional_seconds=no ;;
3830 esac
3831 fi
3832 ;;
3833 esac
3834 fi
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3836 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3837
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3839 printf %s "checking filesystem timestamp resolution... " >&6; }
3840 if test ${am_cv_filesystem_timestamp_resolution+y}
3841 then :
3842 printf %s "(cached) " >&6
3843 else case e in #(
3844 e) # Default to the worst case.
3845 am_cv_filesystem_timestamp_resolution=2
3846
3847 # Only try to go finer than 1 sec if sleep can do it.
3848 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3849 # - 1 sec is not much of a win compared to 2 sec, and
3850 # - it takes 2 seconds to perform the test whether 1 sec works.
3851 #
3852 # Instead, just use the default 2s on platforms that have 1s resolution,
3853 # accept the extra 1s delay when using $sleep in the Automake tests, in
3854 # exchange for not incurring the 2s delay for running the test for all
3855 # packages.
3856 #
3857 am_try_resolutions=
3858 if test "$am_cv_sleep_fractional_seconds" = yes; then
3859 # Even a millisecond often causes a bunch of false positives,
3860 # so just try a hundredth of a second. The time saved between .001 and
3861 # .01 is not terribly consequential.
3862 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3863 fi
3864
3865 # In order to catch current-generation FAT out, we must *modify* files
3866 # that already exist; the *creation* timestamp is finer. Use names
3867 # that make ls -t sort them differently when they have equal
3868 # timestamps than when they have distinct timestamps, keeping
3869 # in mind that ls -t prints the *newest* file first.
3870 rm -f conftest.ts?
3871 : > conftest.ts1
3872 : > conftest.ts2
3873 : > conftest.ts3
3874
3875 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3876 # clobber the current shell's arguments. (Outer-level square brackets
3877 # are removed by m4; they're present so that m4 does not expand
3878 # <dollar><star>; be careful, easy to get confused.)
3879 if (
3880 set X `ls -t conftest.ts[12]` &&
3881 {
3882 test "$*" != "X conftest.ts1 conftest.ts2" ||
3883 test "$*" != "X conftest.ts2 conftest.ts1";
3884 }
3885 ); then :; else
3886 # If neither matched, then we have a broken ls. This can happen
3887 # if, for instance, CONFIG_SHELL is bash and it inherits a
3888 # broken ls alias from the environment. This has actually
3889 # happened. Such a system could not be considered "sane".
3890 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3891 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3892 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3893 as_fn_error $? "ls -t produces unexpected output.
3894 Make sure there is not a broken ls alias in your environment.
3895 See 'config.log' for more details" "$LINENO" 5; }
3896 fi
3897
3898 for am_try_res in $am_try_resolutions; do
3899 # Any one fine-grained sleep might happen to cross the boundary
3900 # between two values of a coarser actual resolution, but if we do
3901 # two fine-grained sleeps in a row, at least one of them will fall
3902 # entirely within a coarse interval.
3903 echo alpha > conftest.ts1
3904 sleep $am_try_res
3905 echo beta > conftest.ts2
3906 sleep $am_try_res
3907 echo gamma > conftest.ts3
3908
3909 # We assume that 'ls -t' will make use of high-resolution
3910 # timestamps if the operating system supports them at all.
3911 if (set X `ls -t conftest.ts?` &&
3912 test "$2" = conftest.ts3 &&
3913 test "$3" = conftest.ts2 &&
3914 test "$4" = conftest.ts1); then
3915 #
3916 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3917 # because we don't need to test make.
3918 make_ok=true
3919 if test $am_try_res != 1; then
3920 # But if we've succeeded so far with a subsecond resolution, we
3921 # have one more thing to check: make. It can happen that
3922 # everything else supports the subsecond mtimes, but make doesn't;
3923 # notably on macOS, which ships make 3.81 from 2006 (the last one
3924 # released under GPLv2). https://bugs.gnu.org/68808
3925 #
3926 # We test $MAKE if it is defined in the environment, else "make".
3927 # It might get overridden later, but our hope is that in practice
3928 # it does not matter: it is the system "make" which is (by far)
3929 # the most likely to be broken, whereas if the user overrides it,
3930 # probably they did so with a better, or at least not worse, make.
3931 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3932 #
3933 # Create a Makefile (real tab character here):
3934 rm -f conftest.mk
3935 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3936 echo ' touch conftest.ts2' >>conftest.mk
3937 #
3938 # Now, running
3939 # touch conftest.ts1; touch conftest.ts2; make
3940 # should touch ts1 because ts2 is newer. This could happen by luck,
3941 # but most often, it will fail if make's support is insufficient. So
3942 # test for several consecutive successes.
3943 #
3944 # (We reuse conftest.ts[12] because we still want to modify existing
3945 # files, not create new ones, per above.)
3946 n=0
3947 make=${MAKE-make}
3948 until test $n -eq 3; do
3949 echo one > conftest.ts1
3950 sleep $am_try_res
3951 echo two > conftest.ts2 # ts2 should now be newer than ts1
3952 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3953 make_ok=false
3954 break # out of $n loop
3955 fi
3956 n=`expr $n + 1`
3957 done
3958 fi
3959 #
3960 if $make_ok; then
3961 # Everything we know to check worked out, so call this resolution good.
3962 am_cv_filesystem_timestamp_resolution=$am_try_res
3963 break # out of $am_try_res loop
3964 fi
3965 # Otherwise, we'll go on to check the next resolution.
3966 fi
3967 done
3968 rm -f conftest.ts?
3969 # (end _am_filesystem_timestamp_resolution)
3970 ;;
3971 esac
3972 fi
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3974 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3975
3976 # This check should not be cached, as it may vary across builds of
3977 # different projects.
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3979 printf %s "checking whether build environment is sane... " >&6; }
3980 # Reject unsafe characters in $srcdir or the absolute working directory
3981 # name. Accept space and tab only in the latter.
3982 am_lf='
3983 '
3984 case `pwd` in
3985 *[\\\"\#\$\&\'\`$am_lf]*)
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 printf "%s\n" "no" >&6; }
3988 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3989 esac
3990 case $srcdir in
3991 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 printf "%s\n" "no" >&6; }
3994 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3995 esac
3996
3997 # Do 'set' in a subshell so we don't clobber the current shell's
3998 # arguments. Must try -L first in case configure is actually a
3999 # symlink; some systems play weird games with the mod time of symlinks
4000 # (eg FreeBSD returns the mod time of the symlink's containing
4001 # directory).
4002 am_build_env_is_sane=no
4003 am_has_slept=no
4004 rm -f conftest.file
4005 for am_try in 1 2; do
4006 echo "timestamp, slept: $am_has_slept" > conftest.file
4007 if (
4008 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4009 if test "$*" = "X"; then
4010 # -L didn't work.
4011 set X `ls -t "$srcdir/configure" conftest.file`
4012 fi
4013 test "$2" = conftest.file
4014 ); then
4015 am_build_env_is_sane=yes
4016 break
4017 fi
4018 # Just in case.
4019 sleep "$am_cv_filesystem_timestamp_resolution"
4020 am_has_slept=yes
4021 done
4022
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4024 printf "%s\n" "$am_build_env_is_sane" >&6; }
4025 if test "$am_build_env_is_sane" = no; then
4026 as_fn_error $? "newly created file is older than distributed files!
4027 Check your system clock" "$LINENO" 5
4028 fi
4029
4030 # If we didn't sleep, we still need to ensure time stamps of config.status and
4031 # generated files are strictly newer.
4032 am_sleep_pid=
4033 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4034 then :
4035
4036 else case e in #(
4037 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4038 am_sleep_pid=$!
4039 ;;
4040 esac
4041 fi
4042
4043 rm -f conftest.file
4044
4045 test "$program_prefix" != NONE &&
4046 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4047 # Use a double $ so make ignores it.
4048 test "$program_suffix" != NONE &&
4049 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4050 # Double any \ or $.
4051 # By default was 's,x,x', remove it if useless.
4052 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4053 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4054
4055
4056 # Expand $ac_aux_dir to an absolute path.
4057 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4058
4059
4060 if test x"${MISSING+set}" != xset; then
4061 MISSING="\${SHELL} '$am_aux_dir/missing'"
4062 fi
4063 # Use eval to expand $SHELL
4064 if eval "$MISSING --is-lightweight"; then
4065 am_missing_run="$MISSING "
4066 else
4067 am_missing_run=
4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4069 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4070 fi
4071
4072 if test x"${install_sh+set}" != xset; then
4073 case $am_aux_dir in
4074 *\ * | *\ *)
4075 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4076 *)
4077 install_sh="\${SHELL} $am_aux_dir/install-sh"
4078 esac
4079 fi
4080
4081 # Installed binaries are usually stripped using 'strip' when the user
4082 # run "make install-strip". However 'strip' might not be the right
4083 # tool to use in cross-compilation environments, therefore Automake
4084 # will honor the 'STRIP' environment variable to overrule this program.
4085 if test "$cross_compiling" != no; then
4086 if test -n "$ac_tool_prefix"; then
4087 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4088 set dummy ${ac_tool_prefix}strip; ac_word=$2
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 printf %s "checking for $ac_word... " >&6; }
4091 if test ${ac_cv_prog_STRIP+y}
4092 then :
4093 printf %s "(cached) " >&6
4094 else case e in #(
4095 e) if test -n "$STRIP"; then
4096 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101 IFS=$as_save_IFS
4102 case $as_dir in #(((
4103 '') as_dir=./ ;;
4104 */) ;;
4105 *) as_dir=$as_dir/ ;;
4106 esac
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4109 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4111 break 2
4112 fi
4113 done
4114 done
4115 IFS=$as_save_IFS
4116
4117 fi ;;
4118 esac
4119 fi
4120 STRIP=$ac_cv_prog_STRIP
4121 if test -n "$STRIP"; then
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4123 printf "%s\n" "$STRIP" >&6; }
4124 else
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 printf "%s\n" "no" >&6; }
4127 fi
4128
4129
4130 fi
4131 if test -z "$ac_cv_prog_STRIP"; then
4132 ac_ct_STRIP=$STRIP
4133 # Extract the first word of "strip", so it can be a program name with args.
4134 set dummy strip; ac_word=$2
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 printf %s "checking for $ac_word... " >&6; }
4137 if test ${ac_cv_prog_ac_ct_STRIP+y}
4138 then :
4139 printf %s "(cached) " >&6
4140 else case e in #(
4141 e) if test -n "$ac_ct_STRIP"; then
4142 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147 IFS=$as_save_IFS
4148 case $as_dir in #(((
4149 '') as_dir=./ ;;
4150 */) ;;
4151 *) as_dir=$as_dir/ ;;
4152 esac
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4155 ac_cv_prog_ac_ct_STRIP="strip"
4156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4157 break 2
4158 fi
4159 done
4160 done
4161 IFS=$as_save_IFS
4162
4163 fi ;;
4164 esac
4165 fi
4166 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4167 if test -n "$ac_ct_STRIP"; then
4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4169 printf "%s\n" "$ac_ct_STRIP" >&6; }
4170 else
4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 printf "%s\n" "no" >&6; }
4173 fi
4174
4175 if test "x$ac_ct_STRIP" = x; then
4176 STRIP=":"
4177 else
4178 case $cross_compiling:$ac_tool_warned in
4179 yes:)
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4181 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4182 ac_tool_warned=yes ;;
4183 esac
4184 STRIP=$ac_ct_STRIP
4185 fi
4186 else
4187 STRIP="$ac_cv_prog_STRIP"
4188 fi
4189
4190 fi
4191 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4192
4193
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4195 printf %s "checking for a race-free mkdir -p... " >&6; }
4196 if test -z "$MKDIR_P"; then
4197 if test ${ac_cv_path_mkdir+y}
4198 then :
4199 printf %s "(cached) " >&6
4200 else case e in #(
4201 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4203 do
4204 IFS=$as_save_IFS
4205 case $as_dir in #(((
4206 '') as_dir=./ ;;
4207 */) ;;
4208 *) as_dir=$as_dir/ ;;
4209 esac
4210 for ac_prog in mkdir gmkdir; do
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4213 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4214 'mkdir ('*'coreutils) '* | \
4215 *'BusyBox '* | \
4216 'mkdir (fileutils) '4.1*)
4217 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4218 break 3;;
4219 esac
4220 done
4221 done
4222 done
4223 IFS=$as_save_IFS
4224 ;;
4225 esac
4226 fi
4227
4228 test -d ./--version && rmdir ./--version
4229 if test ${ac_cv_path_mkdir+y}; then
4230 MKDIR_P="$ac_cv_path_mkdir -p"
4231 else
4232 # As a last resort, use plain mkdir -p,
4233 # in the hope it doesn't have the bugs of ancient mkdir.
4234 MKDIR_P='mkdir -p'
4235 fi
4236 fi
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4238 printf "%s\n" "$MKDIR_P" >&6; }
4239
4240 for ac_prog in gawk mawk nawk awk
4241 do
4242 # Extract the first word of "$ac_prog", so it can be a program name with args.
4243 set dummy $ac_prog; ac_word=$2
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 printf %s "checking for $ac_word... " >&6; }
4246 if test ${ac_cv_prog_AWK+y}
4247 then :
4248 printf %s "(cached) " >&6
4249 else case e in #(
4250 e) if test -n "$AWK"; then
4251 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4255 do
4256 IFS=$as_save_IFS
4257 case $as_dir in #(((
4258 '') as_dir=./ ;;
4259 */) ;;
4260 *) as_dir=$as_dir/ ;;
4261 esac
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4264 ac_cv_prog_AWK="$ac_prog"
4265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4266 break 2
4267 fi
4268 done
4269 done
4270 IFS=$as_save_IFS
4271
4272 fi ;;
4273 esac
4274 fi
4275 AWK=$ac_cv_prog_AWK
4276 if test -n "$AWK"; then
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4278 printf "%s\n" "$AWK" >&6; }
4279 else
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 printf "%s\n" "no" >&6; }
4282 fi
4283
4284
4285 test -n "$AWK" && break
4286 done
4287
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4289 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4290 set x ${MAKE-make}
4291 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4292 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4293 then :
4294 printf %s "(cached) " >&6
4295 else case e in #(
4296 e) cat >conftest.make <<\_ACEOF
4297 SHELL = /bin/sh
4298 all:
4299 @echo '@@@%%%=$(MAKE)=@@@%%%'
4300 _ACEOF
4301 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4302 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4303 *@@@%%%=?*=@@@%%%*)
4304 eval ac_cv_prog_make_${ac_make}_set=yes;;
4305 *)
4306 eval ac_cv_prog_make_${ac_make}_set=no;;
4307 esac
4308 rm -f conftest.make ;;
4309 esac
4310 fi
4311 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4313 printf "%s\n" "yes" >&6; }
4314 SET_MAKE=
4315 else
4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 printf "%s\n" "no" >&6; }
4318 SET_MAKE="MAKE=${MAKE-make}"
4319 fi
4320
4321 rm -rf .tst 2>/dev/null
4322 mkdir .tst 2>/dev/null
4323 if test -d .tst; then
4324 am__leading_dot=.
4325 else
4326 am__leading_dot=_
4327 fi
4328 rmdir .tst 2>/dev/null
4329
4330 AM_DEFAULT_VERBOSITY=1
4331 # Check whether --enable-silent-rules was given.
4332 if test ${enable_silent_rules+y}
4333 then :
4334 enableval=$enable_silent_rules;
4335 fi
4336
4337 am_make=${MAKE-make}
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4339 printf %s "checking whether $am_make supports nested variables... " >&6; }
4340 if test ${am_cv_make_support_nested_variables+y}
4341 then :
4342 printf %s "(cached) " >&6
4343 else case e in #(
4344 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4345 BAR0=false
4346 BAR1=true
4347 V=1
4348 am__doit:
4349 @$(TRUE)
4350 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4351 am_cv_make_support_nested_variables=yes
4352 else
4353 am_cv_make_support_nested_variables=no
4354 fi ;;
4355 esac
4356 fi
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4358 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4359 AM_BACKSLASH='\'
4360
4361 am__rm_f_notfound=
4362 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4363 then :
4364
4365 else case e in #(
4366 e) am__rm_f_notfound='""' ;;
4367 esac
4368 fi
4369
4370
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4372 printf %s "checking xargs -n works... " >&6; }
4373 if test ${am_cv_xargs_n_works+y}
4374 then :
4375 printf %s "(cached) " >&6
4376 else case e in #(
4377 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4378 3"
4379 then :
4380 am_cv_xargs_n_works=yes
4381 else case e in #(
4382 e) am_cv_xargs_n_works=no ;;
4383 esac
4384 fi ;;
4385 esac
4386 fi
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4388 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4389 if test "$am_cv_xargs_n_works" = yes
4390 then :
4391 am__xargs_n='xargs -n'
4392 else case e in #(
4393 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4394 ;;
4395 esac
4396 fi
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407 DEPDIR="${am__leading_dot}deps"
4408
4409 ac_config_commands="$ac_config_commands depfiles"
4410
4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4412 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4413 cat > confinc.mk << 'END'
4414 am__doit:
4415 @echo this is the am__doit target >confinc.out
4416 .PHONY: am__doit
4417 END
4418 am__include="#"
4419 am__quote=
4420 # BSD make does it like this.
4421 echo '.include "confinc.mk" # ignored' > confmf.BSD
4422 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4423 echo 'include confinc.mk # ignored' > confmf.GNU
4424 _am_result=no
4425 for s in GNU BSD; do
4426 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4427 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }
4431 case $?:`cat confinc.out 2>/dev/null` in #(
4432 '0:this is the am__doit target') :
4433 case $s in #(
4434 BSD) :
4435 am__include='.include' am__quote='"' ;; #(
4436 *) :
4437 am__include='include' am__quote='' ;;
4438 esac ;; #(
4439 *) :
4440 ;;
4441 esac
4442 if test "$am__include" != "#"; then
4443 _am_result="yes ($s style)"
4444 break
4445 fi
4446 done
4447 rm -f confinc.* confmf.*
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4449 printf "%s\n" "${_am_result}" >&6; }
4450
4451 # Check whether --enable-dependency-tracking was given.
4452 if test ${enable_dependency_tracking+y}
4453 then :
4454 enableval=$enable_dependency_tracking;
4455 fi
4456
4457 if test "x$enable_dependency_tracking" != xno; then
4458 am_depcomp="$ac_aux_dir/depcomp"
4459 AMDEPBACKSLASH='\'
4460 am__nodep='_no'
4461 fi
4462 if test "x$enable_dependency_tracking" != xno; then
4463 AMDEP_TRUE=
4464 AMDEP_FALSE='#'
4465 else
4466 AMDEP_TRUE='#'
4467 AMDEP_FALSE=
4468 fi
4469
4470
4471 ac_ext=c
4472 ac_cpp='$CPP $CPPFLAGS'
4473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4476 if test -n "$ac_tool_prefix"; then
4477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4478 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480 printf %s "checking for $ac_word... " >&6; }
4481 if test ${ac_cv_prog_CC+y}
4482 then :
4483 printf %s "(cached) " >&6
4484 else case e in #(
4485 e) if test -n "$CC"; then
4486 ac_cv_prog_CC="$CC" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491 IFS=$as_save_IFS
4492 case $as_dir in #(((
4493 '') as_dir=./ ;;
4494 */) ;;
4495 *) as_dir=$as_dir/ ;;
4496 esac
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4499 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4501 break 2
4502 fi
4503 done
4504 done
4505 IFS=$as_save_IFS
4506
4507 fi ;;
4508 esac
4509 fi
4510 CC=$ac_cv_prog_CC
4511 if test -n "$CC"; then
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4513 printf "%s\n" "$CC" >&6; }
4514 else
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 printf "%s\n" "no" >&6; }
4517 fi
4518
4519
4520 fi
4521 if test -z "$ac_cv_prog_CC"; then
4522 ac_ct_CC=$CC
4523 # Extract the first word of "gcc", so it can be a program name with args.
4524 set dummy gcc; ac_word=$2
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 printf %s "checking for $ac_word... " >&6; }
4527 if test ${ac_cv_prog_ac_ct_CC+y}
4528 then :
4529 printf %s "(cached) " >&6
4530 else case e in #(
4531 e) if test -n "$ac_ct_CC"; then
4532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4533 else
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537 IFS=$as_save_IFS
4538 case $as_dir in #(((
4539 '') as_dir=./ ;;
4540 */) ;;
4541 *) as_dir=$as_dir/ ;;
4542 esac
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4545 ac_cv_prog_ac_ct_CC="gcc"
4546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4547 break 2
4548 fi
4549 done
4550 done
4551 IFS=$as_save_IFS
4552
4553 fi ;;
4554 esac
4555 fi
4556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4557 if test -n "$ac_ct_CC"; then
4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4559 printf "%s\n" "$ac_ct_CC" >&6; }
4560 else
4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 printf "%s\n" "no" >&6; }
4563 fi
4564
4565 if test "x$ac_ct_CC" = x; then
4566 CC=""
4567 else
4568 case $cross_compiling:$ac_tool_warned in
4569 yes:)
4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4571 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4572 ac_tool_warned=yes ;;
4573 esac
4574 CC=$ac_ct_CC
4575 fi
4576 else
4577 CC="$ac_cv_prog_CC"
4578 fi
4579
4580 if test -z "$CC"; then
4581 if test -n "$ac_tool_prefix"; then
4582 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4583 set dummy ${ac_tool_prefix}cc; ac_word=$2
4584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 printf %s "checking for $ac_word... " >&6; }
4586 if test ${ac_cv_prog_CC+y}
4587 then :
4588 printf %s "(cached) " >&6
4589 else case e in #(
4590 e) if test -n "$CC"; then
4591 ac_cv_prog_CC="$CC" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596 IFS=$as_save_IFS
4597 case $as_dir in #(((
4598 '') as_dir=./ ;;
4599 */) ;;
4600 *) as_dir=$as_dir/ ;;
4601 esac
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4604 ac_cv_prog_CC="${ac_tool_prefix}cc"
4605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4606 break 2
4607 fi
4608 done
4609 done
4610 IFS=$as_save_IFS
4611
4612 fi ;;
4613 esac
4614 fi
4615 CC=$ac_cv_prog_CC
4616 if test -n "$CC"; then
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4618 printf "%s\n" "$CC" >&6; }
4619 else
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 printf "%s\n" "no" >&6; }
4622 fi
4623
4624
4625 fi
4626 fi
4627 if test -z "$CC"; then
4628 # Extract the first word of "cc", so it can be a program name with args.
4629 set dummy cc; ac_word=$2
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 printf %s "checking for $ac_word... " >&6; }
4632 if test ${ac_cv_prog_CC+y}
4633 then :
4634 printf %s "(cached) " >&6
4635 else case e in #(
4636 e) if test -n "$CC"; then
4637 ac_cv_prog_CC="$CC" # Let the user override the test.
4638 else
4639 ac_prog_rejected=no
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643 IFS=$as_save_IFS
4644 case $as_dir in #(((
4645 '') as_dir=./ ;;
4646 */) ;;
4647 *) as_dir=$as_dir/ ;;
4648 esac
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4651 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4652 ac_prog_rejected=yes
4653 continue
4654 fi
4655 ac_cv_prog_CC="cc"
4656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4657 break 2
4658 fi
4659 done
4660 done
4661 IFS=$as_save_IFS
4662
4663 if test $ac_prog_rejected = yes; then
4664 # We found a bogon in the path, so make sure we never use it.
4665 set dummy $ac_cv_prog_CC
4666 shift
4667 if test $# != 0; then
4668 # We chose a different compiler from the bogus one.
4669 # However, it has the same basename, so the bogon will be chosen
4670 # first if we set CC to just the basename; use the full file name.
4671 shift
4672 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4673 fi
4674 fi
4675 fi ;;
4676 esac
4677 fi
4678 CC=$ac_cv_prog_CC
4679 if test -n "$CC"; then
4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4681 printf "%s\n" "$CC" >&6; }
4682 else
4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 printf "%s\n" "no" >&6; }
4685 fi
4686
4687
4688 fi
4689 if test -z "$CC"; then
4690 if test -n "$ac_tool_prefix"; then
4691 for ac_prog in cl.exe
4692 do
4693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696 printf %s "checking for $ac_word... " >&6; }
4697 if test ${ac_cv_prog_CC+y}
4698 then :
4699 printf %s "(cached) " >&6
4700 else case e in #(
4701 e) if test -n "$CC"; then
4702 ac_cv_prog_CC="$CC" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707 IFS=$as_save_IFS
4708 case $as_dir in #(((
4709 '') as_dir=./ ;;
4710 */) ;;
4711 *) as_dir=$as_dir/ ;;
4712 esac
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4717 break 2
4718 fi
4719 done
4720 done
4721 IFS=$as_save_IFS
4722
4723 fi ;;
4724 esac
4725 fi
4726 CC=$ac_cv_prog_CC
4727 if test -n "$CC"; then
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4729 printf "%s\n" "$CC" >&6; }
4730 else
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 printf "%s\n" "no" >&6; }
4733 fi
4734
4735
4736 test -n "$CC" && break
4737 done
4738 fi
4739 if test -z "$CC"; then
4740 ac_ct_CC=$CC
4741 for ac_prog in cl.exe
4742 do
4743 # Extract the first word of "$ac_prog", so it can be a program name with args.
4744 set dummy $ac_prog; ac_word=$2
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 printf %s "checking for $ac_word... " >&6; }
4747 if test ${ac_cv_prog_ac_ct_CC+y}
4748 then :
4749 printf %s "(cached) " >&6
4750 else case e in #(
4751 e) if test -n "$ac_ct_CC"; then
4752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4756 do
4757 IFS=$as_save_IFS
4758 case $as_dir in #(((
4759 '') as_dir=./ ;;
4760 */) ;;
4761 *) as_dir=$as_dir/ ;;
4762 esac
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4765 ac_cv_prog_ac_ct_CC="$ac_prog"
4766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4767 break 2
4768 fi
4769 done
4770 done
4771 IFS=$as_save_IFS
4772
4773 fi ;;
4774 esac
4775 fi
4776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4777 if test -n "$ac_ct_CC"; then
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4779 printf "%s\n" "$ac_ct_CC" >&6; }
4780 else
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 printf "%s\n" "no" >&6; }
4783 fi
4784
4785
4786 test -n "$ac_ct_CC" && break
4787 done
4788
4789 if test "x$ac_ct_CC" = x; then
4790 CC=""
4791 else
4792 case $cross_compiling:$ac_tool_warned in
4793 yes:)
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4795 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4796 ac_tool_warned=yes ;;
4797 esac
4798 CC=$ac_ct_CC
4799 fi
4800 fi
4801
4802 fi
4803 if test -z "$CC"; then
4804 if test -n "$ac_tool_prefix"; then
4805 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4806 set dummy ${ac_tool_prefix}clang; ac_word=$2
4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 printf %s "checking for $ac_word... " >&6; }
4809 if test ${ac_cv_prog_CC+y}
4810 then :
4811 printf %s "(cached) " >&6
4812 else case e in #(
4813 e) if test -n "$CC"; then
4814 ac_cv_prog_CC="$CC" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819 IFS=$as_save_IFS
4820 case $as_dir in #(((
4821 '') as_dir=./ ;;
4822 */) ;;
4823 *) as_dir=$as_dir/ ;;
4824 esac
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4827 ac_cv_prog_CC="${ac_tool_prefix}clang"
4828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831 done
4832 done
4833 IFS=$as_save_IFS
4834
4835 fi ;;
4836 esac
4837 fi
4838 CC=$ac_cv_prog_CC
4839 if test -n "$CC"; then
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4841 printf "%s\n" "$CC" >&6; }
4842 else
4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 printf "%s\n" "no" >&6; }
4845 fi
4846
4847
4848 fi
4849 if test -z "$ac_cv_prog_CC"; then
4850 ac_ct_CC=$CC
4851 # Extract the first word of "clang", so it can be a program name with args.
4852 set dummy clang; ac_word=$2
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 printf %s "checking for $ac_word... " >&6; }
4855 if test ${ac_cv_prog_ac_ct_CC+y}
4856 then :
4857 printf %s "(cached) " >&6
4858 else case e in #(
4859 e) if test -n "$ac_ct_CC"; then
4860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865 IFS=$as_save_IFS
4866 case $as_dir in #(((
4867 '') as_dir=./ ;;
4868 */) ;;
4869 *) as_dir=$as_dir/ ;;
4870 esac
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_ac_ct_CC="clang"
4874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4875 break 2
4876 fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881 fi ;;
4882 esac
4883 fi
4884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4885 if test -n "$ac_ct_CC"; then
4886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4887 printf "%s\n" "$ac_ct_CC" >&6; }
4888 else
4889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 printf "%s\n" "no" >&6; }
4891 fi
4892
4893 if test "x$ac_ct_CC" = x; then
4894 CC=""
4895 else
4896 case $cross_compiling:$ac_tool_warned in
4897 yes:)
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4899 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4900 ac_tool_warned=yes ;;
4901 esac
4902 CC=$ac_ct_CC
4903 fi
4904 else
4905 CC="$ac_cv_prog_CC"
4906 fi
4907
4908 fi
4909
4910
4911 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4912 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4913 as_fn_error $? "no acceptable C compiler found in \$PATH
4914 See 'config.log' for more details" "$LINENO" 5; }
4915
4916 # Provide some information about the compiler.
4917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4918 set X $ac_compile
4919 ac_compiler=$2
4920 for ac_option in --version -v -V -qversion -version; do
4921 { { ac_try="$ac_compiler $ac_option >&5"
4922 case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925 esac
4926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4927 printf "%s\n" "$ac_try_echo"; } >&5
4928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4929 ac_status=$?
4930 if test -s conftest.err; then
4931 sed '10a\
4932 ... rest of stderr output deleted ...
4933 10q' conftest.err >conftest.er1
4934 cat conftest.er1 >&5
4935 fi
4936 rm -f conftest.er1 conftest.err
4937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938 test $ac_status = 0; }
4939 done
4940
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943
4944 int
4945 main (void)
4946 {
4947
4948 ;
4949 return 0;
4950 }
4951 _ACEOF
4952 ac_clean_files_save=$ac_clean_files
4953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4954 # Try to create an executable without -o first, disregard a.out.
4955 # It will help us diagnose broken compilers, and finding out an intuition
4956 # of exeext.
4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4958 printf %s "checking whether the C compiler works... " >&6; }
4959 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4960
4961 # The possible output files:
4962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4963
4964 ac_rmfiles=
4965 for ac_file in $ac_files
4966 do
4967 case $ac_file in
4968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4970 esac
4971 done
4972 rm -f $ac_rmfiles
4973
4974 if { { ac_try="$ac_link_default"
4975 case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978 esac
4979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980 printf "%s\n" "$ac_try_echo"; } >&5
4981 (eval "$ac_link_default") 2>&5
4982 ac_status=$?
4983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4984 test $ac_status = 0; }
4985 then :
4986 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4987 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4988 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4989 # so that the user can short-circuit this test for compilers unknown to
4990 # Autoconf.
4991 for ac_file in $ac_files ''
4992 do
4993 test -f "$ac_file" || continue
4994 case $ac_file in
4995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4996 ;;
4997 [ab].out )
4998 # We found the default executable, but exeext='' is most
4999 # certainly right.
5000 break;;
5001 *.* )
5002 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5003 then :; else
5004 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5005 fi
5006 # We set ac_cv_exeext here because the later test for it is not
5007 # safe: cross compilers may not add the suffix if given an '-o'
5008 # argument, so we may need to know it at that point already.
5009 # Even if this section looks crufty: it has the advantage of
5010 # actually working.
5011 break;;
5012 * )
5013 break;;
5014 esac
5015 done
5016 test "$ac_cv_exeext" = no && ac_cv_exeext=
5017
5018 else case e in #(
5019 e) ac_file='' ;;
5020 esac
5021 fi
5022 if test -z "$ac_file"
5023 then :
5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 printf "%s\n" "no" >&6; }
5026 printf "%s\n" "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5030 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5031 as_fn_error 77 "C compiler cannot create executables
5032 See 'config.log' for more details" "$LINENO" 5; }
5033 else case e in #(
5034 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5035 printf "%s\n" "yes" >&6; } ;;
5036 esac
5037 fi
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5039 printf %s "checking for C compiler default output file name... " >&6; }
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5041 printf "%s\n" "$ac_file" >&6; }
5042 ac_exeext=$ac_cv_exeext
5043
5044 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5045 ac_clean_files=$ac_clean_files_save
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5047 printf %s "checking for suffix of executables... " >&6; }
5048 if { { ac_try="$ac_link"
5049 case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052 esac
5053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5054 printf "%s\n" "$ac_try_echo"; } >&5
5055 (eval "$ac_link") 2>&5
5056 ac_status=$?
5057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5058 test $ac_status = 0; }
5059 then :
5060 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
5061 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
5062 # work properly (i.e., refer to 'conftest.exe'), while it won't with
5063 # 'rm'.
5064 for ac_file in conftest.exe conftest conftest.*; do
5065 test -f "$ac_file" || continue
5066 case $ac_file in
5067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5069 break;;
5070 * ) break;;
5071 esac
5072 done
5073 else case e in #(
5074 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5075 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5076 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5077 See 'config.log' for more details" "$LINENO" 5; } ;;
5078 esac
5079 fi
5080 rm -f conftest conftest$ac_cv_exeext
5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5082 printf "%s\n" "$ac_cv_exeext" >&6; }
5083
5084 rm -f conftest.$ac_ext
5085 EXEEXT=$ac_cv_exeext
5086 ac_exeext=$EXEEXT
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 #include <stdio.h>
5090 int
5091 main (void)
5092 {
5093 FILE *f = fopen ("conftest.out", "w");
5094 if (!f)
5095 return 1;
5096 return ferror (f) || fclose (f) != 0;
5097
5098 ;
5099 return 0;
5100 }
5101 _ACEOF
5102 ac_clean_files="$ac_clean_files conftest.out"
5103 # Check that the compiler produces executables we can run. If not, either
5104 # the compiler is broken, or we cross compile.
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5106 printf %s "checking whether we are cross compiling... " >&6; }
5107 if test "$cross_compiling" != yes; then
5108 { { ac_try="$ac_link"
5109 case "(($ac_try" in
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5112 esac
5113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5114 printf "%s\n" "$ac_try_echo"; } >&5
5115 (eval "$ac_link") 2>&5
5116 ac_status=$?
5117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5118 test $ac_status = 0; }
5119 if { ac_try='./conftest$ac_cv_exeext'
5120 { { case "(($ac_try" in
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5123 esac
5124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5125 printf "%s\n" "$ac_try_echo"; } >&5
5126 (eval "$ac_try") 2>&5
5127 ac_status=$?
5128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129 test $ac_status = 0; }; }; then
5130 cross_compiling=no
5131 else
5132 if test "$cross_compiling" = maybe; then
5133 cross_compiling=yes
5134 else
5135 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5136 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5137 as_fn_error 77 "cannot run C compiled programs.
5138 If you meant to cross compile, use '--host'.
5139 See 'config.log' for more details" "$LINENO" 5; }
5140 fi
5141 fi
5142 fi
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5144 printf "%s\n" "$cross_compiling" >&6; }
5145
5146 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
5147 conftest.o conftest.obj conftest.out
5148 ac_clean_files=$ac_clean_files_save
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5150 printf %s "checking for suffix of object files... " >&6; }
5151 if test ${ac_cv_objext+y}
5152 then :
5153 printf %s "(cached) " >&6
5154 else case e in #(
5155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157
5158 int
5159 main (void)
5160 {
5161
5162 ;
5163 return 0;
5164 }
5165 _ACEOF
5166 rm -f conftest.o conftest.obj
5167 if { { ac_try="$ac_compile"
5168 case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171 esac
5172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5173 printf "%s\n" "$ac_try_echo"; } >&5
5174 (eval "$ac_compile") 2>&5
5175 ac_status=$?
5176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5177 test $ac_status = 0; }
5178 then :
5179 for ac_file in conftest.o conftest.obj conftest.*; do
5180 test -f "$ac_file" || continue;
5181 case $ac_file in
5182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5183 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5184 break;;
5185 esac
5186 done
5187 else case e in #(
5188 e) printf "%s\n" "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5190
5191 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5192 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5193 as_fn_error $? "cannot compute suffix of object files: cannot compile
5194 See 'config.log' for more details" "$LINENO" 5; } ;;
5195 esac
5196 fi
5197 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
5198 esac
5199 fi
5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5201 printf "%s\n" "$ac_cv_objext" >&6; }
5202 OBJEXT=$ac_cv_objext
5203 ac_objext=$OBJEXT
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5205 printf %s "checking whether the compiler supports GNU C... " >&6; }
5206 if test ${ac_cv_c_compiler_gnu+y}
5207 then :
5208 printf %s "(cached) " >&6
5209 else case e in #(
5210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212
5213 int
5214 main (void)
5215 {
5216 #ifndef __GNUC__
5217 choke me
5218 #endif
5219
5220 ;
5221 return 0;
5222 }
5223 _ACEOF
5224 if ac_fn_c_try_compile "$LINENO"
5225 then :
5226 ac_compiler_gnu=yes
5227 else case e in #(
5228 e) ac_compiler_gnu=no ;;
5229 esac
5230 fi
5231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5232 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5233 ;;
5234 esac
5235 fi
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5237 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239
5240 if test $ac_compiler_gnu = yes; then
5241 GCC=yes
5242 else
5243 GCC=
5244 fi
5245 ac_test_CFLAGS=${CFLAGS+y}
5246 ac_save_CFLAGS=$CFLAGS
5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5248 printf %s "checking whether $CC accepts -g... " >&6; }
5249 if test ${ac_cv_prog_cc_g+y}
5250 then :
5251 printf %s "(cached) " >&6
5252 else case e in #(
5253 e) ac_save_c_werror_flag=$ac_c_werror_flag
5254 ac_c_werror_flag=yes
5255 ac_cv_prog_cc_g=no
5256 CFLAGS="-g"
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259
5260 int
5261 main (void)
5262 {
5263
5264 ;
5265 return 0;
5266 }
5267 _ACEOF
5268 if ac_fn_c_try_compile "$LINENO"
5269 then :
5270 ac_cv_prog_cc_g=yes
5271 else case e in #(
5272 e) CFLAGS=""
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275
5276 int
5277 main (void)
5278 {
5279
5280 ;
5281 return 0;
5282 }
5283 _ACEOF
5284 if ac_fn_c_try_compile "$LINENO"
5285 then :
5286
5287 else case e in #(
5288 e) ac_c_werror_flag=$ac_save_c_werror_flag
5289 CFLAGS="-g"
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292
5293 int
5294 main (void)
5295 {
5296
5297 ;
5298 return 0;
5299 }
5300 _ACEOF
5301 if ac_fn_c_try_compile "$LINENO"
5302 then :
5303 ac_cv_prog_cc_g=yes
5304 fi
5305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5306 esac
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5309 esac
5310 fi
5311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5312 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5313 esac
5314 fi
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5316 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5317 if test $ac_test_CFLAGS; then
5318 CFLAGS=$ac_save_CFLAGS
5319 elif test $ac_cv_prog_cc_g = yes; then
5320 if test "$GCC" = yes; then
5321 CFLAGS="-g -O2"
5322 else
5323 CFLAGS="-g"
5324 fi
5325 else
5326 if test "$GCC" = yes; then
5327 CFLAGS="-O2"
5328 else
5329 CFLAGS=
5330 fi
5331 fi
5332 ac_prog_cc_stdc=no
5333 if test x$ac_prog_cc_stdc = xno
5334 then :
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5336 printf %s "checking for $CC option to enable C11 features... " >&6; }
5337 if test ${ac_cv_prog_cc_c11+y}
5338 then :
5339 printf %s "(cached) " >&6
5340 else case e in #(
5341 e) ac_cv_prog_cc_c11=no
5342 ac_save_CC=$CC
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345 $ac_c_conftest_c11_program
5346 _ACEOF
5347 for ac_arg in '' -std=gnu11
5348 do
5349 CC="$ac_save_CC $ac_arg"
5350 if ac_fn_c_try_compile "$LINENO"
5351 then :
5352 ac_cv_prog_cc_c11=$ac_arg
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext conftest.beam
5355 test "x$ac_cv_prog_cc_c11" != "xno" && break
5356 done
5357 rm -f conftest.$ac_ext
5358 CC=$ac_save_CC ;;
5359 esac
5360 fi
5361
5362 if test "x$ac_cv_prog_cc_c11" = xno
5363 then :
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5365 printf "%s\n" "unsupported" >&6; }
5366 else case e in #(
5367 e) if test "x$ac_cv_prog_cc_c11" = x
5368 then :
5369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5370 printf "%s\n" "none needed" >&6; }
5371 else case e in #(
5372 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5373 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5374 CC="$CC $ac_cv_prog_cc_c11" ;;
5375 esac
5376 fi
5377 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5378 ac_prog_cc_stdc=c11 ;;
5379 esac
5380 fi
5381 fi
5382 if test x$ac_prog_cc_stdc = xno
5383 then :
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5385 printf %s "checking for $CC option to enable C99 features... " >&6; }
5386 if test ${ac_cv_prog_cc_c99+y}
5387 then :
5388 printf %s "(cached) " >&6
5389 else case e in #(
5390 e) ac_cv_prog_cc_c99=no
5391 ac_save_CC=$CC
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 $ac_c_conftest_c99_program
5395 _ACEOF
5396 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5397 do
5398 CC="$ac_save_CC $ac_arg"
5399 if ac_fn_c_try_compile "$LINENO"
5400 then :
5401 ac_cv_prog_cc_c99=$ac_arg
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.beam
5404 test "x$ac_cv_prog_cc_c99" != "xno" && break
5405 done
5406 rm -f conftest.$ac_ext
5407 CC=$ac_save_CC ;;
5408 esac
5409 fi
5410
5411 if test "x$ac_cv_prog_cc_c99" = xno
5412 then :
5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5414 printf "%s\n" "unsupported" >&6; }
5415 else case e in #(
5416 e) if test "x$ac_cv_prog_cc_c99" = x
5417 then :
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5419 printf "%s\n" "none needed" >&6; }
5420 else case e in #(
5421 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5422 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5423 CC="$CC $ac_cv_prog_cc_c99" ;;
5424 esac
5425 fi
5426 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5427 ac_prog_cc_stdc=c99 ;;
5428 esac
5429 fi
5430 fi
5431 if test x$ac_prog_cc_stdc = xno
5432 then :
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5434 printf %s "checking for $CC option to enable C89 features... " >&6; }
5435 if test ${ac_cv_prog_cc_c89+y}
5436 then :
5437 printf %s "(cached) " >&6
5438 else case e in #(
5439 e) ac_cv_prog_cc_c89=no
5440 ac_save_CC=$CC
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443 $ac_c_conftest_c89_program
5444 _ACEOF
5445 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5446 do
5447 CC="$ac_save_CC $ac_arg"
5448 if ac_fn_c_try_compile "$LINENO"
5449 then :
5450 ac_cv_prog_cc_c89=$ac_arg
5451 fi
5452 rm -f core conftest.err conftest.$ac_objext conftest.beam
5453 test "x$ac_cv_prog_cc_c89" != "xno" && break
5454 done
5455 rm -f conftest.$ac_ext
5456 CC=$ac_save_CC ;;
5457 esac
5458 fi
5459
5460 if test "x$ac_cv_prog_cc_c89" = xno
5461 then :
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5463 printf "%s\n" "unsupported" >&6; }
5464 else case e in #(
5465 e) if test "x$ac_cv_prog_cc_c89" = x
5466 then :
5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5468 printf "%s\n" "none needed" >&6; }
5469 else case e in #(
5470 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5471 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5472 CC="$CC $ac_cv_prog_cc_c89" ;;
5473 esac
5474 fi
5475 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5476 ac_prog_cc_stdc=c89 ;;
5477 esac
5478 fi
5479 fi
5480
5481 ac_ext=c
5482 ac_cpp='$CPP $CPPFLAGS'
5483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486
5487
5488 ac_ext=c
5489 ac_cpp='$CPP $CPPFLAGS'
5490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5494 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5495 if test ${am_cv_prog_cc_c_o+y}
5496 then :
5497 printf %s "(cached) " >&6
5498 else case e in #(
5499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5501
5502 int
5503 main (void)
5504 {
5505
5506 ;
5507 return 0;
5508 }
5509 _ACEOF
5510 # Make sure it works both with $CC and with simple cc.
5511 # Following AC_PROG_CC_C_O, we do the test twice because some
5512 # compilers refuse to overwrite an existing .o file with -o,
5513 # though they will create one.
5514 am_cv_prog_cc_c_o=yes
5515 for am_i in 1 2; do
5516 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5517 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } \
5521 && test -f conftest2.$ac_objext; then
5522 : OK
5523 else
5524 am_cv_prog_cc_c_o=no
5525 break
5526 fi
5527 done
5528 # aligned with autoconf, so not including core; see bug#72225.
5529 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5530 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5531 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5532 unset am_i ;;
5533 esac
5534 fi
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5536 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5537 if test "$am_cv_prog_cc_c_o" != yes; then
5538 # Losing compiler, so override with the script.
5539 # FIXME: It is wrong to rewrite CC.
5540 # But if we don't then we get into trouble of one sort or another.
5541 # A longer-term fix would be to have automake use am__CC in this case,
5542 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5543 CC="$am_aux_dir/compile $CC"
5544 fi
5545 ac_ext=c
5546 ac_cpp='$CPP $CPPFLAGS'
5547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5550
5551
5552 depcc="$CC" am_compiler_list=
5553
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5555 printf %s "checking dependency style of $depcc... " >&6; }
5556 if test ${am_cv_CC_dependencies_compiler_type+y}
5557 then :
5558 printf %s "(cached) " >&6
5559 else case e in #(
5560 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5561 # We make a subdir and do the tests there. Otherwise we can end up
5562 # making bogus files that we don't know about and never remove. For
5563 # instance it was reported that on HP-UX the gcc test will end up
5564 # making a dummy file named 'D' -- because '-MD' means "put the output
5565 # in D".
5566 rm -rf conftest.dir
5567 mkdir conftest.dir
5568 # Copy depcomp to subdir because otherwise we won't find it if we're
5569 # using a relative directory.
5570 cp "$am_depcomp" conftest.dir
5571 cd conftest.dir
5572 # We will build objects and dependencies in a subdirectory because
5573 # it helps to detect inapplicable dependency modes. For instance
5574 # both Tru64's cc and ICC support -MD to output dependencies as a
5575 # side effect of compilation, but ICC will put the dependencies in
5576 # the current directory while Tru64 will put them in the object
5577 # directory.
5578 mkdir sub
5579
5580 am_cv_CC_dependencies_compiler_type=none
5581 if test "$am_compiler_list" = ""; then
5582 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5583 fi
5584 am__universal=false
5585 case " $depcc " in #(
5586 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5587 esac
5588
5589 for depmode in $am_compiler_list; do
5590 # Setup a source with many dependencies, because some compilers
5591 # like to wrap large dependency lists on column 80 (with \), and
5592 # we should not choose a depcomp mode which is confused by this.
5593 #
5594 # We need to recreate these files for each test, as the compiler may
5595 # overwrite some of them when testing with obscure command lines.
5596 # This happens at least with the AIX C compiler.
5597 : > sub/conftest.c
5598 for i in 1 2 3 4 5 6; do
5599 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5600 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5601 # Solaris 10 /bin/sh.
5602 echo '/* dummy */' > sub/conftst$i.h
5603 done
5604 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5605
5606 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5607 # mode. It turns out that the SunPro C++ compiler does not properly
5608 # handle '-M -o', and we need to detect this. Also, some Intel
5609 # versions had trouble with output in subdirs.
5610 am__obj=sub/conftest.${OBJEXT-o}
5611 am__minus_obj="-o $am__obj"
5612 case $depmode in
5613 gcc)
5614 # This depmode causes a compiler race in universal mode.
5615 test "$am__universal" = false || continue
5616 ;;
5617 nosideeffect)
5618 # After this tag, mechanisms are not by side-effect, so they'll
5619 # only be used when explicitly requested.
5620 if test "x$enable_dependency_tracking" = xyes; then
5621 continue
5622 else
5623 break
5624 fi
5625 ;;
5626 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5627 # This compiler won't grok '-c -o', but also, the minuso test has
5628 # not run yet. These depmodes are late enough in the game, and
5629 # so weak that their functioning should not be impacted.
5630 am__obj=conftest.${OBJEXT-o}
5631 am__minus_obj=
5632 ;;
5633 none) break ;;
5634 esac
5635 if depmode=$depmode \
5636 source=sub/conftest.c object=$am__obj \
5637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5638 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5639 >/dev/null 2>conftest.err &&
5640 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5641 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5642 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5643 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5644 # icc doesn't choke on unknown options, it will just issue warnings
5645 # or remarks (even with -Werror). So we grep stderr for any message
5646 # that says an option was ignored or not supported.
5647 # When given -MP, icc 7.0 and 7.1 complain thus:
5648 # icc: Command line warning: ignoring option '-M'; no argument required
5649 # The diagnosis changed in icc 8.0:
5650 # icc: Command line remark: option '-MP' not supported
5651 if (grep 'ignoring option' conftest.err ||
5652 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5653 am_cv_CC_dependencies_compiler_type=$depmode
5654 break
5655 fi
5656 fi
5657 done
5658
5659 cd ..
5660 rm -rf conftest.dir
5661 else
5662 am_cv_CC_dependencies_compiler_type=none
5663 fi
5664 ;;
5665 esac
5666 fi
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5668 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5669 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5670
5671 if
5672 test "x$enable_dependency_tracking" != xno \
5673 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5674 am__fastdepCC_TRUE=
5675 am__fastdepCC_FALSE='#'
5676 else
5677 am__fastdepCC_TRUE='#'
5678 am__fastdepCC_FALSE=
5679 fi
5680
5681
5682
5683 ac_header= ac_cache=
5684 for ac_item in $ac_header_c_list
5685 do
5686 if test $ac_cache; then
5687 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5688 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5689 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5690 fi
5691 ac_header= ac_cache=
5692 elif test $ac_header; then
5693 ac_cache=$ac_item
5694 else
5695 ac_header=$ac_item
5696 fi
5697 done
5698
5699
5700
5701
5702
5703
5704
5705
5706 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5707 then :
5708
5709 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5710
5711 fi
5712
5713
5714
5715
5716
5717
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5719 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5720 if test ${ac_cv_safe_to_define___extensions__+y}
5721 then :
5722 printf %s "(cached) " >&6
5723 else case e in #(
5724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5726
5727 # define __EXTENSIONS__ 1
5728 $ac_includes_default
5729 int
5730 main (void)
5731 {
5732
5733 ;
5734 return 0;
5735 }
5736 _ACEOF
5737 if ac_fn_c_try_compile "$LINENO"
5738 then :
5739 ac_cv_safe_to_define___extensions__=yes
5740 else case e in #(
5741 e) ac_cv_safe_to_define___extensions__=no ;;
5742 esac
5743 fi
5744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5745 esac
5746 fi
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5748 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5749
5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5751 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5752 if test ${ac_cv_should_define__xopen_source+y}
5753 then :
5754 printf %s "(cached) " >&6
5755 else case e in #(
5756 e) ac_cv_should_define__xopen_source=no
5757 if test $ac_cv_header_wchar_h = yes
5758 then :
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761
5762 #include <wchar.h>
5763 mbstate_t x;
5764 int
5765 main (void)
5766 {
5767
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 if ac_fn_c_try_compile "$LINENO"
5773 then :
5774
5775 else case e in #(
5776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778
5779 #define _XOPEN_SOURCE 500
5780 #include <wchar.h>
5781 mbstate_t x;
5782 int
5783 main (void)
5784 {
5785
5786 ;
5787 return 0;
5788 }
5789 _ACEOF
5790 if ac_fn_c_try_compile "$LINENO"
5791 then :
5792 ac_cv_should_define__xopen_source=yes
5793 fi
5794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5795 esac
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5798 fi ;;
5799 esac
5800 fi
5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5802 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5803
5804 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5805
5806 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5807
5808 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5809
5810 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5811
5812 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5813
5814 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5815
5816 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5817
5818 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5819
5820 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5821
5822 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5823
5824 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5825
5826 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5827
5828 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5829
5830 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5831
5832 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5833
5834 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5835
5836 if test $ac_cv_header_minix_config_h = yes
5837 then :
5838 MINIX=yes
5839 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5840
5841 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5842
5843 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5844
5845 else case e in #(
5846 e) MINIX= ;;
5847 esac
5848 fi
5849 if test $ac_cv_safe_to_define___extensions__ = yes
5850 then :
5851 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5852
5853 fi
5854 if test $ac_cv_should_define__xopen_source = yes
5855 then :
5856 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5857
5858 fi
5859
5860 # Check whether --enable-compiler-warnings was given.
5861 if test ${enable_compiler_warnings+y}
5862 then :
5863 enableval=$enable_compiler_warnings;
5864 fi
5865 case $enable_compiler_warnings in #(
5866 no | min | yes | max | all) :
5867 ;; #(
5868 *) :
5869 if test "x$enable_maintainer_mode" = xyes
5870 then :
5871 enable_compiler_warnings=yes
5872 else case e in #(
5873 e) enable_compiler_warnings=min ;;
5874 esac
5875 fi ;;
5876 esac
5877
5878 case `pwd` in
5879 *\ * | *\ *)
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5881 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5882 esac
5883
5884
5885
5886 macro_version='2.5.4'
5887 macro_revision='2.5.4'
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902 ltmain=$ac_aux_dir/ltmain.sh
5903
5904
5905
5906 # Make sure we can run config.sub.
5907 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5908 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5909
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5911 printf %s "checking build system type... " >&6; }
5912 if test ${ac_cv_build+y}
5913 then :
5914 printf %s "(cached) " >&6
5915 else case e in #(
5916 e) ac_build_alias=$build_alias
5917 test "x$ac_build_alias" = x &&
5918 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5919 test "x$ac_build_alias" = x &&
5920 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5921 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5922 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5923 ;;
5924 esac
5925 fi
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5927 printf "%s\n" "$ac_cv_build" >&6; }
5928 case $ac_cv_build in
5929 *-*-*) ;;
5930 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5931 esac
5932 build=$ac_cv_build
5933 ac_save_IFS=$IFS; IFS='-'
5934 set x $ac_cv_build
5935 shift
5936 build_cpu=$1
5937 build_vendor=$2
5938 shift; shift
5939 # Remember, the first character of IFS is used to create $*,
5940 # except with old shells:
5941 build_os=$*
5942 IFS=$ac_save_IFS
5943 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5944
5945
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5947 printf %s "checking host system type... " >&6; }
5948 if test ${ac_cv_host+y}
5949 then :
5950 printf %s "(cached) " >&6
5951 else case e in #(
5952 e) if test "x$host_alias" = x; then
5953 ac_cv_host=$ac_cv_build
5954 else
5955 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5956 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5957 fi
5958 ;;
5959 esac
5960 fi
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5962 printf "%s\n" "$ac_cv_host" >&6; }
5963 case $ac_cv_host in
5964 *-*-*) ;;
5965 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5966 esac
5967 host=$ac_cv_host
5968 ac_save_IFS=$IFS; IFS='-'
5969 set x $ac_cv_host
5970 shift
5971 host_cpu=$1
5972 host_vendor=$2
5973 shift; shift
5974 # Remember, the first character of IFS is used to create $*,
5975 # except with old shells:
5976 host_os=$*
5977 IFS=$ac_save_IFS
5978 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5979
5980
5981 # Backslashify metacharacters that are still active within
5982 # double-quoted strings.
5983 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5984
5985 # Same as above, but do not quote variable references.
5986 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5987
5988 # Sed substitution to delay expansion of an escaped shell variable in a
5989 # double_quote_subst'ed string.
5990 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5991
5992 # Sed substitution to delay expansion of an escaped single quote.
5993 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5994
5995 # Sed substitution to avoid accidental globbing in evaled expressions
5996 no_glob_subst='s/\*/\\\*/g'
5997
5998 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5999 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6000 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6001
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6003 printf %s "checking how to print strings... " >&6; }
6004 # Test print first, because it will be a builtin if present.
6005 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6006 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6007 ECHO='print -r --'
6008 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6009 ECHO='printf %s\n'
6010 else
6011 # Use this function as a fallback that always works.
6012 func_fallback_echo ()
6013 {
6014 eval 'cat <<_LTECHO_EOF
6015 $1
6016 _LTECHO_EOF'
6017 }
6018 ECHO='func_fallback_echo'
6019 fi
6020
6021 # func_echo_all arg...
6022 # Invoke $ECHO with all args, space-separated.
6023 func_echo_all ()
6024 {
6025 $ECHO ""
6026 }
6027
6028 case $ECHO in
6029 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6030 printf "%s\n" "printf" >&6; } ;;
6031 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6032 printf "%s\n" "print -r" >&6; } ;;
6033 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6034 printf "%s\n" "cat" >&6; } ;;
6035 esac
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6051 printf %s "checking for a sed that does not truncate output... " >&6; }
6052 if test ${ac_cv_path_SED+y}
6053 then :
6054 printf %s "(cached) " >&6
6055 else case e in #(
6056 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6057 for ac_i in 1 2 3 4 5 6 7; do
6058 ac_script="$ac_script$as_nl$ac_script"
6059 done
6060 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6061 { ac_script=; unset ac_script;}
6062 if test -z "$SED"; then
6063 ac_path_SED_found=false
6064 # Loop through the user's path and test for each of PROGNAME-LIST
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068 IFS=$as_save_IFS
6069 case $as_dir in #(((
6070 '') as_dir=./ ;;
6071 */) ;;
6072 *) as_dir=$as_dir/ ;;
6073 esac
6074 for ac_prog in sed gsed
6075 do
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6078 as_fn_executable_p "$ac_path_SED" || continue
6079 # Check for GNU ac_path_SED and select it if it is found.
6080 # Check for GNU $ac_path_SED
6081 case `"$ac_path_SED" --version 2>&1` in #(
6082 *GNU*)
6083 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6084 #(
6085 *)
6086 ac_count=0
6087 printf %s 0123456789 >"conftest.in"
6088 while :
6089 do
6090 cat "conftest.in" "conftest.in" >"conftest.tmp"
6091 mv "conftest.tmp" "conftest.in"
6092 cp "conftest.in" "conftest.nl"
6093 printf "%s\n" '' >> "conftest.nl"
6094 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6096 as_fn_arith $ac_count + 1 && ac_count=$as_val
6097 if test $ac_count -gt ${ac_path_SED_max-0}; then
6098 # Best one so far, save it but keep looking for a better one
6099 ac_cv_path_SED="$ac_path_SED"
6100 ac_path_SED_max=$ac_count
6101 fi
6102 # 10*(2^10) chars as input seems more than enough
6103 test $ac_count -gt 10 && break
6104 done
6105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6106 esac
6107
6108 $ac_path_SED_found && break 3
6109 done
6110 done
6111 done
6112 IFS=$as_save_IFS
6113 if test -z "$ac_cv_path_SED"; then
6114 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6115 fi
6116 else
6117 ac_cv_path_SED=$SED
6118 fi
6119 ;;
6120 esac
6121 fi
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6123 printf "%s\n" "$ac_cv_path_SED" >&6; }
6124 SED="$ac_cv_path_SED"
6125 rm -f conftest.sed
6126
6127 test -z "$SED" && SED=sed
6128 Xsed="$SED -e 1s/^X//"
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6141 printf %s "checking for grep that handles long lines and -e... " >&6; }
6142 if test ${ac_cv_path_GREP+y}
6143 then :
6144 printf %s "(cached) " >&6
6145 else case e in #(
6146 e) if test -z "$GREP"; then
6147 ac_path_GREP_found=false
6148 # Loop through the user's path and test for each of PROGNAME-LIST
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6151 do
6152 IFS=$as_save_IFS
6153 case $as_dir in #(((
6154 '') as_dir=./ ;;
6155 */) ;;
6156 *) as_dir=$as_dir/ ;;
6157 esac
6158 for ac_prog in grep ggrep
6159 do
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6162 as_fn_executable_p "$ac_path_GREP" || continue
6163 # Check for GNU ac_path_GREP and select it if it is found.
6164 # Check for GNU $ac_path_GREP
6165 case `"$ac_path_GREP" --version 2>&1` in #(
6166 *GNU*)
6167 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6168 #(
6169 *)
6170 ac_count=0
6171 printf %s 0123456789 >"conftest.in"
6172 while :
6173 do
6174 cat "conftest.in" "conftest.in" >"conftest.tmp"
6175 mv "conftest.tmp" "conftest.in"
6176 cp "conftest.in" "conftest.nl"
6177 printf "%s\n" 'GREP' >> "conftest.nl"
6178 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6180 as_fn_arith $ac_count + 1 && ac_count=$as_val
6181 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6182 # Best one so far, save it but keep looking for a better one
6183 ac_cv_path_GREP="$ac_path_GREP"
6184 ac_path_GREP_max=$ac_count
6185 fi
6186 # 10*(2^10) chars as input seems more than enough
6187 test $ac_count -gt 10 && break
6188 done
6189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6190 esac
6191
6192 $ac_path_GREP_found && break 3
6193 done
6194 done
6195 done
6196 IFS=$as_save_IFS
6197 if test -z "$ac_cv_path_GREP"; then
6198 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6199 fi
6200 else
6201 ac_cv_path_GREP=$GREP
6202 fi
6203 ;;
6204 esac
6205 fi
6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6207 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6208 GREP="$ac_cv_path_GREP"
6209
6210
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6212 printf %s "checking for egrep... " >&6; }
6213 if test ${ac_cv_path_EGREP+y}
6214 then :
6215 printf %s "(cached) " >&6
6216 else case e in #(
6217 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6218 then ac_cv_path_EGREP="$GREP -E"
6219 else
6220 if test -z "$EGREP"; then
6221 ac_path_EGREP_found=false
6222 # Loop through the user's path and test for each of PROGNAME-LIST
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6225 do
6226 IFS=$as_save_IFS
6227 case $as_dir in #(((
6228 '') as_dir=./ ;;
6229 */) ;;
6230 *) as_dir=$as_dir/ ;;
6231 esac
6232 for ac_prog in egrep
6233 do
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6236 as_fn_executable_p "$ac_path_EGREP" || continue
6237 # Check for GNU ac_path_EGREP and select it if it is found.
6238 # Check for GNU $ac_path_EGREP
6239 case `"$ac_path_EGREP" --version 2>&1` in #(
6240 *GNU*)
6241 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6242 #(
6243 *)
6244 ac_count=0
6245 printf %s 0123456789 >"conftest.in"
6246 while :
6247 do
6248 cat "conftest.in" "conftest.in" >"conftest.tmp"
6249 mv "conftest.tmp" "conftest.in"
6250 cp "conftest.in" "conftest.nl"
6251 printf "%s\n" 'EGREP' >> "conftest.nl"
6252 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6254 as_fn_arith $ac_count + 1 && ac_count=$as_val
6255 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6256 # Best one so far, save it but keep looking for a better one
6257 ac_cv_path_EGREP="$ac_path_EGREP"
6258 ac_path_EGREP_max=$ac_count
6259 fi
6260 # 10*(2^10) chars as input seems more than enough
6261 test $ac_count -gt 10 && break
6262 done
6263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6264 esac
6265
6266 $ac_path_EGREP_found && break 3
6267 done
6268 done
6269 done
6270 IFS=$as_save_IFS
6271 if test -z "$ac_cv_path_EGREP"; then
6272 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6273 fi
6274 else
6275 ac_cv_path_EGREP=$EGREP
6276 fi
6277
6278 fi ;;
6279 esac
6280 fi
6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6282 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6283 EGREP="$ac_cv_path_EGREP"
6284
6285 EGREP_TRADITIONAL=$EGREP
6286 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6287
6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6289 printf %s "checking for fgrep... " >&6; }
6290 if test ${ac_cv_path_FGREP+y}
6291 then :
6292 printf %s "(cached) " >&6
6293 else case e in #(
6294 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6295 then ac_cv_path_FGREP="$GREP -F"
6296 else
6297 if test -z "$FGREP"; then
6298 ac_path_FGREP_found=false
6299 # Loop through the user's path and test for each of PROGNAME-LIST
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6302 do
6303 IFS=$as_save_IFS
6304 case $as_dir in #(((
6305 '') as_dir=./ ;;
6306 */) ;;
6307 *) as_dir=$as_dir/ ;;
6308 esac
6309 for ac_prog in fgrep
6310 do
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6313 as_fn_executable_p "$ac_path_FGREP" || continue
6314 # Check for GNU ac_path_FGREP and select it if it is found.
6315 # Check for GNU $ac_path_FGREP
6316 case `"$ac_path_FGREP" --version 2>&1` in #(
6317 *GNU*)
6318 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6319 #(
6320 *)
6321 ac_count=0
6322 printf %s 0123456789 >"conftest.in"
6323 while :
6324 do
6325 cat "conftest.in" "conftest.in" >"conftest.tmp"
6326 mv "conftest.tmp" "conftest.in"
6327 cp "conftest.in" "conftest.nl"
6328 printf "%s\n" 'FGREP' >> "conftest.nl"
6329 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6331 as_fn_arith $ac_count + 1 && ac_count=$as_val
6332 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6333 # Best one so far, save it but keep looking for a better one
6334 ac_cv_path_FGREP="$ac_path_FGREP"
6335 ac_path_FGREP_max=$ac_count
6336 fi
6337 # 10*(2^10) chars as input seems more than enough
6338 test $ac_count -gt 10 && break
6339 done
6340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6341 esac
6342
6343 $ac_path_FGREP_found && break 3
6344 done
6345 done
6346 done
6347 IFS=$as_save_IFS
6348 if test -z "$ac_cv_path_FGREP"; then
6349 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6350 fi
6351 else
6352 ac_cv_path_FGREP=$FGREP
6353 fi
6354
6355 fi ;;
6356 esac
6357 fi
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6359 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6360 FGREP="$ac_cv_path_FGREP"
6361
6362
6363 test -z "$GREP" && GREP=grep
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383 # Check whether --with-gnu-ld was given.
6384 if test ${with_gnu_ld+y}
6385 then :
6386 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6387 else case e in #(
6388 e) with_gnu_ld=no ;;
6389 esac
6390 fi
6391
6392 ac_prog=ld
6393 if test yes = "$GCC"; then
6394 # Check if gcc -print-prog-name=ld gives a path.
6395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6396 printf %s "checking for ld used by $CC... " >&6; }
6397 case $host in
6398 *-*-mingw* | *-*-windows*)
6399 # gcc leaves a trailing carriage return, which upsets mingw
6400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6401 *)
6402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6403 esac
6404 case $ac_prog in
6405 # Accept absolute paths.
6406 [\\/]* | ?:[\\/]*)
6407 re_direlt='/[^/][^/]*/\.\./'
6408 # Canonicalize the pathname of ld
6409 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6410 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6411 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6412 done
6413 test -z "$LD" && LD=$ac_prog
6414 ;;
6415 "")
6416 # If it fails, then pretend we aren't using GCC.
6417 ac_prog=ld
6418 ;;
6419 *)
6420 # If it is relative, then search for the first ld in PATH.
6421 with_gnu_ld=unknown
6422 ;;
6423 esac
6424 elif test yes = "$with_gnu_ld"; then
6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6426 printf %s "checking for GNU ld... " >&6; }
6427 else
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6429 printf %s "checking for non-GNU ld... " >&6; }
6430 fi
6431 if test ${lt_cv_path_LD+y}
6432 then :
6433 printf %s "(cached) " >&6
6434 else case e in #(
6435 e) if test -z "$LD"; then
6436 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6437 for ac_dir in $PATH; do
6438 IFS=$lt_save_ifs
6439 test -z "$ac_dir" && ac_dir=.
6440 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6441 lt_cv_path_LD=$ac_dir/$ac_prog
6442 # Check to see if the program is GNU ld. I'd rather use --version,
6443 # but apparently some variants of GNU ld only accept -v.
6444 # Break only if it was the GNU/non-GNU ld that we prefer.
6445 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6446 *GNU* | *'with BFD'*)
6447 test no != "$with_gnu_ld" && break
6448 ;;
6449 *)
6450 test yes != "$with_gnu_ld" && break
6451 ;;
6452 esac
6453 fi
6454 done
6455 IFS=$lt_save_ifs
6456 else
6457 lt_cv_path_LD=$LD # Let the user override the test with a path.
6458 fi ;;
6459 esac
6460 fi
6461
6462 LD=$lt_cv_path_LD
6463 if test -n "$LD"; then
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6465 printf "%s\n" "$LD" >&6; }
6466 else
6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468 printf "%s\n" "no" >&6; }
6469 fi
6470 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6472 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6473 if test ${lt_cv_prog_gnu_ld+y}
6474 then :
6475 printf %s "(cached) " >&6
6476 else case e in #(
6477 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6478 case `$LD -v 2>&1 </dev/null` in
6479 *GNU* | *'with BFD'*)
6480 lt_cv_prog_gnu_ld=yes
6481 ;;
6482 *)
6483 lt_cv_prog_gnu_ld=no
6484 ;;
6485 esac ;;
6486 esac
6487 fi
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6489 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6490 with_gnu_ld=$lt_cv_prog_gnu_ld
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6501 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6502 if test ${lt_cv_path_NM+y}
6503 then :
6504 printf %s "(cached) " >&6
6505 else case e in #(
6506 e) if test -n "$NM"; then
6507 # Let the user override the test.
6508 lt_cv_path_NM=$NM
6509 else
6510 lt_nm_to_check=${ac_tool_prefix}nm
6511 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6512 lt_nm_to_check="$lt_nm_to_check nm"
6513 fi
6514 for lt_tmp_nm in $lt_nm_to_check; do
6515 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6516 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6517 IFS=$lt_save_ifs
6518 test -z "$ac_dir" && ac_dir=.
6519 tmp_nm=$ac_dir/$lt_tmp_nm
6520 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6521 # Check to see if the nm accepts a BSD-compat flag.
6522 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6523 # nm: unknown option "B" ignored
6524 # Tru64's nm complains that /dev/null is an invalid object file
6525 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6526 case $build_os in
6527 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6528 *) lt_bad_file=/dev/null ;;
6529 esac
6530 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6531 *$lt_bad_file* | *'Invalid file or object type'*)
6532 lt_cv_path_NM="$tmp_nm -B"
6533 break 2
6534 ;;
6535 *)
6536 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6537 */dev/null*)
6538 lt_cv_path_NM="$tmp_nm -p"
6539 break 2
6540 ;;
6541 *)
6542 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6543 continue # so that we can try to find one that supports BSD flags
6544 ;;
6545 esac
6546 ;;
6547 esac
6548 fi
6549 done
6550 IFS=$lt_save_ifs
6551 done
6552 : ${lt_cv_path_NM=no}
6553 fi ;;
6554 esac
6555 fi
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6557 printf "%s\n" "$lt_cv_path_NM" >&6; }
6558 if test no != "$lt_cv_path_NM"; then
6559 NM=$lt_cv_path_NM
6560 else
6561 # Didn't find any BSD compatible name lister, look for dumpbin.
6562 if test -n "$DUMPBIN"; then :
6563 # Let the user override the test.
6564 else
6565 if test -n "$ac_tool_prefix"; then
6566 for ac_prog in dumpbin "link -dump"
6567 do
6568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571 printf %s "checking for $ac_word... " >&6; }
6572 if test ${ac_cv_prog_DUMPBIN+y}
6573 then :
6574 printf %s "(cached) " >&6
6575 else case e in #(
6576 e) if test -n "$DUMPBIN"; then
6577 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582 IFS=$as_save_IFS
6583 case $as_dir in #(((
6584 '') as_dir=./ ;;
6585 */) ;;
6586 *) as_dir=$as_dir/ ;;
6587 esac
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6590 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6592 break 2
6593 fi
6594 done
6595 done
6596 IFS=$as_save_IFS
6597
6598 fi ;;
6599 esac
6600 fi
6601 DUMPBIN=$ac_cv_prog_DUMPBIN
6602 if test -n "$DUMPBIN"; then
6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6604 printf "%s\n" "$DUMPBIN" >&6; }
6605 else
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 printf "%s\n" "no" >&6; }
6608 fi
6609
6610
6611 test -n "$DUMPBIN" && break
6612 done
6613 fi
6614 if test -z "$DUMPBIN"; then
6615 ac_ct_DUMPBIN=$DUMPBIN
6616 for ac_prog in dumpbin "link -dump"
6617 do
6618 # Extract the first word of "$ac_prog", so it can be a program name with args.
6619 set dummy $ac_prog; ac_word=$2
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 printf %s "checking for $ac_word... " >&6; }
6622 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6623 then :
6624 printf %s "(cached) " >&6
6625 else case e in #(
6626 e) if test -n "$ac_ct_DUMPBIN"; then
6627 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632 IFS=$as_save_IFS
6633 case $as_dir in #(((
6634 '') as_dir=./ ;;
6635 */) ;;
6636 *) as_dir=$as_dir/ ;;
6637 esac
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6640 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6642 break 2
6643 fi
6644 done
6645 done
6646 IFS=$as_save_IFS
6647
6648 fi ;;
6649 esac
6650 fi
6651 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6652 if test -n "$ac_ct_DUMPBIN"; then
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6654 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6655 else
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 printf "%s\n" "no" >&6; }
6658 fi
6659
6660
6661 test -n "$ac_ct_DUMPBIN" && break
6662 done
6663
6664 if test "x$ac_ct_DUMPBIN" = x; then
6665 DUMPBIN=":"
6666 else
6667 case $cross_compiling:$ac_tool_warned in
6668 yes:)
6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6670 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6671 ac_tool_warned=yes ;;
6672 esac
6673 DUMPBIN=$ac_ct_DUMPBIN
6674 fi
6675 fi
6676
6677 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6678 *COFF*)
6679 DUMPBIN="$DUMPBIN -symbols -headers"
6680 ;;
6681 *)
6682 DUMPBIN=:
6683 ;;
6684 esac
6685 fi
6686
6687 if test : != "$DUMPBIN"; then
6688 NM=$DUMPBIN
6689 fi
6690 fi
6691 test -z "$NM" && NM=nm
6692
6693
6694
6695
6696
6697
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6699 printf %s "checking the name lister ($NM) interface... " >&6; }
6700 if test ${lt_cv_nm_interface+y}
6701 then :
6702 printf %s "(cached) " >&6
6703 else case e in #(
6704 e) lt_cv_nm_interface="BSD nm"
6705 echo "int some_variable = 0;" > conftest.$ac_ext
6706 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6707 (eval "$ac_compile" 2>conftest.err)
6708 cat conftest.err >&5
6709 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6710 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6711 cat conftest.err >&5
6712 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6713 cat conftest.out >&5
6714 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6715 lt_cv_nm_interface="MS dumpbin"
6716 fi
6717 rm -f conftest* ;;
6718 esac
6719 fi
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6721 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6722
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6724 printf %s "checking whether ln -s works... " >&6; }
6725 LN_S=$as_ln_s
6726 if test "$LN_S" = "ln -s"; then
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6728 printf "%s\n" "yes" >&6; }
6729 else
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6731 printf "%s\n" "no, using $LN_S" >&6; }
6732 fi
6733
6734 # find the maximum length of command line arguments
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6736 printf %s "checking the maximum length of command line arguments... " >&6; }
6737 if test ${lt_cv_sys_max_cmd_len+y}
6738 then :
6739 printf %s "(cached) " >&6
6740 else case e in #(
6741 e) i=0
6742 teststring=ABCD
6743
6744 case $build_os in
6745 msdosdjgpp*)
6746 # On DJGPP, this test can blow up pretty badly due to problems in libc
6747 # (any single argument exceeding 2000 bytes causes a buffer overrun
6748 # during glob expansion). Even if it were fixed, the result of this
6749 # check would be larger than it should be.
6750 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6751 ;;
6752
6753 gnu* | ironclad*)
6754 # Under GNU Hurd and Ironclad, this test is not required because there
6755 # is no limit to the length of command line arguments.
6756 # Libtool will interpret -1 as no limit whatsoever
6757 lt_cv_sys_max_cmd_len=-1;
6758 ;;
6759
6760 cygwin* | mingw* | windows* | cegcc*)
6761 # On Win9x/ME, this test blows up -- it succeeds, but takes
6762 # about 5 minutes as the teststring grows exponentially.
6763 # Worse, since 9x/ME are not pre-emptively multitasking,
6764 # you end up with a "frozen" computer, even though with patience
6765 # the test eventually succeeds (with a max line length of 256k).
6766 # Instead, let's just punt: use the minimum linelength reported by
6767 # all of the supported platforms: 8192 (on NT/2K/XP).
6768 lt_cv_sys_max_cmd_len=8192;
6769 ;;
6770
6771 mint*)
6772 # On MiNT this can take a long time and run out of memory.
6773 lt_cv_sys_max_cmd_len=8192;
6774 ;;
6775
6776 amigaos*)
6777 # On AmigaOS with pdksh, this test takes hours, literally.
6778 # So we just punt and use a minimum line length of 8192.
6779 lt_cv_sys_max_cmd_len=8192;
6780 ;;
6781
6782 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6783 # This has been around since 386BSD, at least. Likely further.
6784 if test -x /sbin/sysctl; then
6785 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6786 elif test -x /usr/sbin/sysctl; then
6787 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6788 else
6789 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6790 fi
6791 # And add a safety zone
6792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6794 ;;
6795
6796 interix*)
6797 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6798 lt_cv_sys_max_cmd_len=196608
6799 ;;
6800
6801 os2*)
6802 # The test takes a long time on OS/2.
6803 lt_cv_sys_max_cmd_len=8192
6804 ;;
6805
6806 osf*)
6807 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6808 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6809 # nice to cause kernel panics so lets avoid the loop below.
6810 # First set a reasonable default.
6811 lt_cv_sys_max_cmd_len=16384
6812 #
6813 if test -x /sbin/sysconfig; then
6814 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6815 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6816 esac
6817 fi
6818 ;;
6819 sco3.2v5*)
6820 lt_cv_sys_max_cmd_len=102400
6821 ;;
6822 sysv5* | sco5v6* | sysv4.2uw2*)
6823 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6824 if test -n "$kargmax"; then
6825 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6826 else
6827 lt_cv_sys_max_cmd_len=32768
6828 fi
6829 ;;
6830 *)
6831 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6832 if test -n "$lt_cv_sys_max_cmd_len" && \
6833 test undefined != "$lt_cv_sys_max_cmd_len"; then
6834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6836 else
6837 # Make teststring a little bigger before we do anything with it.
6838 # a 1K string should be a reasonable start.
6839 for i in 1 2 3 4 5 6 7 8; do
6840 teststring=$teststring$teststring
6841 done
6842 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6843 # If test is not a shell built-in, we'll probably end up computing a
6844 # maximum length that is only half of the actual maximum length, but
6845 # we can't tell.
6846 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6847 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6848 test 17 != "$i" # 1/2 MB should be enough
6849 do
6850 i=`expr $i + 1`
6851 teststring=$teststring$teststring
6852 done
6853 # Only check the string length outside the loop.
6854 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6855 teststring=
6856 # Add a significant safety factor because C++ compilers can tack on
6857 # massive amounts of additional arguments before passing them to the
6858 # linker. It appears as though 1/2 is a usable value.
6859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6860 fi
6861 ;;
6862 esac
6863 ;;
6864 esac
6865 fi
6866
6867 if test -n "$lt_cv_sys_max_cmd_len"; then
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6869 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6870 else
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6872 printf "%s\n" "none" >&6; }
6873 fi
6874 max_cmd_len=$lt_cv_sys_max_cmd_len
6875
6876
6877
6878
6879
6880
6881 : ${CP="cp -f"}
6882 : ${MV="mv -f"}
6883 : ${RM="rm -f"}
6884
6885 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6886 lt_unset=unset
6887 else
6888 lt_unset=false
6889 fi
6890
6891
6892
6893
6894
6895 # test EBCDIC or ASCII
6896 case `echo X|tr X '\101'` in
6897 A) # ASCII based system
6898 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6899 lt_SP2NL='tr \040 \012'
6900 lt_NL2SP='tr \015\012 \040\040'
6901 ;;
6902 *) # EBCDIC based system
6903 lt_SP2NL='tr \100 \n'
6904 lt_NL2SP='tr \r\n \100\100'
6905 ;;
6906 esac
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6917 printf %s "checking how to convert $build file names to $host format... " >&6; }
6918 if test ${lt_cv_to_host_file_cmd+y}
6919 then :
6920 printf %s "(cached) " >&6
6921 else case e in #(
6922 e) case $host in
6923 *-*-mingw* )
6924 case $build in
6925 *-*-mingw* | *-*-windows* ) # actually msys
6926 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6927 ;;
6928 *-*-cygwin* )
6929 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6930 ;;
6931 * ) # otherwise, assume *nix
6932 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6933 ;;
6934 esac
6935 ;;
6936 *-*-cygwin* )
6937 case $build in
6938 *-*-mingw* | *-*-windows* ) # actually msys
6939 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6940 ;;
6941 *-*-cygwin* )
6942 lt_cv_to_host_file_cmd=func_convert_file_noop
6943 ;;
6944 * ) # otherwise, assume *nix
6945 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6946 ;;
6947 esac
6948 ;;
6949 * ) # unhandled hosts (and "normal" native builds)
6950 lt_cv_to_host_file_cmd=func_convert_file_noop
6951 ;;
6952 esac
6953 ;;
6954 esac
6955 fi
6956
6957 to_host_file_cmd=$lt_cv_to_host_file_cmd
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6959 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6960
6961
6962
6963
6964
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6966 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6967 if test ${lt_cv_to_tool_file_cmd+y}
6968 then :
6969 printf %s "(cached) " >&6
6970 else case e in #(
6971 e) #assume ordinary cross tools, or native build.
6972 lt_cv_to_tool_file_cmd=func_convert_file_noop
6973 case $host in
6974 *-*-mingw* | *-*-windows* )
6975 case $build in
6976 *-*-mingw* | *-*-windows* ) # actually msys
6977 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6978 ;;
6979 esac
6980 ;;
6981 esac
6982 ;;
6983 esac
6984 fi
6985
6986 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6988 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6989
6990
6991
6992
6993
6994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6995 printf %s "checking for $LD option to reload object files... " >&6; }
6996 if test ${lt_cv_ld_reload_flag+y}
6997 then :
6998 printf %s "(cached) " >&6
6999 else case e in #(
7000 e) lt_cv_ld_reload_flag='-r' ;;
7001 esac
7002 fi
7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7004 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7005 reload_flag=$lt_cv_ld_reload_flag
7006 case $reload_flag in
7007 "" | " "*) ;;
7008 *) reload_flag=" $reload_flag" ;;
7009 esac
7010 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7011 case $host_os in
7012 cygwin* | mingw* | windows* | pw32* | cegcc*)
7013 if test yes != "$GCC"; then
7014 reload_cmds=false
7015 fi
7016 ;;
7017 darwin*)
7018 if test yes = "$GCC"; then
7019 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7020 else
7021 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7022 fi
7023 ;;
7024 esac
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034 # Extract the first word of "file", so it can be a program name with args.
7035 set dummy file; ac_word=$2
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 printf %s "checking for $ac_word... " >&6; }
7038 if test ${ac_cv_prog_FILECMD+y}
7039 then :
7040 printf %s "(cached) " >&6
7041 else case e in #(
7042 e) if test -n "$FILECMD"; then
7043 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7044 else
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7047 do
7048 IFS=$as_save_IFS
7049 case $as_dir in #(((
7050 '') as_dir=./ ;;
7051 */) ;;
7052 *) as_dir=$as_dir/ ;;
7053 esac
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7056 ac_cv_prog_FILECMD="file"
7057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7058 break 2
7059 fi
7060 done
7061 done
7062 IFS=$as_save_IFS
7063
7064 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7065 fi ;;
7066 esac
7067 fi
7068 FILECMD=$ac_cv_prog_FILECMD
7069 if test -n "$FILECMD"; then
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7071 printf "%s\n" "$FILECMD" >&6; }
7072 else
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 printf "%s\n" "no" >&6; }
7075 fi
7076
7077
7078
7079
7080
7081
7082
7083
7084 if test -n "$ac_tool_prefix"; then
7085 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088 printf %s "checking for $ac_word... " >&6; }
7089 if test ${ac_cv_prog_OBJDUMP+y}
7090 then :
7091 printf %s "(cached) " >&6
7092 else case e in #(
7093 e) if test -n "$OBJDUMP"; then
7094 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099 IFS=$as_save_IFS
7100 case $as_dir in #(((
7101 '') as_dir=./ ;;
7102 */) ;;
7103 *) as_dir=$as_dir/ ;;
7104 esac
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7107 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7109 break 2
7110 fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115 fi ;;
7116 esac
7117 fi
7118 OBJDUMP=$ac_cv_prog_OBJDUMP
7119 if test -n "$OBJDUMP"; then
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7121 printf "%s\n" "$OBJDUMP" >&6; }
7122 else
7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124 printf "%s\n" "no" >&6; }
7125 fi
7126
7127
7128 fi
7129 if test -z "$ac_cv_prog_OBJDUMP"; then
7130 ac_ct_OBJDUMP=$OBJDUMP
7131 # Extract the first word of "objdump", so it can be a program name with args.
7132 set dummy objdump; ac_word=$2
7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 printf %s "checking for $ac_word... " >&6; }
7135 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7136 then :
7137 printf %s "(cached) " >&6
7138 else case e in #(
7139 e) if test -n "$ac_ct_OBJDUMP"; then
7140 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145 IFS=$as_save_IFS
7146 case $as_dir in #(((
7147 '') as_dir=./ ;;
7148 */) ;;
7149 *) as_dir=$as_dir/ ;;
7150 esac
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7153 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157 done
7158 done
7159 IFS=$as_save_IFS
7160
7161 fi ;;
7162 esac
7163 fi
7164 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7165 if test -n "$ac_ct_OBJDUMP"; then
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7167 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7168 else
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 printf "%s\n" "no" >&6; }
7171 fi
7172
7173 if test "x$ac_ct_OBJDUMP" = x; then
7174 OBJDUMP="false"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182 OBJDUMP=$ac_ct_OBJDUMP
7183 fi
7184 else
7185 OBJDUMP="$ac_cv_prog_OBJDUMP"
7186 fi
7187
7188 test -z "$OBJDUMP" && OBJDUMP=objdump
7189
7190
7191
7192
7193
7194
7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7196 printf %s "checking how to recognize dependent libraries... " >&6; }
7197 if test ${lt_cv_deplibs_check_method+y}
7198 then :
7199 printf %s "(cached) " >&6
7200 else case e in #(
7201 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7202 lt_cv_file_magic_test_file=
7203 lt_cv_deplibs_check_method='unknown'
7204 # Need to set the preceding variable on all platforms that support
7205 # interlibrary dependencies.
7206 # 'none' -- dependencies not supported.
7207 # 'unknown' -- same as none, but documents that we really don't know.
7208 # 'pass_all' -- all dependencies passed with no checks.
7209 # 'file_magic [[regex]]' -- check by looking for files in library path
7210 # that responds to the $file_magic_cmd with a given extended regex.
7211 # If you have 'file' or equivalent on your system and you're not sure
7212 # whether 'pass_all' will *always* work, you probably want this one.
7213
7214 case $host_os in
7215 aix[4-9]*)
7216 lt_cv_deplibs_check_method=pass_all
7217 ;;
7218
7219 beos*)
7220 lt_cv_deplibs_check_method=pass_all
7221 ;;
7222
7223 bsdi[45]*)
7224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7225 lt_cv_file_magic_cmd='$FILECMD -L'
7226 lt_cv_file_magic_test_file=/shlib/libc.so
7227 ;;
7228
7229 cygwin*)
7230 # func_win32_libid is a shell function defined in ltmain.sh
7231 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7232 lt_cv_file_magic_cmd='func_win32_libid'
7233 ;;
7234
7235 mingw* | windows* | pw32*)
7236 # Base MSYS/MinGW do not provide the 'file' command needed by
7237 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7238 # unless we find 'file', for example because we are cross-compiling.
7239 if ( file / ) >/dev/null 2>&1; then
7240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7241 lt_cv_file_magic_cmd='func_win32_libid'
7242 else
7243 # Keep this pattern in sync with the one in func_win32_libid.
7244 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7245 lt_cv_file_magic_cmd='$OBJDUMP -f'
7246 fi
7247 ;;
7248
7249 cegcc*)
7250 # use the weaker test based on 'objdump'. See mingw*.
7251 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7252 lt_cv_file_magic_cmd='$OBJDUMP -f'
7253 ;;
7254
7255 darwin* | rhapsody*)
7256 lt_cv_deplibs_check_method=pass_all
7257 ;;
7258
7259 freebsd* | dragonfly* | midnightbsd*)
7260 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7261 case $host_cpu in
7262 i*86 )
7263 # Not sure whether the presence of OpenBSD here was a mistake.
7264 # Let's accept both of them until this is cleared up.
7265 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7266 lt_cv_file_magic_cmd=$FILECMD
7267 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7268 ;;
7269 esac
7270 else
7271 lt_cv_deplibs_check_method=pass_all
7272 fi
7273 ;;
7274
7275 haiku*)
7276 lt_cv_deplibs_check_method=pass_all
7277 ;;
7278
7279 hpux10.20* | hpux11*)
7280 lt_cv_file_magic_cmd=$FILECMD
7281 case $host_cpu in
7282 ia64*)
7283 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7284 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7285 ;;
7286 hppa*64*)
7287 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]'
7288 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7289 ;;
7290 *)
7291 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7292 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7293 ;;
7294 esac
7295 ;;
7296
7297 interix[3-9]*)
7298 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7300 ;;
7301
7302 irix5* | irix6* | nonstopux*)
7303 case $LD in
7304 *-32|*"-32 ") libmagic=32-bit;;
7305 *-n32|*"-n32 ") libmagic=N32;;
7306 *-64|*"-64 ") libmagic=64-bit;;
7307 *) libmagic=never-match;;
7308 esac
7309 lt_cv_deplibs_check_method=pass_all
7310 ;;
7311
7312 # This must be glibc/ELF.
7313 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7314 lt_cv_deplibs_check_method=pass_all
7315 ;;
7316
7317 *-mlibc)
7318 lt_cv_deplibs_check_method=pass_all
7319 ;;
7320
7321 netbsd* | netbsdelf*-gnu)
7322 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7324 else
7325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7326 fi
7327 ;;
7328
7329 newos6*)
7330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7331 lt_cv_file_magic_cmd=$FILECMD
7332 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7333 ;;
7334
7335 *nto* | *qnx*)
7336 lt_cv_deplibs_check_method=pass_all
7337 ;;
7338
7339 openbsd*)
7340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7342 else
7343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7344 fi
7345 ;;
7346
7347 osf3* | osf4* | osf5*)
7348 lt_cv_deplibs_check_method=pass_all
7349 ;;
7350
7351 rdos*)
7352 lt_cv_deplibs_check_method=pass_all
7353 ;;
7354
7355 serenity*)
7356 lt_cv_deplibs_check_method=pass_all
7357 ;;
7358
7359 solaris*)
7360 lt_cv_deplibs_check_method=pass_all
7361 ;;
7362
7363 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7364 lt_cv_deplibs_check_method=pass_all
7365 ;;
7366
7367 sysv4 | sysv4.3*)
7368 case $host_vendor in
7369 motorola)
7370 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]'
7371 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7372 ;;
7373 ncr)
7374 lt_cv_deplibs_check_method=pass_all
7375 ;;
7376 sequent)
7377 lt_cv_file_magic_cmd='/bin/file'
7378 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7379 ;;
7380 sni)
7381 lt_cv_file_magic_cmd='/bin/file'
7382 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7383 lt_cv_file_magic_test_file=/lib/libc.so
7384 ;;
7385 siemens)
7386 lt_cv_deplibs_check_method=pass_all
7387 ;;
7388 pc)
7389 lt_cv_deplibs_check_method=pass_all
7390 ;;
7391 esac
7392 ;;
7393
7394 tpf*)
7395 lt_cv_deplibs_check_method=pass_all
7396 ;;
7397 os2*)
7398 lt_cv_deplibs_check_method=pass_all
7399 ;;
7400 esac
7401 ;;
7402 esac
7403 fi
7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7405 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7406
7407 file_magic_glob=
7408 want_nocaseglob=no
7409 if test "$build" = "$host"; then
7410 case $host_os in
7411 mingw* | windows* | pw32*)
7412 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7413 want_nocaseglob=yes
7414 else
7415 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7416 fi
7417 ;;
7418 esac
7419 fi
7420
7421 file_magic_cmd=$lt_cv_file_magic_cmd
7422 deplibs_check_method=$lt_cv_deplibs_check_method
7423 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446 if test -n "$ac_tool_prefix"; then
7447 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7448 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 printf %s "checking for $ac_word... " >&6; }
7451 if test ${ac_cv_prog_DLLTOOL+y}
7452 then :
7453 printf %s "(cached) " >&6
7454 else case e in #(
7455 e) if test -n "$DLLTOOL"; then
7456 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461 IFS=$as_save_IFS
7462 case $as_dir in #(((
7463 '') as_dir=./ ;;
7464 */) ;;
7465 *) as_dir=$as_dir/ ;;
7466 esac
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7469 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7471 break 2
7472 fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477 fi ;;
7478 esac
7479 fi
7480 DLLTOOL=$ac_cv_prog_DLLTOOL
7481 if test -n "$DLLTOOL"; then
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7483 printf "%s\n" "$DLLTOOL" >&6; }
7484 else
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 printf "%s\n" "no" >&6; }
7487 fi
7488
7489
7490 fi
7491 if test -z "$ac_cv_prog_DLLTOOL"; then
7492 ac_ct_DLLTOOL=$DLLTOOL
7493 # Extract the first word of "dlltool", so it can be a program name with args.
7494 set dummy dlltool; ac_word=$2
7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 printf %s "checking for $ac_word... " >&6; }
7497 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7498 then :
7499 printf %s "(cached) " >&6
7500 else case e in #(
7501 e) if test -n "$ac_ct_DLLTOOL"; then
7502 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507 IFS=$as_save_IFS
7508 case $as_dir in #(((
7509 '') as_dir=./ ;;
7510 */) ;;
7511 *) as_dir=$as_dir/ ;;
7512 esac
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7517 break 2
7518 fi
7519 done
7520 done
7521 IFS=$as_save_IFS
7522
7523 fi ;;
7524 esac
7525 fi
7526 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7527 if test -n "$ac_ct_DLLTOOL"; then
7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7529 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7530 else
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 printf "%s\n" "no" >&6; }
7533 fi
7534
7535 if test "x$ac_ct_DLLTOOL" = x; then
7536 DLLTOOL="false"
7537 else
7538 case $cross_compiling:$ac_tool_warned in
7539 yes:)
7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7541 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7542 ac_tool_warned=yes ;;
7543 esac
7544 DLLTOOL=$ac_ct_DLLTOOL
7545 fi
7546 else
7547 DLLTOOL="$ac_cv_prog_DLLTOOL"
7548 fi
7549
7550 test -z "$DLLTOOL" && DLLTOOL=dlltool
7551
7552
7553
7554
7555
7556
7557
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7559 printf %s "checking how to associate runtime and link libraries... " >&6; }
7560 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7561 then :
7562 printf %s "(cached) " >&6
7563 else case e in #(
7564 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7565
7566 case $host_os in
7567 cygwin* | mingw* | windows* | pw32* | cegcc*)
7568 # two different shell functions defined in ltmain.sh;
7569 # decide which one to use based on capabilities of $DLLTOOL
7570 case `$DLLTOOL --help 2>&1` in
7571 *--identify-strict*)
7572 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7573 ;;
7574 *)
7575 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7576 ;;
7577 esac
7578 ;;
7579 *)
7580 # fallback: assume linklib IS sharedlib
7581 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7582 ;;
7583 esac
7584 ;;
7585 esac
7586 fi
7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7588 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7589 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7590 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7591
7592
7593
7594
7595
7596
7597
7598 if test -n "$ac_tool_prefix"; then
7599 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7600 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 printf %s "checking for $ac_word... " >&6; }
7603 if test ${ac_cv_prog_RANLIB+y}
7604 then :
7605 printf %s "(cached) " >&6
7606 else case e in #(
7607 e) if test -n "$RANLIB"; then
7608 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613 IFS=$as_save_IFS
7614 case $as_dir in #(((
7615 '') as_dir=./ ;;
7616 */) ;;
7617 *) as_dir=$as_dir/ ;;
7618 esac
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7623 break 2
7624 fi
7625 done
7626 done
7627 IFS=$as_save_IFS
7628
7629 fi ;;
7630 esac
7631 fi
7632 RANLIB=$ac_cv_prog_RANLIB
7633 if test -n "$RANLIB"; then
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7635 printf "%s\n" "$RANLIB" >&6; }
7636 else
7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638 printf "%s\n" "no" >&6; }
7639 fi
7640
7641
7642 fi
7643 if test -z "$ac_cv_prog_RANLIB"; then
7644 ac_ct_RANLIB=$RANLIB
7645 # Extract the first word of "ranlib", so it can be a program name with args.
7646 set dummy ranlib; ac_word=$2
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648 printf %s "checking for $ac_word... " >&6; }
7649 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7650 then :
7651 printf %s "(cached) " >&6
7652 else case e in #(
7653 e) if test -n "$ac_ct_RANLIB"; then
7654 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659 IFS=$as_save_IFS
7660 case $as_dir in #(((
7661 '') as_dir=./ ;;
7662 */) ;;
7663 *) as_dir=$as_dir/ ;;
7664 esac
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_ac_ct_RANLIB="ranlib"
7668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7669 break 2
7670 fi
7671 done
7672 done
7673 IFS=$as_save_IFS
7674
7675 fi ;;
7676 esac
7677 fi
7678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7679 if test -n "$ac_ct_RANLIB"; then
7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7681 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7682 else
7683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 printf "%s\n" "no" >&6; }
7685 fi
7686
7687 if test "x$ac_ct_RANLIB" = x; then
7688 RANLIB=":"
7689 else
7690 case $cross_compiling:$ac_tool_warned in
7691 yes:)
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7693 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7694 ac_tool_warned=yes ;;
7695 esac
7696 RANLIB=$ac_ct_RANLIB
7697 fi
7698 else
7699 RANLIB="$ac_cv_prog_RANLIB"
7700 fi
7701
7702 if test -n "$ac_tool_prefix"; then
7703 for ac_prog in ar
7704 do
7705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 printf %s "checking for $ac_word... " >&6; }
7709 if test ${ac_cv_prog_AR+y}
7710 then :
7711 printf %s "(cached) " >&6
7712 else case e in #(
7713 e) if test -n "$AR"; then
7714 ac_cv_prog_AR="$AR" # Let the user override the test.
7715 else
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719 IFS=$as_save_IFS
7720 case $as_dir in #(((
7721 '') as_dir=./ ;;
7722 */) ;;
7723 *) as_dir=$as_dir/ ;;
7724 esac
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7727 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7729 break 2
7730 fi
7731 done
7732 done
7733 IFS=$as_save_IFS
7734
7735 fi ;;
7736 esac
7737 fi
7738 AR=$ac_cv_prog_AR
7739 if test -n "$AR"; then
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7741 printf "%s\n" "$AR" >&6; }
7742 else
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 printf "%s\n" "no" >&6; }
7745 fi
7746
7747
7748 test -n "$AR" && break
7749 done
7750 fi
7751 if test -z "$AR"; then
7752 ac_ct_AR=$AR
7753 for ac_prog in ar
7754 do
7755 # Extract the first word of "$ac_prog", so it can be a program name with args.
7756 set dummy $ac_prog; ac_word=$2
7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 printf %s "checking for $ac_word... " >&6; }
7759 if test ${ac_cv_prog_ac_ct_AR+y}
7760 then :
7761 printf %s "(cached) " >&6
7762 else case e in #(
7763 e) if test -n "$ac_ct_AR"; then
7764 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7768 do
7769 IFS=$as_save_IFS
7770 case $as_dir in #(((
7771 '') as_dir=./ ;;
7772 */) ;;
7773 *) as_dir=$as_dir/ ;;
7774 esac
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7777 ac_cv_prog_ac_ct_AR="$ac_prog"
7778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7779 break 2
7780 fi
7781 done
7782 done
7783 IFS=$as_save_IFS
7784
7785 fi ;;
7786 esac
7787 fi
7788 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7789 if test -n "$ac_ct_AR"; then
7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7791 printf "%s\n" "$ac_ct_AR" >&6; }
7792 else
7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 printf "%s\n" "no" >&6; }
7795 fi
7796
7797
7798 test -n "$ac_ct_AR" && break
7799 done
7800
7801 if test "x$ac_ct_AR" = x; then
7802 AR="false"
7803 else
7804 case $cross_compiling:$ac_tool_warned in
7805 yes:)
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7807 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7808 ac_tool_warned=yes ;;
7809 esac
7810 AR=$ac_ct_AR
7811 fi
7812 fi
7813
7814 : ${AR=ar}
7815
7816
7817
7818
7819
7820
7821 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7822 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7823 # higher priority because that's what people were doing historically (setting
7824 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7825 # variable obsoleted/removed.
7826
7827 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7828 lt_ar_flags=$AR_FLAGS
7829
7830
7831
7832
7833
7834
7835 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7836 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7837
7838
7839
7840
7841
7842
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7844 printf %s "checking for archiver @FILE support... " >&6; }
7845 if test ${lt_cv_ar_at_file+y}
7846 then :
7847 printf %s "(cached) " >&6
7848 else case e in #(
7849 e) lt_cv_ar_at_file=no
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852
7853 int
7854 main (void)
7855 {
7856
7857 ;
7858 return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_compile "$LINENO"
7862 then :
7863 echo conftest.$ac_objext > conftest.lst
7864 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7866 (eval $lt_ar_try) 2>&5
7867 ac_status=$?
7868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7869 test $ac_status = 0; }
7870 if test 0 -eq "$ac_status"; then
7871 # Ensure the archiver fails upon bogus file names.
7872 rm -f conftest.$ac_objext libconftest.a
7873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7874 (eval $lt_ar_try) 2>&5
7875 ac_status=$?
7876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7877 test $ac_status = 0; }
7878 if test 0 -ne "$ac_status"; then
7879 lt_cv_ar_at_file=@
7880 fi
7881 fi
7882 rm -f conftest.* libconftest.a
7883
7884 fi
7885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7886 ;;
7887 esac
7888 fi
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7890 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7891
7892 if test no = "$lt_cv_ar_at_file"; then
7893 archiver_list_spec=
7894 else
7895 archiver_list_spec=$lt_cv_ar_at_file
7896 fi
7897
7898
7899
7900
7901
7902
7903
7904 if test -n "$ac_tool_prefix"; then
7905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7906 set dummy ${ac_tool_prefix}strip; ac_word=$2
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908 printf %s "checking for $ac_word... " >&6; }
7909 if test ${ac_cv_prog_STRIP+y}
7910 then :
7911 printf %s "(cached) " >&6
7912 else case e in #(
7913 e) if test -n "$STRIP"; then
7914 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919 IFS=$as_save_IFS
7920 case $as_dir in #(((
7921 '') as_dir=./ ;;
7922 */) ;;
7923 *) as_dir=$as_dir/ ;;
7924 esac
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7927 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7929 break 2
7930 fi
7931 done
7932 done
7933 IFS=$as_save_IFS
7934
7935 fi ;;
7936 esac
7937 fi
7938 STRIP=$ac_cv_prog_STRIP
7939 if test -n "$STRIP"; then
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7941 printf "%s\n" "$STRIP" >&6; }
7942 else
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 printf "%s\n" "no" >&6; }
7945 fi
7946
7947
7948 fi
7949 if test -z "$ac_cv_prog_STRIP"; then
7950 ac_ct_STRIP=$STRIP
7951 # Extract the first word of "strip", so it can be a program name with args.
7952 set dummy strip; ac_word=$2
7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954 printf %s "checking for $ac_word... " >&6; }
7955 if test ${ac_cv_prog_ac_ct_STRIP+y}
7956 then :
7957 printf %s "(cached) " >&6
7958 else case e in #(
7959 e) if test -n "$ac_ct_STRIP"; then
7960 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965 IFS=$as_save_IFS
7966 case $as_dir in #(((
7967 '') as_dir=./ ;;
7968 */) ;;
7969 *) as_dir=$as_dir/ ;;
7970 esac
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7973 ac_cv_prog_ac_ct_STRIP="strip"
7974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7975 break 2
7976 fi
7977 done
7978 done
7979 IFS=$as_save_IFS
7980
7981 fi ;;
7982 esac
7983 fi
7984 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7985 if test -n "$ac_ct_STRIP"; then
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7987 printf "%s\n" "$ac_ct_STRIP" >&6; }
7988 else
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 printf "%s\n" "no" >&6; }
7991 fi
7992
7993 if test "x$ac_ct_STRIP" = x; then
7994 STRIP=":"
7995 else
7996 case $cross_compiling:$ac_tool_warned in
7997 yes:)
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7999 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8000 ac_tool_warned=yes ;;
8001 esac
8002 STRIP=$ac_ct_STRIP
8003 fi
8004 else
8005 STRIP="$ac_cv_prog_STRIP"
8006 fi
8007
8008 test -z "$STRIP" && STRIP=:
8009
8010
8011
8012
8013
8014
8015
8016 test -z "$RANLIB" && RANLIB=:
8017
8018
8019
8020
8021
8022
8023 # Determine commands to create old-style static archives.
8024 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8025 old_postinstall_cmds='chmod 644 $oldlib'
8026 old_postuninstall_cmds=
8027
8028 if test -n "$RANLIB"; then
8029 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8030 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8031 fi
8032
8033 case $host_os in
8034 darwin*)
8035 lock_old_archive_extraction=yes ;;
8036 *)
8037 lock_old_archive_extraction=no ;;
8038 esac
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078 # If no C compiler was specified, use CC.
8079 LTCC=${LTCC-"$CC"}
8080
8081 # If no C compiler flags were specified, use CFLAGS.
8082 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8083
8084 # Allow CC to be a program name with arguments.
8085 compiler=$CC
8086
8087
8088 # Check for command to grab the raw symbol name followed by C symbol from nm.
8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8090 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8091 if test ${lt_cv_sys_global_symbol_pipe+y}
8092 then :
8093 printf %s "(cached) " >&6
8094 else case e in #(
8095 e)
8096 # These are sane defaults that work on at least a few old systems.
8097 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8098
8099 # Character class describing NM global symbol codes.
8100 symcode='[BCDEGRST]'
8101
8102 # Regexp to match symbols that can be accessed directly from C.
8103 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8104
8105 # Define system-specific variables.
8106 case $host_os in
8107 aix*)
8108 symcode='[BCDT]'
8109 ;;
8110 cygwin* | mingw* | windows* | pw32* | cegcc*)
8111 symcode='[ABCDGISTW]'
8112 ;;
8113 hpux*)
8114 if test ia64 = "$host_cpu"; then
8115 symcode='[ABCDEGRST]'
8116 fi
8117 ;;
8118 irix* | nonstopux*)
8119 symcode='[BCDEGRST]'
8120 ;;
8121 osf*)
8122 symcode='[BCDEGQRST]'
8123 ;;
8124 solaris*)
8125 symcode='[BCDRT]'
8126 ;;
8127 sco3.2v5*)
8128 symcode='[DT]'
8129 ;;
8130 sysv4.2uw2*)
8131 symcode='[DT]'
8132 ;;
8133 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8134 symcode='[ABDT]'
8135 ;;
8136 sysv4)
8137 symcode='[DFNSTU]'
8138 ;;
8139 esac
8140
8141 # If we're using GNU nm, then use its standard symbol codes.
8142 case `$NM -V 2>&1` in
8143 *GNU* | *'with BFD'*)
8144 symcode='[ABCDGIRSTW]' ;;
8145 esac
8146
8147 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8148 # Gets list of data symbols to import.
8149 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8150 # Adjust the below global symbol transforms to fixup imported variables.
8151 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8152 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8153 lt_c_name_lib_hook="\
8154 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8155 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8156 else
8157 # Disable hooks by default.
8158 lt_cv_sys_global_symbol_to_import=
8159 lt_cdecl_hook=
8160 lt_c_name_hook=
8161 lt_c_name_lib_hook=
8162 fi
8163
8164 # Transform an extracted symbol line into a proper C declaration.
8165 # Some systems (esp. on ia64) link data and code symbols differently,
8166 # so use this general approach.
8167 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8168 $lt_cdecl_hook\
8169 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8170 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8171
8172 # Transform an extracted symbol line into symbol name and symbol address
8173 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8174 $lt_c_name_hook\
8175 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8176 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8177
8178 # Transform an extracted symbol line into symbol name with lib prefix and
8179 # symbol address.
8180 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8181 $lt_c_name_lib_hook\
8182 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8183 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8184 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8185
8186 # Handle CRLF in mingw tool chain
8187 opt_cr=
8188 case $build_os in
8189 mingw* | windows*)
8190 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8191 ;;
8192 esac
8193
8194 # Try without a prefix underscore, then with it.
8195 for ac_symprfx in "" "_"; do
8196
8197 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8198 symxfrm="\\1 $ac_symprfx\\2 \\2"
8199
8200 # Write the raw and C identifiers.
8201 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8202 # Fake it for dumpbin and say T for any non-static function,
8203 # D for any global variable and I for any imported variable.
8204 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8205 # which start with @ or ?.
8206 lt_cv_sys_global_symbol_pipe="$AWK '"\
8207 " {last_section=section; section=\$ 3};"\
8208 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8209 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8210 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8211 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8212 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8213 " \$ 0!~/External *\|/{next};"\
8214 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8215 " {if(hide[section]) next};"\
8216 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8217 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8218 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8219 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8220 " ' prfx=^$ac_symprfx"
8221 else
8222 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8223 fi
8224 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8225
8226 # Check to see that the pipe works correctly.
8227 pipe_works=no
8228
8229 rm -f conftest*
8230 cat > conftest.$ac_ext <<_LT_EOF
8231 #ifdef __cplusplus
8232 extern "C" {
8233 #endif
8234 char nm_test_var;
8235 void nm_test_func(void);
8236 void nm_test_func(void){}
8237 #ifdef __cplusplus
8238 }
8239 #endif
8240 int main(void){nm_test_var='a';nm_test_func();return(0);}
8241 _LT_EOF
8242
8243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8244 (eval $ac_compile) 2>&5
8245 ac_status=$?
8246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8247 test $ac_status = 0; }; then
8248 # Now try to grab the symbols.
8249 nlist=conftest.nm
8250 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8251 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8252 # Try sorting and uniquifying the output.
8253 if sort "$nlist" | uniq > "$nlist"T; then
8254 mv -f "$nlist"T "$nlist"
8255 else
8256 rm -f "$nlist"T
8257 fi
8258
8259 # Make sure that we snagged all the symbols we need.
8260 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8261 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8262 cat <<_LT_EOF > conftest.$ac_ext
8263 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8264 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8265 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8266 relocations are performed -- see ld's documentation on pseudo-relocs. */
8267 # define LT_DLSYM_CONST
8268 #elif defined __osf__
8269 /* This system does not cope well with relocations in const data. */
8270 # define LT_DLSYM_CONST
8271 #else
8272 # define LT_DLSYM_CONST const
8273 #endif
8274
8275 #ifdef __cplusplus
8276 extern "C" {
8277 #endif
8278
8279 _LT_EOF
8280 # Now generate the symbol file.
8281 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8282
8283 cat <<_LT_EOF >> conftest.$ac_ext
8284
8285 /* The mapping between symbol names and symbols. */
8286 LT_DLSYM_CONST struct {
8287 const char *name;
8288 void *address;
8289 }
8290 lt__PROGRAM__LTX_preloaded_symbols[] =
8291 {
8292 { "@PROGRAM@", (void *) 0 },
8293 _LT_EOF
8294 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8295 cat <<\_LT_EOF >> conftest.$ac_ext
8296 {0, (void *) 0}
8297 };
8298
8299 /* This works around a problem in FreeBSD linker */
8300 #ifdef FREEBSD_WORKAROUND
8301 static const void *lt_preloaded_setup() {
8302 return lt__PROGRAM__LTX_preloaded_symbols;
8303 }
8304 #endif
8305
8306 #ifdef __cplusplus
8307 }
8308 #endif
8309 _LT_EOF
8310 # Now try linking the two files.
8311 mv conftest.$ac_objext conftstm.$ac_objext
8312 lt_globsym_save_LIBS=$LIBS
8313 lt_globsym_save_CFLAGS=$CFLAGS
8314 LIBS=conftstm.$ac_objext
8315 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8317 (eval $ac_link) 2>&5
8318 ac_status=$?
8319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8320 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8321 pipe_works=yes
8322 fi
8323 LIBS=$lt_globsym_save_LIBS
8324 CFLAGS=$lt_globsym_save_CFLAGS
8325 else
8326 echo "cannot find nm_test_func in $nlist" >&5
8327 fi
8328 else
8329 echo "cannot find nm_test_var in $nlist" >&5
8330 fi
8331 else
8332 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8333 fi
8334 else
8335 echo "$progname: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8337 fi
8338 rm -rf conftest* conftst*
8339
8340 # Do not use the global_symbol_pipe unless it works.
8341 if test yes = "$pipe_works"; then
8342 break
8343 else
8344 lt_cv_sys_global_symbol_pipe=
8345 fi
8346 done
8347 ;;
8348 esac
8349 fi
8350
8351 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8352 lt_cv_sys_global_symbol_to_cdecl=
8353 fi
8354 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8356 printf "%s\n" "failed" >&6; }
8357 else
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8359 printf "%s\n" "ok" >&6; }
8360 fi
8361
8362 # Response file support.
8363 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8364 nm_file_list_spec='@'
8365 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8366 nm_file_list_spec='@'
8367 fi
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8406 printf %s "checking for sysroot... " >&6; }
8407
8408 # Check whether --with-sysroot was given.
8409 if test ${with_sysroot+y}
8410 then :
8411 withval=$with_sysroot;
8412 else case e in #(
8413 e) with_sysroot=no ;;
8414 esac
8415 fi
8416
8417
8418 lt_sysroot=
8419 case $with_sysroot in #(
8420 yes)
8421 if test yes = "$GCC"; then
8422 # Trim trailing / since we'll always append absolute paths and we want
8423 # to avoid //, if only for less confusing output for the user.
8424 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8425 fi
8426 ;; #(
8427 /*)
8428 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8429 ;; #(
8430 no|'')
8431 ;; #(
8432 *)
8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8434 printf "%s\n" "$with_sysroot" >&6; }
8435 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8436 ;;
8437 esac
8438
8439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8440 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8441
8442
8443
8444
8445
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8447 printf %s "checking for a working dd... " >&6; }
8448 if test ${ac_cv_path_lt_DD+y}
8449 then :
8450 printf %s "(cached) " >&6
8451 else case e in #(
8452 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8453 cat conftest.i conftest.i >conftest2.i
8454 : ${lt_DD:=$DD}
8455 if test -z "$lt_DD"; then
8456 ac_path_lt_DD_found=false
8457 # Loop through the user's path and test for each of PROGNAME-LIST
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 for as_dir in $PATH
8460 do
8461 IFS=$as_save_IFS
8462 case $as_dir in #(((
8463 '') as_dir=./ ;;
8464 */) ;;
8465 *) as_dir=$as_dir/ ;;
8466 esac
8467 for ac_prog in dd
8468 do
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8471 as_fn_executable_p "$ac_path_lt_DD" || continue
8472 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8473 cmp -s conftest.i conftest.out \
8474 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8475 fi
8476 $ac_path_lt_DD_found && break 3
8477 done
8478 done
8479 done
8480 IFS=$as_save_IFS
8481 if test -z "$ac_cv_path_lt_DD"; then
8482 :
8483 fi
8484 else
8485 ac_cv_path_lt_DD=$lt_DD
8486 fi
8487
8488 rm -f conftest.i conftest2.i conftest.out ;;
8489 esac
8490 fi
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8492 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8493
8494
8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8496 printf %s "checking how to truncate binary pipes... " >&6; }
8497 if test ${lt_cv_truncate_bin+y}
8498 then :
8499 printf %s "(cached) " >&6
8500 else case e in #(
8501 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8502 cat conftest.i conftest.i >conftest2.i
8503 lt_cv_truncate_bin=
8504 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8505 cmp -s conftest.i conftest.out \
8506 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8507 fi
8508 rm -f conftest.i conftest2.i conftest.out
8509 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8510 esac
8511 fi
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8513 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8514
8515
8516
8517
8518
8519
8520
8521 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8522 func_cc_basename ()
8523 {
8524 for cc_temp in $*""; do
8525 case $cc_temp in
8526 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8527 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8528 \-*) ;;
8529 *) break;;
8530 esac
8531 done
8532 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8533 }
8534
8535 # Check whether --enable-libtool-lock was given.
8536 if test ${enable_libtool_lock+y}
8537 then :
8538 enableval=$enable_libtool_lock;
8539 fi
8540
8541 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8542
8543 # Some flags need to be propagated to the compiler or linker for good
8544 # libtool support.
8545 case $host in
8546 ia64-*-hpux*)
8547 # Find out what ABI is being produced by ac_compile, and set mode
8548 # options accordingly.
8549 echo 'int i;' > conftest.$ac_ext
8550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8551 (eval $ac_compile) 2>&5
8552 ac_status=$?
8553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8554 test $ac_status = 0; }; then
8555 case `$FILECMD conftest.$ac_objext` in
8556 *ELF-32*)
8557 HPUX_IA64_MODE=32
8558 ;;
8559 *ELF-64*)
8560 HPUX_IA64_MODE=64
8561 ;;
8562 esac
8563 fi
8564 rm -rf conftest*
8565 ;;
8566 *-*-irix6*)
8567 # Find out what ABI is being produced by ac_compile, and set linker
8568 # options accordingly.
8569 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8571 (eval $ac_compile) 2>&5
8572 ac_status=$?
8573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8574 test $ac_status = 0; }; then
8575 if test yes = "$lt_cv_prog_gnu_ld"; then
8576 case `$FILECMD conftest.$ac_objext` in
8577 *32-bit*)
8578 LD="${LD-ld} -melf32bsmip"
8579 ;;
8580 *N32*)
8581 LD="${LD-ld} -melf32bmipn32"
8582 ;;
8583 *64-bit*)
8584 LD="${LD-ld} -melf64bmip"
8585 ;;
8586 esac
8587 else
8588 case `$FILECMD conftest.$ac_objext` in
8589 *32-bit*)
8590 LD="${LD-ld} -32"
8591 ;;
8592 *N32*)
8593 LD="${LD-ld} -n32"
8594 ;;
8595 *64-bit*)
8596 LD="${LD-ld} -64"
8597 ;;
8598 esac
8599 fi
8600 fi
8601 rm -rf conftest*
8602 ;;
8603
8604 mips64*-*linux*)
8605 # Find out what ABI is being produced by ac_compile, and set linker
8606 # options accordingly.
8607 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8609 (eval $ac_compile) 2>&5
8610 ac_status=$?
8611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8612 test $ac_status = 0; }; then
8613 emul=elf
8614 case `$FILECMD conftest.$ac_objext` in
8615 *32-bit*)
8616 emul="${emul}32"
8617 ;;
8618 *64-bit*)
8619 emul="${emul}64"
8620 ;;
8621 esac
8622 case `$FILECMD conftest.$ac_objext` in
8623 *MSB*)
8624 emul="${emul}btsmip"
8625 ;;
8626 *LSB*)
8627 emul="${emul}ltsmip"
8628 ;;
8629 esac
8630 case `$FILECMD conftest.$ac_objext` in
8631 *N32*)
8632 emul="${emul}n32"
8633 ;;
8634 esac
8635 LD="${LD-ld} -m $emul"
8636 fi
8637 rm -rf conftest*
8638 ;;
8639
8640 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8641 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8642 # Find out what ABI is being produced by ac_compile, and set linker
8643 # options accordingly. Note that the listed cases only cover the
8644 # situations where additional linker options are needed (such as when
8645 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8646 # vice versa); the common cases where no linker options are needed do
8647 # not appear in the list.
8648 echo 'int i;' > conftest.$ac_ext
8649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8650 (eval $ac_compile) 2>&5
8651 ac_status=$?
8652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8653 test $ac_status = 0; }; then
8654 case `$FILECMD conftest.o` in
8655 *32-bit*)
8656 case $host in
8657 x86_64-*kfreebsd*-gnu)
8658 LD="${LD-ld} -m elf_i386_fbsd"
8659 ;;
8660 x86_64-*linux*|x86_64-gnu*)
8661 case `$FILECMD conftest.o` in
8662 *x86-64*)
8663 LD="${LD-ld} -m elf32_x86_64"
8664 ;;
8665 *)
8666 LD="${LD-ld} -m elf_i386"
8667 ;;
8668 esac
8669 ;;
8670 powerpc64le-*linux*)
8671 LD="${LD-ld} -m elf32lppclinux"
8672 ;;
8673 powerpc64-*linux*)
8674 LD="${LD-ld} -m elf32ppclinux"
8675 ;;
8676 s390x-*linux*)
8677 LD="${LD-ld} -m elf_s390"
8678 ;;
8679 sparc64-*linux*)
8680 LD="${LD-ld} -m elf32_sparc"
8681 ;;
8682 esac
8683 ;;
8684 *64-bit*)
8685 case $host in
8686 x86_64-*kfreebsd*-gnu)
8687 LD="${LD-ld} -m elf_x86_64_fbsd"
8688 ;;
8689 x86_64-*linux*|x86_64-gnu*)
8690 LD="${LD-ld} -m elf_x86_64"
8691 ;;
8692 powerpcle-*linux*)
8693 LD="${LD-ld} -m elf64lppc"
8694 ;;
8695 powerpc-*linux*)
8696 LD="${LD-ld} -m elf64ppc"
8697 ;;
8698 s390*-*linux*|s390*-*tpf*)
8699 LD="${LD-ld} -m elf64_s390"
8700 ;;
8701 sparc*-*linux*)
8702 LD="${LD-ld} -m elf64_sparc"
8703 ;;
8704 esac
8705 ;;
8706 esac
8707 fi
8708 rm -rf conftest*
8709 ;;
8710
8711 *-*-sco3.2v5*)
8712 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8713 SAVE_CFLAGS=$CFLAGS
8714 CFLAGS="$CFLAGS -belf"
8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8716 printf %s "checking whether the C compiler needs -belf... " >&6; }
8717 if test ${lt_cv_cc_needs_belf+y}
8718 then :
8719 printf %s "(cached) " >&6
8720 else case e in #(
8721 e) ac_ext=c
8722 ac_cpp='$CPP $CPPFLAGS'
8723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8726
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729
8730 int
8731 main (void)
8732 {
8733
8734 ;
8735 return 0;
8736 }
8737 _ACEOF
8738 if ac_fn_c_try_link "$LINENO"
8739 then :
8740 lt_cv_cc_needs_belf=yes
8741 else case e in #(
8742 e) lt_cv_cc_needs_belf=no ;;
8743 esac
8744 fi
8745 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8746 conftest$ac_exeext conftest.$ac_ext
8747 ac_ext=c
8748 ac_cpp='$CPP $CPPFLAGS'
8749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8752 ;;
8753 esac
8754 fi
8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8756 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8757 if test yes != "$lt_cv_cc_needs_belf"; then
8758 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8759 CFLAGS=$SAVE_CFLAGS
8760 fi
8761 ;;
8762 *-*solaris*)
8763 # Find out what ABI is being produced by ac_compile, and set linker
8764 # options accordingly.
8765 echo 'int i;' > conftest.$ac_ext
8766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8767 (eval $ac_compile) 2>&5
8768 ac_status=$?
8769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8770 test $ac_status = 0; }; then
8771 case `$FILECMD conftest.o` in
8772 *64-bit*)
8773 case $lt_cv_prog_gnu_ld in
8774 yes*)
8775 case $host in
8776 i?86-*-solaris*|x86_64-*-solaris*)
8777 LD="${LD-ld} -m elf_x86_64"
8778 ;;
8779 sparc*-*-solaris*)
8780 LD="${LD-ld} -m elf64_sparc"
8781 ;;
8782 esac
8783 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8784 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8785 LD=${LD-ld}_sol2
8786 fi
8787 ;;
8788 *)
8789 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8790 LD="${LD-ld} -64"
8791 fi
8792 ;;
8793 esac
8794 ;;
8795 esac
8796 fi
8797 rm -rf conftest*
8798 ;;
8799 esac
8800
8801 need_locks=$enable_libtool_lock
8802
8803 if test -n "$ac_tool_prefix"; then
8804 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8805 set dummy ${ac_tool_prefix}mt; ac_word=$2
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 printf %s "checking for $ac_word... " >&6; }
8808 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8809 then :
8810 printf %s "(cached) " >&6
8811 else case e in #(
8812 e) if test -n "$MANIFEST_TOOL"; then
8813 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8814 else
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816 for as_dir in $PATH
8817 do
8818 IFS=$as_save_IFS
8819 case $as_dir in #(((
8820 '') as_dir=./ ;;
8821 */) ;;
8822 *) as_dir=$as_dir/ ;;
8823 esac
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8826 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8828 break 2
8829 fi
8830 done
8831 done
8832 IFS=$as_save_IFS
8833
8834 fi ;;
8835 esac
8836 fi
8837 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8838 if test -n "$MANIFEST_TOOL"; then
8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8840 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8841 else
8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843 printf "%s\n" "no" >&6; }
8844 fi
8845
8846
8847 fi
8848 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8849 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8850 # Extract the first word of "mt", so it can be a program name with args.
8851 set dummy mt; ac_word=$2
8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853 printf %s "checking for $ac_word... " >&6; }
8854 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8855 then :
8856 printf %s "(cached) " >&6
8857 else case e in #(
8858 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8859 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8860 else
8861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862 for as_dir in $PATH
8863 do
8864 IFS=$as_save_IFS
8865 case $as_dir in #(((
8866 '') as_dir=./ ;;
8867 */) ;;
8868 *) as_dir=$as_dir/ ;;
8869 esac
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8872 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8874 break 2
8875 fi
8876 done
8877 done
8878 IFS=$as_save_IFS
8879
8880 fi ;;
8881 esac
8882 fi
8883 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8884 if test -n "$ac_ct_MANIFEST_TOOL"; then
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8886 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8887 else
8888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 printf "%s\n" "no" >&6; }
8890 fi
8891
8892 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8893 MANIFEST_TOOL=":"
8894 else
8895 case $cross_compiling:$ac_tool_warned in
8896 yes:)
8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8898 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8899 ac_tool_warned=yes ;;
8900 esac
8901 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8902 fi
8903 else
8904 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8905 fi
8906
8907 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8909 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8910 if test ${lt_cv_path_manifest_tool+y}
8911 then :
8912 printf %s "(cached) " >&6
8913 else case e in #(
8914 e) lt_cv_path_manifest_tool=no
8915 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8916 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8917 cat conftest.err >&5
8918 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8919 lt_cv_path_manifest_tool=yes
8920 fi
8921 rm -f conftest* ;;
8922 esac
8923 fi
8924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8925 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8926 if test yes != "$lt_cv_path_manifest_tool"; then
8927 MANIFEST_TOOL=:
8928 fi
8929
8930
8931
8932
8933
8934
8935 case $host_os in
8936 rhapsody* | darwin*)
8937 if test -n "$ac_tool_prefix"; then
8938 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8939 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 printf %s "checking for $ac_word... " >&6; }
8942 if test ${ac_cv_prog_DSYMUTIL+y}
8943 then :
8944 printf %s "(cached) " >&6
8945 else case e in #(
8946 e) if test -n "$DSYMUTIL"; then
8947 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8948 else
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8951 do
8952 IFS=$as_save_IFS
8953 case $as_dir in #(((
8954 '') as_dir=./ ;;
8955 */) ;;
8956 *) as_dir=$as_dir/ ;;
8957 esac
8958 for ac_exec_ext in '' $ac_executable_extensions; do
8959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8960 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8962 break 2
8963 fi
8964 done
8965 done
8966 IFS=$as_save_IFS
8967
8968 fi ;;
8969 esac
8970 fi
8971 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8972 if test -n "$DSYMUTIL"; then
8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8974 printf "%s\n" "$DSYMUTIL" >&6; }
8975 else
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8977 printf "%s\n" "no" >&6; }
8978 fi
8979
8980
8981 fi
8982 if test -z "$ac_cv_prog_DSYMUTIL"; then
8983 ac_ct_DSYMUTIL=$DSYMUTIL
8984 # Extract the first word of "dsymutil", so it can be a program name with args.
8985 set dummy dsymutil; ac_word=$2
8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8987 printf %s "checking for $ac_word... " >&6; }
8988 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8989 then :
8990 printf %s "(cached) " >&6
8991 else case e in #(
8992 e) if test -n "$ac_ct_DSYMUTIL"; then
8993 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8994 else
8995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8996 for as_dir in $PATH
8997 do
8998 IFS=$as_save_IFS
8999 case $as_dir in #(((
9000 '') as_dir=./ ;;
9001 */) ;;
9002 *) as_dir=$as_dir/ ;;
9003 esac
9004 for ac_exec_ext in '' $ac_executable_extensions; do
9005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9006 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9008 break 2
9009 fi
9010 done
9011 done
9012 IFS=$as_save_IFS
9013
9014 fi ;;
9015 esac
9016 fi
9017 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9018 if test -n "$ac_ct_DSYMUTIL"; then
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9020 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9021 else
9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 printf "%s\n" "no" >&6; }
9024 fi
9025
9026 if test "x$ac_ct_DSYMUTIL" = x; then
9027 DSYMUTIL=":"
9028 else
9029 case $cross_compiling:$ac_tool_warned in
9030 yes:)
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9032 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9033 ac_tool_warned=yes ;;
9034 esac
9035 DSYMUTIL=$ac_ct_DSYMUTIL
9036 fi
9037 else
9038 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9039 fi
9040
9041 if test -n "$ac_tool_prefix"; then
9042 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9043 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 printf %s "checking for $ac_word... " >&6; }
9046 if test ${ac_cv_prog_NMEDIT+y}
9047 then :
9048 printf %s "(cached) " >&6
9049 else case e in #(
9050 e) if test -n "$NMEDIT"; then
9051 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9052 else
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9055 do
9056 IFS=$as_save_IFS
9057 case $as_dir in #(((
9058 '') as_dir=./ ;;
9059 */) ;;
9060 *) as_dir=$as_dir/ ;;
9061 esac
9062 for ac_exec_ext in '' $ac_executable_extensions; do
9063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9064 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9066 break 2
9067 fi
9068 done
9069 done
9070 IFS=$as_save_IFS
9071
9072 fi ;;
9073 esac
9074 fi
9075 NMEDIT=$ac_cv_prog_NMEDIT
9076 if test -n "$NMEDIT"; then
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9078 printf "%s\n" "$NMEDIT" >&6; }
9079 else
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081 printf "%s\n" "no" >&6; }
9082 fi
9083
9084
9085 fi
9086 if test -z "$ac_cv_prog_NMEDIT"; then
9087 ac_ct_NMEDIT=$NMEDIT
9088 # Extract the first word of "nmedit", so it can be a program name with args.
9089 set dummy nmedit; ac_word=$2
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9091 printf %s "checking for $ac_word... " >&6; }
9092 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9093 then :
9094 printf %s "(cached) " >&6
9095 else case e in #(
9096 e) if test -n "$ac_ct_NMEDIT"; then
9097 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9098 else
9099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 for as_dir in $PATH
9101 do
9102 IFS=$as_save_IFS
9103 case $as_dir in #(((
9104 '') as_dir=./ ;;
9105 */) ;;
9106 *) as_dir=$as_dir/ ;;
9107 esac
9108 for ac_exec_ext in '' $ac_executable_extensions; do
9109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9110 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9112 break 2
9113 fi
9114 done
9115 done
9116 IFS=$as_save_IFS
9117
9118 fi ;;
9119 esac
9120 fi
9121 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9122 if test -n "$ac_ct_NMEDIT"; then
9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9124 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9125 else
9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 printf "%s\n" "no" >&6; }
9128 fi
9129
9130 if test "x$ac_ct_NMEDIT" = x; then
9131 NMEDIT=":"
9132 else
9133 case $cross_compiling:$ac_tool_warned in
9134 yes:)
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9136 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9137 ac_tool_warned=yes ;;
9138 esac
9139 NMEDIT=$ac_ct_NMEDIT
9140 fi
9141 else
9142 NMEDIT="$ac_cv_prog_NMEDIT"
9143 fi
9144
9145 if test -n "$ac_tool_prefix"; then
9146 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9147 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 printf %s "checking for $ac_word... " >&6; }
9150 if test ${ac_cv_prog_LIPO+y}
9151 then :
9152 printf %s "(cached) " >&6
9153 else case e in #(
9154 e) if test -n "$LIPO"; then
9155 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9156 else
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9159 do
9160 IFS=$as_save_IFS
9161 case $as_dir in #(((
9162 '') as_dir=./ ;;
9163 */) ;;
9164 *) as_dir=$as_dir/ ;;
9165 esac
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9168 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9170 break 2
9171 fi
9172 done
9173 done
9174 IFS=$as_save_IFS
9175
9176 fi ;;
9177 esac
9178 fi
9179 LIPO=$ac_cv_prog_LIPO
9180 if test -n "$LIPO"; then
9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9182 printf "%s\n" "$LIPO" >&6; }
9183 else
9184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9185 printf "%s\n" "no" >&6; }
9186 fi
9187
9188
9189 fi
9190 if test -z "$ac_cv_prog_LIPO"; then
9191 ac_ct_LIPO=$LIPO
9192 # Extract the first word of "lipo", so it can be a program name with args.
9193 set dummy lipo; ac_word=$2
9194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195 printf %s "checking for $ac_word... " >&6; }
9196 if test ${ac_cv_prog_ac_ct_LIPO+y}
9197 then :
9198 printf %s "(cached) " >&6
9199 else case e in #(
9200 e) if test -n "$ac_ct_LIPO"; then
9201 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9202 else
9203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204 for as_dir in $PATH
9205 do
9206 IFS=$as_save_IFS
9207 case $as_dir in #(((
9208 '') as_dir=./ ;;
9209 */) ;;
9210 *) as_dir=$as_dir/ ;;
9211 esac
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9214 ac_cv_prog_ac_ct_LIPO="lipo"
9215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9216 break 2
9217 fi
9218 done
9219 done
9220 IFS=$as_save_IFS
9221
9222 fi ;;
9223 esac
9224 fi
9225 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9226 if test -n "$ac_ct_LIPO"; then
9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9228 printf "%s\n" "$ac_ct_LIPO" >&6; }
9229 else
9230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 printf "%s\n" "no" >&6; }
9232 fi
9233
9234 if test "x$ac_ct_LIPO" = x; then
9235 LIPO=":"
9236 else
9237 case $cross_compiling:$ac_tool_warned in
9238 yes:)
9239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9240 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9241 ac_tool_warned=yes ;;
9242 esac
9243 LIPO=$ac_ct_LIPO
9244 fi
9245 else
9246 LIPO="$ac_cv_prog_LIPO"
9247 fi
9248
9249 if test -n "$ac_tool_prefix"; then
9250 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9251 set dummy ${ac_tool_prefix}otool; ac_word=$2
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9253 printf %s "checking for $ac_word... " >&6; }
9254 if test ${ac_cv_prog_OTOOL+y}
9255 then :
9256 printf %s "(cached) " >&6
9257 else case e in #(
9258 e) if test -n "$OTOOL"; then
9259 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9260 else
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 for as_dir in $PATH
9263 do
9264 IFS=$as_save_IFS
9265 case $as_dir in #(((
9266 '') as_dir=./ ;;
9267 */) ;;
9268 *) as_dir=$as_dir/ ;;
9269 esac
9270 for ac_exec_ext in '' $ac_executable_extensions; do
9271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9272 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9274 break 2
9275 fi
9276 done
9277 done
9278 IFS=$as_save_IFS
9279
9280 fi ;;
9281 esac
9282 fi
9283 OTOOL=$ac_cv_prog_OTOOL
9284 if test -n "$OTOOL"; then
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9286 printf "%s\n" "$OTOOL" >&6; }
9287 else
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9289 printf "%s\n" "no" >&6; }
9290 fi
9291
9292
9293 fi
9294 if test -z "$ac_cv_prog_OTOOL"; then
9295 ac_ct_OTOOL=$OTOOL
9296 # Extract the first word of "otool", so it can be a program name with args.
9297 set dummy otool; ac_word=$2
9298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299 printf %s "checking for $ac_word... " >&6; }
9300 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9301 then :
9302 printf %s "(cached) " >&6
9303 else case e in #(
9304 e) if test -n "$ac_ct_OTOOL"; then
9305 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9306 else
9307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9308 for as_dir in $PATH
9309 do
9310 IFS=$as_save_IFS
9311 case $as_dir in #(((
9312 '') as_dir=./ ;;
9313 */) ;;
9314 *) as_dir=$as_dir/ ;;
9315 esac
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9318 ac_cv_prog_ac_ct_OTOOL="otool"
9319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9320 break 2
9321 fi
9322 done
9323 done
9324 IFS=$as_save_IFS
9325
9326 fi ;;
9327 esac
9328 fi
9329 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9330 if test -n "$ac_ct_OTOOL"; then
9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9332 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9333 else
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335 printf "%s\n" "no" >&6; }
9336 fi
9337
9338 if test "x$ac_ct_OTOOL" = x; then
9339 OTOOL=":"
9340 else
9341 case $cross_compiling:$ac_tool_warned in
9342 yes:)
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9344 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9345 ac_tool_warned=yes ;;
9346 esac
9347 OTOOL=$ac_ct_OTOOL
9348 fi
9349 else
9350 OTOOL="$ac_cv_prog_OTOOL"
9351 fi
9352
9353 if test -n "$ac_tool_prefix"; then
9354 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9355 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9357 printf %s "checking for $ac_word... " >&6; }
9358 if test ${ac_cv_prog_OTOOL64+y}
9359 then :
9360 printf %s "(cached) " >&6
9361 else case e in #(
9362 e) if test -n "$OTOOL64"; then
9363 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9364 else
9365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366 for as_dir in $PATH
9367 do
9368 IFS=$as_save_IFS
9369 case $as_dir in #(((
9370 '') as_dir=./ ;;
9371 */) ;;
9372 *) as_dir=$as_dir/ ;;
9373 esac
9374 for ac_exec_ext in '' $ac_executable_extensions; do
9375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9376 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9378 break 2
9379 fi
9380 done
9381 done
9382 IFS=$as_save_IFS
9383
9384 fi ;;
9385 esac
9386 fi
9387 OTOOL64=$ac_cv_prog_OTOOL64
9388 if test -n "$OTOOL64"; then
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9390 printf "%s\n" "$OTOOL64" >&6; }
9391 else
9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393 printf "%s\n" "no" >&6; }
9394 fi
9395
9396
9397 fi
9398 if test -z "$ac_cv_prog_OTOOL64"; then
9399 ac_ct_OTOOL64=$OTOOL64
9400 # Extract the first word of "otool64", so it can be a program name with args.
9401 set dummy otool64; ac_word=$2
9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9403 printf %s "checking for $ac_word... " >&6; }
9404 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9405 then :
9406 printf %s "(cached) " >&6
9407 else case e in #(
9408 e) if test -n "$ac_ct_OTOOL64"; then
9409 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9410 else
9411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9412 for as_dir in $PATH
9413 do
9414 IFS=$as_save_IFS
9415 case $as_dir in #(((
9416 '') as_dir=./ ;;
9417 */) ;;
9418 *) as_dir=$as_dir/ ;;
9419 esac
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9422 ac_cv_prog_ac_ct_OTOOL64="otool64"
9423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9424 break 2
9425 fi
9426 done
9427 done
9428 IFS=$as_save_IFS
9429
9430 fi ;;
9431 esac
9432 fi
9433 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9434 if test -n "$ac_ct_OTOOL64"; then
9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9436 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9437 else
9438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9439 printf "%s\n" "no" >&6; }
9440 fi
9441
9442 if test "x$ac_ct_OTOOL64" = x; then
9443 OTOOL64=":"
9444 else
9445 case $cross_compiling:$ac_tool_warned in
9446 yes:)
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9448 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9449 ac_tool_warned=yes ;;
9450 esac
9451 OTOOL64=$ac_ct_OTOOL64
9452 fi
9453 else
9454 OTOOL64="$ac_cv_prog_OTOOL64"
9455 fi
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9484 printf %s "checking for -single_module linker flag... " >&6; }
9485 if test ${lt_cv_apple_cc_single_mod+y}
9486 then :
9487 printf %s "(cached) " >&6
9488 else case e in #(
9489 e) lt_cv_apple_cc_single_mod=no
9490 if test -z "$LT_MULTI_MODULE"; then
9491 # By default we will add the -single_module flag. You can override
9492 # by either setting the environment variable LT_MULTI_MODULE
9493 # non-empty at configure time, or by adding -multi_module to the
9494 # link flags.
9495 rm -rf libconftest.dylib*
9496 echo "int foo(void){return 1;}" > conftest.c
9497 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9498 -dynamiclib -Wl,-single_module conftest.c" >&5
9499 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9500 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9501 _lt_result=$?
9502 # If there is a non-empty error log, and "single_module"
9503 # appears in it, assume the flag caused a linker warning
9504 if test -s conftest.err && $GREP single_module conftest.err; then
9505 cat conftest.err >&5
9506 # Otherwise, if the output was created with a 0 exit code from
9507 # the compiler, it worked.
9508 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9509 lt_cv_apple_cc_single_mod=yes
9510 else
9511 cat conftest.err >&5
9512 fi
9513 rm -rf libconftest.dylib*
9514 rm -f conftest.*
9515 fi ;;
9516 esac
9517 fi
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9519 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9520
9521 # Feature test to disable chained fixups since it is not
9522 # compatible with '-undefined dynamic_lookup'
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9524 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9525 if test ${lt_cv_support_no_fixup_chains+y}
9526 then :
9527 printf %s "(cached) " >&6
9528 else case e in #(
9529 e) save_LDFLAGS=$LDFLAGS
9530 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9533
9534 int
9535 main (void)
9536 {
9537
9538 ;
9539 return 0;
9540 }
9541 _ACEOF
9542 if ac_fn_c_try_link "$LINENO"
9543 then :
9544 lt_cv_support_no_fixup_chains=yes
9545 else case e in #(
9546 e) lt_cv_support_no_fixup_chains=no
9547 ;;
9548 esac
9549 fi
9550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9551 conftest$ac_exeext conftest.$ac_ext
9552 LDFLAGS=$save_LDFLAGS
9553
9554 ;;
9555 esac
9556 fi
9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9558 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9559
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9561 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9562 if test ${lt_cv_ld_exported_symbols_list+y}
9563 then :
9564 printf %s "(cached) " >&6
9565 else case e in #(
9566 e) lt_cv_ld_exported_symbols_list=no
9567 save_LDFLAGS=$LDFLAGS
9568 echo "_main" > conftest.sym
9569 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572
9573 int
9574 main (void)
9575 {
9576
9577 ;
9578 return 0;
9579 }
9580 _ACEOF
9581 if ac_fn_c_try_link "$LINENO"
9582 then :
9583 lt_cv_ld_exported_symbols_list=yes
9584 else case e in #(
9585 e) lt_cv_ld_exported_symbols_list=no ;;
9586 esac
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9589 conftest$ac_exeext conftest.$ac_ext
9590 LDFLAGS=$save_LDFLAGS
9591 ;;
9592 esac
9593 fi
9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9595 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9596
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9598 printf %s "checking for -force_load linker flag... " >&6; }
9599 if test ${lt_cv_ld_force_load+y}
9600 then :
9601 printf %s "(cached) " >&6
9602 else case e in #(
9603 e) lt_cv_ld_force_load=no
9604 cat > conftest.c << _LT_EOF
9605 int forced_loaded() { return 2;}
9606 _LT_EOF
9607 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9608 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9609 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9610 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9611 echo "$RANLIB libconftest.a" >&5
9612 $RANLIB libconftest.a 2>&5
9613 cat > conftest.c << _LT_EOF
9614 int main(void) { return 0;}
9615 _LT_EOF
9616 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9617 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9618 _lt_result=$?
9619 if test -s conftest.err && $GREP force_load conftest.err; then
9620 cat conftest.err >&5
9621 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9622 lt_cv_ld_force_load=yes
9623 else
9624 cat conftest.err >&5
9625 fi
9626 rm -f conftest.err libconftest.a conftest conftest.c
9627 rm -rf conftest.dSYM
9628 ;;
9629 esac
9630 fi
9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9632 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9633 case $host_os in
9634 rhapsody* | darwin1.[012])
9635 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9636 darwin1.*)
9637 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9638 darwin*)
9639 case $MACOSX_DEPLOYMENT_TARGET,$host in
9640 10.[012],*|,*powerpc*-darwin[5-8]*)
9641 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9642 *)
9643 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9644 if test yes = "$lt_cv_support_no_fixup_chains"; then
9645 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9646 fi
9647 ;;
9648 esac
9649 ;;
9650 esac
9651 if test yes = "$lt_cv_apple_cc_single_mod"; then
9652 _lt_dar_single_mod='$single_module'
9653 fi
9654 _lt_dar_needs_single_mod=no
9655 case $host_os in
9656 rhapsody* | darwin1.*)
9657 _lt_dar_needs_single_mod=yes ;;
9658 darwin*)
9659 # When targeting Mac OS X 10.4 (darwin 8) or later,
9660 # -single_module is the default and -multi_module is unsupported.
9661 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9662 # target any OS version that needs -single_module.
9663 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9664 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9665 _lt_dar_needs_single_mod=yes ;;
9666 esac
9667 ;;
9668 esac
9669 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9670 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9671 else
9672 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9673 fi
9674 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9675 _lt_dsymutil='~$DSYMUTIL $lib || :'
9676 else
9677 _lt_dsymutil=
9678 fi
9679 ;;
9680 esac
9681
9682 # func_munge_path_list VARIABLE PATH
9683 # -----------------------------------
9684 # VARIABLE is name of variable containing _space_ separated list of
9685 # directories to be munged by the contents of PATH, which is string
9686 # having a format:
9687 # "DIR[:DIR]:"
9688 # string "DIR[ DIR]" will be prepended to VARIABLE
9689 # ":DIR[:DIR]"
9690 # string "DIR[ DIR]" will be appended to VARIABLE
9691 # "DIRP[:DIRP]::[DIRA:]DIRA"
9692 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9693 # "DIRA[ DIRA]" will be appended to VARIABLE
9694 # "DIR[:DIR]"
9695 # VARIABLE will be replaced by "DIR[ DIR]"
9696 func_munge_path_list ()
9697 {
9698 case x$2 in
9699 x)
9700 ;;
9701 *:)
9702 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9703 ;;
9704 x:*)
9705 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9706 ;;
9707 *::*)
9708 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9709 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9710 ;;
9711 *)
9712 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9713 ;;
9714 esac
9715 }
9716
9717 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9718 "
9719 if test "x$ac_cv_header_dlfcn_h" = xyes
9720 then :
9721 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9722
9723 fi
9724
9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
9726 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
9727 if test ${ac_cv_c_undeclared_builtin_options+y}
9728 then :
9729 printf %s "(cached) " >&6
9730 else case e in #(
9731 e) ac_save_CFLAGS=$CFLAGS
9732 ac_cv_c_undeclared_builtin_options='cannot detect'
9733 for ac_arg in '' -fno-builtin; do
9734 CFLAGS="$ac_save_CFLAGS $ac_arg"
9735 # This test program should *not* compile successfully.
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738
9739 int
9740 main (void)
9741 {
9742 (void) strchr;
9743 ;
9744 return 0;
9745 }
9746 _ACEOF
9747 if ac_fn_c_try_compile "$LINENO"
9748 then :
9749
9750 else case e in #(
9751 e) # This test program should compile successfully.
9752 # No library function is consistently available on
9753 # freestanding implementations, so test against a dummy
9754 # declaration. Include always-available headers on the
9755 # off chance that they somehow elicit warnings.
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9758 #include <float.h>
9759 #include <limits.h>
9760 #include <stdarg.h>
9761 #include <stddef.h>
9762 extern void ac_decl (int, char *);
9763
9764 int
9765 main (void)
9766 {
9767 (void) ac_decl (0, (char *) 0);
9768 (void) ac_decl;
9769
9770 ;
9771 return 0;
9772 }
9773 _ACEOF
9774 if ac_fn_c_try_compile "$LINENO"
9775 then :
9776 if test x"$ac_arg" = x
9777 then :
9778 ac_cv_c_undeclared_builtin_options='none needed'
9779 else case e in #(
9780 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
9781 esac
9782 fi
9783 break
9784 fi
9785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9786 esac
9787 fi
9788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9789 done
9790 CFLAGS=$ac_save_CFLAGS
9791 ;;
9792 esac
9793 fi
9794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
9795 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
9796 case $ac_cv_c_undeclared_builtin_options in #(
9797 'cannot detect') :
9798 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9799 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9800 as_fn_error $? "cannot make $CC report undeclared builtins
9801 See 'config.log' for more details" "$LINENO" 5; } ;; #(
9802 'none needed') :
9803 ac_c_undeclared_builtin_options='' ;; #(
9804 *) :
9805 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
9806 esac
9807
9808 echo 'tldbg:KPSE_COMMON called (pkg=lcdf-typetools, amopt=)' >&5
9809 echo 'tldbg:KPSE_BASIC called (pkg=lcdf-typetools, amopt=)' >&5
9810
9811 #
9812 # am_init_automake
9813 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9814 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9815 # is not polluted with repeated "-I."
9816 am__isrc=' -I$(srcdir)'
9817 # test to see if srcdir already configured
9818 if test -f $srcdir/config.status; then
9819 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9820 fi
9821 fi
9822
9823 # test whether we have cygpath
9824 if test -z "$CYGPATH_W"; then
9825 if (cygpath --version) >/dev/null 2>/dev/null; then
9826 CYGPATH_W='cygpath -w'
9827 else
9828 CYGPATH_W=echo
9829 fi
9830 fi
9831
9832
9833 # Define the identity of the package.
9834 PACKAGE='lcdf-typetools--tex-live-'
9835 VERSION='2.110'
9836
9837
9838 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
9839
9840
9841 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
9842
9843 # Some tools Automake needs.
9844
9845 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9846
9847
9848 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9849
9850
9851 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9852
9853
9854 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9855
9856
9857 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9858
9859 # For better backward compatibility. To be removed once Automake 1.9.x
9860 # dies out for good. For more background, see:
9861 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9862 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9863 mkdir_p='$(MKDIR_P)'
9864
9865 # We need awk for the "check" target (and possibly the TAP driver). The
9866 # system "awk" is bad on some platforms.
9867 # Always define AMTAR for backward compatibility. Yes, it's still used
9868 # in the wild :-( We should find a proper way to deprecate it ...
9869 AMTAR='$${TAR-tar}'
9870
9871
9872 # We'll loop over all known methods to create a tar archive until one works.
9873 _am_tools='gnutar plaintar pax cpio none'
9874
9875 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9876 # There is notably a 21 bits limit for the UID and the GID. In fact,
9877 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9878 # and bug#13588).
9879 am_max_uid=2097151 # 2^21 - 1
9880 am_max_gid=$am_max_uid
9881 # The $UID and $GID variables are not portable, so we need to resort
9882 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9883 # below are definitely unexpected, so allow the users to see them
9884 # (that is, avoid stderr redirection).
9885 am_uid=`id -u || echo unknown`
9886 am_gid=`id -g || echo unknown`
9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9888 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9889 if test x$am_uid = xunknown; then
9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9891 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9892 elif test $am_uid -le $am_max_uid; then
9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9894 printf "%s\n" "yes" >&6; }
9895 else
9896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 printf "%s\n" "no" >&6; }
9898 _am_tools=none
9899 fi
9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9901 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9902 if test x$gm_gid = xunknown; then
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9904 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9905 elif test $am_gid -le $am_max_gid; then
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9907 printf "%s\n" "yes" >&6; }
9908 else
9909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 printf "%s\n" "no" >&6; }
9911 _am_tools=none
9912 fi
9913
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9915 printf %s "checking how to create a ustar tar archive... " >&6; }
9916
9917 # Go ahead even if we have the value already cached. We do so because we
9918 # need to set the values for the 'am__tar' and 'am__untar' variables.
9919 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9920
9921 for _am_tool in $_am_tools; do
9922 case $_am_tool in
9923 gnutar)
9924 for _am_tar in tar gnutar gtar; do
9925 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9926 ($_am_tar --version) >&5 2>&5
9927 ac_status=$?
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } && break
9930 done
9931 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9932 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9933 am__untar="$_am_tar -xf -"
9934 ;;
9935 plaintar)
9936 # Must skip GNU tar: if it does not support --format= it doesn't create
9937 # ustar tarball either.
9938 (tar --version) >/dev/null 2>&1 && continue
9939 am__tar='tar chf - "$$tardir"'
9940 am__tar_='tar chf - "$tardir"'
9941 am__untar='tar xf -'
9942 ;;
9943 pax)
9944 am__tar='pax -L -x ustar -w "$$tardir"'
9945 am__tar_='pax -L -x ustar -w "$tardir"'
9946 am__untar='pax -r'
9947 ;;
9948 cpio)
9949 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9950 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9951 am__untar='cpio -i -H ustar -d'
9952 ;;
9953 none)
9954 am__tar=false
9955 am__tar_=false
9956 am__untar=false
9957 ;;
9958 esac
9959
9960 # If the value was cached, stop now. We just wanted to have am__tar
9961 # and am__untar set.
9962 test -n "${am_cv_prog_tar_ustar}" && break
9963
9964 # tar/untar a dummy directory, and stop if the command works.
9965 rm -rf conftest.dir
9966 mkdir conftest.dir
9967 echo GrepMe > conftest.dir/file
9968 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9969 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }
9973 rm -rf conftest.dir
9974 if test -s conftest.tar; then
9975 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9976 ($am__untar <conftest.tar) >&5 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }
9980 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9981 (cat conftest.dir/file) >&5 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }
9985 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9986 fi
9987 done
9988 rm -rf conftest.dir
9989
9990 if test ${am_cv_prog_tar_ustar+y}
9991 then :
9992 printf %s "(cached) " >&6
9993 else case e in #(
9994 e) am_cv_prog_tar_ustar=$_am_tool ;;
9995 esac
9996 fi
9997
9998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9999 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
10000
10001
10002
10003
10004
10005 # Variables for tags utilities; see am/tags.am
10006 if test -z "$CTAGS"; then
10007 CTAGS=ctags
10008 fi
10009
10010 if test -z "$ETAGS"; then
10011 ETAGS=etags
10012 fi
10013
10014 if test -z "$CSCOPE"; then
10015 CSCOPE=cscope
10016 fi
10017
10018
10019
10020
10021
10022
10023
10024
10025 # am_maintainer_mode
10026
10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10028 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10029 # Check whether --enable-maintainer-mode was given.
10030 if test ${enable_maintainer_mode+y}
10031 then :
10032 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10033 else case e in #(
10034 e) USE_MAINTAINER_MODE=no ;;
10035 esac
10036 fi
10037
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10039 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
10040 if test $USE_MAINTAINER_MODE = yes; then
10041 MAINTAINER_MODE_TRUE=
10042 MAINTAINER_MODE_FALSE='#'
10043 else
10044 MAINTAINER_MODE_TRUE='#'
10045 MAINTAINER_MODE_FALSE=
10046 fi
10047
10048 MAINT=$MAINTAINER_MODE_TRUE
10049
10050
10051
10052 # See comments in kpse-setup.m4 about system extensions.
10053
10054
10055 # Check whether prototypes work.
10056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
10057 printf %s "checking whether the compiler accepts prototypes... " >&6; }
10058 if test ${kb_cv_c_prototypes+y}
10059 then :
10060 printf %s "(cached) " >&6
10061 else case e in #(
10062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063 /* end confdefs.h. */
10064 #include <stdarg.h>
10065 int
10066 main (void)
10067 {
10068 extern void foo(int i,...);
10069 ;
10070 return 0;
10071 }
10072 _ACEOF
10073 if ac_fn_c_try_link "$LINENO"
10074 then :
10075 kb_cv_c_prototypes=yes
10076 else case e in #(
10077 e) kb_cv_c_prototypes=no ;;
10078 esac
10079 fi
10080 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10081 conftest$ac_exeext conftest.$ac_ext ;;
10082 esac
10083 fi
10084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
10085 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
10086 if test "x$kb_cv_c_prototypes" = xno; then
10087 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
10088 fi
10089
10090 # kpse_compiler_warnings options.
10091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
10092 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
10093 if test ${kpse_cv_warning_cflags+y}
10094 then :
10095 printf %s "(cached) " >&6
10096 else case e in #(
10097 e) if test "x$GCC" = xyes; then
10098 kpse_cv_warning_cflags=
10099 if test "x$enable_compiler_warnings" != xno; then
10100 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
10101 case `$CC -dumpversion` in #(
10102 3.4.* | 4.* | 5.*) :
10103 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
10104 *) :
10105 ;;
10106 esac
10107 case `$CC -dumpversion` in #(
10108 3.[234].* | 4.* | 5.*) :
10109 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
10110 *) :
10111 ;;
10112 esac
10113 if test "x$enable_compiler_warnings" != xmin; then
10114 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
10115 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
10116 if test "x$enable_compiler_warnings" != xyes; then
10117 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
10118 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
10119 case `$CC -dumpversion` in #(
10120 3.4.* | 4.* | 5.*) :
10121 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
10122 *) :
10123 ;;
10124 esac
10125 if test "x$enable_compiler_warnings" != xmax; then
10126 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
10127 fi
10128 fi
10129 fi
10130 fi
10131 elif test "x$enable_compiler_warnings" = xno; then
10132 kpse_cv_warning_cflags=
10133 else
10134 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
10135 fi ;;
10136 esac
10137 fi
10138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
10139 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
10140 WARNING_CFLAGS=$kpse_cv_warning_cflags
10141
10142
10143
10144
10145
10146
10147
10148 # end of kpse_basic macro.
10149 echo 'tldbg:KPSE_BASIC done (pkg=lcdf-typetools, amopt=)' >&5
10150
10151 # am_prog_ar must be called before lt_init.
10152
10153 if test -n "$ac_tool_prefix"; then
10154 for ac_prog in ar lib "link -lib"
10155 do
10156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10159 printf %s "checking for $ac_word... " >&6; }
10160 if test ${ac_cv_prog_AR+y}
10161 then :
10162 printf %s "(cached) " >&6
10163 else case e in #(
10164 e) if test -n "$AR"; then
10165 ac_cv_prog_AR="$AR" # Let the user override the test.
10166 else
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10169 do
10170 IFS=$as_save_IFS
10171 case $as_dir in #(((
10172 '') as_dir=./ ;;
10173 */) ;;
10174 *) as_dir=$as_dir/ ;;
10175 esac
10176 for ac_exec_ext in '' $ac_executable_extensions; do
10177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10178 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10180 break 2
10181 fi
10182 done
10183 done
10184 IFS=$as_save_IFS
10185
10186 fi ;;
10187 esac
10188 fi
10189 AR=$ac_cv_prog_AR
10190 if test -n "$AR"; then
10191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10192 printf "%s\n" "$AR" >&6; }
10193 else
10194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10195 printf "%s\n" "no" >&6; }
10196 fi
10197
10198
10199 test -n "$AR" && break
10200 done
10201 fi
10202 if test -z "$AR"; then
10203 ac_ct_AR=$AR
10204 for ac_prog in ar lib "link -lib"
10205 do
10206 # Extract the first word of "$ac_prog", so it can be a program name with args.
10207 set dummy $ac_prog; ac_word=$2
10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209 printf %s "checking for $ac_word... " >&6; }
10210 if test ${ac_cv_prog_ac_ct_AR+y}
10211 then :
10212 printf %s "(cached) " >&6
10213 else case e in #(
10214 e) if test -n "$ac_ct_AR"; then
10215 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10216 else
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10219 do
10220 IFS=$as_save_IFS
10221 case $as_dir in #(((
10222 '') as_dir=./ ;;
10223 */) ;;
10224 *) as_dir=$as_dir/ ;;
10225 esac
10226 for ac_exec_ext in '' $ac_executable_extensions; do
10227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10228 ac_cv_prog_ac_ct_AR="$ac_prog"
10229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10230 break 2
10231 fi
10232 done
10233 done
10234 IFS=$as_save_IFS
10235
10236 fi ;;
10237 esac
10238 fi
10239 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10240 if test -n "$ac_ct_AR"; then
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10242 printf "%s\n" "$ac_ct_AR" >&6; }
10243 else
10244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 printf "%s\n" "no" >&6; }
10246 fi
10247
10248
10249 test -n "$ac_ct_AR" && break
10250 done
10251
10252 if test "x$ac_ct_AR" = x; then
10253 AR="false"
10254 else
10255 case $cross_compiling:$ac_tool_warned in
10256 yes:)
10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10258 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10259 ac_tool_warned=yes ;;
10260 esac
10261 AR=$ac_ct_AR
10262 fi
10263 fi
10264
10265 : ${AR=ar}
10266 : ${ARFLAGS=cr}
10267
10268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
10269 printf %s "checking the archiver ($AR) interface... " >&6; }
10270 if test ${am_cv_ar_interface+y}
10271 then :
10272 printf %s "(cached) " >&6
10273 else case e in #(
10274 e) ac_ext=c
10275 ac_cpp='$CPP $CPPFLAGS'
10276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10279
10280 am_cv_ar_interface=ar
10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10283 int some_variable = 0;
10284 _ACEOF
10285 if ac_fn_c_try_compile "$LINENO"
10286 then :
10287 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
10288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
10289 (eval $am_ar_try) 2>&5
10290 ac_status=$?
10291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10292 test $ac_status = 0; }
10293 if test "$ac_status" -eq 0; then
10294 am_cv_ar_interface=ar
10295 else
10296 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
10297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
10298 (eval $am_ar_try) 2>&5
10299 ac_status=$?
10300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10301 test $ac_status = 0; }
10302 if test "$ac_status" -eq 0; then
10303 am_cv_ar_interface=lib
10304 else
10305 am_cv_ar_interface=unknown
10306 fi
10307 fi
10308 rm -f conftest.lib libconftest.a
10309
10310 fi
10311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10312 ac_ext=c
10313 ac_cpp='$CPP $CPPFLAGS'
10314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10317 ;;
10318 esac
10319 fi
10320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
10321 printf "%s\n" "$am_cv_ar_interface" >&6; }
10322
10323 case $am_cv_ar_interface in
10324 ar)
10325 ;;
10326 lib)
10327 # Microsoft lib, so override with the ar-lib wrapper script.
10328 # FIXME: It is wrong to rewrite AR.
10329 # But if we don't then we get into trouble of one sort or another.
10330 # A longer-term fix would be to have automake use am__AR in this case,
10331 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
10332 # similar.
10333 AR="$am_aux_dir/ar-lib $AR"
10334 ;;
10335 unknown)
10336 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
10337 ;;
10338 esac
10339
10340 # (end am_prog_ar)
10341 # starting lt_prereq + lt_init.
10342
10343
10344
10345
10346
10347 # Set options
10348 enable_win32_dll=yes
10349
10350 case $host in
10351 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
10352 if test -n "$ac_tool_prefix"; then
10353 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10354 set dummy ${ac_tool_prefix}as; ac_word=$2
10355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356 printf %s "checking for $ac_word... " >&6; }
10357 if test ${ac_cv_prog_AS+y}
10358 then :
10359 printf %s "(cached) " >&6
10360 else case e in #(
10361 e) if test -n "$AS"; then
10362 ac_cv_prog_AS="$AS" # Let the user override the test.
10363 else
10364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365 for as_dir in $PATH
10366 do
10367 IFS=$as_save_IFS
10368 case $as_dir in #(((
10369 '') as_dir=./ ;;
10370 */) ;;
10371 *) as_dir=$as_dir/ ;;
10372 esac
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10375 ac_cv_prog_AS="${ac_tool_prefix}as"
10376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10377 break 2
10378 fi
10379 done
10380 done
10381 IFS=$as_save_IFS
10382
10383 fi ;;
10384 esac
10385 fi
10386 AS=$ac_cv_prog_AS
10387 if test -n "$AS"; then
10388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10389 printf "%s\n" "$AS" >&6; }
10390 else
10391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 printf "%s\n" "no" >&6; }
10393 fi
10394
10395
10396 fi
10397 if test -z "$ac_cv_prog_AS"; then
10398 ac_ct_AS=$AS
10399 # Extract the first word of "as", so it can be a program name with args.
10400 set dummy as; ac_word=$2
10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10402 printf %s "checking for $ac_word... " >&6; }
10403 if test ${ac_cv_prog_ac_ct_AS+y}
10404 then :
10405 printf %s "(cached) " >&6
10406 else case e in #(
10407 e) if test -n "$ac_ct_AS"; then
10408 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10409 else
10410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411 for as_dir in $PATH
10412 do
10413 IFS=$as_save_IFS
10414 case $as_dir in #(((
10415 '') as_dir=./ ;;
10416 */) ;;
10417 *) as_dir=$as_dir/ ;;
10418 esac
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10421 ac_cv_prog_ac_ct_AS="as"
10422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10423 break 2
10424 fi
10425 done
10426 done
10427 IFS=$as_save_IFS
10428
10429 fi ;;
10430 esac
10431 fi
10432 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10433 if test -n "$ac_ct_AS"; then
10434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10435 printf "%s\n" "$ac_ct_AS" >&6; }
10436 else
10437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 printf "%s\n" "no" >&6; }
10439 fi
10440
10441 if test "x$ac_ct_AS" = x; then
10442 AS="false"
10443 else
10444 case $cross_compiling:$ac_tool_warned in
10445 yes:)
10446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10447 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10448 ac_tool_warned=yes ;;
10449 esac
10450 AS=$ac_ct_AS
10451 fi
10452 else
10453 AS="$ac_cv_prog_AS"
10454 fi
10455
10456 if test -n "$ac_tool_prefix"; then
10457 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10458 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10460 printf %s "checking for $ac_word... " >&6; }
10461 if test ${ac_cv_prog_DLLTOOL+y}
10462 then :
10463 printf %s "(cached) " >&6
10464 else case e in #(
10465 e) if test -n "$DLLTOOL"; then
10466 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10467 else
10468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469 for as_dir in $PATH
10470 do
10471 IFS=$as_save_IFS
10472 case $as_dir in #(((
10473 '') as_dir=./ ;;
10474 */) ;;
10475 *) as_dir=$as_dir/ ;;
10476 esac
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10479 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10481 break 2
10482 fi
10483 done
10484 done
10485 IFS=$as_save_IFS
10486
10487 fi ;;
10488 esac
10489 fi
10490 DLLTOOL=$ac_cv_prog_DLLTOOL
10491 if test -n "$DLLTOOL"; then
10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10493 printf "%s\n" "$DLLTOOL" >&6; }
10494 else
10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 printf "%s\n" "no" >&6; }
10497 fi
10498
10499
10500 fi
10501 if test -z "$ac_cv_prog_DLLTOOL"; then
10502 ac_ct_DLLTOOL=$DLLTOOL
10503 # Extract the first word of "dlltool", so it can be a program name with args.
10504 set dummy dlltool; ac_word=$2
10505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506 printf %s "checking for $ac_word... " >&6; }
10507 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10508 then :
10509 printf %s "(cached) " >&6
10510 else case e in #(
10511 e) if test -n "$ac_ct_DLLTOOL"; then
10512 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10513 else
10514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515 for as_dir in $PATH
10516 do
10517 IFS=$as_save_IFS
10518 case $as_dir in #(((
10519 '') as_dir=./ ;;
10520 */) ;;
10521 *) as_dir=$as_dir/ ;;
10522 esac
10523 for ac_exec_ext in '' $ac_executable_extensions; do
10524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10525 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10527 break 2
10528 fi
10529 done
10530 done
10531 IFS=$as_save_IFS
10532
10533 fi ;;
10534 esac
10535 fi
10536 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10537 if test -n "$ac_ct_DLLTOOL"; then
10538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10539 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10540 else
10541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542 printf "%s\n" "no" >&6; }
10543 fi
10544
10545 if test "x$ac_ct_DLLTOOL" = x; then
10546 DLLTOOL="false"
10547 else
10548 case $cross_compiling:$ac_tool_warned in
10549 yes:)
10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10551 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10552 ac_tool_warned=yes ;;
10553 esac
10554 DLLTOOL=$ac_ct_DLLTOOL
10555 fi
10556 else
10557 DLLTOOL="$ac_cv_prog_DLLTOOL"
10558 fi
10559
10560 if test -n "$ac_tool_prefix"; then
10561 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10562 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564 printf %s "checking for $ac_word... " >&6; }
10565 if test ${ac_cv_prog_OBJDUMP+y}
10566 then :
10567 printf %s "(cached) " >&6
10568 else case e in #(
10569 e) if test -n "$OBJDUMP"; then
10570 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10571 else
10572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573 for as_dir in $PATH
10574 do
10575 IFS=$as_save_IFS
10576 case $as_dir in #(((
10577 '') as_dir=./ ;;
10578 */) ;;
10579 *) as_dir=$as_dir/ ;;
10580 esac
10581 for ac_exec_ext in '' $ac_executable_extensions; do
10582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10583 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10585 break 2
10586 fi
10587 done
10588 done
10589 IFS=$as_save_IFS
10590
10591 fi ;;
10592 esac
10593 fi
10594 OBJDUMP=$ac_cv_prog_OBJDUMP
10595 if test -n "$OBJDUMP"; then
10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10597 printf "%s\n" "$OBJDUMP" >&6; }
10598 else
10599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600 printf "%s\n" "no" >&6; }
10601 fi
10602
10603
10604 fi
10605 if test -z "$ac_cv_prog_OBJDUMP"; then
10606 ac_ct_OBJDUMP=$OBJDUMP
10607 # Extract the first word of "objdump", so it can be a program name with args.
10608 set dummy objdump; ac_word=$2
10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10610 printf %s "checking for $ac_word... " >&6; }
10611 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10612 then :
10613 printf %s "(cached) " >&6
10614 else case e in #(
10615 e) if test -n "$ac_ct_OBJDUMP"; then
10616 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10617 else
10618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619 for as_dir in $PATH
10620 do
10621 IFS=$as_save_IFS
10622 case $as_dir in #(((
10623 '') as_dir=./ ;;
10624 */) ;;
10625 *) as_dir=$as_dir/ ;;
10626 esac
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10629 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10631 break 2
10632 fi
10633 done
10634 done
10635 IFS=$as_save_IFS
10636
10637 fi ;;
10638 esac
10639 fi
10640 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10641 if test -n "$ac_ct_OBJDUMP"; then
10642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10643 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10644 else
10645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 printf "%s\n" "no" >&6; }
10647 fi
10648
10649 if test "x$ac_ct_OBJDUMP" = x; then
10650 OBJDUMP="false"
10651 else
10652 case $cross_compiling:$ac_tool_warned in
10653 yes:)
10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10655 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10656 ac_tool_warned=yes ;;
10657 esac
10658 OBJDUMP=$ac_ct_OBJDUMP
10659 fi
10660 else
10661 OBJDUMP="$ac_cv_prog_OBJDUMP"
10662 fi
10663
10664 ;;
10665 esac
10666
10667 test -z "$AS" && AS=as
10668
10669
10670
10671
10672
10673 test -z "$DLLTOOL" && DLLTOOL=dlltool
10674
10675
10676
10677
10678
10679 test -z "$OBJDUMP" && OBJDUMP=objdump
10680
10681
10682
10683
10684
10685
10686
10687 enable_dlopen=no
10688
10689
10690
10691 # Check whether --enable-shared was given.
10692 if test ${enable_shared+y}
10693 then :
10694 enableval=$enable_shared; p=${PACKAGE-default}
10695 case $enableval in
10696 yes) enable_shared=yes ;;
10697 no) enable_shared=no ;;
10698 *)
10699 enable_shared=no
10700 # Look at the argument we got. We use all the common list separators.
10701 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10702 for pkg in $enableval; do
10703 IFS=$lt_save_ifs
10704 if test "X$pkg" = "X$p"; then
10705 enable_shared=yes
10706 fi
10707 done
10708 IFS=$lt_save_ifs
10709 ;;
10710 esac
10711 else case e in #(
10712 e) enable_shared=yes ;;
10713 esac
10714 fi
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724 # Check whether --enable-static was given.
10725 if test ${enable_static+y}
10726 then :
10727 enableval=$enable_static; p=${PACKAGE-default}
10728 case $enableval in
10729 yes) enable_static=yes ;;
10730 no) enable_static=no ;;
10731 *)
10732 enable_static=no
10733 # Look at the argument we got. We use all the common list separators.
10734 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10735 for pkg in $enableval; do
10736 IFS=$lt_save_ifs
10737 if test "X$pkg" = "X$p"; then
10738 enable_static=yes
10739 fi
10740 done
10741 IFS=$lt_save_ifs
10742 ;;
10743 esac
10744 else case e in #(
10745 e) enable_static=yes ;;
10746 esac
10747 fi
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757 # Check whether --enable-pic was given.
10758 if test ${enable_pic+y}
10759 then :
10760 enableval=$enable_pic; lt_p=${PACKAGE-default}
10761 case $enableval in
10762 yes|no) pic_mode=$enableval ;;
10763 *)
10764 pic_mode=default
10765 # Look at the argument we got. We use all the common list separators.
10766 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10767 for lt_pkg in $enableval; do
10768 IFS=$lt_save_ifs
10769 if test "X$lt_pkg" = "X$lt_p"; then
10770 pic_mode=yes
10771 fi
10772 done
10773 IFS=$lt_save_ifs
10774 ;;
10775 esac
10776 else case e in #(
10777 e) # Check whether --with-pic was given.
10778 if test ${with_pic+y}
10779 then :
10780 withval=$with_pic; lt_p=${PACKAGE-default}
10781 case $withval in
10782 yes|no) pic_mode=$withval ;;
10783 *)
10784 pic_mode=default
10785 # Look at the argument we got. We use all the common list separators.
10786 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10787 for lt_pkg in $withval; do
10788 IFS=$lt_save_ifs
10789 if test "X$lt_pkg" = "X$lt_p"; then
10790 pic_mode=yes
10791 fi
10792 done
10793 IFS=$lt_save_ifs
10794 ;;
10795 esac
10796 else case e in #(
10797 e) pic_mode=default ;;
10798 esac
10799 fi
10800
10801 ;;
10802 esac
10803 fi
10804
10805
10806
10807
10808
10809
10810
10811
10812 # Check whether --enable-fast-install was given.
10813 if test ${enable_fast_install+y}
10814 then :
10815 enableval=$enable_fast_install; p=${PACKAGE-default}
10816 case $enableval in
10817 yes) enable_fast_install=yes ;;
10818 no) enable_fast_install=no ;;
10819 *)
10820 enable_fast_install=no
10821 # Look at the argument we got. We use all the common list separators.
10822 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10823 for pkg in $enableval; do
10824 IFS=$lt_save_ifs
10825 if test "X$pkg" = "X$p"; then
10826 enable_fast_install=yes
10827 fi
10828 done
10829 IFS=$lt_save_ifs
10830 ;;
10831 esac
10832 else case e in #(
10833 e) enable_fast_install=yes ;;
10834 esac
10835 fi
10836
10837
10838
10839
10840
10841
10842
10843
10844 shared_archive_member_spec=
10845 case $host,$enable_shared in
10846 power*-*-aix[5-9]*,yes)
10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10848 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10849 # Check whether --enable-aix-soname was given.
10850 if test ${enable_aix_soname+y}
10851 then :
10852 enableval=$enable_aix_soname; case $enableval in
10853 aix|svr4|both)
10854 ;;
10855 *)
10856 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10857 ;;
10858 esac
10859 lt_cv_with_aix_soname=$enable_aix_soname
10860 else case e in #(
10861 e) # Check whether --with-aix-soname was given.
10862 if test ${with_aix_soname+y}
10863 then :
10864 withval=$with_aix_soname; case $withval in
10865 aix|svr4|both)
10866 ;;
10867 *)
10868 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10869 ;;
10870 esac
10871 lt_cv_with_aix_soname=$with_aix_soname
10872 else case e in #(
10873 e) if test ${lt_cv_with_aix_soname+y}
10874 then :
10875 printf %s "(cached) " >&6
10876 else case e in #(
10877 e) lt_cv_with_aix_soname=aix ;;
10878 esac
10879 fi
10880 ;;
10881 esac
10882 fi
10883
10884 enable_aix_soname=$lt_cv_with_aix_soname ;;
10885 esac
10886 fi
10887
10888 with_aix_soname=$enable_aix_soname
10889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10890 printf "%s\n" "$with_aix_soname" >&6; }
10891 if test aix != "$with_aix_soname"; then
10892 # For the AIX way of multilib, we name the shared archive member
10893 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10894 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10895 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10896 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10897 if test 64 = "${OBJECT_MODE-32}"; then
10898 shared_archive_member_spec=shr_64
10899 else
10900 shared_archive_member_spec=shr
10901 fi
10902 fi
10903 ;;
10904 *)
10905 with_aix_soname=aix
10906 ;;
10907 esac
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918 # This can be used to rebuild libtool when needed
10919 LIBTOOL_DEPS=$ltmain
10920
10921 # Always use our own libtool.
10922 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953 test -z "$LN_S" && LN_S="ln -s"
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968 if test -n "${ZSH_VERSION+set}"; then
10969 setopt NO_GLOB_SUBST
10970 fi
10971
10972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10973 printf %s "checking for objdir... " >&6; }
10974 if test ${lt_cv_objdir+y}
10975 then :
10976 printf %s "(cached) " >&6
10977 else case e in #(
10978 e) rm -f .libs 2>/dev/null
10979 mkdir .libs 2>/dev/null
10980 if test -d .libs; then
10981 lt_cv_objdir=.libs
10982 else
10983 # MS-DOS does not allow filenames that begin with a dot.
10984 lt_cv_objdir=_libs
10985 fi
10986 rmdir .libs 2>/dev/null ;;
10987 esac
10988 fi
10989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10990 printf "%s\n" "$lt_cv_objdir" >&6; }
10991 objdir=$lt_cv_objdir
10992
10993
10994
10995
10996
10997 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10998
10999
11000
11001
11002 case $host_os in
11003 aix3*)
11004 # AIX sometimes has problems with the GCC collect2 program. For some
11005 # reason, if we set the COLLECT_NAMES environment variable, the problems
11006 # vanish in a puff of smoke.
11007 if test set != "${COLLECT_NAMES+set}"; then
11008 COLLECT_NAMES=
11009 export COLLECT_NAMES
11010 fi
11011 ;;
11012 esac
11013
11014 # Global variables:
11015 ofile=libtool
11016 can_build_shared=yes
11017
11018 # All known linkers require a '.a' archive for static linking (except MSVC and
11019 # ICC, which need '.lib').
11020 libext=a
11021
11022 with_gnu_ld=$lt_cv_prog_gnu_ld
11023
11024 old_CC=$CC
11025 old_CFLAGS=$CFLAGS
11026
11027 # Set sane defaults for various variables
11028 test -z "$CC" && CC=cc
11029 test -z "$LTCC" && LTCC=$CC
11030 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11031 test -z "$LD" && LD=ld
11032 test -z "$ac_objext" && ac_objext=o
11033
11034 func_cc_basename $compiler
11035 cc_basename=$func_cc_basename_result
11036
11037
11038 # Only perform the check for file, if the check method requires it
11039 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11040 case $deplibs_check_method in
11041 file_magic*)
11042 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11044 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11045 if test ${lt_cv_path_MAGIC_CMD+y}
11046 then :
11047 printf %s "(cached) " >&6
11048 else case e in #(
11049 e) case $MAGIC_CMD in
11050 [\\/*] | ?:[\\/]*)
11051 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11052 ;;
11053 *)
11054 lt_save_MAGIC_CMD=$MAGIC_CMD
11055 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11056 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11057 for ac_dir in $ac_dummy; do
11058 IFS=$lt_save_ifs
11059 test -z "$ac_dir" && ac_dir=.
11060 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11061 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11062 if test -n "$file_magic_test_file"; then
11063 case $deplibs_check_method in
11064 "file_magic "*)
11065 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11066 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11067 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11068 $EGREP "$file_magic_regex" > /dev/null; then
11069 :
11070 else
11071 cat <<_LT_EOF 1>&2
11072
11073 *** Warning: the command libtool uses to detect shared libraries,
11074 *** $file_magic_cmd, produces output that libtool cannot recognize.
11075 *** The result is that libtool may fail to recognize shared libraries
11076 *** as such. This will affect the creation of libtool libraries that
11077 *** depend on shared libraries, but programs linked with such libtool
11078 *** libraries will work regardless of this problem. Nevertheless, you
11079 *** may want to report the problem to your system manager and/or to
11080 *** [email protected]
11081
11082 _LT_EOF
11083 fi ;;
11084 esac
11085 fi
11086 break
11087 fi
11088 done
11089 IFS=$lt_save_ifs
11090 MAGIC_CMD=$lt_save_MAGIC_CMD
11091 ;;
11092 esac ;;
11093 esac
11094 fi
11095
11096 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11097 if test -n "$MAGIC_CMD"; then
11098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11099 printf "%s\n" "$MAGIC_CMD" >&6; }
11100 else
11101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 printf "%s\n" "no" >&6; }
11103 fi
11104
11105
11106
11107
11108
11109 if test -z "$lt_cv_path_MAGIC_CMD"; then
11110 if test -n "$ac_tool_prefix"; then
11111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11112 printf %s "checking for file... " >&6; }
11113 if test ${lt_cv_path_MAGIC_CMD+y}
11114 then :
11115 printf %s "(cached) " >&6
11116 else case e in #(
11117 e) case $MAGIC_CMD in
11118 [\\/*] | ?:[\\/]*)
11119 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11120 ;;
11121 *)
11122 lt_save_MAGIC_CMD=$MAGIC_CMD
11123 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11124 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11125 for ac_dir in $ac_dummy; do
11126 IFS=$lt_save_ifs
11127 test -z "$ac_dir" && ac_dir=.
11128 if test -f "$ac_dir/file"; then
11129 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11130 if test -n "$file_magic_test_file"; then
11131 case $deplibs_check_method in
11132 "file_magic "*)
11133 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11134 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11135 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11136 $EGREP "$file_magic_regex" > /dev/null; then
11137 :
11138 else
11139 cat <<_LT_EOF 1>&2
11140
11141 *** Warning: the command libtool uses to detect shared libraries,
11142 *** $file_magic_cmd, produces output that libtool cannot recognize.
11143 *** The result is that libtool may fail to recognize shared libraries
11144 *** as such. This will affect the creation of libtool libraries that
11145 *** depend on shared libraries, but programs linked with such libtool
11146 *** libraries will work regardless of this problem. Nevertheless, you
11147 *** may want to report the problem to your system manager and/or to
11148 *** [email protected]
11149
11150 _LT_EOF
11151 fi ;;
11152 esac
11153 fi
11154 break
11155 fi
11156 done
11157 IFS=$lt_save_ifs
11158 MAGIC_CMD=$lt_save_MAGIC_CMD
11159 ;;
11160 esac ;;
11161 esac
11162 fi
11163
11164 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11165 if test -n "$MAGIC_CMD"; then
11166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11167 printf "%s\n" "$MAGIC_CMD" >&6; }
11168 else
11169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170 printf "%s\n" "no" >&6; }
11171 fi
11172
11173
11174 else
11175 MAGIC_CMD=:
11176 fi
11177 fi
11178
11179 fi
11180 ;;
11181 esac
11182
11183 # Use C for the default configuration in the libtool script
11184
11185 lt_save_CC=$CC
11186 ac_ext=c
11187 ac_cpp='$CPP $CPPFLAGS'
11188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11191
11192
11193 # Source file extension for C test sources.
11194 ac_ext=c
11195
11196 # Object file extension for compiled C test sources.
11197 objext=o
11198 objext=$objext
11199
11200 # Code to be used in simple compile tests
11201 lt_simple_compile_test_code="int some_variable = 0;"
11202
11203 # Code to be used in simple link tests
11204 lt_simple_link_test_code='int main(void){return(0);}'
11205
11206
11207
11208
11209
11210
11211
11212 # If no C compiler was specified, use CC.
11213 LTCC=${LTCC-"$CC"}
11214
11215 # If no C compiler flags were specified, use CFLAGS.
11216 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11217
11218 # Allow CC to be a program name with arguments.
11219 compiler=$CC
11220
11221 # Save the default compiler, since it gets overwritten when the other
11222 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11223 compiler_DEFAULT=$CC
11224
11225 # save warnings/boilerplate of simple test code
11226 ac_outfile=conftest.$ac_objext
11227 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11228 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11229 _lt_compiler_boilerplate=`cat conftest.err`
11230 $RM conftest*
11231
11232 ac_outfile=conftest.$ac_objext
11233 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11234 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11235 _lt_linker_boilerplate=`cat conftest.err`
11236 $RM -r conftest*
11237
11238
11239 ## CAVEAT EMPTOR:
11240 ## There is no encapsulation within the following macros, do not change
11241 ## the running order or otherwise move them around unless you know exactly
11242 ## what you are doing...
11243 if test -n "$compiler"; then
11244
11245 lt_prog_compiler_no_builtin_flag=
11246
11247 if test yes = "$GCC"; then
11248 case $cc_basename in
11249 nvcc*)
11250 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11251 *)
11252 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11253 esac
11254
11255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11256 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11257 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11258 then :
11259 printf %s "(cached) " >&6
11260 else case e in #(
11261 e) lt_cv_prog_compiler_rtti_exceptions=no
11262 ac_outfile=conftest.$ac_objext
11263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11264 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11265 # Insert the option either (1) after the last *FLAGS variable, or
11266 # (2) before a word containing "conftest.", or (3) at the end.
11267 # Note that $ac_compile itself does not contain backslashes and begins
11268 # with a dollar sign (not a hyphen), so the echo should work correctly.
11269 # The option is referenced via a variable to avoid confusing sed.
11270 lt_compile=`echo "$ac_compile" | $SED \
11271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11273 -e 's:$: $lt_compiler_flag:'`
11274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11275 (eval "$lt_compile" 2>conftest.err)
11276 ac_status=$?
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 if (exit $ac_status) && test -s "$ac_outfile"; then
11280 # The compiler can only warn and ignore the option if not recognized
11281 # So say no if there are warnings other than the usual output.
11282 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11285 lt_cv_prog_compiler_rtti_exceptions=yes
11286 fi
11287 fi
11288 $RM conftest*
11289 ;;
11290 esac
11291 fi
11292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11293 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11294
11295 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11296 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11297 else
11298 :
11299 fi
11300
11301 fi
11302
11303
11304
11305
11306
11307
11308 lt_prog_compiler_wl=
11309 lt_prog_compiler_pic=
11310 lt_prog_compiler_static=
11311
11312
11313 if test yes = "$GCC"; then
11314 lt_prog_compiler_wl='-Wl,'
11315 lt_prog_compiler_static='-static'
11316
11317 case $host_os in
11318 aix*)
11319 # All AIX code is PIC.
11320 if test ia64 = "$host_cpu"; then
11321 # AIX 5 now supports IA64 processor
11322 lt_prog_compiler_static='-Bstatic'
11323 fi
11324 lt_prog_compiler_pic='-fPIC'
11325 ;;
11326
11327 amigaos*)
11328 case $host_cpu in
11329 powerpc)
11330 # see comment about AmigaOS4 .so support
11331 lt_prog_compiler_pic='-fPIC'
11332 ;;
11333 m68k)
11334 # FIXME: we need at least 68020 code to build shared libraries, but
11335 # adding the '-m68020' flag to GCC prevents building anything better,
11336 # like '-m68040'.
11337 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11338 ;;
11339 esac
11340 ;;
11341
11342 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11343 # PIC is the default for these OSes.
11344 ;;
11345
11346 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11347 # This hack is so that the source file can tell whether it is being
11348 # built for inclusion in a dll (and should export symbols for example).
11349 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11350 # (--disable-auto-import) libraries
11351 lt_prog_compiler_pic='-DDLL_EXPORT'
11352 case $host_os in
11353 os2*)
11354 lt_prog_compiler_static='$wl-static'
11355 ;;
11356 esac
11357 ;;
11358
11359 darwin* | rhapsody*)
11360 # PIC is the default on this platform
11361 # Common symbols not allowed in MH_DYLIB files
11362 lt_prog_compiler_pic='-fno-common'
11363 ;;
11364
11365 haiku*)
11366 # PIC is the default for Haiku.
11367 # The "-static" flag exists, but is broken.
11368 lt_prog_compiler_static=
11369 ;;
11370
11371 hpux*)
11372 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11373 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11374 # sets the default TLS model and affects inlining.
11375 case $host_cpu in
11376 hppa*64*)
11377 # +Z the default
11378 ;;
11379 *)
11380 lt_prog_compiler_pic='-fPIC'
11381 ;;
11382 esac
11383 ;;
11384
11385 interix[3-9]*)
11386 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11387 # Instead, we relocate shared libraries at runtime.
11388 ;;
11389
11390 msdosdjgpp*)
11391 # Just because we use GCC doesn't mean we suddenly get shared libraries
11392 # on systems that don't support them.
11393 lt_prog_compiler_can_build_shared=no
11394 enable_shared=no
11395 ;;
11396
11397 *nto* | *qnx*)
11398 # QNX uses GNU C++, but need to define -shared option too, otherwise
11399 # it will coredump.
11400 lt_prog_compiler_pic='-fPIC -shared'
11401 ;;
11402
11403 sysv4*MP*)
11404 if test -d /usr/nec; then
11405 lt_prog_compiler_pic=-Kconform_pic
11406 fi
11407 ;;
11408
11409 *)
11410 lt_prog_compiler_pic='-fPIC'
11411 ;;
11412 esac
11413
11414 case $cc_basename in
11415 nvcc*) # Cuda Compiler Driver 2.2
11416 lt_prog_compiler_wl='-Xlinker '
11417 if test -n "$lt_prog_compiler_pic"; then
11418 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11419 fi
11420 ;;
11421 esac
11422 else
11423 # PORTME Check for flag to pass linker flags through the system compiler.
11424 case $host_os in
11425 aix*)
11426 lt_prog_compiler_wl='-Wl,'
11427 if test ia64 = "$host_cpu"; then
11428 # AIX 5 now supports IA64 processor
11429 lt_prog_compiler_static='-Bstatic'
11430 else
11431 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11432 fi
11433 ;;
11434
11435 darwin* | rhapsody*)
11436 # PIC is the default on this platform
11437 # Common symbols not allowed in MH_DYLIB files
11438 lt_prog_compiler_pic='-fno-common'
11439 case $cc_basename in
11440 nagfor*)
11441 # NAG Fortran compiler
11442 lt_prog_compiler_wl='-Wl,-Wl,,'
11443 lt_prog_compiler_pic='-PIC'
11444 lt_prog_compiler_static='-Bstatic'
11445 ;;
11446 esac
11447 ;;
11448
11449 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11450 # This hack is so that the source file can tell whether it is being
11451 # built for inclusion in a dll (and should export symbols for example).
11452 lt_prog_compiler_pic='-DDLL_EXPORT'
11453 case $host_os in
11454 os2*)
11455 lt_prog_compiler_static='$wl-static'
11456 ;;
11457 esac
11458 ;;
11459
11460 hpux9* | hpux10* | hpux11*)
11461 lt_prog_compiler_wl='-Wl,'
11462 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11463 # not for PA HP-UX.
11464 case $host_cpu in
11465 hppa*64*|ia64*)
11466 # +Z the default
11467 ;;
11468 *)
11469 lt_prog_compiler_pic='+Z'
11470 ;;
11471 esac
11472 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11473 lt_prog_compiler_static='$wl-a ${wl}archive'
11474 ;;
11475
11476 irix5* | irix6* | nonstopux*)
11477 lt_prog_compiler_wl='-Wl,'
11478 # PIC (with -KPIC) is the default.
11479 lt_prog_compiler_static='-non_shared'
11480 ;;
11481
11482 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11483 case $cc_basename in
11484 # old Intel for x86_64, which still supported -KPIC.
11485 ecc*)
11486 lt_prog_compiler_wl='-Wl,'
11487 lt_prog_compiler_pic='-KPIC'
11488 lt_prog_compiler_static='-static'
11489 ;;
11490 *flang* | ftn | f18* | f95*)
11491 # Flang compiler.
11492 lt_prog_compiler_wl='-Wl,'
11493 lt_prog_compiler_pic='-fPIC'
11494 lt_prog_compiler_static='-static'
11495 ;;
11496 # icc used to be incompatible with GCC.
11497 # ICC 10 doesn't accept -KPIC any more.
11498 icc* | ifort*)
11499 lt_prog_compiler_wl='-Wl,'
11500 lt_prog_compiler_pic='-fPIC'
11501 lt_prog_compiler_static='-static'
11502 ;;
11503 # Lahey Fortran 8.1.
11504 lf95*)
11505 lt_prog_compiler_wl='-Wl,'
11506 lt_prog_compiler_pic='--shared'
11507 lt_prog_compiler_static='--static'
11508 ;;
11509 nagfor*)
11510 # NAG Fortran compiler
11511 lt_prog_compiler_wl='-Wl,-Wl,,'
11512 lt_prog_compiler_pic='-PIC'
11513 lt_prog_compiler_static='-Bstatic'
11514 ;;
11515 tcc*)
11516 # Fabrice Bellard et al's Tiny C Compiler
11517 lt_prog_compiler_wl='-Wl,'
11518 lt_prog_compiler_pic='-fPIC'
11519 lt_prog_compiler_static='-static'
11520 ;;
11521 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11522 # Portland Group compilers (*not* the Pentium gcc compiler,
11523 # which looks to be a dead project)
11524 lt_prog_compiler_wl='-Wl,'
11525 lt_prog_compiler_pic='-fpic'
11526 lt_prog_compiler_static='-Bstatic'
11527 ;;
11528 ccc*)
11529 lt_prog_compiler_wl='-Wl,'
11530 # All Alpha code is PIC.
11531 lt_prog_compiler_static='-non_shared'
11532 ;;
11533 xl* | bgxl* | bgf* | mpixl*)
11534 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11535 lt_prog_compiler_wl='-Wl,'
11536 lt_prog_compiler_pic='-qpic'
11537 lt_prog_compiler_static='-qstaticlink'
11538 ;;
11539 *)
11540 case `$CC -V 2>&1 | $SED 5q` in
11541 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11542 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11543 lt_prog_compiler_pic='-KPIC'
11544 lt_prog_compiler_static='-Bstatic'
11545 lt_prog_compiler_wl=''
11546 ;;
11547 *Sun\ F* | *Sun*Fortran*)
11548 lt_prog_compiler_pic='-KPIC'
11549 lt_prog_compiler_static='-Bstatic'
11550 lt_prog_compiler_wl='-Qoption ld '
11551 ;;
11552 *Sun\ C*)
11553 # Sun C 5.9
11554 lt_prog_compiler_pic='-KPIC'
11555 lt_prog_compiler_static='-Bstatic'
11556 lt_prog_compiler_wl='-Wl,'
11557 ;;
11558 *Intel*\ [CF]*Compiler*)
11559 lt_prog_compiler_wl='-Wl,'
11560 lt_prog_compiler_pic='-fPIC'
11561 lt_prog_compiler_static='-static'
11562 ;;
11563 *Portland\ Group*)
11564 lt_prog_compiler_wl='-Wl,'
11565 lt_prog_compiler_pic='-fpic'
11566 lt_prog_compiler_static='-Bstatic'
11567 ;;
11568 esac
11569 ;;
11570 esac
11571 ;;
11572
11573 newsos6)
11574 lt_prog_compiler_pic='-KPIC'
11575 lt_prog_compiler_static='-Bstatic'
11576 ;;
11577
11578 *-mlibc)
11579 lt_prog_compiler_wl='-Wl,'
11580 lt_prog_compiler_pic='-fPIC'
11581 lt_prog_compiler_static='-static'
11582 ;;
11583
11584 *nto* | *qnx*)
11585 # QNX uses GNU C++, but need to define -shared option too, otherwise
11586 # it will coredump.
11587 lt_prog_compiler_pic='-fPIC -shared'
11588 ;;
11589
11590 osf3* | osf4* | osf5*)
11591 lt_prog_compiler_wl='-Wl,'
11592 # All OSF/1 code is PIC.
11593 lt_prog_compiler_static='-non_shared'
11594 ;;
11595
11596 rdos*)
11597 lt_prog_compiler_static='-non_shared'
11598 ;;
11599
11600 serenity*)
11601 ;;
11602
11603 solaris*)
11604 lt_prog_compiler_pic='-KPIC'
11605 lt_prog_compiler_static='-Bstatic'
11606 case $cc_basename in
11607 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11608 lt_prog_compiler_wl='-Qoption ld ';;
11609 *)
11610 lt_prog_compiler_wl='-Wl,';;
11611 esac
11612 ;;
11613
11614 sunos4*)
11615 lt_prog_compiler_wl='-Qoption ld '
11616 lt_prog_compiler_pic='-PIC'
11617 lt_prog_compiler_static='-Bstatic'
11618 ;;
11619
11620 sysv4 | sysv4.2uw2* | sysv4.3*)
11621 lt_prog_compiler_wl='-Wl,'
11622 lt_prog_compiler_pic='-KPIC'
11623 lt_prog_compiler_static='-Bstatic'
11624 ;;
11625
11626 sysv4*MP*)
11627 if test -d /usr/nec; then
11628 lt_prog_compiler_pic='-Kconform_pic'
11629 lt_prog_compiler_static='-Bstatic'
11630 fi
11631 ;;
11632
11633 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11634 lt_prog_compiler_wl='-Wl,'
11635 lt_prog_compiler_pic='-KPIC'
11636 lt_prog_compiler_static='-Bstatic'
11637 ;;
11638
11639 unicos*)
11640 lt_prog_compiler_wl='-Wl,'
11641 lt_prog_compiler_can_build_shared=no
11642 ;;
11643
11644 uts4*)
11645 lt_prog_compiler_pic='-pic'
11646 lt_prog_compiler_static='-Bstatic'
11647 ;;
11648
11649 *)
11650 lt_prog_compiler_can_build_shared=no
11651 ;;
11652 esac
11653 fi
11654
11655 case $host_os in
11656 # For platforms that do not support PIC, -DPIC is meaningless:
11657 *djgpp*)
11658 lt_prog_compiler_pic=
11659 ;;
11660 *)
11661 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11662 ;;
11663 esac
11664
11665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11666 printf %s "checking for $compiler option to produce PIC... " >&6; }
11667 if test ${lt_cv_prog_compiler_pic+y}
11668 then :
11669 printf %s "(cached) " >&6
11670 else case e in #(
11671 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11672 esac
11673 fi
11674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11675 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11676 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11677
11678 #
11679 # Check to make sure the PIC flag actually works.
11680 #
11681 if test -n "$lt_prog_compiler_pic"; then
11682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11683 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11684 if test ${lt_cv_prog_compiler_pic_works+y}
11685 then :
11686 printf %s "(cached) " >&6
11687 else case e in #(
11688 e) lt_cv_prog_compiler_pic_works=no
11689 ac_outfile=conftest.$ac_objext
11690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11691 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11692 # Insert the option either (1) after the last *FLAGS variable, or
11693 # (2) before a word containing "conftest.", or (3) at the end.
11694 # Note that $ac_compile itself does not contain backslashes and begins
11695 # with a dollar sign (not a hyphen), so the echo should work correctly.
11696 # The option is referenced via a variable to avoid confusing sed.
11697 lt_compile=`echo "$ac_compile" | $SED \
11698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11700 -e 's:$: $lt_compiler_flag:'`
11701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11702 (eval "$lt_compile" 2>conftest.err)
11703 ac_status=$?
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 if (exit $ac_status) && test -s "$ac_outfile"; then
11707 # The compiler can only warn and ignore the option if not recognized
11708 # So say no if there are warnings other than the usual output.
11709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11712 lt_cv_prog_compiler_pic_works=yes
11713 fi
11714 fi
11715 $RM conftest*
11716 ;;
11717 esac
11718 fi
11719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11720 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11721
11722 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11723 case $lt_prog_compiler_pic in
11724 "" | " "*) ;;
11725 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11726 esac
11727 else
11728 lt_prog_compiler_pic=
11729 lt_prog_compiler_can_build_shared=no
11730 fi
11731
11732 fi
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744 #
11745 # Check to make sure the static flag actually works.
11746 #
11747 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11749 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11750 if test ${lt_cv_prog_compiler_static_works+y}
11751 then :
11752 printf %s "(cached) " >&6
11753 else case e in #(
11754 e) lt_cv_prog_compiler_static_works=no
11755 save_LDFLAGS=$LDFLAGS
11756 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11757 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11758 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11759 # The linker can only warn and ignore the option if not recognized
11760 # So say no if there are warnings
11761 if test -s conftest.err; then
11762 # Append any errors to the config.log.
11763 cat conftest.err 1>&5
11764 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11766 if diff conftest.exp conftest.er2 >/dev/null; then
11767 lt_cv_prog_compiler_static_works=yes
11768 fi
11769 else
11770 lt_cv_prog_compiler_static_works=yes
11771 fi
11772 fi
11773 $RM -r conftest*
11774 LDFLAGS=$save_LDFLAGS
11775 ;;
11776 esac
11777 fi
11778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11779 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11780
11781 if test yes = "$lt_cv_prog_compiler_static_works"; then
11782 :
11783 else
11784 lt_prog_compiler_static=
11785 fi
11786
11787
11788
11789
11790
11791
11792
11793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11794 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11795 if test ${lt_cv_prog_compiler_c_o+y}
11796 then :
11797 printf %s "(cached) " >&6
11798 else case e in #(
11799 e) lt_cv_prog_compiler_c_o=no
11800 $RM -r conftest 2>/dev/null
11801 mkdir conftest
11802 cd conftest
11803 mkdir out
11804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11805
11806 lt_compiler_flag="-o out/conftest2.$ac_objext"
11807 # Insert the option either (1) after the last *FLAGS variable, or
11808 # (2) before a word containing "conftest.", or (3) at the end.
11809 # Note that $ac_compile itself does not contain backslashes and begins
11810 # with a dollar sign (not a hyphen), so the echo should work correctly.
11811 lt_compile=`echo "$ac_compile" | $SED \
11812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11814 -e 's:$: $lt_compiler_flag:'`
11815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11816 (eval "$lt_compile" 2>out/conftest.err)
11817 ac_status=$?
11818 cat out/conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11821 then
11822 # The compiler can only warn and ignore the option if not recognized
11823 # So say no if there are warnings
11824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11827 lt_cv_prog_compiler_c_o=yes
11828 fi
11829 fi
11830 chmod u+w . 2>&5
11831 $RM conftest*
11832 # SGI C++ compiler will create directory out/ii_files/ for
11833 # template instantiation
11834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11835 $RM out/* && rmdir out
11836 cd ..
11837 $RM -r conftest
11838 $RM conftest*
11839 ;;
11840 esac
11841 fi
11842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11843 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11844
11845
11846
11847
11848
11849
11850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11851 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11852 if test ${lt_cv_prog_compiler_c_o+y}
11853 then :
11854 printf %s "(cached) " >&6
11855 else case e in #(
11856 e) lt_cv_prog_compiler_c_o=no
11857 $RM -r conftest 2>/dev/null
11858 mkdir conftest
11859 cd conftest
11860 mkdir out
11861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11862
11863 lt_compiler_flag="-o out/conftest2.$ac_objext"
11864 # Insert the option either (1) after the last *FLAGS variable, or
11865 # (2) before a word containing "conftest.", or (3) at the end.
11866 # Note that $ac_compile itself does not contain backslashes and begins
11867 # with a dollar sign (not a hyphen), so the echo should work correctly.
11868 lt_compile=`echo "$ac_compile" | $SED \
11869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11871 -e 's:$: $lt_compiler_flag:'`
11872 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11873 (eval "$lt_compile" 2>out/conftest.err)
11874 ac_status=$?
11875 cat out/conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11878 then
11879 # The compiler can only warn and ignore the option if not recognized
11880 # So say no if there are warnings
11881 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11882 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11883 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11884 lt_cv_prog_compiler_c_o=yes
11885 fi
11886 fi
11887 chmod u+w . 2>&5
11888 $RM conftest*
11889 # SGI C++ compiler will create directory out/ii_files/ for
11890 # template instantiation
11891 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11892 $RM out/* && rmdir out
11893 cd ..
11894 $RM -r conftest
11895 $RM conftest*
11896 ;;
11897 esac
11898 fi
11899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11900 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11901
11902
11903
11904
11905 hard_links=nottested
11906 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11907 # do not overwrite the value of need_locks provided by the user
11908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11909 printf %s "checking if we can lock with hard links... " >&6; }
11910 hard_links=yes
11911 $RM conftest*
11912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11913 touch conftest.a
11914 ln conftest.a conftest.b 2>&5 || hard_links=no
11915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11917 printf "%s\n" "$hard_links" >&6; }
11918 if test no = "$hard_links"; then
11919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11920 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11921 need_locks=warn
11922 fi
11923 else
11924 need_locks=no
11925 fi
11926
11927
11928
11929
11930
11931
11932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11933 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11934
11935 runpath_var=
11936 allow_undefined_flag=
11937 always_export_symbols=no
11938 archive_cmds=
11939 archive_expsym_cmds=
11940 compiler_needs_object=no
11941 enable_shared_with_static_runtimes=no
11942 export_dynamic_flag_spec=
11943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11944 hardcode_automatic=no
11945 hardcode_direct=no
11946 hardcode_direct_absolute=no
11947 hardcode_libdir_flag_spec=
11948 hardcode_libdir_separator=
11949 hardcode_minus_L=no
11950 hardcode_shlibpath_var=unsupported
11951 inherit_rpath=no
11952 link_all_deplibs=unknown
11953 module_cmds=
11954 module_expsym_cmds=
11955 old_archive_from_new_cmds=
11956 old_archive_from_expsyms_cmds=
11957 thread_safe_flag_spec=
11958 whole_archive_flag_spec=
11959 # include_expsyms should be a list of space-separated symbols to be *always*
11960 # included in the symbol list
11961 include_expsyms=
11962 # exclude_expsyms can be an extended regexp of symbols to exclude
11963 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11964 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11965 # as well as any symbol that contains 'd'.
11966 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11967 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11968 # platforms (ab)use it in PIC code, but their linkers get confused if
11969 # the symbol is explicitly referenced. Since portable code cannot
11970 # rely on this symbol name, it's probably fine to never include it in
11971 # preloaded symbol tables.
11972 # Exclude shared library initialization/finalization symbols.
11973 extract_expsyms_cmds=
11974
11975 case $host_os in
11976 cygwin* | mingw* | windows* | pw32* | cegcc*)
11977 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11978 # When not using gcc, we currently assume that we are using
11979 # Microsoft Visual C++ or Intel C++ Compiler.
11980 if test yes != "$GCC"; then
11981 with_gnu_ld=no
11982 fi
11983 ;;
11984 interix*)
11985 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11986 with_gnu_ld=yes
11987 ;;
11988 esac
11989
11990 ld_shlibs=yes
11991
11992 # On some targets, GNU ld is compatible enough with the native linker
11993 # that we're better off using the native interface for both.
11994 lt_use_gnu_ld_interface=no
11995 if test yes = "$with_gnu_ld"; then
11996 case $host_os in
11997 aix*)
11998 # The AIX port of GNU ld has always aspired to compatibility
11999 # with the native linker. However, as the warning in the GNU ld
12000 # block says, versions before 2.19.5* couldn't really create working
12001 # shared libraries, regardless of the interface used.
12002 case `$LD -v 2>&1` in
12003 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12004 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12005 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12006 *)
12007 lt_use_gnu_ld_interface=yes
12008 ;;
12009 esac
12010 ;;
12011 *)
12012 lt_use_gnu_ld_interface=yes
12013 ;;
12014 esac
12015 fi
12016
12017 if test yes = "$lt_use_gnu_ld_interface"; then
12018 # If archive_cmds runs LD, not CC, wlarc should be empty
12019 wlarc='$wl'
12020
12021 # Set some defaults for GNU ld with shared library support. These
12022 # are reset later if shared libraries are not supported. Putting them
12023 # here allows them to be overridden if necessary.
12024 runpath_var=LD_RUN_PATH
12025 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12026 export_dynamic_flag_spec='$wl--export-dynamic'
12027 # ancient GNU ld didn't support --whole-archive et. al.
12028 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12029 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12030 else
12031 whole_archive_flag_spec=
12032 fi
12033 supports_anon_versioning=no
12034 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12035 *GNU\ gold*) supports_anon_versioning=yes ;;
12036 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12037 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12038 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12039 *\ 2.11.*) ;; # other 2.11 versions
12040 *) supports_anon_versioning=yes ;;
12041 esac
12042
12043 # See if GNU ld supports shared libraries.
12044 case $host_os in
12045 aix[3-9]*)
12046 # On AIX/PPC, the GNU linker is very broken
12047 if test ia64 != "$host_cpu"; then
12048 ld_shlibs=no
12049 cat <<_LT_EOF 1>&2
12050
12051 *** Warning: the GNU linker, at least up to release 2.19, is reported
12052 *** to be unable to reliably create shared libraries on AIX.
12053 *** Therefore, libtool is disabling shared libraries support. If you
12054 *** really care for shared libraries, you may want to install binutils
12055 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12056 *** You will then need to restart the configuration process.
12057
12058 _LT_EOF
12059 fi
12060 ;;
12061
12062 amigaos*)
12063 case $host_cpu in
12064 powerpc)
12065 # see comment about AmigaOS4 .so support
12066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12067 archive_expsym_cmds=''
12068 ;;
12069 m68k)
12070 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)'
12071 hardcode_libdir_flag_spec='-L$libdir'
12072 hardcode_minus_L=yes
12073 ;;
12074 esac
12075 ;;
12076
12077 beos*)
12078 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12079 allow_undefined_flag=unsupported
12080 # Joseph Beckenbach <[email protected]> says some releases of gcc
12081 # support --undefined. This deserves some investigation. FIXME
12082 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12083 else
12084 ld_shlibs=no
12085 fi
12086 ;;
12087
12088 cygwin* | mingw* | windows* | pw32* | cegcc*)
12089 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12090 # as there is no search path for DLLs.
12091 hardcode_libdir_flag_spec='-L$libdir'
12092 export_dynamic_flag_spec='$wl--export-all-symbols'
12093 allow_undefined_flag=unsupported
12094 always_export_symbols=no
12095 enable_shared_with_static_runtimes=yes
12096 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'
12097 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12098 file_list_spec='@'
12099
12100 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12102 # If the export-symbols file already is a .def file, use it as
12103 # is; otherwise, prepend EXPORTS...
12104 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12105 cp $export_symbols $output_objdir/$soname.def;
12106 else
12107 echo EXPORTS > $output_objdir/$soname.def;
12108 cat $export_symbols >> $output_objdir/$soname.def;
12109 fi~
12110 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12111 else
12112 ld_shlibs=no
12113 fi
12114 ;;
12115
12116 haiku*)
12117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12118 link_all_deplibs=no
12119 ;;
12120
12121 os2*)
12122 hardcode_libdir_flag_spec='-L$libdir'
12123 hardcode_minus_L=yes
12124 allow_undefined_flag=unsupported
12125 shrext_cmds=.dll
12126 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12127 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12128 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12129 $ECHO EXPORTS >> $output_objdir/$libname.def~
12130 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12131 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12132 emximp -o $lib $output_objdir/$libname.def'
12133 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12134 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12135 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12136 $ECHO EXPORTS >> $output_objdir/$libname.def~
12137 prefix_cmds="$SED"~
12138 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12139 prefix_cmds="$prefix_cmds -e 1d";
12140 fi~
12141 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12142 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12143 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12144 emximp -o $lib $output_objdir/$libname.def'
12145 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12146 enable_shared_with_static_runtimes=yes
12147 file_list_spec='@'
12148 ;;
12149
12150 interix[3-9]*)
12151 hardcode_direct=no
12152 hardcode_shlibpath_var=no
12153 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12154 export_dynamic_flag_spec='$wl-E'
12155 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12156 # Instead, shared libraries are loaded at an image base (0x10000000 by
12157 # default) and relocated if they conflict, which is a slow very memory
12158 # consuming and fragmenting process. To avoid this, we pick a random,
12159 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12160 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12162 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'
12163 ;;
12164
12165 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12166 tmp_diet=no
12167 if test linux-dietlibc = "$host_os"; then
12168 case $cc_basename in
12169 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12170 esac
12171 fi
12172 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12173 && test no = "$tmp_diet"
12174 then
12175 tmp_addflag=' $pic_flag'
12176 tmp_sharedflag='-shared'
12177 case $cc_basename,$host_cpu in
12178 pgcc*) # Portland Group C compiler
12179 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'
12180 tmp_addflag=' $pic_flag'
12181 ;;
12182 pgf77* | pgf90* | pgf95* | pgfortran*)
12183 # Portland Group f77 and f90 compilers
12184 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'
12185 tmp_addflag=' $pic_flag -Mnomain' ;;
12186 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12187 tmp_addflag=' -i_dynamic' ;;
12188 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12189 tmp_addflag=' -i_dynamic -nofor_main' ;;
12190 ifc* | ifort*) # Intel Fortran compiler
12191 tmp_addflag=' -nofor_main' ;;
12192 lf95*) # Lahey Fortran 8.1
12193 whole_archive_flag_spec=
12194 tmp_sharedflag='--shared' ;;
12195 nagfor*) # NAGFOR 5.3
12196 tmp_sharedflag='-Wl,-shared' ;;
12197 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12198 tmp_sharedflag='-qmkshrobj'
12199 tmp_addflag= ;;
12200 nvcc*) # Cuda Compiler Driver 2.2
12201 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'
12202 compiler_needs_object=yes
12203 ;;
12204 esac
12205 case `$CC -V 2>&1 | $SED 5q` in
12206 *Sun\ C*) # Sun C 5.9
12207 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'
12208 compiler_needs_object=yes
12209 tmp_sharedflag='-G' ;;
12210 *Sun\ F*) # Sun Fortran 8.3
12211 tmp_sharedflag='-G' ;;
12212 esac
12213 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12214
12215 if test yes = "$supports_anon_versioning"; then
12216 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12217 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12218 echo "local: *; };" >> $output_objdir/$libname.ver~
12219 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12220 fi
12221
12222 case $cc_basename in
12223 tcc*)
12224 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12225 export_dynamic_flag_spec='-rdynamic'
12226 ;;
12227 xlf* | bgf* | bgxlf* | mpixlf*)
12228 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12229 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12230 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12231 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12232 if test yes = "$supports_anon_versioning"; then
12233 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12234 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12235 echo "local: *; };" >> $output_objdir/$libname.ver~
12236 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12237 fi
12238 ;;
12239 esac
12240 else
12241 ld_shlibs=no
12242 fi
12243 ;;
12244
12245 *-mlibc)
12246 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12247 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12248 ;;
12249
12250 netbsd* | netbsdelf*-gnu)
12251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12252 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12253 wlarc=
12254 else
12255 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12256 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12257 fi
12258 ;;
12259
12260 solaris*)
12261 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12262 ld_shlibs=no
12263 cat <<_LT_EOF 1>&2
12264
12265 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12266 *** create shared libraries on Solaris systems. Therefore, libtool
12267 *** is disabling shared libraries support. We urge you to upgrade GNU
12268 *** binutils to release 2.9.1 or newer. Another option is to modify
12269 *** your PATH or compiler configuration so that the native linker is
12270 *** used, and then restart.
12271
12272 _LT_EOF
12273 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12274 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12275 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12276 else
12277 ld_shlibs=no
12278 fi
12279 ;;
12280
12281 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12282 case `$LD -v 2>&1` in
12283 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12284 ld_shlibs=no
12285 cat <<_LT_EOF 1>&2
12286
12287 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12288 *** reliably create shared libraries on SCO systems. Therefore, libtool
12289 *** is disabling shared libraries support. We urge you to upgrade GNU
12290 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12291 *** your PATH or compiler configuration so that the native linker is
12292 *** used, and then restart.
12293
12294 _LT_EOF
12295 ;;
12296 *)
12297 # For security reasons, it is highly recommended that you always
12298 # use absolute paths for naming shared libraries, and exclude the
12299 # DT_RUNPATH tag from executables and libraries. But doing so
12300 # requires that you compile everything twice, which is a pain.
12301 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12302 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12304 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12305 else
12306 ld_shlibs=no
12307 fi
12308 ;;
12309 esac
12310 ;;
12311
12312 sunos4*)
12313 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12314 wlarc=
12315 hardcode_direct=yes
12316 hardcode_shlibpath_var=no
12317 ;;
12318
12319 *)
12320 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12321 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12322 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12323 else
12324 ld_shlibs=no
12325 fi
12326 ;;
12327 esac
12328
12329 if test no = "$ld_shlibs"; then
12330 runpath_var=
12331 hardcode_libdir_flag_spec=
12332 export_dynamic_flag_spec=
12333 whole_archive_flag_spec=
12334 fi
12335 else
12336 # PORTME fill in a description of your system's linker (not GNU ld)
12337 case $host_os in
12338 aix3*)
12339 allow_undefined_flag=unsupported
12340 always_export_symbols=yes
12341 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'
12342 # Note: this linker hardcodes the directories in LIBPATH if there
12343 # are no directories specified by -L.
12344 hardcode_minus_L=yes
12345 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12346 # Neither direct hardcoding nor static linking is supported with a
12347 # broken collect2.
12348 hardcode_direct=unsupported
12349 fi
12350 ;;
12351
12352 aix[4-9]*)
12353 if test ia64 = "$host_cpu"; then
12354 # On IA64, the linker does run time linking by default, so we don't
12355 # have to do anything special.
12356 aix_use_runtimelinking=no
12357 exp_sym_flag='-Bexport'
12358 no_entry_flag=
12359 else
12360 # If we're using GNU nm, then we don't want the "-C" option.
12361 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12362 # Without the "-l" option, or with the "-B" option, AIX nm treats
12363 # weak defined symbols like other global defined symbols, whereas
12364 # GNU nm marks them as "W".
12365 # While the 'weak' keyword is ignored in the Export File, we need
12366 # it in the Import File for the 'aix-soname' feature, so we have
12367 # to replace the "-B" option with "-P" for AIX nm.
12368 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12369 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'
12370 else
12371 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'
12372 fi
12373 aix_use_runtimelinking=no
12374
12375 # Test if we are trying to use run time linking or normal
12376 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12377 # have runtime linking enabled, and use it for executables.
12378 # For shared libraries, we enable/disable runtime linking
12379 # depending on the kind of the shared library created -
12380 # when "with_aix_soname,aix_use_runtimelinking" is:
12381 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12382 # "aix,yes" lib.so shared, rtl:yes, for executables
12383 # lib.a static archive
12384 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12385 # lib.a(lib.so.V) shared, rtl:no, for executables
12386 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12387 # lib.a(lib.so.V) shared, rtl:no
12388 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12389 # lib.a static archive
12390 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12391 for ld_flag in $LDFLAGS; do
12392 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12393 aix_use_runtimelinking=yes
12394 break
12395 fi
12396 done
12397 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12398 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12399 # so we don't have lib.a shared libs to link our executables.
12400 # We have to force runtime linking in this case.
12401 aix_use_runtimelinking=yes
12402 LDFLAGS="$LDFLAGS -Wl,-brtl"
12403 fi
12404 ;;
12405 esac
12406
12407 exp_sym_flag='-bexport'
12408 no_entry_flag='-bnoentry'
12409 fi
12410
12411 # When large executables or shared objects are built, AIX ld can
12412 # have problems creating the table of contents. If linking a library
12413 # or program results in "error TOC overflow" add -mminimal-toc to
12414 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12415 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12416
12417 archive_cmds=''
12418 hardcode_direct=yes
12419 hardcode_direct_absolute=yes
12420 hardcode_libdir_separator=':'
12421 link_all_deplibs=yes
12422 file_list_spec='$wl-f,'
12423 case $with_aix_soname,$aix_use_runtimelinking in
12424 aix,*) ;; # traditional, no import file
12425 svr4,* | *,yes) # use import file
12426 # The Import File defines what to hardcode.
12427 hardcode_direct=no
12428 hardcode_direct_absolute=no
12429 ;;
12430 esac
12431
12432 if test yes = "$GCC"; then
12433 case $host_os in aix4.[012]|aix4.[012].*)
12434 # We only want to do this on AIX 4.2 and lower, the check
12435 # below for broken collect2 doesn't work under 4.3+
12436 collect2name=`$CC -print-prog-name=collect2`
12437 if test -f "$collect2name" &&
12438 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12439 then
12440 # We have reworked collect2
12441 :
12442 else
12443 # We have old collect2
12444 hardcode_direct=unsupported
12445 # It fails to find uninstalled libraries when the uninstalled
12446 # path is not listed in the libpath. Setting hardcode_minus_L
12447 # to unsupported forces relinking
12448 hardcode_minus_L=yes
12449 hardcode_libdir_flag_spec='-L$libdir'
12450 hardcode_libdir_separator=
12451 fi
12452 ;;
12453 esac
12454 shared_flag='-shared'
12455 if test yes = "$aix_use_runtimelinking"; then
12456 shared_flag="$shared_flag "'$wl-G'
12457 fi
12458 # Need to ensure runtime linking is disabled for the traditional
12459 # shared library, or the linker may eventually find shared libraries
12460 # /with/ Import File - we do not want to mix them.
12461 shared_flag_aix='-shared'
12462 shared_flag_svr4='-shared $wl-G'
12463 else
12464 # not using gcc
12465 if test ia64 = "$host_cpu"; then
12466 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12467 # chokes on -Wl,-G. The following line is correct:
12468 shared_flag='-G'
12469 else
12470 if test yes = "$aix_use_runtimelinking"; then
12471 shared_flag='$wl-G'
12472 else
12473 shared_flag='$wl-bM:SRE'
12474 fi
12475 shared_flag_aix='$wl-bM:SRE'
12476 shared_flag_svr4='$wl-G'
12477 fi
12478 fi
12479
12480 export_dynamic_flag_spec='$wl-bexpall'
12481 # It seems that -bexpall does not export symbols beginning with
12482 # underscore (_), so it is better to generate a list of symbols to export.
12483 always_export_symbols=yes
12484 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12485 # Warning - without using the other runtime loading flags (-brtl),
12486 # -berok will link without error, but may produce a broken library.
12487 allow_undefined_flag='-berok'
12488 # Determine the default libpath from the value encoded in an
12489 # empty executable.
12490 if test set = "${lt_cv_aix_libpath+set}"; then
12491 aix_libpath=$lt_cv_aix_libpath
12492 else
12493 if test ${lt_cv_aix_libpath_+y}
12494 then :
12495 printf %s "(cached) " >&6
12496 else case e in #(
12497 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12499
12500 int
12501 main (void)
12502 {
12503
12504 ;
12505 return 0;
12506 }
12507 _ACEOF
12508 if ac_fn_c_try_link "$LINENO"
12509 then :
12510
12511 lt_aix_libpath_sed='
12512 /Import File Strings/,/^$/ {
12513 /^0/ {
12514 s/^0 *\([^ ]*\) *$/\1/
12515 p
12516 }
12517 }'
12518 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12519 # Check for a 64-bit object if we didn't find anything.
12520 if test -z "$lt_cv_aix_libpath_"; then
12521 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12522 fi
12523 fi
12524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12525 conftest$ac_exeext conftest.$ac_ext
12526 if test -z "$lt_cv_aix_libpath_"; then
12527 lt_cv_aix_libpath_=/usr/lib:/lib
12528 fi
12529 ;;
12530 esac
12531 fi
12532
12533 aix_libpath=$lt_cv_aix_libpath_
12534 fi
12535
12536 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12537 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
12538 else
12539 if test ia64 = "$host_cpu"; then
12540 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12541 allow_undefined_flag="-z nodefs"
12542 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"
12543 else
12544 # Determine the default libpath from the value encoded in an
12545 # empty executable.
12546 if test set = "${lt_cv_aix_libpath+set}"; then
12547 aix_libpath=$lt_cv_aix_libpath
12548 else
12549 if test ${lt_cv_aix_libpath_+y}
12550 then :
12551 printf %s "(cached) " >&6
12552 else case e in #(
12553 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12555
12556 int
12557 main (void)
12558 {
12559
12560 ;
12561 return 0;
12562 }
12563 _ACEOF
12564 if ac_fn_c_try_link "$LINENO"
12565 then :
12566
12567 lt_aix_libpath_sed='
12568 /Import File Strings/,/^$/ {
12569 /^0/ {
12570 s/^0 *\([^ ]*\) *$/\1/
12571 p
12572 }
12573 }'
12574 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12575 # Check for a 64-bit object if we didn't find anything.
12576 if test -z "$lt_cv_aix_libpath_"; then
12577 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12578 fi
12579 fi
12580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12581 conftest$ac_exeext conftest.$ac_ext
12582 if test -z "$lt_cv_aix_libpath_"; then
12583 lt_cv_aix_libpath_=/usr/lib:/lib
12584 fi
12585 ;;
12586 esac
12587 fi
12588
12589 aix_libpath=$lt_cv_aix_libpath_
12590 fi
12591
12592 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12593 # Warning - without using the other run time loading flags,
12594 # -berok will link without error, but may produce a broken library.
12595 no_undefined_flag=' $wl-bernotok'
12596 allow_undefined_flag=' $wl-berok'
12597 if test yes = "$with_gnu_ld"; then
12598 # We only use this code for GNU lds that support --whole-archive.
12599 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12600 else
12601 # Exported symbols can be pulled into shared objects from archives
12602 whole_archive_flag_spec='$convenience'
12603 fi
12604 archive_cmds_need_lc=yes
12605 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12606 # -brtl affects multiple linker settings, -berok does not and is overridden later
12607 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12608 if test svr4 != "$with_aix_soname"; then
12609 # This is similar to how AIX traditionally builds its shared libraries.
12610 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'
12611 fi
12612 if test aix != "$with_aix_soname"; then
12613 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'
12614 else
12615 # used by -dlpreopen to get the symbols
12616 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12617 fi
12618 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12619 fi
12620 fi
12621 ;;
12622
12623 amigaos*)
12624 case $host_cpu in
12625 powerpc)
12626 # see comment about AmigaOS4 .so support
12627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12628 archive_expsym_cmds=''
12629 ;;
12630 m68k)
12631 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)'
12632 hardcode_libdir_flag_spec='-L$libdir'
12633 hardcode_minus_L=yes
12634 ;;
12635 esac
12636 ;;
12637
12638 bsdi[45]*)
12639 export_dynamic_flag_spec=-rdynamic
12640 ;;
12641
12642 cygwin* | mingw* | windows* | pw32* | cegcc*)
12643 # When not using gcc, we currently assume that we are using
12644 # Microsoft Visual C++ or Intel C++ Compiler.
12645 # hardcode_libdir_flag_spec is actually meaningless, as there is
12646 # no search path for DLLs.
12647 case $cc_basename in
12648 cl* | icl*)
12649 # Native MSVC or ICC
12650 hardcode_libdir_flag_spec=' '
12651 allow_undefined_flag=unsupported
12652 always_export_symbols=yes
12653 file_list_spec='@'
12654 # Tell ltmain to make .lib files, not .a files.
12655 libext=lib
12656 # Tell ltmain to make .dll files, not .so files.
12657 shrext_cmds=.dll
12658 # FIXME: Setting linknames here is a bad hack.
12659 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12660 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12661 cp "$export_symbols" "$output_objdir/$soname.def";
12662 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12663 else
12664 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12665 fi~
12666 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12667 linknames='
12668 # The linker will not automatically build a static lib if we build a DLL.
12669 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12670 enable_shared_with_static_runtimes=yes
12671 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12672 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12673 # Don't use ranlib
12674 old_postinstall_cmds='chmod 644 $oldlib'
12675 postlink_cmds='lt_outputfile="@OUTPUT@"~
12676 lt_tool_outputfile="@TOOL_OUTPUT@"~
12677 case $lt_outputfile in
12678 *.exe|*.EXE) ;;
12679 *)
12680 lt_outputfile=$lt_outputfile.exe
12681 lt_tool_outputfile=$lt_tool_outputfile.exe
12682 ;;
12683 esac~
12684 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12685 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12686 $RM "$lt_outputfile.manifest";
12687 fi'
12688 ;;
12689 *)
12690 # Assume MSVC and ICC wrapper
12691 hardcode_libdir_flag_spec=' '
12692 allow_undefined_flag=unsupported
12693 # Tell ltmain to make .lib files, not .a files.
12694 libext=lib
12695 # Tell ltmain to make .dll files, not .so files.
12696 shrext_cmds=.dll
12697 # FIXME: Setting linknames here is a bad hack.
12698 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12699 # The linker will automatically build a .lib file if we build a DLL.
12700 old_archive_from_new_cmds='true'
12701 # FIXME: Should let the user specify the lib program.
12702 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12703 enable_shared_with_static_runtimes=yes
12704 ;;
12705 esac
12706 ;;
12707
12708 darwin* | rhapsody*)
12709
12710
12711 archive_cmds_need_lc=no
12712 hardcode_direct=no
12713 hardcode_automatic=yes
12714 hardcode_shlibpath_var=unsupported
12715 if test yes = "$lt_cv_ld_force_load"; then
12716 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\"`'
12717
12718 else
12719 whole_archive_flag_spec=''
12720 fi
12721 link_all_deplibs=yes
12722 allow_undefined_flag=$_lt_dar_allow_undefined
12723 case $cc_basename in
12724 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12725 *) _lt_dar_can_shared=$GCC ;;
12726 esac
12727 if test yes = "$_lt_dar_can_shared"; then
12728 output_verbose_link_cmd=func_echo_all
12729 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12730 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12731 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"
12732 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"
12733
12734 else
12735 ld_shlibs=no
12736 fi
12737
12738 ;;
12739
12740 dgux*)
12741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12742 hardcode_libdir_flag_spec='-L$libdir'
12743 hardcode_shlibpath_var=no
12744 ;;
12745
12746 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12747 # support. Future versions do this automatically, but an explicit c++rt0.o
12748 # does not break anything, and helps significantly (at the cost of a little
12749 # extra space).
12750 freebsd2.2*)
12751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12752 hardcode_libdir_flag_spec='-R$libdir'
12753 hardcode_direct=yes
12754 hardcode_shlibpath_var=no
12755 ;;
12756
12757 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12758 freebsd2.*)
12759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12760 hardcode_direct=yes
12761 hardcode_minus_L=yes
12762 hardcode_shlibpath_var=no
12763 ;;
12764
12765 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12766 freebsd* | dragonfly* | midnightbsd*)
12767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12768 hardcode_libdir_flag_spec='-R$libdir'
12769 hardcode_direct=yes
12770 hardcode_shlibpath_var=no
12771 ;;
12772
12773 hpux9*)
12774 if test yes = "$GCC"; then
12775 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'
12776 else
12777 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'
12778 fi
12779 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12780 hardcode_libdir_separator=:
12781 hardcode_direct=yes
12782
12783 # hardcode_minus_L: Not really in the search PATH,
12784 # but as the default location of the library.
12785 hardcode_minus_L=yes
12786 export_dynamic_flag_spec='$wl-E'
12787 ;;
12788
12789 hpux10*)
12790 if test yes,no = "$GCC,$with_gnu_ld"; then
12791 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12792 else
12793 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12794 fi
12795 if test no = "$with_gnu_ld"; then
12796 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12797 hardcode_libdir_separator=:
12798 hardcode_direct=yes
12799 hardcode_direct_absolute=yes
12800 export_dynamic_flag_spec='$wl-E'
12801 # hardcode_minus_L: Not really in the search PATH,
12802 # but as the default location of the library.
12803 hardcode_minus_L=yes
12804 fi
12805 ;;
12806
12807 hpux11*)
12808 if test yes,no = "$GCC,$with_gnu_ld"; then
12809 case $host_cpu in
12810 hppa*64*)
12811 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12812 ;;
12813 ia64*)
12814 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12815 ;;
12816 *)
12817 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12818 ;;
12819 esac
12820 else
12821 case $host_cpu in
12822 hppa*64*)
12823 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12824 ;;
12825 ia64*)
12826 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12827 ;;
12828 *)
12829
12830 # Older versions of the 11.00 compiler do not understand -b yet
12831 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12833 printf %s "checking if $CC understands -b... " >&6; }
12834 if test ${lt_cv_prog_compiler__b+y}
12835 then :
12836 printf %s "(cached) " >&6
12837 else case e in #(
12838 e) lt_cv_prog_compiler__b=no
12839 save_LDFLAGS=$LDFLAGS
12840 LDFLAGS="$LDFLAGS -b"
12841 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12842 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12843 # The linker can only warn and ignore the option if not recognized
12844 # So say no if there are warnings
12845 if test -s conftest.err; then
12846 # Append any errors to the config.log.
12847 cat conftest.err 1>&5
12848 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12849 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12850 if diff conftest.exp conftest.er2 >/dev/null; then
12851 lt_cv_prog_compiler__b=yes
12852 fi
12853 else
12854 lt_cv_prog_compiler__b=yes
12855 fi
12856 fi
12857 $RM -r conftest*
12858 LDFLAGS=$save_LDFLAGS
12859 ;;
12860 esac
12861 fi
12862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12863 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12864
12865 if test yes = "$lt_cv_prog_compiler__b"; then
12866 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12867 else
12868 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12869 fi
12870
12871 ;;
12872 esac
12873 fi
12874 if test no = "$with_gnu_ld"; then
12875 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12876 hardcode_libdir_separator=:
12877
12878 case $host_cpu in
12879 hppa*64*|ia64*)
12880 hardcode_direct=no
12881 hardcode_shlibpath_var=no
12882 ;;
12883 *)
12884 hardcode_direct=yes
12885 hardcode_direct_absolute=yes
12886 export_dynamic_flag_spec='$wl-E'
12887
12888 # hardcode_minus_L: Not really in the search PATH,
12889 # but as the default location of the library.
12890 hardcode_minus_L=yes
12891 ;;
12892 esac
12893 fi
12894 ;;
12895
12896 irix5* | irix6* | nonstopux*)
12897 if test yes = "$GCC"; then
12898 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'
12899 # Try to use the -exported_symbol ld option, if it does not
12900 # work, assume that -exports_file does not work either and
12901 # implicitly export all symbols.
12902 # This should be the same for all languages, so no per-tag cache variable.
12903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12904 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12905 if test ${lt_cv_irix_exported_symbol+y}
12906 then :
12907 printf %s "(cached) " >&6
12908 else case e in #(
12909 e) save_LDFLAGS=$LDFLAGS
12910 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12913 int foo (void) { return 0; }
12914 _ACEOF
12915 if ac_fn_c_try_link "$LINENO"
12916 then :
12917 lt_cv_irix_exported_symbol=yes
12918 else case e in #(
12919 e) lt_cv_irix_exported_symbol=no ;;
12920 esac
12921 fi
12922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12923 conftest$ac_exeext conftest.$ac_ext
12924 LDFLAGS=$save_LDFLAGS ;;
12925 esac
12926 fi
12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12928 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12929 if test yes = "$lt_cv_irix_exported_symbol"; then
12930 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'
12931 fi
12932 else
12933 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'
12934 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'
12935 fi
12936 archive_cmds_need_lc='no'
12937 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12938 hardcode_libdir_separator=:
12939 inherit_rpath=yes
12940 link_all_deplibs=yes
12941 ;;
12942
12943 linux*)
12944 case $cc_basename in
12945 tcc*)
12946 # Fabrice Bellard et al's Tiny C Compiler
12947 ld_shlibs=yes
12948 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12949 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12950 ;;
12951 esac
12952 ;;
12953
12954 *-mlibc)
12955 ;;
12956
12957 netbsd* | netbsdelf*-gnu)
12958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12960 else
12961 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12962 fi
12963 hardcode_libdir_flag_spec='-R$libdir'
12964 hardcode_direct=yes
12965 hardcode_shlibpath_var=no
12966 ;;
12967
12968 newsos6)
12969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12970 hardcode_direct=yes
12971 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12972 hardcode_libdir_separator=:
12973 hardcode_shlibpath_var=no
12974 ;;
12975
12976 *nto* | *qnx*)
12977 ;;
12978
12979 openbsd*)
12980 if test -f /usr/libexec/ld.so; then
12981 hardcode_direct=yes
12982 hardcode_shlibpath_var=no
12983 hardcode_direct_absolute=yes
12984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12986 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12987 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12988 export_dynamic_flag_spec='$wl-E'
12989 else
12990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12991 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12992 fi
12993 else
12994 ld_shlibs=no
12995 fi
12996 ;;
12997
12998 os2*)
12999 hardcode_libdir_flag_spec='-L$libdir'
13000 hardcode_minus_L=yes
13001 allow_undefined_flag=unsupported
13002 shrext_cmds=.dll
13003 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13004 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13005 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13006 $ECHO EXPORTS >> $output_objdir/$libname.def~
13007 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13008 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13009 emximp -o $lib $output_objdir/$libname.def'
13010 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13011 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13012 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13013 $ECHO EXPORTS >> $output_objdir/$libname.def~
13014 prefix_cmds="$SED"~
13015 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13016 prefix_cmds="$prefix_cmds -e 1d";
13017 fi~
13018 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13019 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13020 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13021 emximp -o $lib $output_objdir/$libname.def'
13022 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13023 enable_shared_with_static_runtimes=yes
13024 file_list_spec='@'
13025 ;;
13026
13027 osf3*)
13028 if test yes = "$GCC"; then
13029 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13030 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'
13031 else
13032 allow_undefined_flag=' -expect_unresolved \*'
13033 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'
13034 fi
13035 archive_cmds_need_lc='no'
13036 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13037 hardcode_libdir_separator=:
13038 ;;
13039
13040 osf4* | osf5*) # as osf3* with the addition of -msym flag
13041 if test yes = "$GCC"; then
13042 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13043 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'
13044 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13045 else
13046 allow_undefined_flag=' -expect_unresolved \*'
13047 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'
13048 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~
13049 $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'
13050
13051 # Both c and cxx compiler support -rpath directly
13052 hardcode_libdir_flag_spec='-rpath $libdir'
13053 fi
13054 archive_cmds_need_lc='no'
13055 hardcode_libdir_separator=:
13056 ;;
13057
13058 serenity*)
13059 ;;
13060
13061 solaris*)
13062 no_undefined_flag=' -z defs'
13063 if test yes = "$GCC"; then
13064 wlarc='$wl'
13065 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13066 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13067 $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'
13068 else
13069 case `$CC -V 2>&1` in
13070 *"Compilers 5.0"*)
13071 wlarc=''
13072 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13073 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13074 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13075 ;;
13076 *)
13077 wlarc='$wl'
13078 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13079 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13080 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13081 ;;
13082 esac
13083 fi
13084 hardcode_libdir_flag_spec='-R$libdir'
13085 hardcode_shlibpath_var=no
13086 case $host_os in
13087 solaris2.[0-5] | solaris2.[0-5].*) ;;
13088 *)
13089 # The compiler driver will combine and reorder linker options,
13090 # but understands '-z linker_flag'. GCC discards it without '$wl',
13091 # but is careful enough not to reorder.
13092 # Supported since Solaris 2.6 (maybe 2.5.1?)
13093 if test yes = "$GCC"; then
13094 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13095 else
13096 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13097 fi
13098 ;;
13099 esac
13100 link_all_deplibs=yes
13101 ;;
13102
13103 sunos4*)
13104 if test sequent = "$host_vendor"; then
13105 # Use $CC to link under sequent, because it throws in some extra .o
13106 # files that make .init and .fini sections work.
13107 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13108 else
13109 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13110 fi
13111 hardcode_libdir_flag_spec='-L$libdir'
13112 hardcode_direct=yes
13113 hardcode_minus_L=yes
13114 hardcode_shlibpath_var=no
13115 ;;
13116
13117 sysv4)
13118 case $host_vendor in
13119 sni)
13120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13121 hardcode_direct=yes # is this really true???
13122 ;;
13123 siemens)
13124 ## LD is ld it makes a PLAMLIB
13125 ## CC just makes a GrossModule.
13126 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13127 reload_cmds='$CC -r -o $output$reload_objs'
13128 hardcode_direct=no
13129 ;;
13130 motorola)
13131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13132 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13133 ;;
13134 esac
13135 runpath_var='LD_RUN_PATH'
13136 hardcode_shlibpath_var=no
13137 ;;
13138
13139 sysv4.3*)
13140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13141 hardcode_shlibpath_var=no
13142 export_dynamic_flag_spec='-Bexport'
13143 ;;
13144
13145 sysv4*MP*)
13146 if test -d /usr/nec; then
13147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13148 hardcode_shlibpath_var=no
13149 runpath_var=LD_RUN_PATH
13150 hardcode_runpath_var=yes
13151 ld_shlibs=yes
13152 fi
13153 ;;
13154
13155 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13156 no_undefined_flag='$wl-z,text'
13157 archive_cmds_need_lc=no
13158 hardcode_shlibpath_var=no
13159 runpath_var='LD_RUN_PATH'
13160
13161 if test yes = "$GCC"; then
13162 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13163 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13164 else
13165 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13166 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13167 fi
13168 ;;
13169
13170 sysv5* | sco3.2v5* | sco5v6*)
13171 # Note: We CANNOT use -z defs as we might desire, because we do not
13172 # link with -lc, and that would cause any symbols used from libc to
13173 # always be unresolved, which means just about no library would
13174 # ever link correctly. If we're not using GNU ld we use -z text
13175 # though, which does catch some bad symbols but isn't as heavy-handed
13176 # as -z defs.
13177 no_undefined_flag='$wl-z,text'
13178 allow_undefined_flag='$wl-z,nodefs'
13179 archive_cmds_need_lc=no
13180 hardcode_shlibpath_var=no
13181 hardcode_libdir_flag_spec='$wl-R,$libdir'
13182 hardcode_libdir_separator=':'
13183 link_all_deplibs=yes
13184 export_dynamic_flag_spec='$wl-Bexport'
13185 runpath_var='LD_RUN_PATH'
13186
13187 if test yes = "$GCC"; then
13188 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13189 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13190 else
13191 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13192 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13193 fi
13194 ;;
13195
13196 uts4*)
13197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13198 hardcode_libdir_flag_spec='-L$libdir'
13199 hardcode_shlibpath_var=no
13200 ;;
13201
13202 *)
13203 ld_shlibs=no
13204 ;;
13205 esac
13206
13207 if test sni = "$host_vendor"; then
13208 case $host in
13209 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13210 export_dynamic_flag_spec='$wl-Blargedynsym'
13211 ;;
13212 esac
13213 fi
13214 fi
13215
13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13217 printf "%s\n" "$ld_shlibs" >&6; }
13218 test no = "$ld_shlibs" && can_build_shared=no
13219
13220 with_gnu_ld=$with_gnu_ld
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236 #
13237 # Do we need to explicitly link libc?
13238 #
13239 case "x$archive_cmds_need_lc" in
13240 x|xyes)
13241 # Assume -lc should be added
13242 archive_cmds_need_lc=yes
13243
13244 if test yes,yes = "$GCC,$enable_shared"; then
13245 case $archive_cmds in
13246 *'~'*)
13247 # FIXME: we may have to deal with multi-command sequences.
13248 ;;
13249 '$CC '*)
13250 # Test whether the compiler implicitly links with -lc since on some
13251 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13252 # to ld, don't add -lc before -lgcc.
13253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13254 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13255 if test ${lt_cv_archive_cmds_need_lc+y}
13256 then :
13257 printf %s "(cached) " >&6
13258 else case e in #(
13259 e) $RM conftest*
13260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13261
13262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13263 (eval $ac_compile) 2>&5
13264 ac_status=$?
13265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13266 test $ac_status = 0; } 2>conftest.err; then
13267 soname=conftest
13268 lib=conftest
13269 libobjs=conftest.$ac_objext
13270 deplibs=
13271 wl=$lt_prog_compiler_wl
13272 pic_flag=$lt_prog_compiler_pic
13273 compiler_flags=-v
13274 linker_flags=-v
13275 verstring=
13276 output_objdir=.
13277 libname=conftest
13278 lt_save_allow_undefined_flag=$allow_undefined_flag
13279 allow_undefined_flag=
13280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13281 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13282 ac_status=$?
13283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13284 test $ac_status = 0; }
13285 then
13286 lt_cv_archive_cmds_need_lc=no
13287 else
13288 lt_cv_archive_cmds_need_lc=yes
13289 fi
13290 allow_undefined_flag=$lt_save_allow_undefined_flag
13291 else
13292 cat conftest.err 1>&5
13293 fi
13294 $RM conftest*
13295 ;;
13296 esac
13297 fi
13298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13299 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13300 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13301 ;;
13302 esac
13303 fi
13304 ;;
13305 esac
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13459 printf %s "checking dynamic linker characteristics... " >&6; }
13460
13461 if test yes = "$GCC"; then
13462 case $host_os in
13463 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13464 *) lt_awk_arg='/^libraries:/' ;;
13465 esac
13466 case $host_os in
13467 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13468 *) lt_sed_strip_eq='s|=/|/|g' ;;
13469 esac
13470 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13471 case $lt_search_path_spec in
13472 *\;*)
13473 # if the path contains ";" then we assume it to be the separator
13474 # otherwise default to the standard path separator (i.e. ":") - it is
13475 # assumed that no part of a normal pathname contains ";" but that should
13476 # okay in the real world where ";" in dirpaths is itself problematic.
13477 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13478 ;;
13479 *)
13480 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13481 ;;
13482 esac
13483 # Ok, now we have the path, separated by spaces, we can step through it
13484 # and add multilib dir if necessary...
13485 lt_tmp_lt_search_path_spec=
13486 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13487 # ...but if some path component already ends with the multilib dir we assume
13488 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13489 case "$lt_multi_os_dir; $lt_search_path_spec " in
13490 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13491 lt_multi_os_dir=
13492 ;;
13493 esac
13494 for lt_sys_path in $lt_search_path_spec; do
13495 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13496 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13497 elif test -n "$lt_multi_os_dir"; then
13498 test -d "$lt_sys_path" && \
13499 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13500 fi
13501 done
13502 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13503 BEGIN {RS = " "; FS = "/|\n";} {
13504 lt_foo = "";
13505 lt_count = 0;
13506 for (lt_i = NF; lt_i > 0; lt_i--) {
13507 if ($lt_i != "" && $lt_i != ".") {
13508 if ($lt_i == "..") {
13509 lt_count++;
13510 } else {
13511 if (lt_count == 0) {
13512 lt_foo = "/" $lt_i lt_foo;
13513 } else {
13514 lt_count--;
13515 }
13516 }
13517 }
13518 }
13519 if (lt_foo != "") { lt_freq[lt_foo]++; }
13520 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13521 }'`
13522 # AWK program above erroneously prepends '/' to C:/dos/paths
13523 # for these hosts.
13524 case $host_os in
13525 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13526 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13527 esac
13528 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13529 else
13530 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13531 fi
13532 library_names_spec=
13533 libname_spec='lib$name'
13534 soname_spec=
13535 shrext_cmds=.so
13536 postinstall_cmds=
13537 postuninstall_cmds=
13538 finish_cmds=
13539 finish_eval=
13540 shlibpath_var=
13541 shlibpath_overrides_runpath=unknown
13542 version_type=none
13543 dynamic_linker="$host_os ld.so"
13544 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13545 need_lib_prefix=unknown
13546 hardcode_into_libs=no
13547
13548 # when you set need_version to no, make sure it does not cause -set_version
13549 # flags to be left without arguments
13550 need_version=unknown
13551
13552
13553
13554 case $host_os in
13555 aix3*)
13556 version_type=linux # correct to gnu/linux during the next big refactor
13557 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13558 shlibpath_var=LIBPATH
13559
13560 # AIX 3 has no versioning support, so we append a major version to the name.
13561 soname_spec='$libname$release$shared_ext$major'
13562 ;;
13563
13564 aix[4-9]*)
13565 version_type=linux # correct to gnu/linux during the next big refactor
13566 need_lib_prefix=no
13567 need_version=no
13568 hardcode_into_libs=yes
13569 if test ia64 = "$host_cpu"; then
13570 # AIX 5 supports IA64
13571 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13572 shlibpath_var=LD_LIBRARY_PATH
13573 else
13574 # With GCC up to 2.95.x, collect2 would create an import file
13575 # for dependence libraries. The import file would start with
13576 # the line '#! .'. This would cause the generated library to
13577 # depend on '.', always an invalid library. This was fixed in
13578 # development snapshots of GCC prior to 3.0.
13579 case $host_os in
13580 aix4 | aix4.[01] | aix4.[01].*)
13581 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13582 echo ' yes '
13583 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13584 :
13585 else
13586 can_build_shared=no
13587 fi
13588 ;;
13589 esac
13590 # Using Import Files as archive members, it is possible to support
13591 # filename-based versioning of shared library archives on AIX. While
13592 # this would work for both with and without runtime linking, it will
13593 # prevent static linking of such archives. So we do filename-based
13594 # shared library versioning with .so extension only, which is used
13595 # when both runtime linking and shared linking is enabled.
13596 # Unfortunately, runtime linking may impact performance, so we do
13597 # not want this to be the default eventually. Also, we use the
13598 # versioned .so libs for executables only if there is the -brtl
13599 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13600 # To allow for filename-based versioning support, we need to create
13601 # libNAME.so.V as an archive file, containing:
13602 # *) an Import File, referring to the versioned filename of the
13603 # archive as well as the shared archive member, telling the
13604 # bitwidth (32 or 64) of that shared object, and providing the
13605 # list of exported symbols of that shared object, eventually
13606 # decorated with the 'weak' keyword
13607 # *) the shared object with the F_LOADONLY flag set, to really avoid
13608 # it being seen by the linker.
13609 # At run time we better use the real file rather than another symlink,
13610 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13611
13612 case $with_aix_soname,$aix_use_runtimelinking in
13613 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13614 # soname into executable. Probably we can add versioning support to
13615 # collect2, so additional links can be useful in future.
13616 aix,yes) # traditional libtool
13617 dynamic_linker='AIX unversionable lib.so'
13618 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13619 # instead of lib<name>.a to let people know that these are not
13620 # typical AIX shared libraries.
13621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13622 ;;
13623 aix,no) # traditional AIX only
13624 dynamic_linker='AIX lib.a(lib.so.V)'
13625 # We preserve .a as extension for shared libraries through AIX4.2
13626 # and later when we are not doing run time linking.
13627 library_names_spec='$libname$release.a $libname.a'
13628 soname_spec='$libname$release$shared_ext$major'
13629 ;;
13630 svr4,*) # full svr4 only
13631 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13632 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13633 # We do not specify a path in Import Files, so LIBPATH fires.
13634 shlibpath_overrides_runpath=yes
13635 ;;
13636 *,yes) # both, prefer svr4
13637 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13638 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13639 # unpreferred sharedlib libNAME.a needs extra handling
13640 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"'
13641 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"'
13642 # We do not specify a path in Import Files, so LIBPATH fires.
13643 shlibpath_overrides_runpath=yes
13644 ;;
13645 *,no) # both, prefer aix
13646 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13647 library_names_spec='$libname$release.a $libname.a'
13648 soname_spec='$libname$release$shared_ext$major'
13649 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13650 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)'
13651 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"'
13652 ;;
13653 esac
13654 shlibpath_var=LIBPATH
13655 fi
13656 ;;
13657
13658 amigaos*)
13659 case $host_cpu in
13660 powerpc)
13661 # Since July 2007 AmigaOS4 officially supports .so libraries.
13662 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13664 ;;
13665 m68k)
13666 library_names_spec='$libname.ixlibrary $libname.a'
13667 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13668 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'
13669 ;;
13670 esac
13671 ;;
13672
13673 beos*)
13674 library_names_spec='$libname$shared_ext'
13675 dynamic_linker="$host_os ld.so"
13676 shlibpath_var=LIBRARY_PATH
13677 ;;
13678
13679 bsdi[45]*)
13680 version_type=linux # correct to gnu/linux during the next big refactor
13681 need_version=no
13682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13683 soname_spec='$libname$release$shared_ext$major'
13684 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13685 shlibpath_var=LD_LIBRARY_PATH
13686 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13687 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13688 # the default ld.so.conf also contains /usr/contrib/lib and
13689 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13690 # libtool to hard-code these into programs
13691 ;;
13692
13693 cygwin* | mingw* | windows* | pw32* | cegcc*)
13694 version_type=windows
13695 shrext_cmds=.dll
13696 need_version=no
13697 need_lib_prefix=no
13698
13699 case $GCC,$cc_basename in
13700 yes,*)
13701 # gcc
13702 library_names_spec='$libname.dll.a'
13703 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13704 # If user builds GCC with multilib enabled,
13705 # it should just install on $(libdir)
13706 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13707 if test xyes = x"$multilib"; then
13708 postinstall_cmds='base_file=`basename \$file`~
13709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13710 dldir=$destdir/`dirname \$dlpath`~
13711 $install_prog $dir/$dlname $destdir/$dlname~
13712 chmod a+x $destdir/$dlname~
13713 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13714 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13715 fi'
13716 else
13717 postinstall_cmds='base_file=`basename \$file`~
13718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13719 dldir=$destdir/`dirname \$dlpath`~
13720 test -d \$dldir || mkdir -p \$dldir~
13721 $install_prog $dir/$dlname \$dldir/$dlname~
13722 chmod a+x \$dldir/$dlname~
13723 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13724 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13725 fi'
13726 fi
13727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13728 dlpath=$dir/\$dldll~
13729 $RM \$dlpath'
13730 shlibpath_overrides_runpath=yes
13731
13732 case $host_os in
13733 cygwin*)
13734 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13735 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13736
13737 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13738 ;;
13739 mingw* | windows* | cegcc*)
13740 # MinGW DLLs use traditional 'lib' prefix
13741 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13742 ;;
13743 pw32*)
13744 # pw32 DLLs use 'pw' prefix rather than 'lib'
13745 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13746 ;;
13747 esac
13748 dynamic_linker='Win32 ld.exe'
13749 ;;
13750
13751 *,cl* | *,icl*)
13752 # Native MSVC or ICC
13753 libname_spec='$name'
13754 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13755 library_names_spec='$libname.dll.lib'
13756
13757 case $build_os in
13758 mingw* | windows*)
13759 sys_lib_search_path_spec=
13760 lt_save_ifs=$IFS
13761 IFS=';'
13762 for lt_path in $LIB
13763 do
13764 IFS=$lt_save_ifs
13765 # Let DOS variable expansion print the short 8.3 style file name.
13766 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13767 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13768 done
13769 IFS=$lt_save_ifs
13770 # Convert to MSYS style.
13771 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13772 ;;
13773 cygwin*)
13774 # Convert to unix form, then to dos form, then back to unix form
13775 # but this time dos style (no spaces!) so that the unix form looks
13776 # like /cygdrive/c/PROGRA~1:/cygdr...
13777 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13778 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13779 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13780 ;;
13781 *)
13782 sys_lib_search_path_spec=$LIB
13783 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13784 # It is most probably a Windows format PATH.
13785 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13786 else
13787 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13788 fi
13789 # FIXME: find the short name or the path components, as spaces are
13790 # common. (e.g. "Program Files" -> "PROGRA~1")
13791 ;;
13792 esac
13793
13794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13795 postinstall_cmds='base_file=`basename \$file`~
13796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13797 dldir=$destdir/`dirname \$dlpath`~
13798 test -d \$dldir || mkdir -p \$dldir~
13799 $install_prog $dir/$dlname \$dldir/$dlname'
13800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13801 dlpath=$dir/\$dldll~
13802 $RM \$dlpath'
13803 shlibpath_overrides_runpath=yes
13804 dynamic_linker='Win32 link.exe'
13805 ;;
13806
13807 *)
13808 # Assume MSVC and ICC wrapper
13809 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13810 dynamic_linker='Win32 ld.exe'
13811 ;;
13812 esac
13813 # FIXME: first we should search . and the directory the executable is in
13814 shlibpath_var=PATH
13815 ;;
13816
13817 darwin* | rhapsody*)
13818 dynamic_linker="$host_os dyld"
13819 version_type=darwin
13820 need_lib_prefix=no
13821 need_version=no
13822 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13823 soname_spec='$libname$release$major$shared_ext'
13824 shlibpath_overrides_runpath=yes
13825 shlibpath_var=DYLD_LIBRARY_PATH
13826 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13827
13828 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13829 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13830 ;;
13831
13832 dgux*)
13833 version_type=linux # correct to gnu/linux during the next big refactor
13834 need_lib_prefix=no
13835 need_version=no
13836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13837 soname_spec='$libname$release$shared_ext$major'
13838 shlibpath_var=LD_LIBRARY_PATH
13839 ;;
13840
13841 freebsd* | dragonfly* | midnightbsd*)
13842 # DragonFly does not have aout. When/if they implement a new
13843 # versioning mechanism, adjust this.
13844 if test -x /usr/bin/objformat; then
13845 objformat=`/usr/bin/objformat`
13846 else
13847 case $host_os in
13848 freebsd[23].*) objformat=aout ;;
13849 *) objformat=elf ;;
13850 esac
13851 fi
13852 version_type=freebsd-$objformat
13853 case $version_type in
13854 freebsd-elf*)
13855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13856 soname_spec='$libname$release$shared_ext$major'
13857 need_version=no
13858 need_lib_prefix=no
13859 ;;
13860 freebsd-*)
13861 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13862 need_version=yes
13863 ;;
13864 esac
13865 case $host_cpu in
13866 powerpc64)
13867 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13868 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13871 int test_pointer_size[sizeof (void *) - 5];
13872
13873 _ACEOF
13874 if ac_fn_c_try_compile "$LINENO"
13875 then :
13876 shlibpath_var=LD_LIBRARY_PATH
13877 else case e in #(
13878 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13879 esac
13880 fi
13881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13882 ;;
13883 *)
13884 shlibpath_var=LD_LIBRARY_PATH
13885 ;;
13886 esac
13887 case $host_os in
13888 freebsd2.*)
13889 shlibpath_overrides_runpath=yes
13890 ;;
13891 freebsd3.[01]* | freebsdelf3.[01]*)
13892 shlibpath_overrides_runpath=yes
13893 hardcode_into_libs=yes
13894 ;;
13895 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13896 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13897 shlibpath_overrides_runpath=no
13898 hardcode_into_libs=yes
13899 ;;
13900 *) # from 4.6 on, and DragonFly
13901 shlibpath_overrides_runpath=yes
13902 hardcode_into_libs=yes
13903 ;;
13904 esac
13905 ;;
13906
13907 haiku*)
13908 version_type=linux # correct to gnu/linux during the next big refactor
13909 need_lib_prefix=no
13910 need_version=no
13911 dynamic_linker="$host_os runtime_loader"
13912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13913 soname_spec='$libname$release$shared_ext$major'
13914 shlibpath_var=LIBRARY_PATH
13915 shlibpath_overrides_runpath=no
13916 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13917 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13918 hardcode_into_libs=no
13919 ;;
13920
13921 hpux9* | hpux10* | hpux11*)
13922 # Give a soname corresponding to the major version so that dld.sl refuses to
13923 # link against other versions.
13924 version_type=sunos
13925 need_lib_prefix=no
13926 need_version=no
13927 case $host_cpu in
13928 ia64*)
13929 shrext_cmds='.so'
13930 hardcode_into_libs=yes
13931 dynamic_linker="$host_os dld.so"
13932 shlibpath_var=LD_LIBRARY_PATH
13933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13935 soname_spec='$libname$release$shared_ext$major'
13936 if test 32 = "$HPUX_IA64_MODE"; then
13937 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13938 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13939 else
13940 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13941 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13942 fi
13943 ;;
13944 hppa*64*)
13945 shrext_cmds='.sl'
13946 hardcode_into_libs=yes
13947 dynamic_linker="$host_os dld.sl"
13948 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13951 soname_spec='$libname$release$shared_ext$major'
13952 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13954 ;;
13955 *)
13956 shrext_cmds='.sl'
13957 dynamic_linker="$host_os dld.sl"
13958 shlibpath_var=SHLIB_PATH
13959 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13961 soname_spec='$libname$release$shared_ext$major'
13962 ;;
13963 esac
13964 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13965 postinstall_cmds='chmod 555 $lib'
13966 # or fails outright, so override atomically:
13967 install_override_mode=555
13968 ;;
13969
13970 interix[3-9]*)
13971 version_type=linux # correct to gnu/linux during the next big refactor
13972 need_lib_prefix=no
13973 need_version=no
13974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13975 soname_spec='$libname$release$shared_ext$major'
13976 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13977 shlibpath_var=LD_LIBRARY_PATH
13978 shlibpath_overrides_runpath=no
13979 hardcode_into_libs=yes
13980 ;;
13981
13982 irix5* | irix6* | nonstopux*)
13983 case $host_os in
13984 nonstopux*) version_type=nonstopux ;;
13985 *)
13986 if test yes = "$lt_cv_prog_gnu_ld"; then
13987 version_type=linux # correct to gnu/linux during the next big refactor
13988 else
13989 version_type=irix
13990 fi ;;
13991 esac
13992 need_lib_prefix=no
13993 need_version=no
13994 soname_spec='$libname$release$shared_ext$major'
13995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13996 case $host_os in
13997 irix5* | nonstopux*)
13998 libsuff= shlibsuff=
13999 ;;
14000 *)
14001 case $LD in # libtool.m4 will add one of these switches to LD
14002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14003 libsuff= shlibsuff= libmagic=32-bit;;
14004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14005 libsuff=32 shlibsuff=N32 libmagic=N32;;
14006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14007 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14008 *) libsuff= shlibsuff= libmagic=never-match;;
14009 esac
14010 ;;
14011 esac
14012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14013 shlibpath_overrides_runpath=no
14014 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14015 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14016 hardcode_into_libs=yes
14017 ;;
14018
14019 # No shared lib support for Linux oldld, aout, or coff.
14020 linux*oldld* | linux*aout* | linux*coff*)
14021 dynamic_linker=no
14022 ;;
14023
14024 linux*android*)
14025 version_type=none # Android doesn't support versioned libraries.
14026 need_lib_prefix=no
14027 need_version=no
14028 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
14029 soname_spec='$libname$release$shared_ext'
14030 finish_cmds=
14031 shlibpath_var=LD_LIBRARY_PATH
14032 shlibpath_overrides_runpath=yes
14033
14034 # This implies no fast_install, which is unacceptable.
14035 # Some rework will be needed to allow for fast_install
14036 # before this can be enabled.
14037 hardcode_into_libs=yes
14038
14039 dynamic_linker='Android linker'
14040 # -rpath works at least for libraries that are not overridden by
14041 # libraries installed in system locations.
14042 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14043 ;;
14044
14045 # This must be glibc/ELF.
14046 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14047 version_type=linux # correct to gnu/linux during the next big refactor
14048 need_lib_prefix=no
14049 need_version=no
14050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14051 soname_spec='$libname$release$shared_ext$major'
14052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14053 shlibpath_var=LD_LIBRARY_PATH
14054 shlibpath_overrides_runpath=no
14055
14056 # Some binutils ld are patched to set DT_RUNPATH
14057 if test ${lt_cv_shlibpath_overrides_runpath+y}
14058 then :
14059 printf %s "(cached) " >&6
14060 else case e in #(
14061 e) lt_cv_shlibpath_overrides_runpath=no
14062 save_LDFLAGS=$LDFLAGS
14063 save_libdir=$libdir
14064 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14065 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h. */
14068
14069 int
14070 main (void)
14071 {
14072
14073 ;
14074 return 0;
14075 }
14076 _ACEOF
14077 if ac_fn_c_try_link "$LINENO"
14078 then :
14079 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14080 then :
14081 lt_cv_shlibpath_overrides_runpath=yes
14082 fi
14083 fi
14084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14085 conftest$ac_exeext conftest.$ac_ext
14086 LDFLAGS=$save_LDFLAGS
14087 libdir=$save_libdir
14088 ;;
14089 esac
14090 fi
14091
14092 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14093
14094 # This implies no fast_install, which is unacceptable.
14095 # Some rework will be needed to allow for fast_install
14096 # before this can be enabled.
14097 hardcode_into_libs=yes
14098
14099 # Ideally, we could use ldconfig to report *all* directories which are
14100 # searched for libraries, however this is still not possible. Aside from not
14101 # being certain /sbin/ldconfig is available, command
14102 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14103 # even though it is searched at run-time. Try to do the best guess by
14104 # appending ld.so.conf contents (and includes) to the search path.
14105 if test -f /etc/ld.so.conf; then
14106 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' ' '`
14107 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14108 fi
14109
14110 # We used to test for /lib/ld.so.1 and disable shared libraries on
14111 # powerpc, because MkLinux only supported shared libraries with the
14112 # GNU dynamic linker. Since this was broken with cross compilers,
14113 # most powerpc-linux boxes support dynamic linking these days and
14114 # people can always --disable-shared, the test was removed, and we
14115 # assume the GNU/Linux dynamic linker is in use.
14116 dynamic_linker='GNU/Linux ld.so'
14117 ;;
14118
14119 netbsdelf*-gnu)
14120 version_type=linux
14121 need_lib_prefix=no
14122 need_version=no
14123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14124 soname_spec='$libname$release$shared_ext$major'
14125 shlibpath_var=LD_LIBRARY_PATH
14126 shlibpath_overrides_runpath=no
14127 hardcode_into_libs=yes
14128 dynamic_linker='NetBSD ld.elf_so'
14129 ;;
14130
14131 netbsd*)
14132 version_type=sunos
14133 need_lib_prefix=no
14134 need_version=no
14135 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14136 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14138 dynamic_linker='NetBSD (a.out) ld.so'
14139 else
14140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14141 soname_spec='$libname$release$shared_ext$major'
14142 dynamic_linker='NetBSD ld.elf_so'
14143 fi
14144 shlibpath_var=LD_LIBRARY_PATH
14145 shlibpath_overrides_runpath=yes
14146 hardcode_into_libs=yes
14147 ;;
14148
14149 *-mlibc)
14150 version_type=linux # correct to gnu/linux during the next big refactor
14151 need_lib_prefix=no
14152 need_version=no
14153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14154 soname_spec='$libname$release$shared_ext$major'
14155 dynamic_linker='mlibc ld.so'
14156 shlibpath_var=LD_LIBRARY_PATH
14157 shlibpath_overrides_runpath=no
14158 hardcode_into_libs=yes
14159 ;;
14160
14161 newsos6)
14162 version_type=linux # correct to gnu/linux during the next big refactor
14163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14164 shlibpath_var=LD_LIBRARY_PATH
14165 shlibpath_overrides_runpath=yes
14166 ;;
14167
14168 *nto* | *qnx*)
14169 version_type=qnx
14170 need_lib_prefix=no
14171 need_version=no
14172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14173 soname_spec='$libname$release$shared_ext$major'
14174 shlibpath_var=LD_LIBRARY_PATH
14175 shlibpath_overrides_runpath=no
14176 hardcode_into_libs=yes
14177 dynamic_linker='ldqnx.so'
14178 ;;
14179
14180 openbsd*)
14181 version_type=sunos
14182 sys_lib_dlsearch_path_spec=/usr/lib
14183 need_lib_prefix=no
14184 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14185 need_version=no
14186 else
14187 need_version=yes
14188 fi
14189 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14191 shlibpath_var=LD_LIBRARY_PATH
14192 shlibpath_overrides_runpath=yes
14193 ;;
14194
14195 os2*)
14196 libname_spec='$name'
14197 version_type=windows
14198 shrext_cmds=.dll
14199 need_version=no
14200 need_lib_prefix=no
14201 # OS/2 can only load a DLL with a base name of 8 characters or less.
14202 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14203 v=$($ECHO $release$versuffix | tr -d .-);
14204 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14205 $ECHO $n$v`$shared_ext'
14206 library_names_spec='${libname}_dll.$libext'
14207 dynamic_linker='OS/2 ld.exe'
14208 shlibpath_var=BEGINLIBPATH
14209 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14211 postinstall_cmds='base_file=`basename \$file`~
14212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14213 dldir=$destdir/`dirname \$dlpath`~
14214 test -d \$dldir || mkdir -p \$dldir~
14215 $install_prog $dir/$dlname \$dldir/$dlname~
14216 chmod a+x \$dldir/$dlname~
14217 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14218 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14219 fi'
14220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14221 dlpath=$dir/\$dldll~
14222 $RM \$dlpath'
14223 ;;
14224
14225 osf3* | osf4* | osf5*)
14226 version_type=osf
14227 need_lib_prefix=no
14228 need_version=no
14229 soname_spec='$libname$release$shared_ext$major'
14230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14231 shlibpath_var=LD_LIBRARY_PATH
14232 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14233 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14234 ;;
14235
14236 rdos*)
14237 dynamic_linker=no
14238 ;;
14239
14240 serenity*)
14241 version_type=linux # correct to gnu/linux during the next big refactor
14242 need_lib_prefix=no
14243 need_version=no
14244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14245 soname_spec='$libname$release$shared_ext$major'
14246 shlibpath_var=LD_LIBRARY_PATH
14247 shlibpath_overrides_runpath=no
14248 dynamic_linker='SerenityOS LibELF'
14249 ;;
14250
14251 solaris*)
14252 version_type=linux # correct to gnu/linux during the next big refactor
14253 need_lib_prefix=no
14254 need_version=no
14255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14256 soname_spec='$libname$release$shared_ext$major'
14257 shlibpath_var=LD_LIBRARY_PATH
14258 shlibpath_overrides_runpath=yes
14259 hardcode_into_libs=yes
14260 # ldd complains unless libraries are executable
14261 postinstall_cmds='chmod +x $lib'
14262 ;;
14263
14264 sunos4*)
14265 version_type=sunos
14266 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14267 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14268 shlibpath_var=LD_LIBRARY_PATH
14269 shlibpath_overrides_runpath=yes
14270 if test yes = "$with_gnu_ld"; then
14271 need_lib_prefix=no
14272 fi
14273 need_version=yes
14274 ;;
14275
14276 sysv4 | sysv4.3*)
14277 version_type=linux # correct to gnu/linux during the next big refactor
14278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14279 soname_spec='$libname$release$shared_ext$major'
14280 shlibpath_var=LD_LIBRARY_PATH
14281 case $host_vendor in
14282 sni)
14283 shlibpath_overrides_runpath=no
14284 need_lib_prefix=no
14285 runpath_var=LD_RUN_PATH
14286 ;;
14287 siemens)
14288 need_lib_prefix=no
14289 ;;
14290 motorola)
14291 need_lib_prefix=no
14292 need_version=no
14293 shlibpath_overrides_runpath=no
14294 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14295 ;;
14296 esac
14297 ;;
14298
14299 sysv4*MP*)
14300 if test -d /usr/nec; then
14301 version_type=linux # correct to gnu/linux during the next big refactor
14302 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14303 soname_spec='$libname$shared_ext.$major'
14304 shlibpath_var=LD_LIBRARY_PATH
14305 fi
14306 ;;
14307
14308 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14309 version_type=sco
14310 need_lib_prefix=no
14311 need_version=no
14312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14313 soname_spec='$libname$release$shared_ext$major'
14314 shlibpath_var=LD_LIBRARY_PATH
14315 shlibpath_overrides_runpath=yes
14316 hardcode_into_libs=yes
14317 if test yes = "$with_gnu_ld"; then
14318 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14319 else
14320 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14321 case $host_os in
14322 sco3.2v5*)
14323 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14324 ;;
14325 esac
14326 fi
14327 sys_lib_dlsearch_path_spec='/usr/lib'
14328 ;;
14329
14330 tpf*)
14331 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14332 version_type=linux # correct to gnu/linux during the next big refactor
14333 need_lib_prefix=no
14334 need_version=no
14335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14336 shlibpath_var=LD_LIBRARY_PATH
14337 shlibpath_overrides_runpath=no
14338 hardcode_into_libs=yes
14339 ;;
14340
14341 uts4*)
14342 version_type=linux # correct to gnu/linux during the next big refactor
14343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14344 soname_spec='$libname$release$shared_ext$major'
14345 shlibpath_var=LD_LIBRARY_PATH
14346 ;;
14347
14348 emscripten*)
14349 version_type=none
14350 need_lib_prefix=no
14351 need_version=no
14352 library_names_spec='$libname$release$shared_ext'
14353 soname_spec='$libname$release$shared_ext'
14354 finish_cmds=
14355 dynamic_linker="Emscripten linker"
14356 lt_prog_compiler_wl=
14357 lt_prog_compiler_pic=
14358 lt_prog_compiler_static=
14359
14360
14361 if test yes = "$GCC"; then
14362 lt_prog_compiler_wl='-Wl,'
14363 lt_prog_compiler_static='-static'
14364
14365 case $host_os in
14366 aix*)
14367 # All AIX code is PIC.
14368 if test ia64 = "$host_cpu"; then
14369 # AIX 5 now supports IA64 processor
14370 lt_prog_compiler_static='-Bstatic'
14371 fi
14372 lt_prog_compiler_pic='-fPIC'
14373 ;;
14374
14375 amigaos*)
14376 case $host_cpu in
14377 powerpc)
14378 # see comment about AmigaOS4 .so support
14379 lt_prog_compiler_pic='-fPIC'
14380 ;;
14381 m68k)
14382 # FIXME: we need at least 68020 code to build shared libraries, but
14383 # adding the '-m68020' flag to GCC prevents building anything better,
14384 # like '-m68040'.
14385 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14386 ;;
14387 esac
14388 ;;
14389
14390 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14391 # PIC is the default for these OSes.
14392 ;;
14393
14394 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14395 # This hack is so that the source file can tell whether it is being
14396 # built for inclusion in a dll (and should export symbols for example).
14397 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14398 # (--disable-auto-import) libraries
14399 lt_prog_compiler_pic='-DDLL_EXPORT'
14400 case $host_os in
14401 os2*)
14402 lt_prog_compiler_static='$wl-static'
14403 ;;
14404 esac
14405 ;;
14406
14407 darwin* | rhapsody*)
14408 # PIC is the default on this platform
14409 # Common symbols not allowed in MH_DYLIB files
14410 lt_prog_compiler_pic='-fno-common'
14411 ;;
14412
14413 haiku*)
14414 # PIC is the default for Haiku.
14415 # The "-static" flag exists, but is broken.
14416 lt_prog_compiler_static=
14417 ;;
14418
14419 hpux*)
14420 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14421 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14422 # sets the default TLS model and affects inlining.
14423 case $host_cpu in
14424 hppa*64*)
14425 # +Z the default
14426 ;;
14427 *)
14428 lt_prog_compiler_pic='-fPIC'
14429 ;;
14430 esac
14431 ;;
14432
14433 interix[3-9]*)
14434 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14435 # Instead, we relocate shared libraries at runtime.
14436 ;;
14437
14438 msdosdjgpp*)
14439 # Just because we use GCC doesn't mean we suddenly get shared libraries
14440 # on systems that don't support them.
14441 lt_prog_compiler_can_build_shared=no
14442 enable_shared=no
14443 ;;
14444
14445 *nto* | *qnx*)
14446 # QNX uses GNU C++, but need to define -shared option too, otherwise
14447 # it will coredump.
14448 lt_prog_compiler_pic='-fPIC -shared'
14449 ;;
14450
14451 sysv4*MP*)
14452 if test -d /usr/nec; then
14453 lt_prog_compiler_pic=-Kconform_pic
14454 fi
14455 ;;
14456
14457 *)
14458 lt_prog_compiler_pic='-fPIC'
14459 ;;
14460 esac
14461
14462 case $cc_basename in
14463 nvcc*) # Cuda Compiler Driver 2.2
14464 lt_prog_compiler_wl='-Xlinker '
14465 if test -n "$lt_prog_compiler_pic"; then
14466 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14467 fi
14468 ;;
14469 esac
14470 else
14471 # PORTME Check for flag to pass linker flags through the system compiler.
14472 case $host_os in
14473 aix*)
14474 lt_prog_compiler_wl='-Wl,'
14475 if test ia64 = "$host_cpu"; then
14476 # AIX 5 now supports IA64 processor
14477 lt_prog_compiler_static='-Bstatic'
14478 else
14479 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14480 fi
14481 ;;
14482
14483 darwin* | rhapsody*)
14484 # PIC is the default on this platform
14485 # Common symbols not allowed in MH_DYLIB files
14486 lt_prog_compiler_pic='-fno-common'
14487 case $cc_basename in
14488 nagfor*)
14489 # NAG Fortran compiler
14490 lt_prog_compiler_wl='-Wl,-Wl,,'
14491 lt_prog_compiler_pic='-PIC'
14492 lt_prog_compiler_static='-Bstatic'
14493 ;;
14494 esac
14495 ;;
14496
14497 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14498 # This hack is so that the source file can tell whether it is being
14499 # built for inclusion in a dll (and should export symbols for example).
14500 lt_prog_compiler_pic='-DDLL_EXPORT'
14501 case $host_os in
14502 os2*)
14503 lt_prog_compiler_static='$wl-static'
14504 ;;
14505 esac
14506 ;;
14507
14508 hpux9* | hpux10* | hpux11*)
14509 lt_prog_compiler_wl='-Wl,'
14510 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14511 # not for PA HP-UX.
14512 case $host_cpu in
14513 hppa*64*|ia64*)
14514 # +Z the default
14515 ;;
14516 *)
14517 lt_prog_compiler_pic='+Z'
14518 ;;
14519 esac
14520 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14521 lt_prog_compiler_static='$wl-a ${wl}archive'
14522 ;;
14523
14524 irix5* | irix6* | nonstopux*)
14525 lt_prog_compiler_wl='-Wl,'
14526 # PIC (with -KPIC) is the default.
14527 lt_prog_compiler_static='-non_shared'
14528 ;;
14529
14530 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14531 case $cc_basename in
14532 # old Intel for x86_64, which still supported -KPIC.
14533 ecc*)
14534 lt_prog_compiler_wl='-Wl,'
14535 lt_prog_compiler_pic='-KPIC'
14536 lt_prog_compiler_static='-static'
14537 ;;
14538 *flang* | ftn | f18* | f95*)
14539 # Flang compiler.
14540 lt_prog_compiler_wl='-Wl,'
14541 lt_prog_compiler_pic='-fPIC'
14542 lt_prog_compiler_static='-static'
14543 ;;
14544 # icc used to be incompatible with GCC.
14545 # ICC 10 doesn't accept -KPIC any more.
14546 icc* | ifort*)
14547 lt_prog_compiler_wl='-Wl,'
14548 lt_prog_compiler_pic='-fPIC'
14549 lt_prog_compiler_static='-static'
14550 ;;
14551 # Lahey Fortran 8.1.
14552 lf95*)
14553 lt_prog_compiler_wl='-Wl,'
14554 lt_prog_compiler_pic='--shared'
14555 lt_prog_compiler_static='--static'
14556 ;;
14557 nagfor*)
14558 # NAG Fortran compiler
14559 lt_prog_compiler_wl='-Wl,-Wl,,'
14560 lt_prog_compiler_pic='-PIC'
14561 lt_prog_compiler_static='-Bstatic'
14562 ;;
14563 tcc*)
14564 # Fabrice Bellard et al's Tiny C Compiler
14565 lt_prog_compiler_wl='-Wl,'
14566 lt_prog_compiler_pic='-fPIC'
14567 lt_prog_compiler_static='-static'
14568 ;;
14569 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14570 # Portland Group compilers (*not* the Pentium gcc compiler,
14571 # which looks to be a dead project)
14572 lt_prog_compiler_wl='-Wl,'
14573 lt_prog_compiler_pic='-fpic'
14574 lt_prog_compiler_static='-Bstatic'
14575 ;;
14576 ccc*)
14577 lt_prog_compiler_wl='-Wl,'
14578 # All Alpha code is PIC.
14579 lt_prog_compiler_static='-non_shared'
14580 ;;
14581 xl* | bgxl* | bgf* | mpixl*)
14582 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14583 lt_prog_compiler_wl='-Wl,'
14584 lt_prog_compiler_pic='-qpic'
14585 lt_prog_compiler_static='-qstaticlink'
14586 ;;
14587 *)
14588 case `$CC -V 2>&1 | $SED 5q` in
14589 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14590 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14591 lt_prog_compiler_pic='-KPIC'
14592 lt_prog_compiler_static='-Bstatic'
14593 lt_prog_compiler_wl=''
14594 ;;
14595 *Sun\ F* | *Sun*Fortran*)
14596 lt_prog_compiler_pic='-KPIC'
14597 lt_prog_compiler_static='-Bstatic'
14598 lt_prog_compiler_wl='-Qoption ld '
14599 ;;
14600 *Sun\ C*)
14601 # Sun C 5.9
14602 lt_prog_compiler_pic='-KPIC'
14603 lt_prog_compiler_static='-Bstatic'
14604 lt_prog_compiler_wl='-Wl,'
14605 ;;
14606 *Intel*\ [CF]*Compiler*)
14607 lt_prog_compiler_wl='-Wl,'
14608 lt_prog_compiler_pic='-fPIC'
14609 lt_prog_compiler_static='-static'
14610 ;;
14611 *Portland\ Group*)
14612 lt_prog_compiler_wl='-Wl,'
14613 lt_prog_compiler_pic='-fpic'
14614 lt_prog_compiler_static='-Bstatic'
14615 ;;
14616 esac
14617 ;;
14618 esac
14619 ;;
14620
14621 newsos6)
14622 lt_prog_compiler_pic='-KPIC'
14623 lt_prog_compiler_static='-Bstatic'
14624 ;;
14625
14626 *-mlibc)
14627 lt_prog_compiler_wl='-Wl,'
14628 lt_prog_compiler_pic='-fPIC'
14629 lt_prog_compiler_static='-static'
14630 ;;
14631
14632 *nto* | *qnx*)
14633 # QNX uses GNU C++, but need to define -shared option too, otherwise
14634 # it will coredump.
14635 lt_prog_compiler_pic='-fPIC -shared'
14636 ;;
14637
14638 osf3* | osf4* | osf5*)
14639 lt_prog_compiler_wl='-Wl,'
14640 # All OSF/1 code is PIC.
14641 lt_prog_compiler_static='-non_shared'
14642 ;;
14643
14644 rdos*)
14645 lt_prog_compiler_static='-non_shared'
14646 ;;
14647
14648 serenity*)
14649 ;;
14650
14651 solaris*)
14652 lt_prog_compiler_pic='-KPIC'
14653 lt_prog_compiler_static='-Bstatic'
14654 case $cc_basename in
14655 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14656 lt_prog_compiler_wl='-Qoption ld ';;
14657 *)
14658 lt_prog_compiler_wl='-Wl,';;
14659 esac
14660 ;;
14661
14662 sunos4*)
14663 lt_prog_compiler_wl='-Qoption ld '
14664 lt_prog_compiler_pic='-PIC'
14665 lt_prog_compiler_static='-Bstatic'
14666 ;;
14667
14668 sysv4 | sysv4.2uw2* | sysv4.3*)
14669 lt_prog_compiler_wl='-Wl,'
14670 lt_prog_compiler_pic='-KPIC'
14671 lt_prog_compiler_static='-Bstatic'
14672 ;;
14673
14674 sysv4*MP*)
14675 if test -d /usr/nec; then
14676 lt_prog_compiler_pic='-Kconform_pic'
14677 lt_prog_compiler_static='-Bstatic'
14678 fi
14679 ;;
14680
14681 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14682 lt_prog_compiler_wl='-Wl,'
14683 lt_prog_compiler_pic='-KPIC'
14684 lt_prog_compiler_static='-Bstatic'
14685 ;;
14686
14687 unicos*)
14688 lt_prog_compiler_wl='-Wl,'
14689 lt_prog_compiler_can_build_shared=no
14690 ;;
14691
14692 uts4*)
14693 lt_prog_compiler_pic='-pic'
14694 lt_prog_compiler_static='-Bstatic'
14695 ;;
14696
14697 *)
14698 lt_prog_compiler_can_build_shared=no
14699 ;;
14700 esac
14701 fi
14702
14703 case $host_os in
14704 # For platforms that do not support PIC, -DPIC is meaningless:
14705 *djgpp*)
14706 lt_prog_compiler_pic=
14707 ;;
14708 *)
14709 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14710 ;;
14711 esac
14712
14713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14714 printf %s "checking for $compiler option to produce PIC... " >&6; }
14715 if test ${lt_cv_prog_compiler_pic+y}
14716 then :
14717 printf %s "(cached) " >&6
14718 else case e in #(
14719 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14720 esac
14721 fi
14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14723 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14724 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14725
14726 #
14727 # Check to make sure the PIC flag actually works.
14728 #
14729 if test -n "$lt_prog_compiler_pic"; then
14730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14731 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14732 if test ${lt_cv_prog_compiler_pic_works+y}
14733 then :
14734 printf %s "(cached) " >&6
14735 else case e in #(
14736 e) lt_cv_prog_compiler_pic_works=no
14737 ac_outfile=conftest.$ac_objext
14738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14739 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14740 # Insert the option either (1) after the last *FLAGS variable, or
14741 # (2) before a word containing "conftest.", or (3) at the end.
14742 # Note that $ac_compile itself does not contain backslashes and begins
14743 # with a dollar sign (not a hyphen), so the echo should work correctly.
14744 # The option is referenced via a variable to avoid confusing sed.
14745 lt_compile=`echo "$ac_compile" | $SED \
14746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14748 -e 's:$: $lt_compiler_flag:'`
14749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14750 (eval "$lt_compile" 2>conftest.err)
14751 ac_status=$?
14752 cat conftest.err >&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 if (exit $ac_status) && test -s "$ac_outfile"; then
14755 # The compiler can only warn and ignore the option if not recognized
14756 # So say no if there are warnings other than the usual output.
14757 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14759 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14760 lt_cv_prog_compiler_pic_works=yes
14761 fi
14762 fi
14763 $RM conftest*
14764 ;;
14765 esac
14766 fi
14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14768 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14769
14770 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14771 case $lt_prog_compiler_pic in
14772 "" | " "*) ;;
14773 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14774 esac
14775 else
14776 lt_prog_compiler_pic=
14777 lt_prog_compiler_can_build_shared=no
14778 fi
14779
14780 fi
14781
14782
14783
14784
14785
14786 #
14787 # Check to make sure the static flag actually works.
14788 #
14789 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14791 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14792 if test ${lt_cv_prog_compiler_static_works+y}
14793 then :
14794 printf %s "(cached) " >&6
14795 else case e in #(
14796 e) lt_cv_prog_compiler_static_works=no
14797 save_LDFLAGS=$LDFLAGS
14798 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14799 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14800 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14801 # The linker can only warn and ignore the option if not recognized
14802 # So say no if there are warnings
14803 if test -s conftest.err; then
14804 # Append any errors to the config.log.
14805 cat conftest.err 1>&5
14806 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14808 if diff conftest.exp conftest.er2 >/dev/null; then
14809 lt_cv_prog_compiler_static_works=yes
14810 fi
14811 else
14812 lt_cv_prog_compiler_static_works=yes
14813 fi
14814 fi
14815 $RM -r conftest*
14816 LDFLAGS=$save_LDFLAGS
14817 ;;
14818 esac
14819 fi
14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14821 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14822
14823 if test yes = "$lt_cv_prog_compiler_static_works"; then
14824 :
14825 else
14826 lt_prog_compiler_static=
14827 fi
14828
14829
14830
14831 ='-fPIC'
14832 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14833 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'
14834 archive_cmds_need_lc=no
14835 no_undefined_flag=
14836 ;;
14837
14838 *)
14839 dynamic_linker=no
14840 ;;
14841 esac
14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14843 printf "%s\n" "$dynamic_linker" >&6; }
14844 test no = "$dynamic_linker" && can_build_shared=no
14845
14846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14847 if test yes = "$GCC"; then
14848 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14849 fi
14850
14851 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14852 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14853 fi
14854
14855 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14856 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14857 fi
14858
14859 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14860 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14861
14862 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14863 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14864
14865 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14866 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14965 printf %s "checking how to hardcode library paths into programs... " >&6; }
14966 hardcode_action=
14967 if test -n "$hardcode_libdir_flag_spec" ||
14968 test -n "$runpath_var" ||
14969 test yes = "$hardcode_automatic"; then
14970
14971 # We can hardcode non-existent directories.
14972 if test no != "$hardcode_direct" &&
14973 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14974 # have to relink, otherwise we might link with an installed library
14975 # when we should be linking with a yet-to-be-installed one
14976 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14977 test no != "$hardcode_minus_L"; then
14978 # Linking always hardcodes the temporary library directory.
14979 hardcode_action=relink
14980 else
14981 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14982 hardcode_action=immediate
14983 fi
14984 else
14985 # We cannot hardcode anything, or else we can only hardcode existing
14986 # directories.
14987 hardcode_action=unsupported
14988 fi
14989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14990 printf "%s\n" "$hardcode_action" >&6; }
14991
14992 if test relink = "$hardcode_action" ||
14993 test yes = "$inherit_rpath"; then
14994 # Fast installation is not supported
14995 enable_fast_install=no
14996 elif test yes = "$shlibpath_overrides_runpath" ||
14997 test no = "$enable_shared"; then
14998 # Fast installation is not necessary
14999 enable_fast_install=needless
15000 fi
15001
15002
15003
15004
15005
15006
15007 if test yes != "$enable_dlopen"; then
15008 enable_dlopen=unknown
15009 enable_dlopen_self=unknown
15010 enable_dlopen_self_static=unknown
15011 else
15012 lt_cv_dlopen=no
15013 lt_cv_dlopen_libs=
15014
15015 case $host_os in
15016 beos*)
15017 lt_cv_dlopen=load_add_on
15018 lt_cv_dlopen_libs=
15019 lt_cv_dlopen_self=yes
15020 ;;
15021
15022 mingw* | windows* | pw32* | cegcc*)
15023 lt_cv_dlopen=LoadLibrary
15024 lt_cv_dlopen_libs=
15025 ;;
15026
15027 cygwin*)
15028 lt_cv_dlopen=dlopen
15029 lt_cv_dlopen_libs=
15030 ;;
15031
15032 darwin*)
15033 # if libdl is installed we need to link against it
15034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15035 printf %s "checking for dlopen in -ldl... " >&6; }
15036 if test ${ac_cv_lib_dl_dlopen+y}
15037 then :
15038 printf %s "(cached) " >&6
15039 else case e in #(
15040 e) ac_check_lib_save_LIBS=$LIBS
15041 LIBS="-ldl $LIBS"
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15044
15045 /* Override any GCC internal prototype to avoid an error.
15046 Use char because int might match the return type of a GCC
15047 builtin and then its argument prototype would still apply.
15048 The 'extern "C"' is for builds by C++ compilers;
15049 although this is not generally supported in C code supporting it here
15050 has little cost and some practical benefit (sr 110532). */
15051 #ifdef __cplusplus
15052 extern "C"
15053 #endif
15054 char dlopen (void);
15055 int
15056 main (void)
15057 {
15058 return dlopen ();
15059 ;
15060 return 0;
15061 }
15062 _ACEOF
15063 if ac_fn_c_try_link "$LINENO"
15064 then :
15065 ac_cv_lib_dl_dlopen=yes
15066 else case e in #(
15067 e) ac_cv_lib_dl_dlopen=no ;;
15068 esac
15069 fi
15070 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15071 conftest$ac_exeext conftest.$ac_ext
15072 LIBS=$ac_check_lib_save_LIBS ;;
15073 esac
15074 fi
15075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15076 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15077 if test "x$ac_cv_lib_dl_dlopen" = xyes
15078 then :
15079 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15080 else case e in #(
15081 e)
15082 lt_cv_dlopen=dyld
15083 lt_cv_dlopen_libs=
15084 lt_cv_dlopen_self=yes
15085 ;;
15086 esac
15087 fi
15088
15089 ;;
15090
15091 tpf*)
15092 # Don't try to run any link tests for TPF. We know it's impossible
15093 # because TPF is a cross-compiler, and we know how we open DSOs.
15094 lt_cv_dlopen=dlopen
15095 lt_cv_dlopen_libs=
15096 lt_cv_dlopen_self=no
15097 ;;
15098
15099 *)
15100 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15101 if test "x$ac_cv_func_shl_load" = xyes
15102 then :
15103 lt_cv_dlopen=shl_load
15104 else case e in #(
15105 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15106 printf %s "checking for shl_load in -ldld... " >&6; }
15107 if test ${ac_cv_lib_dld_shl_load+y}
15108 then :
15109 printf %s "(cached) " >&6
15110 else case e in #(
15111 e) ac_check_lib_save_LIBS=$LIBS
15112 LIBS="-ldld $LIBS"
15113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114 /* end confdefs.h. */
15115
15116 /* Override any GCC internal prototype to avoid an error.
15117 Use char because int might match the return type of a GCC
15118 builtin and then its argument prototype would still apply.
15119 The 'extern "C"' is for builds by C++ compilers;
15120 although this is not generally supported in C code supporting it here
15121 has little cost and some practical benefit (sr 110532). */
15122 #ifdef __cplusplus
15123 extern "C"
15124 #endif
15125 char shl_load (void);
15126 int
15127 main (void)
15128 {
15129 return shl_load ();
15130 ;
15131 return 0;
15132 }
15133 _ACEOF
15134 if ac_fn_c_try_link "$LINENO"
15135 then :
15136 ac_cv_lib_dld_shl_load=yes
15137 else case e in #(
15138 e) ac_cv_lib_dld_shl_load=no ;;
15139 esac
15140 fi
15141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15142 conftest$ac_exeext conftest.$ac_ext
15143 LIBS=$ac_check_lib_save_LIBS ;;
15144 esac
15145 fi
15146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15147 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15148 if test "x$ac_cv_lib_dld_shl_load" = xyes
15149 then :
15150 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15151 else case e in #(
15152 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15153 if test "x$ac_cv_func_dlopen" = xyes
15154 then :
15155 lt_cv_dlopen=dlopen
15156 else case e in #(
15157 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15158 printf %s "checking for dlopen in -ldl... " >&6; }
15159 if test ${ac_cv_lib_dl_dlopen+y}
15160 then :
15161 printf %s "(cached) " >&6
15162 else case e in #(
15163 e) ac_check_lib_save_LIBS=$LIBS
15164 LIBS="-ldl $LIBS"
15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15167
15168 /* Override any GCC internal prototype to avoid an error.
15169 Use char because int might match the return type of a GCC
15170 builtin and then its argument prototype would still apply.
15171 The 'extern "C"' is for builds by C++ compilers;
15172 although this is not generally supported in C code supporting it here
15173 has little cost and some practical benefit (sr 110532). */
15174 #ifdef __cplusplus
15175 extern "C"
15176 #endif
15177 char dlopen (void);
15178 int
15179 main (void)
15180 {
15181 return dlopen ();
15182 ;
15183 return 0;
15184 }
15185 _ACEOF
15186 if ac_fn_c_try_link "$LINENO"
15187 then :
15188 ac_cv_lib_dl_dlopen=yes
15189 else case e in #(
15190 e) ac_cv_lib_dl_dlopen=no ;;
15191 esac
15192 fi
15193 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15194 conftest$ac_exeext conftest.$ac_ext
15195 LIBS=$ac_check_lib_save_LIBS ;;
15196 esac
15197 fi
15198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15199 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15200 if test "x$ac_cv_lib_dl_dlopen" = xyes
15201 then :
15202 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15203 else case e in #(
15204 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15205 printf %s "checking for dlopen in -lsvld... " >&6; }
15206 if test ${ac_cv_lib_svld_dlopen+y}
15207 then :
15208 printf %s "(cached) " >&6
15209 else case e in #(
15210 e) ac_check_lib_save_LIBS=$LIBS
15211 LIBS="-lsvld $LIBS"
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214
15215 /* Override any GCC internal prototype to avoid an error.
15216 Use char because int might match the return type of a GCC
15217 builtin and then its argument prototype would still apply.
15218 The 'extern "C"' is for builds by C++ compilers;
15219 although this is not generally supported in C code supporting it here
15220 has little cost and some practical benefit (sr 110532). */
15221 #ifdef __cplusplus
15222 extern "C"
15223 #endif
15224 char dlopen (void);
15225 int
15226 main (void)
15227 {
15228 return dlopen ();
15229 ;
15230 return 0;
15231 }
15232 _ACEOF
15233 if ac_fn_c_try_link "$LINENO"
15234 then :
15235 ac_cv_lib_svld_dlopen=yes
15236 else case e in #(
15237 e) ac_cv_lib_svld_dlopen=no ;;
15238 esac
15239 fi
15240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15241 conftest$ac_exeext conftest.$ac_ext
15242 LIBS=$ac_check_lib_save_LIBS ;;
15243 esac
15244 fi
15245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15246 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15247 if test "x$ac_cv_lib_svld_dlopen" = xyes
15248 then :
15249 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15250 else case e in #(
15251 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15252 printf %s "checking for dld_link in -ldld... " >&6; }
15253 if test ${ac_cv_lib_dld_dld_link+y}
15254 then :
15255 printf %s "(cached) " >&6
15256 else case e in #(
15257 e) ac_check_lib_save_LIBS=$LIBS
15258 LIBS="-ldld $LIBS"
15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15261
15262 /* Override any GCC internal prototype to avoid an error.
15263 Use char because int might match the return type of a GCC
15264 builtin and then its argument prototype would still apply.
15265 The 'extern "C"' is for builds by C++ compilers;
15266 although this is not generally supported in C code supporting it here
15267 has little cost and some practical benefit (sr 110532). */
15268 #ifdef __cplusplus
15269 extern "C"
15270 #endif
15271 char dld_link (void);
15272 int
15273 main (void)
15274 {
15275 return dld_link ();
15276 ;
15277 return 0;
15278 }
15279 _ACEOF
15280 if ac_fn_c_try_link "$LINENO"
15281 then :
15282 ac_cv_lib_dld_dld_link=yes
15283 else case e in #(
15284 e) ac_cv_lib_dld_dld_link=no ;;
15285 esac
15286 fi
15287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15288 conftest$ac_exeext conftest.$ac_ext
15289 LIBS=$ac_check_lib_save_LIBS ;;
15290 esac
15291 fi
15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15293 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15294 if test "x$ac_cv_lib_dld_dld_link" = xyes
15295 then :
15296 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15297 fi
15298
15299 ;;
15300 esac
15301 fi
15302
15303 ;;
15304 esac
15305 fi
15306
15307 ;;
15308 esac
15309 fi
15310
15311 ;;
15312 esac
15313 fi
15314
15315 ;;
15316 esac
15317 fi
15318
15319 ;;
15320 esac
15321
15322 if test no = "$lt_cv_dlopen"; then
15323 enable_dlopen=no
15324 else
15325 enable_dlopen=yes
15326 fi
15327
15328 case $lt_cv_dlopen in
15329 dlopen)
15330 save_CPPFLAGS=$CPPFLAGS
15331 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15332
15333 save_LDFLAGS=$LDFLAGS
15334 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15335
15336 save_LIBS=$LIBS
15337 LIBS="$lt_cv_dlopen_libs $LIBS"
15338
15339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15340 printf %s "checking whether a program can dlopen itself... " >&6; }
15341 if test ${lt_cv_dlopen_self+y}
15342 then :
15343 printf %s "(cached) " >&6
15344 else case e in #(
15345 e) if test yes = "$cross_compiling"; then :
15346 lt_cv_dlopen_self=cross
15347 else
15348 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15349 lt_status=$lt_dlunknown
15350 cat > conftest.$ac_ext <<_LT_EOF
15351 #line $LINENO "configure"
15352 #include "confdefs.h"
15353
15354 #if HAVE_DLFCN_H
15355 #include <dlfcn.h>
15356 #endif
15357
15358 #include <stdio.h>
15359
15360 #ifdef RTLD_GLOBAL
15361 # define LT_DLGLOBAL RTLD_GLOBAL
15362 #else
15363 # ifdef DL_GLOBAL
15364 # define LT_DLGLOBAL DL_GLOBAL
15365 # else
15366 # define LT_DLGLOBAL 0
15367 # endif
15368 #endif
15369
15370 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15371 find out it does not work in some platform. */
15372 #ifndef LT_DLLAZY_OR_NOW
15373 # ifdef RTLD_LAZY
15374 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15375 # else
15376 # ifdef DL_LAZY
15377 # define LT_DLLAZY_OR_NOW DL_LAZY
15378 # else
15379 # ifdef RTLD_NOW
15380 # define LT_DLLAZY_OR_NOW RTLD_NOW
15381 # else
15382 # ifdef DL_NOW
15383 # define LT_DLLAZY_OR_NOW DL_NOW
15384 # else
15385 # define LT_DLLAZY_OR_NOW 0
15386 # endif
15387 # endif
15388 # endif
15389 # endif
15390 #endif
15391
15392 /* When -fvisibility=hidden is used, assume the code has been annotated
15393 correspondingly for the symbols needed. */
15394 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15395 int fnord (void) __attribute__((visibility("default")));
15396 #endif
15397
15398 int fnord (void) { return 42; }
15399 int main (void)
15400 {
15401 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15402 int status = $lt_dlunknown;
15403
15404 if (self)
15405 {
15406 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15407 else
15408 {
15409 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15410 else puts (dlerror ());
15411 }
15412 /* dlclose (self); */
15413 }
15414 else
15415 puts (dlerror ());
15416
15417 return status;
15418 }
15419 _LT_EOF
15420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15421 (eval $ac_link) 2>&5
15422 ac_status=$?
15423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15424 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15425 (./conftest; exit; ) >&5 2>/dev/null
15426 lt_status=$?
15427 case x$lt_status in
15428 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15429 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15430 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15431 esac
15432 else :
15433 # compilation failed
15434 lt_cv_dlopen_self=no
15435 fi
15436 fi
15437 rm -fr conftest*
15438
15439 ;;
15440 esac
15441 fi
15442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15443 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15444
15445 if test yes = "$lt_cv_dlopen_self"; then
15446 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15448 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15449 if test ${lt_cv_dlopen_self_static+y}
15450 then :
15451 printf %s "(cached) " >&6
15452 else case e in #(
15453 e) if test yes = "$cross_compiling"; then :
15454 lt_cv_dlopen_self_static=cross
15455 else
15456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15457 lt_status=$lt_dlunknown
15458 cat > conftest.$ac_ext <<_LT_EOF
15459 #line $LINENO "configure"
15460 #include "confdefs.h"
15461
15462 #if HAVE_DLFCN_H
15463 #include <dlfcn.h>
15464 #endif
15465
15466 #include <stdio.h>
15467
15468 #ifdef RTLD_GLOBAL
15469 # define LT_DLGLOBAL RTLD_GLOBAL
15470 #else
15471 # ifdef DL_GLOBAL
15472 # define LT_DLGLOBAL DL_GLOBAL
15473 # else
15474 # define LT_DLGLOBAL 0
15475 # endif
15476 #endif
15477
15478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15479 find out it does not work in some platform. */
15480 #ifndef LT_DLLAZY_OR_NOW
15481 # ifdef RTLD_LAZY
15482 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15483 # else
15484 # ifdef DL_LAZY
15485 # define LT_DLLAZY_OR_NOW DL_LAZY
15486 # else
15487 # ifdef RTLD_NOW
15488 # define LT_DLLAZY_OR_NOW RTLD_NOW
15489 # else
15490 # ifdef DL_NOW
15491 # define LT_DLLAZY_OR_NOW DL_NOW
15492 # else
15493 # define LT_DLLAZY_OR_NOW 0
15494 # endif
15495 # endif
15496 # endif
15497 # endif
15498 #endif
15499
15500 /* When -fvisibility=hidden is used, assume the code has been annotated
15501 correspondingly for the symbols needed. */
15502 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15503 int fnord (void) __attribute__((visibility("default")));
15504 #endif
15505
15506 int fnord (void) { return 42; }
15507 int main (void)
15508 {
15509 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15510 int status = $lt_dlunknown;
15511
15512 if (self)
15513 {
15514 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15515 else
15516 {
15517 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15518 else puts (dlerror ());
15519 }
15520 /* dlclose (self); */
15521 }
15522 else
15523 puts (dlerror ());
15524
15525 return status;
15526 }
15527 _LT_EOF
15528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15529 (eval $ac_link) 2>&5
15530 ac_status=$?
15531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15532 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15533 (./conftest; exit; ) >&5 2>/dev/null
15534 lt_status=$?
15535 case x$lt_status in
15536 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15537 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15538 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15539 esac
15540 else :
15541 # compilation failed
15542 lt_cv_dlopen_self_static=no
15543 fi
15544 fi
15545 rm -fr conftest*
15546
15547 ;;
15548 esac
15549 fi
15550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15551 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15552 fi
15553
15554 CPPFLAGS=$save_CPPFLAGS
15555 LDFLAGS=$save_LDFLAGS
15556 LIBS=$save_LIBS
15557 ;;
15558 esac
15559
15560 case $lt_cv_dlopen_self in
15561 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15562 *) enable_dlopen_self=unknown ;;
15563 esac
15564
15565 case $lt_cv_dlopen_self_static in
15566 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15567 *) enable_dlopen_self_static=unknown ;;
15568 esac
15569 fi
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587 striplib=
15588 old_striplib=
15589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15590 printf %s "checking whether stripping libraries is possible... " >&6; }
15591 if test -z "$STRIP"; then
15592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15593 printf "%s\n" "no" >&6; }
15594 else
15595 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15596 old_striplib="$STRIP --strip-debug"
15597 striplib="$STRIP --strip-unneeded"
15598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15599 printf "%s\n" "yes" >&6; }
15600 else
15601 case $host_os in
15602 darwin*)
15603 # FIXME - insert some real tests, host_os isn't really good enough
15604 striplib="$STRIP -x"
15605 old_striplib="$STRIP -S"
15606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15607 printf "%s\n" "yes" >&6; }
15608 ;;
15609 freebsd*)
15610 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15611 old_striplib="$STRIP --strip-debug"
15612 striplib="$STRIP --strip-unneeded"
15613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15614 printf "%s\n" "yes" >&6; }
15615 else
15616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15617 printf "%s\n" "no" >&6; }
15618 fi
15619 ;;
15620 *)
15621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15622 printf "%s\n" "no" >&6; }
15623 ;;
15624 esac
15625 fi
15626 fi
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639 # Report what library types will actually be built
15640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15641 printf %s "checking if libtool supports shared libraries... " >&6; }
15642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15643 printf "%s\n" "$can_build_shared" >&6; }
15644
15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15646 printf %s "checking whether to build shared libraries... " >&6; }
15647 test no = "$can_build_shared" && enable_shared=no
15648
15649 # On AIX, shared libraries and static libraries use the same namespace, and
15650 # are all built from PIC.
15651 case $host_os in
15652 aix3*)
15653 test yes = "$enable_shared" && enable_static=no
15654 if test -n "$RANLIB"; then
15655 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15656 postinstall_cmds='$RANLIB $lib'
15657 fi
15658 ;;
15659
15660 aix[4-9]*)
15661 if test ia64 != "$host_cpu"; then
15662 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15663 yes,aix,yes) ;; # shared object as lib.so file only
15664 yes,svr4,*) ;; # shared object as lib.so archive member only
15665 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15666 esac
15667 fi
15668 ;;
15669 esac
15670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15671 printf "%s\n" "$enable_shared" >&6; }
15672
15673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15674 printf %s "checking whether to build static libraries... " >&6; }
15675 # Make sure either enable_shared or enable_static is yes.
15676 test yes = "$enable_shared" || enable_static=yes
15677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15678 printf "%s\n" "$enable_static" >&6; }
15679
15680
15681
15682
15683 fi
15684 ac_ext=c
15685 ac_cpp='$CPP $CPPFLAGS'
15686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15689
15690 CC=$lt_save_CC
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706 ac_config_commands="$ac_config_commands libtool"
15707
15708
15709
15710
15711 # Only expand once:
15712
15713
15714 # (end lt_init)
15715 # Check whether --enable-largefile was given.
15716 if test ${enable_largefile+y}
15717 then :
15718 enableval=$enable_largefile;
15719 fi
15720 if test "$enable_largefile,$enable_year2038" != no,no
15721 then :
15722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
15723 printf %s "checking for $CC option to enable large file support... " >&6; }
15724 if test ${ac_cv_sys_largefile_opts+y}
15725 then :
15726 printf %s "(cached) " >&6
15727 else case e in #(
15728 e) ac_save_CC="$CC"
15729 ac_opt_found=no
15730 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
15731 if test x"$ac_opt" != x"none needed"
15732 then :
15733 CC="$ac_save_CC $ac_opt"
15734 fi
15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736 /* end confdefs.h. */
15737 #include <sys/types.h>
15738 #ifndef FTYPE
15739 # define FTYPE off_t
15740 #endif
15741 /* Check that FTYPE can represent 2**63 - 1 correctly.
15742 We can't simply define LARGE_FTYPE to be 9223372036854775807,
15743 since some C++ compilers masquerading as C compilers
15744 incorrectly reject 9223372036854775807. */
15745 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
15746 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
15747 && LARGE_FTYPE % 2147483647 == 1)
15748 ? 1 : -1];
15749 int
15750 main (void)
15751 {
15752
15753 ;
15754 return 0;
15755 }
15756 _ACEOF
15757 if ac_fn_c_try_compile "$LINENO"
15758 then :
15759 if test x"$ac_opt" = x"none needed"
15760 then :
15761 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
15762 CC="$CC -DFTYPE=ino_t"
15763 if ac_fn_c_try_compile "$LINENO"
15764 then :
15765
15766 else case e in #(
15767 e) CC="$CC -D_FILE_OFFSET_BITS=64"
15768 if ac_fn_c_try_compile "$LINENO"
15769 then :
15770 ac_opt='-D_FILE_OFFSET_BITS=64'
15771 fi
15772 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
15773 esac
15774 fi
15775 rm -f core conftest.err conftest.$ac_objext conftest.beam
15776 fi
15777 ac_cv_sys_largefile_opts=$ac_opt
15778 ac_opt_found=yes
15779 fi
15780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15781 test $ac_opt_found = no || break
15782 done
15783 CC="$ac_save_CC"
15784
15785 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
15786 esac
15787 fi
15788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
15789 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
15790
15791 ac_have_largefile=yes
15792 case $ac_cv_sys_largefile_opts in #(
15793 "none needed") :
15794 ;; #(
15795 "supported through gnulib") :
15796 ;; #(
15797 "support not detected") :
15798 ac_have_largefile=no ;; #(
15799 "-D_FILE_OFFSET_BITS=64") :
15800
15801 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
15802 ;; #(
15803 "-D_LARGE_FILES=1") :
15804
15805 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
15806 ;; #(
15807 "-n32") :
15808 CC="$CC -n32" ;; #(
15809 *) :
15810 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
15811 esac
15812
15813 if test "$enable_year2038" != no
15814 then :
15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
15816 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
15817 if test ${ac_cv_sys_year2038_opts+y}
15818 then :
15819 printf %s "(cached) " >&6
15820 else case e in #(
15821 e) ac_save_CPPFLAGS="$CPPFLAGS"
15822 ac_opt_found=no
15823 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
15824 if test x"$ac_opt" != x"none needed"
15825 then :
15826 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
15827 fi
15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15830
15831 #include <time.h>
15832 /* Check that time_t can represent 2**32 - 1 correctly. */
15833 #define LARGE_TIME_T \\
15834 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15835 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15836 && LARGE_TIME_T % 65537 == 0)
15837 ? 1 : -1];
15838
15839 int
15840 main (void)
15841 {
15842
15843 ;
15844 return 0;
15845 }
15846 _ACEOF
15847 if ac_fn_c_try_compile "$LINENO"
15848 then :
15849 ac_cv_sys_year2038_opts="$ac_opt"
15850 ac_opt_found=yes
15851 fi
15852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15853 test $ac_opt_found = no || break
15854 done
15855 CPPFLAGS="$ac_save_CPPFLAGS"
15856 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15857 esac
15858 fi
15859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15860 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15861
15862 ac_have_year2038=yes
15863 case $ac_cv_sys_year2038_opts in #(
15864 "none needed") :
15865 ;; #(
15866 "support not detected") :
15867 ac_have_year2038=no ;; #(
15868 "-D_TIME_BITS=64") :
15869
15870 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15871 ;; #(
15872 "-D__MINGW_USE_VC2005_COMPAT") :
15873
15874 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15875 ;; #(
15876 "-U_USE_32_BIT_TIME_T"*) :
15877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15878 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15879 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15880 will stop working after mid-January 2038. Remove
15881 _USE_32BIT_TIME_T from the compiler flags.
15882 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15883 *) :
15884 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15885 esac
15886
15887 fi
15888
15889 fi
15890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15891 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15892 if test ${ac_cv_func_fseeko_ftello+y}
15893 then :
15894 printf %s "(cached) " >&6
15895 else case e in #(
15896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898
15899 #if defined __hpux && !defined _LARGEFILE_SOURCE
15900 # include <limits.h>
15901 # if LONG_MAX >> 31 == 0
15902 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15903 # endif
15904 #endif
15905 #include <sys/types.h> /* for off_t */
15906 #include <stdio.h>
15907
15908 int
15909 main (void)
15910 {
15911
15912 int (*fp1) (FILE *, off_t, int) = fseeko;
15913 off_t (*fp2) (FILE *) = ftello;
15914 return fseeko (stdin, 0, 0)
15915 && fp1 (stdin, 0, 0)
15916 && ftello (stdin) >= 0
15917 && fp2 (stdin) >= 0;
15918
15919 ;
15920 return 0;
15921 }
15922 _ACEOF
15923 if ac_fn_c_try_compile "$LINENO"
15924 then :
15925 ac_cv_func_fseeko_ftello=yes
15926 else case e in #(
15927 e) ac_save_CPPFLAGS="$CPPFLAGS"
15928 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930 /* end confdefs.h. */
15931
15932 #if defined __hpux && !defined _LARGEFILE_SOURCE
15933 # include <limits.h>
15934 # if LONG_MAX >> 31 == 0
15935 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15936 # endif
15937 #endif
15938 #include <sys/types.h> /* for off_t */
15939 #include <stdio.h>
15940
15941 int
15942 main (void)
15943 {
15944
15945 int (*fp1) (FILE *, off_t, int) = fseeko;
15946 off_t (*fp2) (FILE *) = ftello;
15947 return fseeko (stdin, 0, 0)
15948 && fp1 (stdin, 0, 0)
15949 && ftello (stdin) >= 0
15950 && fp2 (stdin) >= 0;
15951
15952 ;
15953 return 0;
15954 }
15955 _ACEOF
15956 if ac_fn_c_try_compile "$LINENO"
15957 then :
15958 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15959 else case e in #(
15960 e) ac_cv_func_fseeko_ftello=no ;;
15961 esac
15962 fi
15963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15964 esac
15965 fi
15966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15967 esac
15968 fi
15969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15970 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15971 if test "$ac_cv_func_fseeko_ftello" != no
15972 then :
15973
15974 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15975
15976 fi
15977 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15978 then :
15979
15980 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15981
15982 fi
15983
15984 ac_header_dirent=no
15985 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15986 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15988 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15989 if eval test \${$as_ac_Header+y}
15990 then :
15991 printf %s "(cached) " >&6
15992 else case e in #(
15993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
15995 #include <sys/types.h>
15996 #include <$ac_hdr>
15997
15998 int
15999 main (void)
16000 {
16001 if ((DIR *) 0)
16002 return 0;
16003 ;
16004 return 0;
16005 }
16006 _ACEOF
16007 if ac_fn_c_try_compile "$LINENO"
16008 then :
16009 eval "$as_ac_Header=yes"
16010 else case e in #(
16011 e) eval "$as_ac_Header=no" ;;
16012 esac
16013 fi
16014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16015 esac
16016 fi
16017 eval ac_res=\$$as_ac_Header
16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16019 printf "%s\n" "$ac_res" >&6; }
16020 if eval test \"x\$"$as_ac_Header"\" = x"yes"
16021 then :
16022 cat >>confdefs.h <<_ACEOF
16023 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
16024 _ACEOF
16025
16026 ac_header_dirent=$ac_hdr; break
16027 fi
16028
16029 done
16030 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16031 if test $ac_header_dirent = dirent.h; then
16032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16033 printf %s "checking for library containing opendir... " >&6; }
16034 if test ${ac_cv_search_opendir+y}
16035 then :
16036 printf %s "(cached) " >&6
16037 else case e in #(
16038 e) ac_func_search_save_LIBS=$LIBS
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h. */
16041
16042 /* Override any GCC internal prototype to avoid an error.
16043 Use char because int might match the return type of a GCC
16044 builtin and then its argument prototype would still apply.
16045 The 'extern "C"' is for builds by C++ compilers;
16046 although this is not generally supported in C code supporting it here
16047 has little cost and some practical benefit (sr 110532). */
16048 #ifdef __cplusplus
16049 extern "C"
16050 #endif
16051 char opendir (void);
16052 int
16053 main (void)
16054 {
16055 return opendir ();
16056 ;
16057 return 0;
16058 }
16059 _ACEOF
16060 for ac_lib in '' dir
16061 do
16062 if test -z "$ac_lib"; then
16063 ac_res="none required"
16064 else
16065 ac_res=-l$ac_lib
16066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16067 fi
16068 if ac_fn_c_try_link "$LINENO"
16069 then :
16070 ac_cv_search_opendir=$ac_res
16071 fi
16072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16073 conftest$ac_exeext
16074 if test ${ac_cv_search_opendir+y}
16075 then :
16076 break
16077 fi
16078 done
16079 if test ${ac_cv_search_opendir+y}
16080 then :
16081
16082 else case e in #(
16083 e) ac_cv_search_opendir=no ;;
16084 esac
16085 fi
16086 rm conftest.$ac_ext
16087 LIBS=$ac_func_search_save_LIBS ;;
16088 esac
16089 fi
16090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16091 printf "%s\n" "$ac_cv_search_opendir" >&6; }
16092 ac_res=$ac_cv_search_opendir
16093 if test "$ac_res" != no
16094 then :
16095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16096
16097 fi
16098
16099 else
16100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16101 printf %s "checking for library containing opendir... " >&6; }
16102 if test ${ac_cv_search_opendir+y}
16103 then :
16104 printf %s "(cached) " >&6
16105 else case e in #(
16106 e) ac_func_search_save_LIBS=$LIBS
16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h. */
16109
16110 /* Override any GCC internal prototype to avoid an error.
16111 Use char because int might match the return type of a GCC
16112 builtin and then its argument prototype would still apply.
16113 The 'extern "C"' is for builds by C++ compilers;
16114 although this is not generally supported in C code supporting it here
16115 has little cost and some practical benefit (sr 110532). */
16116 #ifdef __cplusplus
16117 extern "C"
16118 #endif
16119 char opendir (void);
16120 int
16121 main (void)
16122 {
16123 return opendir ();
16124 ;
16125 return 0;
16126 }
16127 _ACEOF
16128 for ac_lib in '' x
16129 do
16130 if test -z "$ac_lib"; then
16131 ac_res="none required"
16132 else
16133 ac_res=-l$ac_lib
16134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16135 fi
16136 if ac_fn_c_try_link "$LINENO"
16137 then :
16138 ac_cv_search_opendir=$ac_res
16139 fi
16140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16141 conftest$ac_exeext
16142 if test ${ac_cv_search_opendir+y}
16143 then :
16144 break
16145 fi
16146 done
16147 if test ${ac_cv_search_opendir+y}
16148 then :
16149
16150 else case e in #(
16151 e) ac_cv_search_opendir=no ;;
16152 esac
16153 fi
16154 rm conftest.$ac_ext
16155 LIBS=$ac_func_search_save_LIBS ;;
16156 esac
16157 fi
16158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16159 printf "%s\n" "$ac_cv_search_opendir" >&6; }
16160 ac_res=$ac_cv_search_opendir
16161 if test "$ac_res" != no
16162 then :
16163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16164
16165 fi
16166
16167 fi
16168
16169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
16170 printf %s "checking whether closedir returns void... " >&6; }
16171 if test ${ac_cv_func_closedir_void+y}
16172 then :
16173 printf %s "(cached) " >&6
16174 else case e in #(
16175 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h. */
16177
16178 #include <$ac_header_dirent>
16179
16180 int
16181 main (void)
16182 {
16183
16184 return closedir(0);
16185
16186 ;
16187 return 0;
16188 }
16189 _ACEOF
16190 if ac_fn_c_try_compile "$LINENO"
16191 then :
16192 ac_cv_func_closedir_void=no
16193 else case e in #(
16194 e) ac_cv_func_closedir_void=yes ;;
16195 esac
16196 fi
16197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16198 esac
16199 fi
16200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
16201 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
16202 if test $ac_cv_func_closedir_void = yes; then
16203
16204 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
16205
16206 fi
16207
16208 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
16209 if test "x$ac_cv_header_assert_h" = xyes
16210 then :
16211 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
16212
16213 fi
16214 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
16215 if test "x$ac_cv_header_float_h" = xyes
16216 then :
16217 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
16218
16219 fi
16220 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
16221 if test "x$ac_cv_header_limits_h" = xyes
16222 then :
16223 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
16224
16225 fi
16226 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
16227 if test "x$ac_cv_header_pwd_h" = xyes
16228 then :
16229 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
16230
16231 fi
16232 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16233 if test "x$ac_cv_header_stdlib_h" = xyes
16234 then :
16235 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
16236
16237 fi
16238 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
16239 if test "x$ac_cv_header_sys_param_h" = xyes
16240 then :
16241 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
16242
16243 fi
16244
16245 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
16246 if test "x$ac_cv_func_putenv" = xyes
16247 then :
16248 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
16249
16250 fi
16251
16252 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
16253 if test "x$ac_cv_func_getcwd" = xyes
16254 then :
16255 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
16256
16257 fi
16258 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
16259 if test "x$ac_cv_func_memcmp" = xyes
16260 then :
16261 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
16262
16263 fi
16264 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
16265 if test "x$ac_cv_func_memcpy" = xyes
16266 then :
16267 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
16268
16269 fi
16270 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
16271 if test "x$ac_cv_func_mkstemp" = xyes
16272 then :
16273 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
16274
16275 fi
16276 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
16277 if test "x$ac_cv_func_mktemp" = xyes
16278 then :
16279 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
16280
16281 fi
16282 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
16283 if test "x$ac_cv_func_strchr" = xyes
16284 then :
16285 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
16286
16287 fi
16288 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
16289 if test "x$ac_cv_func_strrchr" = xyes
16290 then :
16291 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
16292
16293 fi
16294
16295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16296 printf %s "checking for an ANSI C-conforming const... " >&6; }
16297 if test ${ac_cv_c_const+y}
16298 then :
16299 printf %s "(cached) " >&6
16300 else case e in #(
16301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302 /* end confdefs.h. */
16303
16304 int
16305 main (void)
16306 {
16307
16308 #ifndef __cplusplus
16309 /* Ultrix mips cc rejects this sort of thing. */
16310 typedef int charset[2];
16311 const charset cs = { 0, 0 };
16312 /* SunOS 4.1.1 cc rejects this. */
16313 char const *const *pcpcc;
16314 char **ppc;
16315 /* NEC SVR4.0.2 mips cc rejects this. */
16316 struct point {int x, y;};
16317 static struct point const zero = {0,0};
16318 /* IBM XL C 1.02.0.0 rejects this.
16319 It does not let you subtract one const X* pointer from another in
16320 an arm of an if-expression whose if-part is not a constant
16321 expression */
16322 const char *g = "string";
16323 pcpcc = &g + (g ? g-g : 0);
16324 /* HPUX 7.0 cc rejects these. */
16325 ++pcpcc;
16326 ppc = (char**) pcpcc;
16327 pcpcc = (char const *const *) ppc;
16328 { /* SCO 3.2v4 cc rejects this sort of thing. */
16329 char tx;
16330 char *t = &tx;
16331 char const *s = 0 ? (char *) 0 : (char const *) 0;
16332
16333 *t++ = 0;
16334 if (s) return 0;
16335 }
16336 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16337 int x[] = {25, 17};
16338 const int *foo = &x[0];
16339 ++foo;
16340 }
16341 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16342 typedef const int *iptr;
16343 iptr p = 0;
16344 ++p;
16345 }
16346 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
16347 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16348 struct s { int j; const int *ap[3]; } bx;
16349 struct s *b = &bx; b->j = 5;
16350 }
16351 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16352 const int foo = 10;
16353 if (!foo) return 0;
16354 }
16355 return !cs[0] && !zero.x;
16356 #endif
16357
16358 ;
16359 return 0;
16360 }
16361 _ACEOF
16362 if ac_fn_c_try_compile "$LINENO"
16363 then :
16364 ac_cv_c_const=yes
16365 else case e in #(
16366 e) ac_cv_c_const=no ;;
16367 esac
16368 fi
16369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16370 esac
16371 fi
16372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16373 printf "%s\n" "$ac_cv_c_const" >&6; }
16374 if test $ac_cv_c_const = no; then
16375
16376 printf "%s\n" "#define const /**/" >>confdefs.h
16377
16378 fi
16379
16380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16381 printf %s "checking for inline... " >&6; }
16382 if test ${ac_cv_c_inline+y}
16383 then :
16384 printf %s "(cached) " >&6
16385 else case e in #(
16386 e) ac_cv_c_inline=no
16387 for ac_kw in inline __inline__ __inline; do
16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h. */
16390 #ifndef __cplusplus
16391 typedef int foo_t;
16392 static $ac_kw foo_t static_foo (void) {return 0; }
16393 $ac_kw foo_t foo (void) {return 0; }
16394 #endif
16395
16396 _ACEOF
16397 if ac_fn_c_try_compile "$LINENO"
16398 then :
16399 ac_cv_c_inline=$ac_kw
16400 fi
16401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16402 test "$ac_cv_c_inline" != no && break
16403 done
16404 ;;
16405 esac
16406 fi
16407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16408 printf "%s\n" "$ac_cv_c_inline" >&6; }
16409
16410 case $ac_cv_c_inline in
16411 inline | yes) ;;
16412 *)
16413 case $ac_cv_c_inline in
16414 no) ac_val=;;
16415 *) ac_val=$ac_cv_c_inline;;
16416 esac
16417 cat >>confdefs.h <<_ACEOF
16418 #ifndef __cplusplus
16419 #define inline $ac_val
16420 #endif
16421 _ACEOF
16422 ;;
16423 esac
16424
16425 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16426 if test "x$ac_cv_type_size_t" = xyes
16427 then :
16428
16429 else case e in #(
16430 e)
16431 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
16432 ;;
16433 esac
16434 fi
16435
16436 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
16437 case $ac_cv_c_int64_t in #(
16438 no|yes) ;; #(
16439 *)
16440
16441 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
16442 ;;
16443 esac
16444
16445 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
16446 case $ac_cv_c_uint64_t in #(
16447 no|yes) ;; #(
16448 *)
16449
16450 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
16451
16452
16453 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
16454 ;;
16455 esac
16456
16457 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
16458 *':no:'*) :
16459 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
16460 *) :
16461 ;;
16462 esac
16463 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
16464 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16465 if test "x$ac_cv_have_decl_isascii" = xyes
16466 then :
16467 ac_have_decl=1
16468 else case e in #(
16469 e) ac_have_decl=0 ;;
16470 esac
16471 fi
16472 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
16473
16474 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
16475 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
16476 then :
16477
16478 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
16479
16480
16481 fi
16482
16483
16484
16485 LCDF_TYPETOOLS_VERSION=2.110
16486
16487
16488 ac_config_headers="$ac_config_headers autoconf.h"
16489
16490
16491
16492
16493
16494
16495
16496
16497 ac_ext=cpp
16498 ac_cpp='$CXXCPP $CPPFLAGS'
16499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16502 if test -z "$CXX"; then
16503 if test -n "$CCC"; then
16504 CXX=$CCC
16505 else
16506 if test -n "$ac_tool_prefix"; then
16507 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
16508 do
16509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16510 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16512 printf %s "checking for $ac_word... " >&6; }
16513 if test ${ac_cv_prog_CXX+y}
16514 then :
16515 printf %s "(cached) " >&6
16516 else case e in #(
16517 e) if test -n "$CXX"; then
16518 ac_cv_prog_CXX="$CXX" # Let the user override the test.
16519 else
16520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16521 for as_dir in $PATH
16522 do
16523 IFS=$as_save_IFS
16524 case $as_dir in #(((
16525 '') as_dir=./ ;;
16526 */) ;;
16527 *) as_dir=$as_dir/ ;;
16528 esac
16529 for ac_exec_ext in '' $ac_executable_extensions; do
16530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16531 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16533 break 2
16534 fi
16535 done
16536 done
16537 IFS=$as_save_IFS
16538
16539 fi ;;
16540 esac
16541 fi
16542 CXX=$ac_cv_prog_CXX
16543 if test -n "$CXX"; then
16544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
16545 printf "%s\n" "$CXX" >&6; }
16546 else
16547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16548 printf "%s\n" "no" >&6; }
16549 fi
16550
16551
16552 test -n "$CXX" && break
16553 done
16554 fi
16555 if test -z "$CXX"; then
16556 ac_ct_CXX=$CXX
16557 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
16558 do
16559 # Extract the first word of "$ac_prog", so it can be a program name with args.
16560 set dummy $ac_prog; ac_word=$2
16561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16562 printf %s "checking for $ac_word... " >&6; }
16563 if test ${ac_cv_prog_ac_ct_CXX+y}
16564 then :
16565 printf %s "(cached) " >&6
16566 else case e in #(
16567 e) if test -n "$ac_ct_CXX"; then
16568 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16569 else
16570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16571 for as_dir in $PATH
16572 do
16573 IFS=$as_save_IFS
16574 case $as_dir in #(((
16575 '') as_dir=./ ;;
16576 */) ;;
16577 *) as_dir=$as_dir/ ;;
16578 esac
16579 for ac_exec_ext in '' $ac_executable_extensions; do
16580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16581 ac_cv_prog_ac_ct_CXX="$ac_prog"
16582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16583 break 2
16584 fi
16585 done
16586 done
16587 IFS=$as_save_IFS
16588
16589 fi ;;
16590 esac
16591 fi
16592 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16593 if test -n "$ac_ct_CXX"; then
16594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
16595 printf "%s\n" "$ac_ct_CXX" >&6; }
16596 else
16597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16598 printf "%s\n" "no" >&6; }
16599 fi
16600
16601
16602 test -n "$ac_ct_CXX" && break
16603 done
16604
16605 if test "x$ac_ct_CXX" = x; then
16606 CXX="g++"
16607 else
16608 case $cross_compiling:$ac_tool_warned in
16609 yes:)
16610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16611 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16612 ac_tool_warned=yes ;;
16613 esac
16614 CXX=$ac_ct_CXX
16615 fi
16616 fi
16617
16618 fi
16619 fi
16620 # Provide some information about the compiler.
16621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
16622 set X $ac_compile
16623 ac_compiler=$2
16624 for ac_option in --version -v -V -qversion; do
16625 { { ac_try="$ac_compiler $ac_option >&5"
16626 case "(($ac_try" in
16627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628 *) ac_try_echo=$ac_try;;
16629 esac
16630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16631 printf "%s\n" "$ac_try_echo"; } >&5
16632 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16633 ac_status=$?
16634 if test -s conftest.err; then
16635 sed '10a\
16636 ... rest of stderr output deleted ...
16637 10q' conftest.err >conftest.er1
16638 cat conftest.er1 >&5
16639 fi
16640 rm -f conftest.er1 conftest.err
16641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16642 test $ac_status = 0; }
16643 done
16644
16645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
16646 printf %s "checking whether the compiler supports GNU C++... " >&6; }
16647 if test ${ac_cv_cxx_compiler_gnu+y}
16648 then :
16649 printf %s "(cached) " >&6
16650 else case e in #(
16651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16653
16654 int
16655 main (void)
16656 {
16657 #ifndef __GNUC__
16658 choke me
16659 #endif
16660
16661 ;
16662 return 0;
16663 }
16664 _ACEOF
16665 if ac_fn_cxx_try_compile "$LINENO"
16666 then :
16667 ac_compiler_gnu=yes
16668 else case e in #(
16669 e) ac_compiler_gnu=no ;;
16670 esac
16671 fi
16672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16673 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16674 ;;
16675 esac
16676 fi
16677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
16678 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
16679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16680
16681 if test $ac_compiler_gnu = yes; then
16682 GXX=yes
16683 else
16684 GXX=
16685 fi
16686 ac_test_CXXFLAGS=${CXXFLAGS+y}
16687 ac_save_CXXFLAGS=$CXXFLAGS
16688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
16689 printf %s "checking whether $CXX accepts -g... " >&6; }
16690 if test ${ac_cv_prog_cxx_g+y}
16691 then :
16692 printf %s "(cached) " >&6
16693 else case e in #(
16694 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16695 ac_cxx_werror_flag=yes
16696 ac_cv_prog_cxx_g=no
16697 CXXFLAGS="-g"
16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h. */
16700
16701 int
16702 main (void)
16703 {
16704
16705 ;
16706 return 0;
16707 }
16708 _ACEOF
16709 if ac_fn_cxx_try_compile "$LINENO"
16710 then :
16711 ac_cv_prog_cxx_g=yes
16712 else case e in #(
16713 e) CXXFLAGS=""
16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715 /* end confdefs.h. */
16716
16717 int
16718 main (void)
16719 {
16720
16721 ;
16722 return 0;
16723 }
16724 _ACEOF
16725 if ac_fn_cxx_try_compile "$LINENO"
16726 then :
16727
16728 else case e in #(
16729 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16730 CXXFLAGS="-g"
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16733
16734 int
16735 main (void)
16736 {
16737
16738 ;
16739 return 0;
16740 }
16741 _ACEOF
16742 if ac_fn_cxx_try_compile "$LINENO"
16743 then :
16744 ac_cv_prog_cxx_g=yes
16745 fi
16746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16747 esac
16748 fi
16749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16750 esac
16751 fi
16752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16753 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
16754 esac
16755 fi
16756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
16757 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
16758 if test $ac_test_CXXFLAGS; then
16759 CXXFLAGS=$ac_save_CXXFLAGS
16760 elif test $ac_cv_prog_cxx_g = yes; then
16761 if test "$GXX" = yes; then
16762 CXXFLAGS="-g -O2"
16763 else
16764 CXXFLAGS="-g"
16765 fi
16766 else
16767 if test "$GXX" = yes; then
16768 CXXFLAGS="-O2"
16769 else
16770 CXXFLAGS=
16771 fi
16772 fi
16773 ac_prog_cxx_stdcxx=no
16774 if test x$ac_prog_cxx_stdcxx = xno
16775 then :
16776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
16777 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
16778 if test ${ac_cv_prog_cxx_cxx11+y}
16779 then :
16780 printf %s "(cached) " >&6
16781 else case e in #(
16782 e) ac_cv_prog_cxx_cxx11=no
16783 ac_save_CXX=$CXX
16784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16785 /* end confdefs.h. */
16786 $ac_cxx_conftest_cxx11_program
16787 _ACEOF
16788 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
16789 do
16790 CXX="$ac_save_CXX $ac_arg"
16791 if ac_fn_cxx_try_compile "$LINENO"
16792 then :
16793 ac_cv_prog_cxx_cxx11=$ac_arg
16794 fi
16795 rm -f core conftest.err conftest.$ac_objext conftest.beam
16796 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
16797 done
16798 rm -f conftest.$ac_ext
16799 CXX=$ac_save_CXX ;;
16800 esac
16801 fi
16802
16803 if test "x$ac_cv_prog_cxx_cxx11" = xno
16804 then :
16805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16806 printf "%s\n" "unsupported" >&6; }
16807 else case e in #(
16808 e) if test "x$ac_cv_prog_cxx_cxx11" = x
16809 then :
16810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16811 printf "%s\n" "none needed" >&6; }
16812 else case e in #(
16813 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
16814 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
16815 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
16816 esac
16817 fi
16818 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
16819 ac_prog_cxx_stdcxx=cxx11 ;;
16820 esac
16821 fi
16822 fi
16823 if test x$ac_prog_cxx_stdcxx = xno
16824 then :
16825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
16826 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
16827 if test ${ac_cv_prog_cxx_cxx98+y}
16828 then :
16829 printf %s "(cached) " >&6
16830 else case e in #(
16831 e) ac_cv_prog_cxx_cxx98=no
16832 ac_save_CXX=$CXX
16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h. */
16835 $ac_cxx_conftest_cxx98_program
16836 _ACEOF
16837 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
16838 do
16839 CXX="$ac_save_CXX $ac_arg"
16840 if ac_fn_cxx_try_compile "$LINENO"
16841 then :
16842 ac_cv_prog_cxx_cxx98=$ac_arg
16843 fi
16844 rm -f core conftest.err conftest.$ac_objext conftest.beam
16845 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
16846 done
16847 rm -f conftest.$ac_ext
16848 CXX=$ac_save_CXX ;;
16849 esac
16850 fi
16851
16852 if test "x$ac_cv_prog_cxx_cxx98" = xno
16853 then :
16854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16855 printf "%s\n" "unsupported" >&6; }
16856 else case e in #(
16857 e) if test "x$ac_cv_prog_cxx_cxx98" = x
16858 then :
16859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16860 printf "%s\n" "none needed" >&6; }
16861 else case e in #(
16862 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
16863 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
16864 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
16865 esac
16866 fi
16867 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
16868 ac_prog_cxx_stdcxx=cxx98 ;;
16869 esac
16870 fi
16871 fi
16872
16873 ac_ext=c
16874 ac_cpp='$CPP $CPPFLAGS'
16875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16878
16879 depcc="$CXX" am_compiler_list=
16880
16881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16882 printf %s "checking dependency style of $depcc... " >&6; }
16883 if test ${am_cv_CXX_dependencies_compiler_type+y}
16884 then :
16885 printf %s "(cached) " >&6
16886 else case e in #(
16887 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16888 # We make a subdir and do the tests there. Otherwise we can end up
16889 # making bogus files that we don't know about and never remove. For
16890 # instance it was reported that on HP-UX the gcc test will end up
16891 # making a dummy file named 'D' -- because '-MD' means "put the output
16892 # in D".
16893 rm -rf conftest.dir
16894 mkdir conftest.dir
16895 # Copy depcomp to subdir because otherwise we won't find it if we're
16896 # using a relative directory.
16897 cp "$am_depcomp" conftest.dir
16898 cd conftest.dir
16899 # We will build objects and dependencies in a subdirectory because
16900 # it helps to detect inapplicable dependency modes. For instance
16901 # both Tru64's cc and ICC support -MD to output dependencies as a
16902 # side effect of compilation, but ICC will put the dependencies in
16903 # the current directory while Tru64 will put them in the object
16904 # directory.
16905 mkdir sub
16906
16907 am_cv_CXX_dependencies_compiler_type=none
16908 if test "$am_compiler_list" = ""; then
16909 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16910 fi
16911 am__universal=false
16912 case " $depcc " in #(
16913 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16914 esac
16915
16916 for depmode in $am_compiler_list; do
16917 # Setup a source with many dependencies, because some compilers
16918 # like to wrap large dependency lists on column 80 (with \), and
16919 # we should not choose a depcomp mode which is confused by this.
16920 #
16921 # We need to recreate these files for each test, as the compiler may
16922 # overwrite some of them when testing with obscure command lines.
16923 # This happens at least with the AIX C compiler.
16924 : > sub/conftest.c
16925 for i in 1 2 3 4 5 6; do
16926 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16927 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16928 # Solaris 10 /bin/sh.
16929 echo '/* dummy */' > sub/conftst$i.h
16930 done
16931 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16932
16933 # We check with '-c' and '-o' for the sake of the "dashmstdout"
16934 # mode. It turns out that the SunPro C++ compiler does not properly
16935 # handle '-M -o', and we need to detect this. Also, some Intel
16936 # versions had trouble with output in subdirs.
16937 am__obj=sub/conftest.${OBJEXT-o}
16938 am__minus_obj="-o $am__obj"
16939 case $depmode in
16940 gcc)
16941 # This depmode causes a compiler race in universal mode.
16942 test "$am__universal" = false || continue
16943 ;;
16944 nosideeffect)
16945 # After this tag, mechanisms are not by side-effect, so they'll
16946 # only be used when explicitly requested.
16947 if test "x$enable_dependency_tracking" = xyes; then
16948 continue
16949 else
16950 break
16951 fi
16952 ;;
16953 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16954 # This compiler won't grok '-c -o', but also, the minuso test has
16955 # not run yet. These depmodes are late enough in the game, and
16956 # so weak that their functioning should not be impacted.
16957 am__obj=conftest.${OBJEXT-o}
16958 am__minus_obj=
16959 ;;
16960 none) break ;;
16961 esac
16962 if depmode=$depmode \
16963 source=sub/conftest.c object=$am__obj \
16964 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16965 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16966 >/dev/null 2>conftest.err &&
16967 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16968 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16969 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16970 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16971 # icc doesn't choke on unknown options, it will just issue warnings
16972 # or remarks (even with -Werror). So we grep stderr for any message
16973 # that says an option was ignored or not supported.
16974 # When given -MP, icc 7.0 and 7.1 complain thus:
16975 # icc: Command line warning: ignoring option '-M'; no argument required
16976 # The diagnosis changed in icc 8.0:
16977 # icc: Command line remark: option '-MP' not supported
16978 if (grep 'ignoring option' conftest.err ||
16979 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16980 am_cv_CXX_dependencies_compiler_type=$depmode
16981 break
16982 fi
16983 fi
16984 done
16985
16986 cd ..
16987 rm -rf conftest.dir
16988 else
16989 am_cv_CXX_dependencies_compiler_type=none
16990 fi
16991 ;;
16992 esac
16993 fi
16994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
16995 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
16996 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16997
16998 if
16999 test "x$enable_dependency_tracking" != xno \
17000 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17001 am__fastdepCXX_TRUE=
17002 am__fastdepCXX_FALSE='#'
17003 else
17004 am__fastdepCXX_TRUE='#'
17005 am__fastdepCXX_FALSE=
17006 fi
17007
17008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C++ compiler" >&5
17009 printf %s "checking what warning flags to pass to the C++ compiler... " >&6; }
17010 if test ${kpse_cv_warning_cxxflags+y}
17011 then :
17012 printf %s "(cached) " >&6
17013 else case e in #(
17014 e) if test "x$GXX" = xyes; then
17015 kpse_cv_warning_cxxflags=
17016 kpse_warn_strings="-Wno-write-strings"
17017 if test "x$enable_compiler_warnings" != xno; then
17018 kpse_cv_warning_cxxflags="-Wreturn-type"
17019 case `$CXX -dumpversion` in #(
17020 3.* | 4.[012345].*) :
17021 kpse_cv_warning_cxxflags="-Wimplicit $kpse_cv_warning_cxxflags" ;; #(
17022 *) :
17023 ;;
17024 esac
17025 case `$CXX -dumpversion` in #(
17026 3.[234].* | 4.* | 5.*) :
17027 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;; #(
17028 *) :
17029 ;;
17030 esac
17031 if test "x$enable_compiler_warnings" != xmin; then
17032 kpse_cv_warning_cxxflags="-Wall -Wunused $kpse_cv_warning_cxxflags"
17033 if test "x$enable_compiler_warnings" != xyes; then
17034 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
17035 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wcast-qual -Wcast-align"
17036 kpse_warn_strings="-Wwrite-strings"
17037 if test "x$enable_compiler_warnings" != xmax; then
17038 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wshadow"
17039 fi
17040 fi
17041 fi
17042 fi
17043 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags $kpse_warn_strings"
17044 elif test "x$enable_compiler_warnings" = xno; then
17045 kpse_cv_warning_cxxflags=
17046 else
17047 kpse_cv_warning_cxxflags= # FIXME: warning flags for non-GNU C++ compilers
17048 fi ;;
17049 esac
17050 fi
17051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cxxflags" >&5
17052 printf "%s\n" "$kpse_cv_warning_cxxflags" >&6; }
17053 WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags
17054
17055
17056
17057
17058
17059 func_stripname_cnf ()
17060 {
17061 case $2 in
17062 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
17063 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
17064 esac
17065 } # func_stripname_cnf
17066
17067 if test -n "$CXX" && ( test no != "$CXX" &&
17068 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
17069 (test g++ != "$CXX"))); then
17070 ac_ext=cpp
17071 ac_cpp='$CXXCPP $CPPFLAGS'
17072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17076 printf %s "checking how to run the C++ preprocessor... " >&6; }
17077 if test -z "$CXXCPP"; then
17078 if test ${ac_cv_prog_CXXCPP+y}
17079 then :
17080 printf %s "(cached) " >&6
17081 else case e in #(
17082 e) # Double quotes because $CXX needs to be expanded
17083 for CXXCPP in "$CXX -E" cpp /lib/cpp
17084 do
17085 ac_preproc_ok=false
17086 for ac_cxx_preproc_warn_flag in '' yes
17087 do
17088 # Use a header file that comes with gcc, so configuring glibc
17089 # with a fresh cross-compiler works.
17090 # On the NeXT, cc -E runs the code through the compiler's parser,
17091 # not just through cpp. "Syntax error" is here to catch this case.
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h. */
17094 #include <limits.h>
17095 Syntax error
17096 _ACEOF
17097 if ac_fn_cxx_try_cpp "$LINENO"
17098 then :
17099
17100 else case e in #(
17101 e) # Broken: fails on valid input.
17102 continue ;;
17103 esac
17104 fi
17105 rm -f conftest.err conftest.i conftest.$ac_ext
17106
17107 # OK, works on sane cases. Now check whether nonexistent headers
17108 # can be detected and how.
17109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110 /* end confdefs.h. */
17111 #include <ac_nonexistent.h>
17112 _ACEOF
17113 if ac_fn_cxx_try_cpp "$LINENO"
17114 then :
17115 # Broken: success on invalid input.
17116 continue
17117 else case e in #(
17118 e) # Passes both tests.
17119 ac_preproc_ok=:
17120 break ;;
17121 esac
17122 fi
17123 rm -f conftest.err conftest.i conftest.$ac_ext
17124
17125 done
17126 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17127 rm -f conftest.i conftest.err conftest.$ac_ext
17128 if $ac_preproc_ok
17129 then :
17130 break
17131 fi
17132
17133 done
17134 ac_cv_prog_CXXCPP=$CXXCPP
17135 ;;
17136 esac
17137 fi
17138 CXXCPP=$ac_cv_prog_CXXCPP
17139 else
17140 ac_cv_prog_CXXCPP=$CXXCPP
17141 fi
17142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17143 printf "%s\n" "$CXXCPP" >&6; }
17144 ac_preproc_ok=false
17145 for ac_cxx_preproc_warn_flag in '' yes
17146 do
17147 # Use a header file that comes with gcc, so configuring glibc
17148 # with a fresh cross-compiler works.
17149 # On the NeXT, cc -E runs the code through the compiler's parser,
17150 # not just through cpp. "Syntax error" is here to catch this case.
17151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152 /* end confdefs.h. */
17153 #include <limits.h>
17154 Syntax error
17155 _ACEOF
17156 if ac_fn_cxx_try_cpp "$LINENO"
17157 then :
17158
17159 else case e in #(
17160 e) # Broken: fails on valid input.
17161 continue ;;
17162 esac
17163 fi
17164 rm -f conftest.err conftest.i conftest.$ac_ext
17165
17166 # OK, works on sane cases. Now check whether nonexistent headers
17167 # can be detected and how.
17168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17169 /* end confdefs.h. */
17170 #include <ac_nonexistent.h>
17171 _ACEOF
17172 if ac_fn_cxx_try_cpp "$LINENO"
17173 then :
17174 # Broken: success on invalid input.
17175 continue
17176 else case e in #(
17177 e) # Passes both tests.
17178 ac_preproc_ok=:
17179 break ;;
17180 esac
17181 fi
17182 rm -f conftest.err conftest.i conftest.$ac_ext
17183
17184 done
17185 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17186 rm -f conftest.i conftest.err conftest.$ac_ext
17187 if $ac_preproc_ok
17188 then :
17189
17190 else case e in #(
17191 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17192 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17193 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17194 See 'config.log' for more details" "$LINENO" 5; } ;;
17195 esac
17196 fi
17197
17198 ac_ext=c
17199 ac_cpp='$CPP $CPPFLAGS'
17200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17203
17204 else
17205 _lt_caught_CXX_error=yes
17206 fi
17207
17208 ac_ext=cpp
17209 ac_cpp='$CXXCPP $CPPFLAGS'
17210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17213
17214 archive_cmds_need_lc_CXX=no
17215 allow_undefined_flag_CXX=
17216 always_export_symbols_CXX=no
17217 archive_expsym_cmds_CXX=
17218 compiler_needs_object_CXX=no
17219 export_dynamic_flag_spec_CXX=
17220 hardcode_direct_CXX=no
17221 hardcode_direct_absolute_CXX=no
17222 hardcode_libdir_flag_spec_CXX=
17223 hardcode_libdir_separator_CXX=
17224 hardcode_minus_L_CXX=no
17225 hardcode_shlibpath_var_CXX=unsupported
17226 hardcode_automatic_CXX=no
17227 inherit_rpath_CXX=no
17228 module_cmds_CXX=
17229 module_expsym_cmds_CXX=
17230 link_all_deplibs_CXX=unknown
17231 old_archive_cmds_CXX=$old_archive_cmds
17232 reload_flag_CXX=$reload_flag
17233 reload_cmds_CXX=$reload_cmds
17234 no_undefined_flag_CXX=
17235 whole_archive_flag_spec_CXX=
17236 enable_shared_with_static_runtimes_CXX=no
17237
17238 # Source file extension for C++ test sources.
17239 ac_ext=cpp
17240
17241 # Object file extension for compiled C++ test sources.
17242 objext=o
17243 objext_CXX=$objext
17244
17245 # No sense in running all these tests if we already determined that
17246 # the CXX compiler isn't working. Some variables (like enable_shared)
17247 # are currently assumed to apply to all compilers on this platform,
17248 # and will be corrupted by setting them based on a non-working compiler.
17249 if test yes != "$_lt_caught_CXX_error"; then
17250 # Code to be used in simple compile tests
17251 lt_simple_compile_test_code="int some_variable = 0;"
17252
17253 # Code to be used in simple link tests
17254 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17255
17256 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17257
17258
17259
17260
17261
17262
17263 # If no C compiler was specified, use CC.
17264 LTCC=${LTCC-"$CC"}
17265
17266 # If no C compiler flags were specified, use CFLAGS.
17267 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17268
17269 # Allow CC to be a program name with arguments.
17270 compiler=$CC
17271
17272
17273 # save warnings/boilerplate of simple test code
17274 ac_outfile=conftest.$ac_objext
17275 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17276 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17277 _lt_compiler_boilerplate=`cat conftest.err`
17278 $RM conftest*
17279
17280 ac_outfile=conftest.$ac_objext
17281 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17282 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17283 _lt_linker_boilerplate=`cat conftest.err`
17284 $RM -r conftest*
17285
17286
17287 # Allow CC to be a program name with arguments.
17288 lt_save_CC=$CC
17289 lt_save_CFLAGS=$CFLAGS
17290 lt_save_LD=$LD
17291 lt_save_GCC=$GCC
17292 GCC=$GXX
17293 lt_save_with_gnu_ld=$with_gnu_ld
17294 lt_save_path_LD=$lt_cv_path_LD
17295 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17296 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17297 else
17298 $as_unset lt_cv_prog_gnu_ld
17299 fi
17300 if test -n "${lt_cv_path_LDCXX+set}"; then
17301 lt_cv_path_LD=$lt_cv_path_LDCXX
17302 else
17303 $as_unset lt_cv_path_LD
17304 fi
17305 test -z "${LDCXX+set}" || LD=$LDCXX
17306 CC=${CXX-"c++"}
17307 CFLAGS=$CXXFLAGS
17308 compiler=$CC
17309 compiler_CXX=$CC
17310 func_cc_basename $compiler
17311 cc_basename=$func_cc_basename_result
17312
17313
17314 if test -n "$compiler"; then
17315 # We don't want -fno-exception when compiling C++ code, so set the
17316 # no_builtin_flag separately
17317 if test yes = "$GXX"; then
17318 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17319 else
17320 lt_prog_compiler_no_builtin_flag_CXX=
17321 fi
17322
17323 if test yes = "$GXX"; then
17324 # Set up default GNU C++ configuration
17325
17326
17327
17328 # Check whether --with-gnu-ld was given.
17329 if test ${with_gnu_ld+y}
17330 then :
17331 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
17332 else case e in #(
17333 e) with_gnu_ld=no ;;
17334 esac
17335 fi
17336
17337 ac_prog=ld
17338 if test yes = "$GCC"; then
17339 # Check if gcc -print-prog-name=ld gives a path.
17340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17341 printf %s "checking for ld used by $CC... " >&6; }
17342 case $host in
17343 *-*-mingw* | *-*-windows*)
17344 # gcc leaves a trailing carriage return, which upsets mingw
17345 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17346 *)
17347 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17348 esac
17349 case $ac_prog in
17350 # Accept absolute paths.
17351 [\\/]* | ?:[\\/]*)
17352 re_direlt='/[^/][^/]*/\.\./'
17353 # Canonicalize the pathname of ld
17354 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17355 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17356 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17357 done
17358 test -z "$LD" && LD=$ac_prog
17359 ;;
17360 "")
17361 # If it fails, then pretend we aren't using GCC.
17362 ac_prog=ld
17363 ;;
17364 *)
17365 # If it is relative, then search for the first ld in PATH.
17366 with_gnu_ld=unknown
17367 ;;
17368 esac
17369 elif test yes = "$with_gnu_ld"; then
17370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17371 printf %s "checking for GNU ld... " >&6; }
17372 else
17373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17374 printf %s "checking for non-GNU ld... " >&6; }
17375 fi
17376 if test ${lt_cv_path_LD+y}
17377 then :
17378 printf %s "(cached) " >&6
17379 else case e in #(
17380 e) if test -z "$LD"; then
17381 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17382 for ac_dir in $PATH; do
17383 IFS=$lt_save_ifs
17384 test -z "$ac_dir" && ac_dir=.
17385 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17386 lt_cv_path_LD=$ac_dir/$ac_prog
17387 # Check to see if the program is GNU ld. I'd rather use --version,
17388 # but apparently some variants of GNU ld only accept -v.
17389 # Break only if it was the GNU/non-GNU ld that we prefer.
17390 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17391 *GNU* | *'with BFD'*)
17392 test no != "$with_gnu_ld" && break
17393 ;;
17394 *)
17395 test yes != "$with_gnu_ld" && break
17396 ;;
17397 esac
17398 fi
17399 done
17400 IFS=$lt_save_ifs
17401 else
17402 lt_cv_path_LD=$LD # Let the user override the test with a path.
17403 fi ;;
17404 esac
17405 fi
17406
17407 LD=$lt_cv_path_LD
17408 if test -n "$LD"; then
17409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17410 printf "%s\n" "$LD" >&6; }
17411 else
17412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17413 printf "%s\n" "no" >&6; }
17414 fi
17415 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17417 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
17418 if test ${lt_cv_prog_gnu_ld+y}
17419 then :
17420 printf %s "(cached) " >&6
17421 else case e in #(
17422 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
17423 case `$LD -v 2>&1 </dev/null` in
17424 *GNU* | *'with BFD'*)
17425 lt_cv_prog_gnu_ld=yes
17426 ;;
17427 *)
17428 lt_cv_prog_gnu_ld=no
17429 ;;
17430 esac ;;
17431 esac
17432 fi
17433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17434 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
17435 with_gnu_ld=$lt_cv_prog_gnu_ld
17436
17437
17438
17439
17440
17441
17442
17443 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17444 # archiving commands below assume that GNU ld is being used.
17445 if test yes = "$with_gnu_ld"; then
17446 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17447 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17448
17449 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17450 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17451
17452 # If archive_cmds runs LD, not CC, wlarc should be empty
17453 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17454 # investigate it a little bit more. (MM)
17455 wlarc='$wl'
17456
17457 # ancient GNU ld didn't support --whole-archive et. al.
17458 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17459 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17460 else
17461 whole_archive_flag_spec_CXX=
17462 fi
17463 else
17464 with_gnu_ld=no
17465 wlarc=
17466
17467 # A generic and very simple default shared library creation
17468 # command for GNU C++ for the case where it uses the native
17469 # linker, instead of GNU ld. If possible, this setting should
17470 # overridden to take advantage of the native linker features on
17471 # the platform it is being used on.
17472 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17473 fi
17474
17475 # Commands to make compiler produce verbose output that lists
17476 # what "hidden" libraries, object files and flags are used when
17477 # linking a shared library.
17478 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17479
17480 else
17481 GXX=no
17482 with_gnu_ld=no
17483 wlarc=
17484 fi
17485
17486 # PORTME: fill in a description of your system's C++ link characteristics
17487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17488 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17489 ld_shlibs_CXX=yes
17490 case $host_os in
17491 aix3*)
17492 # FIXME: insert proper C++ library support
17493 ld_shlibs_CXX=no
17494 ;;
17495 aix[4-9]*)
17496 if test ia64 = "$host_cpu"; then
17497 # On IA64, the linker does run time linking by default, so we don't
17498 # have to do anything special.
17499 aix_use_runtimelinking=no
17500 exp_sym_flag='-Bexport'
17501 no_entry_flag=
17502 else
17503 aix_use_runtimelinking=no
17504
17505 # Test if we are trying to use run time linking or normal
17506 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17507 # have runtime linking enabled, and use it for executables.
17508 # For shared libraries, we enable/disable runtime linking
17509 # depending on the kind of the shared library created -
17510 # when "with_aix_soname,aix_use_runtimelinking" is:
17511 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
17512 # "aix,yes" lib.so shared, rtl:yes, for executables
17513 # lib.a static archive
17514 # "both,no" lib.so.V(shr.o) shared, rtl:yes
17515 # lib.a(lib.so.V) shared, rtl:no, for executables
17516 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17517 # lib.a(lib.so.V) shared, rtl:no
17518 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
17519 # lib.a static archive
17520 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17521 for ld_flag in $LDFLAGS; do
17522 case $ld_flag in
17523 *-brtl*)
17524 aix_use_runtimelinking=yes
17525 break
17526 ;;
17527 esac
17528 done
17529 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17530 # With aix-soname=svr4, we create the lib.so.V shared archives only,
17531 # so we don't have lib.a shared libs to link our executables.
17532 # We have to force runtime linking in this case.
17533 aix_use_runtimelinking=yes
17534 LDFLAGS="$LDFLAGS -Wl,-brtl"
17535 fi
17536 ;;
17537 esac
17538
17539 exp_sym_flag='-bexport'
17540 no_entry_flag='-bnoentry'
17541 fi
17542
17543 # When large executables or shared objects are built, AIX ld can
17544 # have problems creating the table of contents. If linking a library
17545 # or program results in "error TOC overflow" add -mminimal-toc to
17546 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17547 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17548
17549 archive_cmds_CXX=''
17550 hardcode_direct_CXX=yes
17551 hardcode_direct_absolute_CXX=yes
17552 hardcode_libdir_separator_CXX=':'
17553 link_all_deplibs_CXX=yes
17554 file_list_spec_CXX='$wl-f,'
17555 case $with_aix_soname,$aix_use_runtimelinking in
17556 aix,*) ;; # no import file
17557 svr4,* | *,yes) # use import file
17558 # The Import File defines what to hardcode.
17559 hardcode_direct_CXX=no
17560 hardcode_direct_absolute_CXX=no
17561 ;;
17562 esac
17563
17564 if test yes = "$GXX"; then
17565 case $host_os in aix4.[012]|aix4.[012].*)
17566 # We only want to do this on AIX 4.2 and lower, the check
17567 # below for broken collect2 doesn't work under 4.3+
17568 collect2name=`$CC -print-prog-name=collect2`
17569 if test -f "$collect2name" &&
17570 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17571 then
17572 # We have reworked collect2
17573 :
17574 else
17575 # We have old collect2
17576 hardcode_direct_CXX=unsupported
17577 # It fails to find uninstalled libraries when the uninstalled
17578 # path is not listed in the libpath. Setting hardcode_minus_L
17579 # to unsupported forces relinking
17580 hardcode_minus_L_CXX=yes
17581 hardcode_libdir_flag_spec_CXX='-L$libdir'
17582 hardcode_libdir_separator_CXX=
17583 fi
17584 esac
17585 shared_flag='-shared'
17586 if test yes = "$aix_use_runtimelinking"; then
17587 shared_flag=$shared_flag' $wl-G'
17588 fi
17589 # Need to ensure runtime linking is disabled for the traditional
17590 # shared library, or the linker may eventually find shared libraries
17591 # /with/ Import File - we do not want to mix them.
17592 shared_flag_aix='-shared'
17593 shared_flag_svr4='-shared $wl-G'
17594 else
17595 # not using gcc
17596 if test ia64 = "$host_cpu"; then
17597 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17598 # chokes on -Wl,-G. The following line is correct:
17599 shared_flag='-G'
17600 else
17601 if test yes = "$aix_use_runtimelinking"; then
17602 shared_flag='$wl-G'
17603 else
17604 shared_flag='$wl-bM:SRE'
17605 fi
17606 shared_flag_aix='$wl-bM:SRE'
17607 shared_flag_svr4='$wl-G'
17608 fi
17609 fi
17610
17611 export_dynamic_flag_spec_CXX='$wl-bexpall'
17612 # It seems that -bexpall does not export symbols beginning with
17613 # underscore (_), so it is better to generate a list of symbols to
17614 # export.
17615 always_export_symbols_CXX=yes
17616 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17617 # Warning - without using the other runtime loading flags (-brtl),
17618 # -berok will link without error, but may produce a broken library.
17619 # The "-G" linker flag allows undefined symbols.
17620 no_undefined_flag_CXX='-bernotok'
17621 # Determine the default libpath from the value encoded in an empty
17622 # executable.
17623 if test set = "${lt_cv_aix_libpath+set}"; then
17624 aix_libpath=$lt_cv_aix_libpath
17625 else
17626 if test ${lt_cv_aix_libpath__CXX+y}
17627 then :
17628 printf %s "(cached) " >&6
17629 else case e in #(
17630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h. */
17632
17633 int
17634 main (void)
17635 {
17636
17637 ;
17638 return 0;
17639 }
17640 _ACEOF
17641 if ac_fn_cxx_try_link "$LINENO"
17642 then :
17643
17644 lt_aix_libpath_sed='
17645 /Import File Strings/,/^$/ {
17646 /^0/ {
17647 s/^0 *\([^ ]*\) *$/\1/
17648 p
17649 }
17650 }'
17651 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17652 # Check for a 64-bit object if we didn't find anything.
17653 if test -z "$lt_cv_aix_libpath__CXX"; then
17654 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17655 fi
17656 fi
17657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17658 conftest$ac_exeext conftest.$ac_ext
17659 if test -z "$lt_cv_aix_libpath__CXX"; then
17660 lt_cv_aix_libpath__CXX=/usr/lib:/lib
17661 fi
17662 ;;
17663 esac
17664 fi
17665
17666 aix_libpath=$lt_cv_aix_libpath__CXX
17667 fi
17668
17669 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17670
17671 archive_expsym_cmds_CXX='$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
17672 else
17673 if test ia64 = "$host_cpu"; then
17674 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
17675 allow_undefined_flag_CXX="-z nodefs"
17676 archive_expsym_cmds_CXX="\$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"
17677 else
17678 # Determine the default libpath from the value encoded in an
17679 # empty executable.
17680 if test set = "${lt_cv_aix_libpath+set}"; then
17681 aix_libpath=$lt_cv_aix_libpath
17682 else
17683 if test ${lt_cv_aix_libpath__CXX+y}
17684 then :
17685 printf %s "(cached) " >&6
17686 else case e in #(
17687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h. */
17689
17690 int
17691 main (void)
17692 {
17693
17694 ;
17695 return 0;
17696 }
17697 _ACEOF
17698 if ac_fn_cxx_try_link "$LINENO"
17699 then :
17700
17701 lt_aix_libpath_sed='
17702 /Import File Strings/,/^$/ {
17703 /^0/ {
17704 s/^0 *\([^ ]*\) *$/\1/
17705 p
17706 }
17707 }'
17708 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17709 # Check for a 64-bit object if we didn't find anything.
17710 if test -z "$lt_cv_aix_libpath__CXX"; then
17711 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17712 fi
17713 fi
17714 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17715 conftest$ac_exeext conftest.$ac_ext
17716 if test -z "$lt_cv_aix_libpath__CXX"; then
17717 lt_cv_aix_libpath__CXX=/usr/lib:/lib
17718 fi
17719 ;;
17720 esac
17721 fi
17722
17723 aix_libpath=$lt_cv_aix_libpath__CXX
17724 fi
17725
17726 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17727 # Warning - without using the other run time loading flags,
17728 # -berok will link without error, but may produce a broken library.
17729 no_undefined_flag_CXX=' $wl-bernotok'
17730 allow_undefined_flag_CXX=' $wl-berok'
17731 if test yes = "$with_gnu_ld"; then
17732 # We only use this code for GNU lds that support --whole-archive.
17733 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17734 else
17735 # Exported symbols can be pulled into shared objects from archives
17736 whole_archive_flag_spec_CXX='$convenience'
17737 fi
17738 archive_cmds_need_lc_CXX=yes
17739 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17740 # -brtl affects multiple linker settings, -berok does not and is overridden later
17741 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17742 if test svr4 != "$with_aix_soname"; then
17743 # This is similar to how AIX traditionally builds its shared
17744 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
17745 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
17746 fi
17747 if test aix != "$with_aix_soname"; then
17748 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
17749 else
17750 # used by -dlpreopen to get the symbols
17751 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
17752 fi
17753 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
17754 fi
17755 fi
17756 ;;
17757
17758 beos*)
17759 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17760 allow_undefined_flag_CXX=unsupported
17761 # Joseph Beckenbach <[email protected]> says some releases of gcc
17762 # support --undefined. This deserves some investigation. FIXME
17763 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17764 else
17765 ld_shlibs_CXX=no
17766 fi
17767 ;;
17768
17769 chorus*)
17770 case $cc_basename in
17771 *)
17772 # FIXME: insert proper C++ library support
17773 ld_shlibs_CXX=no
17774 ;;
17775 esac
17776 ;;
17777
17778 cygwin* | mingw* | windows* | pw32* | cegcc*)
17779 case $GXX,$cc_basename in
17780 ,cl* | no,cl* | ,icl* | no,icl*)
17781 # Native MSVC or ICC
17782 # hardcode_libdir_flag_spec is actually meaningless, as there is
17783 # no search path for DLLs.
17784 hardcode_libdir_flag_spec_CXX=' '
17785 allow_undefined_flag_CXX=unsupported
17786 always_export_symbols_CXX=yes
17787 file_list_spec_CXX='@'
17788 # Tell ltmain to make .lib files, not .a files.
17789 libext=lib
17790 # Tell ltmain to make .dll files, not .so files.
17791 shrext_cmds=.dll
17792 # FIXME: Setting linknames here is a bad hack.
17793 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17794 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17795 cp "$export_symbols" "$output_objdir/$soname.def";
17796 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17797 else
17798 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17799 fi~
17800 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17801 linknames='
17802 # The linker will not automatically build a static lib if we build a DLL.
17803 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17804 enable_shared_with_static_runtimes_CXX=yes
17805 # Don't use ranlib
17806 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17807 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17808 lt_tool_outputfile="@TOOL_OUTPUT@"~
17809 case $lt_outputfile in
17810 *.exe|*.EXE) ;;
17811 *)
17812 lt_outputfile=$lt_outputfile.exe
17813 lt_tool_outputfile=$lt_tool_outputfile.exe
17814 ;;
17815 esac~
17816 func_to_tool_file "$lt_outputfile"~
17817 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17818 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17819 $RM "$lt_outputfile.manifest";
17820 fi'
17821 ;;
17822 *)
17823 # g++
17824 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17825 # as there is no search path for DLLs.
17826 hardcode_libdir_flag_spec_CXX='-L$libdir'
17827 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
17828 allow_undefined_flag_CXX=unsupported
17829 always_export_symbols_CXX=no
17830 enable_shared_with_static_runtimes_CXX=yes
17831 file_list_spec_CXX='@'
17832
17833 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17834 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17835 # If the export-symbols file already is a .def file, use it as
17836 # is; otherwise, prepend EXPORTS...
17837 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17838 cp $export_symbols $output_objdir/$soname.def;
17839 else
17840 echo EXPORTS > $output_objdir/$soname.def;
17841 cat $export_symbols >> $output_objdir/$soname.def;
17842 fi~
17843 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17844 else
17845 ld_shlibs_CXX=no
17846 fi
17847 ;;
17848 esac
17849 ;;
17850 darwin* | rhapsody*)
17851
17852
17853 archive_cmds_need_lc_CXX=no
17854 hardcode_direct_CXX=no
17855 hardcode_automatic_CXX=yes
17856 hardcode_shlibpath_var_CXX=unsupported
17857 if test yes = "$lt_cv_ld_force_load"; then
17858 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17859
17860 else
17861 whole_archive_flag_spec_CXX=''
17862 fi
17863 link_all_deplibs_CXX=yes
17864 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
17865 case $cc_basename in
17866 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17867 *) _lt_dar_can_shared=$GCC ;;
17868 esac
17869 if test yes = "$_lt_dar_can_shared"; then
17870 output_verbose_link_cmd=func_echo_all
17871 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17872 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17873 archive_expsym_cmds_CXX="$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"
17874 module_expsym_cmds_CXX="$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"
17875 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
17876 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
17877 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
17878 fi
17879
17880 else
17881 ld_shlibs_CXX=no
17882 fi
17883
17884 ;;
17885
17886 os2*)
17887 hardcode_libdir_flag_spec_CXX='-L$libdir'
17888 hardcode_minus_L_CXX=yes
17889 allow_undefined_flag_CXX=unsupported
17890 shrext_cmds=.dll
17891 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17892 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17893 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17894 $ECHO EXPORTS >> $output_objdir/$libname.def~
17895 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17896 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17897 emximp -o $lib $output_objdir/$libname.def'
17898 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17899 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17900 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17901 $ECHO EXPORTS >> $output_objdir/$libname.def~
17902 prefix_cmds="$SED"~
17903 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17904 prefix_cmds="$prefix_cmds -e 1d";
17905 fi~
17906 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17907 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17908 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17909 emximp -o $lib $output_objdir/$libname.def'
17910 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17911 enable_shared_with_static_runtimes_CXX=yes
17912 file_list_spec_CXX='@'
17913 ;;
17914
17915 dgux*)
17916 case $cc_basename in
17917 ec++*)
17918 # FIXME: insert proper C++ library support
17919 ld_shlibs_CXX=no
17920 ;;
17921 ghcx*)
17922 # Green Hills C++ Compiler
17923 # FIXME: insert proper C++ library support
17924 ld_shlibs_CXX=no
17925 ;;
17926 *)
17927 # FIXME: insert proper C++ library support
17928 ld_shlibs_CXX=no
17929 ;;
17930 esac
17931 ;;
17932
17933 freebsd2.*)
17934 # C++ shared libraries reported to be fairly broken before
17935 # switch to ELF
17936 ld_shlibs_CXX=no
17937 ;;
17938
17939 freebsd-elf*)
17940 archive_cmds_need_lc_CXX=no
17941 ;;
17942
17943 freebsd* | dragonfly* | midnightbsd*)
17944 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17945 # conventions
17946 ld_shlibs_CXX=yes
17947 ;;
17948
17949 haiku*)
17950 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17951 link_all_deplibs_CXX=no
17952 ;;
17953
17954 hpux9*)
17955 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17956 hardcode_libdir_separator_CXX=:
17957 export_dynamic_flag_spec_CXX='$wl-E'
17958 hardcode_direct_CXX=yes
17959 hardcode_minus_L_CXX=yes # Not in the search PATH,
17960 # but as the default
17961 # location of the library.
17962
17963 case $cc_basename in
17964 CC*)
17965 # FIXME: insert proper C++ library support
17966 ld_shlibs_CXX=no
17967 ;;
17968 aCC*)
17969 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17970 # Commands to make compiler produce verbose output that lists
17971 # what "hidden" libraries, object files and flags are used when
17972 # linking a shared library.
17973 #
17974 # There doesn't appear to be a way to prevent this compiler from
17975 # explicitly linking system object files so we need to strip them
17976 # from the output so that they don't get included in the library
17977 # dependencies.
17978 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "[-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17979 ;;
17980 *)
17981 if test yes = "$GXX"; then
17982 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17983 else
17984 # FIXME: insert proper C++ library support
17985 ld_shlibs_CXX=no
17986 fi
17987 ;;
17988 esac
17989 ;;
17990
17991 hpux10*|hpux11*)
17992 if test no = "$with_gnu_ld"; then
17993 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17994 hardcode_libdir_separator_CXX=:
17995
17996 case $host_cpu in
17997 hppa*64*|ia64*)
17998 ;;
17999 *)
18000 export_dynamic_flag_spec_CXX='$wl-E'
18001 ;;
18002 esac
18003 fi
18004 case $host_cpu in
18005 hppa*64*|ia64*)
18006 hardcode_direct_CXX=no
18007 hardcode_shlibpath_var_CXX=no
18008 ;;
18009 *)
18010 hardcode_direct_CXX=yes
18011 hardcode_direct_absolute_CXX=yes
18012 hardcode_minus_L_CXX=yes # Not in the search PATH,
18013 # but as the default
18014 # location of the library.
18015 ;;
18016 esac
18017
18018 case $cc_basename in
18019 CC*)
18020 # FIXME: insert proper C++ library support
18021 ld_shlibs_CXX=no
18022 ;;
18023 aCC*)
18024 case $host_cpu in
18025 hppa*64*)
18026 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18027 ;;
18028 ia64*)
18029 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18030 ;;
18031 *)
18032 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18033 ;;
18034 esac
18035 # Commands to make compiler produce verbose output that lists
18036 # what "hidden" libraries, object files and flags are used when
18037 # linking a shared library.
18038 #
18039 # There doesn't appear to be a way to prevent this compiler from
18040 # explicitly linking system object files so we need to strip them
18041 # from the output so that they don't get included in the library
18042 # dependencies.
18043 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " [-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18044 ;;
18045 *)
18046 if test yes = "$GXX"; then
18047 if test no = "$with_gnu_ld"; then
18048 case $host_cpu in
18049 hppa*64*)
18050 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18051 ;;
18052 ia64*)
18053 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18054 ;;
18055 *)
18056 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18057 ;;
18058 esac
18059 fi
18060 else
18061 # FIXME: insert proper C++ library support
18062 ld_shlibs_CXX=no
18063 fi
18064 ;;
18065 esac
18066 ;;
18067
18068 interix[3-9]*)
18069 hardcode_direct_CXX=no
18070 hardcode_shlibpath_var_CXX=no
18071 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18072 export_dynamic_flag_spec_CXX='$wl-E'
18073 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18074 # Instead, shared libraries are loaded at an image base (0x10000000 by
18075 # default) and relocated if they conflict, which is a slow very memory
18076 # consuming and fragmenting process. To avoid this, we pick a random,
18077 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18078 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18079 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18080 archive_expsym_cmds_CXX='$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'
18081 ;;
18082 irix5* | irix6*)
18083 case $cc_basename in
18084 CC*)
18085 # SGI C++
18086 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
18087
18088 # Archives containing C++ object files must be created using
18089 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18090 # necessary to make sure instantiated templates are included
18091 # in the archive.
18092 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18093 ;;
18094 *)
18095 if test yes = "$GXX"; then
18096 if test no = "$with_gnu_ld"; then
18097 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
18098 else
18099 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
18100 fi
18101 fi
18102 link_all_deplibs_CXX=yes
18103 ;;
18104 esac
18105 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18106 hardcode_libdir_separator_CXX=:
18107 inherit_rpath_CXX=yes
18108 ;;
18109
18110 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18111 case $cc_basename in
18112 KCC*)
18113 # Kuck and Associates, Inc. (KAI) C++ Compiler
18114
18115 # KCC will only create a shared library if the output file
18116 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18117 # to its proper name (with version) after linking.
18118 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18119 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
18120 # Commands to make compiler produce verbose output that lists
18121 # what "hidden" libraries, object files and flags are used when
18122 # linking a shared library.
18123 #
18124 # There doesn't appear to be a way to prevent this compiler from
18125 # explicitly linking system object files so we need to strip them
18126 # from the output so that they don't get included in the library
18127 # dependencies.
18128 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18129
18130 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18131 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18132
18133 # Archives containing C++ object files must be created using
18134 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18135 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18136 ;;
18137 icpc* | ecpc* )
18138 # Intel C++
18139 with_gnu_ld=yes
18140 # version 8.0 and above of icpc choke on multiply defined symbols
18141 # if we add $predep_objects and $postdep_objects, however 7.1 and
18142 # earlier do not add the objects themselves.
18143 case `$CC -V 2>&1` in
18144 *"Version 7."*)
18145 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18146 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18147 ;;
18148 *) # Version 8.0 or newer
18149 tmp_idyn=
18150 case $host_cpu in
18151 ia64*) tmp_idyn=' -i_dynamic';;
18152 esac
18153 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18154 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18155 ;;
18156 esac
18157 archive_cmds_need_lc_CXX=no
18158 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18159 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18160 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
18161 ;;
18162 pgCC* | pgcpp*)
18163 # Portland Group C++ compiler
18164 case `$CC -V` in
18165 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18166 prelink_cmds_CXX='tpldir=Template.dir~
18167 rm -rf $tpldir~
18168 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18169 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
18170 old_archive_cmds_CXX='tpldir=Template.dir~
18171 rm -rf $tpldir~
18172 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18173 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
18174 $RANLIB $oldlib'
18175 archive_cmds_CXX='tpldir=Template.dir~
18176 rm -rf $tpldir~
18177 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18178 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18179 archive_expsym_cmds_CXX='tpldir=Template.dir~
18180 rm -rf $tpldir~
18181 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18182 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18183 ;;
18184 *) # Version 6 and above use weak symbols
18185 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18186 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18187 ;;
18188 esac
18189
18190 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
18191 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18192 whole_archive_flag_spec_CXX='$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'
18193 ;;
18194 cxx*)
18195 # Compaq C++
18196 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18197 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
18198
18199 runpath_var=LD_RUN_PATH
18200 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18201 hardcode_libdir_separator_CXX=:
18202
18203 # Commands to make compiler produce verbose output that lists
18204 # what "hidden" libraries, object files and flags are used when
18205 # linking a shared library.
18206 #
18207 # There doesn't appear to be a way to prevent this compiler from
18208 # explicitly linking system object files so we need to strip them
18209 # from the output so that they don't get included in the library
18210 # dependencies.
18211 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
18212 ;;
18213 xl* | mpixl* | bgxl*)
18214 # IBM XL 8.0 on PPC, with GNU ld
18215 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18216 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18217 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18218 if test yes = "$supports_anon_versioning"; then
18219 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18220 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18221 echo "local: *; };" >> $output_objdir/$libname.ver~
18222 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
18223 fi
18224 ;;
18225 *)
18226 case `$CC -V 2>&1 | $SED 5q` in
18227 *Sun\ C*)
18228 # Sun C++ 5.9
18229 no_undefined_flag_CXX=' -zdefs'
18230 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18231 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
18232 hardcode_libdir_flag_spec_CXX='-R$libdir'
18233 whole_archive_flag_spec_CXX='$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'
18234 compiler_needs_object_CXX=yes
18235
18236 # Not sure whether something based on
18237 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18238 # would be better.
18239 output_verbose_link_cmd='func_echo_all'
18240
18241 # Archives containing C++ object files must be created using
18242 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18243 # necessary to make sure instantiated templates are included
18244 # in the archive.
18245 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18246 ;;
18247 esac
18248 ;;
18249 esac
18250 ;;
18251
18252 lynxos*)
18253 # FIXME: insert proper C++ library support
18254 ld_shlibs_CXX=no
18255 ;;
18256
18257 m88k*)
18258 # FIXME: insert proper C++ library support
18259 ld_shlibs_CXX=no
18260 ;;
18261
18262 mvs*)
18263 case $cc_basename in
18264 cxx*)
18265 # FIXME: insert proper C++ library support
18266 ld_shlibs_CXX=no
18267 ;;
18268 *)
18269 # FIXME: insert proper C++ library support
18270 ld_shlibs_CXX=no
18271 ;;
18272 esac
18273 ;;
18274
18275 *-mlibc)
18276 ld_shlibs_CXX=yes
18277 ;;
18278
18279 netbsd*)
18280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18281 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18282 wlarc=
18283 hardcode_libdir_flag_spec_CXX='-R$libdir'
18284 hardcode_direct_CXX=yes
18285 hardcode_shlibpath_var_CXX=no
18286 fi
18287 # Workaround some broken pre-1.5 toolchains
18288 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18289 ;;
18290
18291 *nto* | *qnx*)
18292 ld_shlibs_CXX=yes
18293 ;;
18294
18295 openbsd*)
18296 if test -f /usr/libexec/ld.so; then
18297 hardcode_direct_CXX=yes
18298 hardcode_shlibpath_var_CXX=no
18299 hardcode_direct_absolute_CXX=yes
18300 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18301 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
18303 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
18304 export_dynamic_flag_spec_CXX='$wl-E'
18305 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18306 fi
18307 output_verbose_link_cmd=func_echo_all
18308 else
18309 ld_shlibs_CXX=no
18310 fi
18311 ;;
18312
18313 osf3* | osf4* | osf5*)
18314 case $cc_basename in
18315 KCC*)
18316 # Kuck and Associates, Inc. (KAI) C++ Compiler
18317
18318 # KCC will only create a shared library if the output file
18319 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18320 # to its proper name (with version) after linking.
18321 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18322
18323 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18324 hardcode_libdir_separator_CXX=:
18325
18326 # Archives containing C++ object files must be created using
18327 # the KAI C++ compiler.
18328 case $host in
18329 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18330 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18331 esac
18332 ;;
18333 RCC*)
18334 # Rational C++ 2.4.1
18335 # FIXME: insert proper C++ library support
18336 ld_shlibs_CXX=no
18337 ;;
18338 cxx*)
18339 case $host in
18340 osf3*)
18341 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18342 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
18343 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18344 ;;
18345 *)
18346 allow_undefined_flag_CXX=' -expect_unresolved \*'
18347 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
18348 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18349 echo "-hidden">> $lib.exp~
18350 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
18351 $RM $lib.exp'
18352 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18353 ;;
18354 esac
18355
18356 hardcode_libdir_separator_CXX=:
18357
18358 # Commands to make compiler produce verbose output that lists
18359 # what "hidden" libraries, object files and flags are used when
18360 # linking a shared library.
18361 #
18362 # There doesn't appear to be a way to prevent this compiler from
18363 # explicitly linking system object files so we need to strip them
18364 # from the output so that they don't get included in the library
18365 # dependencies.
18366 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18367 ;;
18368 *)
18369 if test yes,no = "$GXX,$with_gnu_ld"; then
18370 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18371 case $host in
18372 osf3*)
18373 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
18374 ;;
18375 *)
18376 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
18377 ;;
18378 esac
18379
18380 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18381 hardcode_libdir_separator_CXX=:
18382
18383 # Commands to make compiler produce verbose output that lists
18384 # what "hidden" libraries, object files and flags are used when
18385 # linking a shared library.
18386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
18387
18388 else
18389 # FIXME: insert proper C++ library support
18390 ld_shlibs_CXX=no
18391 fi
18392 ;;
18393 esac
18394 ;;
18395
18396 psos*)
18397 # FIXME: insert proper C++ library support
18398 ld_shlibs_CXX=no
18399 ;;
18400
18401 serenity*)
18402 ;;
18403
18404 sunos4*)
18405 case $cc_basename in
18406 CC*)
18407 # Sun C++ 4.x
18408 # FIXME: insert proper C++ library support
18409 ld_shlibs_CXX=no
18410 ;;
18411 lcc*)
18412 # Lucid
18413 # FIXME: insert proper C++ library support
18414 ld_shlibs_CXX=no
18415 ;;
18416 *)
18417 # FIXME: insert proper C++ library support
18418 ld_shlibs_CXX=no
18419 ;;
18420 esac
18421 ;;
18422
18423 solaris*)
18424 case $cc_basename in
18425 CC* | sunCC*)
18426 # Sun C++ 4.2, 5.x and Centerline C++
18427 archive_cmds_need_lc_CXX=yes
18428 no_undefined_flag_CXX=' -zdefs'
18429 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18430 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18431 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18432
18433 hardcode_libdir_flag_spec_CXX='-R$libdir'
18434 hardcode_shlibpath_var_CXX=no
18435 case $host_os in
18436 solaris2.[0-5] | solaris2.[0-5].*) ;;
18437 *)
18438 # The compiler driver will combine and reorder linker options,
18439 # but understands '-z linker_flag'.
18440 # Supported since Solaris 2.6 (maybe 2.5.1?)
18441 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18442 ;;
18443 esac
18444 link_all_deplibs_CXX=yes
18445
18446 output_verbose_link_cmd='func_echo_all'
18447
18448 # Archives containing C++ object files must be created using
18449 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18450 # necessary to make sure instantiated templates are included
18451 # in the archive.
18452 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18453 ;;
18454 gcx*)
18455 # Green Hills C++ Compiler
18456 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18457
18458 # The C++ compiler must be used to create the archive.
18459 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18460 ;;
18461 *)
18462 # GNU C++ compiler with Solaris linker
18463 if test yes,no = "$GXX,$with_gnu_ld"; then
18464 no_undefined_flag_CXX=' $wl-z ${wl}defs'
18465 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18466 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18467 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18468 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18469
18470 # Commands to make compiler produce verbose output that lists
18471 # what "hidden" libraries, object files and flags are used when
18472 # linking a shared library.
18473 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
18474 else
18475 # g++ 2.7 appears to require '-G' NOT '-shared' on this
18476 # platform.
18477 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18478 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18479 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18480
18481 # Commands to make compiler produce verbose output that lists
18482 # what "hidden" libraries, object files and flags are used when
18483 # linking a shared library.
18484 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
18485 fi
18486
18487 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
18488 case $host_os in
18489 solaris2.[0-5] | solaris2.[0-5].*) ;;
18490 *)
18491 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18492 ;;
18493 esac
18494 fi
18495 ;;
18496 esac
18497 ;;
18498
18499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18500 no_undefined_flag_CXX='$wl-z,text'
18501 archive_cmds_need_lc_CXX=no
18502 hardcode_shlibpath_var_CXX=no
18503 runpath_var='LD_RUN_PATH'
18504
18505 case $cc_basename in
18506 CC*)
18507 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18508 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18509 ;;
18510 *)
18511 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18512 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18513 ;;
18514 esac
18515 ;;
18516
18517 sysv5* | sco3.2v5* | sco5v6*)
18518 # Note: We CANNOT use -z defs as we might desire, because we do not
18519 # link with -lc, and that would cause any symbols used from libc to
18520 # always be unresolved, which means just about no library would
18521 # ever link correctly. If we're not using GNU ld we use -z text
18522 # though, which does catch some bad symbols but isn't as heavy-handed
18523 # as -z defs.
18524 no_undefined_flag_CXX='$wl-z,text'
18525 allow_undefined_flag_CXX='$wl-z,nodefs'
18526 archive_cmds_need_lc_CXX=no
18527 hardcode_shlibpath_var_CXX=no
18528 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
18529 hardcode_libdir_separator_CXX=':'
18530 link_all_deplibs_CXX=yes
18531 export_dynamic_flag_spec_CXX='$wl-Bexport'
18532 runpath_var='LD_RUN_PATH'
18533
18534 case $cc_basename in
18535 CC*)
18536 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18537 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18538 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18539 '"$old_archive_cmds_CXX"
18540 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18541 '"$reload_cmds_CXX"
18542 ;;
18543 *)
18544 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18545 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18546 ;;
18547 esac
18548 ;;
18549
18550 tandem*)
18551 case $cc_basename in
18552 NCC*)
18553 # NonStop-UX NCC 3.20
18554 # FIXME: insert proper C++ library support
18555 ld_shlibs_CXX=no
18556 ;;
18557 *)
18558 # FIXME: insert proper C++ library support
18559 ld_shlibs_CXX=no
18560 ;;
18561 esac
18562 ;;
18563
18564 vxworks*)
18565 # FIXME: insert proper C++ library support
18566 ld_shlibs_CXX=no
18567 ;;
18568
18569 *)
18570 # FIXME: insert proper C++ library support
18571 ld_shlibs_CXX=no
18572 ;;
18573 esac
18574
18575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18576 printf "%s\n" "$ld_shlibs_CXX" >&6; }
18577 test no = "$ld_shlibs_CXX" && can_build_shared=no
18578
18579 GCC_CXX=$GXX
18580 LD_CXX=$LD
18581
18582 ## CAVEAT EMPTOR:
18583 ## There is no encapsulation within the following macros, do not change
18584 ## the running order or otherwise move them around unless you know exactly
18585 ## what you are doing...
18586 # Dependencies to place before and after the object being linked:
18587 predep_objects_CXX=
18588 postdep_objects_CXX=
18589 predeps_CXX=
18590 postdeps_CXX=
18591 compiler_lib_search_path_CXX=
18592
18593 cat > conftest.$ac_ext <<_LT_EOF
18594 class Foo
18595 {
18596 public:
18597 Foo (void) { a = 0; }
18598 private:
18599 int a;
18600 };
18601 _LT_EOF
18602
18603
18604 _lt_libdeps_save_CFLAGS=$CFLAGS
18605 case "$CC $CFLAGS " in #(
18606 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18607 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18608 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
18609 esac
18610
18611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18612 (eval $ac_compile) 2>&5
18613 ac_status=$?
18614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18615 test $ac_status = 0; }; then
18616 # Parse the compiler output and extract the necessary
18617 # objects, libraries and library flags.
18618
18619 # Sentinel used to keep track of whether or not we are before
18620 # the conftest object file.
18621 pre_test_object_deps_done=no
18622
18623 for p in `eval "$output_verbose_link_cmd"`; do
18624 case $prev$p in
18625
18626 -L* | -R* | -l*)
18627 # Some compilers place space between "-{L,R,l}" and the path.
18628 # Remove the space.
18629 if test x-L = x"$p" ||
18630 test x-R = x"$p" ||
18631 test x-l = x"$p"; then
18632 prev=$p
18633 continue
18634 fi
18635
18636 # Expand the sysroot to ease extracting the directories later.
18637 if test -z "$prev"; then
18638 case $p in
18639 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18640 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18641 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18642 esac
18643 fi
18644 case $p in
18645 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18646 esac
18647 if test no = "$pre_test_object_deps_done"; then
18648 case $prev in
18649 -L | -R)
18650 # Internal compiler library paths should come after those
18651 # provided the user. The postdeps already come after the
18652 # user supplied libs so there is no need to process them.
18653 if test -z "$compiler_lib_search_path_CXX"; then
18654 compiler_lib_search_path_CXX=$prev$p
18655 else
18656 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
18657 fi
18658 ;;
18659 # The "-l" case would never come before the object being
18660 # linked, so don't bother handling this case.
18661 esac
18662 else
18663 if test -z "$postdeps_CXX"; then
18664 postdeps_CXX=$prev$p
18665 else
18666 postdeps_CXX="${postdeps_CXX} $prev$p"
18667 fi
18668 fi
18669 prev=
18670 ;;
18671
18672 *.lto.$objext) ;; # Ignore GCC LTO objects
18673 *.$objext)
18674 # This assumes that the test object file only shows up
18675 # once in the compiler output.
18676 if test "$p" = "conftest.$objext"; then
18677 pre_test_object_deps_done=yes
18678 continue
18679 fi
18680
18681 if test no = "$pre_test_object_deps_done"; then
18682 if test -z "$predep_objects_CXX"; then
18683 predep_objects_CXX=$p
18684 else
18685 predep_objects_CXX="$predep_objects_CXX $p"
18686 fi
18687 else
18688 if test -z "$postdep_objects_CXX"; then
18689 postdep_objects_CXX=$p
18690 else
18691 postdep_objects_CXX="$postdep_objects_CXX $p"
18692 fi
18693 fi
18694 ;;
18695
18696 *) ;; # Ignore the rest.
18697
18698 esac
18699 done
18700
18701 # Clean up.
18702 rm -f a.out a.exe
18703 else
18704 echo "libtool.m4: error: problem compiling CXX test program"
18705 fi
18706
18707 $RM -f confest.$objext
18708 CFLAGS=$_lt_libdeps_save_CFLAGS
18709
18710 # PORTME: override above test on systems where it is broken
18711 case $host_os in
18712 interix[3-9]*)
18713 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18714 # hack all around it, let's just trust "g++" to DTRT.
18715 predep_objects_CXX=
18716 postdep_objects_CXX=
18717 postdeps_CXX=
18718 ;;
18719 esac
18720
18721
18722 case " $postdeps_CXX " in
18723 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18724 esac
18725 compiler_lib_search_dirs_CXX=
18726 if test -n "${compiler_lib_search_path_CXX}"; then
18727 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
18728 fi
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760 lt_prog_compiler_wl_CXX=
18761 lt_prog_compiler_pic_CXX=
18762 lt_prog_compiler_static_CXX=
18763
18764
18765 # C++ specific cases for pic, static, wl, etc.
18766 if test yes = "$GXX"; then
18767 lt_prog_compiler_wl_CXX='-Wl,'
18768 lt_prog_compiler_static_CXX='-static'
18769
18770 case $host_os in
18771 aix*)
18772 # All AIX code is PIC.
18773 if test ia64 = "$host_cpu"; then
18774 # AIX 5 now supports IA64 processor
18775 lt_prog_compiler_static_CXX='-Bstatic'
18776 fi
18777 lt_prog_compiler_pic_CXX='-fPIC'
18778 ;;
18779
18780 amigaos*)
18781 case $host_cpu in
18782 powerpc)
18783 # see comment about AmigaOS4 .so support
18784 lt_prog_compiler_pic_CXX='-fPIC'
18785 ;;
18786 m68k)
18787 # FIXME: we need at least 68020 code to build shared libraries, but
18788 # adding the '-m68020' flag to GCC prevents building anything better,
18789 # like '-m68040'.
18790 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18791 ;;
18792 esac
18793 ;;
18794
18795 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18796 # PIC is the default for these OSes.
18797 ;;
18798 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18799 # This hack is so that the source file can tell whether it is being
18800 # built for inclusion in a dll (and should export symbols for example).
18801 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18802 # (--disable-auto-import) libraries
18803 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18804 case $host_os in
18805 os2*)
18806 lt_prog_compiler_static_CXX='$wl-static'
18807 ;;
18808 esac
18809 ;;
18810 darwin* | rhapsody*)
18811 # PIC is the default on this platform
18812 # Common symbols not allowed in MH_DYLIB files
18813 lt_prog_compiler_pic_CXX='-fno-common'
18814 ;;
18815 *djgpp*)
18816 # DJGPP does not support shared libraries at all
18817 lt_prog_compiler_pic_CXX=
18818 ;;
18819 haiku*)
18820 # PIC is the default for Haiku.
18821 # The "-static" flag exists, but is broken.
18822 lt_prog_compiler_static_CXX=
18823 ;;
18824 interix[3-9]*)
18825 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18826 # Instead, we relocate shared libraries at runtime.
18827 ;;
18828 sysv4*MP*)
18829 if test -d /usr/nec; then
18830 lt_prog_compiler_pic_CXX=-Kconform_pic
18831 fi
18832 ;;
18833 hpux*)
18834 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18835 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18836 # sets the default TLS model and affects inlining.
18837 case $host_cpu in
18838 hppa*64*)
18839 ;;
18840 *)
18841 lt_prog_compiler_pic_CXX='-fPIC'
18842 ;;
18843 esac
18844 ;;
18845 *qnx* | *nto*)
18846 # QNX uses GNU C++, but need to define -shared option too, otherwise
18847 # it will coredump.
18848 lt_prog_compiler_pic_CXX='-fPIC -shared'
18849 ;;
18850 *)
18851 lt_prog_compiler_pic_CXX='-fPIC'
18852 ;;
18853 esac
18854 else
18855 case $host_os in
18856 aix[4-9]*)
18857 # All AIX code is PIC.
18858 if test ia64 = "$host_cpu"; then
18859 # AIX 5 now supports IA64 processor
18860 lt_prog_compiler_static_CXX='-Bstatic'
18861 else
18862 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18863 fi
18864 ;;
18865 chorus*)
18866 case $cc_basename in
18867 cxch68*)
18868 # Green Hills C++ Compiler
18869 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
18870 ;;
18871 esac
18872 ;;
18873 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18874 # This hack is so that the source file can tell whether it is being
18875 # built for inclusion in a dll (and should export symbols for example).
18876 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18877 ;;
18878 dgux*)
18879 case $cc_basename in
18880 ec++*)
18881 lt_prog_compiler_pic_CXX='-KPIC'
18882 ;;
18883 ghcx*)
18884 # Green Hills C++ Compiler
18885 lt_prog_compiler_pic_CXX='-pic'
18886 ;;
18887 *)
18888 ;;
18889 esac
18890 ;;
18891 freebsd* | dragonfly* | midnightbsd*)
18892 # FreeBSD uses GNU C++
18893 ;;
18894 hpux9* | hpux10* | hpux11*)
18895 case $cc_basename in
18896 CC*)
18897 lt_prog_compiler_wl_CXX='-Wl,'
18898 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18899 if test ia64 != "$host_cpu"; then
18900 lt_prog_compiler_pic_CXX='+Z'
18901 fi
18902 ;;
18903 aCC*)
18904 lt_prog_compiler_wl_CXX='-Wl,'
18905 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18906 case $host_cpu in
18907 hppa*64*|ia64*)
18908 # +Z the default
18909 ;;
18910 *)
18911 lt_prog_compiler_pic_CXX='+Z'
18912 ;;
18913 esac
18914 ;;
18915 *)
18916 ;;
18917 esac
18918 ;;
18919 interix*)
18920 # This is c89, which is MS Visual C++ (no shared libs)
18921 # Anyone wants to do a port?
18922 ;;
18923 irix5* | irix6* | nonstopux*)
18924 case $cc_basename in
18925 CC*)
18926 lt_prog_compiler_wl_CXX='-Wl,'
18927 lt_prog_compiler_static_CXX='-non_shared'
18928 # CC pic flag -KPIC is the default.
18929 ;;
18930 *)
18931 ;;
18932 esac
18933 ;;
18934 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18935 case $cc_basename in
18936 KCC*)
18937 # KAI C++ Compiler
18938 lt_prog_compiler_wl_CXX='--backend -Wl,'
18939 lt_prog_compiler_pic_CXX='-fPIC'
18940 ;;
18941 ecpc* )
18942 # old Intel C++ for x86_64, which still supported -KPIC.
18943 lt_prog_compiler_wl_CXX='-Wl,'
18944 lt_prog_compiler_pic_CXX='-KPIC'
18945 lt_prog_compiler_static_CXX='-static'
18946 ;;
18947 icpc* )
18948 # Intel C++, used to be incompatible with GCC.
18949 # ICC 10 doesn't accept -KPIC any more.
18950 lt_prog_compiler_wl_CXX='-Wl,'
18951 lt_prog_compiler_pic_CXX='-fPIC'
18952 lt_prog_compiler_static_CXX='-static'
18953 ;;
18954 pgCC* | pgcpp*)
18955 # Portland Group C++ compiler
18956 lt_prog_compiler_wl_CXX='-Wl,'
18957 lt_prog_compiler_pic_CXX='-fpic'
18958 lt_prog_compiler_static_CXX='-Bstatic'
18959 ;;
18960 cxx*)
18961 # Compaq C++
18962 # Make sure the PIC flag is empty. It appears that all Alpha
18963 # Linux and Compaq Tru64 Unix objects are PIC.
18964 lt_prog_compiler_pic_CXX=
18965 lt_prog_compiler_static_CXX='-non_shared'
18966 ;;
18967 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18968 # IBM XL 8.0, 9.0 on PPC and BlueGene
18969 lt_prog_compiler_wl_CXX='-Wl,'
18970 lt_prog_compiler_pic_CXX='-qpic'
18971 lt_prog_compiler_static_CXX='-qstaticlink'
18972 ;;
18973 *)
18974 case `$CC -V 2>&1 | $SED 5q` in
18975 *Sun\ C*)
18976 # Sun C++ 5.9
18977 lt_prog_compiler_pic_CXX='-KPIC'
18978 lt_prog_compiler_static_CXX='-Bstatic'
18979 lt_prog_compiler_wl_CXX='-Qoption ld '
18980 ;;
18981 esac
18982 ;;
18983 esac
18984 ;;
18985 lynxos*)
18986 ;;
18987 m88k*)
18988 ;;
18989 mvs*)
18990 case $cc_basename in
18991 cxx*)
18992 lt_prog_compiler_pic_CXX='-W c,exportall'
18993 ;;
18994 *)
18995 ;;
18996 esac
18997 ;;
18998 netbsd* | netbsdelf*-gnu)
18999 ;;
19000 *-mlibc)
19001 ;;
19002 *qnx* | *nto*)
19003 # QNX uses GNU C++, but need to define -shared option too, otherwise
19004 # it will coredump.
19005 lt_prog_compiler_pic_CXX='-fPIC -shared'
19006 ;;
19007 osf3* | osf4* | osf5*)
19008 case $cc_basename in
19009 KCC*)
19010 lt_prog_compiler_wl_CXX='--backend -Wl,'
19011 ;;
19012 RCC*)
19013 # Rational C++ 2.4.1
19014 lt_prog_compiler_pic_CXX='-pic'
19015 ;;
19016 cxx*)
19017 # Digital/Compaq C++
19018 lt_prog_compiler_wl_CXX='-Wl,'
19019 # Make sure the PIC flag is empty. It appears that all Alpha
19020 # Linux and Compaq Tru64 Unix objects are PIC.
19021 lt_prog_compiler_pic_CXX=
19022 lt_prog_compiler_static_CXX='-non_shared'
19023 ;;
19024 *)
19025 ;;
19026 esac
19027 ;;
19028 psos*)
19029 ;;
19030 serenity*)
19031 ;;
19032 solaris*)
19033 case $cc_basename in
19034 CC* | sunCC*)
19035 # Sun C++ 4.2, 5.x and Centerline C++
19036 lt_prog_compiler_pic_CXX='-KPIC'
19037 lt_prog_compiler_static_CXX='-Bstatic'
19038 lt_prog_compiler_wl_CXX='-Qoption ld '
19039 ;;
19040 gcx*)
19041 # Green Hills C++ Compiler
19042 lt_prog_compiler_pic_CXX='-PIC'
19043 ;;
19044 *)
19045 ;;
19046 esac
19047 ;;
19048 sunos4*)
19049 case $cc_basename in
19050 CC*)
19051 # Sun C++ 4.x
19052 lt_prog_compiler_pic_CXX='-pic'
19053 lt_prog_compiler_static_CXX='-Bstatic'
19054 ;;
19055 lcc*)
19056 # Lucid
19057 lt_prog_compiler_pic_CXX='-pic'
19058 ;;
19059 *)
19060 ;;
19061 esac
19062 ;;
19063 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19064 case $cc_basename in
19065 CC*)
19066 lt_prog_compiler_wl_CXX='-Wl,'
19067 lt_prog_compiler_pic_CXX='-KPIC'
19068 lt_prog_compiler_static_CXX='-Bstatic'
19069 ;;
19070 esac
19071 ;;
19072 tandem*)
19073 case $cc_basename in
19074 NCC*)
19075 # NonStop-UX NCC 3.20
19076 lt_prog_compiler_pic_CXX='-KPIC'
19077 ;;
19078 *)
19079 ;;
19080 esac
19081 ;;
19082 vxworks*)
19083 ;;
19084 *)
19085 lt_prog_compiler_can_build_shared_CXX=no
19086 ;;
19087 esac
19088 fi
19089
19090 case $host_os in
19091 # For platforms that do not support PIC, -DPIC is meaningless:
19092 *djgpp*)
19093 lt_prog_compiler_pic_CXX=
19094 ;;
19095 *)
19096 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19097 ;;
19098 esac
19099
19100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19101 printf %s "checking for $compiler option to produce PIC... " >&6; }
19102 if test ${lt_cv_prog_compiler_pic_CXX+y}
19103 then :
19104 printf %s "(cached) " >&6
19105 else case e in #(
19106 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
19107 esac
19108 fi
19109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19110 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
19111 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19112
19113 #
19114 # Check to make sure the PIC flag actually works.
19115 #
19116 if test -n "$lt_prog_compiler_pic_CXX"; then
19117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19118 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19119 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19120 then :
19121 printf %s "(cached) " >&6
19122 else case e in #(
19123 e) lt_cv_prog_compiler_pic_works_CXX=no
19124 ac_outfile=conftest.$ac_objext
19125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19126 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
19127 # Insert the option either (1) after the last *FLAGS variable, or
19128 # (2) before a word containing "conftest.", or (3) at the end.
19129 # Note that $ac_compile itself does not contain backslashes and begins
19130 # with a dollar sign (not a hyphen), so the echo should work correctly.
19131 # The option is referenced via a variable to avoid confusing sed.
19132 lt_compile=`echo "$ac_compile" | $SED \
19133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19135 -e 's:$: $lt_compiler_flag:'`
19136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19137 (eval "$lt_compile" 2>conftest.err)
19138 ac_status=$?
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 if (exit $ac_status) && test -s "$ac_outfile"; then
19142 # The compiler can only warn and ignore the option if not recognized
19143 # So say no if there are warnings other than the usual output.
19144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19147 lt_cv_prog_compiler_pic_works_CXX=yes
19148 fi
19149 fi
19150 $RM conftest*
19151 ;;
19152 esac
19153 fi
19154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19155 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19156
19157 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19158 case $lt_prog_compiler_pic_CXX in
19159 "" | " "*) ;;
19160 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19161 esac
19162 else
19163 lt_prog_compiler_pic_CXX=
19164 lt_prog_compiler_can_build_shared_CXX=no
19165 fi
19166
19167 fi
19168
19169
19170
19171
19172
19173 #
19174 # Check to make sure the static flag actually works.
19175 #
19176 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19178 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19179 if test ${lt_cv_prog_compiler_static_works_CXX+y}
19180 then :
19181 printf %s "(cached) " >&6
19182 else case e in #(
19183 e) lt_cv_prog_compiler_static_works_CXX=no
19184 save_LDFLAGS=$LDFLAGS
19185 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19186 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19188 # The linker can only warn and ignore the option if not recognized
19189 # So say no if there are warnings
19190 if test -s conftest.err; then
19191 # Append any errors to the config.log.
19192 cat conftest.err 1>&5
19193 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19195 if diff conftest.exp conftest.er2 >/dev/null; then
19196 lt_cv_prog_compiler_static_works_CXX=yes
19197 fi
19198 else
19199 lt_cv_prog_compiler_static_works_CXX=yes
19200 fi
19201 fi
19202 $RM -r conftest*
19203 LDFLAGS=$save_LDFLAGS
19204 ;;
19205 esac
19206 fi
19207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19208 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19209
19210 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19211 :
19212 else
19213 lt_prog_compiler_static_CXX=
19214 fi
19215
19216
19217
19218
19219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19220 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19221 if test ${lt_cv_prog_compiler_c_o_CXX+y}
19222 then :
19223 printf %s "(cached) " >&6
19224 else case e in #(
19225 e) lt_cv_prog_compiler_c_o_CXX=no
19226 $RM -r conftest 2>/dev/null
19227 mkdir conftest
19228 cd conftest
19229 mkdir out
19230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19231
19232 lt_compiler_flag="-o out/conftest2.$ac_objext"
19233 # Insert the option either (1) after the last *FLAGS variable, or
19234 # (2) before a word containing "conftest.", or (3) at the end.
19235 # Note that $ac_compile itself does not contain backslashes and begins
19236 # with a dollar sign (not a hyphen), so the echo should work correctly.
19237 lt_compile=`echo "$ac_compile" | $SED \
19238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19240 -e 's:$: $lt_compiler_flag:'`
19241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19242 (eval "$lt_compile" 2>out/conftest.err)
19243 ac_status=$?
19244 cat out/conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19247 then
19248 # The compiler can only warn and ignore the option if not recognized
19249 # So say no if there are warnings
19250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19253 lt_cv_prog_compiler_c_o_CXX=yes
19254 fi
19255 fi
19256 chmod u+w . 2>&5
19257 $RM conftest*
19258 # SGI C++ compiler will create directory out/ii_files/ for
19259 # template instantiation
19260 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19261 $RM out/* && rmdir out
19262 cd ..
19263 $RM -r conftest
19264 $RM conftest*
19265 ;;
19266 esac
19267 fi
19268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19269 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19270
19271
19272
19273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19274 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19275 if test ${lt_cv_prog_compiler_c_o_CXX+y}
19276 then :
19277 printf %s "(cached) " >&6
19278 else case e in #(
19279 e) lt_cv_prog_compiler_c_o_CXX=no
19280 $RM -r conftest 2>/dev/null
19281 mkdir conftest
19282 cd conftest
19283 mkdir out
19284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19285
19286 lt_compiler_flag="-o out/conftest2.$ac_objext"
19287 # Insert the option either (1) after the last *FLAGS variable, or
19288 # (2) before a word containing "conftest.", or (3) at the end.
19289 # Note that $ac_compile itself does not contain backslashes and begins
19290 # with a dollar sign (not a hyphen), so the echo should work correctly.
19291 lt_compile=`echo "$ac_compile" | $SED \
19292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19294 -e 's:$: $lt_compiler_flag:'`
19295 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19296 (eval "$lt_compile" 2>out/conftest.err)
19297 ac_status=$?
19298 cat out/conftest.err >&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19301 then
19302 # The compiler can only warn and ignore the option if not recognized
19303 # So say no if there are warnings
19304 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19305 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19306 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19307 lt_cv_prog_compiler_c_o_CXX=yes
19308 fi
19309 fi
19310 chmod u+w . 2>&5
19311 $RM conftest*
19312 # SGI C++ compiler will create directory out/ii_files/ for
19313 # template instantiation
19314 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19315 $RM out/* && rmdir out
19316 cd ..
19317 $RM -r conftest
19318 $RM conftest*
19319 ;;
19320 esac
19321 fi
19322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19323 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19324
19325
19326
19327
19328 hard_links=nottested
19329 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
19330 # do not overwrite the value of need_locks provided by the user
19331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19332 printf %s "checking if we can lock with hard links... " >&6; }
19333 hard_links=yes
19334 $RM conftest*
19335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19336 touch conftest.a
19337 ln conftest.a conftest.b 2>&5 || hard_links=no
19338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19340 printf "%s\n" "$hard_links" >&6; }
19341 if test no = "$hard_links"; then
19342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19343 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19344 need_locks=warn
19345 fi
19346 else
19347 need_locks=no
19348 fi
19349
19350
19351
19352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19353 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19354
19355 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19356 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19357 case $host_os in
19358 aix[4-9]*)
19359 # If we're using GNU nm, then we don't want the "-C" option.
19360 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
19361 # Without the "-l" option, or with the "-B" option, AIX nm treats
19362 # weak defined symbols like other global defined symbols, whereas
19363 # GNU nm marks them as "W".
19364 # While the 'weak' keyword is ignored in the Export File, we need
19365 # it in the Import File for the 'aix-soname' feature, so we have
19366 # to replace the "-B" option with "-P" for AIX nm.
19367 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19368 export_symbols_cmds_CXX='$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'
19369 else
19370 export_symbols_cmds_CXX='`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'
19371 fi
19372 ;;
19373 pw32*)
19374 export_symbols_cmds_CXX=$ltdll_cmds
19375 ;;
19376 cygwin* | mingw* | windows* | cegcc*)
19377 case $cc_basename in
19378 cl* | icl*)
19379 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19380 ;;
19381 *)
19382 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
19383 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19384 ;;
19385 esac
19386 ;;
19387 *)
19388 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19389 ;;
19390 esac
19391
19392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19393 printf "%s\n" "$ld_shlibs_CXX" >&6; }
19394 test no = "$ld_shlibs_CXX" && can_build_shared=no
19395
19396 with_gnu_ld_CXX=$with_gnu_ld
19397
19398
19399
19400
19401
19402
19403 #
19404 # Do we need to explicitly link libc?
19405 #
19406 case "x$archive_cmds_need_lc_CXX" in
19407 x|xyes)
19408 # Assume -lc should be added
19409 archive_cmds_need_lc_CXX=yes
19410
19411 if test yes,yes = "$GCC,$enable_shared"; then
19412 case $archive_cmds_CXX in
19413 *'~'*)
19414 # FIXME: we may have to deal with multi-command sequences.
19415 ;;
19416 '$CC '*)
19417 # Test whether the compiler implicitly links with -lc since on some
19418 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19419 # to ld, don't add -lc before -lgcc.
19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19421 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
19422 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
19423 then :
19424 printf %s "(cached) " >&6
19425 else case e in #(
19426 e) $RM conftest*
19427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19428
19429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19430 (eval $ac_compile) 2>&5
19431 ac_status=$?
19432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19433 test $ac_status = 0; } 2>conftest.err; then
19434 soname=conftest
19435 lib=conftest
19436 libobjs=conftest.$ac_objext
19437 deplibs=
19438 wl=$lt_prog_compiler_wl_CXX
19439 pic_flag=$lt_prog_compiler_pic_CXX
19440 compiler_flags=-v
19441 linker_flags=-v
19442 verstring=
19443 output_objdir=.
19444 libname=conftest
19445 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19446 allow_undefined_flag_CXX=
19447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19448 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19449 ac_status=$?
19450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19451 test $ac_status = 0; }
19452 then
19453 lt_cv_archive_cmds_need_lc_CXX=no
19454 else
19455 lt_cv_archive_cmds_need_lc_CXX=yes
19456 fi
19457 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19458 else
19459 cat conftest.err 1>&5
19460 fi
19461 $RM conftest*
19462 ;;
19463 esac
19464 fi
19465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19466 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19467 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19468 ;;
19469 esac
19470 fi
19471 ;;
19472 esac
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19536 printf %s "checking dynamic linker characteristics... " >&6; }
19537
19538 library_names_spec=
19539 libname_spec='lib$name'
19540 soname_spec=
19541 shrext_cmds=.so
19542 postinstall_cmds=
19543 postuninstall_cmds=
19544 finish_cmds=
19545 finish_eval=
19546 shlibpath_var=
19547 shlibpath_overrides_runpath=unknown
19548 version_type=none
19549 dynamic_linker="$host_os ld.so"
19550 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19551 need_lib_prefix=unknown
19552 hardcode_into_libs=no
19553
19554 # when you set need_version to no, make sure it does not cause -set_version
19555 # flags to be left without arguments
19556 need_version=unknown
19557
19558
19559
19560 case $host_os in
19561 aix3*)
19562 version_type=linux # correct to gnu/linux during the next big refactor
19563 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19564 shlibpath_var=LIBPATH
19565
19566 # AIX 3 has no versioning support, so we append a major version to the name.
19567 soname_spec='$libname$release$shared_ext$major'
19568 ;;
19569
19570 aix[4-9]*)
19571 version_type=linux # correct to gnu/linux during the next big refactor
19572 need_lib_prefix=no
19573 need_version=no
19574 hardcode_into_libs=yes
19575 if test ia64 = "$host_cpu"; then
19576 # AIX 5 supports IA64
19577 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19578 shlibpath_var=LD_LIBRARY_PATH
19579 else
19580 # With GCC up to 2.95.x, collect2 would create an import file
19581 # for dependence libraries. The import file would start with
19582 # the line '#! .'. This would cause the generated library to
19583 # depend on '.', always an invalid library. This was fixed in
19584 # development snapshots of GCC prior to 3.0.
19585 case $host_os in
19586 aix4 | aix4.[01] | aix4.[01].*)
19587 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19588 echo ' yes '
19589 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19590 :
19591 else
19592 can_build_shared=no
19593 fi
19594 ;;
19595 esac
19596 # Using Import Files as archive members, it is possible to support
19597 # filename-based versioning of shared library archives on AIX. While
19598 # this would work for both with and without runtime linking, it will
19599 # prevent static linking of such archives. So we do filename-based
19600 # shared library versioning with .so extension only, which is used
19601 # when both runtime linking and shared linking is enabled.
19602 # Unfortunately, runtime linking may impact performance, so we do
19603 # not want this to be the default eventually. Also, we use the
19604 # versioned .so libs for executables only if there is the -brtl
19605 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
19606 # To allow for filename-based versioning support, we need to create
19607 # libNAME.so.V as an archive file, containing:
19608 # *) an Import File, referring to the versioned filename of the
19609 # archive as well as the shared archive member, telling the
19610 # bitwidth (32 or 64) of that shared object, and providing the
19611 # list of exported symbols of that shared object, eventually
19612 # decorated with the 'weak' keyword
19613 # *) the shared object with the F_LOADONLY flag set, to really avoid
19614 # it being seen by the linker.
19615 # At run time we better use the real file rather than another symlink,
19616 # but for link time we create the symlink libNAME.so -> libNAME.so.V
19617
19618 case $with_aix_soname,$aix_use_runtimelinking in
19619 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19620 # soname into executable. Probably we can add versioning support to
19621 # collect2, so additional links can be useful in future.
19622 aix,yes) # traditional libtool
19623 dynamic_linker='AIX unversionable lib.so'
19624 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19625 # instead of lib<name>.a to let people know that these are not
19626 # typical AIX shared libraries.
19627 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19628 ;;
19629 aix,no) # traditional AIX only
19630 dynamic_linker='AIX lib.a(lib.so.V)'
19631 # We preserve .a as extension for shared libraries through AIX4.2
19632 # and later when we are not doing run time linking.
19633 library_names_spec='$libname$release.a $libname.a'
19634 soname_spec='$libname$release$shared_ext$major'
19635 ;;
19636 svr4,*) # full svr4 only
19637 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19638 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19639 # We do not specify a path in Import Files, so LIBPATH fires.
19640 shlibpath_overrides_runpath=yes
19641 ;;
19642 *,yes) # both, prefer svr4
19643 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19644 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19645 # unpreferred sharedlib libNAME.a needs extra handling
19646 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"'
19647 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"'
19648 # We do not specify a path in Import Files, so LIBPATH fires.
19649 shlibpath_overrides_runpath=yes
19650 ;;
19651 *,no) # both, prefer aix
19652 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19653 library_names_spec='$libname$release.a $libname.a'
19654 soname_spec='$libname$release$shared_ext$major'
19655 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19656 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)'
19657 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"'
19658 ;;
19659 esac
19660 shlibpath_var=LIBPATH
19661 fi
19662 ;;
19663
19664 amigaos*)
19665 case $host_cpu in
19666 powerpc)
19667 # Since July 2007 AmigaOS4 officially supports .so libraries.
19668 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19670 ;;
19671 m68k)
19672 library_names_spec='$libname.ixlibrary $libname.a'
19673 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19674 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'
19675 ;;
19676 esac
19677 ;;
19678
19679 beos*)
19680 library_names_spec='$libname$shared_ext'
19681 dynamic_linker="$host_os ld.so"
19682 shlibpath_var=LIBRARY_PATH
19683 ;;
19684
19685 bsdi[45]*)
19686 version_type=linux # correct to gnu/linux during the next big refactor
19687 need_version=no
19688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19689 soname_spec='$libname$release$shared_ext$major'
19690 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19691 shlibpath_var=LD_LIBRARY_PATH
19692 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19693 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19694 # the default ld.so.conf also contains /usr/contrib/lib and
19695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19696 # libtool to hard-code these into programs
19697 ;;
19698
19699 cygwin* | mingw* | windows* | pw32* | cegcc*)
19700 version_type=windows
19701 shrext_cmds=.dll
19702 need_version=no
19703 need_lib_prefix=no
19704
19705 case $GCC,$cc_basename in
19706 yes,*)
19707 # gcc
19708 library_names_spec='$libname.dll.a'
19709 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19710 # If user builds GCC with multilib enabled,
19711 # it should just install on $(libdir)
19712 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
19713 if test xyes = x"$multilib"; then
19714 postinstall_cmds='base_file=`basename \$file`~
19715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19716 dldir=$destdir/`dirname \$dlpath`~
19717 $install_prog $dir/$dlname $destdir/$dlname~
19718 chmod a+x $destdir/$dlname~
19719 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19720 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
19721 fi'
19722 else
19723 postinstall_cmds='base_file=`basename \$file`~
19724 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19725 dldir=$destdir/`dirname \$dlpath`~
19726 test -d \$dldir || mkdir -p \$dldir~
19727 $install_prog $dir/$dlname \$dldir/$dlname~
19728 chmod a+x \$dldir/$dlname~
19729 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19730 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19731 fi'
19732 fi
19733 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19734 dlpath=$dir/\$dldll~
19735 $RM \$dlpath'
19736 shlibpath_overrides_runpath=yes
19737
19738 case $host_os in
19739 cygwin*)
19740 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19741 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19742
19743 ;;
19744 mingw* | windows* | cegcc*)
19745 # MinGW DLLs use traditional 'lib' prefix
19746 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19747 ;;
19748 pw32*)
19749 # pw32 DLLs use 'pw' prefix rather than 'lib'
19750 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19751 ;;
19752 esac
19753 dynamic_linker='Win32 ld.exe'
19754 ;;
19755
19756 *,cl* | *,icl*)
19757 # Native MSVC or ICC
19758 libname_spec='$name'
19759 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19760 library_names_spec='$libname.dll.lib'
19761
19762 case $build_os in
19763 mingw* | windows*)
19764 sys_lib_search_path_spec=
19765 lt_save_ifs=$IFS
19766 IFS=';'
19767 for lt_path in $LIB
19768 do
19769 IFS=$lt_save_ifs
19770 # Let DOS variable expansion print the short 8.3 style file name.
19771 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19772 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19773 done
19774 IFS=$lt_save_ifs
19775 # Convert to MSYS style.
19776 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19777 ;;
19778 cygwin*)
19779 # Convert to unix form, then to dos form, then back to unix form
19780 # but this time dos style (no spaces!) so that the unix form looks
19781 # like /cygdrive/c/PROGRA~1:/cygdr...
19782 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19783 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19784 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19785 ;;
19786 *)
19787 sys_lib_search_path_spec=$LIB
19788 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19789 # It is most probably a Windows format PATH.
19790 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19791 else
19792 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19793 fi
19794 # FIXME: find the short name or the path components, as spaces are
19795 # common. (e.g. "Program Files" -> "PROGRA~1")
19796 ;;
19797 esac
19798
19799 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19800 postinstall_cmds='base_file=`basename \$file`~
19801 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19802 dldir=$destdir/`dirname \$dlpath`~
19803 test -d \$dldir || mkdir -p \$dldir~
19804 $install_prog $dir/$dlname \$dldir/$dlname'
19805 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19806 dlpath=$dir/\$dldll~
19807 $RM \$dlpath'
19808 shlibpath_overrides_runpath=yes
19809 dynamic_linker='Win32 link.exe'
19810 ;;
19811
19812 *)
19813 # Assume MSVC and ICC wrapper
19814 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19815 dynamic_linker='Win32 ld.exe'
19816 ;;
19817 esac
19818 # FIXME: first we should search . and the directory the executable is in
19819 shlibpath_var=PATH
19820 ;;
19821
19822 darwin* | rhapsody*)
19823 dynamic_linker="$host_os dyld"
19824 version_type=darwin
19825 need_lib_prefix=no
19826 need_version=no
19827 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19828 soname_spec='$libname$release$major$shared_ext'
19829 shlibpath_overrides_runpath=yes
19830 shlibpath_var=DYLD_LIBRARY_PATH
19831 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19832
19833 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19834 ;;
19835
19836 dgux*)
19837 version_type=linux # correct to gnu/linux during the next big refactor
19838 need_lib_prefix=no
19839 need_version=no
19840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19841 soname_spec='$libname$release$shared_ext$major'
19842 shlibpath_var=LD_LIBRARY_PATH
19843 ;;
19844
19845 freebsd* | dragonfly* | midnightbsd*)
19846 # DragonFly does not have aout. When/if they implement a new
19847 # versioning mechanism, adjust this.
19848 if test -x /usr/bin/objformat; then
19849 objformat=`/usr/bin/objformat`
19850 else
19851 case $host_os in
19852 freebsd[23].*) objformat=aout ;;
19853 *) objformat=elf ;;
19854 esac
19855 fi
19856 version_type=freebsd-$objformat
19857 case $version_type in
19858 freebsd-elf*)
19859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19860 soname_spec='$libname$release$shared_ext$major'
19861 need_version=no
19862 need_lib_prefix=no
19863 ;;
19864 freebsd-*)
19865 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19866 need_version=yes
19867 ;;
19868 esac
19869 case $host_cpu in
19870 powerpc64)
19871 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
19872 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
19873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19874 /* end confdefs.h. */
19875 int test_pointer_size[sizeof (void *) - 5];
19876
19877 _ACEOF
19878 if ac_fn_cxx_try_compile "$LINENO"
19879 then :
19880 shlibpath_var=LD_LIBRARY_PATH
19881 else case e in #(
19882 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
19883 esac
19884 fi
19885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19886 ;;
19887 *)
19888 shlibpath_var=LD_LIBRARY_PATH
19889 ;;
19890 esac
19891 case $host_os in
19892 freebsd2.*)
19893 shlibpath_overrides_runpath=yes
19894 ;;
19895 freebsd3.[01]* | freebsdelf3.[01]*)
19896 shlibpath_overrides_runpath=yes
19897 hardcode_into_libs=yes
19898 ;;
19899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19901 shlibpath_overrides_runpath=no
19902 hardcode_into_libs=yes
19903 ;;
19904 *) # from 4.6 on, and DragonFly
19905 shlibpath_overrides_runpath=yes
19906 hardcode_into_libs=yes
19907 ;;
19908 esac
19909 ;;
19910
19911 haiku*)
19912 version_type=linux # correct to gnu/linux during the next big refactor
19913 need_lib_prefix=no
19914 need_version=no
19915 dynamic_linker="$host_os runtime_loader"
19916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19917 soname_spec='$libname$release$shared_ext$major'
19918 shlibpath_var=LIBRARY_PATH
19919 shlibpath_overrides_runpath=no
19920 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
19921 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
19922 hardcode_into_libs=no
19923 ;;
19924
19925 hpux9* | hpux10* | hpux11*)
19926 # Give a soname corresponding to the major version so that dld.sl refuses to
19927 # link against other versions.
19928 version_type=sunos
19929 need_lib_prefix=no
19930 need_version=no
19931 case $host_cpu in
19932 ia64*)
19933 shrext_cmds='.so'
19934 hardcode_into_libs=yes
19935 dynamic_linker="$host_os dld.so"
19936 shlibpath_var=LD_LIBRARY_PATH
19937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19939 soname_spec='$libname$release$shared_ext$major'
19940 if test 32 = "$HPUX_IA64_MODE"; then
19941 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19942 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19943 else
19944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19945 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19946 fi
19947 ;;
19948 hppa*64*)
19949 shrext_cmds='.sl'
19950 hardcode_into_libs=yes
19951 dynamic_linker="$host_os dld.sl"
19952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19955 soname_spec='$libname$release$shared_ext$major'
19956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19958 ;;
19959 *)
19960 shrext_cmds='.sl'
19961 dynamic_linker="$host_os dld.sl"
19962 shlibpath_var=SHLIB_PATH
19963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19965 soname_spec='$libname$release$shared_ext$major'
19966 ;;
19967 esac
19968 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19969 postinstall_cmds='chmod 555 $lib'
19970 # or fails outright, so override atomically:
19971 install_override_mode=555
19972 ;;
19973
19974 interix[3-9]*)
19975 version_type=linux # correct to gnu/linux during the next big refactor
19976 need_lib_prefix=no
19977 need_version=no
19978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19979 soname_spec='$libname$release$shared_ext$major'
19980 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19981 shlibpath_var=LD_LIBRARY_PATH
19982 shlibpath_overrides_runpath=no
19983 hardcode_into_libs=yes
19984 ;;
19985
19986 irix5* | irix6* | nonstopux*)
19987 case $host_os in
19988 nonstopux*) version_type=nonstopux ;;
19989 *)
19990 if test yes = "$lt_cv_prog_gnu_ld"; then
19991 version_type=linux # correct to gnu/linux during the next big refactor
19992 else
19993 version_type=irix
19994 fi ;;
19995 esac
19996 need_lib_prefix=no
19997 need_version=no
19998 soname_spec='$libname$release$shared_ext$major'
19999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
20000 case $host_os in
20001 irix5* | nonstopux*)
20002 libsuff= shlibsuff=
20003 ;;
20004 *)
20005 case $LD in # libtool.m4 will add one of these switches to LD
20006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20007 libsuff= shlibsuff= libmagic=32-bit;;
20008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20009 libsuff=32 shlibsuff=N32 libmagic=N32;;
20010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20011 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20012 *) libsuff= shlibsuff= libmagic=never-match;;
20013 esac
20014 ;;
20015 esac
20016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20017 shlibpath_overrides_runpath=no
20018 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
20019 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
20020 hardcode_into_libs=yes
20021 ;;
20022
20023 # No shared lib support for Linux oldld, aout, or coff.
20024 linux*oldld* | linux*aout* | linux*coff*)
20025 dynamic_linker=no
20026 ;;
20027
20028 linux*android*)
20029 version_type=none # Android doesn't support versioned libraries.
20030 need_lib_prefix=no
20031 need_version=no
20032 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
20033 soname_spec='$libname$release$shared_ext'
20034 finish_cmds=
20035 shlibpath_var=LD_LIBRARY_PATH
20036 shlibpath_overrides_runpath=yes
20037
20038 # This implies no fast_install, which is unacceptable.
20039 # Some rework will be needed to allow for fast_install
20040 # before this can be enabled.
20041 hardcode_into_libs=yes
20042
20043 dynamic_linker='Android linker'
20044 # -rpath works at least for libraries that are not overridden by
20045 # libraries installed in system locations.
20046 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20047 ;;
20048
20049 # This must be glibc/ELF.
20050 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20051 version_type=linux # correct to gnu/linux during the next big refactor
20052 need_lib_prefix=no
20053 need_version=no
20054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20055 soname_spec='$libname$release$shared_ext$major'
20056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20057 shlibpath_var=LD_LIBRARY_PATH
20058 shlibpath_overrides_runpath=no
20059
20060 # Some binutils ld are patched to set DT_RUNPATH
20061 if test ${lt_cv_shlibpath_overrides_runpath+y}
20062 then :
20063 printf %s "(cached) " >&6
20064 else case e in #(
20065 e) lt_cv_shlibpath_overrides_runpath=no
20066 save_LDFLAGS=$LDFLAGS
20067 save_libdir=$libdir
20068 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20069 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20071 /* end confdefs.h. */
20072
20073 int
20074 main (void)
20075 {
20076
20077 ;
20078 return 0;
20079 }
20080 _ACEOF
20081 if ac_fn_cxx_try_link "$LINENO"
20082 then :
20083 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
20084 then :
20085 lt_cv_shlibpath_overrides_runpath=yes
20086 fi
20087 fi
20088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20089 conftest$ac_exeext conftest.$ac_ext
20090 LDFLAGS=$save_LDFLAGS
20091 libdir=$save_libdir
20092 ;;
20093 esac
20094 fi
20095
20096 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20097
20098 # This implies no fast_install, which is unacceptable.
20099 # Some rework will be needed to allow for fast_install
20100 # before this can be enabled.
20101 hardcode_into_libs=yes
20102
20103 # Ideally, we could use ldconfig to report *all* directories which are
20104 # searched for libraries, however this is still not possible. Aside from not
20105 # being certain /sbin/ldconfig is available, command
20106 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
20107 # even though it is searched at run-time. Try to do the best guess by
20108 # appending ld.so.conf contents (and includes) to the search path.
20109 if test -f /etc/ld.so.conf; then
20110 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' ' '`
20111 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20112 fi
20113
20114 # We used to test for /lib/ld.so.1 and disable shared libraries on
20115 # powerpc, because MkLinux only supported shared libraries with the
20116 # GNU dynamic linker. Since this was broken with cross compilers,
20117 # most powerpc-linux boxes support dynamic linking these days and
20118 # people can always --disable-shared, the test was removed, and we
20119 # assume the GNU/Linux dynamic linker is in use.
20120 dynamic_linker='GNU/Linux ld.so'
20121 ;;
20122
20123 netbsdelf*-gnu)
20124 version_type=linux
20125 need_lib_prefix=no
20126 need_version=no
20127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20128 soname_spec='$libname$release$shared_ext$major'
20129 shlibpath_var=LD_LIBRARY_PATH
20130 shlibpath_overrides_runpath=no
20131 hardcode_into_libs=yes
20132 dynamic_linker='NetBSD ld.elf_so'
20133 ;;
20134
20135 netbsd*)
20136 version_type=sunos
20137 need_lib_prefix=no
20138 need_version=no
20139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20140 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20142 dynamic_linker='NetBSD (a.out) ld.so'
20143 else
20144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20145 soname_spec='$libname$release$shared_ext$major'
20146 dynamic_linker='NetBSD ld.elf_so'
20147 fi
20148 shlibpath_var=LD_LIBRARY_PATH
20149 shlibpath_overrides_runpath=yes
20150 hardcode_into_libs=yes
20151 ;;
20152
20153 *-mlibc)
20154 version_type=linux # correct to gnu/linux during the next big refactor
20155 need_lib_prefix=no
20156 need_version=no
20157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20158 soname_spec='$libname$release$shared_ext$major'
20159 dynamic_linker='mlibc ld.so'
20160 shlibpath_var=LD_LIBRARY_PATH
20161 shlibpath_overrides_runpath=no
20162 hardcode_into_libs=yes
20163 ;;
20164
20165 newsos6)
20166 version_type=linux # correct to gnu/linux during the next big refactor
20167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20168 shlibpath_var=LD_LIBRARY_PATH
20169 shlibpath_overrides_runpath=yes
20170 ;;
20171
20172 *nto* | *qnx*)
20173 version_type=qnx
20174 need_lib_prefix=no
20175 need_version=no
20176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20177 soname_spec='$libname$release$shared_ext$major'
20178 shlibpath_var=LD_LIBRARY_PATH
20179 shlibpath_overrides_runpath=no
20180 hardcode_into_libs=yes
20181 dynamic_linker='ldqnx.so'
20182 ;;
20183
20184 openbsd*)
20185 version_type=sunos
20186 sys_lib_dlsearch_path_spec=/usr/lib
20187 need_lib_prefix=no
20188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20189 need_version=no
20190 else
20191 need_version=yes
20192 fi
20193 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20195 shlibpath_var=LD_LIBRARY_PATH
20196 shlibpath_overrides_runpath=yes
20197 ;;
20198
20199 os2*)
20200 libname_spec='$name'
20201 version_type=windows
20202 shrext_cmds=.dll
20203 need_version=no
20204 need_lib_prefix=no
20205 # OS/2 can only load a DLL with a base name of 8 characters or less.
20206 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
20207 v=$($ECHO $release$versuffix | tr -d .-);
20208 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
20209 $ECHO $n$v`$shared_ext'
20210 library_names_spec='${libname}_dll.$libext'
20211 dynamic_linker='OS/2 ld.exe'
20212 shlibpath_var=BEGINLIBPATH
20213 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20214 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20215 postinstall_cmds='base_file=`basename \$file`~
20216 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
20217 dldir=$destdir/`dirname \$dlpath`~
20218 test -d \$dldir || mkdir -p \$dldir~
20219 $install_prog $dir/$dlname \$dldir/$dlname~
20220 chmod a+x \$dldir/$dlname~
20221 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20222 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20223 fi'
20224 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
20225 dlpath=$dir/\$dldll~
20226 $RM \$dlpath'
20227 ;;
20228
20229 osf3* | osf4* | osf5*)
20230 version_type=osf
20231 need_lib_prefix=no
20232 need_version=no
20233 soname_spec='$libname$release$shared_ext$major'
20234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20235 shlibpath_var=LD_LIBRARY_PATH
20236 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20238 ;;
20239
20240 rdos*)
20241 dynamic_linker=no
20242 ;;
20243
20244 serenity*)
20245 version_type=linux # correct to gnu/linux during the next big refactor
20246 need_lib_prefix=no
20247 need_version=no
20248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20249 soname_spec='$libname$release$shared_ext$major'
20250 shlibpath_var=LD_LIBRARY_PATH
20251 shlibpath_overrides_runpath=no
20252 dynamic_linker='SerenityOS LibELF'
20253 ;;
20254
20255 solaris*)
20256 version_type=linux # correct to gnu/linux during the next big refactor
20257 need_lib_prefix=no
20258 need_version=no
20259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20260 soname_spec='$libname$release$shared_ext$major'
20261 shlibpath_var=LD_LIBRARY_PATH
20262 shlibpath_overrides_runpath=yes
20263 hardcode_into_libs=yes
20264 # ldd complains unless libraries are executable
20265 postinstall_cmds='chmod +x $lib'
20266 ;;
20267
20268 sunos4*)
20269 version_type=sunos
20270 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20271 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20272 shlibpath_var=LD_LIBRARY_PATH
20273 shlibpath_overrides_runpath=yes
20274 if test yes = "$with_gnu_ld"; then
20275 need_lib_prefix=no
20276 fi
20277 need_version=yes
20278 ;;
20279
20280 sysv4 | sysv4.3*)
20281 version_type=linux # correct to gnu/linux during the next big refactor
20282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20283 soname_spec='$libname$release$shared_ext$major'
20284 shlibpath_var=LD_LIBRARY_PATH
20285 case $host_vendor in
20286 sni)
20287 shlibpath_overrides_runpath=no
20288 need_lib_prefix=no
20289 runpath_var=LD_RUN_PATH
20290 ;;
20291 siemens)
20292 need_lib_prefix=no
20293 ;;
20294 motorola)
20295 need_lib_prefix=no
20296 need_version=no
20297 shlibpath_overrides_runpath=no
20298 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20299 ;;
20300 esac
20301 ;;
20302
20303 sysv4*MP*)
20304 if test -d /usr/nec; then
20305 version_type=linux # correct to gnu/linux during the next big refactor
20306 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
20307 soname_spec='$libname$shared_ext.$major'
20308 shlibpath_var=LD_LIBRARY_PATH
20309 fi
20310 ;;
20311
20312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20313 version_type=sco
20314 need_lib_prefix=no
20315 need_version=no
20316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
20317 soname_spec='$libname$release$shared_ext$major'
20318 shlibpath_var=LD_LIBRARY_PATH
20319 shlibpath_overrides_runpath=yes
20320 hardcode_into_libs=yes
20321 if test yes = "$with_gnu_ld"; then
20322 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20323 else
20324 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20325 case $host_os in
20326 sco3.2v5*)
20327 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20328 ;;
20329 esac
20330 fi
20331 sys_lib_dlsearch_path_spec='/usr/lib'
20332 ;;
20333
20334 tpf*)
20335 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20336 version_type=linux # correct to gnu/linux during the next big refactor
20337 need_lib_prefix=no
20338 need_version=no
20339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20340 shlibpath_var=LD_LIBRARY_PATH
20341 shlibpath_overrides_runpath=no
20342 hardcode_into_libs=yes
20343 ;;
20344
20345 uts4*)
20346 version_type=linux # correct to gnu/linux during the next big refactor
20347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20348 soname_spec='$libname$release$shared_ext$major'
20349 shlibpath_var=LD_LIBRARY_PATH
20350 ;;
20351
20352 emscripten*)
20353 version_type=none
20354 need_lib_prefix=no
20355 need_version=no
20356 library_names_spec='$libname$release$shared_ext'
20357 soname_spec='$libname$release$shared_ext'
20358 finish_cmds=
20359 dynamic_linker="Emscripten linker"
20360 lt_prog_compiler_wl_CXX=
20361 lt_prog_compiler_pic_CXX=
20362 lt_prog_compiler_static_CXX=
20363
20364
20365 # C++ specific cases for pic, static, wl, etc.
20366 if test yes = "$GXX"; then
20367 lt_prog_compiler_wl_CXX='-Wl,'
20368 lt_prog_compiler_static_CXX='-static'
20369
20370 case $host_os in
20371 aix*)
20372 # All AIX code is PIC.
20373 if test ia64 = "$host_cpu"; then
20374 # AIX 5 now supports IA64 processor
20375 lt_prog_compiler_static_CXX='-Bstatic'
20376 fi
20377 lt_prog_compiler_pic_CXX='-fPIC'
20378 ;;
20379
20380 amigaos*)
20381 case $host_cpu in
20382 powerpc)
20383 # see comment about AmigaOS4 .so support
20384 lt_prog_compiler_pic_CXX='-fPIC'
20385 ;;
20386 m68k)
20387 # FIXME: we need at least 68020 code to build shared libraries, but
20388 # adding the '-m68020' flag to GCC prevents building anything better,
20389 # like '-m68040'.
20390 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20391 ;;
20392 esac
20393 ;;
20394
20395 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20396 # PIC is the default for these OSes.
20397 ;;
20398 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
20399 # This hack is so that the source file can tell whether it is being
20400 # built for inclusion in a dll (and should export symbols for example).
20401 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20402 # (--disable-auto-import) libraries
20403 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20404 case $host_os in
20405 os2*)
20406 lt_prog_compiler_static_CXX='$wl-static'
20407 ;;
20408 esac
20409 ;;
20410 darwin* | rhapsody*)
20411 # PIC is the default on this platform
20412 # Common symbols not allowed in MH_DYLIB files
20413 lt_prog_compiler_pic_CXX='-fno-common'
20414 ;;
20415 *djgpp*)
20416 # DJGPP does not support shared libraries at all
20417 lt_prog_compiler_pic_CXX=
20418 ;;
20419 haiku*)
20420 # PIC is the default for Haiku.
20421 # The "-static" flag exists, but is broken.
20422 lt_prog_compiler_static_CXX=
20423 ;;
20424 interix[3-9]*)
20425 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20426 # Instead, we relocate shared libraries at runtime.
20427 ;;
20428 sysv4*MP*)
20429 if test -d /usr/nec; then
20430 lt_prog_compiler_pic_CXX=-Kconform_pic
20431 fi
20432 ;;
20433 hpux*)
20434 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20435 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20436 # sets the default TLS model and affects inlining.
20437 case $host_cpu in
20438 hppa*64*)
20439 ;;
20440 *)
20441 lt_prog_compiler_pic_CXX='-fPIC'
20442 ;;
20443 esac
20444 ;;
20445 *qnx* | *nto*)
20446 # QNX uses GNU C++, but need to define -shared option too, otherwise
20447 # it will coredump.
20448 lt_prog_compiler_pic_CXX='-fPIC -shared'
20449 ;;
20450 *)
20451 lt_prog_compiler_pic_CXX='-fPIC'
20452 ;;
20453 esac
20454 else
20455 case $host_os in
20456 aix[4-9]*)
20457 # All AIX code is PIC.
20458 if test ia64 = "$host_cpu"; then
20459 # AIX 5 now supports IA64 processor
20460 lt_prog_compiler_static_CXX='-Bstatic'
20461 else
20462 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20463 fi
20464 ;;
20465 chorus*)
20466 case $cc_basename in
20467 cxch68*)
20468 # Green Hills C++ Compiler
20469 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20470 ;;
20471 esac
20472 ;;
20473 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
20474 # This hack is so that the source file can tell whether it is being
20475 # built for inclusion in a dll (and should export symbols for example).
20476 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20477 ;;
20478 dgux*)
20479 case $cc_basename in
20480 ec++*)
20481 lt_prog_compiler_pic_CXX='-KPIC'
20482 ;;
20483 ghcx*)
20484 # Green Hills C++ Compiler
20485 lt_prog_compiler_pic_CXX='-pic'
20486 ;;
20487 *)
20488 ;;
20489 esac
20490 ;;
20491 freebsd* | dragonfly* | midnightbsd*)
20492 # FreeBSD uses GNU C++
20493 ;;
20494 hpux9* | hpux10* | hpux11*)
20495 case $cc_basename in
20496 CC*)
20497 lt_prog_compiler_wl_CXX='-Wl,'
20498 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20499 if test ia64 != "$host_cpu"; then
20500 lt_prog_compiler_pic_CXX='+Z'
20501 fi
20502 ;;
20503 aCC*)
20504 lt_prog_compiler_wl_CXX='-Wl,'
20505 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20506 case $host_cpu in
20507 hppa*64*|ia64*)
20508 # +Z the default
20509 ;;
20510 *)
20511 lt_prog_compiler_pic_CXX='+Z'
20512 ;;
20513 esac
20514 ;;
20515 *)
20516 ;;
20517 esac
20518 ;;
20519 interix*)
20520 # This is c89, which is MS Visual C++ (no shared libs)
20521 # Anyone wants to do a port?
20522 ;;
20523 irix5* | irix6* | nonstopux*)
20524 case $cc_basename in
20525 CC*)
20526 lt_prog_compiler_wl_CXX='-Wl,'
20527 lt_prog_compiler_static_CXX='-non_shared'
20528 # CC pic flag -KPIC is the default.
20529 ;;
20530 *)
20531 ;;
20532 esac
20533 ;;
20534 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20535 case $cc_basename in
20536 KCC*)
20537 # KAI C++ Compiler
20538 lt_prog_compiler_wl_CXX='--backend -Wl,'
20539 lt_prog_compiler_pic_CXX='-fPIC'
20540 ;;
20541 ecpc* )
20542 # old Intel C++ for x86_64, which still supported -KPIC.
20543 lt_prog_compiler_wl_CXX='-Wl,'
20544 lt_prog_compiler_pic_CXX='-KPIC'
20545 lt_prog_compiler_static_CXX='-static'
20546 ;;
20547 icpc* )
20548 # Intel C++, used to be incompatible with GCC.
20549 # ICC 10 doesn't accept -KPIC any more.
20550 lt_prog_compiler_wl_CXX='-Wl,'
20551 lt_prog_compiler_pic_CXX='-fPIC'
20552 lt_prog_compiler_static_CXX='-static'
20553 ;;
20554 pgCC* | pgcpp*)
20555 # Portland Group C++ compiler
20556 lt_prog_compiler_wl_CXX='-Wl,'
20557 lt_prog_compiler_pic_CXX='-fpic'
20558 lt_prog_compiler_static_CXX='-Bstatic'
20559 ;;
20560 cxx*)
20561 # Compaq C++
20562 # Make sure the PIC flag is empty. It appears that all Alpha
20563 # Linux and Compaq Tru64 Unix objects are PIC.
20564 lt_prog_compiler_pic_CXX=
20565 lt_prog_compiler_static_CXX='-non_shared'
20566 ;;
20567 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20568 # IBM XL 8.0, 9.0 on PPC and BlueGene
20569 lt_prog_compiler_wl_CXX='-Wl,'
20570 lt_prog_compiler_pic_CXX='-qpic'
20571 lt_prog_compiler_static_CXX='-qstaticlink'
20572 ;;
20573 *)
20574 case `$CC -V 2>&1 | $SED 5q` in
20575 *Sun\ C*)
20576 # Sun C++ 5.9
20577 lt_prog_compiler_pic_CXX='-KPIC'
20578 lt_prog_compiler_static_CXX='-Bstatic'
20579 lt_prog_compiler_wl_CXX='-Qoption ld '
20580 ;;
20581 esac
20582 ;;
20583 esac
20584 ;;
20585 lynxos*)
20586 ;;
20587 m88k*)
20588 ;;
20589 mvs*)
20590 case $cc_basename in
20591 cxx*)
20592 lt_prog_compiler_pic_CXX='-W c,exportall'
20593 ;;
20594 *)
20595 ;;
20596 esac
20597 ;;
20598 netbsd* | netbsdelf*-gnu)
20599 ;;
20600 *-mlibc)
20601 ;;
20602 *qnx* | *nto*)
20603 # QNX uses GNU C++, but need to define -shared option too, otherwise
20604 # it will coredump.
20605 lt_prog_compiler_pic_CXX='-fPIC -shared'
20606 ;;
20607 osf3* | osf4* | osf5*)
20608 case $cc_basename in
20609 KCC*)
20610 lt_prog_compiler_wl_CXX='--backend -Wl,'
20611 ;;
20612 RCC*)
20613 # Rational C++ 2.4.1
20614 lt_prog_compiler_pic_CXX='-pic'
20615 ;;
20616 cxx*)
20617 # Digital/Compaq C++
20618 lt_prog_compiler_wl_CXX='-Wl,'
20619 # Make sure the PIC flag is empty. It appears that all Alpha
20620 # Linux and Compaq Tru64 Unix objects are PIC.
20621 lt_prog_compiler_pic_CXX=
20622 lt_prog_compiler_static_CXX='-non_shared'
20623 ;;
20624 *)
20625 ;;
20626 esac
20627 ;;
20628 psos*)
20629 ;;
20630 serenity*)
20631 ;;
20632 solaris*)
20633 case $cc_basename in
20634 CC* | sunCC*)
20635 # Sun C++ 4.2, 5.x and Centerline C++
20636 lt_prog_compiler_pic_CXX='-KPIC'
20637 lt_prog_compiler_static_CXX='-Bstatic'
20638 lt_prog_compiler_wl_CXX='-Qoption ld '
20639 ;;
20640 gcx*)
20641 # Green Hills C++ Compiler
20642 lt_prog_compiler_pic_CXX='-PIC'
20643 ;;
20644 *)
20645 ;;
20646 esac
20647 ;;
20648 sunos4*)
20649 case $cc_basename in
20650 CC*)
20651 # Sun C++ 4.x
20652 lt_prog_compiler_pic_CXX='-pic'
20653 lt_prog_compiler_static_CXX='-Bstatic'
20654 ;;
20655 lcc*)
20656 # Lucid
20657 lt_prog_compiler_pic_CXX='-pic'
20658 ;;
20659 *)
20660 ;;
20661 esac
20662 ;;
20663 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20664 case $cc_basename in
20665 CC*)
20666 lt_prog_compiler_wl_CXX='-Wl,'
20667 lt_prog_compiler_pic_CXX='-KPIC'
20668 lt_prog_compiler_static_CXX='-Bstatic'
20669 ;;
20670 esac
20671 ;;
20672 tandem*)
20673 case $cc_basename in
20674 NCC*)
20675 # NonStop-UX NCC 3.20
20676 lt_prog_compiler_pic_CXX='-KPIC'
20677 ;;
20678 *)
20679 ;;
20680 esac
20681 ;;
20682 vxworks*)
20683 ;;
20684 *)
20685 lt_prog_compiler_can_build_shared_CXX=no
20686 ;;
20687 esac
20688 fi
20689
20690 case $host_os in
20691 # For platforms that do not support PIC, -DPIC is meaningless:
20692 *djgpp*)
20693 lt_prog_compiler_pic_CXX=
20694 ;;
20695 *)
20696 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20697 ;;
20698 esac
20699
20700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20701 printf %s "checking for $compiler option to produce PIC... " >&6; }
20702 if test ${lt_cv_prog_compiler_pic_CXX+y}
20703 then :
20704 printf %s "(cached) " >&6
20705 else case e in #(
20706 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
20707 esac
20708 fi
20709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20710 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
20711 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20712
20713 #
20714 # Check to make sure the PIC flag actually works.
20715 #
20716 if test -n "$lt_prog_compiler_pic_CXX"; then
20717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20718 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20719 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
20720 then :
20721 printf %s "(cached) " >&6
20722 else case e in #(
20723 e) lt_cv_prog_compiler_pic_works_CXX=no
20724 ac_outfile=conftest.$ac_objext
20725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20726 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
20727 # Insert the option either (1) after the last *FLAGS variable, or
20728 # (2) before a word containing "conftest.", or (3) at the end.
20729 # Note that $ac_compile itself does not contain backslashes and begins
20730 # with a dollar sign (not a hyphen), so the echo should work correctly.
20731 # The option is referenced via a variable to avoid confusing sed.
20732 lt_compile=`echo "$ac_compile" | $SED \
20733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20735 -e 's:$: $lt_compiler_flag:'`
20736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20737 (eval "$lt_compile" 2>conftest.err)
20738 ac_status=$?
20739 cat conftest.err >&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 if (exit $ac_status) && test -s "$ac_outfile"; then
20742 # The compiler can only warn and ignore the option if not recognized
20743 # So say no if there are warnings other than the usual output.
20744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20747 lt_cv_prog_compiler_pic_works_CXX=yes
20748 fi
20749 fi
20750 $RM conftest*
20751 ;;
20752 esac
20753 fi
20754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20755 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20756
20757 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
20758 case $lt_prog_compiler_pic_CXX in
20759 "" | " "*) ;;
20760 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20761 esac
20762 else
20763 lt_prog_compiler_pic_CXX=
20764 lt_prog_compiler_can_build_shared_CXX=no
20765 fi
20766
20767 fi
20768
20769
20770
20771
20772
20773 #
20774 # Check to make sure the static flag actually works.
20775 #
20776 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20778 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20779 if test ${lt_cv_prog_compiler_static_works_CXX+y}
20780 then :
20781 printf %s "(cached) " >&6
20782 else case e in #(
20783 e) lt_cv_prog_compiler_static_works_CXX=no
20784 save_LDFLAGS=$LDFLAGS
20785 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20786 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20787 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20788 # The linker can only warn and ignore the option if not recognized
20789 # So say no if there are warnings
20790 if test -s conftest.err; then
20791 # Append any errors to the config.log.
20792 cat conftest.err 1>&5
20793 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20795 if diff conftest.exp conftest.er2 >/dev/null; then
20796 lt_cv_prog_compiler_static_works_CXX=yes
20797 fi
20798 else
20799 lt_cv_prog_compiler_static_works_CXX=yes
20800 fi
20801 fi
20802 $RM -r conftest*
20803 LDFLAGS=$save_LDFLAGS
20804 ;;
20805 esac
20806 fi
20807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20808 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20809
20810 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
20811 :
20812 else
20813 lt_prog_compiler_static_CXX=
20814 fi
20815
20816
20817
20818 ='-fPIC'
20819 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
20820 archive_expsym_cmds_CXX='$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'
20821 archive_cmds_need_lc_CXX=no
20822 no_undefined_flag_CXX=
20823 ;;
20824
20825 *)
20826 dynamic_linker=no
20827 ;;
20828 esac
20829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20830 printf "%s\n" "$dynamic_linker" >&6; }
20831 test no = "$dynamic_linker" && can_build_shared=no
20832
20833 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20834 if test yes = "$GCC"; then
20835 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20836 fi
20837
20838 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20839 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20840 fi
20841
20842 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20843 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20844 fi
20845
20846 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20847 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20848
20849 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20850 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20851
20852 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20853 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20895 printf %s "checking how to hardcode library paths into programs... " >&6; }
20896 hardcode_action_CXX=
20897 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20898 test -n "$runpath_var_CXX" ||
20899 test yes = "$hardcode_automatic_CXX"; then
20900
20901 # We can hardcode non-existent directories.
20902 if test no != "$hardcode_direct_CXX" &&
20903 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20904 # have to relink, otherwise we might link with an installed library
20905 # when we should be linking with a yet-to-be-installed one
20906 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
20907 test no != "$hardcode_minus_L_CXX"; then
20908 # Linking always hardcodes the temporary library directory.
20909 hardcode_action_CXX=relink
20910 else
20911 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20912 hardcode_action_CXX=immediate
20913 fi
20914 else
20915 # We cannot hardcode anything, or else we can only hardcode existing
20916 # directories.
20917 hardcode_action_CXX=unsupported
20918 fi
20919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20920 printf "%s\n" "$hardcode_action_CXX" >&6; }
20921
20922 if test relink = "$hardcode_action_CXX" ||
20923 test yes = "$inherit_rpath_CXX"; then
20924 # Fast installation is not supported
20925 enable_fast_install=no
20926 elif test yes = "$shlibpath_overrides_runpath" ||
20927 test no = "$enable_shared"; then
20928 # Fast installation is not necessary
20929 enable_fast_install=needless
20930 fi
20931
20932
20933
20934
20935
20936
20937
20938 fi # test -n "$compiler"
20939
20940 CC=$lt_save_CC
20941 CFLAGS=$lt_save_CFLAGS
20942 LDCXX=$LD
20943 LD=$lt_save_LD
20944 GCC=$lt_save_GCC
20945 with_gnu_ld=$lt_save_with_gnu_ld
20946 lt_cv_path_LDCXX=$lt_cv_path_LD
20947 lt_cv_path_LD=$lt_save_path_LD
20948 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20949 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20950 fi # test yes != "$_lt_caught_CXX_error"
20951
20952 ac_ext=c
20953 ac_cpp='$CPP $CPPFLAGS'
20954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20957
20958
20959 ac_ext=cpp
20960 ac_cpp='$CXXCPP $CPPFLAGS'
20961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20965 printf %s "checking how to run the C++ preprocessor... " >&6; }
20966 if test -z "$CXXCPP"; then
20967 if test ${ac_cv_prog_CXXCPP+y}
20968 then :
20969 printf %s "(cached) " >&6
20970 else case e in #(
20971 e) # Double quotes because $CXX needs to be expanded
20972 for CXXCPP in "$CXX -E" cpp /lib/cpp
20973 do
20974 ac_preproc_ok=false
20975 for ac_cxx_preproc_warn_flag in '' yes
20976 do
20977 # Use a header file that comes with gcc, so configuring glibc
20978 # with a fresh cross-compiler works.
20979 # On the NeXT, cc -E runs the code through the compiler's parser,
20980 # not just through cpp. "Syntax error" is here to catch this case.
20981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20982 /* end confdefs.h. */
20983 #include <limits.h>
20984 Syntax error
20985 _ACEOF
20986 if ac_fn_cxx_try_cpp "$LINENO"
20987 then :
20988
20989 else case e in #(
20990 e) # Broken: fails on valid input.
20991 continue ;;
20992 esac
20993 fi
20994 rm -f conftest.err conftest.i conftest.$ac_ext
20995
20996 # OK, works on sane cases. Now check whether nonexistent headers
20997 # can be detected and how.
20998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20999 /* end confdefs.h. */
21000 #include <ac_nonexistent.h>
21001 _ACEOF
21002 if ac_fn_cxx_try_cpp "$LINENO"
21003 then :
21004 # Broken: success on invalid input.
21005 continue
21006 else case e in #(
21007 e) # Passes both tests.
21008 ac_preproc_ok=:
21009 break ;;
21010 esac
21011 fi
21012 rm -f conftest.err conftest.i conftest.$ac_ext
21013
21014 done
21015 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21016 rm -f conftest.i conftest.err conftest.$ac_ext
21017 if $ac_preproc_ok
21018 then :
21019 break
21020 fi
21021
21022 done
21023 ac_cv_prog_CXXCPP=$CXXCPP
21024 ;;
21025 esac
21026 fi
21027 CXXCPP=$ac_cv_prog_CXXCPP
21028 else
21029 ac_cv_prog_CXXCPP=$CXXCPP
21030 fi
21031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21032 printf "%s\n" "$CXXCPP" >&6; }
21033 ac_preproc_ok=false
21034 for ac_cxx_preproc_warn_flag in '' yes
21035 do
21036 # Use a header file that comes with gcc, so configuring glibc
21037 # with a fresh cross-compiler works.
21038 # On the NeXT, cc -E runs the code through the compiler's parser,
21039 # not just through cpp. "Syntax error" is here to catch this case.
21040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h. */
21042 #include <limits.h>
21043 Syntax error
21044 _ACEOF
21045 if ac_fn_cxx_try_cpp "$LINENO"
21046 then :
21047
21048 else case e in #(
21049 e) # Broken: fails on valid input.
21050 continue ;;
21051 esac
21052 fi
21053 rm -f conftest.err conftest.i conftest.$ac_ext
21054
21055 # OK, works on sane cases. Now check whether nonexistent headers
21056 # can be detected and how.
21057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21058 /* end confdefs.h. */
21059 #include <ac_nonexistent.h>
21060 _ACEOF
21061 if ac_fn_cxx_try_cpp "$LINENO"
21062 then :
21063 # Broken: success on invalid input.
21064 continue
21065 else case e in #(
21066 e) # Passes both tests.
21067 ac_preproc_ok=:
21068 break ;;
21069 esac
21070 fi
21071 rm -f conftest.err conftest.i conftest.$ac_ext
21072
21073 done
21074 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21075 rm -f conftest.i conftest.err conftest.$ac_ext
21076 if $ac_preproc_ok
21077 then :
21078
21079 else case e in #(
21080 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21081 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21082 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
21083 See 'config.log' for more details" "$LINENO" 5; } ;;
21084 esac
21085 fi
21086
21087 ac_ext=c
21088 ac_cpp='$CPP $CPPFLAGS'
21089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21092
21093
21094 CC="$CC $WARNING_CFLAGS"
21095 CXX="$CXX $WARNING_CXXFLAGS"
21096
21097 # Check whether --enable-precondition-checking was given.
21098 if test ${enable_precondition_checking+y}
21099 then :
21100 enableval=$enable_precondition_checking; if test "$enableval" = yes; then
21101
21102 printf "%s\n" "#define HAVE_PRECONDITION_CHECKING 1" >>confdefs.h
21103
21104 fi
21105 fi
21106
21107
21108 # Check whether --enable-adobe-code was given.
21109 if test ${enable_adobe_code+y}
21110 then :
21111 enableval=$enable_adobe_code;
21112 else case e in #(
21113 e) enable_adobe_code=yes ;;
21114 esac
21115 fi
21116
21117 if test "$enable_adobe_code" = yes; then
21118
21119 printf "%s\n" "#define HAVE_ADOBE_CODE 1" >>confdefs.h
21120
21121 fi
21122
21123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where template objects are stored" >&5
21124 printf %s "checking where template objects are stored... " >&6; }
21125 if test ${ac_cv_cxx_templobjs+y}
21126 then :
21127 printf %s "(cached) " >&6
21128 else case e in #(
21129 e) ac_cv_cxx_templobjs='unknown'
21130 if test "$GXX" = yes; then
21131 ac_cv_cxx_templobjs='nowhere'
21132 else
21133 case $CXX in
21134 CC|*/CC)
21135 cat > conftest.cc <<EOF
21136 template<class T> class A { public : A () {} };
21137 template<class T> void f (const A<T>&) {}
21138 main()
21139 { A<double> d;
21140 A<int> i;
21141 f (d);
21142 f (i);
21143 return 0;
21144 }
21145 EOF
21146 if test "$ac_cv_cxx_templobjs" = 'unknown' ; then
21147 if test -d Templates.DB ; then
21148 rm -fr Templates.DB
21149 fi
21150 if $CXX $CXXFLAGS -ptr. -c conftest.cc 1> /dev/null 2>&1; then
21151 if test -d Templates.DB ; then
21152 # this should be Sun CC <= 4.2
21153 CXXFLAGS="$CXXFLAGS -ptr."
21154 if test x"$LIBTOOL" = x ; then
21155 ac_cv_cxx_templobjs='Templates.DB/*.o'
21156 else
21157 ac_cv_cxx_templobjs='Templates.DB/*.lo'
21158 fi
21159 rm -fr Templates.DB
21160 fi
21161 fi
21162 fi
21163 if test "$ac_cv_cxx_templobjs" = 'unknown' ; then
21164 if test -d SunWS_cache ; then
21165 rm -fr SunWS_cache
21166 fi
21167 if $CXX $CXXFLAGS -c conftest.cc 1> /dev/null 2>&1; then
21168 if test -d SunWS_cache ; then
21169 # this should be Sun WorkShop C++ compiler 5.x
21170 # or Sun Forte C++ compiler >= 6.x
21171 if test x"$LIBTOOL" = x ; then
21172 ac_cv_cxx_templobjs='SunWS_cache/*/*.o'
21173 else
21174 ac_cv_cxx_templobjs='SunWS_cache/*/*.lo'
21175 fi
21176 rm -fr SunWS_cache
21177 fi
21178 fi
21179 fi
21180 rm -f conftest* ;;
21181 esac
21182 fi ;;
21183 esac
21184 fi
21185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_templobjs" >&5
21186 printf "%s\n" "$ac_cv_cxx_templobjs" >&6; }
21187 case $ac_cv_cxx_templobjs in
21188 unknown|nowhere)
21189 TEMPLATE_OBJS="" ;;
21190 *)
21191 TEMPLATE_OBJS="$ac_cv_cxx_templobjs" ;;
21192 esac
21193
21194
21195 # Check whether --enable-cxx-runtime-hack was given.
21196 if test ${enable_cxx_runtime_hack+y}
21197 then :
21198 enableval=$enable_cxx_runtime_hack;
21199 fi
21200
21201 if test "x$GXX:$enable_cxx_runtime_hack" = xyes:yes; then
21202
21203 ac_ext=cpp
21204 ac_cpp='$CXXCPP $CPPFLAGS'
21205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21208
21209 ac_fn_cxx_check_header_compile "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default"
21210 if test "x$ac_cv_header_iostream" = xyes
21211 then :
21212 printf "%s\n" "#define HAVE_IOSTREAM 1" >>confdefs.h
21213
21214 fi
21215
21216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statically linking C++ runtime library" >&5
21217 printf %s "checking for statically linking C++ runtime library... " >&6; }
21218 if test ${kpse_cv_cxx_hack+y}
21219 then :
21220 printf %s "(cached) " >&6
21221 else case e in #(
21222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h. */
21224 #ifdef HAVE_IOSTREAM
21225 #include <iostream>
21226 using namespace std;
21227 #else
21228 #include <iostream.h>
21229 #endif
21230 int
21231 main (void)
21232 {
21233 cout <<"worksok\n";
21234 ;
21235 return 0;
21236 }
21237 _ACEOF
21238 case $host in #(
21239 *cygwin*) :
21240 flags_try0='-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic' ;; #(
21241 *) :
21242 flags_try0='-nodefaultlibs -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lm'
21243 flags_try1='-lgcc_eh -lgcc -lc -lgcc_eh -lgcc'
21244 flags_try2='-lgcc -lc -lgcc' ;;
21245 esac
21246 kpse_save_LIBS=$LIBS
21247 cpp_link_hack=false
21248 for flags in "$flags_try1" "$flags_try2"; do
21249 LIBS="$kpse_save_LIBS $flags_try0 $flags"
21250 if ac_fn_cxx_try_link "$LINENO"
21251 then :
21252 if test "x$cross_compiling" = xyes
21253 then :
21254 cpp_link_hack=true; break
21255 else case e in #(
21256 e) case `(./conftest$ac_exeext; exit) 2>/dev/null` in #(
21257 worksok) :
21258 cpp_link_hack=true; break ;; #(
21259 *) :
21260 ;;
21261 esac ;;
21262 esac
21263 fi
21264 fi
21265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21266 conftest$ac_exeext
21267 done
21268 LIBS=$kpse_save_LIBS
21269 if $cpp_link_hack; then
21270 kpse_cv_cxx_hack=ok
21271 kpse_cv_cxx_flags="$flags_try0 $flags"
21272 else
21273 kpse_cv_cxx_hack="not supported"
21274 fi ;;
21275 esac
21276 fi
21277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_cxx_hack" >&5
21278 printf "%s\n" "$kpse_cv_cxx_hack" >&6; }
21279 if test "x$kpse_cv_cxx_hack" = xok; then
21280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using $kpse_cv_cxx_flags" >&5
21281 printf "%s\n" "$as_me: using $kpse_cv_cxx_flags" >&6;}
21282 fi
21283 ac_ext=c
21284 ac_cpp='$CPP $CPPFLAGS'
21285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21288
21289
21290 fi
21291 if test "x$kpse_cv_cxx_hack" = xok; then
21292 CXXLD='$(top_builddir)/CXXLD.sh'
21293 cxxld_sh="#! ${CONFIG_SHELL-/bin/sh}
21294 # CXXLD.sh. Generated by configure.
21295 set -- $CXX \"\$@\" $kpse_cv_cxx_flags
21296 echo \"\$0:\" \"\$@\"
21297 exec \"\$@\""
21298 ac_config_commands="$ac_config_commands CXXLD.sh"
21299
21300 else
21301 CXXLD='$(CXX)'
21302 fi
21303
21304
21305
21306
21307
21308 ac_ext=c
21309 ac_cpp='$CPP $CPPFLAGS'
21310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21313
21314 ac_header_dirent=no
21315 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21316 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
21317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21318 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
21319 if eval test \${$as_ac_Header+y}
21320 then :
21321 printf %s "(cached) " >&6
21322 else case e in #(
21323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324 /* end confdefs.h. */
21325 #include <sys/types.h>
21326 #include <$ac_hdr>
21327
21328 int
21329 main (void)
21330 {
21331 if ((DIR *) 0)
21332 return 0;
21333 ;
21334 return 0;
21335 }
21336 _ACEOF
21337 if ac_fn_c_try_compile "$LINENO"
21338 then :
21339 eval "$as_ac_Header=yes"
21340 else case e in #(
21341 e) eval "$as_ac_Header=no" ;;
21342 esac
21343 fi
21344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21345 esac
21346 fi
21347 eval ac_res=\$$as_ac_Header
21348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21349 printf "%s\n" "$ac_res" >&6; }
21350 if eval test \"x\$"$as_ac_Header"\" = x"yes"
21351 then :
21352 cat >>confdefs.h <<_ACEOF
21353 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
21354 _ACEOF
21355
21356 ac_header_dirent=$ac_hdr; break
21357 fi
21358
21359 done
21360 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21361 if test $ac_header_dirent = dirent.h; then
21362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21363 printf %s "checking for library containing opendir... " >&6; }
21364 if test ${ac_cv_search_opendir+y}
21365 then :
21366 printf %s "(cached) " >&6
21367 else case e in #(
21368 e) ac_func_search_save_LIBS=$LIBS
21369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21370 /* end confdefs.h. */
21371
21372 /* Override any GCC internal prototype to avoid an error.
21373 Use char because int might match the return type of a GCC
21374 builtin and then its argument prototype would still apply.
21375 The 'extern "C"' is for builds by C++ compilers;
21376 although this is not generally supported in C code supporting it here
21377 has little cost and some practical benefit (sr 110532). */
21378 #ifdef __cplusplus
21379 extern "C"
21380 #endif
21381 char opendir (void);
21382 int
21383 main (void)
21384 {
21385 return opendir ();
21386 ;
21387 return 0;
21388 }
21389 _ACEOF
21390 for ac_lib in '' dir
21391 do
21392 if test -z "$ac_lib"; then
21393 ac_res="none required"
21394 else
21395 ac_res=-l$ac_lib
21396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21397 fi
21398 if ac_fn_c_try_link "$LINENO"
21399 then :
21400 ac_cv_search_opendir=$ac_res
21401 fi
21402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21403 conftest$ac_exeext
21404 if test ${ac_cv_search_opendir+y}
21405 then :
21406 break
21407 fi
21408 done
21409 if test ${ac_cv_search_opendir+y}
21410 then :
21411
21412 else case e in #(
21413 e) ac_cv_search_opendir=no ;;
21414 esac
21415 fi
21416 rm conftest.$ac_ext
21417 LIBS=$ac_func_search_save_LIBS ;;
21418 esac
21419 fi
21420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21421 printf "%s\n" "$ac_cv_search_opendir" >&6; }
21422 ac_res=$ac_cv_search_opendir
21423 if test "$ac_res" != no
21424 then :
21425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21426
21427 fi
21428
21429 else
21430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21431 printf %s "checking for library containing opendir... " >&6; }
21432 if test ${ac_cv_search_opendir+y}
21433 then :
21434 printf %s "(cached) " >&6
21435 else case e in #(
21436 e) ac_func_search_save_LIBS=$LIBS
21437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21438 /* end confdefs.h. */
21439
21440 /* Override any GCC internal prototype to avoid an error.
21441 Use char because int might match the return type of a GCC
21442 builtin and then its argument prototype would still apply.
21443 The 'extern "C"' is for builds by C++ compilers;
21444 although this is not generally supported in C code supporting it here
21445 has little cost and some practical benefit (sr 110532). */
21446 #ifdef __cplusplus
21447 extern "C"
21448 #endif
21449 char opendir (void);
21450 int
21451 main (void)
21452 {
21453 return opendir ();
21454 ;
21455 return 0;
21456 }
21457 _ACEOF
21458 for ac_lib in '' x
21459 do
21460 if test -z "$ac_lib"; then
21461 ac_res="none required"
21462 else
21463 ac_res=-l$ac_lib
21464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21465 fi
21466 if ac_fn_c_try_link "$LINENO"
21467 then :
21468 ac_cv_search_opendir=$ac_res
21469 fi
21470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21471 conftest$ac_exeext
21472 if test ${ac_cv_search_opendir+y}
21473 then :
21474 break
21475 fi
21476 done
21477 if test ${ac_cv_search_opendir+y}
21478 then :
21479
21480 else case e in #(
21481 e) ac_cv_search_opendir=no ;;
21482 esac
21483 fi
21484 rm conftest.$ac_ext
21485 LIBS=$ac_func_search_save_LIBS ;;
21486 esac
21487 fi
21488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21489 printf "%s\n" "$ac_cv_search_opendir" >&6; }
21490 ac_res=$ac_cv_search_opendir
21491 if test "$ac_res" != no
21492 then :
21493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21494
21495 fi
21496
21497 fi
21498
21499 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
21500 if test "x$ac_cv_header_fcntl_h" = xyes
21501 then :
21502 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
21503
21504 fi
21505 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21506 if test "x$ac_cv_header_unistd_h" = xyes
21507 then :
21508 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
21509
21510 fi
21511 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
21512 if test "x$ac_cv_header_sys_time_h" = xyes
21513 then :
21514 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
21515
21516 fi
21517 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
21518 if test "x$ac_cv_header_sys_wait_h" = xyes
21519 then :
21520 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21521
21522 fi
21523
21524
21525
21526
21527 ac_ext=cpp
21528 ac_cpp='$CXXCPP $CPPFLAGS'
21529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21532
21533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <new> works" >&5
21534 printf %s "checking whether <new> works... " >&6; }
21535 if test ${ac_cv_good_new_hdr+y}
21536 then :
21537 printf %s "(cached) " >&6
21538 else case e in #(
21539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21540 /* end confdefs.h. */
21541 #include <new>
21542 int
21543 main (void)
21544 {
21545
21546 int a;
21547 int *b = new(&a) int;
21548 return 0;
21549
21550 ;
21551 return 0;
21552 }
21553 _ACEOF
21554 if ac_fn_cxx_try_link "$LINENO"
21555 then :
21556 ac_cv_good_new_hdr=yes
21557 else case e in #(
21558 e) ac_cv_good_new_hdr=no ;;
21559 esac
21560 fi
21561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21562 conftest$ac_exeext conftest.$ac_ext ;;
21563 esac
21564 fi
21565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_good_new_hdr" >&5
21566 printf "%s\n" "$ac_cv_good_new_hdr" >&6; }
21567 if test "$ac_cv_good_new_hdr" = yes; then
21568
21569 printf "%s\n" "#define HAVE_NEW_HDR 1" >>confdefs.h
21570
21571 fi
21572 ac_fn_cxx_check_header_compile "$LINENO" "new.h" "ac_cv_header_new_h" "$ac_includes_default"
21573 if test "x$ac_cv_header_new_h" = xyes
21574 then :
21575 printf "%s\n" "#define HAVE_NEW_H 1" >>confdefs.h
21576
21577 fi
21578
21579
21580
21581
21582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nullptr" >&5
21583 printf %s "checking for nullptr... " >&6; }
21584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21585 /* end confdefs.h. */
21586
21587 int
21588 main (void)
21589 {
21590
21591 int* x = nullptr;
21592 return !!x;
21593
21594 ;
21595 return 0;
21596 }
21597 _ACEOF
21598 if ac_fn_cxx_try_compile "$LINENO"
21599 then :
21600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: supported" >&5
21601 printf "%s\n" "supported" >&6; }
21602 else case e in #(
21603 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
21604 printf "%s\n" "not supported" >&6; }
21605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nullptr with -std=gnu++11" >&5
21606 printf %s "checking for nullptr with -std=gnu++11... " >&6; }
21607 OLD_CXX="$CXX"
21608 CXX="$CXX -std=gnu++11"
21609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h. */
21611
21612 int
21613 main (void)
21614 {
21615
21616 int* x = nullptr;
21617 return !!x;
21618
21619 ;
21620 return 0;
21621 }
21622 _ACEOF
21623 if ac_fn_cxx_try_compile "$LINENO"
21624 then :
21625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: supported" >&5
21626 printf "%s\n" "supported" >&6; }
21627 else case e in #(
21628 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
21629 printf "%s\n" "not supported" >&6; }
21630 as_fn_error $? "The $OLD_CXX compiler does not support the C++11 \`nullptr\` keyword." "$LINENO" 5 ;;
21631 esac
21632 fi
21633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21634 esac
21635 fi
21636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21637
21638
21639
21640
21641 printf "%s\n" "#define WORDS_BIGENDIAN_SET 1" >>confdefs.h
21642
21643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21644 printf %s "checking whether byte ordering is bigendian... " >&6; }
21645 if test ${ac_cv_c_bigendian+y}
21646 then :
21647 printf %s "(cached) " >&6
21648 else case e in #(
21649 e) ac_cv_c_bigendian=unknown
21650 # See if we're dealing with a universal compiler.
21651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h. */
21653 #ifndef __APPLE_CC__
21654 not a universal capable compiler
21655 #endif
21656 typedef int dummy;
21657
21658 _ACEOF
21659 if ac_fn_cxx_try_compile "$LINENO"
21660 then :
21661
21662 # Check for potential -arch flags. It is not universal unless
21663 # there are at least two -arch flags with different values.
21664 ac_arch=
21665 ac_prev=
21666 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21667 if test -n "$ac_prev"; then
21668 case $ac_word in
21669 i?86 | x86_64 | ppc | ppc64)
21670 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21671 ac_arch=$ac_word
21672 else
21673 ac_cv_c_bigendian=universal
21674 break
21675 fi
21676 ;;
21677 esac
21678 ac_prev=
21679 elif test "x$ac_word" = "x-arch"; then
21680 ac_prev=arch
21681 fi
21682 done
21683 fi
21684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21685 if test $ac_cv_c_bigendian = unknown; then
21686 # See if sys/param.h defines the BYTE_ORDER macro.
21687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21688 /* end confdefs.h. */
21689 #include <sys/types.h>
21690 #include <sys/param.h>
21691
21692 int
21693 main (void)
21694 {
21695 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
21696 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
21697 && LITTLE_ENDIAN)
21698 bogus endian macros
21699 #endif
21700
21701 ;
21702 return 0;
21703 }
21704 _ACEOF
21705 if ac_fn_cxx_try_compile "$LINENO"
21706 then :
21707 # It does; now see whether it defined to BIG_ENDIAN or not.
21708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21709 /* end confdefs.h. */
21710 #include <sys/types.h>
21711 #include <sys/param.h>
21712
21713 int
21714 main (void)
21715 {
21716 #if BYTE_ORDER != BIG_ENDIAN
21717 not big endian
21718 #endif
21719
21720 ;
21721 return 0;
21722 }
21723 _ACEOF
21724 if ac_fn_cxx_try_compile "$LINENO"
21725 then :
21726 ac_cv_c_bigendian=yes
21727 else case e in #(
21728 e) ac_cv_c_bigendian=no ;;
21729 esac
21730 fi
21731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21732 fi
21733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21734 fi
21735 if test $ac_cv_c_bigendian = unknown; then
21736 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21738 /* end confdefs.h. */
21739 #include <limits.h>
21740
21741 int
21742 main (void)
21743 {
21744 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21745 bogus endian macros
21746 #endif
21747
21748 ;
21749 return 0;
21750 }
21751 _ACEOF
21752 if ac_fn_cxx_try_compile "$LINENO"
21753 then :
21754 # It does; now see whether it defined to _BIG_ENDIAN or not.
21755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21756 /* end confdefs.h. */
21757 #include <limits.h>
21758
21759 int
21760 main (void)
21761 {
21762 #ifndef _BIG_ENDIAN
21763 not big endian
21764 #endif
21765
21766 ;
21767 return 0;
21768 }
21769 _ACEOF
21770 if ac_fn_cxx_try_compile "$LINENO"
21771 then :
21772 ac_cv_c_bigendian=yes
21773 else case e in #(
21774 e) ac_cv_c_bigendian=no ;;
21775 esac
21776 fi
21777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21778 fi
21779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21780 fi
21781 if test $ac_cv_c_bigendian = unknown; then
21782 # Compile a test program.
21783 if test "$cross_compiling" = yes
21784 then :
21785 # Try to guess by grepping values from an object file.
21786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21787 /* end confdefs.h. */
21788 unsigned short int ascii_mm[] =
21789 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21790 unsigned short int ascii_ii[] =
21791 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21792 int use_ascii (int i) {
21793 return ascii_mm[i] + ascii_ii[i];
21794 }
21795 unsigned short int ebcdic_ii[] =
21796 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21797 unsigned short int ebcdic_mm[] =
21798 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21799 int use_ebcdic (int i) {
21800 return ebcdic_mm[i] + ebcdic_ii[i];
21801 }
21802 int
21803 main (int argc, char **argv)
21804 {
21805 /* Intimidate the compiler so that it does not
21806 optimize the arrays away. */
21807 char *p = argv[0];
21808 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
21809 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
21810 return use_ascii (argc) == use_ebcdic (*p);
21811 }
21812 _ACEOF
21813 if ac_fn_cxx_try_link "$LINENO"
21814 then :
21815 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
21816 ac_cv_c_bigendian=yes
21817 fi
21818 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
21819 if test "$ac_cv_c_bigendian" = unknown; then
21820 ac_cv_c_bigendian=no
21821 else
21822 # finding both strings is unlikely to happen, but who knows?
21823 ac_cv_c_bigendian=unknown
21824 fi
21825 fi
21826 fi
21827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21828 conftest$ac_exeext conftest.$ac_ext
21829 else case e in #(
21830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21831 /* end confdefs.h. */
21832 $ac_includes_default
21833 int
21834 main (void)
21835 {
21836
21837 /* Are we little or big endian? From Harbison&Steele. */
21838 union
21839 {
21840 long int l;
21841 char c[sizeof (long int)];
21842 } u;
21843 u.l = 1;
21844 return u.c[sizeof (long int) - 1] == 1;
21845
21846 ;
21847 return 0;
21848 }
21849 _ACEOF
21850 if ac_fn_cxx_try_run "$LINENO"
21851 then :
21852 ac_cv_c_bigendian=no
21853 else case e in #(
21854 e) ac_cv_c_bigendian=yes ;;
21855 esac
21856 fi
21857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21858 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21859 esac
21860 fi
21861
21862 fi ;;
21863 esac
21864 fi
21865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21866 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
21867 case $ac_cv_c_bigendian in #(
21868 yes)
21869 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
21870 ;; #(
21871 no)
21872 ;; #(
21873 universal)
21874
21875 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21876
21877 ;; #(
21878 *)
21879 as_fn_error $? "unknown endianness
21880 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21881 esac
21882
21883
21884
21885
21886 ac_ext=c
21887 ac_cpp='$CPP $CPPFLAGS'
21888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21891
21892 need_fixlibc=0
21893
21894 for ac_func in strerror
21895 do :
21896 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
21897 if test "x$ac_cv_func_strerror" = xyes
21898 then :
21899 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
21900
21901 else case e in #(
21902 e) need_fixlibc=1 ;;
21903 esac
21904 fi
21905
21906 done
21907
21908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken strtod" >&5
21909 printf %s "checking for broken strtod... " >&6; }
21910 if test ${ac_cv_broken_strtod+y}
21911 then :
21912 printf %s "(cached) " >&6
21913 else case e in #(
21914 e) if test "$cross_compiling" = yes
21915 then :
21916 ac_cv_broken_strtod=no
21917 else case e in #(
21918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21919 /* end confdefs.h. */
21920 #include <stdio.h>
21921 #include <stdlib.h>
21922 int main(int c, char **v) {
21923 char s[] = "12 ";
21924 char *endp;
21925 double d = strtod(s, &endp);
21926 return (s + 2) == endp;
21927 }
21928 _ACEOF
21929 if ac_fn_c_try_run "$LINENO"
21930 then :
21931 ac_cv_broken_strtod=yes
21932 else case e in #(
21933 e) ac_cv_broken_strtod=no ;;
21934 esac
21935 fi
21936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21937 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21938 esac
21939 fi
21940 ;;
21941 esac
21942 fi
21943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_strtod" >&5
21944 printf "%s\n" "$ac_cv_broken_strtod" >&6; }
21945 if test "x$ac_cv_broken_strtod" = xyes; then
21946 need_fixlibc=1
21947
21948 printf "%s\n" "#define HAVE_BROKEN_STRTOD 1" >>confdefs.h
21949
21950 fi
21951
21952 ac_ext=cpp
21953 ac_cpp='$CXXCPP $CPPFLAGS'
21954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21957
21958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX options needed to detect all undeclared functions" >&5
21959 printf %s "checking for $CXX options needed to detect all undeclared functions... " >&6; }
21960 if test ${ac_cv_cxx_undeclared_builtin_options+y}
21961 then :
21962 printf %s "(cached) " >&6
21963 else case e in #(
21964 e) ac_save_CFLAGS=$CFLAGS
21965 ac_cv_cxx_undeclared_builtin_options='cannot detect'
21966 for ac_arg in '' -fno-builtin; do
21967 CFLAGS="$ac_save_CFLAGS $ac_arg"
21968 # This test program should *not* compile successfully.
21969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21970 /* end confdefs.h. */
21971
21972 int
21973 main (void)
21974 {
21975 (void) strchr;
21976 ;
21977 return 0;
21978 }
21979 _ACEOF
21980 if ac_fn_cxx_try_compile "$LINENO"
21981 then :
21982
21983 else case e in #(
21984 e) # This test program should compile successfully.
21985 # No library function is consistently available on
21986 # freestanding implementations, so test against a dummy
21987 # declaration. Include always-available headers on the
21988 # off chance that they somehow elicit warnings.
21989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21990 /* end confdefs.h. */
21991 #include <float.h>
21992 #include <limits.h>
21993 #include <stdarg.h>
21994 #include <stddef.h>
21995 extern void ac_decl (int, char *);
21996
21997 int
21998 main (void)
21999 {
22000 (void) ac_decl (0, (char *) 0);
22001 (void) ac_decl;
22002
22003 ;
22004 return 0;
22005 }
22006 _ACEOF
22007 if ac_fn_cxx_try_compile "$LINENO"
22008 then :
22009 if test x"$ac_arg" = x
22010 then :
22011 ac_cv_cxx_undeclared_builtin_options='none needed'
22012 else case e in #(
22013 e) ac_cv_cxx_undeclared_builtin_options=$ac_arg ;;
22014 esac
22015 fi
22016 break
22017 fi
22018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22019 esac
22020 fi
22021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22022 done
22023 CFLAGS=$ac_save_CFLAGS
22024 ;;
22025 esac
22026 fi
22027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_undeclared_builtin_options" >&5
22028 printf "%s\n" "$ac_cv_cxx_undeclared_builtin_options" >&6; }
22029 case $ac_cv_cxx_undeclared_builtin_options in #(
22030 'cannot detect') :
22031 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22032 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22033 as_fn_error $? "cannot make $CXX report undeclared builtins
22034 See 'config.log' for more details" "$LINENO" 5; } ;; #(
22035 'none needed') :
22036 ac_cxx_undeclared_builtin_options='' ;; #(
22037 *) :
22038 ac_cxx_undeclared_builtin_options=$ac_cv_cxx_undeclared_builtin_options ;;
22039 esac
22040
22041 ac_fn_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "#include <string.h>
22042 " "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
22043 if test "x$ac_cv_have_decl_strnlen" = xyes
22044 then :
22045 ac_have_decl=1
22046 else case e in #(
22047 e) ac_have_decl=0 ;;
22048 esac
22049 fi
22050 printf "%s\n" "#define HAVE_DECL_STRNLEN $ac_have_decl" >>confdefs.h
22051
22052
22053 for ac_func in strnlen
22054 do :
22055 ac_fn_cxx_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
22056 if test "x$ac_cv_func_strnlen" = xyes
22057 then :
22058 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
22059 have_strnlen=1
22060 else case e in #(
22061 e) need_fixlibc=1 ;;
22062 esac
22063 fi
22064
22065 done
22066 if test "x$have_strnlen" = x1; then
22067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken strnlen" >&5
22068 printf %s "checking for broken strnlen... " >&6; }
22069 if test ${ac_cv_broken_strnlen+y}
22070 then :
22071 printf %s "(cached) " >&6
22072 else case e in #(
22073 e) if test "$cross_compiling" = yes
22074 then :
22075 ac_cv_broken_strnlen=no
22076 else case e in #(
22077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h. */
22079 #include <string.h>
22080 #include <stdio.h>
22081 int main(int c, char **v) {
22082 char s[] = "01234567891";
22083 return strnlen(s, 10) == 10;
22084 }
22085 _ACEOF
22086 if ac_fn_cxx_try_run "$LINENO"
22087 then :
22088 ac_cv_broken_strnlen=yes
22089 else case e in #(
22090 e) ac_cv_broken_strnlen=no ;;
22091 esac
22092 fi
22093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22094 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22095 esac
22096 fi
22097 ;;
22098 esac
22099 fi
22100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_strnlen" >&5
22101 printf "%s\n" "$ac_cv_broken_strnlen" >&6; }
22102 if test "x$ac_cv_broken_strnlen" = xyes; then
22103 need_fixlibc=1
22104
22105 printf "%s\n" "#define HAVE_BROKEN_STRNLEN 1" >>confdefs.h
22106
22107 fi
22108 fi
22109 ac_ext=c
22110 ac_cpp='$CPP $CPPFLAGS'
22111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22114
22115
22116 ac_fn_c_check_func "$LINENO" "ctime" "ac_cv_func_ctime"
22117 if test "x$ac_cv_func_ctime" = xyes
22118 then :
22119 printf "%s\n" "#define HAVE_CTIME 1" >>confdefs.h
22120
22121 fi
22122 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
22123 if test "x$ac_cv_func_ftruncate" = xyes
22124 then :
22125 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
22126
22127 fi
22128 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
22129 if test "x$ac_cv_func_mkstemp" = xyes
22130 then :
22131 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
22132
22133 fi
22134 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
22135 if test "x$ac_cv_func_sigaction" = xyes
22136 then :
22137 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
22138
22139 fi
22140 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
22141 if test "x$ac_cv_func_strdup" = xyes
22142 then :
22143 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
22144
22145 fi
22146 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
22147 if test "x$ac_cv_func_strtoul" = xyes
22148 then :
22149 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
22150
22151 fi
22152 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
22153 if test "x$ac_cv_func_vsnprintf" = xyes
22154 then :
22155 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
22156
22157 fi
22158 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
22159 if test "x$ac_cv_func_waitpid" = xyes
22160 then :
22161 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
22162
22163 fi
22164
22165 ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
22166 if test "x$ac_cv_func_floor" = xyes
22167 then :
22168
22169 else case e in #(
22170 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
22171 printf %s "checking for floor in -lm... " >&6; }
22172 if test ${ac_cv_lib_m_floor+y}
22173 then :
22174 printf %s "(cached) " >&6
22175 else case e in #(
22176 e) ac_check_lib_save_LIBS=$LIBS
22177 LIBS="-lm $LIBS"
22178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22179 /* end confdefs.h. */
22180
22181 /* Override any GCC internal prototype to avoid an error.
22182 Use char because int might match the return type of a GCC
22183 builtin and then its argument prototype would still apply.
22184 The 'extern "C"' is for builds by C++ compilers;
22185 although this is not generally supported in C code supporting it here
22186 has little cost and some practical benefit (sr 110532). */
22187 #ifdef __cplusplus
22188 extern "C"
22189 #endif
22190 char floor (void);
22191 int
22192 main (void)
22193 {
22194 return floor ();
22195 ;
22196 return 0;
22197 }
22198 _ACEOF
22199 if ac_fn_c_try_link "$LINENO"
22200 then :
22201 ac_cv_lib_m_floor=yes
22202 else case e in #(
22203 e) ac_cv_lib_m_floor=no ;;
22204 esac
22205 fi
22206 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22207 conftest$ac_exeext conftest.$ac_ext
22208 LIBS=$ac_check_lib_save_LIBS ;;
22209 esac
22210 fi
22211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
22212 printf "%s\n" "$ac_cv_lib_m_floor" >&6; }
22213 if test "x$ac_cv_lib_m_floor" = xyes
22214 then :
22215 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
22216
22217 LIBS="-lm $LIBS"
22218
22219 fi
22220 ;;
22221 esac
22222 fi
22223
22224 ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
22225 if test "x$ac_cv_func_fabs" = xyes
22226 then :
22227
22228 else case e in #(
22229 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
22230 printf %s "checking for fabs in -lm... " >&6; }
22231 if test ${ac_cv_lib_m_fabs+y}
22232 then :
22233 printf %s "(cached) " >&6
22234 else case e in #(
22235 e) ac_check_lib_save_LIBS=$LIBS
22236 LIBS="-lm $LIBS"
22237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22238 /* end confdefs.h. */
22239
22240 /* Override any GCC internal prototype to avoid an error.
22241 Use char because int might match the return type of a GCC
22242 builtin and then its argument prototype would still apply.
22243 The 'extern "C"' is for builds by C++ compilers;
22244 although this is not generally supported in C code supporting it here
22245 has little cost and some practical benefit (sr 110532). */
22246 #ifdef __cplusplus
22247 extern "C"
22248 #endif
22249 char fabs (void);
22250 int
22251 main (void)
22252 {
22253 return fabs ();
22254 ;
22255 return 0;
22256 }
22257 _ACEOF
22258 if ac_fn_c_try_link "$LINENO"
22259 then :
22260 ac_cv_lib_m_fabs=yes
22261 else case e in #(
22262 e) ac_cv_lib_m_fabs=no ;;
22263 esac
22264 fi
22265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22266 conftest$ac_exeext conftest.$ac_ext
22267 LIBS=$ac_check_lib_save_LIBS ;;
22268 esac
22269 fi
22270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
22271 printf "%s\n" "$ac_cv_lib_m_fabs" >&6; }
22272 if test "x$ac_cv_lib_m_fabs" = xyes
22273 then :
22274 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
22275
22276 LIBS="-lm $LIBS"
22277
22278 fi
22279 ;;
22280 esac
22281 fi
22282
22283 if test x$need_fixlibc = x1; then
22284 FIXLIBC_TRUE=
22285 FIXLIBC_FALSE='#'
22286 else
22287 FIXLIBC_TRUE='#'
22288 FIXLIBC_FALSE=
22289 fi
22290
22291
22292
22293
22294 for ac_header in inttypes.h
22295 do :
22296 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
22297 if test "x$ac_cv_header_inttypes_h" = xyes
22298 then :
22299 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
22300 have_inttypes_h=yes
22301 else case e in #(
22302 e) have_inttypes_h=no ;;
22303 esac
22304 fi
22305
22306 done
22307 for ac_header in sys/types.h
22308 do :
22309 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
22310 if test "x$ac_cv_header_sys_types_h" = xyes
22311 then :
22312 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
22313 have_sys_types_h=yes
22314 else case e in #(
22315 e) have_sys_types_h=no ;;
22316 esac
22317 fi
22318
22319 done
22320
22321 if test $have_inttypes_h = no -a $have_sys_types_h = yes; then
22322 ac_ext=c
22323 ac_cpp='$CPP $CPPFLAGS'
22324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
22328 printf %s "checking how to run the C preprocessor... " >&6; }
22329 # On Suns, sometimes $CPP names a directory.
22330 if test -n "$CPP" && test -d "$CPP"; then
22331 CPP=
22332 fi
22333 if test -z "$CPP"; then
22334 if test ${ac_cv_prog_CPP+y}
22335 then :
22336 printf %s "(cached) " >&6
22337 else case e in #(
22338 e) # Double quotes because $CC needs to be expanded
22339 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
22340 do
22341 ac_preproc_ok=false
22342 for ac_c_preproc_warn_flag in '' yes
22343 do
22344 # Use a header file that comes with gcc, so configuring glibc
22345 # with a fresh cross-compiler works.
22346 # On the NeXT, cc -E runs the code through the compiler's parser,
22347 # not just through cpp. "Syntax error" is here to catch this case.
22348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22349 /* end confdefs.h. */
22350 #include <limits.h>
22351 Syntax error
22352 _ACEOF
22353 if ac_fn_c_try_cpp "$LINENO"
22354 then :
22355
22356 else case e in #(
22357 e) # Broken: fails on valid input.
22358 continue ;;
22359 esac
22360 fi
22361 rm -f conftest.err conftest.i conftest.$ac_ext
22362
22363 # OK, works on sane cases. Now check whether nonexistent headers
22364 # can be detected and how.
22365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22366 /* end confdefs.h. */
22367 #include <ac_nonexistent.h>
22368 _ACEOF
22369 if ac_fn_c_try_cpp "$LINENO"
22370 then :
22371 # Broken: success on invalid input.
22372 continue
22373 else case e in #(
22374 e) # Passes both tests.
22375 ac_preproc_ok=:
22376 break ;;
22377 esac
22378 fi
22379 rm -f conftest.err conftest.i conftest.$ac_ext
22380
22381 done
22382 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22383 rm -f conftest.i conftest.err conftest.$ac_ext
22384 if $ac_preproc_ok
22385 then :
22386 break
22387 fi
22388
22389 done
22390 ac_cv_prog_CPP=$CPP
22391 ;;
22392 esac
22393 fi
22394 CPP=$ac_cv_prog_CPP
22395 else
22396 ac_cv_prog_CPP=$CPP
22397 fi
22398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
22399 printf "%s\n" "$CPP" >&6; }
22400 ac_preproc_ok=false
22401 for ac_c_preproc_warn_flag in '' yes
22402 do
22403 # Use a header file that comes with gcc, so configuring glibc
22404 # with a fresh cross-compiler works.
22405 # On the NeXT, cc -E runs the code through the compiler's parser,
22406 # not just through cpp. "Syntax error" is here to catch this case.
22407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22408 /* end confdefs.h. */
22409 #include <limits.h>
22410 Syntax error
22411 _ACEOF
22412 if ac_fn_c_try_cpp "$LINENO"
22413 then :
22414
22415 else case e in #(
22416 e) # Broken: fails on valid input.
22417 continue ;;
22418 esac
22419 fi
22420 rm -f conftest.err conftest.i conftest.$ac_ext
22421
22422 # OK, works on sane cases. Now check whether nonexistent headers
22423 # can be detected and how.
22424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22425 /* end confdefs.h. */
22426 #include <ac_nonexistent.h>
22427 _ACEOF
22428 if ac_fn_c_try_cpp "$LINENO"
22429 then :
22430 # Broken: success on invalid input.
22431 continue
22432 else case e in #(
22433 e) # Passes both tests.
22434 ac_preproc_ok=:
22435 break ;;
22436 esac
22437 fi
22438 rm -f conftest.err conftest.i conftest.$ac_ext
22439
22440 done
22441 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22442 rm -f conftest.i conftest.err conftest.$ac_ext
22443 if $ac_preproc_ok
22444 then :
22445
22446 else case e in #(
22447 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22448 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22449 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
22450 See 'config.log' for more details" "$LINENO" 5; } ;;
22451 esac
22452 fi
22453
22454 ac_ext=c
22455 ac_cpp='$CPP $CPPFLAGS'
22456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22459
22460
22461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
22462 printf %s "checking for egrep -e... " >&6; }
22463 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
22464 then :
22465 printf %s "(cached) " >&6
22466 else case e in #(
22467 e) if test -z "$EGREP_TRADITIONAL"; then
22468 ac_path_EGREP_TRADITIONAL_found=false
22469 # Loop through the user's path and test for each of PROGNAME-LIST
22470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
22472 do
22473 IFS=$as_save_IFS
22474 case $as_dir in #(((
22475 '') as_dir=./ ;;
22476 */) ;;
22477 *) as_dir=$as_dir/ ;;
22478 esac
22479 for ac_prog in grep ggrep
22480 do
22481 for ac_exec_ext in '' $ac_executable_extensions; do
22482 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
22483 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
22484 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
22485 # Check for GNU $ac_path_EGREP_TRADITIONAL
22486 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
22487 *GNU*)
22488 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
22489 #(
22490 *)
22491 ac_count=0
22492 printf %s 0123456789 >"conftest.in"
22493 while :
22494 do
22495 cat "conftest.in" "conftest.in" >"conftest.tmp"
22496 mv "conftest.tmp" "conftest.in"
22497 cp "conftest.in" "conftest.nl"
22498 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
22499 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
22500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
22501 as_fn_arith $ac_count + 1 && ac_count=$as_val
22502 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
22503 # Best one so far, save it but keep looking for a better one
22504 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
22505 ac_path_EGREP_TRADITIONAL_max=$ac_count
22506 fi
22507 # 10*(2^10) chars as input seems more than enough
22508 test $ac_count -gt 10 && break
22509 done
22510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
22511 esac
22512
22513 $ac_path_EGREP_TRADITIONAL_found && break 3
22514 done
22515 done
22516 done
22517 IFS=$as_save_IFS
22518 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
22519 :
22520 fi
22521 else
22522 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
22523 fi
22524
22525 if test "$ac_cv_path_EGREP_TRADITIONAL"
22526 then :
22527 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
22528 else case e in #(
22529 e) if test -z "$EGREP_TRADITIONAL"; then
22530 ac_path_EGREP_TRADITIONAL_found=false
22531 # Loop through the user's path and test for each of PROGNAME-LIST
22532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
22534 do
22535 IFS=$as_save_IFS
22536 case $as_dir in #(((
22537 '') as_dir=./ ;;
22538 */) ;;
22539 *) as_dir=$as_dir/ ;;
22540 esac
22541 for ac_prog in egrep
22542 do
22543 for ac_exec_ext in '' $ac_executable_extensions; do
22544 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
22545 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
22546 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
22547 # Check for GNU $ac_path_EGREP_TRADITIONAL
22548 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
22549 *GNU*)
22550 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
22551 #(
22552 *)
22553 ac_count=0
22554 printf %s 0123456789 >"conftest.in"
22555 while :
22556 do
22557 cat "conftest.in" "conftest.in" >"conftest.tmp"
22558 mv "conftest.tmp" "conftest.in"
22559 cp "conftest.in" "conftest.nl"
22560 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
22561 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
22562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
22563 as_fn_arith $ac_count + 1 && ac_count=$as_val
22564 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
22565 # Best one so far, save it but keep looking for a better one
22566 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
22567 ac_path_EGREP_TRADITIONAL_max=$ac_count
22568 fi
22569 # 10*(2^10) chars as input seems more than enough
22570 test $ac_count -gt 10 && break
22571 done
22572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
22573 esac
22574
22575 $ac_path_EGREP_TRADITIONAL_found && break 3
22576 done
22577 done
22578 done
22579 IFS=$as_save_IFS
22580 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
22581 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
22582 fi
22583 else
22584 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
22585 fi
22586 ;;
22587 esac
22588 fi ;;
22589 esac
22590 fi
22591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
22592 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
22593 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
22594
22595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uintXX_t typedefs" >&5
22596 printf %s "checking for uintXX_t typedefs... " >&6; }
22597 if test ${ac_cv_uint_t+y}
22598 then :
22599 printf %s "(cached) " >&6
22600 else case e in #(
22601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22602 /* end confdefs.h. */
22603 #include <sys/types.h>
22604
22605 _ACEOF
22606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22607 $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1
22608 then :
22609 ac_cv_uint_t=yes
22610 else case e in #(
22611 e) ac_cv_uint_t=no ;;
22612 esac
22613 fi
22614 rm -rf conftest*
22615 ;;
22616 esac
22617 fi
22618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_uint_t" >&5
22619 printf "%s\n" "$ac_cv_uint_t" >&6; }
22620 fi
22621 if test $have_inttypes_h = no -a $have_sys_types_h = yes -a "$ac_cv_uint_t" = no; then
22622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t typedefs" >&5
22623 printf %s "checking for u_intXX_t typedefs... " >&6; }
22624 if test ${ac_cv_u_int_t+y}
22625 then :
22626 printf %s "(cached) " >&6
22627 else case e in #(
22628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22629 /* end confdefs.h. */
22630 #include <sys/types.h>
22631
22632 _ACEOF
22633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22634 $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1
22635 then :
22636 ac_cv_u_int_t=yes
22637 else case e in #(
22638 e) ac_cv_u_int_t=no ;;
22639 esac
22640 fi
22641 rm -rf conftest*
22642 ;;
22643 esac
22644 fi
22645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_u_int_t" >&5
22646 printf "%s\n" "$ac_cv_u_int_t" >&6; }
22647 fi
22648 if test $have_inttypes_h = yes -o "$ac_cv_uint_t" = yes; then
22649 :
22650 elif test "$ac_cv_u_int_t" = yes; then
22651
22652 printf "%s\n" "#define HAVE_U_INT_TYPES 1" >>confdefs.h
22653
22654 else
22655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
22656 =========================================
22657
22658 Neither uint32_t nor u_int32_t defined by <inttypes.h> or <sys/types.h>!
22659 Assuming \"short\" has 16 bits and \"int\" has 32 bits.
22660
22661 =========================================" >&5
22662 printf "%s\n" "$as_me: WARNING:
22663 =========================================
22664
22665 Neither uint32_t nor u_int32_t defined by <inttypes.h> or <sys/types.h>!
22666 Assuming \"short\" has 16 bits and \"int\" has 32 bits.
22667
22668 =========================================" >&2;}
22669
22670 printf "%s\n" "#define HAVE_FAKE_INT_TYPES 1" >>confdefs.h
22671
22672 fi
22673
22674 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#if HAVE_INTTYPES_H
22675 # include <inttypes.h>
22676 #endif
22677 #if HAVE_SYS_TYPES_H
22678 # include <sys/types.h>
22679 #endif
22680
22681 "
22682 if test "x$ac_cv_type_uintptr_t" = xyes
22683 then :
22684
22685 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
22686
22687
22688 fi
22689
22690
22691 # The cast to long int works around a bug in the HP C Compiler
22692 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22693 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
22694 # This bug is HP SR number 8606223364.
22695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
22696 printf %s "checking size of void *... " >&6; }
22697 if test ${ac_cv_sizeof_void_p+y}
22698 then :
22699 printf %s "(cached) " >&6
22700 else case e in #(
22701 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
22702 then :
22703
22704 else case e in #(
22705 e) if test "$ac_cv_type_void_p" = yes; then
22706 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22707 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22708 as_fn_error 77 "cannot compute sizeof (void *)
22709 See 'config.log' for more details" "$LINENO" 5; }
22710 else
22711 ac_cv_sizeof_void_p=0
22712 fi ;;
22713 esac
22714 fi
22715 ;;
22716 esac
22717 fi
22718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
22719 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
22720
22721
22722
22723 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
22724
22725
22726 # The cast to long int works around a bug in the HP C Compiler
22727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22728 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
22729 # This bug is HP SR number 8606223364.
22730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
22731 printf %s "checking size of unsigned long... " >&6; }
22732 if test ${ac_cv_sizeof_unsigned_long+y}
22733 then :
22734 printf %s "(cached) " >&6
22735 else case e in #(
22736 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"
22737 then :
22738
22739 else case e in #(
22740 e) if test "$ac_cv_type_unsigned_long" = yes; then
22741 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22742 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22743 as_fn_error 77 "cannot compute sizeof (unsigned long)
22744 See 'config.log' for more details" "$LINENO" 5; }
22745 else
22746 ac_cv_sizeof_unsigned_long=0
22747 fi ;;
22748 esac
22749 fi
22750 ;;
22751 esac
22752 fi
22753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
22754 printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
22755
22756
22757
22758 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
22759
22760
22761 # The cast to long int works around a bug in the HP C Compiler
22762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22763 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
22764 # This bug is HP SR number 8606223364.
22765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
22766 printf %s "checking size of unsigned int... " >&6; }
22767 if test ${ac_cv_sizeof_unsigned_int+y}
22768 then :
22769 printf %s "(cached) " >&6
22770 else case e in #(
22771 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
22772 then :
22773
22774 else case e in #(
22775 e) if test "$ac_cv_type_unsigned_int" = yes; then
22776 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22777 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22778 as_fn_error 77 "cannot compute sizeof (unsigned int)
22779 See 'config.log' for more details" "$LINENO" 5; }
22780 else
22781 ac_cv_sizeof_unsigned_int=0
22782 fi ;;
22783 esac
22784 fi
22785 ;;
22786 esac
22787 fi
22788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
22789 printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
22790
22791
22792
22793 printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
22794
22795
22796
22797
22798
22799 ac_ext=cpp
22800 ac_cpp='$CXXCPP $CPPFLAGS'
22801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22804
22805 ac_fn_cxx_check_header_compile "$LINENO" "byteorder.h" "ac_cv_header_byteorder_h" "$ac_includes_default"
22806 if test "x$ac_cv_header_byteorder_h" = xyes
22807 then :
22808 printf "%s\n" "#define HAVE_BYTEORDER_H 1" >>confdefs.h
22809
22810 fi
22811 ac_fn_cxx_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22812 if test "x$ac_cv_header_netinet_in_h" = xyes
22813 then :
22814 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
22815
22816 fi
22817 ac_fn_cxx_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
22818 if test "x$ac_cv_header_sys_param_h" = xyes
22819 then :
22820 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
22821
22822 fi
22823
22824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ntohs and ntohl are defined" >&5
22825 printf %s "checking whether ntohs and ntohl are defined... " >&6; }
22826 ac_ntoh_defined=no
22827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22828 /* end confdefs.h. */
22829 #if HAVE_SYS_TYPES_H
22830 # include <sys/types.h>
22831 #endif
22832 #if HAVE_BYTEORDER_H
22833 # include <byteorder.h>
22834 #elif HAVE_NETINET_IN_H
22835 # include <netinet/in.h>
22836 #elif HAVE_SYS_PARAM_H
22837 # include <sys/param.h>
22838 #endif
22839 #ifdef WIN32
22840 # ifdef __MSC_VER
22841 # pragma warning (disable: 4290)
22842 # endif
22843 # include <winsock2.h>
22844 #endif
22845
22846 int
22847 main (void)
22848 {
22849 (void) ntohs(0x0020), (void) ntohl(0x03040020);
22850 ;
22851 return 0;
22852 }
22853 _ACEOF
22854 if ac_fn_cxx_try_compile "$LINENO"
22855 then :
22856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22857 printf "%s\n" "yes" >&6; }
22858 ac_ntoh_defined=yes
22859 else case e in #(
22860 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22861 printf "%s\n" "no" >&6; } ;;
22862 esac
22863 fi
22864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22865 if test $ac_ntoh_defined = no; then
22866 for ac_header in arpa/inet.h
22867 do :
22868 ac_fn_cxx_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
22869 if test "x$ac_cv_header_arpa_inet_h" = xyes
22870 then :
22871 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
22872 have_arpa_inet_h=yes
22873 else case e in #(
22874 e) have_arpa_inet_h=no ;;
22875 esac
22876 fi
22877
22878 done
22879 if test $have_arpa_inet_h = yes; then
22880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ntohs and ntohl are defined in <arpa/inet.h>" >&5
22881 printf %s "checking whether ntohs and ntohl are defined in <arpa/inet.h>... " >&6; }
22882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h. */
22884 #if HAVE_SYS_TYPES_H
22885 # include <sys/types.h>
22886 #endif
22887 #include <arpa/inet.h>
22888
22889 int
22890 main (void)
22891 {
22892 (void) ntohs(0x0020), (void) ntohl(0x03040020);
22893 ;
22894 return 0;
22895 }
22896 _ACEOF
22897 if ac_fn_cxx_try_compile "$LINENO"
22898 then :
22899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22900 printf "%s\n" "yes" >&6; }
22901
22902 printf "%s\n" "#define NEED_ARPA_INET_H 1" >>confdefs.h
22903
22904 ac_ntoh_defined=yes
22905 else case e in #(
22906 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22907 printf "%s\n" "no" >&6; } ;;
22908 esac
22909 fi
22910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22911 fi
22912 fi
22913 if test $ac_ntoh_defined = no; then
22914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
22915 =========================================
22916
22917 Cannot find a definition for ntohs and/or ntohl!
22918
22919 =========================================" >&5
22920 printf "%s\n" "$as_me: WARNING:
22921 =========================================
22922
22923 Cannot find a definition for ntohs and/or ntohl!
22924
22925 =========================================" >&2;}
22926 if test "x$enable_build" != xno; then
22927 as_fn_error $? "exiting" "$LINENO" 5
22928 fi
22929 fi
22930 ac_ext=c
22931 ac_cpp='$CPP $CPPFLAGS'
22932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22935
22936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ntohs" >&5
22937 printf %s "checking for library containing ntohs... " >&6; }
22938 if test ${ac_cv_search_ntohs+y}
22939 then :
22940 printf %s "(cached) " >&6
22941 else case e in #(
22942 e) ac_func_search_save_LIBS=$LIBS
22943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22944 /* end confdefs.h. */
22945
22946 /* Override any GCC internal prototype to avoid an error.
22947 Use char because int might match the return type of a GCC
22948 builtin and then its argument prototype would still apply.
22949 The 'extern "C"' is for builds by C++ compilers;
22950 although this is not generally supported in C code supporting it here
22951 has little cost and some practical benefit (sr 110532). */
22952 #ifdef __cplusplus
22953 extern "C"
22954 #endif
22955 char ntohs (void);
22956 int
22957 main (void)
22958 {
22959 return ntohs ();
22960 ;
22961 return 0;
22962 }
22963 _ACEOF
22964 for ac_lib in '' -lnet -lwinsock32
22965 do
22966 if test -z "$ac_lib"; then
22967 ac_res="none required"
22968 else
22969 ac_res=-l$ac_lib
22970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22971 fi
22972 if ac_fn_c_try_link "$LINENO"
22973 then :
22974 ac_cv_search_ntohs=$ac_res
22975 fi
22976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22977 conftest$ac_exeext
22978 if test ${ac_cv_search_ntohs+y}
22979 then :
22980 break
22981 fi
22982 done
22983 if test ${ac_cv_search_ntohs+y}
22984 then :
22985
22986 else case e in #(
22987 e) ac_cv_search_ntohs=no ;;
22988 esac
22989 fi
22990 rm conftest.$ac_ext
22991 LIBS=$ac_func_search_save_LIBS ;;
22992 esac
22993 fi
22994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ntohs" >&5
22995 printf "%s\n" "$ac_cv_search_ntohs" >&6; }
22996 ac_res=$ac_cv_search_ntohs
22997 if test "$ac_res" != no
22998 then :
22999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23000
23001 fi
23002
23003
23004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
23005 printf %s "checking for native WIN32 or MINGW32... " >&6; }
23006 if test ${kpse_cv_have_win32+y}
23007 then :
23008 printf %s "(cached) " >&6
23009 else case e in #(
23010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23011 /* end confdefs.h. */
23012 #ifndef WIN32
23013 choke me
23014 #endif
23015 int
23016 main (void)
23017 {
23018
23019 ;
23020 return 0;
23021 }
23022 _ACEOF
23023 if ac_fn_c_try_compile "$LINENO"
23024 then :
23025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23026 /* end confdefs.h. */
23027 #ifndef __MINGW32__
23028 choke me
23029 #endif
23030 int
23031 main (void)
23032 {
23033
23034 ;
23035 return 0;
23036 }
23037 _ACEOF
23038 if ac_fn_c_try_compile "$LINENO"
23039 then :
23040 kpse_cv_have_win32=mingw32
23041 else case e in #(
23042 e) kpse_cv_have_win32=native ;;
23043 esac
23044 fi
23045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23046 else case e in #(
23047 e) kpse_cv_have_win32=no ;;
23048 esac
23049 fi
23050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23051 esac
23052 fi
23053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
23054 printf "%s\n" "$kpse_cv_have_win32" >&6; }
23055
23056 if test "x$kpse_cv_have_win32" != xno; then
23057 LIBS="$LIBS -lwsock32"
23058 fi
23059
23060
23061 ac_ext=cpp
23062 ac_cpp='$CXXCPP $CPPFLAGS'
23063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23066
23067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for addressable va_list type" >&5
23068 printf %s "checking for addressable va_list type... " >&6; }
23069 if test ${ac_cv_va_list_addr+y}
23070 then :
23071 printf %s "(cached) " >&6
23072 else case e in #(
23073 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23074 /* end confdefs.h. */
23075 #include <stdarg.h>
23076 void f(va_list *) {
23077 }
23078 void g(va_list val) {
23079 f(&val);
23080 }
23081 void h(int a, ...) {
23082 va_list val;
23083 va_start(val, a);
23084 g(val);
23085 va_end(val);
23086 }
23087 int
23088 main (void)
23089 {
23090 h(2, 3, 4);
23091 ;
23092 return 0;
23093 }
23094 _ACEOF
23095 if ac_fn_cxx_try_compile "$LINENO"
23096 then :
23097 ac_cv_va_list_addr=yes
23098 else case e in #(
23099 e) ac_cv_va_list_addr=no ;;
23100 esac
23101 fi
23102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23103 esac
23104 fi
23105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_va_list_addr" >&5
23106 printf "%s\n" "$ac_cv_va_list_addr" >&6; }
23107 if test "x$ac_cv_va_list_addr" = xyes; then
23108
23109 printf "%s\n" "#define HAVE_ADDRESSABLE_VA_LIST 1" >>confdefs.h
23110
23111 fi
23112
23113
23114
23115 # Define configure options for lcdf-typetools. Extracted from configure.ac
23116 # for ease of building TeX Live.
23117 #
23118 #
23119 # Check whether --enable-cfftot1 was given.
23120 if test ${enable_cfftot1+y}
23121 then :
23122 enableval=$enable_cfftot1;
23123 fi
23124 # Check whether --enable-mmafm was given.
23125 if test ${enable_mmafm+y}
23126 then :
23127 enableval=$enable_mmafm;
23128 fi
23129 # Check whether --enable-mmpfb was given.
23130 if test ${enable_mmpfb+y}
23131 then :
23132 enableval=$enable_mmpfb;
23133 fi
23134 # Check whether --enable-otfinfo was given.
23135 if test ${enable_otfinfo+y}
23136 then :
23137 enableval=$enable_otfinfo;
23138 fi
23139 # Check whether --enable-otftotfm was given.
23140 if test ${enable_otftotfm+y}
23141 then :
23142 enableval=$enable_otftotfm;
23143 fi
23144 # Check whether --enable-t1dotlessj was given.
23145 if test ${enable_t1dotlessj+y}
23146 then :
23147 enableval=$enable_t1dotlessj;
23148 fi
23149 # Check whether --enable-t1lint was given.
23150 if test ${enable_t1lint+y}
23151 then :
23152 enableval=$enable_t1lint;
23153 fi
23154 # Check whether --enable-t1rawafm was given.
23155 if test ${enable_t1rawafm+y}
23156 then :
23157 enableval=$enable_t1rawafm;
23158 fi
23159 # Check whether --enable-t1reencode was given.
23160 if test ${enable_t1reencode+y}
23161 then :
23162 enableval=$enable_t1reencode;
23163 fi
23164 # Check whether --enable-t1testpage was given.
23165 if test ${enable_t1testpage+y}
23166 then :
23167 enableval=$enable_t1testpage;
23168 fi
23169 # Check whether --enable-ttftotype42 was given.
23170 if test ${enable_ttftotype42+y}
23171 then :
23172 enableval=$enable_ttftotype42;
23173 fi
23174
23175 #
23176 # Check whether --enable-cfftot1 was given.
23177 if test ${enable_cfftot1+y}
23178 then :
23179 enableval=$enable_cfftot1;
23180 fi
23181 # Check whether --enable-t1dotlessj was given.
23182 if test ${enable_t1dotlessj+y}
23183 then :
23184 enableval=$enable_t1dotlessj;
23185 fi
23186 # Check whether --enable-ttftotype42 was given.
23187 if test ${enable_ttftotype42+y}
23188 then :
23189 enableval=$enable_ttftotype42;
23190 fi
23191 # Check whether --enable-updmap was given.
23192 if test ${enable_updmap+y}
23193 then :
23194 enableval=$enable_updmap;
23195 fi
23196
23197
23198
23199 SELECTED_SUBDIRS=
23200 test "x$enable_cfftot1 mmafm mmpfb otfinfo otftotfm t1dotlessj t1lint t1rawafm t1reencode t1testpage ttftotype42" = xno || SELECTED_SUBDIRS="$SELECTED_SUBDIRS cfftot1 mmafm mmpfb otfinfo otftotfm t1dotlessj t1lint t1rawafm t1reencode t1testpage ttftotype42"
23201
23202
23203
23204 if test "x$enable_auto_cfftot1" != xno
23205 then :
23206
23207 printf "%s\n" "#define HAVE_AUTO_CFFTOT1 1" >>confdefs.h
23208
23209 fi
23210 if test "x$enable_auto_t1dotlessj" != xno
23211 then :
23212
23213 printf "%s\n" "#define HAVE_AUTO_T1DOTLESSJ 1" >>confdefs.h
23214
23215 fi
23216 if test "x$enable_auto_ttftotype42" != xno
23217 then :
23218
23219 printf "%s\n" "#define HAVE_AUTO_TTFTOTYPE42 1" >>confdefs.h
23220
23221 fi
23222 if test "x$enable_auto_updmap" != xno
23223 then :
23224
23225 printf "%s\n" "#define HAVE_AUTO_UPDMAP 1" >>confdefs.h
23226
23227 fi
23228
23229
23230
23231
23232
23233 if test "x$enable_texlive_build" = xyes; then
23234 texlive_build_TRUE=
23235 texlive_build_FALSE='#'
23236 else
23237 texlive_build_TRUE='#'
23238 texlive_build_FALSE=
23239 fi
23240
23241
23242
23243 # Check whether --with-kpathsea was given.
23244 if test ${with_kpathsea+y}
23245 then :
23246 withval=$with_kpathsea;
23247 fi
23248
23249
23250 kpse_save_CPPFLAGS=$CPPFLAGS
23251 kpse_save_LIBS=$LIBS
23252
23253 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
23254 kpse_BLD=`(cd "./../../." && pwd)`
23255 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
23256
23257 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
23258 : ${CONFIG_LT=./config.lt}
23259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
23260 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
23261 as_write_fail=0
23262 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
23263 #! $SHELL
23264 # Generated by $as_me.
23265 # Run this file to recreate a libtool stub with the current configuration.
23266 SHELL=\${CONFIG_SHELL-$SHELL}
23267 export SHELL
23268 _ASEOF
23269 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
23270 ## -------------------- ##
23271 ## M4sh Initialization. ##
23272 ## -------------------- ##
23273
23274 # Be more Bourne compatible
23275 DUALCASE=1; export DUALCASE # for MKS sh
23276 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23277 then :
23278 emulate sh
23279 NULLCMD=:
23280 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23281 # is contrary to our usage. Disable this feature.
23282 alias -g '${1+"$@"}'='"$@"'
23283 setopt NO_GLOB_SUBST
23284 else case e in #(
23285 e) case `(set -o) 2>/dev/null` in #(
23286 *posix*) :
23287 set -o posix ;; #(
23288 *) :
23289 ;;
23290 esac ;;
23291 esac
23292 fi
23293
23294
23295
23296 # Reset variables that may have inherited troublesome values from
23297 # the environment.
23298
23299 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23300 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23301 # side effect of setting IFS to empty, thus disabling word splitting.)
23302 # Quoting is to prevent editors from complaining about space-tab.
23303 as_nl='
23304 '
23305 export as_nl
23306 IFS=" "" $as_nl"
23307
23308 PS1='$ '
23309 PS2='> '
23310 PS4='+ '
23311
23312 # Ensure predictable behavior from utilities with locale-dependent output.
23313 LC_ALL=C
23314 export LC_ALL
23315 LANGUAGE=C
23316 export LANGUAGE
23317
23318 # We cannot yet rely on "unset" to work, but we need these variables
23319 # to be unset--not just set to an empty or harmless value--now, to
23320 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23321 # also avoids known problems related to "unset" and subshell syntax
23322 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23323 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23324 do eval test \${$as_var+y} \
23325 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23326 done
23327
23328 # Ensure that fds 0, 1, and 2 are open.
23329 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23330 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23331 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23332
23333 # The user is always right.
23334 if ${PATH_SEPARATOR+false} :; then
23335 PATH_SEPARATOR=:
23336 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23337 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23338 PATH_SEPARATOR=';'
23339 }
23340 fi
23341
23342
23343 # Find who we are. Look in the path if we contain no directory separator.
23344 as_myself=
23345 case $0 in #((
23346 *[\\/]* ) as_myself=$0 ;;
23347 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23348 for as_dir in $PATH
23349 do
23350 IFS=$as_save_IFS
23351 case $as_dir in #(((
23352 '') as_dir=./ ;;
23353 */) ;;
23354 *) as_dir=$as_dir/ ;;
23355 esac
23356 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23357 done
23358 IFS=$as_save_IFS
23359
23360 ;;
23361 esac
23362 # We did not find ourselves, most probably we were run as 'sh COMMAND'
23363 # in which case we are not to be found in the path.
23364 if test "x$as_myself" = x; then
23365 as_myself=$0
23366 fi
23367 if test ! -f "$as_myself"; then
23368 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23369 exit 1
23370 fi
23371
23372
23373
23374 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23375 # ----------------------------------------
23376 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23377 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23378 # script with STATUS, using 1 if that was 0.
23379 as_fn_error ()
23380 {
23381 as_status=$1; test $as_status -eq 0 && as_status=1
23382 if test "$4"; then
23383 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23385 fi
23386 printf "%s\n" "$as_me: error: $2" >&2
23387 as_fn_exit $as_status
23388 } # as_fn_error
23389
23390
23391 # as_fn_set_status STATUS
23392 # -----------------------
23393 # Set $? to STATUS, without forking.
23394 as_fn_set_status ()
23395 {
23396 return $1
23397 } # as_fn_set_status
23398
23399 # as_fn_exit STATUS
23400 # -----------------
23401 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23402 as_fn_exit ()
23403 {
23404 set +e
23405 as_fn_set_status $1
23406 exit $1
23407 } # as_fn_exit
23408
23409 # as_fn_unset VAR
23410 # ---------------
23411 # Portably unset VAR.
23412 as_fn_unset ()
23413 {
23414 { eval $1=; unset $1;}
23415 }
23416 as_unset=as_fn_unset
23417
23418 # as_fn_append VAR VALUE
23419 # ----------------------
23420 # Append the text in VALUE to the end of the definition contained in VAR. Take
23421 # advantage of any shell optimizations that allow amortized linear growth over
23422 # repeated appends, instead of the typical quadratic growth present in naive
23423 # implementations.
23424 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23425 then :
23426 eval 'as_fn_append ()
23427 {
23428 eval $1+=\$2
23429 }'
23430 else case e in #(
23431 e) as_fn_append ()
23432 {
23433 eval $1=\$$1\$2
23434 } ;;
23435 esac
23436 fi # as_fn_append
23437
23438 # as_fn_arith ARG...
23439 # ------------------
23440 # Perform arithmetic evaluation on the ARGs, and store the result in the
23441 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23442 # must be portable across $(()) and expr.
23443 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23444 then :
23445 eval 'as_fn_arith ()
23446 {
23447 as_val=$(( $* ))
23448 }'
23449 else case e in #(
23450 e) as_fn_arith ()
23451 {
23452 as_val=`expr "$@" || test $? -eq 1`
23453 } ;;
23454 esac
23455 fi # as_fn_arith
23456
23457
23458 if expr a : '\(a\)' >/dev/null 2>&1 &&
23459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23460 as_expr=expr
23461 else
23462 as_expr=false
23463 fi
23464
23465 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23466 as_basename=basename
23467 else
23468 as_basename=false
23469 fi
23470
23471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23472 as_dirname=dirname
23473 else
23474 as_dirname=false
23475 fi
23476
23477 as_me=`$as_basename -- "$0" ||
23478 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23479 X"$0" : 'X\(//\)$' \| \
23480 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23481 printf "%s\n" X/"$0" |
23482 sed '/^.*\/\([^/][^/]*\)\/*$/{
23483 s//\1/
23484 q
23485 }
23486 /^X\/\(\/\/\)$/{
23487 s//\1/
23488 q
23489 }
23490 /^X\/\(\/\).*/{
23491 s//\1/
23492 q
23493 }
23494 s/.*/./; q'`
23495
23496 # Avoid depending upon Character Ranges.
23497 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23498 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23499 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23500 as_cr_digits='0123456789'
23501 as_cr_alnum=$as_cr_Letters$as_cr_digits
23502
23503
23504 # Determine whether it's possible to make 'echo' print without a newline.
23505 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23506 # for compatibility with existing Makefiles.
23507 ECHO_C= ECHO_N= ECHO_T=
23508 case `echo -n x` in #(((((
23509 -n*)
23510 case `echo 'xy\c'` in
23511 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23512 xy) ECHO_C='\c';;
23513 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23514 ECHO_T=' ';;
23515 esac;;
23516 *)
23517 ECHO_N='-n';;
23518 esac
23519
23520 # For backward compatibility with old third-party macros, we provide
23521 # the shell variables $as_echo and $as_echo_n. New code should use
23522 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23523 as_echo='printf %s\n'
23524 as_echo_n='printf %s'
23525
23526 rm -f conf$$ conf$$.exe conf$$.file
23527 if test -d conf$$.dir; then
23528 rm -f conf$$.dir/conf$$.file
23529 else
23530 rm -f conf$$.dir
23531 mkdir conf$$.dir 2>/dev/null
23532 fi
23533 if (echo >conf$$.file) 2>/dev/null; then
23534 if ln -s conf$$.file conf$$ 2>/dev/null; then
23535 as_ln_s='ln -s'
23536 # ... but there are two gotchas:
23537 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
23538 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
23539 # In both cases, we have to default to 'cp -pR'.
23540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23541 as_ln_s='cp -pR'
23542 elif ln conf$$.file conf$$ 2>/dev/null; then
23543 as_ln_s=ln
23544 else
23545 as_ln_s='cp -pR'
23546 fi
23547 else
23548 as_ln_s='cp -pR'
23549 fi
23550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23551 rmdir conf$$.dir 2>/dev/null
23552
23553
23554 # as_fn_mkdir_p
23555 # -------------
23556 # Create "$as_dir" as a directory, including parents if necessary.
23557 as_fn_mkdir_p ()
23558 {
23559
23560 case $as_dir in #(
23561 -*) as_dir=./$as_dir;;
23562 esac
23563 test -d "$as_dir" || eval $as_mkdir_p || {
23564 as_dirs=
23565 while :; do
23566 case $as_dir in #(
23567 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23568 *) as_qdir=$as_dir;;
23569 esac
23570 as_dirs="'$as_qdir' $as_dirs"
23571 as_dir=`$as_dirname -- "$as_dir" ||
23572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23573 X"$as_dir" : 'X\(//\)[^/]' \| \
23574 X"$as_dir" : 'X\(//\)$' \| \
23575 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23576 printf "%s\n" X"$as_dir" |
23577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23578 s//\1/
23579 q
23580 }
23581 /^X\(\/\/\)[^/].*/{
23582 s//\1/
23583 q
23584 }
23585 /^X\(\/\/\)$/{
23586 s//\1/
23587 q
23588 }
23589 /^X\(\/\).*/{
23590 s//\1/
23591 q
23592 }
23593 s/.*/./; q'`
23594 test -d "$as_dir" && break
23595 done
23596 test -z "$as_dirs" || eval "mkdir $as_dirs"
23597 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23598
23599
23600 } # as_fn_mkdir_p
23601 if mkdir -p . 2>/dev/null; then
23602 as_mkdir_p='mkdir -p "$as_dir"'
23603 else
23604 test -d ./-p && rmdir ./-p
23605 as_mkdir_p=false
23606 fi
23607
23608
23609 # as_fn_executable_p FILE
23610 # -----------------------
23611 # Test if FILE is an executable regular file.
23612 as_fn_executable_p ()
23613 {
23614 test -f "$1" && test -x "$1"
23615 } # as_fn_executable_p
23616 as_test_x='test -x'
23617 as_executable_p=as_fn_executable_p
23618
23619 # Sed expression to map a string onto a valid CPP name.
23620 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23621 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
23622
23623 # Sed expression to map a string onto a valid variable name.
23624 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23625 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
23626
23627
23628 exec 6>&1
23629 ## --------------------------------- ##
23630 ## Main body of "$CONFIG_LT" script. ##
23631 ## --------------------------------- ##
23632 _ASEOF
23633 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
23634
23635 cat >>"$CONFIG_LT" <<\_LTEOF
23636 lt_cl_silent=false
23637 exec 5>>config.log
23638 {
23639 echo
23640 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23641 ## Running $as_me. ##
23642 _ASBOX
23643 } >&5
23644
23645 lt_cl_help="\
23646 '$as_me' creates a local libtool stub from the current configuration,
23647 for use in further configure time tests before the real libtool is
23648 generated.
23649
23650 Usage: $0 [OPTIONS]
23651
23652 -h, --help print this help, then exit
23653 -V, --version print version number, then exit
23654 -q, --quiet do not print progress messages
23655 -d, --debug don't remove temporary files
23656
23657 Report bugs to <[email protected]>."
23658
23659 lt_cl_version="\
23660 LCDF typetools (TeX Live) config.lt 2.110
23661 configured by $0, generated by GNU Autoconf 2.72.
23662
23663 Copyright (C) 2024 Free Software Foundation, Inc.
23664 This config.lt script is free software; the Free Software Foundation
23665 gives unlimited permission to copy, distribute and modify it."
23666
23667 while test 0 != $#
23668 do
23669 case $1 in
23670 --version | --v* | -V )
23671 echo "$lt_cl_version"; exit 0 ;;
23672 --help | --h* | -h )
23673 echo "$lt_cl_help"; exit 0 ;;
23674 --debug | --d* | -d )
23675 debug=: ;;
23676 --quiet | --q* | --silent | --s* | -q )
23677 lt_cl_silent=: ;;
23678
23679 -*) as_fn_error $? "unrecognized option: $1
23680 Try '$0 --help' for more information." "$LINENO" 5 ;;
23681
23682 *) as_fn_error $? "unrecognized argument: $1
23683 Try '$0 --help' for more information." "$LINENO" 5 ;;
23684 esac
23685 shift
23686 done
23687
23688 if $lt_cl_silent; then
23689 exec 6>/dev/null
23690 fi
23691 _LTEOF
23692
23693 cat >>"$CONFIG_LT" <<_LTEOF
23694
23695
23696 # The HP-UX ksh and POSIX shell print the target directory to stdout
23697 # if CDPATH is set.
23698 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23699
23700 sed_quote_subst='$sed_quote_subst'
23701 double_quote_subst='$double_quote_subst'
23702 delay_variable_subst='$delay_variable_subst'
23703 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23704 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23705 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23706 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23707 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23708 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23709 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23710 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23711 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23712 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23713 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23714 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23715 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23716 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23717 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23718 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23719 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23720 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23721 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23722 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23723 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23724 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23725 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23726 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23727 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23728 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23729 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23730 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23731 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23732 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23733 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23734 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23735 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23736 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23737 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23738 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23739 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23740 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23741 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23742 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23743 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23744 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23745 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23746 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23747 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23748 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23749 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23750 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23751 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23752 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23753 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23754 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23755 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23756 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23757 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23758 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23759 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23760 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23761 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23762 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23763 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23764 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"`'
23765 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23766 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23767 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23768 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23769 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23770 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23771 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23772 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23773 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23774 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23775 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23776 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23777 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23778 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23779 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23780 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23781 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23782 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23783 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23784 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23785 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23786 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23787 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23788 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23789 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23790 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23791 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23792 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23793 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23794 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23795 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23796 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23797 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23798 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23799 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23800 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23801 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23802 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23803 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23804 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23805 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23806 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23807 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23808 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23809 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23810 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23811 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23812 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23813 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23814 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23815 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23816 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23817 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23818 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23819 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23820 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23821 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23822 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23823 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23824 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23825 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23826 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23827 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23828 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23829 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23830 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23831 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23832 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23833 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23834 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23835 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23836 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23837 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23838 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23839 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23840 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23841 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23842 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23843 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23844 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23845 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23846 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23847 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23848 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23849 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23850 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23851 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23852 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23853 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23854 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23855 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23856 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23857 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23858 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23859 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23860 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23861 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23862 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23863 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23864 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23865 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23866 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23867 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23868 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23869 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23870 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23871 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23872 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23873 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23874 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23875 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23876 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23877 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23878 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23879 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23880 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23881 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23882 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23883 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23884 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23885 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23886 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23887 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23888 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23889 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23890 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23891 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23892 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23893 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23894 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23895
23896 LTCC='$LTCC'
23897 LTCFLAGS='$LTCFLAGS'
23898 compiler='$compiler_DEFAULT'
23899
23900 # A function that is used when there is no print builtin or printf.
23901 func_fallback_echo ()
23902 {
23903 eval 'cat <<_LTECHO_EOF
23904 \$1
23905 _LTECHO_EOF'
23906 }
23907
23908 # Quote evaled strings.
23909 for var in AS \
23910 DLLTOOL \
23911 OBJDUMP \
23912 SHELL \
23913 ECHO \
23914 PATH_SEPARATOR \
23915 SED \
23916 GREP \
23917 EGREP \
23918 FGREP \
23919 LD \
23920 NM \
23921 LN_S \
23922 lt_SP2NL \
23923 lt_NL2SP \
23924 reload_flag \
23925 FILECMD \
23926 deplibs_check_method \
23927 file_magic_cmd \
23928 file_magic_glob \
23929 want_nocaseglob \
23930 sharedlib_from_linklib_cmd \
23931 AR \
23932 archiver_list_spec \
23933 STRIP \
23934 RANLIB \
23935 CC \
23936 CFLAGS \
23937 compiler \
23938 lt_cv_sys_global_symbol_pipe \
23939 lt_cv_sys_global_symbol_to_cdecl \
23940 lt_cv_sys_global_symbol_to_import \
23941 lt_cv_sys_global_symbol_to_c_name_address \
23942 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23943 lt_cv_nm_interface \
23944 nm_file_list_spec \
23945 lt_cv_truncate_bin \
23946 lt_prog_compiler_no_builtin_flag \
23947 lt_prog_compiler_pic \
23948 lt_prog_compiler_wl \
23949 lt_prog_compiler_static \
23950 lt_cv_prog_compiler_c_o \
23951 need_locks \
23952 MANIFEST_TOOL \
23953 DSYMUTIL \
23954 NMEDIT \
23955 LIPO \
23956 OTOOL \
23957 OTOOL64 \
23958 shrext_cmds \
23959 export_dynamic_flag_spec \
23960 whole_archive_flag_spec \
23961 compiler_needs_object \
23962 with_gnu_ld \
23963 allow_undefined_flag \
23964 no_undefined_flag \
23965 hardcode_libdir_flag_spec \
23966 hardcode_libdir_separator \
23967 exclude_expsyms \
23968 include_expsyms \
23969 file_list_spec \
23970 variables_saved_for_relink \
23971 libname_spec \
23972 library_names_spec \
23973 soname_spec \
23974 install_override_mode \
23975 finish_eval \
23976 old_striplib \
23977 striplib \
23978 compiler_lib_search_dirs \
23979 predep_objects \
23980 postdep_objects \
23981 predeps \
23982 postdeps \
23983 compiler_lib_search_path \
23984 LD_CXX \
23985 reload_flag_CXX \
23986 compiler_CXX \
23987 lt_prog_compiler_no_builtin_flag_CXX \
23988 lt_prog_compiler_pic_CXX \
23989 lt_prog_compiler_wl_CXX \
23990 lt_prog_compiler_static_CXX \
23991 lt_cv_prog_compiler_c_o_CXX \
23992 export_dynamic_flag_spec_CXX \
23993 whole_archive_flag_spec_CXX \
23994 compiler_needs_object_CXX \
23995 with_gnu_ld_CXX \
23996 allow_undefined_flag_CXX \
23997 no_undefined_flag_CXX \
23998 hardcode_libdir_flag_spec_CXX \
23999 hardcode_libdir_separator_CXX \
24000 exclude_expsyms_CXX \
24001 include_expsyms_CXX \
24002 file_list_spec_CXX \
24003 compiler_lib_search_dirs_CXX \
24004 predep_objects_CXX \
24005 postdep_objects_CXX \
24006 predeps_CXX \
24007 postdeps_CXX \
24008 compiler_lib_search_path_CXX; do
24009 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24010 *[\\\\\\\`\\"\\\$]*)
24011 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24012 ;;
24013 *)
24014 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24015 ;;
24016 esac
24017 done
24018
24019 # Double-quote double-evaled strings.
24020 for var in reload_cmds \
24021 old_postinstall_cmds \
24022 old_postuninstall_cmds \
24023 old_archive_cmds \
24024 extract_expsyms_cmds \
24025 old_archive_from_new_cmds \
24026 old_archive_from_expsyms_cmds \
24027 archive_cmds \
24028 archive_expsym_cmds \
24029 module_cmds \
24030 module_expsym_cmds \
24031 export_symbols_cmds \
24032 prelink_cmds \
24033 postlink_cmds \
24034 postinstall_cmds \
24035 postuninstall_cmds \
24036 finish_cmds \
24037 sys_lib_search_path_spec \
24038 configure_time_dlsearch_path \
24039 configure_time_lt_sys_library_path \
24040 reload_cmds_CXX \
24041 old_archive_cmds_CXX \
24042 old_archive_from_new_cmds_CXX \
24043 old_archive_from_expsyms_cmds_CXX \
24044 archive_cmds_CXX \
24045 archive_expsym_cmds_CXX \
24046 module_cmds_CXX \
24047 module_expsym_cmds_CXX \
24048 export_symbols_cmds_CXX \
24049 prelink_cmds_CXX \
24050 postlink_cmds_CXX; do
24051 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24052 *[\\\\\\\`\\"\\\$]*)
24053 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24054 ;;
24055 *)
24056 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24057 ;;
24058 esac
24059 done
24060
24061 ac_aux_dir='$ac_aux_dir'
24062
24063 # See if we are running on zsh, and set the options that allow our
24064 # commands through without removal of \ escapes INIT.
24065 if test -n "\${ZSH_VERSION+set}"; then
24066 setopt NO_GLOB_SUBST
24067 fi
24068
24069
24070 PACKAGE='$PACKAGE'
24071 VERSION='$VERSION'
24072 RM='$RM'
24073 ofile='$ofile'
24074
24075
24076
24077
24078
24079 _LTEOF
24080
24081 cat >>"$CONFIG_LT" <<\_LTEOF
24082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
24083 printf "%s\n" "$as_me: creating $ofile" >&6;}
24084
24085
24086 # See if we are running on zsh, and set the options that allow our
24087 # commands through without removal of \ escapes.
24088 if test -n "${ZSH_VERSION+set}"; then
24089 setopt NO_GLOB_SUBST
24090 fi
24091
24092 cfgfile=${ofile}T
24093 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24094 $RM "$cfgfile"
24095
24096 cat <<_LT_EOF >> "$cfgfile"
24097 #! $SHELL
24098 # Generated automatically by $as_me ($PACKAGE) $VERSION
24099 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24100
24101 # Provide generalized library-building support services.
24102 # Written by Gordon Matzigkeit, 1996
24103
24104 # Copyright (C) 2024 Free Software Foundation, Inc.
24105 # This is free software; see the source for copying conditions. There is NO
24106 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24107
24108 # GNU Libtool is free software; you can redistribute it and/or modify
24109 # it under the terms of the GNU General Public License as published by
24110 # the Free Software Foundation; either version 2 of the License, or
24111 # (at your option) any later version.
24112 #
24113 # As a special exception to the GNU General Public License, if you
24114 # distribute this file as part of a program or library that is built
24115 # using GNU Libtool, you may include this file under the same
24116 # distribution terms that you use for the rest of that program.
24117 #
24118 # GNU Libtool is distributed in the hope that it will be useful, but
24119 # WITHOUT ANY WARRANTY; without even the implied warranty of
24120 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24121 # GNU General Public License for more details.
24122 #
24123 # You should have received a copy of the GNU General Public License
24124 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24125
24126
24127 # The names of the tagged configurations supported by this script.
24128 available_tags='CXX '
24129
24130 # Configured defaults for sys_lib_dlsearch_path munging.
24131 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24132
24133 # ### BEGIN LIBTOOL CONFIG
24134
24135 # Which release of libtool.m4 was used?
24136 macro_version=$macro_version
24137 macro_revision=$macro_revision
24138
24139 # Assembler program.
24140 AS=$lt_AS
24141
24142 # DLL creation program.
24143 DLLTOOL=$lt_DLLTOOL
24144
24145 # Object dumper program.
24146 OBJDUMP=$lt_OBJDUMP
24147
24148 # Whether or not to build shared libraries.
24149 build_libtool_libs=$enable_shared
24150
24151 # Whether or not to build static libraries.
24152 build_old_libs=$enable_static
24153
24154 # What type of objects to build.
24155 pic_mode=$pic_mode
24156
24157 # Whether or not to optimize for fast installation.
24158 fast_install=$enable_fast_install
24159
24160 # Shared archive member basename,for filename based shared library versioning on AIX.
24161 shared_archive_member_spec=$shared_archive_member_spec
24162
24163 # Shell to use when invoking shell scripts.
24164 SHELL=$lt_SHELL
24165
24166 # An echo program that protects backslashes.
24167 ECHO=$lt_ECHO
24168
24169 # The PATH separator for the build system.
24170 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24171
24172 # The host system.
24173 host_alias=$host_alias
24174 host=$host
24175 host_os=$host_os
24176
24177 # The build system.
24178 build_alias=$build_alias
24179 build=$build
24180 build_os=$build_os
24181
24182 # A sed program that does not truncate output.
24183 SED=$lt_SED
24184
24185 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24186 Xsed="\$SED -e 1s/^X//"
24187
24188 # A grep program that handles long lines.
24189 GREP=$lt_GREP
24190
24191 # An ERE matcher.
24192 EGREP=$lt_EGREP
24193
24194 # A literal string matcher.
24195 FGREP=$lt_FGREP
24196
24197 # A BSD- or MS-compatible name lister.
24198 NM=$lt_NM
24199
24200 # Whether we need soft or hard links.
24201 LN_S=$lt_LN_S
24202
24203 # What is the maximum length of a command?
24204 max_cmd_len=$max_cmd_len
24205
24206 # Object file suffix (normally "o").
24207 objext=$ac_objext
24208
24209 # Executable file suffix (normally "").
24210 exeext=$exeext
24211
24212 # whether the shell understands "unset".
24213 lt_unset=$lt_unset
24214
24215 # turn spaces into newlines.
24216 SP2NL=$lt_lt_SP2NL
24217
24218 # turn newlines into spaces.
24219 NL2SP=$lt_lt_NL2SP
24220
24221 # convert \$build file names to \$host format.
24222 to_host_file_cmd=$lt_cv_to_host_file_cmd
24223
24224 # convert \$build files to toolchain format.
24225 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24226
24227 # A file(cmd) program that detects file types.
24228 FILECMD=$lt_FILECMD
24229
24230 # Method to check whether dependent libraries are shared objects.
24231 deplibs_check_method=$lt_deplibs_check_method
24232
24233 # Command to use when deplibs_check_method = "file_magic".
24234 file_magic_cmd=$lt_file_magic_cmd
24235
24236 # How to find potential files when deplibs_check_method = "file_magic".
24237 file_magic_glob=$lt_file_magic_glob
24238
24239 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24240 want_nocaseglob=$lt_want_nocaseglob
24241
24242 # Command to associate shared and link libraries.
24243 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24244
24245 # The archiver.
24246 AR=$lt_AR
24247
24248 # Flags to create an archive (by configure).
24249 lt_ar_flags=$lt_ar_flags
24250
24251 # Flags to create an archive.
24252 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
24253
24254 # How to feed a file listing to the archiver.
24255 archiver_list_spec=$lt_archiver_list_spec
24256
24257 # A symbol stripping program.
24258 STRIP=$lt_STRIP
24259
24260 # Commands used to install an old-style archive.
24261 RANLIB=$lt_RANLIB
24262 old_postinstall_cmds=$lt_old_postinstall_cmds
24263 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24264
24265 # Whether to use a lock for old archive extraction.
24266 lock_old_archive_extraction=$lock_old_archive_extraction
24267
24268 # A C compiler.
24269 LTCC=$lt_CC
24270
24271 # LTCC compiler flags.
24272 LTCFLAGS=$lt_CFLAGS
24273
24274 # Take the output of nm and produce a listing of raw symbols and C names.
24275 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24276
24277 # Transform the output of nm in a proper C declaration.
24278 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24279
24280 # Transform the output of nm into a list of symbols to manually relocate.
24281 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24282
24283 # Transform the output of nm in a C name address pair.
24284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24285
24286 # Transform the output of nm in a C name address pair when lib prefix is needed.
24287 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24288
24289 # The name lister interface.
24290 nm_interface=$lt_lt_cv_nm_interface
24291
24292 # Specify filename containing input files for \$NM.
24293 nm_file_list_spec=$lt_nm_file_list_spec
24294
24295 # The root where to search for dependent libraries,and where our libraries should be installed.
24296 lt_sysroot=$lt_sysroot
24297
24298 # Command to truncate a binary pipe.
24299 lt_truncate_bin=$lt_lt_cv_truncate_bin
24300
24301 # The name of the directory that contains temporary libtool files.
24302 objdir=$objdir
24303
24304 # Used to examine libraries when file_magic_cmd begins with "file".
24305 MAGIC_CMD=$MAGIC_CMD
24306
24307 # Must we lock files when doing compilation?
24308 need_locks=$lt_need_locks
24309
24310 # Manifest tool.
24311 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24312
24313 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24314 DSYMUTIL=$lt_DSYMUTIL
24315
24316 # Tool to change global to local symbols on Mac OS X.
24317 NMEDIT=$lt_NMEDIT
24318
24319 # Tool to manipulate fat objects and archives on Mac OS X.
24320 LIPO=$lt_LIPO
24321
24322 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24323 OTOOL=$lt_OTOOL
24324
24325 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24326 OTOOL64=$lt_OTOOL64
24327
24328 # Old archive suffix (normally "a").
24329 libext=$libext
24330
24331 # Shared library suffix (normally ".so").
24332 shrext_cmds=$lt_shrext_cmds
24333
24334 # The commands to extract the exported symbol list from a shared archive.
24335 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24336
24337 # Variables whose values should be saved in libtool wrapper scripts and
24338 # restored at link time.
24339 variables_saved_for_relink=$lt_variables_saved_for_relink
24340
24341 # Do we need the "lib" prefix for modules?
24342 need_lib_prefix=$need_lib_prefix
24343
24344 # Do we need a version for libraries?
24345 need_version=$need_version
24346
24347 # Library versioning type.
24348 version_type=$version_type
24349
24350 # Shared library runtime path variable.
24351 runpath_var=$runpath_var
24352
24353 # Shared library path variable.
24354 shlibpath_var=$shlibpath_var
24355
24356 # Is shlibpath searched before the hard-coded library search path?
24357 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24358
24359 # Format of library name prefix.
24360 libname_spec=$lt_libname_spec
24361
24362 # List of archive names. First name is the real one, the rest are links.
24363 # The last name is the one that the linker finds with -lNAME
24364 library_names_spec=$lt_library_names_spec
24365
24366 # The coded name of the library, if different from the real name.
24367 soname_spec=$lt_soname_spec
24368
24369 # Permission mode override for installation of shared libraries.
24370 install_override_mode=$lt_install_override_mode
24371
24372 # Command to use after installation of a shared archive.
24373 postinstall_cmds=$lt_postinstall_cmds
24374
24375 # Command to use after uninstallation of a shared archive.
24376 postuninstall_cmds=$lt_postuninstall_cmds
24377
24378 # Commands used to finish a libtool library installation in a directory.
24379 finish_cmds=$lt_finish_cmds
24380
24381 # As "finish_cmds", except a single script fragment to be evaled but
24382 # not shown.
24383 finish_eval=$lt_finish_eval
24384
24385 # Whether we should hardcode library paths into libraries.
24386 hardcode_into_libs=$hardcode_into_libs
24387
24388 # Compile-time system search path for libraries.
24389 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24390
24391 # Detected run-time system search path for libraries.
24392 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24393
24394 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24395 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24396
24397 # Whether dlopen is supported.
24398 dlopen_support=$enable_dlopen
24399
24400 # Whether dlopen of programs is supported.
24401 dlopen_self=$enable_dlopen_self
24402
24403 # Whether dlopen of statically linked programs is supported.
24404 dlopen_self_static=$enable_dlopen_self_static
24405
24406 # Commands to strip libraries.
24407 old_striplib=$lt_old_striplib
24408 striplib=$lt_striplib
24409
24410
24411 # The linker used to build libraries.
24412 LD=$lt_LD
24413
24414 # How to create reloadable object files.
24415 reload_flag=$lt_reload_flag
24416 reload_cmds=$lt_reload_cmds
24417
24418 # Commands used to build an old-style archive.
24419 old_archive_cmds=$lt_old_archive_cmds
24420
24421 # A language specific compiler.
24422 CC=$lt_compiler
24423
24424 # Is the compiler the GNU compiler?
24425 with_gcc=$GCC
24426
24427 # Compiler flag to turn off builtin functions.
24428 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24429
24430 # Additional compiler flags for building library objects.
24431 pic_flag=$lt_lt_prog_compiler_pic
24432
24433 # How to pass a linker flag through the compiler.
24434 wl=$lt_lt_prog_compiler_wl
24435
24436 # Compiler flag to prevent dynamic linking.
24437 link_static_flag=$lt_lt_prog_compiler_static
24438
24439 # Does compiler simultaneously support -c and -o options?
24440 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24441
24442 # Whether or not to add -lc for building shared libraries.
24443 build_libtool_need_lc=$archive_cmds_need_lc
24444
24445 # Whether or not to disallow shared libs when runtime libs are static.
24446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24447
24448 # Compiler flag to allow reflexive dlopens.
24449 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24450
24451 # Compiler flag to generate shared objects directly from archives.
24452 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24453
24454 # Whether the compiler copes with passing no objects directly.
24455 compiler_needs_object=$lt_compiler_needs_object
24456
24457 # Create an old-style archive from a shared archive.
24458 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24459
24460 # Create a temporary old-style archive to link instead of a shared archive.
24461 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24462
24463 # Commands used to build a shared archive.
24464 archive_cmds=$lt_archive_cmds
24465 archive_expsym_cmds=$lt_archive_expsym_cmds
24466
24467 # Commands used to build a loadable module if different from building
24468 # a shared archive.
24469 module_cmds=$lt_module_cmds
24470 module_expsym_cmds=$lt_module_expsym_cmds
24471
24472 # Whether we are building with GNU ld or not.
24473 with_gnu_ld=$lt_with_gnu_ld
24474
24475 # Flag that allows shared libraries with undefined symbols to be built.
24476 allow_undefined_flag=$lt_allow_undefined_flag
24477
24478 # Flag that enforces no undefined symbols.
24479 no_undefined_flag=$lt_no_undefined_flag
24480
24481 # Flag to hardcode \$libdir into a binary during linking.
24482 # This must work even if \$libdir does not exist
24483 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24484
24485 # Whether we need a single "-rpath" flag with a separated argument.
24486 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24487
24488 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24489 # DIR into the resulting binary.
24490 hardcode_direct=$hardcode_direct
24491
24492 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24493 # DIR into the resulting binary and the resulting library dependency is
24494 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
24495 # library is relocated.
24496 hardcode_direct_absolute=$hardcode_direct_absolute
24497
24498 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24499 # into the resulting binary.
24500 hardcode_minus_L=$hardcode_minus_L
24501
24502 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24503 # into the resulting binary.
24504 hardcode_shlibpath_var=$hardcode_shlibpath_var
24505
24506 # Set to "yes" if building a shared library automatically hardcodes DIR
24507 # into the library and all subsequent libraries and executables linked
24508 # against it.
24509 hardcode_automatic=$hardcode_automatic
24510
24511 # Set to yes if linker adds runtime paths of dependent libraries
24512 # to runtime path list.
24513 inherit_rpath=$inherit_rpath
24514
24515 # Whether libtool must link a program against all its dependency libraries.
24516 link_all_deplibs=$link_all_deplibs
24517
24518 # Set to "yes" if exported symbols are required.
24519 always_export_symbols=$always_export_symbols
24520
24521 # The commands to list exported symbols.
24522 export_symbols_cmds=$lt_export_symbols_cmds
24523
24524 # Symbols that should not be listed in the preloaded symbols.
24525 exclude_expsyms=$lt_exclude_expsyms
24526
24527 # Symbols that must always be exported.
24528 include_expsyms=$lt_include_expsyms
24529
24530 # Commands necessary for linking programs (against libraries) with templates.
24531 prelink_cmds=$lt_prelink_cmds
24532
24533 # Commands necessary for finishing linking programs.
24534 postlink_cmds=$lt_postlink_cmds
24535
24536 # Specify filename containing input files.
24537 file_list_spec=$lt_file_list_spec
24538
24539 # How to hardcode a shared library path into an executable.
24540 hardcode_action=$hardcode_action
24541
24542 # The directories searched by this compiler when creating a shared library.
24543 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24544
24545 # Dependencies to place before and after the objects being linked to
24546 # create a shared library.
24547 predep_objects=$lt_predep_objects
24548 postdep_objects=$lt_postdep_objects
24549 predeps=$lt_predeps
24550 postdeps=$lt_postdeps
24551
24552 # The library search path used internally by the compiler when linking
24553 # a shared library.
24554 compiler_lib_search_path=$lt_compiler_lib_search_path
24555
24556 # ### END LIBTOOL CONFIG
24557
24558 _LT_EOF
24559
24560 cat <<'_LT_EOF' >> "$cfgfile"
24561
24562 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24563
24564 # func_munge_path_list VARIABLE PATH
24565 # -----------------------------------
24566 # VARIABLE is name of variable containing _space_ separated list of
24567 # directories to be munged by the contents of PATH, which is string
24568 # having a format:
24569 # "DIR[:DIR]:"
24570 # string "DIR[ DIR]" will be prepended to VARIABLE
24571 # ":DIR[:DIR]"
24572 # string "DIR[ DIR]" will be appended to VARIABLE
24573 # "DIRP[:DIRP]::[DIRA:]DIRA"
24574 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24575 # "DIRA[ DIRA]" will be appended to VARIABLE
24576 # "DIR[:DIR]"
24577 # VARIABLE will be replaced by "DIR[ DIR]"
24578 func_munge_path_list ()
24579 {
24580 case x$2 in
24581 x)
24582 ;;
24583 *:)
24584 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24585 ;;
24586 x:*)
24587 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24588 ;;
24589 *::*)
24590 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24591 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24592 ;;
24593 *)
24594 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24595 ;;
24596 esac
24597 }
24598
24599
24600 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24601 func_cc_basename ()
24602 {
24603 for cc_temp in $*""; do
24604 case $cc_temp in
24605 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24606 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24607 \-*) ;;
24608 *) break;;
24609 esac
24610 done
24611 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24612 }
24613
24614
24615 # ### END FUNCTIONS SHARED WITH CONFIGURE
24616
24617 _LT_EOF
24618
24619 case $host_os in
24620 aix3*)
24621 cat <<\_LT_EOF >> "$cfgfile"
24622 # AIX sometimes has problems with the GCC collect2 program. For some
24623 # reason, if we set the COLLECT_NAMES environment variable, the problems
24624 # vanish in a puff of smoke.
24625 if test set != "${COLLECT_NAMES+set}"; then
24626 COLLECT_NAMES=
24627 export COLLECT_NAMES
24628 fi
24629 _LT_EOF
24630 ;;
24631 esac
24632
24633
24634
24635 ltmain=$ac_aux_dir/ltmain.sh
24636
24637
24638 # We use sed instead of cat because bash on DJGPP gets confused if
24639 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24640 # text mode, it properly converts lines to CR/LF. This bash problem
24641 # is reportedly fixed, but why not run on old versions too?
24642 $SED '$q' "$ltmain" >> "$cfgfile" \
24643 || (rm -f "$cfgfile"; exit 1)
24644
24645 mv -f "$cfgfile" "$ofile" ||
24646 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24647 chmod +x "$ofile"
24648
24649
24650 cat <<_LT_EOF >> "$ofile"
24651
24652 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24653
24654 # The linker used to build libraries.
24655 LD=$lt_LD_CXX
24656
24657 # How to create reloadable object files.
24658 reload_flag=$lt_reload_flag_CXX
24659 reload_cmds=$lt_reload_cmds_CXX
24660
24661 # Commands used to build an old-style archive.
24662 old_archive_cmds=$lt_old_archive_cmds_CXX
24663
24664 # A language specific compiler.
24665 CC=$lt_compiler_CXX
24666
24667 # Is the compiler the GNU compiler?
24668 with_gcc=$GCC_CXX
24669
24670 # Compiler flag to turn off builtin functions.
24671 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24672
24673 # Additional compiler flags for building library objects.
24674 pic_flag=$lt_lt_prog_compiler_pic_CXX
24675
24676 # How to pass a linker flag through the compiler.
24677 wl=$lt_lt_prog_compiler_wl_CXX
24678
24679 # Compiler flag to prevent dynamic linking.
24680 link_static_flag=$lt_lt_prog_compiler_static_CXX
24681
24682 # Does compiler simultaneously support -c and -o options?
24683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24684
24685 # Whether or not to add -lc for building shared libraries.
24686 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24687
24688 # Whether or not to disallow shared libs when runtime libs are static.
24689 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24690
24691 # Compiler flag to allow reflexive dlopens.
24692 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24693
24694 # Compiler flag to generate shared objects directly from archives.
24695 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24696
24697 # Whether the compiler copes with passing no objects directly.
24698 compiler_needs_object=$lt_compiler_needs_object_CXX
24699
24700 # Create an old-style archive from a shared archive.
24701 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24702
24703 # Create a temporary old-style archive to link instead of a shared archive.
24704 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24705
24706 # Commands used to build a shared archive.
24707 archive_cmds=$lt_archive_cmds_CXX
24708 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24709
24710 # Commands used to build a loadable module if different from building
24711 # a shared archive.
24712 module_cmds=$lt_module_cmds_CXX
24713 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24714
24715 # Whether we are building with GNU ld or not.
24716 with_gnu_ld=$lt_with_gnu_ld_CXX
24717
24718 # Flag that allows shared libraries with undefined symbols to be built.
24719 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24720
24721 # Flag that enforces no undefined symbols.
24722 no_undefined_flag=$lt_no_undefined_flag_CXX
24723
24724 # Flag to hardcode \$libdir into a binary during linking.
24725 # This must work even if \$libdir does not exist
24726 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24727
24728 # Whether we need a single "-rpath" flag with a separated argument.
24729 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24730
24731 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24732 # DIR into the resulting binary.
24733 hardcode_direct=$hardcode_direct_CXX
24734
24735 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24736 # DIR into the resulting binary and the resulting library dependency is
24737 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
24738 # library is relocated.
24739 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24740
24741 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24742 # into the resulting binary.
24743 hardcode_minus_L=$hardcode_minus_L_CXX
24744
24745 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24746 # into the resulting binary.
24747 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24748
24749 # Set to "yes" if building a shared library automatically hardcodes DIR
24750 # into the library and all subsequent libraries and executables linked
24751 # against it.
24752 hardcode_automatic=$hardcode_automatic_CXX
24753
24754 # Set to yes if linker adds runtime paths of dependent libraries
24755 # to runtime path list.
24756 inherit_rpath=$inherit_rpath_CXX
24757
24758 # Whether libtool must link a program against all its dependency libraries.
24759 link_all_deplibs=$link_all_deplibs_CXX
24760
24761 # Set to "yes" if exported symbols are required.
24762 always_export_symbols=$always_export_symbols_CXX
24763
24764 # The commands to list exported symbols.
24765 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24766
24767 # Symbols that should not be listed in the preloaded symbols.
24768 exclude_expsyms=$lt_exclude_expsyms_CXX
24769
24770 # Symbols that must always be exported.
24771 include_expsyms=$lt_include_expsyms_CXX
24772
24773 # Commands necessary for linking programs (against libraries) with templates.
24774 prelink_cmds=$lt_prelink_cmds_CXX
24775
24776 # Commands necessary for finishing linking programs.
24777 postlink_cmds=$lt_postlink_cmds_CXX
24778
24779 # Specify filename containing input files.
24780 file_list_spec=$lt_file_list_spec_CXX
24781
24782 # How to hardcode a shared library path into an executable.
24783 hardcode_action=$hardcode_action_CXX
24784
24785 # The directories searched by this compiler when creating a shared library.
24786 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24787
24788 # Dependencies to place before and after the objects being linked to
24789 # create a shared library.
24790 predep_objects=$lt_predep_objects_CXX
24791 postdep_objects=$lt_postdep_objects_CXX
24792 predeps=$lt_predeps_CXX
24793 postdeps=$lt_postdeps_CXX
24794
24795 # The library search path used internally by the compiler when linking
24796 # a shared library.
24797 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24798
24799 # ### END LIBTOOL TAG CONFIG: CXX
24800 _LT_EOF
24801
24802
24803 as_fn_exit 0
24804 _LTEOF
24805 chmod +x "$CONFIG_LT"
24806
24807 # configure is writing to config.log, but config.lt does its own redirection,
24808 # appending to config.log, which fails on DOS, as config.log is still kept
24809 # open by configure. Here we exec the FD to /dev/null, effectively closing
24810 # config.log, so it can be properly (re)opened and appended to by config.lt.
24811 lt_cl_success=:
24812 test yes = "$silent" &&
24813 lt_config_lt_args="$lt_config_lt_args --quiet"
24814 exec 5>/dev/null
24815 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
24816 exec 5>>config.log
24817 $lt_cl_success || as_fn_exit 1
24818
24819 #
24820 #
24821 ac_ext=cpp
24822 ac_cpp='$CXXCPP $CPPFLAGS'
24823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24826 ac_link="./libtool --mode=link --tag=CXX $ac_link"
24827
24828 if test -n "$ac_tool_prefix"; then
24829 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24830 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24832 printf %s "checking for $ac_word... " >&6; }
24833 if test ${ac_cv_prog_PKG_CONFIG+y}
24834 then :
24835 printf %s "(cached) " >&6
24836 else case e in #(
24837 e) if test -n "$PKG_CONFIG"; then
24838 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
24839 else
24840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24841 for as_dir in $PATH
24842 do
24843 IFS=$as_save_IFS
24844 case $as_dir in #(((
24845 '') as_dir=./ ;;
24846 */) ;;
24847 *) as_dir=$as_dir/ ;;
24848 esac
24849 for ac_exec_ext in '' $ac_executable_extensions; do
24850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24851 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
24852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24853 break 2
24854 fi
24855 done
24856 done
24857 IFS=$as_save_IFS
24858
24859 fi ;;
24860 esac
24861 fi
24862 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
24863 if test -n "$PKG_CONFIG"; then
24864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24865 printf "%s\n" "$PKG_CONFIG" >&6; }
24866 else
24867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24868 printf "%s\n" "no" >&6; }
24869 fi
24870
24871
24872 fi
24873 if test -z "$ac_cv_prog_PKG_CONFIG"; then
24874 ac_ct_PKG_CONFIG=$PKG_CONFIG
24875 # Extract the first word of "pkg-config", so it can be a program name with args.
24876 set dummy pkg-config; ac_word=$2
24877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24878 printf %s "checking for $ac_word... " >&6; }
24879 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
24880 then :
24881 printf %s "(cached) " >&6
24882 else case e in #(
24883 e) if test -n "$ac_ct_PKG_CONFIG"; then
24884 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
24885 else
24886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24887 for as_dir in $PATH
24888 do
24889 IFS=$as_save_IFS
24890 case $as_dir in #(((
24891 '') as_dir=./ ;;
24892 */) ;;
24893 *) as_dir=$as_dir/ ;;
24894 esac
24895 for ac_exec_ext in '' $ac_executable_extensions; do
24896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24897 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
24898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24899 break 2
24900 fi
24901 done
24902 done
24903 IFS=$as_save_IFS
24904
24905 fi ;;
24906 esac
24907 fi
24908 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
24909 if test -n "$ac_ct_PKG_CONFIG"; then
24910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
24911 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
24912 else
24913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24914 printf "%s\n" "no" >&6; }
24915 fi
24916
24917 if test "x$ac_ct_PKG_CONFIG" = x; then
24918 PKG_CONFIG="false"
24919 else
24920 case $cross_compiling:$ac_tool_warned in
24921 yes:)
24922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24923 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24924 ac_tool_warned=yes ;;
24925 esac
24926 PKG_CONFIG=$ac_ct_PKG_CONFIG
24927 fi
24928 else
24929 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
24930 fi
24931
24932 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
24933 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
24934 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
24935
24936 # Check whether --with-system-kpathsea was given.
24937 if test ${with_system_kpathsea+y}
24938 then :
24939 withval=$with_system_kpathsea;
24940 fi
24941 if test "x$with_system_kpathsea" = xyes; then
24942 if $PKG_CONFIG kpathsea; then
24943 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
24944 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
24945 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
24946 as_fn_error $? "did not find kpathsea" "$LINENO" 5
24947 fi
24948 else
24949 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
24950 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
24951 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
24952 KPATHSEA_RULE='# Rebuild libkpathsea
24953 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
24954 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
24955 ${top_builddir}/../kpathsea/paths.h:
24956 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
24957 fi
24958
24959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
24960 printf %s "checking if libkpathsea supports debugging... " >&6; }
24961 if test ${kpse_cv_kpse_debug+y}
24962 then :
24963 printf %s "(cached) " >&6
24964 else case e in #(
24965 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
24966 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
24967
24968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24969 /* end confdefs.h. */
24970 #include <kpathsea/kpathsea.h>
24971 int
24972 main (void)
24973 {
24974 FILE *f = fopen("f", "r")
24975 ;
24976 return 0;
24977 }
24978 _ACEOF
24979 if ac_fn_cxx_try_link "$LINENO"
24980 then :
24981 kpse_cv_kpse_debug=yes
24982 else case e in #(
24983 e) kpse_cv_kpse_debug=no ;;
24984 esac
24985 fi
24986 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24987 conftest$ac_exeext conftest.$ac_ext
24988 CPPFLAGS=$kpse_save_CPPFLAGS
24989 LIBS=$kpse_save_LIBS
24990 ;;
24991 esac
24992 fi
24993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
24994 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
24995 if test "x$kpse_cv_kpse_debug" != xyes
24996 then :
24997 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
24998 fi
24999
25000
25001 if test "x$enable_build" != xno || test -f config.force; then
25002
25003 eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
25004 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
25005
25006
25007 if test "x$with_kpathsea" != xno; then
25008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kpathsea headers and library" >&5
25009 printf %s "checking for kpathsea headers and library... " >&6; }
25010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25011 /* end confdefs.h. */
25012 #include <kpathsea/kpathsea.h>
25013 int
25014 main (void)
25015 {
25016 kpse_tfm_format;
25017 ;
25018 return 0;
25019 }
25020 _ACEOF
25021 if ac_fn_cxx_try_link "$LINENO"
25022 then :
25023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25024 printf "%s\n" "yes" >&6; }
25025 ac_fn_check_decl "$LINENO" "kpse_opentype_format" "ac_cv_have_decl_kpse_opentype_format" "#include <kpathsea/kpathsea.h>
25026 " "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
25027 if test "x$ac_cv_have_decl_kpse_opentype_format" = xyes
25028 then :
25029 ac_have_decl=1
25030 else case e in #(
25031 e) ac_have_decl=0 ;;
25032 esac
25033 fi
25034 printf "%s\n" "#define HAVE_DECL_KPSE_OPENTYPE_FORMAT $ac_have_decl" >>confdefs.h
25035
25036 ac_fn_check_decl "$LINENO" "kpse_enc_format" "ac_cv_have_decl_kpse_enc_format" "#include <kpathsea/kpathsea.h>
25037 " "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
25038 if test "x$ac_cv_have_decl_kpse_enc_format" = xyes
25039 then :
25040 ac_have_decl=1
25041 else case e in #(
25042 e) ac_have_decl=0 ;;
25043 esac
25044 fi
25045 printf "%s\n" "#define HAVE_DECL_KPSE_ENC_FORMAT $ac_have_decl" >>confdefs.h
25046
25047 else case e in #(
25048 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25049 printf "%s\n" "no" >&6; }
25050 with_kpathsea=no ;;
25051 esac
25052 fi
25053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25054 conftest$ac_exeext conftest.$ac_ext
25055
25056 if test "x$with_kpathsea" = xno; then
25057 as_fn_error $? "
25058 =========================================
25059
25060 I can't find the kpathsea library and/or header files. Tell me where to look
25061 using the --with-kpathsea-libdir=DIR option (library under DIR) and
25062 --with-kpathsea-includes=DIR option (header files under DIR/kpathsea), or
25063 disable kpathsea support using --without-kpathsea.
25064
25065 =========================================" "$LINENO" 5
25066 fi
25067
25068 printf "%s\n" "#define HAVE_KPATHSEA 1" >>confdefs.h
25069
25070 fi
25071
25072 CPPFLAGS=$kpse_save_CPPFLAGS
25073 LIBS=$kpse_save_LIBS
25074
25075
25076 echo timestamp >config.force
25077 fi
25078
25079 if test "x$with_kpathsea" != xno; then
25080 have_kpathsea_TRUE=
25081 have_kpathsea_FALSE='#'
25082 else
25083 have_kpathsea_TRUE='#'
25084 have_kpathsea_FALSE=
25085 fi
25086
25087
25088 # Check whether --enable-selfauto-set was given.
25089 if test ${enable_selfauto_set+y}
25090 then :
25091 enableval=$enable_selfauto_set;
25092 else case e in #(
25093 e) enable_selfauto_set=yes ;;
25094 esac
25095 fi
25096
25097
25098 if test "x$enable_selfauto_set" = xyes -a "x$kpathsea" != xno -a "x$enable_texlive_build" != xyes; then
25099 kpsewhich='kpsewhich'
25100 test "x$kpathsea" != xyes -a -x "$kpathsea/bin/kpsewhich" && kpsewhich="$kpathsea/bin/kpsewhich"
25101 SELFAUTOLOC="`$kpsewhich --expand-var='$SELFAUTOLOC' 2>/dev/null`"
25102 SELFAUTODIR="`$kpsewhich --expand-var='$SELFAUTODIR' 2>/dev/null`"
25103 SELFAUTOPARENT="`$kpsewhich --expand-var='$SELFAUTOPARENT' 2>/dev/null`"
25104 SELFAUTOGRANDPARENT="`$kpsewhich --expand-var='$SELFAUTOGRANDPARENT' 2>/dev/null`"
25105 if test -z "$SELFAUTODIR"; then
25106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
25107 =========================================
25108
25109 Could not extract SELFAUTO variables from $kpsewhich.
25110 Either supply the correct PREFIX to --with-kpathsea, or supply
25111 --disable-selfauto-loc.
25112
25113 =========================================" >&5
25114 printf "%s\n" "$as_me: WARNING:
25115 =========================================
25116
25117 Could not extract SELFAUTO variables from $kpsewhich.
25118 Either supply the correct PREFIX to --with-kpathsea, or supply
25119 --disable-selfauto-loc.
25120
25121 =========================================" >&2;}
25122 fi
25123
25124 printf "%s\n" "#define SELFAUTOLOC \"$SELFAUTOLOC\"" >>confdefs.h
25125
25126
25127 printf "%s\n" "#define SELFAUTODIR \"$SELFAUTODIR\"" >>confdefs.h
25128
25129
25130 printf "%s\n" "#define SELFAUTOPARENT \"$SELFAUTOPARENT\"" >>confdefs.h
25131
25132 if test -n "$SELFAUTOGRANDPARENT" -a "$SELFAUTOGRANDPARENT" != '$SELFAUTOGRANDPARENT'; then
25133
25134 printf "%s\n" "#define SELFAUTOGRANDPARENT \"$SELFAUTOGRANDPARENT\"" >>confdefs.h
25135
25136 fi
25137 fi
25138
25139
25140 glyphlistdir='${datarootdir}/texmf-dist/fonts/map/glyphlist'
25141 encdir='${datarootdir}/texmf-dist/fonts/enc/dvips/base'
25142
25143
25144
25145
25146
25147
25148 printf "%s\n" "#define HAVE_PERMSTRING 1" >>confdefs.h
25149
25150
25151 printf "%s\n" "#define MMAFM_RUN_MMPFB 1" >>confdefs.h
25152
25153
25154
25155
25156 shell_expand () {
25157 val=`eval echo '$'"$1"`
25158 while echo "x$val" | grep '\$' >/dev/null 2>&1; do val=`eval echo "$val"`; done
25159 eval "$1='$val'"
25160 }
25161
25162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25163 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25164
25165 shell_expand datadir
25166
25167 if test "x$enable_native_texlive_build" = xyes; then
25168 gdir=/nonesuch
25169 else
25170 gdir="$glyphlistdir"
25171 for i in data dataroot pkgdata g; do shell_expand ${i}dir; done
25172 fi
25173
25174 printf "%s\n" "#define GLYPHLISTDIR \"$gdir\"" >>confdefs.h
25175
25176
25177
25178
25179 LCDF_TYPETOOLS_TREE=lcdf-typetools-src
25180
25181
25182 ac_config_files="$ac_config_files Makefile lcdf-typetools-src/Makefile lcdf-typetools-src/liblcdf/Makefile lcdf-typetools-src/libefont/Makefile lcdf-typetools-src/cfftot1/Makefile lcdf-typetools-src/mmafm/Makefile lcdf-typetools-src/mmpfb/Makefile lcdf-typetools-src/otfinfo/Makefile lcdf-typetools-src/otftotfm/Makefile lcdf-typetools-src/t1dotlessj/Makefile lcdf-typetools-src/t1lint/Makefile lcdf-typetools-src/t1rawafm/Makefile lcdf-typetools-src/t1reencode/Makefile lcdf-typetools-src/t1testpage/Makefile lcdf-typetools-src/ttftotype42/Makefile"
25183
25184 cat >confcache <<\_ACEOF
25185 # This file is a shell script that caches the results of configure
25186 # tests run on this system so they can be shared between configure
25187 # scripts and configure runs, see configure's option --config-cache.
25188 # It is not useful on other systems. If it contains results you don't
25189 # want to keep, you may remove or edit it.
25190 #
25191 # config.status only pays attention to the cache file if you give it
25192 # the --recheck option to rerun configure.
25193 #
25194 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
25195 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
25196 # following values.
25197
25198 _ACEOF
25199
25200 # The following way of writing the cache mishandles newlines in values,
25201 # but we know of no workaround that is simple, portable, and efficient.
25202 # So, we kill variables containing newlines.
25203 # Ultrix sh set writes to stderr and can't be redirected directly,
25204 # and sets the high bit in the cache file unless we assign to the vars.
25205 (
25206 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25207 eval ac_val=\$$ac_var
25208 case $ac_val in #(
25209 *${as_nl}*)
25210 case $ac_var in #(
25211 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25212 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25213 esac
25214 case $ac_var in #(
25215 _ | IFS | as_nl) ;; #(
25216 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25217 *) { eval $ac_var=; unset $ac_var;} ;;
25218 esac ;;
25219 esac
25220 done
25221
25222 (set) 2>&1 |
25223 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25224 *${as_nl}ac_space=\ *)
25225 # 'set' does not quote correctly, so add quotes: double-quote
25226 # substitution turns \\\\ into \\, and sed turns \\ into \.
25227 sed -n \
25228 "s/'/'\\\\''/g;
25229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25230 ;; #(
25231 *)
25232 # 'set' quotes correctly as required by POSIX, so do not add quotes.
25233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25234 ;;
25235 esac |
25236 sort
25237 ) |
25238 sed '
25239 /^ac_cv_env_/b end
25240 t clear
25241 :clear
25242 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
25243 t end
25244 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25245 :end' >>confcache
25246 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25247 if test -w "$cache_file"; then
25248 if test "x$cache_file" != "x/dev/null"; then
25249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25250 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
25251 if test ! -f "$cache_file" || test -h "$cache_file"; then
25252 cat confcache >"$cache_file"
25253 else
25254 case $cache_file in #(
25255 */* | ?:*)
25256 mv -f confcache "$cache_file"$$ &&
25257 mv -f "$cache_file"$$ "$cache_file" ;; #(
25258 *)
25259 mv -f confcache "$cache_file" ;;
25260 esac
25261 fi
25262 fi
25263 else
25264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25265 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
25266 fi
25267 fi
25268 rm -f confcache
25269
25270 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25271 # Let make expand exec_prefix.
25272 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25273
25274 DEFS=-DHAVE_CONFIG_H
25275
25276 ac_libobjs=
25277 ac_ltlibobjs=
25278 U=
25279 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25280 # 1. Remove the extension, and $U if already installed.
25281 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25282 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
25283 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25284 # will be set to the directory where LIBOBJS objects are built.
25285 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25286 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25287 done
25288 LIBOBJS=$ac_libobjs
25289
25290 LTLIBOBJS=$ac_ltlibobjs
25291
25292
25293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25294 printf %s "checking that generated files are newer than configure... " >&6; }
25295 if test -n "$am_sleep_pid"; then
25296 # Hide warnings about reused PIDs.
25297 wait $am_sleep_pid 2>/dev/null
25298 fi
25299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
25300 printf "%s\n" "done" >&6; }
25301 case $enable_silent_rules in # (((
25302 yes) AM_DEFAULT_VERBOSITY=0;;
25303 no) AM_DEFAULT_VERBOSITY=1;;
25304 esac
25305 if test $am_cv_make_support_nested_variables = yes; then
25306 AM_V='$(V)'
25307 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
25308 else
25309 AM_V=$AM_DEFAULT_VERBOSITY
25310 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
25311 fi
25312
25313 if test -n "$EXEEXT"; then
25314 am__EXEEXT_TRUE=
25315 am__EXEEXT_FALSE='#'
25316 else
25317 am__EXEEXT_TRUE='#'
25318 am__EXEEXT_FALSE=
25319 fi
25320
25321 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25322 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25324 fi
25325 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25326 as_fn_error $? "conditional \"AMDEP\" was never defined.
25327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25328 fi
25329 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25330 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25332 fi
25333 # Check whether --enable-year2038 was given.
25334 if test ${enable_year2038+y}
25335 then :
25336 enableval=$enable_year2038;
25337 fi
25338
25339 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25340 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25342 fi
25343
25344 if test -z "${FIXLIBC_TRUE}" && test -z "${FIXLIBC_FALSE}"; then
25345 as_fn_error $? "conditional \"FIXLIBC\" was never defined.
25346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25347 fi
25348 if test -z "${texlive_build_TRUE}" && test -z "${texlive_build_FALSE}"; then
25349 as_fn_error $? "conditional \"texlive_build\" was never defined.
25350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25351 fi
25352 if test -z "${have_kpathsea_TRUE}" && test -z "${have_kpathsea_FALSE}"; then
25353 as_fn_error $? "conditional \"have_kpathsea\" was never defined.
25354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25355 fi
25356
25357 : "${CONFIG_STATUS=./config.status}"
25358 ac_write_fail=0
25359 ac_clean_files_save=$ac_clean_files
25360 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25362 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
25363 as_write_fail=0
25364 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25365 #! $SHELL
25366 # Generated by $as_me.
25367 # Run this file to recreate the current configuration.
25368 # Compiler output produced by configure, useful for debugging
25369 # configure, is in config.log if it exists.
25370
25371 debug=false
25372 ac_cs_recheck=false
25373 ac_cs_silent=false
25374
25375 SHELL=\${CONFIG_SHELL-$SHELL}
25376 export SHELL
25377 _ASEOF
25378 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25379 ## -------------------- ##
25380 ## M4sh Initialization. ##
25381 ## -------------------- ##
25382
25383 # Be more Bourne compatible
25384 DUALCASE=1; export DUALCASE # for MKS sh
25385 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25386 then :
25387 emulate sh
25388 NULLCMD=:
25389 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25390 # is contrary to our usage. Disable this feature.
25391 alias -g '${1+"$@"}'='"$@"'
25392 setopt NO_GLOB_SUBST
25393 else case e in #(
25394 e) case `(set -o) 2>/dev/null` in #(
25395 *posix*) :
25396 set -o posix ;; #(
25397 *) :
25398 ;;
25399 esac ;;
25400 esac
25401 fi
25402
25403
25404
25405 # Reset variables that may have inherited troublesome values from
25406 # the environment.
25407
25408 # IFS needs to be set, to space, tab, and newline, in precisely that order.
25409 # (If _AS_PATH_WALK were called with IFS unset, it would have the
25410 # side effect of setting IFS to empty, thus disabling word splitting.)
25411 # Quoting is to prevent editors from complaining about space-tab.
25412 as_nl='
25413 '
25414 export as_nl
25415 IFS=" "" $as_nl"
25416
25417 PS1='$ '
25418 PS2='> '
25419 PS4='+ '
25420
25421 # Ensure predictable behavior from utilities with locale-dependent output.
25422 LC_ALL=C
25423 export LC_ALL
25424 LANGUAGE=C
25425 export LANGUAGE
25426
25427 # We cannot yet rely on "unset" to work, but we need these variables
25428 # to be unset--not just set to an empty or harmless value--now, to
25429 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
25430 # also avoids known problems related to "unset" and subshell syntax
25431 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
25432 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
25433 do eval test \${$as_var+y} \
25434 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25435 done
25436
25437 # Ensure that fds 0, 1, and 2 are open.
25438 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
25439 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
25440 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
25441
25442 # The user is always right.
25443 if ${PATH_SEPARATOR+false} :; then
25444 PATH_SEPARATOR=:
25445 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25446 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25447 PATH_SEPARATOR=';'
25448 }
25449 fi
25450
25451
25452 # Find who we are. Look in the path if we contain no directory separator.
25453 as_myself=
25454 case $0 in #((
25455 *[\\/]* ) as_myself=$0 ;;
25456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25457 for as_dir in $PATH
25458 do
25459 IFS=$as_save_IFS
25460 case $as_dir in #(((
25461 '') as_dir=./ ;;
25462 */) ;;
25463 *) as_dir=$as_dir/ ;;
25464 esac
25465 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
25466 done
25467 IFS=$as_save_IFS
25468
25469 ;;
25470 esac
25471 # We did not find ourselves, most probably we were run as 'sh COMMAND'
25472 # in which case we are not to be found in the path.
25473 if test "x$as_myself" = x; then
25474 as_myself=$0
25475 fi
25476 if test ! -f "$as_myself"; then
25477 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25478 exit 1
25479 fi
25480
25481
25482
25483 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25484 # ----------------------------------------
25485 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25486 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25487 # script with STATUS, using 1 if that was 0.
25488 as_fn_error ()
25489 {
25490 as_status=$1; test $as_status -eq 0 && as_status=1
25491 if test "$4"; then
25492 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25494 fi
25495 printf "%s\n" "$as_me: error: $2" >&2
25496 as_fn_exit $as_status
25497 } # as_fn_error
25498
25499
25500 # as_fn_set_status STATUS
25501 # -----------------------
25502 # Set $? to STATUS, without forking.
25503 as_fn_set_status ()
25504 {
25505 return $1
25506 } # as_fn_set_status
25507
25508 # as_fn_exit STATUS
25509 # -----------------
25510 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25511 as_fn_exit ()
25512 {
25513 set +e
25514 as_fn_set_status $1
25515 exit $1
25516 } # as_fn_exit
25517
25518 # as_fn_unset VAR
25519 # ---------------
25520 # Portably unset VAR.
25521 as_fn_unset ()
25522 {
25523 { eval $1=; unset $1;}
25524 }
25525 as_unset=as_fn_unset
25526
25527 # as_fn_append VAR VALUE
25528 # ----------------------
25529 # Append the text in VALUE to the end of the definition contained in VAR. Take
25530 # advantage of any shell optimizations that allow amortized linear growth over
25531 # repeated appends, instead of the typical quadratic growth present in naive
25532 # implementations.
25533 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
25534 then :
25535 eval 'as_fn_append ()
25536 {
25537 eval $1+=\$2
25538 }'
25539 else case e in #(
25540 e) as_fn_append ()
25541 {
25542 eval $1=\$$1\$2
25543 } ;;
25544 esac
25545 fi # as_fn_append
25546
25547 # as_fn_arith ARG...
25548 # ------------------
25549 # Perform arithmetic evaluation on the ARGs, and store the result in the
25550 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25551 # must be portable across $(()) and expr.
25552 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
25553 then :
25554 eval 'as_fn_arith ()
25555 {
25556 as_val=$(( $* ))
25557 }'
25558 else case e in #(
25559 e) as_fn_arith ()
25560 {
25561 as_val=`expr "$@" || test $? -eq 1`
25562 } ;;
25563 esac
25564 fi # as_fn_arith
25565
25566
25567 if expr a : '\(a\)' >/dev/null 2>&1 &&
25568 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25569 as_expr=expr
25570 else
25571 as_expr=false
25572 fi
25573
25574 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25575 as_basename=basename
25576 else
25577 as_basename=false
25578 fi
25579
25580 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25581 as_dirname=dirname
25582 else
25583 as_dirname=false
25584 fi
25585
25586 as_me=`$as_basename -- "$0" ||
25587 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25588 X"$0" : 'X\(//\)$' \| \
25589 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25590 printf "%s\n" X/"$0" |
25591 sed '/^.*\/\([^/][^/]*\)\/*$/{
25592 s//\1/
25593 q
25594 }
25595 /^X\/\(\/\/\)$/{
25596 s//\1/
25597 q
25598 }
25599 /^X\/\(\/\).*/{
25600 s//\1/
25601 q
25602 }
25603 s/.*/./; q'`
25604
25605 # Avoid depending upon Character Ranges.
25606 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25607 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25608 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25609 as_cr_digits='0123456789'
25610 as_cr_alnum=$as_cr_Letters$as_cr_digits
25611
25612
25613 # Determine whether it's possible to make 'echo' print without a newline.
25614 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
25615 # for compatibility with existing Makefiles.
25616 ECHO_C= ECHO_N= ECHO_T=
25617 case `echo -n x` in #(((((
25618 -n*)
25619 case `echo 'xy\c'` in
25620 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25621 xy) ECHO_C='\c';;
25622 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25623 ECHO_T=' ';;
25624 esac;;
25625 *)
25626 ECHO_N='-n';;
25627 esac
25628
25629 # For backward compatibility with old third-party macros, we provide
25630 # the shell variables $as_echo and $as_echo_n. New code should use
25631 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
25632 as_echo='printf %s\n'
25633 as_echo_n='printf %s'
25634
25635 rm -f conf$$ conf$$.exe conf$$.file
25636 if test -d conf$$.dir; then
25637 rm -f conf$$.dir/conf$$.file
25638 else
25639 rm -f conf$$.dir
25640 mkdir conf$$.dir 2>/dev/null
25641 fi
25642 if (echo >conf$$.file) 2>/dev/null; then
25643 if ln -s conf$$.file conf$$ 2>/dev/null; then
25644 as_ln_s='ln -s'
25645 # ... but there are two gotchas:
25646 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
25647 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
25648 # In both cases, we have to default to 'cp -pR'.
25649 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25650 as_ln_s='cp -pR'
25651 elif ln conf$$.file conf$$ 2>/dev/null; then
25652 as_ln_s=ln
25653 else
25654 as_ln_s='cp -pR'
25655 fi
25656 else
25657 as_ln_s='cp -pR'
25658 fi
25659 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25660 rmdir conf$$.dir 2>/dev/null
25661
25662
25663 # as_fn_mkdir_p
25664 # -------------
25665 # Create "$as_dir" as a directory, including parents if necessary.
25666 as_fn_mkdir_p ()
25667 {
25668
25669 case $as_dir in #(
25670 -*) as_dir=./$as_dir;;
25671 esac
25672 test -d "$as_dir" || eval $as_mkdir_p || {
25673 as_dirs=
25674 while :; do
25675 case $as_dir in #(
25676 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25677 *) as_qdir=$as_dir;;
25678 esac
25679 as_dirs="'$as_qdir' $as_dirs"
25680 as_dir=`$as_dirname -- "$as_dir" ||
25681 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25682 X"$as_dir" : 'X\(//\)[^/]' \| \
25683 X"$as_dir" : 'X\(//\)$' \| \
25684 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25685 printf "%s\n" X"$as_dir" |
25686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25687 s//\1/
25688 q
25689 }
25690 /^X\(\/\/\)[^/].*/{
25691 s//\1/
25692 q
25693 }
25694 /^X\(\/\/\)$/{
25695 s//\1/
25696 q
25697 }
25698 /^X\(\/\).*/{
25699 s//\1/
25700 q
25701 }
25702 s/.*/./; q'`
25703 test -d "$as_dir" && break
25704 done
25705 test -z "$as_dirs" || eval "mkdir $as_dirs"
25706 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25707
25708
25709 } # as_fn_mkdir_p
25710 if mkdir -p . 2>/dev/null; then
25711 as_mkdir_p='mkdir -p "$as_dir"'
25712 else
25713 test -d ./-p && rmdir ./-p
25714 as_mkdir_p=false
25715 fi
25716
25717
25718 # as_fn_executable_p FILE
25719 # -----------------------
25720 # Test if FILE is an executable regular file.
25721 as_fn_executable_p ()
25722 {
25723 test -f "$1" && test -x "$1"
25724 } # as_fn_executable_p
25725 as_test_x='test -x'
25726 as_executable_p=as_fn_executable_p
25727
25728 # Sed expression to map a string onto a valid CPP name.
25729 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25730 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
25731
25732 # Sed expression to map a string onto a valid variable name.
25733 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
25734 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
25735
25736
25737 exec 6>&1
25738 ## ----------------------------------- ##
25739 ## Main body of $CONFIG_STATUS script. ##
25740 ## ----------------------------------- ##
25741 _ASEOF
25742 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25743
25744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25745 # Save the log message, to keep $0 and so on meaningful, and to
25746 # report actual input values of CONFIG_FILES etc. instead of their
25747 # values after options handling.
25748 ac_log="
25749 This file was extended by LCDF typetools (TeX Live) $as_me 2.110, which was
25750 generated by GNU Autoconf 2.72. Invocation command line was
25751
25752 CONFIG_FILES = $CONFIG_FILES
25753 CONFIG_HEADERS = $CONFIG_HEADERS
25754 CONFIG_LINKS = $CONFIG_LINKS
25755 CONFIG_COMMANDS = $CONFIG_COMMANDS
25756 $ $0 $@
25757
25758 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25759 "
25760
25761 _ACEOF
25762
25763 case $ac_config_files in *"
25764 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25765 esac
25766
25767 case $ac_config_headers in *"
25768 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25769 esac
25770
25771
25772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25773 # Files that config.status was made for.
25774 config_files="$ac_config_files"
25775 config_headers="$ac_config_headers"
25776 config_commands="$ac_config_commands"
25777
25778 _ACEOF
25779
25780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25781 ac_cs_usage="\
25782 '$as_me' instantiates files and other configuration actions
25783 from templates according to the current configuration. Unless the files
25784 and actions are specified as TAGs, all are instantiated by default.
25785
25786 Usage: $0 [OPTION]... [TAG]...
25787
25788 -h, --help print this help, then exit
25789 -V, --version print version number and configuration settings, then exit
25790 --config print configuration, then exit
25791 -q, --quiet, --silent
25792 do not print progress messages
25793 -d, --debug don't remove temporary files
25794 --recheck update $as_me by reconfiguring in the same conditions
25795 --file=FILE[:TEMPLATE]
25796 instantiate the configuration file FILE
25797 --header=FILE[:TEMPLATE]
25798 instantiate the configuration header FILE
25799
25800 Configuration files:
25801 $config_files
25802
25803 Configuration headers:
25804 $config_headers
25805
25806 Configuration commands:
25807 $config_commands
25808
25809 Report bugs to <[email protected]>."
25810
25811 _ACEOF
25812 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
25813 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
25814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25815 ac_cs_config='$ac_cs_config_escaped'
25816 ac_cs_version="\\
25817 LCDF typetools (TeX Live) config.status 2.110
25818 configured by $0, generated by GNU Autoconf 2.72,
25819 with options \\"\$ac_cs_config\\"
25820
25821 Copyright (C) 2023 Free Software Foundation, Inc.
25822 This config.status script is free software; the Free Software Foundation
25823 gives unlimited permission to copy, distribute and modify it."
25824
25825 ac_pwd='$ac_pwd'
25826 srcdir='$srcdir'
25827 INSTALL='$INSTALL'
25828 MKDIR_P='$MKDIR_P'
25829 AWK='$AWK'
25830 test -n "\$AWK" || AWK=awk
25831 _ACEOF
25832
25833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25834 # The default lists apply if the user does not specify any file.
25835 ac_need_defaults=:
25836 while test $# != 0
25837 do
25838 case $1 in
25839 --*=?*)
25840 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25841 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25842 ac_shift=:
25843 ;;
25844 --*=)
25845 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25846 ac_optarg=
25847 ac_shift=:
25848 ;;
25849 *)
25850 ac_option=$1
25851 ac_optarg=$2
25852 ac_shift=shift
25853 ;;
25854 esac
25855
25856 case $ac_option in
25857 # Handling of the options.
25858 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25859 ac_cs_recheck=: ;;
25860 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25861 printf "%s\n" "$ac_cs_version"; exit ;;
25862 --config | --confi | --conf | --con | --co | --c )
25863 printf "%s\n" "$ac_cs_config"; exit ;;
25864 --debug | --debu | --deb | --de | --d | -d )
25865 debug=: ;;
25866 --file | --fil | --fi | --f )
25867 $ac_shift
25868 case $ac_optarg in
25869 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25870 '') as_fn_error $? "missing file argument" ;;
25871 esac
25872 as_fn_append CONFIG_FILES " '$ac_optarg'"
25873 ac_need_defaults=false;;
25874 --header | --heade | --head | --hea )
25875 $ac_shift
25876 case $ac_optarg in
25877 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25878 esac
25879 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25880 ac_need_defaults=false;;
25881 --he | --h)
25882 # Conflict between --help and --header
25883 as_fn_error $? "ambiguous option: '$1'
25884 Try '$0 --help' for more information.";;
25885 --help | --hel | -h )
25886 printf "%s\n" "$ac_cs_usage"; exit ;;
25887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25888 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25889 ac_cs_silent=: ;;
25890
25891 # This is an error.
25892 -*) as_fn_error $? "unrecognized option: '$1'
25893 Try '$0 --help' for more information." ;;
25894
25895 *) as_fn_append ac_config_targets " $1"
25896 ac_need_defaults=false ;;
25897
25898 esac
25899 shift
25900 done
25901
25902 ac_configure_extra_args=
25903
25904 if $ac_cs_silent; then
25905 exec 6>/dev/null
25906 ac_configure_extra_args="$ac_configure_extra_args --silent"
25907 fi
25908
25909 _ACEOF
25910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25911 if \$ac_cs_recheck; then
25912 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25913 shift
25914 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
25915 CONFIG_SHELL='$SHELL'
25916 export CONFIG_SHELL
25917 exec "\$@"
25918 fi
25919
25920 _ACEOF
25921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25922 exec 5>>config.log
25923 {
25924 echo
25925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25926 ## Running $as_me. ##
25927 _ASBOX
25928 printf "%s\n" "$ac_log"
25929 } >&5
25930
25931 _ACEOF
25932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25933 #
25934 # INIT-COMMANDS
25935 #
25936 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
25937
25938
25939 # The HP-UX ksh and POSIX shell print the target directory to stdout
25940 # if CDPATH is set.
25941 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25942
25943 sed_quote_subst='$sed_quote_subst'
25944 double_quote_subst='$double_quote_subst'
25945 delay_variable_subst='$delay_variable_subst'
25946 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25947 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25948 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
25949 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25950 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25951 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25952 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25953 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25954 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25955 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
25956 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25957 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25958 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25959 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25960 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25961 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25962 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25963 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25964 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25965 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25966 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25967 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25968 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25969 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25970 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25971 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25972 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25973 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25974 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25975 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25976 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25977 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25978 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25979 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25980 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25981 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25982 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25983 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
25984 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25985 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25986 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25987 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25988 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25989 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25990 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
25991 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25992 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25993 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25994 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25995 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25996 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25997 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25998 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25999 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26000 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26001 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26002 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26003 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26004 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26005 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
26006 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26007 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"`'
26008 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
26009 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26010 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26011 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
26012 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26013 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26014 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26015 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26016 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26017 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26018 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26019 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26020 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26021 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26022 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26023 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26024 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26025 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26026 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26027 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26028 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26029 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26030 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26031 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26032 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26033 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26034 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26035 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26036 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26037 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26038 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26039 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26040 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26041 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26042 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26043 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26044 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26045 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26046 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26047 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26048 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26049 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26050 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26051 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26052 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26053 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26054 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26055 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26056 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26057 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26058 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26059 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26060 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26061 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26062 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26063 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26064 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26065 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26066 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26067 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26068 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26069 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26070 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26071 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26072 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26073 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26074 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26075 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26076 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
26077 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
26078 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26079 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26080 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26081 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26082 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26083 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26084 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26085 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26086 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26087 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26088 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26089 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26090 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26091 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26092 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26093 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26094 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26095 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26096 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26097 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26098 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26099 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26100 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26101 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26102 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26103 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26104 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26105 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26106 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26107 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26108 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26109 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26110 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26111 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26112 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26113 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26114 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26115 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26116 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26117 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26118 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26119 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26120 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26121 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26122 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26123 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26124 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26125 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26126 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26127 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26128 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26129 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26130 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26131 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26132 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26133 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26134 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26135 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26136 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26137 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26138
26139 LTCC='$LTCC'
26140 LTCFLAGS='$LTCFLAGS'
26141 compiler='$compiler_DEFAULT'
26142
26143 # A function that is used when there is no print builtin or printf.
26144 func_fallback_echo ()
26145 {
26146 eval 'cat <<_LTECHO_EOF
26147 \$1
26148 _LTECHO_EOF'
26149 }
26150
26151 # Quote evaled strings.
26152 for var in AS \
26153 DLLTOOL \
26154 OBJDUMP \
26155 SHELL \
26156 ECHO \
26157 PATH_SEPARATOR \
26158 SED \
26159 GREP \
26160 EGREP \
26161 FGREP \
26162 LD \
26163 NM \
26164 LN_S \
26165 lt_SP2NL \
26166 lt_NL2SP \
26167 reload_flag \
26168 FILECMD \
26169 deplibs_check_method \
26170 file_magic_cmd \
26171 file_magic_glob \
26172 want_nocaseglob \
26173 sharedlib_from_linklib_cmd \
26174 AR \
26175 archiver_list_spec \
26176 STRIP \
26177 RANLIB \
26178 CC \
26179 CFLAGS \
26180 compiler \
26181 lt_cv_sys_global_symbol_pipe \
26182 lt_cv_sys_global_symbol_to_cdecl \
26183 lt_cv_sys_global_symbol_to_import \
26184 lt_cv_sys_global_symbol_to_c_name_address \
26185 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26186 lt_cv_nm_interface \
26187 nm_file_list_spec \
26188 lt_cv_truncate_bin \
26189 lt_prog_compiler_no_builtin_flag \
26190 lt_prog_compiler_pic \
26191 lt_prog_compiler_wl \
26192 lt_prog_compiler_static \
26193 lt_cv_prog_compiler_c_o \
26194 need_locks \
26195 MANIFEST_TOOL \
26196 DSYMUTIL \
26197 NMEDIT \
26198 LIPO \
26199 OTOOL \
26200 OTOOL64 \
26201 shrext_cmds \
26202 export_dynamic_flag_spec \
26203 whole_archive_flag_spec \
26204 compiler_needs_object \
26205 with_gnu_ld \
26206 allow_undefined_flag \
26207 no_undefined_flag \
26208 hardcode_libdir_flag_spec \
26209 hardcode_libdir_separator \
26210 exclude_expsyms \
26211 include_expsyms \
26212 file_list_spec \
26213 variables_saved_for_relink \
26214 libname_spec \
26215 library_names_spec \
26216 soname_spec \
26217 install_override_mode \
26218 finish_eval \
26219 old_striplib \
26220 striplib \
26221 compiler_lib_search_dirs \
26222 predep_objects \
26223 postdep_objects \
26224 predeps \
26225 postdeps \
26226 compiler_lib_search_path \
26227 LD_CXX \
26228 reload_flag_CXX \
26229 compiler_CXX \
26230 lt_prog_compiler_no_builtin_flag_CXX \
26231 lt_prog_compiler_pic_CXX \
26232 lt_prog_compiler_wl_CXX \
26233 lt_prog_compiler_static_CXX \
26234 lt_cv_prog_compiler_c_o_CXX \
26235 export_dynamic_flag_spec_CXX \
26236 whole_archive_flag_spec_CXX \
26237 compiler_needs_object_CXX \
26238 with_gnu_ld_CXX \
26239 allow_undefined_flag_CXX \
26240 no_undefined_flag_CXX \
26241 hardcode_libdir_flag_spec_CXX \
26242 hardcode_libdir_separator_CXX \
26243 exclude_expsyms_CXX \
26244 include_expsyms_CXX \
26245 file_list_spec_CXX \
26246 compiler_lib_search_dirs_CXX \
26247 predep_objects_CXX \
26248 postdep_objects_CXX \
26249 predeps_CXX \
26250 postdeps_CXX \
26251 compiler_lib_search_path_CXX; do
26252 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26253 *[\\\\\\\`\\"\\\$]*)
26254 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26255 ;;
26256 *)
26257 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26258 ;;
26259 esac
26260 done
26261
26262 # Double-quote double-evaled strings.
26263 for var in reload_cmds \
26264 old_postinstall_cmds \
26265 old_postuninstall_cmds \
26266 old_archive_cmds \
26267 extract_expsyms_cmds \
26268 old_archive_from_new_cmds \
26269 old_archive_from_expsyms_cmds \
26270 archive_cmds \
26271 archive_expsym_cmds \
26272 module_cmds \
26273 module_expsym_cmds \
26274 export_symbols_cmds \
26275 prelink_cmds \
26276 postlink_cmds \
26277 postinstall_cmds \
26278 postuninstall_cmds \
26279 finish_cmds \
26280 sys_lib_search_path_spec \
26281 configure_time_dlsearch_path \
26282 configure_time_lt_sys_library_path \
26283 reload_cmds_CXX \
26284 old_archive_cmds_CXX \
26285 old_archive_from_new_cmds_CXX \
26286 old_archive_from_expsyms_cmds_CXX \
26287 archive_cmds_CXX \
26288 archive_expsym_cmds_CXX \
26289 module_cmds_CXX \
26290 module_expsym_cmds_CXX \
26291 export_symbols_cmds_CXX \
26292 prelink_cmds_CXX \
26293 postlink_cmds_CXX; do
26294 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26295 *[\\\\\\\`\\"\\\$]*)
26296 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26297 ;;
26298 *)
26299 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26300 ;;
26301 esac
26302 done
26303
26304 ac_aux_dir='$ac_aux_dir'
26305
26306 # See if we are running on zsh, and set the options that allow our
26307 # commands through without removal of \ escapes INIT.
26308 if test -n "\${ZSH_VERSION+set}"; then
26309 setopt NO_GLOB_SUBST
26310 fi
26311
26312
26313 PACKAGE='$PACKAGE'
26314 VERSION='$VERSION'
26315 RM='$RM'
26316 ofile='$ofile'
26317
26318
26319
26320 ac_aux_dir='$ac_aux_dir'
26321
26322
26323 cxxld_sh='$cxxld_sh'
26324
26325 _ACEOF
26326
26327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26328
26329 # Handling of arguments.
26330 for ac_config_target in $ac_config_targets
26331 do
26332 case $ac_config_target in
26333 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26334 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26335 "autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconf.h" ;;
26336 "CXXLD.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS CXXLD.sh" ;;
26337 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26338 "lcdf-typetools-src/Makefile") CONFIG_FILES="$CONFIG_FILES lcdf-typetools-src/Makefile" ;;
26339 "lcdf-typetools-src/liblcdf/Makefile") CONFIG_FILES="$CONFIG_FILES lcdf-typetools-src/liblcdf/Makefile" ;;
26340 "lcdf-typetools-src/libefont/Makefile") CONFIG_FILES="$CONFIG_FILES lcdf-typetools-src/libefont/Makefile" ;;
26341 "lcdf-typetools-src/cfftot1/Makefile") CONFIG_FILES="$CONFIG_FILES lcdf-typetools-src/cfftot1/Makefile" ;;
26342 "lcdf-typetools-src/mmafm/Makefile") CONFIG_FILES="$CONFIG_FILES lcdf-typetools-src/mmafm/Makefile" ;;
26343 "lcdf-typetools-src/mmpfb/Makefile") CONFIG_FILES="$CONFIG_FILES lcdf-typetools-src/mmpfb/Makefile" ;;
26344 "lcdf-typetools-src/otfinfo/Makefile") CONFIG_FILES="$CONFIG_FILES lcdf-typetools-src/otfinfo/Makefile" ;;
26345 "lcdf-typetools-src/otftotfm/Makefile") CONFIG_FILES="$CONFIG_FILES lcdf-typetools-src/otftotfm/Makefile" ;;
26346 "lcdf-typetools-src/t1dotlessj/Makefile") CONFIG_FILES="$CONFIG_FILES lcdf-typetools-src/t1dotlessj/Makefile" ;;
26347 "lcdf-typetools-src/t1lint/Makefile") CONFIG_FILES="$CONFIG_FILES lcdf-typetools-src/t1lint/Makefile" ;;
26348 "lcdf-typetools-src/t1rawafm/Makefile") CONFIG_FILES="$CONFIG_FILES lcdf-typetools-src/t1rawafm/Makefile" ;;
26349 "lcdf-typetools-src/t1reencode/Makefile") CONFIG_FILES="$CONFIG_FILES lcdf-typetools-src/t1reencode/Makefile" ;;
26350 "lcdf-typetools-src/t1testpage/Makefile") CONFIG_FILES="$CONFIG_FILES lcdf-typetools-src/t1testpage/Makefile" ;;
26351 "lcdf-typetools-src/ttftotype42/Makefile") CONFIG_FILES="$CONFIG_FILES lcdf-typetools-src/ttftotype42/Makefile" ;;
26352
26353 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
26354 esac
26355 done
26356
26357
26358 # If the user did not use the arguments to specify the items to instantiate,
26359 # then the envvar interface is used. Set only those that are not.
26360 # We use the long form for the default assignment because of an extremely
26361 # bizarre bug on SunOS 4.1.3.
26362 if $ac_need_defaults; then
26363 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
26364 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
26365 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
26366 fi
26367
26368 # Have a temporary directory for convenience. Make it in the build tree
26369 # simply because there is no reason against having it here, and in addition,
26370 # creating and moving files from /tmp can sometimes cause problems.
26371 # Hook for its removal unless debugging.
26372 # Note that there is a small window in which the directory will not be cleaned:
26373 # after its creation but before its name has been assigned to '$tmp'.
26374 $debug ||
26375 {
26376 tmp= ac_tmp=
26377 trap 'exit_status=$?
26378 : "${ac_tmp:=$tmp}"
26379 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26380 ' 0
26381 trap 'as_fn_exit 1' 1 2 13 15
26382 }
26383 # Create a (secure) tmp directory for tmp files.
26384
26385 {
26386 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26387 test -d "$tmp"
26388 } ||
26389 {
26390 tmp=./conf$$-$RANDOM
26391 (umask 077 && mkdir "$tmp")
26392 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26393 ac_tmp=$tmp
26394
26395 # Set up the scripts for CONFIG_FILES section.
26396 # No need to generate them if there are no CONFIG_FILES.
26397 # This happens for instance with './config.status config.h'.
26398 if test -n "$CONFIG_FILES"; then
26399
26400
26401 ac_cr=`echo X | tr X '\015'`
26402 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26403 # But we know of no other shell where ac_cr would be empty at this
26404 # point, so we can use a bashism as a fallback.
26405 if test "x$ac_cr" = x; then
26406 eval ac_cr=\$\'\\r\'
26407 fi
26408 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26409 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26410 ac_cs_awk_cr='\\r'
26411 else
26412 ac_cs_awk_cr=$ac_cr
26413 fi
26414
26415 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26416 _ACEOF
26417
26418
26419 {
26420 echo "cat >conf$$subs.awk <<_ACEOF" &&
26421 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26422 echo "_ACEOF"
26423 } >conf$$subs.sh ||
26424 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26425 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26426 ac_delim='%!_!# '
26427 for ac_last_try in false false false false false :; do
26428 . ./conf$$subs.sh ||
26429 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26430
26431 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26432 if test $ac_delim_n = $ac_delim_num; then
26433 break
26434 elif $ac_last_try; then
26435 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26436 else
26437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26438 fi
26439 done
26440 rm -f conf$$subs.sh
26441
26442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26443 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26444 _ACEOF
26445 sed -n '
26446 h
26447 s/^/S["/; s/!.*/"]=/
26448 p
26449 g
26450 s/^[^!]*!//
26451 :repl
26452 t repl
26453 s/'"$ac_delim"'$//
26454 t delim
26455 :nl
26456 h
26457 s/\(.\{148\}\)..*/\1/
26458 t more1
26459 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26460 p
26461 n
26462 b repl
26463 :more1
26464 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26465 p
26466 g
26467 s/.\{148\}//
26468 t nl
26469 :delim
26470 h
26471 s/\(.\{148\}\)..*/\1/
26472 t more2
26473 s/["\\]/\\&/g; s/^/"/; s/$/"/
26474 p
26475 b
26476 :more2
26477 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26478 p
26479 g
26480 s/.\{148\}//
26481 t delim
26482 ' <conf$$subs.awk | sed '
26483 /^[^""]/{
26484 N
26485 s/\n//
26486 }
26487 ' >>$CONFIG_STATUS || ac_write_fail=1
26488 rm -f conf$$subs.awk
26489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26490 _ACAWK
26491 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26492 for (key in S) S_is_set[key] = 1
26493 FS = ""
26494
26495 }
26496 {
26497 line = $ 0
26498 nfields = split(line, field, "@")
26499 substed = 0
26500 len = length(field[1])
26501 for (i = 2; i < nfields; i++) {
26502 key = field[i]
26503 keylen = length(key)
26504 if (S_is_set[key]) {
26505 value = S[key]
26506 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26507 len += length(value) + length(field[++i])
26508 substed = 1
26509 } else
26510 len += 1 + keylen
26511 }
26512
26513 print line
26514 }
26515
26516 _ACAWK
26517 _ACEOF
26518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26519 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26520 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26521 else
26522 cat
26523 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26524 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26525 _ACEOF
26526
26527 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26528 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26529 # trailing colons and then remove the whole line if VPATH becomes empty
26530 # (actually we leave an empty line to preserve line numbers).
26531 if test "x$srcdir" = x.; then
26532 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26533 h
26534 s///
26535 s/^/:/
26536 s/[ ]*$/:/
26537 s/:\$(srcdir):/:/g
26538 s/:\${srcdir}:/:/g
26539 s/:@srcdir@:/:/g
26540 s/^:*//
26541 s/:*$//
26542 x
26543 s/\(=[ ]*\).*/\1/
26544 G
26545 s/\n//
26546 s/^[^=]*=[ ]*$//
26547 }'
26548 fi
26549
26550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26551 fi # test -n "$CONFIG_FILES"
26552
26553 # Set up the scripts for CONFIG_HEADERS section.
26554 # No need to generate them if there are no CONFIG_HEADERS.
26555 # This happens for instance with './config.status Makefile'.
26556 if test -n "$CONFIG_HEADERS"; then
26557 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26558 BEGIN {
26559 _ACEOF
26560
26561 # Transform confdefs.h into an awk script 'defines.awk', embedded as
26562 # here-document in config.status, that substitutes the proper values into
26563 # config.h.in to produce config.h.
26564
26565 # Create a delimiter string that does not exist in confdefs.h, to ease
26566 # handling of long lines.
26567 ac_delim='%!_!# '
26568 for ac_last_try in false false :; do
26569 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26570 if test -z "$ac_tt"; then
26571 break
26572 elif $ac_last_try; then
26573 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26574 else
26575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26576 fi
26577 done
26578
26579 # For the awk script, D is an array of macro values keyed by name,
26580 # likewise P contains macro parameters if any. Preserve backslash
26581 # newline sequences.
26582
26583 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26584 sed -n '
26585 s/.\{148\}/&'"$ac_delim"'/g
26586 t rset
26587 :rset
26588 s/^[ ]*#[ ]*define[ ][ ]*/ /
26589 t def
26590 d
26591 :def
26592 s/\\$//
26593 t bsnl
26594 s/["\\]/\\&/g
26595 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26596 D["\1"]=" \3"/p
26597 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26598 d
26599 :bsnl
26600 s/["\\]/\\&/g
26601 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26602 D["\1"]=" \3\\\\\\n"\\/p
26603 t cont
26604 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26605 t cont
26606 d
26607 :cont
26608 n
26609 s/.\{148\}/&'"$ac_delim"'/g
26610 t clear
26611 :clear
26612 s/\\$//
26613 t bsnlc
26614 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26615 d
26616 :bsnlc
26617 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26618 b cont
26619 ' <confdefs.h | sed '
26620 s/'"$ac_delim"'/"\\\
26621 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26622
26623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26624 for (key in D) D_is_set[key] = 1
26625 FS = ""
26626 }
26627 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26628 line = \$ 0
26629 split(line, arg, " ")
26630 if (arg[1] == "#") {
26631 defundef = arg[2]
26632 mac1 = arg[3]
26633 } else {
26634 defundef = substr(arg[1], 2)
26635 mac1 = arg[2]
26636 }
26637 split(mac1, mac2, "(") #)
26638 macro = mac2[1]
26639 prefix = substr(line, 1, index(line, defundef) - 1)
26640 if (D_is_set[macro]) {
26641 # Preserve the white space surrounding the "#".
26642 print prefix "define", macro P[macro] D[macro]
26643 next
26644 } else {
26645 # Replace #undef with comments. This is necessary, for example,
26646 # in the case of _POSIX_SOURCE, which is predefined and required
26647 # on some systems where configure will not decide to define it.
26648 if (defundef == "undef") {
26649 print "/*", prefix defundef, macro, "*/"
26650 next
26651 }
26652 }
26653 }
26654 { print }
26655 _ACAWK
26656 _ACEOF
26657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26658 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26659 fi # test -n "$CONFIG_HEADERS"
26660
26661
26662 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26663 shift
26664 for ac_tag
26665 do
26666 case $ac_tag in
26667 :[FHLC]) ac_mode=$ac_tag; continue;;
26668 esac
26669 case $ac_mode$ac_tag in
26670 :[FHL]*:*);;
26671 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
26672 :[FH]-) ac_tag=-:-;;
26673 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26674 esac
26675 ac_save_IFS=$IFS
26676 IFS=:
26677 set x $ac_tag
26678 IFS=$ac_save_IFS
26679 shift
26680 ac_file=$1
26681 shift
26682
26683 case $ac_mode in
26684 :L) ac_source=$1;;
26685 :[FH])
26686 ac_file_inputs=
26687 for ac_f
26688 do
26689 case $ac_f in
26690 -) ac_f="$ac_tmp/stdin";;
26691 *) # Look for the file first in the build tree, then in the source tree
26692 # (if the path is not absolute). The absolute path cannot be DOS-style,
26693 # because $ac_f cannot contain ':'.
26694 test -f "$ac_f" ||
26695 case $ac_f in
26696 [\\/$]*) false;;
26697 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26698 esac ||
26699 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
26700 esac
26701 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26702 as_fn_append ac_file_inputs " '$ac_f'"
26703 done
26704
26705 # Let's still pretend it is 'configure' which instantiates (i.e., don't
26706 # use $as_me), people would be surprised to read:
26707 # /* config.h. Generated by config.status. */
26708 configure_input='Generated from '`
26709 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26710 `' by configure.'
26711 if test x"$ac_file" != x-; then
26712 configure_input="$ac_file. $configure_input"
26713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26714 printf "%s\n" "$as_me: creating $ac_file" >&6;}
26715 fi
26716 # Neutralize special characters interpreted by sed in replacement strings.
26717 case $configure_input in #(
26718 *\&* | *\|* | *\\* )
26719 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
26720 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26721 *) ac_sed_conf_input=$configure_input;;
26722 esac
26723
26724 case $ac_tag in
26725 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26726 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26727 esac
26728 ;;
26729 esac
26730
26731 ac_dir=`$as_dirname -- "$ac_file" ||
26732 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26733 X"$ac_file" : 'X\(//\)[^/]' \| \
26734 X"$ac_file" : 'X\(//\)$' \| \
26735 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26736 printf "%s\n" X"$ac_file" |
26737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26738 s//\1/
26739 q
26740 }
26741 /^X\(\/\/\)[^/].*/{
26742 s//\1/
26743 q
26744 }
26745 /^X\(\/\/\)$/{
26746 s//\1/
26747 q
26748 }
26749 /^X\(\/\).*/{
26750 s//\1/
26751 q
26752 }
26753 s/.*/./; q'`
26754 as_dir="$ac_dir"; as_fn_mkdir_p
26755 ac_builddir=.
26756
26757 case "$ac_dir" in
26758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26759 *)
26760 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
26761 # A ".." for each directory in $ac_dir_suffix.
26762 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26763 case $ac_top_builddir_sub in
26764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26766 esac ;;
26767 esac
26768 ac_abs_top_builddir=$ac_pwd
26769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26770 # for backward compatibility:
26771 ac_top_builddir=$ac_top_build_prefix
26772
26773 case $srcdir in
26774 .) # We are building in place.
26775 ac_srcdir=.
26776 ac_top_srcdir=$ac_top_builddir_sub
26777 ac_abs_top_srcdir=$ac_pwd ;;
26778 [\\/]* | ?:[\\/]* ) # Absolute name.
26779 ac_srcdir=$srcdir$ac_dir_suffix;
26780 ac_top_srcdir=$srcdir
26781 ac_abs_top_srcdir=$srcdir ;;
26782 *) # Relative name.
26783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26784 ac_top_srcdir=$ac_top_build_prefix$srcdir
26785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26786 esac
26787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26788
26789
26790 case $ac_mode in
26791 :F)
26792 #
26793 # CONFIG_FILE
26794 #
26795
26796 case $INSTALL in
26797 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26798 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26799 esac
26800 ac_MKDIR_P=$MKDIR_P
26801 case $MKDIR_P in
26802 [\\/$]* | ?:[\\/]* ) ;;
26803 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26804 esac
26805 _ACEOF
26806
26807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26808 # If the template does not know about datarootdir, expand it.
26809 # FIXME: This hack should be removed a few years after 2.60.
26810 ac_datarootdir_hack=; ac_datarootdir_seen=
26811 ac_sed_dataroot='
26812 /datarootdir/ {
26813 p
26814 q
26815 }
26816 /@datadir@/p
26817 /@docdir@/p
26818 /@infodir@/p
26819 /@localedir@/p
26820 /@mandir@/p'
26821 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26822 *datarootdir*) ac_datarootdir_seen=yes;;
26823 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26825 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26826 _ACEOF
26827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26828 ac_datarootdir_hack='
26829 s&@datadir@&$datadir&g
26830 s&@docdir@&$docdir&g
26831 s&@infodir@&$infodir&g
26832 s&@localedir@&$localedir&g
26833 s&@mandir@&$mandir&g
26834 s&\\\${datarootdir}&$datarootdir&g' ;;
26835 esac
26836 _ACEOF
26837
26838 # Neutralize VPATH when '$srcdir' = '.'.
26839 # Shell code in configure.ac might set extrasub.
26840 # FIXME: do we really want to maintain this feature?
26841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26842 ac_sed_extra="$ac_vpsub
26843 $extrasub
26844 _ACEOF
26845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26846 :t
26847 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26848 s|@configure_input@|$ac_sed_conf_input|;t t
26849 s&@top_builddir@&$ac_top_builddir_sub&;t t
26850 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26851 s&@srcdir@&$ac_srcdir&;t t
26852 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26853 s&@top_srcdir@&$ac_top_srcdir&;t t
26854 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26855 s&@builddir@&$ac_builddir&;t t
26856 s&@abs_builddir@&$ac_abs_builddir&;t t
26857 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26858 s&@INSTALL@&$ac_INSTALL&;t t
26859 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26860 $ac_datarootdir_hack
26861 "
26862 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26863 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26864
26865 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26866 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26867 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26868 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
26870 which seems to be undefined. Please make sure it is defined" >&5
26871 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
26872 which seems to be undefined. Please make sure it is defined" >&2;}
26873
26874 rm -f "$ac_tmp/stdin"
26875 case $ac_file in
26876 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26877 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26878 esac \
26879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26880 ;;
26881 :H)
26882 #
26883 # CONFIG_HEADER
26884 #
26885 if test x"$ac_file" != x-; then
26886 {
26887 printf "%s\n" "/* $configure_input */" >&1 \
26888 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26889 } >"$ac_tmp/config.h" \
26890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26891 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26893 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
26894 else
26895 rm -f "$ac_file"
26896 mv "$ac_tmp/config.h" "$ac_file" \
26897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26898 fi
26899 else
26900 printf "%s\n" "/* $configure_input */" >&1 \
26901 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26902 || as_fn_error $? "could not create -" "$LINENO" 5
26903 fi
26904 # Compute "$ac_file"'s index in $config_headers.
26905 _am_arg="$ac_file"
26906 _am_stamp_count=1
26907 for _am_header in $config_headers :; do
26908 case $_am_header in
26909 $_am_arg | $_am_arg:* )
26910 break ;;
26911 * )
26912 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26913 esac
26914 done
26915 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26916 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26917 X"$_am_arg" : 'X\(//\)[^/]' \| \
26918 X"$_am_arg" : 'X\(//\)$' \| \
26919 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26920 printf "%s\n" X"$_am_arg" |
26921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26922 s//\1/
26923 q
26924 }
26925 /^X\(\/\/\)[^/].*/{
26926 s//\1/
26927 q
26928 }
26929 /^X\(\/\/\)$/{
26930 s//\1/
26931 q
26932 }
26933 /^X\(\/\).*/{
26934 s//\1/
26935 q
26936 }
26937 s/.*/./; q'`/stamp-h$_am_stamp_count
26938 ;;
26939
26940 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26941 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
26942 ;;
26943 esac
26944
26945
26946 case $ac_file$ac_mode in
26947 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26948 # Older Autoconf quotes --file arguments for eval, but not when files
26949 # are listed without --file. Let's play safe and only enable the eval
26950 # if we detect the quoting.
26951 # TODO: see whether this extra hack can be removed once we start
26952 # requiring Autoconf 2.70 or later.
26953 case $CONFIG_FILES in #(
26954 *\'*) :
26955 eval set x "$CONFIG_FILES" ;; #(
26956 *) :
26957 set x $CONFIG_FILES ;; #(
26958 *) :
26959 ;;
26960 esac
26961 shift
26962 # Used to flag and report bootstrapping failures.
26963 am_rc=0
26964 for am_mf
26965 do
26966 # Strip MF so we end up with the name of the file.
26967 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
26968 # Check whether this is an Automake generated Makefile which includes
26969 # dependency-tracking related rules and includes.
26970 # Grep'ing the whole file directly is not great: AIX grep has a line
26971 # limit of 2048, but all sed's we know have understand at least 4000.
26972 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
26973 || continue
26974 am_dirpart=`$as_dirname -- "$am_mf" ||
26975 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26976 X"$am_mf" : 'X\(//\)[^/]' \| \
26977 X"$am_mf" : 'X\(//\)$' \| \
26978 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26979 printf "%s\n" X"$am_mf" |
26980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26981 s//\1/
26982 q
26983 }
26984 /^X\(\/\/\)[^/].*/{
26985 s//\1/
26986 q
26987 }
26988 /^X\(\/\/\)$/{
26989 s//\1/
26990 q
26991 }
26992 /^X\(\/\).*/{
26993 s//\1/
26994 q
26995 }
26996 s/.*/./; q'`
26997 am_filepart=`$as_basename -- "$am_mf" ||
26998 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
26999 X"$am_mf" : 'X\(//\)$' \| \
27000 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
27001 printf "%s\n" X/"$am_mf" |
27002 sed '/^.*\/\([^/][^/]*\)\/*$/{
27003 s//\1/
27004 q
27005 }
27006 /^X\/\(\/\/\)$/{
27007 s//\1/
27008 q
27009 }
27010 /^X\/\(\/\).*/{
27011 s//\1/
27012 q
27013 }
27014 s/.*/./; q'`
27015 { echo "$as_me:$LINENO: cd "$am_dirpart" \
27016 && sed -e '/# am--include-marker/d' "$am_filepart" \
27017 | $MAKE -f - am--depfiles" >&5
27018 (cd "$am_dirpart" \
27019 && sed -e '/# am--include-marker/d' "$am_filepart" \
27020 | $MAKE -f - am--depfiles) >&5 2>&5
27021 ac_status=$?
27022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023 (exit $ac_status); } || am_rc=$?
27024 done
27025 if test $am_rc -ne 0; then
27026 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27027 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27028 as_fn_error $? "Something went wrong bootstrapping makefile fragments
27029 for automatic dependency tracking. If GNU make was not used, consider
27030 re-running the configure script with MAKE=\"gmake\" (or whatever is
27031 necessary). You can also try re-running configure with the
27032 '--disable-dependency-tracking' option to at least be able to build
27033 the package (albeit without support for automatic dependency tracking).
27034 See 'config.log' for more details" "$LINENO" 5; }
27035 fi
27036 { am_dirpart=; unset am_dirpart;}
27037 { am_filepart=; unset am_filepart;}
27038 { am_mf=; unset am_mf;}
27039 { am_rc=; unset am_rc;}
27040 rm -f conftest-deps.mk
27041 }
27042 ;;
27043 "libtool":C)
27044
27045 # See if we are running on zsh, and set the options that allow our
27046 # commands through without removal of \ escapes.
27047 if test -n "${ZSH_VERSION+set}"; then
27048 setopt NO_GLOB_SUBST
27049 fi
27050
27051 cfgfile=${ofile}T
27052 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27053 $RM "$cfgfile"
27054
27055 cat <<_LT_EOF >> "$cfgfile"
27056 #! $SHELL
27057 # Generated automatically by $as_me ($PACKAGE) $VERSION
27058 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27059
27060 # Provide generalized library-building support services.
27061 # Written by Gordon Matzigkeit, 1996
27062
27063 # Copyright (C) 2024 Free Software Foundation, Inc.
27064 # This is free software; see the source for copying conditions. There is NO
27065 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27066
27067 # GNU Libtool is free software; you can redistribute it and/or modify
27068 # it under the terms of the GNU General Public License as published by
27069 # the Free Software Foundation; either version 2 of the License, or
27070 # (at your option) any later version.
27071 #
27072 # As a special exception to the GNU General Public License, if you
27073 # distribute this file as part of a program or library that is built
27074 # using GNU Libtool, you may include this file under the same
27075 # distribution terms that you use for the rest of that program.
27076 #
27077 # GNU Libtool is distributed in the hope that it will be useful, but
27078 # WITHOUT ANY WARRANTY; without even the implied warranty of
27079 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27080 # GNU General Public License for more details.
27081 #
27082 # You should have received a copy of the GNU General Public License
27083 # along with this program. If not, see <http://www.gnu.org/licenses/>.
27084
27085
27086 # The names of the tagged configurations supported by this script.
27087 available_tags='CXX '
27088
27089 # Configured defaults for sys_lib_dlsearch_path munging.
27090 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
27091
27092 # ### BEGIN LIBTOOL CONFIG
27093
27094 # Which release of libtool.m4 was used?
27095 macro_version=$macro_version
27096 macro_revision=$macro_revision
27097
27098 # Assembler program.
27099 AS=$lt_AS
27100
27101 # DLL creation program.
27102 DLLTOOL=$lt_DLLTOOL
27103
27104 # Object dumper program.
27105 OBJDUMP=$lt_OBJDUMP
27106
27107 # Whether or not to build shared libraries.
27108 build_libtool_libs=$enable_shared
27109
27110 # Whether or not to build static libraries.
27111 build_old_libs=$enable_static
27112
27113 # What type of objects to build.
27114 pic_mode=$pic_mode
27115
27116 # Whether or not to optimize for fast installation.
27117 fast_install=$enable_fast_install
27118
27119 # Shared archive member basename,for filename based shared library versioning on AIX.
27120 shared_archive_member_spec=$shared_archive_member_spec
27121
27122 # Shell to use when invoking shell scripts.
27123 SHELL=$lt_SHELL
27124
27125 # An echo program that protects backslashes.
27126 ECHO=$lt_ECHO
27127
27128 # The PATH separator for the build system.
27129 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27130
27131 # The host system.
27132 host_alias=$host_alias
27133 host=$host
27134 host_os=$host_os
27135
27136 # The build system.
27137 build_alias=$build_alias
27138 build=$build
27139 build_os=$build_os
27140
27141 # A sed program that does not truncate output.
27142 SED=$lt_SED
27143
27144 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27145 Xsed="\$SED -e 1s/^X//"
27146
27147 # A grep program that handles long lines.
27148 GREP=$lt_GREP
27149
27150 # An ERE matcher.
27151 EGREP=$lt_EGREP
27152
27153 # A literal string matcher.
27154 FGREP=$lt_FGREP
27155
27156 # A BSD- or MS-compatible name lister.
27157 NM=$lt_NM
27158
27159 # Whether we need soft or hard links.
27160 LN_S=$lt_LN_S
27161
27162 # What is the maximum length of a command?
27163 max_cmd_len=$max_cmd_len
27164
27165 # Object file suffix (normally "o").
27166 objext=$ac_objext
27167
27168 # Executable file suffix (normally "").
27169 exeext=$exeext
27170
27171 # whether the shell understands "unset".
27172 lt_unset=$lt_unset
27173
27174 # turn spaces into newlines.
27175 SP2NL=$lt_lt_SP2NL
27176
27177 # turn newlines into spaces.
27178 NL2SP=$lt_lt_NL2SP
27179
27180 # convert \$build file names to \$host format.
27181 to_host_file_cmd=$lt_cv_to_host_file_cmd
27182
27183 # convert \$build files to toolchain format.
27184 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27185
27186 # A file(cmd) program that detects file types.
27187 FILECMD=$lt_FILECMD
27188
27189 # Method to check whether dependent libraries are shared objects.
27190 deplibs_check_method=$lt_deplibs_check_method
27191
27192 # Command to use when deplibs_check_method = "file_magic".
27193 file_magic_cmd=$lt_file_magic_cmd
27194
27195 # How to find potential files when deplibs_check_method = "file_magic".
27196 file_magic_glob=$lt_file_magic_glob
27197
27198 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27199 want_nocaseglob=$lt_want_nocaseglob
27200
27201 # Command to associate shared and link libraries.
27202 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27203
27204 # The archiver.
27205 AR=$lt_AR
27206
27207 # Flags to create an archive (by configure).
27208 lt_ar_flags=$lt_ar_flags
27209
27210 # Flags to create an archive.
27211 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
27212
27213 # How to feed a file listing to the archiver.
27214 archiver_list_spec=$lt_archiver_list_spec
27215
27216 # A symbol stripping program.
27217 STRIP=$lt_STRIP
27218
27219 # Commands used to install an old-style archive.
27220 RANLIB=$lt_RANLIB
27221 old_postinstall_cmds=$lt_old_postinstall_cmds
27222 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27223
27224 # Whether to use a lock for old archive extraction.
27225 lock_old_archive_extraction=$lock_old_archive_extraction
27226
27227 # A C compiler.
27228 LTCC=$lt_CC
27229
27230 # LTCC compiler flags.
27231 LTCFLAGS=$lt_CFLAGS
27232
27233 # Take the output of nm and produce a listing of raw symbols and C names.
27234 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27235
27236 # Transform the output of nm in a proper C declaration.
27237 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27238
27239 # Transform the output of nm into a list of symbols to manually relocate.
27240 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
27241
27242 # Transform the output of nm in a C name address pair.
27243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27244
27245 # Transform the output of nm in a C name address pair when lib prefix is needed.
27246 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27247
27248 # The name lister interface.
27249 nm_interface=$lt_lt_cv_nm_interface
27250
27251 # Specify filename containing input files for \$NM.
27252 nm_file_list_spec=$lt_nm_file_list_spec
27253
27254 # The root where to search for dependent libraries,and where our libraries should be installed.
27255 lt_sysroot=$lt_sysroot
27256
27257 # Command to truncate a binary pipe.
27258 lt_truncate_bin=$lt_lt_cv_truncate_bin
27259
27260 # The name of the directory that contains temporary libtool files.
27261 objdir=$objdir
27262
27263 # Used to examine libraries when file_magic_cmd begins with "file".
27264 MAGIC_CMD=$MAGIC_CMD
27265
27266 # Must we lock files when doing compilation?
27267 need_locks=$lt_need_locks
27268
27269 # Manifest tool.
27270 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27271
27272 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27273 DSYMUTIL=$lt_DSYMUTIL
27274
27275 # Tool to change global to local symbols on Mac OS X.
27276 NMEDIT=$lt_NMEDIT
27277
27278 # Tool to manipulate fat objects and archives on Mac OS X.
27279 LIPO=$lt_LIPO
27280
27281 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27282 OTOOL=$lt_OTOOL
27283
27284 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27285 OTOOL64=$lt_OTOOL64
27286
27287 # Old archive suffix (normally "a").
27288 libext=$libext
27289
27290 # Shared library suffix (normally ".so").
27291 shrext_cmds=$lt_shrext_cmds
27292
27293 # The commands to extract the exported symbol list from a shared archive.
27294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27295
27296 # Variables whose values should be saved in libtool wrapper scripts and
27297 # restored at link time.
27298 variables_saved_for_relink=$lt_variables_saved_for_relink
27299
27300 # Do we need the "lib" prefix for modules?
27301 need_lib_prefix=$need_lib_prefix
27302
27303 # Do we need a version for libraries?
27304 need_version=$need_version
27305
27306 # Library versioning type.
27307 version_type=$version_type
27308
27309 # Shared library runtime path variable.
27310 runpath_var=$runpath_var
27311
27312 # Shared library path variable.
27313 shlibpath_var=$shlibpath_var
27314
27315 # Is shlibpath searched before the hard-coded library search path?
27316 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27317
27318 # Format of library name prefix.
27319 libname_spec=$lt_libname_spec
27320
27321 # List of archive names. First name is the real one, the rest are links.
27322 # The last name is the one that the linker finds with -lNAME
27323 library_names_spec=$lt_library_names_spec
27324
27325 # The coded name of the library, if different from the real name.
27326 soname_spec=$lt_soname_spec
27327
27328 # Permission mode override for installation of shared libraries.
27329 install_override_mode=$lt_install_override_mode
27330
27331 # Command to use after installation of a shared archive.
27332 postinstall_cmds=$lt_postinstall_cmds
27333
27334 # Command to use after uninstallation of a shared archive.
27335 postuninstall_cmds=$lt_postuninstall_cmds
27336
27337 # Commands used to finish a libtool library installation in a directory.
27338 finish_cmds=$lt_finish_cmds
27339
27340 # As "finish_cmds", except a single script fragment to be evaled but
27341 # not shown.
27342 finish_eval=$lt_finish_eval
27343
27344 # Whether we should hardcode library paths into libraries.
27345 hardcode_into_libs=$hardcode_into_libs
27346
27347 # Compile-time system search path for libraries.
27348 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27349
27350 # Detected run-time system search path for libraries.
27351 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
27352
27353 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
27354 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
27355
27356 # Whether dlopen is supported.
27357 dlopen_support=$enable_dlopen
27358
27359 # Whether dlopen of programs is supported.
27360 dlopen_self=$enable_dlopen_self
27361
27362 # Whether dlopen of statically linked programs is supported.
27363 dlopen_self_static=$enable_dlopen_self_static
27364
27365 # Commands to strip libraries.
27366 old_striplib=$lt_old_striplib
27367 striplib=$lt_striplib
27368
27369
27370 # The linker used to build libraries.
27371 LD=$lt_LD
27372
27373 # How to create reloadable object files.
27374 reload_flag=$lt_reload_flag
27375 reload_cmds=$lt_reload_cmds
27376
27377 # Commands used to build an old-style archive.
27378 old_archive_cmds=$lt_old_archive_cmds
27379
27380 # A language specific compiler.
27381 CC=$lt_compiler
27382
27383 # Is the compiler the GNU compiler?
27384 with_gcc=$GCC
27385
27386 # Compiler flag to turn off builtin functions.
27387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27388
27389 # Additional compiler flags for building library objects.
27390 pic_flag=$lt_lt_prog_compiler_pic
27391
27392 # How to pass a linker flag through the compiler.
27393 wl=$lt_lt_prog_compiler_wl
27394
27395 # Compiler flag to prevent dynamic linking.
27396 link_static_flag=$lt_lt_prog_compiler_static
27397
27398 # Does compiler simultaneously support -c and -o options?
27399 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27400
27401 # Whether or not to add -lc for building shared libraries.
27402 build_libtool_need_lc=$archive_cmds_need_lc
27403
27404 # Whether or not to disallow shared libs when runtime libs are static.
27405 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27406
27407 # Compiler flag to allow reflexive dlopens.
27408 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27409
27410 # Compiler flag to generate shared objects directly from archives.
27411 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27412
27413 # Whether the compiler copes with passing no objects directly.
27414 compiler_needs_object=$lt_compiler_needs_object
27415
27416 # Create an old-style archive from a shared archive.
27417 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27418
27419 # Create a temporary old-style archive to link instead of a shared archive.
27420 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27421
27422 # Commands used to build a shared archive.
27423 archive_cmds=$lt_archive_cmds
27424 archive_expsym_cmds=$lt_archive_expsym_cmds
27425
27426 # Commands used to build a loadable module if different from building
27427 # a shared archive.
27428 module_cmds=$lt_module_cmds
27429 module_expsym_cmds=$lt_module_expsym_cmds
27430
27431 # Whether we are building with GNU ld or not.
27432 with_gnu_ld=$lt_with_gnu_ld
27433
27434 # Flag that allows shared libraries with undefined symbols to be built.
27435 allow_undefined_flag=$lt_allow_undefined_flag
27436
27437 # Flag that enforces no undefined symbols.
27438 no_undefined_flag=$lt_no_undefined_flag
27439
27440 # Flag to hardcode \$libdir into a binary during linking.
27441 # This must work even if \$libdir does not exist
27442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27443
27444 # Whether we need a single "-rpath" flag with a separated argument.
27445 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27446
27447 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27448 # DIR into the resulting binary.
27449 hardcode_direct=$hardcode_direct
27450
27451 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27452 # DIR into the resulting binary and the resulting library dependency is
27453 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
27454 # library is relocated.
27455 hardcode_direct_absolute=$hardcode_direct_absolute
27456
27457 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27458 # into the resulting binary.
27459 hardcode_minus_L=$hardcode_minus_L
27460
27461 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27462 # into the resulting binary.
27463 hardcode_shlibpath_var=$hardcode_shlibpath_var
27464
27465 # Set to "yes" if building a shared library automatically hardcodes DIR
27466 # into the library and all subsequent libraries and executables linked
27467 # against it.
27468 hardcode_automatic=$hardcode_automatic
27469
27470 # Set to yes if linker adds runtime paths of dependent libraries
27471 # to runtime path list.
27472 inherit_rpath=$inherit_rpath
27473
27474 # Whether libtool must link a program against all its dependency libraries.
27475 link_all_deplibs=$link_all_deplibs
27476
27477 # Set to "yes" if exported symbols are required.
27478 always_export_symbols=$always_export_symbols
27479
27480 # The commands to list exported symbols.
27481 export_symbols_cmds=$lt_export_symbols_cmds
27482
27483 # Symbols that should not be listed in the preloaded symbols.
27484 exclude_expsyms=$lt_exclude_expsyms
27485
27486 # Symbols that must always be exported.
27487 include_expsyms=$lt_include_expsyms
27488
27489 # Commands necessary for linking programs (against libraries) with templates.
27490 prelink_cmds=$lt_prelink_cmds
27491
27492 # Commands necessary for finishing linking programs.
27493 postlink_cmds=$lt_postlink_cmds
27494
27495 # Specify filename containing input files.
27496 file_list_spec=$lt_file_list_spec
27497
27498 # How to hardcode a shared library path into an executable.
27499 hardcode_action=$hardcode_action
27500
27501 # The directories searched by this compiler when creating a shared library.
27502 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27503
27504 # Dependencies to place before and after the objects being linked to
27505 # create a shared library.
27506 predep_objects=$lt_predep_objects
27507 postdep_objects=$lt_postdep_objects
27508 predeps=$lt_predeps
27509 postdeps=$lt_postdeps
27510
27511 # The library search path used internally by the compiler when linking
27512 # a shared library.
27513 compiler_lib_search_path=$lt_compiler_lib_search_path
27514
27515 # ### END LIBTOOL CONFIG
27516
27517 _LT_EOF
27518
27519 cat <<'_LT_EOF' >> "$cfgfile"
27520
27521 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
27522
27523 # func_munge_path_list VARIABLE PATH
27524 # -----------------------------------
27525 # VARIABLE is name of variable containing _space_ separated list of
27526 # directories to be munged by the contents of PATH, which is string
27527 # having a format:
27528 # "DIR[:DIR]:"
27529 # string "DIR[ DIR]" will be prepended to VARIABLE
27530 # ":DIR[:DIR]"
27531 # string "DIR[ DIR]" will be appended to VARIABLE
27532 # "DIRP[:DIRP]::[DIRA:]DIRA"
27533 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
27534 # "DIRA[ DIRA]" will be appended to VARIABLE
27535 # "DIR[:DIR]"
27536 # VARIABLE will be replaced by "DIR[ DIR]"
27537 func_munge_path_list ()
27538 {
27539 case x$2 in
27540 x)
27541 ;;
27542 *:)
27543 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
27544 ;;
27545 x:*)
27546 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
27547 ;;
27548 *::*)
27549 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
27550 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
27551 ;;
27552 *)
27553 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
27554 ;;
27555 esac
27556 }
27557
27558
27559 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
27560 func_cc_basename ()
27561 {
27562 for cc_temp in $*""; do
27563 case $cc_temp in
27564 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27565 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27566 \-*) ;;
27567 *) break;;
27568 esac
27569 done
27570 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27571 }
27572
27573
27574 # ### END FUNCTIONS SHARED WITH CONFIGURE
27575
27576 _LT_EOF
27577
27578 case $host_os in
27579 aix3*)
27580 cat <<\_LT_EOF >> "$cfgfile"
27581 # AIX sometimes has problems with the GCC collect2 program. For some
27582 # reason, if we set the COLLECT_NAMES environment variable, the problems
27583 # vanish in a puff of smoke.
27584 if test set != "${COLLECT_NAMES+set}"; then
27585 COLLECT_NAMES=
27586 export COLLECT_NAMES
27587 fi
27588 _LT_EOF
27589 ;;
27590 esac
27591
27592
27593
27594 ltmain=$ac_aux_dir/ltmain.sh
27595
27596
27597 # We use sed instead of cat because bash on DJGPP gets confused if
27598 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27599 # text mode, it properly converts lines to CR/LF. This bash problem
27600 # is reportedly fixed, but why not run on old versions too?
27601 $SED '$q' "$ltmain" >> "$cfgfile" \
27602 || (rm -f "$cfgfile"; exit 1)
27603
27604 mv -f "$cfgfile" "$ofile" ||
27605 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27606 chmod +x "$ofile"
27607
27608
27609 cat <<_LT_EOF >> "$ofile"
27610
27611 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27612
27613 # The linker used to build libraries.
27614 LD=$lt_LD_CXX
27615
27616 # How to create reloadable object files.
27617 reload_flag=$lt_reload_flag_CXX
27618 reload_cmds=$lt_reload_cmds_CXX
27619
27620 # Commands used to build an old-style archive.
27621 old_archive_cmds=$lt_old_archive_cmds_CXX
27622
27623 # A language specific compiler.
27624 CC=$lt_compiler_CXX
27625
27626 # Is the compiler the GNU compiler?
27627 with_gcc=$GCC_CXX
27628
27629 # Compiler flag to turn off builtin functions.
27630 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27631
27632 # Additional compiler flags for building library objects.
27633 pic_flag=$lt_lt_prog_compiler_pic_CXX
27634
27635 # How to pass a linker flag through the compiler.
27636 wl=$lt_lt_prog_compiler_wl_CXX
27637
27638 # Compiler flag to prevent dynamic linking.
27639 link_static_flag=$lt_lt_prog_compiler_static_CXX
27640
27641 # Does compiler simultaneously support -c and -o options?
27642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27643
27644 # Whether or not to add -lc for building shared libraries.
27645 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27646
27647 # Whether or not to disallow shared libs when runtime libs are static.
27648 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27649
27650 # Compiler flag to allow reflexive dlopens.
27651 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27652
27653 # Compiler flag to generate shared objects directly from archives.
27654 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27655
27656 # Whether the compiler copes with passing no objects directly.
27657 compiler_needs_object=$lt_compiler_needs_object_CXX
27658
27659 # Create an old-style archive from a shared archive.
27660 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27661
27662 # Create a temporary old-style archive to link instead of a shared archive.
27663 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27664
27665 # Commands used to build a shared archive.
27666 archive_cmds=$lt_archive_cmds_CXX
27667 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27668
27669 # Commands used to build a loadable module if different from building
27670 # a shared archive.
27671 module_cmds=$lt_module_cmds_CXX
27672 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27673
27674 # Whether we are building with GNU ld or not.
27675 with_gnu_ld=$lt_with_gnu_ld_CXX
27676
27677 # Flag that allows shared libraries with undefined symbols to be built.
27678 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27679
27680 # Flag that enforces no undefined symbols.
27681 no_undefined_flag=$lt_no_undefined_flag_CXX
27682
27683 # Flag to hardcode \$libdir into a binary during linking.
27684 # This must work even if \$libdir does not exist
27685 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27686
27687 # Whether we need a single "-rpath" flag with a separated argument.
27688 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27689
27690 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27691 # DIR into the resulting binary.
27692 hardcode_direct=$hardcode_direct_CXX
27693
27694 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27695 # DIR into the resulting binary and the resulting library dependency is
27696 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
27697 # library is relocated.
27698 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27699
27700 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27701 # into the resulting binary.
27702 hardcode_minus_L=$hardcode_minus_L_CXX
27703
27704 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27705 # into the resulting binary.
27706 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27707
27708 # Set to "yes" if building a shared library automatically hardcodes DIR
27709 # into the library and all subsequent libraries and executables linked
27710 # against it.
27711 hardcode_automatic=$hardcode_automatic_CXX
27712
27713 # Set to yes if linker adds runtime paths of dependent libraries
27714 # to runtime path list.
27715 inherit_rpath=$inherit_rpath_CXX
27716
27717 # Whether libtool must link a program against all its dependency libraries.
27718 link_all_deplibs=$link_all_deplibs_CXX
27719
27720 # Set to "yes" if exported symbols are required.
27721 always_export_symbols=$always_export_symbols_CXX
27722
27723 # The commands to list exported symbols.
27724 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27725
27726 # Symbols that should not be listed in the preloaded symbols.
27727 exclude_expsyms=$lt_exclude_expsyms_CXX
27728
27729 # Symbols that must always be exported.
27730 include_expsyms=$lt_include_expsyms_CXX
27731
27732 # Commands necessary for linking programs (against libraries) with templates.
27733 prelink_cmds=$lt_prelink_cmds_CXX
27734
27735 # Commands necessary for finishing linking programs.
27736 postlink_cmds=$lt_postlink_cmds_CXX
27737
27738 # Specify filename containing input files.
27739 file_list_spec=$lt_file_list_spec_CXX
27740
27741 # How to hardcode a shared library path into an executable.
27742 hardcode_action=$hardcode_action_CXX
27743
27744 # The directories searched by this compiler when creating a shared library.
27745 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27746
27747 # Dependencies to place before and after the objects being linked to
27748 # create a shared library.
27749 predep_objects=$lt_predep_objects_CXX
27750 postdep_objects=$lt_postdep_objects_CXX
27751 predeps=$lt_predeps_CXX
27752 postdeps=$lt_postdeps_CXX
27753
27754 # The library search path used internally by the compiler when linking
27755 # a shared library.
27756 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27757
27758 # ### END LIBTOOL TAG CONFIG: CXX
27759 _LT_EOF
27760
27761 ;;
27762 "CXXLD.sh":C) echo "$cxxld_sh" >CXXLD.sh; chmod +x CXXLD.sh ;;
27763
27764 esac
27765 done # for ac_tag
27766
27767
27768 as_fn_exit 0
27769 _ACEOF
27770 ac_clean_files=$ac_clean_files_save
27771
27772 test $ac_write_fail = 0 ||
27773 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27774
27775
27776 # configure is writing to config.log, and then calls config.status.
27777 # config.status does its own redirection, appending to config.log.
27778 # Unfortunately, on DOS this fails, as config.log is still kept open
27779 # by configure, so config.status won't be able to write to it; its
27780 # output is simply discarded. So we exec the FD to /dev/null,
27781 # effectively closing config.log, so it can be properly (re)opened and
27782 # appended to by config.status. When coming back to configure, we
27783 # need to make the FD available again.
27784 if test "$no_create" != yes; then
27785 ac_cs_success=:
27786 ac_config_status_args=
27787 test "$silent" = yes &&
27788 ac_config_status_args="$ac_config_status_args --quiet"
27789 exec 5>/dev/null
27790 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27791 exec 5>>config.log
27792 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27793 # would make configure fail if this is the last instruction.
27794 $ac_cs_success || as_fn_exit 1
27795 fi
27796 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27798 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27799 fi
27800
27801