Debian Codegraph @

extension/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for GNU Awk Bundled Extensions 5.3.2.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
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 \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || 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 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and [email protected]
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='GNU Awk Bundled Extensions'
623 PACKAGE_TARNAME='gawk-extensions'
624 PACKAGE_VERSION='5.3.2'
625 PACKAGE_STRING='GNU Awk Bundled Extensions 5.3.2'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL='https://www.gnu.org/software/gawk-extensions/'
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 gt_needs=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 LIBOBJS
666 LIBMPFR
667 pkgextensiondir
668 LT_SYS_LIBRARY_PATH
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 FILECMD
677 LN_S
678 NM
679 ac_ct_DUMPBIN
680 DUMPBIN
681 LD
682 FGREP
683 LIBTOOL
684 OBJDUMP
685 DLLTOOL
686 AS
687 HAVE_ADDR_NO_RANDOMIZE_FALSE
688 HAVE_ADDR_NO_RANDOMIZE_TRUE
689 USE_PERSISTENT_MALLOC_FALSE
690 USE_PERSISTENT_MALLOC_TRUE
691 ac_ct_AR
692 AR
693 POSUB
694 LTLIBINTL
695 LIBINTL
696 INTLLIBS
697 LTLIBICONV
698 LIBICONV
699 INTL_MACOSX_LIBS
700 EGREP
701 GREP
702 CPP
703 XGETTEXT_EXTRA_OPTIONS
704 MSGMERGE_FOR_MSGFMT_OPTION
705 MSGMERGE
706 XGETTEXT_015
707 XGETTEXT
708 GMSGFMT_015
709 GMSGFMT
710 MSGFMT
711 GETTEXT_MACRO_VERSION
712 USE_NLS
713 SED
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 am__nodep
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__include
722 DEPDIR
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 AM_BACKSLASH
739 AM_DEFAULT_VERBOSITY
740 AM_DEFAULT_V
741 AM_V
742 CSCOPE
743 ETAGS
744 CTAGS
745 am__untar
746 am__tar
747 AMTAR
748 am__leading_dot
749 SET_MAKE
750 AWK
751 mkdir_p
752 MKDIR_P
753 INSTALL_STRIP_PROGRAM
754 STRIP
755 install_sh
756 MAKEINFO
757 AUTOHEADER
758 AUTOMAKE
759 AUTOCONF
760 ACLOCAL
761 VERSION
762 PACKAGE
763 CYGPATH_W
764 am__isrc
765 INSTALL_DATA
766 INSTALL_SCRIPT
767 INSTALL_PROGRAM
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 runstatedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL
807 am__quote'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 enable_silent_rules
812 enable_pma
813 enable_dependency_tracking
814 enable_mpfr
815 enable_nls
816 with_gnu_ld
817 enable_rpath
818 with_libiconv_prefix
819 with_libintl_prefix
820 enable_largefile
821 enable_static
822 enable_shared
823 with_pic
824 enable_fast_install
825 with_aix_soname
826 with_sysroot
827 enable_libtool_lock
828 with_mpfr
829 '
830 ac_precious_vars='build_alias
831 host_alias
832 target_alias
833 CC
834 CFLAGS
835 LDFLAGS
836 LIBS
837 CPPFLAGS
838 CPP
839 LT_SYS_LIBRARY_PATH'
840
841
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
863
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 runstatedir='${localstatedir}/run'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
890
891 ac_prev=
892 ac_dashdash=
893 for ac_option
894 do
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
900 fi
901
902 case $ac_option in
903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *=) ac_optarg= ;;
905 *) ac_optarg=yes ;;
906 esac
907
908 case $ac_dashdash$ac_option in
909 --)
910 ac_dashdash=yes ;;
911
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
916
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
921
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
928
929 --config-cache | -C)
930 cache_file=config.cache ;;
931
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
936
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
943
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: \`$ac_useropt'"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
959
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
964
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
969
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: \`$ac_useropt'"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
985
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
994
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
998
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1005
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1010
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1016
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1023
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1028
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1033
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1040
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1045
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1052
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1057
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1061
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1065
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1069
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1078
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1083
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1090
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1097
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1114
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1119
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1124
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1128
1129 -runstatedir | --runstatedir | --runstatedi | --runstated \
1130 | --runstate | --runstat | --runsta | --runst | --runs \
1131 | --run | --ru | --r)
1132 ac_prev=runstatedir ;;
1133 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1134 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1135 | --run=* | --ru=* | --r=*)
1136 runstatedir=$ac_optarg ;;
1137
1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 ac_prev=sbindir ;;
1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 | --sbi=* | --sb=*)
1142 sbindir=$ac_optarg ;;
1143
1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1146 | --sharedst | --shareds | --shared | --share | --shar \
1147 | --sha | --sh)
1148 ac_prev=sharedstatedir ;;
1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 | --sha=* | --sh=*)
1153 sharedstatedir=$ac_optarg ;;
1154
1155 -site | --site | --sit)
1156 ac_prev=site ;;
1157 -site=* | --site=* | --sit=*)
1158 site=$ac_optarg ;;
1159
1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 ac_prev=srcdir ;;
1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1163 srcdir=$ac_optarg ;;
1164
1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1166 | --syscon | --sysco | --sysc | --sys | --sy)
1167 ac_prev=sysconfdir ;;
1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1170 sysconfdir=$ac_optarg ;;
1171
1172 -target | --target | --targe | --targ | --tar | --ta | --t)
1173 ac_prev=target_alias ;;
1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1175 target_alias=$ac_optarg ;;
1176
1177 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178 verbose=yes ;;
1179
1180 -version | --version | --versio | --versi | --vers | -V)
1181 ac_init_version=: ;;
1182
1183 -with-* | --with-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: \`$ac_useropt'"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=\$ac_optarg ;;
1198
1199 -without-* | --without-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error $? "invalid package name: \`$ac_useropt'"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1207 *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=no ;;
1214
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
1218
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224 x_includes=$ac_optarg ;;
1225
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231 x_libraries=$ac_optarg ;;
1232
1233 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1234 Try \`$0 --help' for more information"
1235 ;;
1236
1237 *=*)
1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239 # Reject names that are not valid shell variable names.
1240 case $ac_envvar in #(
1241 '' | [0-9]* | *[!_$as_cr_alnum]* )
1242 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1243 esac
1244 eval $ac_envvar=\$ac_optarg
1245 export $ac_envvar ;;
1246
1247 *)
1248 # FIXME: should be removed in autoconf 3.0.
1249 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1253 ;;
1254
1255 esac
1256 done
1257
1258 if test -n "$ac_prev"; then
1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260 as_fn_error $? "missing argument to $ac_option"
1261 fi
1262
1263 if test -n "$ac_unrecognized_opts"; then
1264 case $enable_option_checking in
1265 no) ;;
1266 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1267 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 esac
1269 fi
1270
1271 # Check all directory arguments for consistency.
1272 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1273 datadir sysconfdir sharedstatedir localstatedir includedir \
1274 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1275 libdir localedir mandir runstatedir
1276 do
1277 eval ac_val=\$$ac_var
1278 # Remove trailing slashes.
1279 case $ac_val in
1280 */ )
1281 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1282 eval $ac_var=\$ac_val;;
1283 esac
1284 # Be sure to have absolute directory names.
1285 case $ac_val in
1286 [\\/$]* | ?:[\\/]* ) continue;;
1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 esac
1289 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1290 done
1291
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1298
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1305 fi
1306 fi
1307
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311 test "$silent" = yes && exec 6>/dev/null
1312
1313
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error $? "working directory cannot be determined"
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error $? "pwd does not report name of working directory"
1320
1321
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 printf "%s\n" X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
1349 srcdir=$ac_confdir
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 srcdir=..
1352 fi
1353 else
1354 ac_srcdir_defaulted=no
1355 fi
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1359 fi
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1363 pwd)`
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1367 fi
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1371 case $srcdir in
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 esac
1374 for ac_var in $ac_precious_vars; do
1375 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_env_${ac_var}_value=\$${ac_var}
1377 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1379 done
1380
1381 #
1382 # Report the --help message.
1383 #
1384 if test "$ac_init_help" = "long"; then
1385 # Omit some internal or obsolete options to make the list less imposing.
1386 # This message is too long to be a string in the A/UX 3.1 sh.
1387 cat <<_ACEOF
1388 \`configure' configures GNU Awk Bundled Extensions 5.3.2 to adapt to many kinds of systems.
1389
1390 Usage: $0 [OPTION]... [VAR=VALUE]...
1391
1392 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1393 VAR=VALUE. See below for descriptions of some of the useful variables.
1394
1395 Defaults for the options are specified in brackets.
1396
1397 Configuration:
1398 -h, --help display this help and exit
1399 --help=short display options specific to this package
1400 --help=recursive display the short help of all the included packages
1401 -V, --version display version information and exit
1402 -q, --quiet, --silent do not print \`checking ...' messages
1403 --cache-file=FILE cache test results in FILE [disabled]
1404 -C, --config-cache alias for \`--cache-file=config.cache'
1405 -n, --no-create do not create output files
1406 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407
1408 Installation directories:
1409 --prefix=PREFIX install architecture-independent files in PREFIX
1410 [$ac_default_prefix]
1411 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 [PREFIX]
1413
1414 By default, \`make install' will install all the files in
1415 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1416 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1417 for instance \`--prefix=\$HOME'.
1418
1419 For better control, use the options below.
1420
1421 Fine tuning of the installation directories:
1422 --bindir=DIR user executables [EPREFIX/bin]
1423 --sbindir=DIR system admin executables [EPREFIX/sbin]
1424 --libexecdir=DIR program executables [EPREFIX/libexec]
1425 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1426 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1427 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1428 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/gawk-extensions]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1442 _ACEOF
1443
1444 cat <<\_ACEOF
1445
1446 Program names:
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1450
1451 System types:
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 _ACEOF
1455 fi
1456
1457 if test -n "$ac_init_help"; then
1458 case $ac_init_help in
1459 short | recursive ) echo "Configuration of GNU Awk Bundled Extensions 5.3.2:";;
1460 esac
1461 cat <<\_ACEOF
1462
1463 Optional Features:
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-silent-rules less verbose build output (undo: "make V=1")
1468 --disable-silent-rules verbose build output (undo: "make V=0")
1469 --disable-pma do not build gawk with the persistent memory
1470 allocator
1471 --enable-dependency-tracking
1472 do not reject slow dependency extractors
1473 --disable-dependency-tracking
1474 speeds up one-time build
1475 --disable-mpfr do not check for MPFR
1476 --disable-nls do not use Native Language Support
1477 --disable-rpath do not hardcode runtime library paths
1478 --disable-largefile omit support for large files
1479 --enable-static[=PKGS] build static libraries [default=no]
1480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-fast-install[=PKGS]
1482 optimize for fast installation [default=yes]
1483 --disable-libtool-lock avoid locking (might break parallel builds)
1484
1485 Optional Packages:
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1489 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1490 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1491 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1492 --without-libintl-prefix don't search for libintl in includedir and libdir
1493 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1494 both]
1495 --with-aix-soname=aix|svr4|both
1496 shared library versioning (aka "SONAME") variant to
1497 provide on AIX, [default=aix].
1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1499 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1500 compiler's sysroot if not specified).
1501 --with-mpfr=DIR look for the mpfr and gmp libraries in DIR
1502
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 CPP C preprocessor
1512 LT_SYS_LIBRARY_PATH
1513 User-defined run-time library search path.
1514
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 Report bugs to <[email protected]>.
1519 GNU Awk Bundled Extensions home page: <https://www.gnu.org/software/gawk-extensions/>.
1520 General help using GNU software: <https://www.gnu.org/gethelp/>.
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 continue
1531 ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550 .) # We are building in place.
1551 ac_srcdir=.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for configure.gnu first; this name is used for a wrapper for
1567 # Metaconfig's "Configure" on case-insensitive file systems.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure" --help=recursive
1574 else
1575 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 fi || ac_status=$?
1577 cd "$ac_pwd" || { ac_status=$?; break; }
1578 done
1579 fi
1580
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1583 cat <<\_ACEOF
1584 GNU Awk Bundled Extensions configure 5.3.2
1585 generated by GNU Autoconf 2.71
1586
1587 Copyright (C) 2021 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591 exit
1592 fi
1593
1594 ## ------------------------ ##
1595 ## Autoconf initialization. ##
1596 ## ------------------------ ##
1597
1598 # ac_fn_c_try_compile LINENO
1599 # --------------------------
1600 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_compile ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest.beam
1605 if { { ac_try="$ac_compile"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 printf "%s\n" "$ac_try_echo"; } >&5
1612 (eval "$ac_compile") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest.$ac_objext
1624 then :
1625 ac_retval=0
1626 else $as_nop
1627 printf "%s\n" "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630 ac_retval=1
1631 fi
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_compile
1636
1637 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1638 # -------------------------------------------------------
1639 # Tests whether HEADER exists and can be compiled using the include files in
1640 # INCLUDES, setting the cache variable VAR accordingly.
1641 ac_fn_c_check_header_compile ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 printf %s "checking for $2... " >&6; }
1646 if eval test \${$3+y}
1647 then :
1648 printf %s "(cached) " >&6
1649 else $as_nop
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1652 $4
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_compile "$LINENO"
1656 then :
1657 eval "$3=yes"
1658 else $as_nop
1659 eval "$3=no"
1660 fi
1661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1662 fi
1663 eval ac_res=\$$3
1664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 printf "%s\n" "$ac_res" >&6; }
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667
1668 } # ac_fn_c_check_header_compile
1669
1670 # ac_fn_c_try_cpp LINENO
1671 # ----------------------
1672 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_cpp ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_cpp conftest.$ac_ext"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 printf "%s\n" "$ac_try_echo"; } >&5
1683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } > conftest.i && {
1692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 }
1695 then :
1696 ac_retval=0
1697 else $as_nop
1698 printf "%s\n" "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=1
1702 fi
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_cpp
1707
1708 # ac_fn_c_try_link LINENO
1709 # -----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_link ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1715 if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 printf "%s\n" "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest$ac_exeext && {
1734 test "$cross_compiling" = yes ||
1735 test -x conftest$ac_exeext
1736 }
1737 then :
1738 ac_retval=0
1739 else $as_nop
1740 printf "%s\n" "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747 # interfere with the next link command; also delete a directory that is
1748 # left behind by Apple's compiler. We do this before executing the actions.
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_link
1754
1755 # ac_fn_c_try_run LINENO
1756 # ----------------------
1757 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1758 # executables *can* be run.
1759 ac_fn_c_try_run ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_link"
1763 case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 printf "%s\n" "$ac_try_echo"; } >&5
1769 (eval "$ac_link") 2>&5
1770 ac_status=$?
1771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1773 { { case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 printf "%s\n" "$ac_try_echo"; } >&5
1779 (eval "$ac_try") 2>&5
1780 ac_status=$?
1781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; }; }
1783 then :
1784 ac_retval=0
1785 else $as_nop
1786 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1787 printf "%s\n" "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=$ac_status
1791 fi
1792 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1795
1796 } # ac_fn_c_try_run
1797
1798 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1799 # ----------------------------------------------------
1800 # Tries to find if the field MEMBER exists in type AGGR, after including
1801 # INCLUDES, setting cache variable VAR accordingly.
1802 ac_fn_c_check_member ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1806 printf %s "checking for $2.$3... " >&6; }
1807 if eval test \${$4+y}
1808 then :
1809 printf %s "(cached) " >&6
1810 else $as_nop
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 $5
1814 int
1815 main (void)
1816 {
1817 static $2 ac_aggr;
1818 if (ac_aggr.$3)
1819 return 0;
1820 ;
1821 return 0;
1822 }
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"
1825 then :
1826 eval "$4=yes"
1827 else $as_nop
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 $5
1831 int
1832 main (void)
1833 {
1834 static $2 ac_aggr;
1835 if (sizeof ac_aggr.$3)
1836 return 0;
1837 ;
1838 return 0;
1839 }
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"
1842 then :
1843 eval "$4=yes"
1844 else $as_nop
1845 eval "$4=no"
1846 fi
1847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1848 fi
1849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1850 fi
1851 eval ac_res=\$$4
1852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 printf "%s\n" "$ac_res" >&6; }
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855
1856 } # ac_fn_c_check_member
1857
1858 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1859 # --------------------------------------------
1860 # Tries to find the compile-time value of EXPR in a program that includes
1861 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1862 # computed
1863 ac_fn_c_compute_int ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if test "$cross_compiling" = yes; then
1867 # Depending upon the size, compute the lo and hi bounds.
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 $4
1871 int
1872 main (void)
1873 {
1874 static int test_array [1 - 2 * !(($2) >= 0)];
1875 test_array [0] = 0;
1876 return test_array [0];
1877
1878 ;
1879 return 0;
1880 }
1881 _ACEOF
1882 if ac_fn_c_try_compile "$LINENO"
1883 then :
1884 ac_lo=0 ac_mid=0
1885 while :; do
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 $4
1889 int
1890 main (void)
1891 {
1892 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1893 test_array [0] = 0;
1894 return test_array [0];
1895
1896 ;
1897 return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"
1901 then :
1902 ac_hi=$ac_mid; break
1903 else $as_nop
1904 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1905 if test $ac_lo -le $ac_mid; then
1906 ac_lo= ac_hi=
1907 break
1908 fi
1909 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1912 done
1913 else $as_nop
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1916 $4
1917 int
1918 main (void)
1919 {
1920 static int test_array [1 - 2 * !(($2) < 0)];
1921 test_array [0] = 0;
1922 return test_array [0];
1923
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"
1929 then :
1930 ac_hi=-1 ac_mid=-1
1931 while :; do
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 $4
1935 int
1936 main (void)
1937 {
1938 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1939 test_array [0] = 0;
1940 return test_array [0];
1941
1942 ;
1943 return 0;
1944 }
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"
1947 then :
1948 ac_lo=$ac_mid; break
1949 else $as_nop
1950 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1951 if test $ac_mid -le $ac_hi; then
1952 ac_lo= ac_hi=
1953 break
1954 fi
1955 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1956 fi
1957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1958 done
1959 else $as_nop
1960 ac_lo= ac_hi=
1961 fi
1962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1965 # Binary search between lo and hi bounds.
1966 while test "x$ac_lo" != "x$ac_hi"; do
1967 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 $4
1971 int
1972 main (void)
1973 {
1974 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1975 test_array [0] = 0;
1976 return test_array [0];
1977
1978 ;
1979 return 0;
1980 }
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"
1983 then :
1984 ac_hi=$ac_mid
1985 else $as_nop
1986 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1989 done
1990 case $ac_lo in #((
1991 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1992 '') ac_retval=1 ;;
1993 esac
1994 else
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1997 $4
1998 static long int longval (void) { return $2; }
1999 static unsigned long int ulongval (void) { return $2; }
2000 #include <stdio.h>
2001 #include <stdlib.h>
2002 int
2003 main (void)
2004 {
2005
2006 FILE *f = fopen ("conftest.val", "w");
2007 if (! f)
2008 return 1;
2009 if (($2) < 0)
2010 {
2011 long int i = longval ();
2012 if (i != ($2))
2013 return 1;
2014 fprintf (f, "%ld", i);
2015 }
2016 else
2017 {
2018 unsigned long int i = ulongval ();
2019 if (i != ($2))
2020 return 1;
2021 fprintf (f, "%lu", i);
2022 }
2023 /* Do not output a trailing newline, as this causes \r\n confusion
2024 on some platforms. */
2025 return ferror (f) || fclose (f) != 0;
2026
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_run "$LINENO"
2032 then :
2033 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2034 else $as_nop
2035 ac_retval=1
2036 fi
2037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2038 conftest.$ac_objext conftest.beam conftest.$ac_ext
2039 rm -f conftest.val
2040
2041 fi
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 as_fn_set_status $ac_retval
2044
2045 } # ac_fn_c_compute_int
2046
2047 # ac_fn_c_check_func LINENO FUNC VAR
2048 # ----------------------------------
2049 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2050 ac_fn_c_check_func ()
2051 {
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 printf %s "checking for $2... " >&6; }
2055 if eval test \${$3+y}
2056 then :
2057 printf %s "(cached) " >&6
2058 else $as_nop
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2063 #define $2 innocuous_$2
2064
2065 /* System header to define __stub macros and hopefully few prototypes,
2066 which can conflict with char $2 (); below. */
2067
2068 #include <limits.h>
2069 #undef $2
2070
2071 /* Override any GCC internal prototype to avoid an error.
2072 Use char because int might match the return type of a GCC
2073 builtin and then its argument prototype would still apply. */
2074 #ifdef __cplusplus
2075 extern "C"
2076 #endif
2077 char $2 ();
2078 /* The GNU C library defines this for functions which it implements
2079 to always fail with ENOSYS. Some functions are actually named
2080 something starting with __ and the normal name is an alias. */
2081 #if defined __stub_$2 || defined __stub___$2
2082 choke me
2083 #endif
2084
2085 int
2086 main (void)
2087 {
2088 return $2 ();
2089 ;
2090 return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_link "$LINENO"
2094 then :
2095 eval "$3=yes"
2096 else $as_nop
2097 eval "$3=no"
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2100 conftest$ac_exeext conftest.$ac_ext
2101 fi
2102 eval ac_res=\$$3
2103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 printf "%s\n" "$ac_res" >&6; }
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106
2107 } # ac_fn_c_check_func
2108
2109 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2110 # ------------------------------------------------------------------
2111 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2112 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2113 ac_fn_check_decl ()
2114 {
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 as_decl_name=`echo $2|sed 's/ *(.*//'`
2117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2118 printf %s "checking whether $as_decl_name is declared... " >&6; }
2119 if eval test \${$3+y}
2120 then :
2121 printf %s "(cached) " >&6
2122 else $as_nop
2123 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2124 eval ac_save_FLAGS=\$$6
2125 as_fn_append $6 " $5"
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2128 $4
2129 int
2130 main (void)
2131 {
2132 #ifndef $as_decl_name
2133 #ifdef __cplusplus
2134 (void) $as_decl_use;
2135 #else
2136 (void) $as_decl_name;
2137 #endif
2138 #endif
2139
2140 ;
2141 return 0;
2142 }
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"
2145 then :
2146 eval "$3=yes"
2147 else $as_nop
2148 eval "$3=no"
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2151 eval $6=\$ac_save_FLAGS
2152
2153 fi
2154 eval ac_res=\$$3
2155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 printf "%s\n" "$ac_res" >&6; }
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158
2159 } # ac_fn_check_decl
2160 ac_configure_args_raw=
2161 for ac_arg
2162 do
2163 case $ac_arg in
2164 *\'*)
2165 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2166 esac
2167 as_fn_append ac_configure_args_raw " '$ac_arg'"
2168 done
2169
2170 case $ac_configure_args_raw in
2171 *$as_nl*)
2172 ac_safe_unquote= ;;
2173 *)
2174 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2175 ac_unsafe_a="$ac_unsafe_z#~"
2176 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2177 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2178 esac
2179
2180 cat >config.log <<_ACEOF
2181 This file contains any messages produced by compilers while
2182 running configure, to aid debugging if configure makes a mistake.
2183
2184 It was created by GNU Awk Bundled Extensions $as_me 5.3.2, which was
2185 generated by GNU Autoconf 2.71. Invocation command line was
2186
2187 $ $0$ac_configure_args_raw
2188
2189 _ACEOF
2190 exec 5>>config.log
2191 {
2192 cat <<_ASUNAME
2193 ## --------- ##
2194 ## Platform. ##
2195 ## --------- ##
2196
2197 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2198 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2199 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2200 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2201 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2202
2203 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2204 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2205
2206 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2207 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2208 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2209 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2210 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2211 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2212 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2213
2214 _ASUNAME
2215
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2218 do
2219 IFS=$as_save_IFS
2220 case $as_dir in #(((
2221 '') as_dir=./ ;;
2222 */) ;;
2223 *) as_dir=$as_dir/ ;;
2224 esac
2225 printf "%s\n" "PATH: $as_dir"
2226 done
2227 IFS=$as_save_IFS
2228
2229 } >&5
2230
2231 cat >&5 <<_ACEOF
2232
2233
2234 ## ----------- ##
2235 ## Core tests. ##
2236 ## ----------- ##
2237
2238 _ACEOF
2239
2240
2241 # Keep a trace of the command line.
2242 # Strip out --no-create and --no-recursion so they do not pile up.
2243 # Strip out --silent because we don't want to record it for future runs.
2244 # Also quote any args containing shell meta-characters.
2245 # Make two passes to allow for proper duplicate-argument suppression.
2246 ac_configure_args=
2247 ac_configure_args0=
2248 ac_configure_args1=
2249 ac_must_keep_next=false
2250 for ac_pass in 1 2
2251 do
2252 for ac_arg
2253 do
2254 case $ac_arg in
2255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2257 | -silent | --silent | --silen | --sile | --sil)
2258 continue ;;
2259 *\'*)
2260 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2261 esac
2262 case $ac_pass in
2263 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2264 2)
2265 as_fn_append ac_configure_args1 " '$ac_arg'"
2266 if test $ac_must_keep_next = true; then
2267 ac_must_keep_next=false # Got value, back to normal.
2268 else
2269 case $ac_arg in
2270 *=* | --config-cache | -C | -disable-* | --disable-* \
2271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2273 | -with-* | --with-* | -without-* | --without-* | --x)
2274 case "$ac_configure_args0 " in
2275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2276 esac
2277 ;;
2278 -* ) ac_must_keep_next=true ;;
2279 esac
2280 fi
2281 as_fn_append ac_configure_args " '$ac_arg'"
2282 ;;
2283 esac
2284 done
2285 done
2286 { ac_configure_args0=; unset ac_configure_args0;}
2287 { ac_configure_args1=; unset ac_configure_args1;}
2288
2289 # When interrupted or exit'd, cleanup temporary files, and complete
2290 # config.log. We remove comments because anyway the quotes in there
2291 # would cause problems or look ugly.
2292 # WARNING: Use '\'' to represent an apostrophe within the trap.
2293 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2294 trap 'exit_status=$?
2295 # Sanitize IFS.
2296 IFS=" "" $as_nl"
2297 # Save into config.log some information that might help in debugging.
2298 {
2299 echo
2300
2301 printf "%s\n" "## ---------------- ##
2302 ## Cache variables. ##
2303 ## ---------------- ##"
2304 echo
2305 # The following way of writing the cache mishandles newlines in values,
2306 (
2307 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2308 eval ac_val=\$$ac_var
2309 case $ac_val in #(
2310 *${as_nl}*)
2311 case $ac_var in #(
2312 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2313 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2314 esac
2315 case $ac_var in #(
2316 _ | IFS | as_nl) ;; #(
2317 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2318 *) { eval $ac_var=; unset $ac_var;} ;;
2319 esac ;;
2320 esac
2321 done
2322 (set) 2>&1 |
2323 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2324 *${as_nl}ac_space=\ *)
2325 sed -n \
2326 "s/'\''/'\''\\\\'\'''\''/g;
2327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2328 ;; #(
2329 *)
2330 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2331 ;;
2332 esac |
2333 sort
2334 )
2335 echo
2336
2337 printf "%s\n" "## ----------------- ##
2338 ## Output variables. ##
2339 ## ----------------- ##"
2340 echo
2341 for ac_var in $ac_subst_vars
2342 do
2343 eval ac_val=\$$ac_var
2344 case $ac_val in
2345 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346 esac
2347 printf "%s\n" "$ac_var='\''$ac_val'\''"
2348 done | sort
2349 echo
2350
2351 if test -n "$ac_subst_files"; then
2352 printf "%s\n" "## ------------------- ##
2353 ## File substitutions. ##
2354 ## ------------------- ##"
2355 echo
2356 for ac_var in $ac_subst_files
2357 do
2358 eval ac_val=\$$ac_var
2359 case $ac_val in
2360 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361 esac
2362 printf "%s\n" "$ac_var='\''$ac_val'\''"
2363 done | sort
2364 echo
2365 fi
2366
2367 if test -s confdefs.h; then
2368 printf "%s\n" "## ----------- ##
2369 ## confdefs.h. ##
2370 ## ----------- ##"
2371 echo
2372 cat confdefs.h
2373 echo
2374 fi
2375 test "$ac_signal" != 0 &&
2376 printf "%s\n" "$as_me: caught signal $ac_signal"
2377 printf "%s\n" "$as_me: exit $exit_status"
2378 } >&5
2379 rm -f core *.core core.conftest.* &&
2380 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2381 exit $exit_status
2382 ' 0
2383 for ac_signal in 1 2 13 15; do
2384 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2385 done
2386 ac_signal=0
2387
2388 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2389 rm -f -r conftest* confdefs.h
2390
2391 printf "%s\n" "/* confdefs.h */" > confdefs.h
2392
2393 # Predefined preprocessor variables.
2394
2395 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2396
2397 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2398
2399 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2400
2401 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2402
2403 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2404
2405 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2406
2407
2408 # Let the site file select an alternate cache file if it wants to.
2409 # Prefer an explicitly selected file to automatically selected ones.
2410 if test -n "$CONFIG_SITE"; then
2411 ac_site_files="$CONFIG_SITE"
2412 elif test "x$prefix" != xNONE; then
2413 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2414 else
2415 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2416 fi
2417
2418 for ac_site_file in $ac_site_files
2419 do
2420 case $ac_site_file in #(
2421 */*) :
2422 ;; #(
2423 *) :
2424 ac_site_file=./$ac_site_file ;;
2425 esac
2426 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2428 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2429 sed 's/^/| /' "$ac_site_file" >&5
2430 . "$ac_site_file" \
2431 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2433 as_fn_error $? "failed to load site script $ac_site_file
2434 See \`config.log' for more details" "$LINENO" 5; }
2435 fi
2436 done
2437
2438 if test -r "$cache_file"; then
2439 # Some versions of bash will fail to source /dev/null (special files
2440 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2441 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2443 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2444 case $cache_file in
2445 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2446 *) . "./$cache_file";;
2447 esac
2448 fi
2449 else
2450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2451 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2452 >$cache_file
2453 fi
2454
2455 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2456 # Test code for whether the C compiler supports C89 (global declarations)
2457 ac_c_conftest_c89_globals='
2458 /* Does the compiler advertise C89 conformance?
2459 Do not test the value of __STDC__, because some compilers set it to 0
2460 while being otherwise adequately conformant. */
2461 #if !defined __STDC__
2462 # error "Compiler does not advertise C89 conformance"
2463 #endif
2464
2465 #include <stddef.h>
2466 #include <stdarg.h>
2467 struct stat;
2468 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2469 struct buf { int x; };
2470 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2471 static char *e (p, i)
2472 char **p;
2473 int i;
2474 {
2475 return p[i];
2476 }
2477 static char *f (char * (*g) (char **, int), char **p, ...)
2478 {
2479 char *s;
2480 va_list v;
2481 va_start (v,p);
2482 s = g (p, va_arg (v,int));
2483 va_end (v);
2484 return s;
2485 }
2486
2487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2488 function prototypes and stuff, but not \xHH hex character constants.
2489 These do not provoke an error unfortunately, instead are silently treated
2490 as an "x". The following induces an error, until -std is added to get
2491 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2492 array size at least. It is necessary to write \x00 == 0 to get something
2493 that is true only with -std. */
2494 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2495
2496 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2497 inside strings and character constants. */
2498 #define FOO(x) '\''x'\''
2499 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2500
2501 int test (int i, double x);
2502 struct s1 {int (*f) (int a);};
2503 struct s2 {int (*f) (double a);};
2504 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2505 int, int);'
2506
2507 # Test code for whether the C compiler supports C89 (body of main).
2508 ac_c_conftest_c89_main='
2509 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2510 '
2511
2512 # Test code for whether the C compiler supports C99 (global declarations)
2513 ac_c_conftest_c99_globals='
2514 // Does the compiler advertise C99 conformance?
2515 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2516 # error "Compiler does not advertise C99 conformance"
2517 #endif
2518
2519 #include <stdbool.h>
2520 extern int puts (const char *);
2521 extern int printf (const char *, ...);
2522 extern int dprintf (int, const char *, ...);
2523 extern void *malloc (size_t);
2524
2525 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2526 // dprintf is used instead of fprintf to avoid needing to declare
2527 // FILE and stderr.
2528 #define debug(...) dprintf (2, __VA_ARGS__)
2529 #define showlist(...) puts (#__VA_ARGS__)
2530 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2531 static void
2532 test_varargs_macros (void)
2533 {
2534 int x = 1234;
2535 int y = 5678;
2536 debug ("Flag");
2537 debug ("X = %d\n", x);
2538 showlist (The first, second, and third items.);
2539 report (x>y, "x is %d but y is %d", x, y);
2540 }
2541
2542 // Check long long types.
2543 #define BIG64 18446744073709551615ull
2544 #define BIG32 4294967295ul
2545 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2546 #if !BIG_OK
2547 #error "your preprocessor is broken"
2548 #endif
2549 #if BIG_OK
2550 #else
2551 #error "your preprocessor is broken"
2552 #endif
2553 static long long int bignum = -9223372036854775807LL;
2554 static unsigned long long int ubignum = BIG64;
2555
2556 struct incomplete_array
2557 {
2558 int datasize;
2559 double data[];
2560 };
2561
2562 struct named_init {
2563 int number;
2564 const wchar_t *name;
2565 double average;
2566 };
2567
2568 typedef const char *ccp;
2569
2570 static inline int
2571 test_restrict (ccp restrict text)
2572 {
2573 // See if C++-style comments work.
2574 // Iterate through items via the restricted pointer.
2575 // Also check for declarations in for loops.
2576 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2577 continue;
2578 return 0;
2579 }
2580
2581 // Check varargs and va_copy.
2582 static bool
2583 test_varargs (const char *format, ...)
2584 {
2585 va_list args;
2586 va_start (args, format);
2587 va_list args_copy;
2588 va_copy (args_copy, args);
2589
2590 const char *str = "";
2591 int number = 0;
2592 float fnumber = 0;
2593
2594 while (*format)
2595 {
2596 switch (*format++)
2597 {
2598 case '\''s'\'': // string
2599 str = va_arg (args_copy, const char *);
2600 break;
2601 case '\''d'\'': // int
2602 number = va_arg (args_copy, int);
2603 break;
2604 case '\''f'\'': // float
2605 fnumber = va_arg (args_copy, double);
2606 break;
2607 default:
2608 break;
2609 }
2610 }
2611 va_end (args_copy);
2612 va_end (args);
2613
2614 return *str && number && fnumber;
2615 }
2616 '
2617
2618 # Test code for whether the C compiler supports C99 (body of main).
2619 ac_c_conftest_c99_main='
2620 // Check bool.
2621 _Bool success = false;
2622 success |= (argc != 0);
2623
2624 // Check restrict.
2625 if (test_restrict ("String literal") == 0)
2626 success = true;
2627 char *restrict newvar = "Another string";
2628
2629 // Check varargs.
2630 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2631 test_varargs_macros ();
2632
2633 // Check flexible array members.
2634 struct incomplete_array *ia =
2635 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2636 ia->datasize = 10;
2637 for (int i = 0; i < ia->datasize; ++i)
2638 ia->data[i] = i * 1.234;
2639
2640 // Check named initializers.
2641 struct named_init ni = {
2642 .number = 34,
2643 .name = L"Test wide string",
2644 .average = 543.34343,
2645 };
2646
2647 ni.number = 58;
2648
2649 int dynamic_array[ni.number];
2650 dynamic_array[0] = argv[0][0];
2651 dynamic_array[ni.number - 1] = 543;
2652
2653 // work around unused variable warnings
2654 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2655 || dynamic_array[ni.number - 1] != 543);
2656 '
2657
2658 # Test code for whether the C compiler supports C11 (global declarations)
2659 ac_c_conftest_c11_globals='
2660 // Does the compiler advertise C11 conformance?
2661 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2662 # error "Compiler does not advertise C11 conformance"
2663 #endif
2664
2665 // Check _Alignas.
2666 char _Alignas (double) aligned_as_double;
2667 char _Alignas (0) no_special_alignment;
2668 extern char aligned_as_int;
2669 char _Alignas (0) _Alignas (int) aligned_as_int;
2670
2671 // Check _Alignof.
2672 enum
2673 {
2674 int_alignment = _Alignof (int),
2675 int_array_alignment = _Alignof (int[100]),
2676 char_alignment = _Alignof (char)
2677 };
2678 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2679
2680 // Check _Noreturn.
2681 int _Noreturn does_not_return (void) { for (;;) continue; }
2682
2683 // Check _Static_assert.
2684 struct test_static_assert
2685 {
2686 int x;
2687 _Static_assert (sizeof (int) <= sizeof (long int),
2688 "_Static_assert does not work in struct");
2689 long int y;
2690 };
2691
2692 // Check UTF-8 literals.
2693 #define u8 syntax error!
2694 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2695
2696 // Check duplicate typedefs.
2697 typedef long *long_ptr;
2698 typedef long int *long_ptr;
2699 typedef long_ptr long_ptr;
2700
2701 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2702 struct anonymous
2703 {
2704 union {
2705 struct { int i; int j; };
2706 struct { int k; long int l; } w;
2707 };
2708 int m;
2709 } v1;
2710 '
2711
2712 # Test code for whether the C compiler supports C11 (body of main).
2713 ac_c_conftest_c11_main='
2714 _Static_assert ((offsetof (struct anonymous, i)
2715 == offsetof (struct anonymous, w.k)),
2716 "Anonymous union alignment botch");
2717 v1.i = 2;
2718 v1.w.k = 5;
2719 ok |= v1.i != 5;
2720 '
2721
2722 # Test code for whether the C compiler supports C11 (complete).
2723 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2724 ${ac_c_conftest_c99_globals}
2725 ${ac_c_conftest_c11_globals}
2726
2727 int
2728 main (int argc, char **argv)
2729 {
2730 int ok = 0;
2731 ${ac_c_conftest_c89_main}
2732 ${ac_c_conftest_c99_main}
2733 ${ac_c_conftest_c11_main}
2734 return ok;
2735 }
2736 "
2737
2738 # Test code for whether the C compiler supports C99 (complete).
2739 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2740 ${ac_c_conftest_c99_globals}
2741
2742 int
2743 main (int argc, char **argv)
2744 {
2745 int ok = 0;
2746 ${ac_c_conftest_c89_main}
2747 ${ac_c_conftest_c99_main}
2748 return ok;
2749 }
2750 "
2751
2752 # Test code for whether the C compiler supports C89 (complete).
2753 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2754
2755 int
2756 main (int argc, char **argv)
2757 {
2758 int ok = 0;
2759 ${ac_c_conftest_c89_main}
2760 return ok;
2761 }
2762 "
2763
2764 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2765 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2766 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2767 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2768 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2769 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2770 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2771 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2772 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2773 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2774 gt_needs="$gt_needs "
2775 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2776
2777 # Auxiliary files required by this configure script.
2778 ac_aux_files="ltmain.sh ar-lib config.rpath compile config.guess config.sub missing install-sh"
2779
2780 # Locations in which to look for auxiliary files.
2781 ac_aux_dir_candidates="${srcdir}/../build-aux"
2782
2783 # Search for a directory containing all of the required auxiliary files,
2784 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2785 # If we don't find one directory that contains all the files we need,
2786 # we report the set of missing files from the *first* directory in
2787 # $ac_aux_dir_candidates and give up.
2788 ac_missing_aux_files=""
2789 ac_first_candidate=:
2790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 as_found=false
2793 for as_dir in $ac_aux_dir_candidates
2794 do
2795 IFS=$as_save_IFS
2796 case $as_dir in #(((
2797 '') as_dir=./ ;;
2798 */) ;;
2799 *) as_dir=$as_dir/ ;;
2800 esac
2801 as_found=:
2802
2803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2804 ac_aux_dir_found=yes
2805 ac_install_sh=
2806 for ac_aux in $ac_aux_files
2807 do
2808 # As a special case, if "install-sh" is required, that requirement
2809 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2810 # and $ac_install_sh is set appropriately for whichever one is found.
2811 if test x"$ac_aux" = x"install-sh"
2812 then
2813 if test -f "${as_dir}install-sh"; then
2814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2815 ac_install_sh="${as_dir}install-sh -c"
2816 elif test -f "${as_dir}install.sh"; then
2817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2818 ac_install_sh="${as_dir}install.sh -c"
2819 elif test -f "${as_dir}shtool"; then
2820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2821 ac_install_sh="${as_dir}shtool install -c"
2822 else
2823 ac_aux_dir_found=no
2824 if $ac_first_candidate; then
2825 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2826 else
2827 break
2828 fi
2829 fi
2830 else
2831 if test -f "${as_dir}${ac_aux}"; then
2832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2833 else
2834 ac_aux_dir_found=no
2835 if $ac_first_candidate; then
2836 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2837 else
2838 break
2839 fi
2840 fi
2841 fi
2842 done
2843 if test "$ac_aux_dir_found" = yes; then
2844 ac_aux_dir="$as_dir"
2845 break
2846 fi
2847 ac_first_candidate=false
2848
2849 as_found=false
2850 done
2851 IFS=$as_save_IFS
2852 if $as_found
2853 then :
2854
2855 else $as_nop
2856 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2857 fi
2858
2859
2860 # These three variables are undocumented and unsupported,
2861 # and are intended to be withdrawn in a future Autoconf release.
2862 # They can cause serious problems if a builder's source tree is in a directory
2863 # whose full name contains unusual characters.
2864 if test -f "${ac_aux_dir}config.guess"; then
2865 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2866 fi
2867 if test -f "${ac_aux_dir}config.sub"; then
2868 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2869 fi
2870 if test -f "$ac_aux_dir/configure"; then
2871 ac_configure="$SHELL ${ac_aux_dir}configure"
2872 fi
2873
2874 # Check that the precious variables saved in the cache have kept the same
2875 # value.
2876 ac_cache_corrupted=false
2877 for ac_var in $ac_precious_vars; do
2878 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2879 eval ac_new_set=\$ac_env_${ac_var}_set
2880 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2881 eval ac_new_val=\$ac_env_${ac_var}_value
2882 case $ac_old_set,$ac_new_set in
2883 set,)
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2885 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2886 ac_cache_corrupted=: ;;
2887 ,set)
2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2889 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2890 ac_cache_corrupted=: ;;
2891 ,);;
2892 *)
2893 if test "x$ac_old_val" != "x$ac_new_val"; then
2894 # differences in whitespace do not lead to failure.
2895 ac_old_val_w=`echo x $ac_old_val`
2896 ac_new_val_w=`echo x $ac_new_val`
2897 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2899 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2900 ac_cache_corrupted=:
2901 else
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2903 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2904 eval $ac_var=\$ac_old_val
2905 fi
2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2907 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2909 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2910 fi;;
2911 esac
2912 # Pass precious variables to config.status.
2913 if test "$ac_new_set" = set; then
2914 case $ac_new_val in
2915 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2916 *) ac_arg=$ac_var=$ac_new_val ;;
2917 esac
2918 case " $ac_configure_args " in
2919 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2920 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2921 esac
2922 fi
2923 done
2924 if $ac_cache_corrupted; then
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2928 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2929 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2930 and start over" "$LINENO" 5
2931 fi
2932 ## -------------------- ##
2933 ## Main body of script. ##
2934 ## -------------------- ##
2935
2936 ac_ext=c
2937 ac_cpp='$CPP $CPPFLAGS'
2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941
2942
2943
2944
2945
2946
2947
2948
2949 am__api_version='1.16'
2950
2951
2952
2953 # Find a good install program. We prefer a C program (faster),
2954 # so one script is as good as another. But avoid the broken or
2955 # incompatible versions:
2956 # SysV /etc/install, /usr/sbin/install
2957 # SunOS /usr/etc/install
2958 # IRIX /sbin/install
2959 # AIX /bin/install
2960 # AmigaOS /C/install, which installs bootblocks on floppy discs
2961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2964 # OS/2's system install, which has a completely different semantic
2965 # ./install, which can be erroneously created by make from ./install.sh.
2966 # Reject install programs that cannot install multiple files.
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2968 printf %s "checking for a BSD-compatible install... " >&6; }
2969 if test -z "$INSTALL"; then
2970 if test ${ac_cv_path_install+y}
2971 then :
2972 printf %s "(cached) " >&6
2973 else $as_nop
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977 IFS=$as_save_IFS
2978 case $as_dir in #(((
2979 '') as_dir=./ ;;
2980 */) ;;
2981 *) as_dir=$as_dir/ ;;
2982 esac
2983 # Account for fact that we put trailing slashes in our PATH walk.
2984 case $as_dir in #((
2985 ./ | /[cC]/* | \
2986 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2987 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2988 /usr/ucb/* ) ;;
2989 *)
2990 # OSF1 and SCO ODT 3.0 have their own names for install.
2991 # Don't use installbsd from OSF since it installs stuff as root
2992 # by default.
2993 for ac_prog in ginstall scoinst install; do
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2996 if test $ac_prog = install &&
2997 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998 # AIX install. It has an incompatible calling convention.
2999 :
3000 elif test $ac_prog = install &&
3001 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3002 # program-specific install script used by HP pwplus--don't use.
3003 :
3004 else
3005 rm -rf conftest.one conftest.two conftest.dir
3006 echo one > conftest.one
3007 echo two > conftest.two
3008 mkdir conftest.dir
3009 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3010 test -s conftest.one && test -s conftest.two &&
3011 test -s conftest.dir/conftest.one &&
3012 test -s conftest.dir/conftest.two
3013 then
3014 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3015 break 3
3016 fi
3017 fi
3018 fi
3019 done
3020 done
3021 ;;
3022 esac
3023
3024 done
3025 IFS=$as_save_IFS
3026
3027 rm -rf conftest.one conftest.two conftest.dir
3028
3029 fi
3030 if test ${ac_cv_path_install+y}; then
3031 INSTALL=$ac_cv_path_install
3032 else
3033 # As a last resort, use the slow shell script. Don't cache a
3034 # value for INSTALL within a source directory, because that will
3035 # break other packages using the cache if that directory is
3036 # removed, or if the value is a relative name.
3037 INSTALL=$ac_install_sh
3038 fi
3039 fi
3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3041 printf "%s\n" "$INSTALL" >&6; }
3042
3043 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3044 # It thinks the first close brace ends the variable substitution.
3045 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3046
3047 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3048
3049 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3050
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3052 printf %s "checking whether build environment is sane... " >&6; }
3053 # Reject unsafe characters in $srcdir or the absolute working directory
3054 # name. Accept space and tab only in the latter.
3055 am_lf='
3056 '
3057 case `pwd` in
3058 *[\\\"\#\$\&\'\`$am_lf]*)
3059 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3060 esac
3061 case $srcdir in
3062 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3063 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3064 esac
3065
3066 # Do 'set' in a subshell so we don't clobber the current shell's
3067 # arguments. Must try -L first in case configure is actually a
3068 # symlink; some systems play weird games with the mod time of symlinks
3069 # (eg FreeBSD returns the mod time of the symlink's containing
3070 # directory).
3071 if (
3072 am_has_slept=no
3073 for am_try in 1 2; do
3074 echo "timestamp, slept: $am_has_slept" > conftest.file
3075 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3076 if test "$*" = "X"; then
3077 # -L didn't work.
3078 set X `ls -t "$srcdir/configure" conftest.file`
3079 fi
3080 if test "$*" != "X $srcdir/configure conftest.file" \
3081 && test "$*" != "X conftest.file $srcdir/configure"; then
3082
3083 # If neither matched, then we have a broken ls. This can happen
3084 # if, for instance, CONFIG_SHELL is bash and it inherits a
3085 # broken ls alias from the environment. This has actually
3086 # happened. Such a system could not be considered "sane".
3087 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3088 alias in your environment" "$LINENO" 5
3089 fi
3090 if test "$2" = conftest.file || test $am_try -eq 2; then
3091 break
3092 fi
3093 # Just in case.
3094 sleep 1
3095 am_has_slept=yes
3096 done
3097 test "$2" = conftest.file
3098 )
3099 then
3100 # Ok.
3101 :
3102 else
3103 as_fn_error $? "newly created file is older than distributed files!
3104 Check your system clock" "$LINENO" 5
3105 fi
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3107 printf "%s\n" "yes" >&6; }
3108 # If we didn't sleep, we still need to ensure time stamps of config.status and
3109 # generated files are strictly newer.
3110 am_sleep_pid=
3111 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3112 ( sleep 1 ) &
3113 am_sleep_pid=$!
3114 fi
3115
3116 rm -f conftest.file
3117
3118 test "$program_prefix" != NONE &&
3119 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3120 # Use a double $ so make ignores it.
3121 test "$program_suffix" != NONE &&
3122 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3123 # Double any \ or $.
3124 # By default was `s,x,x', remove it if useless.
3125 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3126 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3127
3128
3129 # Expand $ac_aux_dir to an absolute path.
3130 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3131
3132
3133 if test x"${MISSING+set}" != xset; then
3134 MISSING="\${SHELL} '$am_aux_dir/missing'"
3135 fi
3136 # Use eval to expand $SHELL
3137 if eval "$MISSING --is-lightweight"; then
3138 am_missing_run="$MISSING "
3139 else
3140 am_missing_run=
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3142 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3143 fi
3144
3145 if test x"${install_sh+set}" != xset; then
3146 case $am_aux_dir in
3147 *\ * | *\ *)
3148 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3149 *)
3150 install_sh="\${SHELL} $am_aux_dir/install-sh"
3151 esac
3152 fi
3153
3154 # Installed binaries are usually stripped using 'strip' when the user
3155 # run "make install-strip". However 'strip' might not be the right
3156 # tool to use in cross-compilation environments, therefore Automake
3157 # will honor the 'STRIP' environment variable to overrule this program.
3158 if test "$cross_compiling" != no; then
3159 if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}strip; ac_word=$2
3162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 printf %s "checking for $ac_word... " >&6; }
3164 if test ${ac_cv_prog_STRIP+y}
3165 then :
3166 printf %s "(cached) " >&6
3167 else $as_nop
3168 if test -n "$STRIP"; then
3169 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 case $as_dir in #(((
3176 '') as_dir=./ ;;
3177 */) ;;
3178 *) as_dir=$as_dir/ ;;
3179 esac
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3184 break 2
3185 fi
3186 done
3187 done
3188 IFS=$as_save_IFS
3189
3190 fi
3191 fi
3192 STRIP=$ac_cv_prog_STRIP
3193 if test -n "$STRIP"; then
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3195 printf "%s\n" "$STRIP" >&6; }
3196 else
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 printf "%s\n" "no" >&6; }
3199 fi
3200
3201
3202 fi
3203 if test -z "$ac_cv_prog_STRIP"; then
3204 ac_ct_STRIP=$STRIP
3205 # Extract the first word of "strip", so it can be a program name with args.
3206 set dummy strip; ac_word=$2
3207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 printf %s "checking for $ac_word... " >&6; }
3209 if test ${ac_cv_prog_ac_ct_STRIP+y}
3210 then :
3211 printf %s "(cached) " >&6
3212 else $as_nop
3213 if test -n "$ac_ct_STRIP"; then
3214 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219 IFS=$as_save_IFS
3220 case $as_dir in #(((
3221 '') as_dir=./ ;;
3222 */) ;;
3223 *) as_dir=$as_dir/ ;;
3224 esac
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3227 ac_cv_prog_ac_ct_STRIP="strip"
3228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3229 break 2
3230 fi
3231 done
3232 done
3233 IFS=$as_save_IFS
3234
3235 fi
3236 fi
3237 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3238 if test -n "$ac_ct_STRIP"; then
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3240 printf "%s\n" "$ac_ct_STRIP" >&6; }
3241 else
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 printf "%s\n" "no" >&6; }
3244 fi
3245
3246 if test "x$ac_ct_STRIP" = x; then
3247 STRIP=":"
3248 else
3249 case $cross_compiling:$ac_tool_warned in
3250 yes:)
3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 ac_tool_warned=yes ;;
3254 esac
3255 STRIP=$ac_ct_STRIP
3256 fi
3257 else
3258 STRIP="$ac_cv_prog_STRIP"
3259 fi
3260
3261 fi
3262 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3263
3264
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3266 printf %s "checking for a race-free mkdir -p... " >&6; }
3267 if test -z "$MKDIR_P"; then
3268 if test ${ac_cv_path_mkdir+y}
3269 then :
3270 printf %s "(cached) " >&6
3271 else $as_nop
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3274 do
3275 IFS=$as_save_IFS
3276 case $as_dir in #(((
3277 '') as_dir=./ ;;
3278 */) ;;
3279 *) as_dir=$as_dir/ ;;
3280 esac
3281 for ac_prog in mkdir gmkdir; do
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3284 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3285 'mkdir ('*'coreutils) '* | \
3286 'BusyBox '* | \
3287 'mkdir (fileutils) '4.1*)
3288 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3289 break 3;;
3290 esac
3291 done
3292 done
3293 done
3294 IFS=$as_save_IFS
3295
3296 fi
3297
3298 test -d ./--version && rmdir ./--version
3299 if test ${ac_cv_path_mkdir+y}; then
3300 MKDIR_P="$ac_cv_path_mkdir -p"
3301 else
3302 # As a last resort, use the slow shell script. Don't cache a
3303 # value for MKDIR_P within a source directory, because that will
3304 # break other packages using the cache if that directory is
3305 # removed, or if the value is a relative name.
3306 MKDIR_P="$ac_install_sh -d"
3307 fi
3308 fi
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3310 printf "%s\n" "$MKDIR_P" >&6; }
3311
3312 for ac_prog in gawk mawk nawk awk
3313 do
3314 # Extract the first word of "$ac_prog", so it can be a program name with args.
3315 set dummy $ac_prog; ac_word=$2
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 printf %s "checking for $ac_word... " >&6; }
3318 if test ${ac_cv_prog_AWK+y}
3319 then :
3320 printf %s "(cached) " >&6
3321 else $as_nop
3322 if test -n "$AWK"; then
3323 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328 IFS=$as_save_IFS
3329 case $as_dir in #(((
3330 '') as_dir=./ ;;
3331 */) ;;
3332 *) as_dir=$as_dir/ ;;
3333 esac
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3336 ac_cv_prog_AWK="$ac_prog"
3337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3338 break 2
3339 fi
3340 done
3341 done
3342 IFS=$as_save_IFS
3343
3344 fi
3345 fi
3346 AWK=$ac_cv_prog_AWK
3347 if test -n "$AWK"; then
3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3349 printf "%s\n" "$AWK" >&6; }
3350 else
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 printf "%s\n" "no" >&6; }
3353 fi
3354
3355
3356 test -n "$AWK" && break
3357 done
3358
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3360 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3361 set x ${MAKE-make}
3362 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3363 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3364 then :
3365 printf %s "(cached) " >&6
3366 else $as_nop
3367 cat >conftest.make <<\_ACEOF
3368 SHELL = /bin/sh
3369 all:
3370 @echo '@@@%%%=$(MAKE)=@@@%%%'
3371 _ACEOF
3372 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3373 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3374 *@@@%%%=?*=@@@%%%*)
3375 eval ac_cv_prog_make_${ac_make}_set=yes;;
3376 *)
3377 eval ac_cv_prog_make_${ac_make}_set=no;;
3378 esac
3379 rm -f conftest.make
3380 fi
3381 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383 printf "%s\n" "yes" >&6; }
3384 SET_MAKE=
3385 else
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 printf "%s\n" "no" >&6; }
3388 SET_MAKE="MAKE=${MAKE-make}"
3389 fi
3390
3391 rm -rf .tst 2>/dev/null
3392 mkdir .tst 2>/dev/null
3393 if test -d .tst; then
3394 am__leading_dot=.
3395 else
3396 am__leading_dot=_
3397 fi
3398 rmdir .tst 2>/dev/null
3399
3400 # Check whether --enable-silent-rules was given.
3401 if test ${enable_silent_rules+y}
3402 then :
3403 enableval=$enable_silent_rules;
3404 fi
3405
3406 case $enable_silent_rules in # (((
3407 yes) AM_DEFAULT_VERBOSITY=0;;
3408 no) AM_DEFAULT_VERBOSITY=1;;
3409 *) AM_DEFAULT_VERBOSITY=1;;
3410 esac
3411 am_make=${MAKE-make}
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3413 printf %s "checking whether $am_make supports nested variables... " >&6; }
3414 if test ${am_cv_make_support_nested_variables+y}
3415 then :
3416 printf %s "(cached) " >&6
3417 else $as_nop
3418 if printf "%s\n" 'TRUE=$(BAR$(V))
3419 BAR0=false
3420 BAR1=true
3421 V=1
3422 am__doit:
3423 @$(TRUE)
3424 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3425 am_cv_make_support_nested_variables=yes
3426 else
3427 am_cv_make_support_nested_variables=no
3428 fi
3429 fi
3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3431 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3432 if test $am_cv_make_support_nested_variables = yes; then
3433 AM_V='$(V)'
3434 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3435 else
3436 AM_V=$AM_DEFAULT_VERBOSITY
3437 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3438 fi
3439 AM_BACKSLASH='\'
3440
3441 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3442 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3443 # is not polluted with repeated "-I."
3444 am__isrc=' -I$(srcdir)'
3445 # test to see if srcdir already configured
3446 if test -f $srcdir/config.status; then
3447 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3448 fi
3449 fi
3450
3451 # test whether we have cygpath
3452 if test -z "$CYGPATH_W"; then
3453 if (cygpath --version) >/dev/null 2>/dev/null; then
3454 CYGPATH_W='cygpath -w'
3455 else
3456 CYGPATH_W=echo
3457 fi
3458 fi
3459
3460
3461 # Define the identity of the package.
3462 PACKAGE='gawk-extensions'
3463 VERSION='5.3.2'
3464
3465
3466 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3467
3468
3469 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3470
3471 # Some tools Automake needs.
3472
3473 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3474
3475
3476 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3477
3478
3479 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3480
3481
3482 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3483
3484
3485 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3486
3487 # For better backward compatibility. To be removed once Automake 1.9.x
3488 # dies out for good. For more background, see:
3489 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3490 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3491 mkdir_p='$(MKDIR_P)'
3492
3493 # We need awk for the "check" target (and possibly the TAP driver). The
3494 # system "awk" is bad on some platforms.
3495 # Always define AMTAR for backward compatibility. Yes, it's still used
3496 # in the wild :-( We should find a proper way to deprecate it ...
3497 AMTAR='$${TAR-tar}'
3498
3499
3500 # We'll loop over all known methods to create a tar archive until one works.
3501 _am_tools='gnutar pax cpio none'
3502
3503 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3504
3505
3506
3507
3508
3509 # Variables for tags utilities; see am/tags.am
3510 if test -z "$CTAGS"; then
3511 CTAGS=ctags
3512 fi
3513
3514 if test -z "$ETAGS"; then
3515 ETAGS=etags
3516 fi
3517
3518 if test -z "$CSCOPE"; then
3519 CSCOPE=cscope
3520 fi
3521
3522
3523
3524 # POSIX will say in a future version that running "rm -f" with no argument
3525 # is OK; and we want to be able to make that assumption in our Makefile
3526 # recipes. So use an aggressive probe to check that the usage we want is
3527 # actually supported "in the wild" to an acceptable degree.
3528 # See automake bug#10828.
3529 # To make any issue more visible, cause the running configure to be aborted
3530 # by default if the 'rm' program in use doesn't match our expectations; the
3531 # user can still override this though.
3532 if rm -f && rm -fr && rm -rf; then : OK; else
3533 cat >&2 <<'END'
3534 Oops!
3535
3536 Your 'rm' program seems unable to run without file operands specified
3537 on the command line, even when the '-f' option is present. This is contrary
3538 to the behaviour of most rm programs out there, and not conforming with
3539 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3540
3541 Please tell [email protected] about your system, including the value
3542 of your $PATH and any error possibly output before this message. This
3543 can help us improve future automake versions.
3544
3545 END
3546 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3547 echo 'Configuration will proceed anyway, since you have set the' >&2
3548 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3549 echo >&2
3550 else
3551 cat >&2 <<'END'
3552 Aborting the configuration process, to ensure you take notice of the issue.
3553
3554 You can download and install GNU coreutils to get an 'rm' implementation
3555 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3556
3557 If you want to complete the configuration process using your problematic
3558 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3559 to "yes", and re-run configure.
3560
3561 END
3562 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3563 fi
3564 fi
3565
3566
3567 SKIP_PERSIST_MALLOC=no
3568 # Check whether --enable-pma was given.
3569 if test ${enable_pma+y}
3570 then :
3571 enableval=$enable_pma; if test "$enableval" = no
3572 then
3573 SKIP_PERSIST_MALLOC=yes
3574 fi
3575
3576 fi
3577
3578
3579
3580
3581 # Make sure we can run config.sub.
3582 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3583 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3584
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3586 printf %s "checking build system type... " >&6; }
3587 if test ${ac_cv_build+y}
3588 then :
3589 printf %s "(cached) " >&6
3590 else $as_nop
3591 ac_build_alias=$build_alias
3592 test "x$ac_build_alias" = x &&
3593 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3594 test "x$ac_build_alias" = x &&
3595 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3596 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3597 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3598
3599 fi
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3601 printf "%s\n" "$ac_cv_build" >&6; }
3602 case $ac_cv_build in
3603 *-*-*) ;;
3604 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3605 esac
3606 build=$ac_cv_build
3607 ac_save_IFS=$IFS; IFS='-'
3608 set x $ac_cv_build
3609 shift
3610 build_cpu=$1
3611 build_vendor=$2
3612 shift; shift
3613 # Remember, the first character of IFS is used to create $*,
3614 # except with old shells:
3615 build_os=$*
3616 IFS=$ac_save_IFS
3617 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3618
3619
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3621 printf %s "checking host system type... " >&6; }
3622 if test ${ac_cv_host+y}
3623 then :
3624 printf %s "(cached) " >&6
3625 else $as_nop
3626 if test "x$host_alias" = x; then
3627 ac_cv_host=$ac_cv_build
3628 else
3629 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3630 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3631 fi
3632
3633 fi
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3635 printf "%s\n" "$ac_cv_host" >&6; }
3636 case $ac_cv_host in
3637 *-*-*) ;;
3638 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3639 esac
3640 host=$ac_cv_host
3641 ac_save_IFS=$IFS; IFS='-'
3642 set x $ac_cv_host
3643 shift
3644 host_cpu=$1
3645 host_vendor=$2
3646 shift; shift
3647 # Remember, the first character of IFS is used to create $*,
3648 # except with old shells:
3649 host_os=$*
3650 IFS=$ac_save_IFS
3651 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3652
3653
3654 ax_tt_header_is_printed=:
3655 case x$ax_disable_triplet_transform/`uname` in #(
3656 x/MSYS*) :
3657
3658
3659 if test x$ac_cv_build != x; then
3660 ax_tt_var=`echo $ac_cv_build | sed 's|-msys$|-cygwin|'`
3661 if test x$ax_tt_var = x; then
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: sed script: build triplet conversion \`$ac_cv_build' with sed script \`s|-msys$|-cygwin|'failed." >&5
3663 printf "%s\n" "$as_me: sed script: build triplet conversion \`$ac_cv_build' with sed script \`s|-msys$|-cygwin|'failed." >&6;}
3664 elif test x$ax_tt_var != x`$SHELL "$ac_aux_dir/config.sub" $ax_tt_var`; then
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \`config.sub' test: build triplet conversion of \`$ac_cv_build' produced invalid triplet \`$ax_tt_var'." >&5
3666 printf "%s\n" "$as_me: \`config.sub' test: build triplet conversion of \`$ac_cv_build' produced invalid triplet \`$ax_tt_var'." >&6;}
3667 elif test x$ax_tt_var != x$ac_cv_build; then
3668 if test x$ax_tt_header_is_printed != xyes; then
3669 ax_tt_header_is_printed=yes
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Triplet conversion on MSYS platform:" >&5
3671 printf "%s\n" "$as_me: Triplet conversion on MSYS platform:" >&6;}
3672 fi
3673 gawk_extensions_cv_build_orig=$ac_cv_build
3674 ac_cv_build=$ax_tt_var
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: build: replacing $gawk_extensions_cv_build_orig -> $ac_cv_build" >&5
3676 printf "%s\n" "$as_me: build: replacing $gawk_extensions_cv_build_orig -> $ac_cv_build" >&6;}
3677 ax_tt_var=
3678 case $ac_cv_build in
3679 *-*-*) ;;
3680 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3681 esac
3682 build=$ac_cv_build
3683 ac_save_IFS=$IFS; IFS='-'
3684 set x $ac_cv_build
3685 shift
3686 build_cpu=$1
3687 build_vendor=$2
3688 shift; shift
3689 # Remember, the first character of IFS is used to create $*,
3690 # except with old shells:
3691 build_os=$*
3692 IFS=$ac_save_IFS
3693 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3694
3695 fi
3696 ax_tt_var=
3697 fi
3698
3699
3700
3701 if test x$ac_cv_host != x; then
3702 ax_tt_var=`echo $ac_cv_host | sed 's|-msys$|-cygwin|'`
3703 if test x$ax_tt_var = x; then
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: sed script: host triplet conversion \`$ac_cv_host' with sed script \`s|-msys$|-cygwin|'failed." >&5
3705 printf "%s\n" "$as_me: sed script: host triplet conversion \`$ac_cv_host' with sed script \`s|-msys$|-cygwin|'failed." >&6;}
3706 elif test x$ax_tt_var != x`$SHELL "$ac_aux_dir/config.sub" $ax_tt_var`; then
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \`config.sub' test: host triplet conversion of \`$ac_cv_host' produced invalid triplet \`$ax_tt_var'." >&5
3708 printf "%s\n" "$as_me: \`config.sub' test: host triplet conversion of \`$ac_cv_host' produced invalid triplet \`$ax_tt_var'." >&6;}
3709 elif test x$ax_tt_var != x$ac_cv_host; then
3710 if test x$ax_tt_header_is_printed != xyes; then
3711 ax_tt_header_is_printed=yes
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Triplet conversion on MSYS platform:" >&5
3713 printf "%s\n" "$as_me: Triplet conversion on MSYS platform:" >&6;}
3714 fi
3715 gawk_extensions_cv_host_orig=$ac_cv_host
3716 ac_cv_host=$ax_tt_var
3717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: host: replacing $gawk_extensions_cv_host_orig -> $ac_cv_host" >&5
3718 printf "%s\n" "$as_me: host: replacing $gawk_extensions_cv_host_orig -> $ac_cv_host" >&6;}
3719 ax_tt_var=
3720 case $ac_cv_host in
3721 *-*-*) ;;
3722 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3723 esac
3724 host=$ac_cv_host
3725 ac_save_IFS=$IFS; IFS='-'
3726 set x $ac_cv_host
3727 shift
3728 host_cpu=$1
3729 host_vendor=$2
3730 shift; shift
3731 # Remember, the first character of IFS is used to create $*,
3732 # except with old shells:
3733 host_os=$*
3734 IFS=$ac_save_IFS
3735 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3736
3737 fi
3738 ax_tt_var=
3739 fi
3740
3741
3742 ;; #(
3743 *) :
3744 ;;
3745 esac
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757 DEPDIR="${am__leading_dot}deps"
3758
3759 ac_config_commands="$ac_config_commands depfiles"
3760
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3762 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3763 cat > confinc.mk << 'END'
3764 am__doit:
3765 @echo this is the am__doit target >confinc.out
3766 .PHONY: am__doit
3767 END
3768 am__include="#"
3769 am__quote=
3770 # BSD make does it like this.
3771 echo '.include "confinc.mk" # ignored' > confmf.BSD
3772 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3773 echo 'include confinc.mk # ignored' > confmf.GNU
3774 _am_result=no
3775 for s in GNU BSD; do
3776 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3777 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }
3781 case $?:`cat confinc.out 2>/dev/null` in #(
3782 '0:this is the am__doit target') :
3783 case $s in #(
3784 BSD) :
3785 am__include='.include' am__quote='"' ;; #(
3786 *) :
3787 am__include='include' am__quote='' ;;
3788 esac ;; #(
3789 *) :
3790 ;;
3791 esac
3792 if test "$am__include" != "#"; then
3793 _am_result="yes ($s style)"
3794 break
3795 fi
3796 done
3797 rm -f confinc.* confmf.*
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3799 printf "%s\n" "${_am_result}" >&6; }
3800
3801 # Check whether --enable-dependency-tracking was given.
3802 if test ${enable_dependency_tracking+y}
3803 then :
3804 enableval=$enable_dependency_tracking;
3805 fi
3806
3807 if test "x$enable_dependency_tracking" != xno; then
3808 am_depcomp="$ac_aux_dir/depcomp"
3809 AMDEPBACKSLASH='\'
3810 am__nodep='_no'
3811 fi
3812 if test "x$enable_dependency_tracking" != xno; then
3813 AMDEP_TRUE=
3814 AMDEP_FALSE='#'
3815 else
3816 AMDEP_TRUE='#'
3817 AMDEP_FALSE=
3818 fi
3819
3820
3821 ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 if test -n "$ac_tool_prefix"; then
3827 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3828 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 printf %s "checking for $ac_word... " >&6; }
3831 if test ${ac_cv_prog_CC+y}
3832 then :
3833 printf %s "(cached) " >&6
3834 else $as_nop
3835 if test -n "$CC"; then
3836 ac_cv_prog_CC="$CC" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3840 do
3841 IFS=$as_save_IFS
3842 case $as_dir in #(((
3843 '') as_dir=./ ;;
3844 */) ;;
3845 *) as_dir=$as_dir/ ;;
3846 esac
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3849 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3851 break 2
3852 fi
3853 done
3854 done
3855 IFS=$as_save_IFS
3856
3857 fi
3858 fi
3859 CC=$ac_cv_prog_CC
3860 if test -n "$CC"; then
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3862 printf "%s\n" "$CC" >&6; }
3863 else
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 printf "%s\n" "no" >&6; }
3866 fi
3867
3868
3869 fi
3870 if test -z "$ac_cv_prog_CC"; then
3871 ac_ct_CC=$CC
3872 # Extract the first word of "gcc", so it can be a program name with args.
3873 set dummy gcc; ac_word=$2
3874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 printf %s "checking for $ac_word... " >&6; }
3876 if test ${ac_cv_prog_ac_ct_CC+y}
3877 then :
3878 printf %s "(cached) " >&6
3879 else $as_nop
3880 if test -n "$ac_ct_CC"; then
3881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886 IFS=$as_save_IFS
3887 case $as_dir in #(((
3888 '') as_dir=./ ;;
3889 */) ;;
3890 *) as_dir=$as_dir/ ;;
3891 esac
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3894 ac_cv_prog_ac_ct_CC="gcc"
3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3896 break 2
3897 fi
3898 done
3899 done
3900 IFS=$as_save_IFS
3901
3902 fi
3903 fi
3904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3905 if test -n "$ac_ct_CC"; then
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3907 printf "%s\n" "$ac_ct_CC" >&6; }
3908 else
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910 printf "%s\n" "no" >&6; }
3911 fi
3912
3913 if test "x$ac_ct_CC" = x; then
3914 CC=""
3915 else
3916 case $cross_compiling:$ac_tool_warned in
3917 yes:)
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3919 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3920 ac_tool_warned=yes ;;
3921 esac
3922 CC=$ac_ct_CC
3923 fi
3924 else
3925 CC="$ac_cv_prog_CC"
3926 fi
3927
3928 if test -z "$CC"; then
3929 if test -n "$ac_tool_prefix"; then
3930 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3931 set dummy ${ac_tool_prefix}cc; ac_word=$2
3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933 printf %s "checking for $ac_word... " >&6; }
3934 if test ${ac_cv_prog_CC+y}
3935 then :
3936 printf %s "(cached) " >&6
3937 else $as_nop
3938 if test -n "$CC"; then
3939 ac_cv_prog_CC="$CC" # Let the user override the test.
3940 else
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944 IFS=$as_save_IFS
3945 case $as_dir in #(((
3946 '') as_dir=./ ;;
3947 */) ;;
3948 *) as_dir=$as_dir/ ;;
3949 esac
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_CC="${ac_tool_prefix}cc"
3953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3954 break 2
3955 fi
3956 done
3957 done
3958 IFS=$as_save_IFS
3959
3960 fi
3961 fi
3962 CC=$ac_cv_prog_CC
3963 if test -n "$CC"; then
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 printf "%s\n" "$CC" >&6; }
3966 else
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 printf "%s\n" "no" >&6; }
3969 fi
3970
3971
3972 fi
3973 fi
3974 if test -z "$CC"; then
3975 # Extract the first word of "cc", so it can be a program name with args.
3976 set dummy cc; ac_word=$2
3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 printf %s "checking for $ac_word... " >&6; }
3979 if test ${ac_cv_prog_CC+y}
3980 then :
3981 printf %s "(cached) " >&6
3982 else $as_nop
3983 if test -n "$CC"; then
3984 ac_cv_prog_CC="$CC" # Let the user override the test.
3985 else
3986 ac_prog_rejected=no
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3989 do
3990 IFS=$as_save_IFS
3991 case $as_dir in #(((
3992 '') as_dir=./ ;;
3993 */) ;;
3994 *) as_dir=$as_dir/ ;;
3995 esac
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3998 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3999 ac_prog_rejected=yes
4000 continue
4001 fi
4002 ac_cv_prog_CC="cc"
4003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4004 break 2
4005 fi
4006 done
4007 done
4008 IFS=$as_save_IFS
4009
4010 if test $ac_prog_rejected = yes; then
4011 # We found a bogon in the path, so make sure we never use it.
4012 set dummy $ac_cv_prog_CC
4013 shift
4014 if test $# != 0; then
4015 # We chose a different compiler from the bogus one.
4016 # However, it has the same basename, so the bogon will be chosen
4017 # first if we set CC to just the basename; use the full file name.
4018 shift
4019 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4020 fi
4021 fi
4022 fi
4023 fi
4024 CC=$ac_cv_prog_CC
4025 if test -n "$CC"; then
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027 printf "%s\n" "$CC" >&6; }
4028 else
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 printf "%s\n" "no" >&6; }
4031 fi
4032
4033
4034 fi
4035 if test -z "$CC"; then
4036 if test -n "$ac_tool_prefix"; then
4037 for ac_prog in cl.exe
4038 do
4039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042 printf %s "checking for $ac_word... " >&6; }
4043 if test ${ac_cv_prog_CC+y}
4044 then :
4045 printf %s "(cached) " >&6
4046 else $as_nop
4047 if test -n "$CC"; then
4048 ac_cv_prog_CC="$CC" # Let the user override the test.
4049 else
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053 IFS=$as_save_IFS
4054 case $as_dir in #(((
4055 '') as_dir=./ ;;
4056 */) ;;
4057 *) as_dir=$as_dir/ ;;
4058 esac
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4063 break 2
4064 fi
4065 done
4066 done
4067 IFS=$as_save_IFS
4068
4069 fi
4070 fi
4071 CC=$ac_cv_prog_CC
4072 if test -n "$CC"; then
4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4074 printf "%s\n" "$CC" >&6; }
4075 else
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 printf "%s\n" "no" >&6; }
4078 fi
4079
4080
4081 test -n "$CC" && break
4082 done
4083 fi
4084 if test -z "$CC"; then
4085 ac_ct_CC=$CC
4086 for ac_prog in cl.exe
4087 do
4088 # Extract the first word of "$ac_prog", so it can be a program name with args.
4089 set dummy $ac_prog; ac_word=$2
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091 printf %s "checking for $ac_word... " >&6; }
4092 if test ${ac_cv_prog_ac_ct_CC+y}
4093 then :
4094 printf %s "(cached) " >&6
4095 else $as_nop
4096 if test -n "$ac_ct_CC"; then
4097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102 IFS=$as_save_IFS
4103 case $as_dir in #(((
4104 '') as_dir=./ ;;
4105 */) ;;
4106 *) as_dir=$as_dir/ ;;
4107 esac
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4110 ac_cv_prog_ac_ct_CC="$ac_prog"
4111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4112 break 2
4113 fi
4114 done
4115 done
4116 IFS=$as_save_IFS
4117
4118 fi
4119 fi
4120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4121 if test -n "$ac_ct_CC"; then
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4123 printf "%s\n" "$ac_ct_CC" >&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 test -n "$ac_ct_CC" && break
4131 done
4132
4133 if test "x$ac_ct_CC" = x; then
4134 CC=""
4135 else
4136 case $cross_compiling:$ac_tool_warned in
4137 yes:)
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4139 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4140 ac_tool_warned=yes ;;
4141 esac
4142 CC=$ac_ct_CC
4143 fi
4144 fi
4145
4146 fi
4147 if test -z "$CC"; then
4148 if test -n "$ac_tool_prefix"; then
4149 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4150 set dummy ${ac_tool_prefix}clang; ac_word=$2
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 printf %s "checking for $ac_word... " >&6; }
4153 if test ${ac_cv_prog_CC+y}
4154 then :
4155 printf %s "(cached) " >&6
4156 else $as_nop
4157 if test -n "$CC"; then
4158 ac_cv_prog_CC="$CC" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163 IFS=$as_save_IFS
4164 case $as_dir in #(((
4165 '') as_dir=./ ;;
4166 */) ;;
4167 *) as_dir=$as_dir/ ;;
4168 esac
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4171 ac_cv_prog_CC="${ac_tool_prefix}clang"
4172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4173 break 2
4174 fi
4175 done
4176 done
4177 IFS=$as_save_IFS
4178
4179 fi
4180 fi
4181 CC=$ac_cv_prog_CC
4182 if test -n "$CC"; then
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4184 printf "%s\n" "$CC" >&6; }
4185 else
4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 printf "%s\n" "no" >&6; }
4188 fi
4189
4190
4191 fi
4192 if test -z "$ac_cv_prog_CC"; then
4193 ac_ct_CC=$CC
4194 # Extract the first word of "clang", so it can be a program name with args.
4195 set dummy clang; ac_word=$2
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 printf %s "checking for $ac_word... " >&6; }
4198 if test ${ac_cv_prog_ac_ct_CC+y}
4199 then :
4200 printf %s "(cached) " >&6
4201 else $as_nop
4202 if test -n "$ac_ct_CC"; then
4203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208 IFS=$as_save_IFS
4209 case $as_dir in #(((
4210 '') as_dir=./ ;;
4211 */) ;;
4212 *) as_dir=$as_dir/ ;;
4213 esac
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4216 ac_cv_prog_ac_ct_CC="clang"
4217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4218 break 2
4219 fi
4220 done
4221 done
4222 IFS=$as_save_IFS
4223
4224 fi
4225 fi
4226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4227 if test -n "$ac_ct_CC"; then
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4229 printf "%s\n" "$ac_ct_CC" >&6; }
4230 else
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 printf "%s\n" "no" >&6; }
4233 fi
4234
4235 if test "x$ac_ct_CC" = x; then
4236 CC=""
4237 else
4238 case $cross_compiling:$ac_tool_warned in
4239 yes:)
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4241 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4242 ac_tool_warned=yes ;;
4243 esac
4244 CC=$ac_ct_CC
4245 fi
4246 else
4247 CC="$ac_cv_prog_CC"
4248 fi
4249
4250 fi
4251
4252
4253 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4254 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4255 as_fn_error $? "no acceptable C compiler found in \$PATH
4256 See \`config.log' for more details" "$LINENO" 5; }
4257
4258 # Provide some information about the compiler.
4259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4260 set X $ac_compile
4261 ac_compiler=$2
4262 for ac_option in --version -v -V -qversion -version; do
4263 { { ac_try="$ac_compiler $ac_option >&5"
4264 case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267 esac
4268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269 printf "%s\n" "$ac_try_echo"; } >&5
4270 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4271 ac_status=$?
4272 if test -s conftest.err; then
4273 sed '10a\
4274 ... rest of stderr output deleted ...
4275 10q' conftest.err >conftest.er1
4276 cat conftest.er1 >&5
4277 fi
4278 rm -f conftest.er1 conftest.err
4279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4280 test $ac_status = 0; }
4281 done
4282
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285
4286 int
4287 main (void)
4288 {
4289
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 ac_clean_files_save=$ac_clean_files
4295 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4296 # Try to create an executable without -o first, disregard a.out.
4297 # It will help us diagnose broken compilers, and finding out an intuition
4298 # of exeext.
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4300 printf %s "checking whether the C compiler works... " >&6; }
4301 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4302
4303 # The possible output files:
4304 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4305
4306 ac_rmfiles=
4307 for ac_file in $ac_files
4308 do
4309 case $ac_file in
4310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4311 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4312 esac
4313 done
4314 rm -f $ac_rmfiles
4315
4316 if { { ac_try="$ac_link_default"
4317 case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320 esac
4321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4322 printf "%s\n" "$ac_try_echo"; } >&5
4323 (eval "$ac_link_default") 2>&5
4324 ac_status=$?
4325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; }
4327 then :
4328 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4329 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4330 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4331 # so that the user can short-circuit this test for compilers unknown to
4332 # Autoconf.
4333 for ac_file in $ac_files ''
4334 do
4335 test -f "$ac_file" || continue
4336 case $ac_file in
4337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4338 ;;
4339 [ab].out )
4340 # We found the default executable, but exeext='' is most
4341 # certainly right.
4342 break;;
4343 *.* )
4344 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4345 then :; else
4346 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4347 fi
4348 # We set ac_cv_exeext here because the later test for it is not
4349 # safe: cross compilers may not add the suffix if given an `-o'
4350 # argument, so we may need to know it at that point already.
4351 # Even if this section looks crufty: it has the advantage of
4352 # actually working.
4353 break;;
4354 * )
4355 break;;
4356 esac
4357 done
4358 test "$ac_cv_exeext" = no && ac_cv_exeext=
4359
4360 else $as_nop
4361 ac_file=''
4362 fi
4363 if test -z "$ac_file"
4364 then :
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 printf "%s\n" "no" >&6; }
4367 printf "%s\n" "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4372 as_fn_error 77 "C compiler cannot create executables
4373 See \`config.log' for more details" "$LINENO" 5; }
4374 else $as_nop
4375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4376 printf "%s\n" "yes" >&6; }
4377 fi
4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4379 printf %s "checking for C compiler default output file name... " >&6; }
4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4381 printf "%s\n" "$ac_file" >&6; }
4382 ac_exeext=$ac_cv_exeext
4383
4384 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4385 ac_clean_files=$ac_clean_files_save
4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4387 printf %s "checking for suffix of executables... " >&6; }
4388 if { { ac_try="$ac_link"
4389 case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4394 printf "%s\n" "$ac_try_echo"; } >&5
4395 (eval "$ac_link") 2>&5
4396 ac_status=$?
4397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398 test $ac_status = 0; }
4399 then :
4400 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4401 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4402 # work properly (i.e., refer to `conftest.exe'), while it won't with
4403 # `rm'.
4404 for ac_file in conftest.exe conftest conftest.*; do
4405 test -f "$ac_file" || continue
4406 case $ac_file in
4407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4408 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4409 break;;
4410 * ) break;;
4411 esac
4412 done
4413 else $as_nop
4414 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4416 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4417 See \`config.log' for more details" "$LINENO" 5; }
4418 fi
4419 rm -f conftest conftest$ac_cv_exeext
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4421 printf "%s\n" "$ac_cv_exeext" >&6; }
4422
4423 rm -f conftest.$ac_ext
4424 EXEEXT=$ac_cv_exeext
4425 ac_exeext=$EXEEXT
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #include <stdio.h>
4429 int
4430 main (void)
4431 {
4432 FILE *f = fopen ("conftest.out", "w");
4433 return ferror (f) || fclose (f) != 0;
4434
4435 ;
4436 return 0;
4437 }
4438 _ACEOF
4439 ac_clean_files="$ac_clean_files conftest.out"
4440 # Check that the compiler produces executables we can run. If not, either
4441 # the compiler is broken, or we cross compile.
4442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4443 printf %s "checking whether we are cross compiling... " >&6; }
4444 if test "$cross_compiling" != yes; then
4445 { { ac_try="$ac_link"
4446 case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4449 esac
4450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4451 printf "%s\n" "$ac_try_echo"; } >&5
4452 (eval "$ac_link") 2>&5
4453 ac_status=$?
4454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4455 test $ac_status = 0; }
4456 if { ac_try='./conftest$ac_cv_exeext'
4457 { { case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460 esac
4461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462 printf "%s\n" "$ac_try_echo"; } >&5
4463 (eval "$ac_try") 2>&5
4464 ac_status=$?
4465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466 test $ac_status = 0; }; }; then
4467 cross_compiling=no
4468 else
4469 if test "$cross_compiling" = maybe; then
4470 cross_compiling=yes
4471 else
4472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4474 as_fn_error 77 "cannot run C compiled programs.
4475 If you meant to cross compile, use \`--host'.
4476 See \`config.log' for more details" "$LINENO" 5; }
4477 fi
4478 fi
4479 fi
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4481 printf "%s\n" "$cross_compiling" >&6; }
4482
4483 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4484 ac_clean_files=$ac_clean_files_save
4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4486 printf %s "checking for suffix of object files... " >&6; }
4487 if test ${ac_cv_objext+y}
4488 then :
4489 printf %s "(cached) " >&6
4490 else $as_nop
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493
4494 int
4495 main (void)
4496 {
4497
4498 ;
4499 return 0;
4500 }
4501 _ACEOF
4502 rm -f conftest.o conftest.obj
4503 if { { ac_try="$ac_compile"
4504 case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507 esac
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 printf "%s\n" "$ac_try_echo"; } >&5
4510 (eval "$ac_compile") 2>&5
4511 ac_status=$?
4512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }
4514 then :
4515 for ac_file in conftest.o conftest.obj conftest.*; do
4516 test -f "$ac_file" || continue;
4517 case $ac_file in
4518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4519 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4520 break;;
4521 esac
4522 done
4523 else $as_nop
4524 printf "%s\n" "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4526
4527 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4528 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4529 as_fn_error $? "cannot compute suffix of object files: cannot compile
4530 See \`config.log' for more details" "$LINENO" 5; }
4531 fi
4532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4533 fi
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4535 printf "%s\n" "$ac_cv_objext" >&6; }
4536 OBJEXT=$ac_cv_objext
4537 ac_objext=$OBJEXT
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4539 printf %s "checking whether the compiler supports GNU C... " >&6; }
4540 if test ${ac_cv_c_compiler_gnu+y}
4541 then :
4542 printf %s "(cached) " >&6
4543 else $as_nop
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546
4547 int
4548 main (void)
4549 {
4550 #ifndef __GNUC__
4551 choke me
4552 #endif
4553
4554 ;
4555 return 0;
4556 }
4557 _ACEOF
4558 if ac_fn_c_try_compile "$LINENO"
4559 then :
4560 ac_compiler_gnu=yes
4561 else $as_nop
4562 ac_compiler_gnu=no
4563 fi
4564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4565 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4566
4567 fi
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4569 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4571
4572 if test $ac_compiler_gnu = yes; then
4573 GCC=yes
4574 else
4575 GCC=
4576 fi
4577 ac_test_CFLAGS=${CFLAGS+y}
4578 ac_save_CFLAGS=$CFLAGS
4579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4580 printf %s "checking whether $CC accepts -g... " >&6; }
4581 if test ${ac_cv_prog_cc_g+y}
4582 then :
4583 printf %s "(cached) " >&6
4584 else $as_nop
4585 ac_save_c_werror_flag=$ac_c_werror_flag
4586 ac_c_werror_flag=yes
4587 ac_cv_prog_cc_g=no
4588 CFLAGS="-g"
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591
4592 int
4593 main (void)
4594 {
4595
4596 ;
4597 return 0;
4598 }
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"
4601 then :
4602 ac_cv_prog_cc_g=yes
4603 else $as_nop
4604 CFLAGS=""
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607
4608 int
4609 main (void)
4610 {
4611
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 if ac_fn_c_try_compile "$LINENO"
4617 then :
4618
4619 else $as_nop
4620 ac_c_werror_flag=$ac_save_c_werror_flag
4621 CFLAGS="-g"
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624
4625 int
4626 main (void)
4627 {
4628
4629 ;
4630 return 0;
4631 }
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"
4634 then :
4635 ac_cv_prog_cc_g=yes
4636 fi
4637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4638 fi
4639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4640 fi
4641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4642 ac_c_werror_flag=$ac_save_c_werror_flag
4643 fi
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4645 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4646 if test $ac_test_CFLAGS; then
4647 CFLAGS=$ac_save_CFLAGS
4648 elif test $ac_cv_prog_cc_g = yes; then
4649 if test "$GCC" = yes; then
4650 CFLAGS="-g -O2"
4651 else
4652 CFLAGS="-g"
4653 fi
4654 else
4655 if test "$GCC" = yes; then
4656 CFLAGS="-O2"
4657 else
4658 CFLAGS=
4659 fi
4660 fi
4661 ac_prog_cc_stdc=no
4662 if test x$ac_prog_cc_stdc = xno
4663 then :
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4665 printf %s "checking for $CC option to enable C11 features... " >&6; }
4666 if test ${ac_cv_prog_cc_c11+y}
4667 then :
4668 printf %s "(cached) " >&6
4669 else $as_nop
4670 ac_cv_prog_cc_c11=no
4671 ac_save_CC=$CC
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4674 $ac_c_conftest_c11_program
4675 _ACEOF
4676 for ac_arg in '' -std=gnu11
4677 do
4678 CC="$ac_save_CC $ac_arg"
4679 if ac_fn_c_try_compile "$LINENO"
4680 then :
4681 ac_cv_prog_cc_c11=$ac_arg
4682 fi
4683 rm -f core conftest.err conftest.$ac_objext conftest.beam
4684 test "x$ac_cv_prog_cc_c11" != "xno" && break
4685 done
4686 rm -f conftest.$ac_ext
4687 CC=$ac_save_CC
4688 fi
4689
4690 if test "x$ac_cv_prog_cc_c11" = xno
4691 then :
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4693 printf "%s\n" "unsupported" >&6; }
4694 else $as_nop
4695 if test "x$ac_cv_prog_cc_c11" = x
4696 then :
4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4698 printf "%s\n" "none needed" >&6; }
4699 else $as_nop
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4701 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4702 CC="$CC $ac_cv_prog_cc_c11"
4703 fi
4704 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4705 ac_prog_cc_stdc=c11
4706 fi
4707 fi
4708 if test x$ac_prog_cc_stdc = xno
4709 then :
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4711 printf %s "checking for $CC option to enable C99 features... " >&6; }
4712 if test ${ac_cv_prog_cc_c99+y}
4713 then :
4714 printf %s "(cached) " >&6
4715 else $as_nop
4716 ac_cv_prog_cc_c99=no
4717 ac_save_CC=$CC
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720 $ac_c_conftest_c99_program
4721 _ACEOF
4722 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4723 do
4724 CC="$ac_save_CC $ac_arg"
4725 if ac_fn_c_try_compile "$LINENO"
4726 then :
4727 ac_cv_prog_cc_c99=$ac_arg
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext conftest.beam
4730 test "x$ac_cv_prog_cc_c99" != "xno" && break
4731 done
4732 rm -f conftest.$ac_ext
4733 CC=$ac_save_CC
4734 fi
4735
4736 if test "x$ac_cv_prog_cc_c99" = xno
4737 then :
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4739 printf "%s\n" "unsupported" >&6; }
4740 else $as_nop
4741 if test "x$ac_cv_prog_cc_c99" = x
4742 then :
4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4744 printf "%s\n" "none needed" >&6; }
4745 else $as_nop
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4747 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4748 CC="$CC $ac_cv_prog_cc_c99"
4749 fi
4750 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4751 ac_prog_cc_stdc=c99
4752 fi
4753 fi
4754 if test x$ac_prog_cc_stdc = xno
4755 then :
4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4757 printf %s "checking for $CC option to enable C89 features... " >&6; }
4758 if test ${ac_cv_prog_cc_c89+y}
4759 then :
4760 printf %s "(cached) " >&6
4761 else $as_nop
4762 ac_cv_prog_cc_c89=no
4763 ac_save_CC=$CC
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766 $ac_c_conftest_c89_program
4767 _ACEOF
4768 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4769 do
4770 CC="$ac_save_CC $ac_arg"
4771 if ac_fn_c_try_compile "$LINENO"
4772 then :
4773 ac_cv_prog_cc_c89=$ac_arg
4774 fi
4775 rm -f core conftest.err conftest.$ac_objext conftest.beam
4776 test "x$ac_cv_prog_cc_c89" != "xno" && break
4777 done
4778 rm -f conftest.$ac_ext
4779 CC=$ac_save_CC
4780 fi
4781
4782 if test "x$ac_cv_prog_cc_c89" = xno
4783 then :
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4785 printf "%s\n" "unsupported" >&6; }
4786 else $as_nop
4787 if test "x$ac_cv_prog_cc_c89" = x
4788 then :
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4790 printf "%s\n" "none needed" >&6; }
4791 else $as_nop
4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4793 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4794 CC="$CC $ac_cv_prog_cc_c89"
4795 fi
4796 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4797 ac_prog_cc_stdc=c89
4798 fi
4799 fi
4800
4801 ac_ext=c
4802 ac_cpp='$CPP $CPPFLAGS'
4803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806
4807
4808 ac_ext=c
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4814 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4815 if test ${am_cv_prog_cc_c_o+y}
4816 then :
4817 printf %s "(cached) " >&6
4818 else $as_nop
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821
4822 int
4823 main (void)
4824 {
4825
4826 ;
4827 return 0;
4828 }
4829 _ACEOF
4830 # Make sure it works both with $CC and with simple cc.
4831 # Following AC_PROG_CC_C_O, we do the test twice because some
4832 # compilers refuse to overwrite an existing .o file with -o,
4833 # though they will create one.
4834 am_cv_prog_cc_c_o=yes
4835 for am_i in 1 2; do
4836 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4837 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } \
4841 && test -f conftest2.$ac_objext; then
4842 : OK
4843 else
4844 am_cv_prog_cc_c_o=no
4845 break
4846 fi
4847 done
4848 rm -f core conftest*
4849 unset am_i
4850 fi
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4852 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4853 if test "$am_cv_prog_cc_c_o" != yes; then
4854 # Losing compiler, so override with the script.
4855 # FIXME: It is wrong to rewrite CC.
4856 # But if we don't then we get into trouble of one sort or another.
4857 # A longer-term fix would be to have automake use am__CC in this case,
4858 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4859 CC="$am_aux_dir/compile $CC"
4860 fi
4861 ac_ext=c
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4866
4867
4868 depcc="$CC" am_compiler_list=
4869
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4871 printf %s "checking dependency style of $depcc... " >&6; }
4872 if test ${am_cv_CC_dependencies_compiler_type+y}
4873 then :
4874 printf %s "(cached) " >&6
4875 else $as_nop
4876 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4877 # We make a subdir and do the tests there. Otherwise we can end up
4878 # making bogus files that we don't know about and never remove. For
4879 # instance it was reported that on HP-UX the gcc test will end up
4880 # making a dummy file named 'D' -- because '-MD' means "put the output
4881 # in D".
4882 rm -rf conftest.dir
4883 mkdir conftest.dir
4884 # Copy depcomp to subdir because otherwise we won't find it if we're
4885 # using a relative directory.
4886 cp "$am_depcomp" conftest.dir
4887 cd conftest.dir
4888 # We will build objects and dependencies in a subdirectory because
4889 # it helps to detect inapplicable dependency modes. For instance
4890 # both Tru64's cc and ICC support -MD to output dependencies as a
4891 # side effect of compilation, but ICC will put the dependencies in
4892 # the current directory while Tru64 will put them in the object
4893 # directory.
4894 mkdir sub
4895
4896 am_cv_CC_dependencies_compiler_type=none
4897 if test "$am_compiler_list" = ""; then
4898 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4899 fi
4900 am__universal=false
4901 case " $depcc " in #(
4902 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4903 esac
4904
4905 for depmode in $am_compiler_list; do
4906 # Setup a source with many dependencies, because some compilers
4907 # like to wrap large dependency lists on column 80 (with \), and
4908 # we should not choose a depcomp mode which is confused by this.
4909 #
4910 # We need to recreate these files for each test, as the compiler may
4911 # overwrite some of them when testing with obscure command lines.
4912 # This happens at least with the AIX C compiler.
4913 : > sub/conftest.c
4914 for i in 1 2 3 4 5 6; do
4915 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4916 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4917 # Solaris 10 /bin/sh.
4918 echo '/* dummy */' > sub/conftst$i.h
4919 done
4920 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4921
4922 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4923 # mode. It turns out that the SunPro C++ compiler does not properly
4924 # handle '-M -o', and we need to detect this. Also, some Intel
4925 # versions had trouble with output in subdirs.
4926 am__obj=sub/conftest.${OBJEXT-o}
4927 am__minus_obj="-o $am__obj"
4928 case $depmode in
4929 gcc)
4930 # This depmode causes a compiler race in universal mode.
4931 test "$am__universal" = false || continue
4932 ;;
4933 nosideeffect)
4934 # After this tag, mechanisms are not by side-effect, so they'll
4935 # only be used when explicitly requested.
4936 if test "x$enable_dependency_tracking" = xyes; then
4937 continue
4938 else
4939 break
4940 fi
4941 ;;
4942 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4943 # This compiler won't grok '-c -o', but also, the minuso test has
4944 # not run yet. These depmodes are late enough in the game, and
4945 # so weak that their functioning should not be impacted.
4946 am__obj=conftest.${OBJEXT-o}
4947 am__minus_obj=
4948 ;;
4949 none) break ;;
4950 esac
4951 if depmode=$depmode \
4952 source=sub/conftest.c object=$am__obj \
4953 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4954 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4955 >/dev/null 2>conftest.err &&
4956 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4957 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4958 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4959 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4960 # icc doesn't choke on unknown options, it will just issue warnings
4961 # or remarks (even with -Werror). So we grep stderr for any message
4962 # that says an option was ignored or not supported.
4963 # When given -MP, icc 7.0 and 7.1 complain thusly:
4964 # icc: Command line warning: ignoring option '-M'; no argument required
4965 # The diagnosis changed in icc 8.0:
4966 # icc: Command line remark: option '-MP' not supported
4967 if (grep 'ignoring option' conftest.err ||
4968 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4969 am_cv_CC_dependencies_compiler_type=$depmode
4970 break
4971 fi
4972 fi
4973 done
4974
4975 cd ..
4976 rm -rf conftest.dir
4977 else
4978 am_cv_CC_dependencies_compiler_type=none
4979 fi
4980
4981 fi
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4983 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4984 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4985
4986 if
4987 test "x$enable_dependency_tracking" != xno \
4988 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4989 am__fastdepCC_TRUE=
4990 am__fastdepCC_FALSE='#'
4991 else
4992 am__fastdepCC_TRUE='#'
4993 am__fastdepCC_FALSE=
4994 fi
4995
4996
4997
4998 ac_header= ac_cache=
4999 for ac_item in $ac_header_c_list
5000 do
5001 if test $ac_cache; then
5002 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5003 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5004 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5005 fi
5006 ac_header= ac_cache=
5007 elif test $ac_header; then
5008 ac_cache=$ac_item
5009 else
5010 ac_header=$ac_item
5011 fi
5012 done
5013
5014
5015
5016
5017
5018
5019
5020
5021 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5022 then :
5023
5024 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5025
5026 fi
5027
5028
5029
5030
5031
5032
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5034 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5035 if test ${ac_cv_safe_to_define___extensions__+y}
5036 then :
5037 printf %s "(cached) " >&6
5038 else $as_nop
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041
5042 # define __EXTENSIONS__ 1
5043 $ac_includes_default
5044 int
5045 main (void)
5046 {
5047
5048 ;
5049 return 0;
5050 }
5051 _ACEOF
5052 if ac_fn_c_try_compile "$LINENO"
5053 then :
5054 ac_cv_safe_to_define___extensions__=yes
5055 else $as_nop
5056 ac_cv_safe_to_define___extensions__=no
5057 fi
5058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5059 fi
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5061 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5062
5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5064 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5065 if test ${ac_cv_should_define__xopen_source+y}
5066 then :
5067 printf %s "(cached) " >&6
5068 else $as_nop
5069 ac_cv_should_define__xopen_source=no
5070 if test $ac_cv_header_wchar_h = yes
5071 then :
5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073 /* end confdefs.h. */
5074
5075 #include <wchar.h>
5076 mbstate_t x;
5077 int
5078 main (void)
5079 {
5080
5081 ;
5082 return 0;
5083 }
5084 _ACEOF
5085 if ac_fn_c_try_compile "$LINENO"
5086 then :
5087
5088 else $as_nop
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5091
5092 #define _XOPEN_SOURCE 500
5093 #include <wchar.h>
5094 mbstate_t x;
5095 int
5096 main (void)
5097 {
5098
5099 ;
5100 return 0;
5101 }
5102 _ACEOF
5103 if ac_fn_c_try_compile "$LINENO"
5104 then :
5105 ac_cv_should_define__xopen_source=yes
5106 fi
5107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5108 fi
5109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5110 fi
5111 fi
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5113 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5114
5115 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5116
5117 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5118
5119 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5120
5121 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5122
5123 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5124
5125 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5126
5127 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5128
5129 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5130
5131 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5132
5133 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5134
5135 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5136
5137 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5138
5139 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5140
5141 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5142
5143 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5144
5145 if test $ac_cv_header_minix_config_h = yes
5146 then :
5147 MINIX=yes
5148 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5149
5150 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5151
5152 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5153
5154 else $as_nop
5155 MINIX=
5156 fi
5157 if test $ac_cv_safe_to_define___extensions__ = yes
5158 then :
5159 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5160
5161 fi
5162 if test $ac_cv_should_define__xopen_source = yes
5163 then :
5164 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5165
5166 fi
5167
5168
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for z/OS USS compilation" >&5
5170 printf %s "checking for z/OS USS compilation... " >&6; }
5171 if test ${ac_cv_zos_uss+y}
5172 then :
5173 printf %s "(cached) " >&6
5174 else $as_nop
5175
5176 if test "OS/390" = "`uname`"
5177 then
5178 ac_cv_zos_uss=yes
5179 else
5180 ac_cv_zos_uss=no
5181 fi
5182
5183 fi
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_zos_uss}" >&5
5185 printf "%s\n" "${ac_cv_zos_uss}" >&6; }
5186 if test "x$ac_cv_zos_uss" = "xyes"
5187 then
5188 ac_zos_uss_cc_id=unknown
5189 echo " $CC " | $EGREP ' (/bin/)?c89[ |_]' >/dev/null && ac_zos_uss_cc_id=c89
5190 echo " $CC " | $EGREP ' (/bin/)?c99[ |_]' >/dev/null && ac_zos_uss_cc_id=xlc
5191 echo " $CC " | $EGREP ' (/bin/)?cc[ |_]' >/dev/null && ac_zos_uss_cc_id=cc
5192 echo " $CC " | $EGREP ' (/bin/)?xlc[ |_]' >/dev/null && ac_zos_uss_cc_id=xlc
5193 echo " $CC " | $EGREP ' (/bin/)?xlC[ |_]' >/dev/null && ac_zos_uss_cc_id=xlc++
5194 echo " $CC " | $EGREP ' (/bin/)?xlc\+\+[ |_]' >/dev/null && ac_zos_uss_cc_id=xlc++
5195 test "x$GCC" = "xyes" && ac_zos_uss_cc_id=gcc
5196 CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE -D_OPEN_SYS_UNLOCKED_EXT"
5197 test "$ac_zos_uss_cc_id" != xlc++ && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
5198 case "$ac_zos_uss_cc_id" in
5199 c89)
5200 if test -n "$_C89_OPTIONS"
5201 then
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC = $CC" >&5
5203 printf "%s\n" "$as_me: CC = $CC" >&6;}
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: _C89_OPTIONS = $_C89_OPTIONS" >&5
5205 printf "%s\n" "$as_me: _C89_OPTIONS = $_C89_OPTIONS" >&6;}
5206 else
5207 as_fn_error $? "c89-setup-required
5208 To build GNU Awk using \"c89\", please set
5209
5210 _C89_OPTIONS=\"-W c,langlvl(stdc99,libext),haltonmsg(CCN3296)\"
5211
5212 in your environment, and reconfigure. (The above flags cannot be specified
5213 in CFLAGS/CPPFLAGS, due to the parentheses.)" "$LINENO" 5
5214 fi
5215 ;;
5216 gcc)
5217 ;;
5218 cc)
5219 as_fn_error $? "cc-invalid
5220 The z/OS \"cc\" compiler does not build GNU Awk correctly.
5221
5222 If the \"xlc\" or \"c89\" compiler is available, please set CC accordingly
5223 and reconfigure. (\"xlc\" is the recommended compiler on z/OS.)" "$LINENO" 5
5224 ;;
5225 xlc*)
5226 CFLAGS="$CFLAGS -qlanglvl=stdc99:libext"
5227 cat >zos-cc <<EOF
5228 #!/bin/sh
5229 #
5230 # This wrapper script addresses two annoying peculiarities of the IBM
5231 # xlc/c99 compiler on z/OS:
5232 #
5233 # 1. Missing header files are considered warnings by default rather
5234 # than fatal errors;
5235 #
5236 # 2. Include directories specified with -I are searched _after_ the
5237 # system include directories (for #include<> directives) rather
5238 # than before.
5239 #
5240 # This script allows the code and the build system to assume standard
5241 # compiler behavior.
5242 #
5243
5244 PS4='zos-cc: '
5245 REAL_CC="$CC"
5246
5247 set -x
5248 \$REAL_CC -qhaltonmsg=CCN3296 -qnosearch "\$@" -qsearch=/usr/include
5249 EOF
5250 chmod +x zos-cc
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: wrapping $CC with zos-cc to obtain standard behavior" >&5
5252 printf "%s\n" "$as_me: wrapping $CC with zos-cc to obtain standard behavior" >&6;}
5253 CC="`pwd`/zos-cc"
5254 ;;
5255 *)
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized compiler environment" >&5
5257 printf "%s\n" "$as_me: WARNING: unrecognized compiler environment" >&2;}
5258 ;;
5259 esac
5260 fi # ac_cv_zos_uss = yes
5261
5262
5263 INSTALL="$ac_aux_dir/install-sh -c"
5264 export INSTALL
5265
5266 SKIP_MPFR=no
5267 # Check whether --enable-mpfr was given.
5268 if test ${enable_mpfr+y}
5269 then :
5270 enableval=$enable_mpfr; if test "$enableval" = no
5271 then
5272 SKIP_MPFR=yes
5273 fi
5274
5275 fi
5276
5277
5278 ac_ext=c
5279 ac_cpp='$CPP $CPPFLAGS'
5280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5283
5284
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5286 printf %s "checking for a sed that does not truncate output... " >&6; }
5287 if test ${ac_cv_path_SED+y}
5288 then :
5289 printf %s "(cached) " >&6
5290 else $as_nop
5291 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5292 for ac_i in 1 2 3 4 5 6 7; do
5293 ac_script="$ac_script$as_nl$ac_script"
5294 done
5295 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5296 { ac_script=; unset ac_script;}
5297 if test -z "$SED"; then
5298 ac_path_SED_found=false
5299 # Loop through the user's path and test for each of PROGNAME-LIST
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303 IFS=$as_save_IFS
5304 case $as_dir in #(((
5305 '') as_dir=./ ;;
5306 */) ;;
5307 *) as_dir=$as_dir/ ;;
5308 esac
5309 for ac_prog in sed gsed
5310 do
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5313 as_fn_executable_p "$ac_path_SED" || continue
5314 # Check for GNU ac_path_SED and select it if it is found.
5315 # Check for GNU $ac_path_SED
5316 case `"$ac_path_SED" --version 2>&1` in
5317 *GNU*)
5318 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5319 *)
5320 ac_count=0
5321 printf %s 0123456789 >"conftest.in"
5322 while :
5323 do
5324 cat "conftest.in" "conftest.in" >"conftest.tmp"
5325 mv "conftest.tmp" "conftest.in"
5326 cp "conftest.in" "conftest.nl"
5327 printf "%s\n" '' >> "conftest.nl"
5328 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5330 as_fn_arith $ac_count + 1 && ac_count=$as_val
5331 if test $ac_count -gt ${ac_path_SED_max-0}; then
5332 # Best one so far, save it but keep looking for a better one
5333 ac_cv_path_SED="$ac_path_SED"
5334 ac_path_SED_max=$ac_count
5335 fi
5336 # 10*(2^10) chars as input seems more than enough
5337 test $ac_count -gt 10 && break
5338 done
5339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5340 esac
5341
5342 $ac_path_SED_found && break 3
5343 done
5344 done
5345 done
5346 IFS=$as_save_IFS
5347 if test -z "$ac_cv_path_SED"; then
5348 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5349 fi
5350 else
5351 ac_cv_path_SED=$SED
5352 fi
5353
5354 fi
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5356 printf "%s\n" "$ac_cv_path_SED" >&6; }
5357 SED="$ac_cv_path_SED"
5358 rm -f conftest.sed
5359
5360
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5362 printf %s "checking whether NLS is requested... " >&6; }
5363 # Check whether --enable-nls was given.
5364 if test ${enable_nls+y}
5365 then :
5366 enableval=$enable_nls; USE_NLS=$enableval
5367 else $as_nop
5368 USE_NLS=yes
5369 fi
5370
5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5372 printf "%s\n" "$USE_NLS" >&6; }
5373
5374
5375
5376
5377 GETTEXT_MACRO_VERSION=0.20
5378
5379
5380
5381
5382 # Prepare PATH_SEPARATOR.
5383 # The user is always right.
5384 if test "${PATH_SEPARATOR+set}" != set; then
5385 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5386 # contains only /bin. Note that ksh looks also at the FPATH variable,
5387 # so we have to set that as well for the test.
5388 PATH_SEPARATOR=:
5389 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5390 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5391 || PATH_SEPARATOR=';'
5392 }
5393 fi
5394
5395 # Find out how to test for executable files. Don't use a zero-byte file,
5396 # as systems may use methods other than mode bits to determine executability.
5397 cat >conf$$.file <<_ASEOF
5398 #! /bin/sh
5399 exit 0
5400 _ASEOF
5401 chmod +x conf$$.file
5402 if test -x conf$$.file >/dev/null 2>&1; then
5403 ac_executable_p="test -x"
5404 else
5405 ac_executable_p="test -f"
5406 fi
5407 rm -f conf$$.file
5408
5409 # Extract the first word of "msgfmt", so it can be a program name with args.
5410 set dummy msgfmt; ac_word=$2
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 printf %s "checking for $ac_word... " >&6; }
5413 if test ${ac_cv_path_MSGFMT+y}
5414 then :
5415 printf %s "(cached) " >&6
5416 else $as_nop
5417 case "$MSGFMT" in
5418 [\\/]* | ?:[\\/]*)
5419 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5420 ;;
5421 *)
5422 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5423 for ac_dir in $PATH; do
5424 IFS="$ac_save_IFS"
5425 test -z "$ac_dir" && ac_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5428 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5429 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5430 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5431 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5432 break 2
5433 fi
5434 fi
5435 done
5436 done
5437 IFS="$ac_save_IFS"
5438 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5439 ;;
5440 esac
5441 fi
5442 MSGFMT="$ac_cv_path_MSGFMT"
5443 if test "$MSGFMT" != ":"; then
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5445 printf "%s\n" "$MSGFMT" >&6; }
5446 else
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 printf "%s\n" "no" >&6; }
5449 fi
5450
5451 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5452 set dummy gmsgfmt; ac_word=$2
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 printf %s "checking for $ac_word... " >&6; }
5455 if test ${ac_cv_path_GMSGFMT+y}
5456 then :
5457 printf %s "(cached) " >&6
5458 else $as_nop
5459 case $GMSGFMT in
5460 [\\/]* | ?:[\\/]*)
5461 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5462 ;;
5463 *)
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467 IFS=$as_save_IFS
5468 case $as_dir in #(((
5469 '') as_dir=./ ;;
5470 */) ;;
5471 *) as_dir=$as_dir/ ;;
5472 esac
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5475 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
5476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5477 break 2
5478 fi
5479 done
5480 done
5481 IFS=$as_save_IFS
5482
5483 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5484 ;;
5485 esac
5486 fi
5487 GMSGFMT=$ac_cv_path_GMSGFMT
5488 if test -n "$GMSGFMT"; then
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5490 printf "%s\n" "$GMSGFMT" >&6; }
5491 else
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 printf "%s\n" "no" >&6; }
5494 fi
5495
5496
5497
5498 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5499 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5500 *) GMSGFMT_015=$GMSGFMT ;;
5501 esac
5502
5503
5504
5505 # Prepare PATH_SEPARATOR.
5506 # The user is always right.
5507 if test "${PATH_SEPARATOR+set}" != set; then
5508 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5509 # contains only /bin. Note that ksh looks also at the FPATH variable,
5510 # so we have to set that as well for the test.
5511 PATH_SEPARATOR=:
5512 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5513 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5514 || PATH_SEPARATOR=';'
5515 }
5516 fi
5517
5518 # Find out how to test for executable files. Don't use a zero-byte file,
5519 # as systems may use methods other than mode bits to determine executability.
5520 cat >conf$$.file <<_ASEOF
5521 #! /bin/sh
5522 exit 0
5523 _ASEOF
5524 chmod +x conf$$.file
5525 if test -x conf$$.file >/dev/null 2>&1; then
5526 ac_executable_p="test -x"
5527 else
5528 ac_executable_p="test -f"
5529 fi
5530 rm -f conf$$.file
5531
5532 # Extract the first word of "xgettext", so it can be a program name with args.
5533 set dummy xgettext; ac_word=$2
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 printf %s "checking for $ac_word... " >&6; }
5536 if test ${ac_cv_path_XGETTEXT+y}
5537 then :
5538 printf %s "(cached) " >&6
5539 else $as_nop
5540 case "$XGETTEXT" in
5541 [\\/]* | ?:[\\/]*)
5542 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5543 ;;
5544 *)
5545 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5546 for ac_dir in $PATH; do
5547 IFS="$ac_save_IFS"
5548 test -z "$ac_dir" && ac_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5551 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5552 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5553 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5554 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5555 break 2
5556 fi
5557 fi
5558 done
5559 done
5560 IFS="$ac_save_IFS"
5561 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5562 ;;
5563 esac
5564 fi
5565 XGETTEXT="$ac_cv_path_XGETTEXT"
5566 if test "$XGETTEXT" != ":"; then
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5568 printf "%s\n" "$XGETTEXT" >&6; }
5569 else
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 printf "%s\n" "no" >&6; }
5572 fi
5573
5574 rm -f messages.po
5575
5576 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5577 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5578 *) XGETTEXT_015=$XGETTEXT ;;
5579 esac
5580
5581
5582
5583 # Prepare PATH_SEPARATOR.
5584 # The user is always right.
5585 if test "${PATH_SEPARATOR+set}" != set; then
5586 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5587 # contains only /bin. Note that ksh looks also at the FPATH variable,
5588 # so we have to set that as well for the test.
5589 PATH_SEPARATOR=:
5590 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5591 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5592 || PATH_SEPARATOR=';'
5593 }
5594 fi
5595
5596 # Find out how to test for executable files. Don't use a zero-byte file,
5597 # as systems may use methods other than mode bits to determine executability.
5598 cat >conf$$.file <<_ASEOF
5599 #! /bin/sh
5600 exit 0
5601 _ASEOF
5602 chmod +x conf$$.file
5603 if test -x conf$$.file >/dev/null 2>&1; then
5604 ac_executable_p="test -x"
5605 else
5606 ac_executable_p="test -f"
5607 fi
5608 rm -f conf$$.file
5609
5610 # Extract the first word of "msgmerge", so it can be a program name with args.
5611 set dummy msgmerge; ac_word=$2
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 printf %s "checking for $ac_word... " >&6; }
5614 if test ${ac_cv_path_MSGMERGE+y}
5615 then :
5616 printf %s "(cached) " >&6
5617 else $as_nop
5618 case "$MSGMERGE" in
5619 [\\/]* | ?:[\\/]*)
5620 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5621 ;;
5622 *)
5623 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5624 for ac_dir in $PATH; do
5625 IFS="$ac_save_IFS"
5626 test -z "$ac_dir" && ac_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5629 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5630 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5631 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5632 break 2
5633 fi
5634 fi
5635 done
5636 done
5637 IFS="$ac_save_IFS"
5638 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5639 ;;
5640 esac
5641 fi
5642 MSGMERGE="$ac_cv_path_MSGMERGE"
5643 if test "$MSGMERGE" != ":"; then
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5645 printf "%s\n" "$MSGMERGE" >&6; }
5646 else
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 printf "%s\n" "no" >&6; }
5649 fi
5650
5651
5652 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
5653 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
5654 else
5655 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
5656 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
5657 else
5658 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
5659 fi
5660 fi
5661
5662
5663 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5664
5665
5666 ac_config_commands="$ac_config_commands po-directories"
5667
5668
5669
5670 if test "X$prefix" = "XNONE"; then
5671 acl_final_prefix="$ac_default_prefix"
5672 else
5673 acl_final_prefix="$prefix"
5674 fi
5675 if test "X$exec_prefix" = "XNONE"; then
5676 acl_final_exec_prefix='${prefix}'
5677 else
5678 acl_final_exec_prefix="$exec_prefix"
5679 fi
5680 acl_save_prefix="$prefix"
5681 prefix="$acl_final_prefix"
5682 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5683 prefix="$acl_save_prefix"
5684
5685
5686
5687 # Check whether --with-gnu-ld was given.
5688 if test ${with_gnu_ld+y}
5689 then :
5690 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5691 else $as_nop
5692 with_gnu_ld=no
5693 fi
5694
5695 # Prepare PATH_SEPARATOR.
5696 # The user is always right.
5697 if test "${PATH_SEPARATOR+set}" != set; then
5698 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5699 # contains only /bin. Note that ksh looks also at the FPATH variable,
5700 # so we have to set that as well for the test.
5701 PATH_SEPARATOR=:
5702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5703 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5704 || PATH_SEPARATOR=';'
5705 }
5706 fi
5707
5708 if test -n "$LD"; then
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
5710 printf %s "checking for ld... " >&6; }
5711 elif test "$GCC" = yes; then
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5713 printf %s "checking for ld used by $CC... " >&6; }
5714 elif test "$with_gnu_ld" = yes; then
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5716 printf %s "checking for GNU ld... " >&6; }
5717 else
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5719 printf %s "checking for non-GNU ld... " >&6; }
5720 fi
5721 if test -n "$LD"; then
5722 # Let the user override the test with a path.
5723 :
5724 else
5725 if test ${acl_cv_path_LD+y}
5726 then :
5727 printf %s "(cached) " >&6
5728 else $as_nop
5729
5730 acl_cv_path_LD= # Final result of this test
5731 ac_prog=ld # Program to search in $PATH
5732 if test "$GCC" = yes; then
5733 # Check if gcc -print-prog-name=ld gives a path.
5734 case $host in
5735 *-*-mingw*)
5736 # gcc leaves a trailing carriage return which upsets mingw
5737 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5738 *)
5739 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
5740 esac
5741 case $acl_output in
5742 # Accept absolute paths.
5743 [\\/]* | ?:[\\/]*)
5744 re_direlt='/[^/][^/]*/\.\./'
5745 # Canonicalize the pathname of ld
5746 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
5747 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
5748 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
5749 done
5750 # Got the pathname. No search in PATH is needed.
5751 acl_cv_path_LD="$acl_output"
5752 ac_prog=
5753 ;;
5754 "")
5755 # If it fails, then pretend we aren't using GCC.
5756 ;;
5757 *)
5758 # If it is relative, then search for the first ld in PATH.
5759 with_gnu_ld=unknown
5760 ;;
5761 esac
5762 fi
5763 if test -n "$ac_prog"; then
5764 # Search for $ac_prog in $PATH.
5765 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5766 for ac_dir in $PATH; do
5767 IFS="$acl_save_ifs"
5768 test -z "$ac_dir" && ac_dir=.
5769 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5770 acl_cv_path_LD="$ac_dir/$ac_prog"
5771 # Check to see if the program is GNU ld. I'd rather use --version,
5772 # but apparently some variants of GNU ld only accept -v.
5773 # Break only if it was the GNU/non-GNU ld that we prefer.
5774 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5775 *GNU* | *'with BFD'*)
5776 test "$with_gnu_ld" != no && break
5777 ;;
5778 *)
5779 test "$with_gnu_ld" != yes && break
5780 ;;
5781 esac
5782 fi
5783 done
5784 IFS="$acl_save_ifs"
5785 fi
5786 case $host in
5787 *-*-aix*)
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5790 #if defined __powerpc64__ || defined _ARCH_PPC64
5791 int ok;
5792 #else
5793 error fail
5794 #endif
5795
5796 _ACEOF
5797 if ac_fn_c_try_compile "$LINENO"
5798 then :
5799 # The compiler produces 64-bit code. Add option '-b64' so that the
5800 # linker groks 64-bit object files.
5801 case "$acl_cv_path_LD " in
5802 *" -b64 "*) ;;
5803 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
5804 esac
5805
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5808 ;;
5809 sparc64-*-netbsd*)
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5812 #if defined __sparcv9 || defined __arch64__
5813 int ok;
5814 #else
5815 error fail
5816 #endif
5817
5818 _ACEOF
5819 if ac_fn_c_try_compile "$LINENO"
5820 then :
5821
5822 else $as_nop
5823 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
5824 # so that the linker groks 32-bit object files.
5825 case "$acl_cv_path_LD " in
5826 *" -m elf32_sparc "*) ;;
5827 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
5828 esac
5829
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5832 ;;
5833 esac
5834
5835 fi
5836
5837 LD="$acl_cv_path_LD"
5838 fi
5839 if test -n "$LD"; then
5840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5841 printf "%s\n" "$LD" >&6; }
5842 else
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 printf "%s\n" "no" >&6; }
5845 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5846 fi
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5848 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5849 if test ${acl_cv_prog_gnu_ld+y}
5850 then :
5851 printf %s "(cached) " >&6
5852 else $as_nop
5853 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5854 case `$LD -v 2>&1 </dev/null` in
5855 *GNU* | *'with BFD'*)
5856 acl_cv_prog_gnu_ld=yes
5857 ;;
5858 *)
5859 acl_cv_prog_gnu_ld=no
5860 ;;
5861 esac
5862 fi
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5864 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
5865 with_gnu_ld=$acl_cv_prog_gnu_ld
5866
5867
5868
5869
5870
5871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5872 printf %s "checking for shared library run path origin... " >&6; }
5873 if test ${acl_cv_rpath+y}
5874 then :
5875 printf %s "(cached) " >&6
5876 else $as_nop
5877
5878 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5879 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5880 . ./conftest.sh
5881 rm -f ./conftest.sh
5882 acl_cv_rpath=done
5883
5884 fi
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5886 printf "%s\n" "$acl_cv_rpath" >&6; }
5887 wl="$acl_cv_wl"
5888 acl_libext="$acl_cv_libext"
5889 acl_shlibext="$acl_cv_shlibext"
5890 acl_libname_spec="$acl_cv_libname_spec"
5891 acl_library_names_spec="$acl_cv_library_names_spec"
5892 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5893 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5894 acl_hardcode_direct="$acl_cv_hardcode_direct"
5895 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5896 # Check whether --enable-rpath was given.
5897 if test ${enable_rpath+y}
5898 then :
5899 enableval=$enable_rpath; :
5900 else $as_nop
5901 enable_rpath=yes
5902 fi
5903
5904
5905
5906
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
5908 printf %s "checking 32-bit host C ABI... " >&6; }
5909 if test ${gl_cv_host_cpu_c_abi_32bit+y}
5910 then :
5911 printf %s "(cached) " >&6
5912 else $as_nop
5913 if test -n "$gl_cv_host_cpu_c_abi"; then
5914 case "$gl_cv_host_cpu_c_abi" in
5915 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
5916 gl_cv_host_cpu_c_abi_32bit=yes ;;
5917 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
5918 gl_cv_host_cpu_c_abi_32bit=no ;;
5919 *)
5920 gl_cv_host_cpu_c_abi_32bit=unknown ;;
5921 esac
5922 else
5923 case "$host_cpu" in
5924
5925 # CPUs that only support a 32-bit ABI.
5926 arc \
5927 | bfin \
5928 | cris* \
5929 | csky \
5930 | epiphany \
5931 | ft32 \
5932 | h8300 \
5933 | m68k \
5934 | microblaze | microblazeel \
5935 | nds32 | nds32le | nds32be \
5936 | nios2 | nios2eb | nios2el \
5937 | or1k* \
5938 | or32 \
5939 | sh | sh1234 | sh1234elb \
5940 | tic6x \
5941 | xtensa* )
5942 gl_cv_host_cpu_c_abi_32bit=yes
5943 ;;
5944
5945 # CPUs that only support a 64-bit ABI.
5946 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
5947 | mmix )
5948 gl_cv_host_cpu_c_abi_32bit=no
5949 ;;
5950
5951 i[34567]86 )
5952 gl_cv_host_cpu_c_abi_32bit=yes
5953 ;;
5954
5955 x86_64 )
5956 # On x86_64 systems, the C compiler may be generating code in one of
5957 # these ABIs:
5958 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
5959 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
5960 # with native Windows (mingw, MSVC).
5961 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
5962 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5965 #if (defined __x86_64__ || defined __amd64__ \
5966 || defined _M_X64 || defined _M_AMD64) \
5967 && !(defined __ILP32__ || defined _ILP32)
5968 int ok;
5969 #else
5970 error fail
5971 #endif
5972
5973 _ACEOF
5974 if ac_fn_c_try_compile "$LINENO"
5975 then :
5976 gl_cv_host_cpu_c_abi_32bit=no
5977 else $as_nop
5978 gl_cv_host_cpu_c_abi_32bit=yes
5979 fi
5980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5981 ;;
5982
5983 arm* | aarch64 )
5984 # Assume arm with EABI.
5985 # On arm64 systems, the C compiler may be generating code in one of
5986 # these ABIs:
5987 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
5988 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
5989 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
5993 int ok;
5994 #else
5995 error fail
5996 #endif
5997
5998 _ACEOF
5999 if ac_fn_c_try_compile "$LINENO"
6000 then :
6001 gl_cv_host_cpu_c_abi_32bit=no
6002 else $as_nop
6003 gl_cv_host_cpu_c_abi_32bit=yes
6004 fi
6005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6006 ;;
6007
6008 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
6009 # On hppa, the C compiler may be generating 32-bit code or 64-bit
6010 # code. In the latter case, it defines _LP64 and __LP64__.
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 #ifdef __LP64__
6014 int ok;
6015 #else
6016 error fail
6017 #endif
6018
6019 _ACEOF
6020 if ac_fn_c_try_compile "$LINENO"
6021 then :
6022 gl_cv_host_cpu_c_abi_32bit=no
6023 else $as_nop
6024 gl_cv_host_cpu_c_abi_32bit=yes
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6027 ;;
6028
6029 ia64* )
6030 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
6031 # 32-bit code. In the latter case, it defines _ILP32.
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034 #ifdef _ILP32
6035 int ok;
6036 #else
6037 error fail
6038 #endif
6039
6040 _ACEOF
6041 if ac_fn_c_try_compile "$LINENO"
6042 then :
6043 gl_cv_host_cpu_c_abi_32bit=yes
6044 else $as_nop
6045 gl_cv_host_cpu_c_abi_32bit=no
6046 fi
6047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6048 ;;
6049
6050 mips* )
6051 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
6052 # at 32.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
6056 int ok;
6057 #else
6058 error fail
6059 #endif
6060
6061 _ACEOF
6062 if ac_fn_c_try_compile "$LINENO"
6063 then :
6064 gl_cv_host_cpu_c_abi_32bit=no
6065 else $as_nop
6066 gl_cv_host_cpu_c_abi_32bit=yes
6067 fi
6068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6069 ;;
6070
6071 powerpc* )
6072 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
6073 # No need to distinguish them here; the caller may distinguish
6074 # them based on the OS.
6075 # On powerpc64 systems, the C compiler may still be generating
6076 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
6077 # be generating 64-bit code.
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #if defined __powerpc64__ || defined _ARCH_PPC64
6081 int ok;
6082 #else
6083 error fail
6084 #endif
6085
6086 _ACEOF
6087 if ac_fn_c_try_compile "$LINENO"
6088 then :
6089 gl_cv_host_cpu_c_abi_32bit=no
6090 else $as_nop
6091 gl_cv_host_cpu_c_abi_32bit=yes
6092 fi
6093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6094 ;;
6095
6096 rs6000 )
6097 gl_cv_host_cpu_c_abi_32bit=yes
6098 ;;
6099
6100 riscv32 | riscv64 )
6101 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
6102 # Size of 'long' and 'void *':
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 #if defined __LP64__
6106 int ok;
6107 #else
6108 error fail
6109 #endif
6110
6111 _ACEOF
6112 if ac_fn_c_try_compile "$LINENO"
6113 then :
6114 gl_cv_host_cpu_c_abi_32bit=no
6115 else $as_nop
6116 gl_cv_host_cpu_c_abi_32bit=yes
6117 fi
6118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6119 ;;
6120
6121 s390* )
6122 # On s390x, the C compiler may be generating 64-bit (= s390x) code
6123 # or 31-bit (= s390) code.
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 #if defined __LP64__ || defined __s390x__
6127 int ok;
6128 #else
6129 error fail
6130 #endif
6131
6132 _ACEOF
6133 if ac_fn_c_try_compile "$LINENO"
6134 then :
6135 gl_cv_host_cpu_c_abi_32bit=no
6136 else $as_nop
6137 gl_cv_host_cpu_c_abi_32bit=yes
6138 fi
6139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6140 ;;
6141
6142 sparc | sparc64 )
6143 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
6144 # C compiler still generates 32-bit code.
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6147 #if defined __sparcv9 || defined __arch64__
6148 int ok;
6149 #else
6150 error fail
6151 #endif
6152
6153 _ACEOF
6154 if ac_fn_c_try_compile "$LINENO"
6155 then :
6156 gl_cv_host_cpu_c_abi_32bit=no
6157 else $as_nop
6158 gl_cv_host_cpu_c_abi_32bit=yes
6159 fi
6160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6161 ;;
6162
6163 *)
6164 gl_cv_host_cpu_c_abi_32bit=unknown
6165 ;;
6166 esac
6167 fi
6168
6169 fi
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
6171 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
6172
6173 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
6174
6175 ac_ext=c
6176 ac_cpp='$CPP $CPPFLAGS'
6177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6181 printf %s "checking how to run the C preprocessor... " >&6; }
6182 # On Suns, sometimes $CPP names a directory.
6183 if test -n "$CPP" && test -d "$CPP"; then
6184 CPP=
6185 fi
6186 if test -z "$CPP"; then
6187 if test ${ac_cv_prog_CPP+y}
6188 then :
6189 printf %s "(cached) " >&6
6190 else $as_nop
6191 # Double quotes because $CC needs to be expanded
6192 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6193 do
6194 ac_preproc_ok=false
6195 for ac_c_preproc_warn_flag in '' yes
6196 do
6197 # Use a header file that comes with gcc, so configuring glibc
6198 # with a fresh cross-compiler works.
6199 # On the NeXT, cc -E runs the code through the compiler's parser,
6200 # not just through cpp. "Syntax error" is here to catch this case.
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6203 #include <limits.h>
6204 Syntax error
6205 _ACEOF
6206 if ac_fn_c_try_cpp "$LINENO"
6207 then :
6208
6209 else $as_nop
6210 # Broken: fails on valid input.
6211 continue
6212 fi
6213 rm -f conftest.err conftest.i conftest.$ac_ext
6214
6215 # OK, works on sane cases. Now check whether nonexistent headers
6216 # can be detected and how.
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6219 #include <ac_nonexistent.h>
6220 _ACEOF
6221 if ac_fn_c_try_cpp "$LINENO"
6222 then :
6223 # Broken: success on invalid input.
6224 continue
6225 else $as_nop
6226 # Passes both tests.
6227 ac_preproc_ok=:
6228 break
6229 fi
6230 rm -f conftest.err conftest.i conftest.$ac_ext
6231
6232 done
6233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6234 rm -f conftest.i conftest.err conftest.$ac_ext
6235 if $ac_preproc_ok
6236 then :
6237 break
6238 fi
6239
6240 done
6241 ac_cv_prog_CPP=$CPP
6242
6243 fi
6244 CPP=$ac_cv_prog_CPP
6245 else
6246 ac_cv_prog_CPP=$CPP
6247 fi
6248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6249 printf "%s\n" "$CPP" >&6; }
6250 ac_preproc_ok=false
6251 for ac_c_preproc_warn_flag in '' yes
6252 do
6253 # Use a header file that comes with gcc, so configuring glibc
6254 # with a fresh cross-compiler works.
6255 # On the NeXT, cc -E runs the code through the compiler's parser,
6256 # not just through cpp. "Syntax error" is here to catch this case.
6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6259 #include <limits.h>
6260 Syntax error
6261 _ACEOF
6262 if ac_fn_c_try_cpp "$LINENO"
6263 then :
6264
6265 else $as_nop
6266 # Broken: fails on valid input.
6267 continue
6268 fi
6269 rm -f conftest.err conftest.i conftest.$ac_ext
6270
6271 # OK, works on sane cases. Now check whether nonexistent headers
6272 # can be detected and how.
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275 #include <ac_nonexistent.h>
6276 _ACEOF
6277 if ac_fn_c_try_cpp "$LINENO"
6278 then :
6279 # Broken: success on invalid input.
6280 continue
6281 else $as_nop
6282 # Passes both tests.
6283 ac_preproc_ok=:
6284 break
6285 fi
6286 rm -f conftest.err conftest.i conftest.$ac_ext
6287
6288 done
6289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6290 rm -f conftest.i conftest.err conftest.$ac_ext
6291 if $ac_preproc_ok
6292 then :
6293
6294 else $as_nop
6295 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6296 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6297 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6298 See \`config.log' for more details" "$LINENO" 5; }
6299 fi
6300
6301 ac_ext=c
6302 ac_cpp='$CPP $CPPFLAGS'
6303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6306
6307
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6309 printf %s "checking for grep that handles long lines and -e... " >&6; }
6310 if test ${ac_cv_path_GREP+y}
6311 then :
6312 printf %s "(cached) " >&6
6313 else $as_nop
6314 if test -z "$GREP"; then
6315 ac_path_GREP_found=false
6316 # Loop through the user's path and test for each of PROGNAME-LIST
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6319 do
6320 IFS=$as_save_IFS
6321 case $as_dir in #(((
6322 '') as_dir=./ ;;
6323 */) ;;
6324 *) as_dir=$as_dir/ ;;
6325 esac
6326 for ac_prog in grep ggrep
6327 do
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6330 as_fn_executable_p "$ac_path_GREP" || continue
6331 # Check for GNU ac_path_GREP and select it if it is found.
6332 # Check for GNU $ac_path_GREP
6333 case `"$ac_path_GREP" --version 2>&1` in
6334 *GNU*)
6335 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6336 *)
6337 ac_count=0
6338 printf %s 0123456789 >"conftest.in"
6339 while :
6340 do
6341 cat "conftest.in" "conftest.in" >"conftest.tmp"
6342 mv "conftest.tmp" "conftest.in"
6343 cp "conftest.in" "conftest.nl"
6344 printf "%s\n" 'GREP' >> "conftest.nl"
6345 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6347 as_fn_arith $ac_count + 1 && ac_count=$as_val
6348 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6349 # Best one so far, save it but keep looking for a better one
6350 ac_cv_path_GREP="$ac_path_GREP"
6351 ac_path_GREP_max=$ac_count
6352 fi
6353 # 10*(2^10) chars as input seems more than enough
6354 test $ac_count -gt 10 && break
6355 done
6356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6357 esac
6358
6359 $ac_path_GREP_found && break 3
6360 done
6361 done
6362 done
6363 IFS=$as_save_IFS
6364 if test -z "$ac_cv_path_GREP"; then
6365 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6366 fi
6367 else
6368 ac_cv_path_GREP=$GREP
6369 fi
6370
6371 fi
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6373 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6374 GREP="$ac_cv_path_GREP"
6375
6376
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6378 printf %s "checking for egrep... " >&6; }
6379 if test ${ac_cv_path_EGREP+y}
6380 then :
6381 printf %s "(cached) " >&6
6382 else $as_nop
6383 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6384 then ac_cv_path_EGREP="$GREP -E"
6385 else
6386 if test -z "$EGREP"; then
6387 ac_path_EGREP_found=false
6388 # Loop through the user's path and test for each of PROGNAME-LIST
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6391 do
6392 IFS=$as_save_IFS
6393 case $as_dir in #(((
6394 '') as_dir=./ ;;
6395 */) ;;
6396 *) as_dir=$as_dir/ ;;
6397 esac
6398 for ac_prog in egrep
6399 do
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6402 as_fn_executable_p "$ac_path_EGREP" || continue
6403 # Check for GNU ac_path_EGREP and select it if it is found.
6404 # Check for GNU $ac_path_EGREP
6405 case `"$ac_path_EGREP" --version 2>&1` in
6406 *GNU*)
6407 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6408 *)
6409 ac_count=0
6410 printf %s 0123456789 >"conftest.in"
6411 while :
6412 do
6413 cat "conftest.in" "conftest.in" >"conftest.tmp"
6414 mv "conftest.tmp" "conftest.in"
6415 cp "conftest.in" "conftest.nl"
6416 printf "%s\n" 'EGREP' >> "conftest.nl"
6417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6419 as_fn_arith $ac_count + 1 && ac_count=$as_val
6420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6421 # Best one so far, save it but keep looking for a better one
6422 ac_cv_path_EGREP="$ac_path_EGREP"
6423 ac_path_EGREP_max=$ac_count
6424 fi
6425 # 10*(2^10) chars as input seems more than enough
6426 test $ac_count -gt 10 && break
6427 done
6428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6429 esac
6430
6431 $ac_path_EGREP_found && break 3
6432 done
6433 done
6434 done
6435 IFS=$as_save_IFS
6436 if test -z "$ac_cv_path_EGREP"; then
6437 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6438 fi
6439 else
6440 ac_cv_path_EGREP=$EGREP
6441 fi
6442
6443 fi
6444 fi
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6446 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6447 EGREP="$ac_cv_path_EGREP"
6448
6449
6450
6451
6452
6453
6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
6455 printf %s "checking for ELF binary format... " >&6; }
6456 if test ${gl_cv_elf+y}
6457 then :
6458 printf %s "(cached) " >&6
6459 else $as_nop
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 #ifdef __ELF__
6463 Extensible Linking Format
6464 #endif
6465
6466 _ACEOF
6467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6468 $EGREP "Extensible Linking Format" >/dev/null 2>&1
6469 then :
6470 gl_cv_elf=yes
6471 else $as_nop
6472 gl_cv_elf=no
6473 fi
6474 rm -rf conftest*
6475
6476
6477 fi
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
6479 printf "%s\n" "$gl_cv_elf" >&6; }
6480 if test $gl_cv_elf; then
6481 # Extract the ELF class of a file (5th byte) in decimal.
6482 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
6483 if od -A x < /dev/null >/dev/null 2>/dev/null; then
6484 # Use POSIX od.
6485 func_elfclass ()
6486 {
6487 od -A n -t d1 -j 4 -N 1
6488 }
6489 else
6490 # Use BSD hexdump.
6491 func_elfclass ()
6492 {
6493 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
6494 echo
6495 }
6496 fi
6497 case $HOST_CPU_C_ABI_32BIT in
6498 yes)
6499 # 32-bit ABI.
6500 acl_is_expected_elfclass ()
6501 {
6502 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
6503 }
6504 ;;
6505 no)
6506 # 64-bit ABI.
6507 acl_is_expected_elfclass ()
6508 {
6509 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
6510 }
6511 ;;
6512 *)
6513 # Unknown.
6514 acl_is_expected_elfclass ()
6515 {
6516 :
6517 }
6518 ;;
6519 esac
6520 else
6521 acl_is_expected_elfclass ()
6522 {
6523 :
6524 }
6525 fi
6526
6527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
6528 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
6529 if test ${acl_cv_libdirstems+y}
6530 then :
6531 printf %s "(cached) " >&6
6532 else $as_nop
6533 acl_libdirstem=lib
6534 acl_libdirstem2=
6535 acl_libdirstem3=
6536 case "$host_os" in
6537 solaris*)
6538 if test $HOST_CPU_C_ABI_32BIT = no; then
6539 acl_libdirstem2=lib/64
6540 case "$host_cpu" in
6541 sparc*) acl_libdirstem3=lib/sparcv9 ;;
6542 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
6543 esac
6544 fi
6545 ;;
6546 *)
6547 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
6548 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6549 if test $HOST_CPU_C_ABI_32BIT != no; then
6550 # 32-bit or unknown ABI.
6551 if test -d /usr/lib32; then
6552 acl_libdirstem2=lib32
6553 fi
6554 fi
6555 if test $HOST_CPU_C_ABI_32BIT != yes; then
6556 # 64-bit or unknown ABI.
6557 if test -d /usr/lib64; then
6558 acl_libdirstem3=lib64
6559 fi
6560 fi
6561 if test -n "$searchpath"; then
6562 acl_save_IFS="${IFS= }"; IFS=":"
6563 for searchdir in $searchpath; do
6564 if test -d "$searchdir"; then
6565 case "$searchdir" in
6566 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
6567 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
6568 */../ | */.. )
6569 # Better ignore directories of this form. They are misleading.
6570 ;;
6571 *) searchdir=`cd "$searchdir" && pwd`
6572 case "$searchdir" in
6573 */lib32 ) acl_libdirstem2=lib32 ;;
6574 */lib64 ) acl_libdirstem3=lib64 ;;
6575 esac ;;
6576 esac
6577 fi
6578 done
6579 IFS="$acl_save_IFS"
6580 if test $HOST_CPU_C_ABI_32BIT = yes; then
6581 # 32-bit ABI.
6582 acl_libdirstem3=
6583 fi
6584 if test $HOST_CPU_C_ABI_32BIT = no; then
6585 # 64-bit ABI.
6586 acl_libdirstem2=
6587 fi
6588 fi
6589 ;;
6590 esac
6591 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6592 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
6593 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
6594
6595 fi
6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
6597 printf "%s\n" "$acl_cv_libdirstems" >&6; }
6598 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
6599 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
6600 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612 use_additional=yes
6613
6614 acl_save_prefix="$prefix"
6615 prefix="$acl_final_prefix"
6616 acl_save_exec_prefix="$exec_prefix"
6617 exec_prefix="$acl_final_exec_prefix"
6618
6619 eval additional_includedir=\"$includedir\"
6620 eval additional_libdir=\"$libdir\"
6621 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
6622 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
6623
6624 exec_prefix="$acl_save_exec_prefix"
6625 prefix="$acl_save_prefix"
6626
6627
6628 # Check whether --with-libiconv-prefix was given.
6629 if test ${with_libiconv_prefix+y}
6630 then :
6631 withval=$with_libiconv_prefix;
6632 if test "X$withval" = "Xno"; then
6633 use_additional=no
6634 else
6635 if test "X$withval" = "X"; then
6636
6637 acl_save_prefix="$prefix"
6638 prefix="$acl_final_prefix"
6639 acl_save_exec_prefix="$exec_prefix"
6640 exec_prefix="$acl_final_exec_prefix"
6641
6642 eval additional_includedir=\"$includedir\"
6643 eval additional_libdir=\"$libdir\"
6644 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
6645 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
6646
6647 exec_prefix="$acl_save_exec_prefix"
6648 prefix="$acl_save_prefix"
6649
6650 else
6651 additional_includedir="$withval/include"
6652 additional_libdir="$withval/$acl_libdirstem"
6653 additional_libdir2="$withval/$acl_libdirstem2"
6654 additional_libdir3="$withval/$acl_libdirstem3"
6655 fi
6656 fi
6657
6658 fi
6659
6660 if test "X$additional_libdir2" = "X$additional_libdir"; then
6661 additional_libdir2=
6662 fi
6663 if test "X$additional_libdir3" = "X$additional_libdir"; then
6664 additional_libdir3=
6665 fi
6666 LIBICONV=
6667 LTLIBICONV=
6668 INCICONV=
6669 LIBICONV_PREFIX=
6670 HAVE_LIBICONV=
6671 rpathdirs=
6672 ltrpathdirs=
6673 names_already_handled=
6674 names_next_round='iconv '
6675 while test -n "$names_next_round"; do
6676 names_this_round="$names_next_round"
6677 names_next_round=
6678 for name in $names_this_round; do
6679 already_handled=
6680 for n in $names_already_handled; do
6681 if test "$n" = "$name"; then
6682 already_handled=yes
6683 break
6684 fi
6685 done
6686 if test -z "$already_handled"; then
6687 names_already_handled="$names_already_handled $name"
6688 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6689 eval value=\"\$HAVE_LIB$uppername\"
6690 if test -n "$value"; then
6691 if test "$value" = yes; then
6692 eval value=\"\$LIB$uppername\"
6693 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6694 eval value=\"\$LTLIB$uppername\"
6695 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6696 else
6697 :
6698 fi
6699 else
6700 found_dir=
6701 found_la=
6702 found_so=
6703 found_a=
6704 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6705 if test -n "$acl_shlibext"; then
6706 shrext=".$acl_shlibext" # typically: shrext=.so
6707 else
6708 shrext=
6709 fi
6710 if test $use_additional = yes; then
6711 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
6712 if test "X$found_dir" = "X"; then
6713 eval dir=\$$additional_libdir_variable
6714 if test -n "$dir"; then
6715 if test -n "$acl_shlibext"; then
6716 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
6717 found_dir="$dir"
6718 found_so="$dir/$libname$shrext"
6719 else
6720 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6721 ver=`(cd "$dir" && \
6722 for f in "$libname$shrext".*; do echo "$f"; done \
6723 | sed -e "s,^$libname$shrext\\\\.,," \
6724 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6725 | sed 1q ) 2>/dev/null`
6726 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
6727 found_dir="$dir"
6728 found_so="$dir/$libname$shrext.$ver"
6729 fi
6730 else
6731 eval library_names=\"$acl_library_names_spec\"
6732 for f in $library_names; do
6733 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
6734 found_dir="$dir"
6735 found_so="$dir/$f"
6736 break
6737 fi
6738 done
6739 fi
6740 fi
6741 fi
6742 if test "X$found_dir" = "X"; then
6743 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
6744 found_dir="$dir"
6745 found_a="$dir/$libname.$acl_libext"
6746 fi
6747 fi
6748 if test "X$found_dir" != "X"; then
6749 if test -f "$dir/$libname.la"; then
6750 found_la="$dir/$libname.la"
6751 fi
6752 fi
6753 fi
6754 fi
6755 done
6756 fi
6757 if test "X$found_dir" = "X"; then
6758 for x in $LDFLAGS $LTLIBICONV; do
6759
6760 acl_save_prefix="$prefix"
6761 prefix="$acl_final_prefix"
6762 acl_save_exec_prefix="$exec_prefix"
6763 exec_prefix="$acl_final_exec_prefix"
6764 eval x=\"$x\"
6765 exec_prefix="$acl_save_exec_prefix"
6766 prefix="$acl_save_prefix"
6767
6768 case "$x" in
6769 -L*)
6770 dir=`echo "X$x" | sed -e 's/^X-L//'`
6771 if test -n "$acl_shlibext"; then
6772 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
6773 found_dir="$dir"
6774 found_so="$dir/$libname$shrext"
6775 else
6776 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6777 ver=`(cd "$dir" && \
6778 for f in "$libname$shrext".*; do echo "$f"; done \
6779 | sed -e "s,^$libname$shrext\\\\.,," \
6780 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6781 | sed 1q ) 2>/dev/null`
6782 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
6783 found_dir="$dir"
6784 found_so="$dir/$libname$shrext.$ver"
6785 fi
6786 else
6787 eval library_names=\"$acl_library_names_spec\"
6788 for f in $library_names; do
6789 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
6790 found_dir="$dir"
6791 found_so="$dir/$f"
6792 break
6793 fi
6794 done
6795 fi
6796 fi
6797 fi
6798 if test "X$found_dir" = "X"; then
6799 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
6800 found_dir="$dir"
6801 found_a="$dir/$libname.$acl_libext"
6802 fi
6803 fi
6804 if test "X$found_dir" != "X"; then
6805 if test -f "$dir/$libname.la"; then
6806 found_la="$dir/$libname.la"
6807 fi
6808 fi
6809 ;;
6810 esac
6811 if test "X$found_dir" != "X"; then
6812 break
6813 fi
6814 done
6815 fi
6816 if test "X$found_dir" != "X"; then
6817 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6818 if test "X$found_so" != "X"; then
6819 if test "$enable_rpath" = no \
6820 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6821 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
6822 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
6823 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6824 else
6825 haveit=
6826 for x in $ltrpathdirs; do
6827 if test "X$x" = "X$found_dir"; then
6828 haveit=yes
6829 break
6830 fi
6831 done
6832 if test -z "$haveit"; then
6833 ltrpathdirs="$ltrpathdirs $found_dir"
6834 fi
6835 if test "$acl_hardcode_direct" = yes; then
6836 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6837 else
6838 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6839 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6840 haveit=
6841 for x in $rpathdirs; do
6842 if test "X$x" = "X$found_dir"; then
6843 haveit=yes
6844 break
6845 fi
6846 done
6847 if test -z "$haveit"; then
6848 rpathdirs="$rpathdirs $found_dir"
6849 fi
6850 else
6851 haveit=
6852 for x in $LDFLAGS $LIBICONV; do
6853
6854 acl_save_prefix="$prefix"
6855 prefix="$acl_final_prefix"
6856 acl_save_exec_prefix="$exec_prefix"
6857 exec_prefix="$acl_final_exec_prefix"
6858 eval x=\"$x\"
6859 exec_prefix="$acl_save_exec_prefix"
6860 prefix="$acl_save_prefix"
6861
6862 if test "X$x" = "X-L$found_dir"; then
6863 haveit=yes
6864 break
6865 fi
6866 done
6867 if test -z "$haveit"; then
6868 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6869 fi
6870 if test "$acl_hardcode_minus_L" != no; then
6871 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6872 else
6873 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6874 fi
6875 fi
6876 fi
6877 fi
6878 else
6879 if test "X$found_a" != "X"; then
6880 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6881 else
6882 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6883 fi
6884 fi
6885 additional_includedir=
6886 case "$found_dir" in
6887 */$acl_libdirstem | */$acl_libdirstem/)
6888 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6889 if test "$name" = 'iconv'; then
6890 LIBICONV_PREFIX="$basedir"
6891 fi
6892 additional_includedir="$basedir/include"
6893 ;;
6894 */$acl_libdirstem2 | */$acl_libdirstem2/)
6895 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6896 if test "$name" = 'iconv'; then
6897 LIBICONV_PREFIX="$basedir"
6898 fi
6899 additional_includedir="$basedir/include"
6900 ;;
6901 */$acl_libdirstem3 | */$acl_libdirstem3/)
6902 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
6903 if test "$name" = 'iconv'; then
6904 LIBICONV_PREFIX="$basedir"
6905 fi
6906 additional_includedir="$basedir/include"
6907 ;;
6908 esac
6909 if test "X$additional_includedir" != "X"; then
6910 if test "X$additional_includedir" != "X/usr/include"; then
6911 haveit=
6912 if test "X$additional_includedir" = "X/usr/local/include"; then
6913 if test -n "$GCC"; then
6914 case $host_os in
6915 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6916 esac
6917 fi
6918 fi
6919 if test -z "$haveit"; then
6920 for x in $CPPFLAGS $INCICONV; do
6921
6922 acl_save_prefix="$prefix"
6923 prefix="$acl_final_prefix"
6924 acl_save_exec_prefix="$exec_prefix"
6925 exec_prefix="$acl_final_exec_prefix"
6926 eval x=\"$x\"
6927 exec_prefix="$acl_save_exec_prefix"
6928 prefix="$acl_save_prefix"
6929
6930 if test "X$x" = "X-I$additional_includedir"; then
6931 haveit=yes
6932 break
6933 fi
6934 done
6935 if test -z "$haveit"; then
6936 if test -d "$additional_includedir"; then
6937 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6938 fi
6939 fi
6940 fi
6941 fi
6942 fi
6943 if test -n "$found_la"; then
6944 save_libdir="$libdir"
6945 case "$found_la" in
6946 */* | *\\*) . "$found_la" ;;
6947 *) . "./$found_la" ;;
6948 esac
6949 libdir="$save_libdir"
6950 for dep in $dependency_libs; do
6951 case "$dep" in
6952 -L*)
6953 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6954 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
6955 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
6956 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
6957 haveit=
6958 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
6959 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
6960 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
6961 if test -n "$GCC"; then
6962 case $host_os in
6963 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6964 esac
6965 fi
6966 fi
6967 if test -z "$haveit"; then
6968 haveit=
6969 for x in $LDFLAGS $LIBICONV; do
6970
6971 acl_save_prefix="$prefix"
6972 prefix="$acl_final_prefix"
6973 acl_save_exec_prefix="$exec_prefix"
6974 exec_prefix="$acl_final_exec_prefix"
6975 eval x=\"$x\"
6976 exec_prefix="$acl_save_exec_prefix"
6977 prefix="$acl_save_prefix"
6978
6979 if test "X$x" = "X-L$dependency_libdir"; then
6980 haveit=yes
6981 break
6982 fi
6983 done
6984 if test -z "$haveit"; then
6985 if test -d "$dependency_libdir"; then
6986 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
6987 fi
6988 fi
6989 haveit=
6990 for x in $LDFLAGS $LTLIBICONV; do
6991
6992 acl_save_prefix="$prefix"
6993 prefix="$acl_final_prefix"
6994 acl_save_exec_prefix="$exec_prefix"
6995 exec_prefix="$acl_final_exec_prefix"
6996 eval x=\"$x\"
6997 exec_prefix="$acl_save_exec_prefix"
6998 prefix="$acl_save_prefix"
6999
7000 if test "X$x" = "X-L$dependency_libdir"; then
7001 haveit=yes
7002 break
7003 fi
7004 done
7005 if test -z "$haveit"; then
7006 if test -d "$dependency_libdir"; then
7007 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
7008 fi
7009 fi
7010 fi
7011 fi
7012 ;;
7013 -R*)
7014 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7015 if test "$enable_rpath" != no; then
7016 haveit=
7017 for x in $rpathdirs; do
7018 if test "X$x" = "X$dir"; then
7019 haveit=yes
7020 break
7021 fi
7022 done
7023 if test -z "$haveit"; then
7024 rpathdirs="$rpathdirs $dir"
7025 fi
7026 haveit=
7027 for x in $ltrpathdirs; do
7028 if test "X$x" = "X$dir"; then
7029 haveit=yes
7030 break
7031 fi
7032 done
7033 if test -z "$haveit"; then
7034 ltrpathdirs="$ltrpathdirs $dir"
7035 fi
7036 fi
7037 ;;
7038 -l*)
7039 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7040 ;;
7041 *.la)
7042 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7043 ;;
7044 *)
7045 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7046 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7047 ;;
7048 esac
7049 done
7050 fi
7051 else
7052 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7053 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7054 fi
7055 fi
7056 fi
7057 done
7058 done
7059 if test "X$rpathdirs" != "X"; then
7060 if test -n "$acl_hardcode_libdir_separator"; then
7061 alldirs=
7062 for found_dir in $rpathdirs; do
7063 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7064 done
7065 acl_save_libdir="$libdir"
7066 libdir="$alldirs"
7067 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7068 libdir="$acl_save_libdir"
7069 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7070 else
7071 for found_dir in $rpathdirs; do
7072 acl_save_libdir="$libdir"
7073 libdir="$found_dir"
7074 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7075 libdir="$acl_save_libdir"
7076 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7077 done
7078 fi
7079 fi
7080 if test "X$ltrpathdirs" != "X"; then
7081 for found_dir in $ltrpathdirs; do
7082 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7083 done
7084 fi
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7115 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
7116 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
7117 then :
7118 printf %s "(cached) " >&6
7119 else $as_nop
7120 gt_save_LIBS="$LIBS"
7121 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7124 #include <CoreFoundation/CFPreferences.h>
7125 int
7126 main (void)
7127 {
7128 CFPreferencesCopyAppValue(NULL, NULL)
7129 ;
7130 return 0;
7131 }
7132 _ACEOF
7133 if ac_fn_c_try_link "$LINENO"
7134 then :
7135 gt_cv_func_CFPreferencesCopyAppValue=yes
7136 else $as_nop
7137 gt_cv_func_CFPreferencesCopyAppValue=no
7138 fi
7139 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7140 conftest$ac_exeext conftest.$ac_ext
7141 LIBS="$gt_save_LIBS"
7142 fi
7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7144 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7145 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7146
7147 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7148
7149 fi
7150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
7151 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
7152 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
7153 then :
7154 printf %s "(cached) " >&6
7155 else $as_nop
7156 gt_save_LIBS="$LIBS"
7157 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 #include <CoreFoundation/CFLocale.h>
7161 int
7162 main (void)
7163 {
7164 CFLocaleCopyPreferredLanguages();
7165 ;
7166 return 0;
7167 }
7168 _ACEOF
7169 if ac_fn_c_try_link "$LINENO"
7170 then :
7171 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
7172 else $as_nop
7173 gt_cv_func_CFLocaleCopyPreferredLanguages=no
7174 fi
7175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7176 conftest$ac_exeext conftest.$ac_ext
7177 LIBS="$gt_save_LIBS"
7178 fi
7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
7180 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
7181 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7182
7183 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
7184
7185 fi
7186 INTL_MACOSX_LIBS=
7187 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
7188 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7189 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7190 fi
7191
7192
7193
7194
7195
7196
7197 LIBINTL=
7198 LTLIBINTL=
7199 POSUB=
7200
7201 case " $gt_needs " in
7202 *" need-formatstring-macros "*) gt_api_version=3 ;;
7203 *" need-ngettext "*) gt_api_version=2 ;;
7204 *) gt_api_version=1 ;;
7205 esac
7206 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7207 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7208
7209 if test "$USE_NLS" = "yes"; then
7210 gt_use_preinstalled_gnugettext=no
7211
7212
7213 if test $gt_api_version -ge 3; then
7214 gt_revision_test_code='
7215 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7216 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7217 #endif
7218 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7219 '
7220 else
7221 gt_revision_test_code=
7222 fi
7223 if test $gt_api_version -ge 2; then
7224 gt_expression_test_code=' + * ngettext ("", "", 0)'
7225 else
7226 gt_expression_test_code=
7227 fi
7228
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7230 printf %s "checking for GNU gettext in libc... " >&6; }
7231 if eval test \${$gt_func_gnugettext_libc+y}
7232 then :
7233 printf %s "(cached) " >&6
7234 else $as_nop
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7237
7238 #include <libintl.h>
7239 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7240 extern int _nl_msg_cat_cntr;
7241 extern int *_nl_domain_bindings;
7242 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
7243 #else
7244 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7245 #endif
7246 $gt_revision_test_code
7247
7248 int
7249 main (void)
7250 {
7251
7252 bindtextdomain ("", "");
7253 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7254
7255 ;
7256 return 0;
7257 }
7258 _ACEOF
7259 if ac_fn_c_try_link "$LINENO"
7260 then :
7261 eval "$gt_func_gnugettext_libc=yes"
7262 else $as_nop
7263 eval "$gt_func_gnugettext_libc=no"
7264 fi
7265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7266 conftest$ac_exeext conftest.$ac_ext
7267 fi
7268 eval ac_res=\$$gt_func_gnugettext_libc
7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7270 printf "%s\n" "$ac_res" >&6; }
7271
7272 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7273
7274
7275
7276
7277
7278 am_save_CPPFLAGS="$CPPFLAGS"
7279
7280 for element in $INCICONV; do
7281 haveit=
7282 for x in $CPPFLAGS; do
7283
7284 acl_save_prefix="$prefix"
7285 prefix="$acl_final_prefix"
7286 acl_save_exec_prefix="$exec_prefix"
7287 exec_prefix="$acl_final_exec_prefix"
7288 eval x=\"$x\"
7289 exec_prefix="$acl_save_exec_prefix"
7290 prefix="$acl_save_prefix"
7291
7292 if test "X$x" = "X$element"; then
7293 haveit=yes
7294 break
7295 fi
7296 done
7297 if test -z "$haveit"; then
7298 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7299 fi
7300 done
7301
7302
7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7304 printf %s "checking for iconv... " >&6; }
7305 if test ${am_cv_func_iconv+y}
7306 then :
7307 printf %s "(cached) " >&6
7308 else $as_nop
7309
7310 am_cv_func_iconv="no, consider installing GNU libiconv"
7311 am_cv_lib_iconv=no
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314
7315 #include <stdlib.h>
7316 #include <iconv.h>
7317
7318 int
7319 main (void)
7320 {
7321 iconv_t cd = iconv_open("","");
7322 iconv(cd,NULL,NULL,NULL,NULL);
7323 iconv_close(cd);
7324 ;
7325 return 0;
7326 }
7327 _ACEOF
7328 if ac_fn_c_try_link "$LINENO"
7329 then :
7330 am_cv_func_iconv=yes
7331 fi
7332 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7333 conftest$ac_exeext conftest.$ac_ext
7334 if test "$am_cv_func_iconv" != yes; then
7335 am_save_LIBS="$LIBS"
7336 LIBS="$LIBS $LIBICONV"
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339
7340 #include <stdlib.h>
7341 #include <iconv.h>
7342
7343 int
7344 main (void)
7345 {
7346 iconv_t cd = iconv_open("","");
7347 iconv(cd,NULL,NULL,NULL,NULL);
7348 iconv_close(cd);
7349 ;
7350 return 0;
7351 }
7352 _ACEOF
7353 if ac_fn_c_try_link "$LINENO"
7354 then :
7355 am_cv_lib_iconv=yes
7356 am_cv_func_iconv=yes
7357 fi
7358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7359 conftest$ac_exeext conftest.$ac_ext
7360 LIBS="$am_save_LIBS"
7361 fi
7362
7363 fi
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7365 printf "%s\n" "$am_cv_func_iconv" >&6; }
7366 if test "$am_cv_func_iconv" = yes; then
7367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7368 printf %s "checking for working iconv... " >&6; }
7369 if test ${am_cv_func_iconv_works+y}
7370 then :
7371 printf %s "(cached) " >&6
7372 else $as_nop
7373
7374 am_save_LIBS="$LIBS"
7375 if test $am_cv_lib_iconv = yes; then
7376 LIBS="$LIBS $LIBICONV"
7377 fi
7378 am_cv_func_iconv_works=no
7379 for ac_iconv_const in '' 'const'; do
7380 if test "$cross_compiling" = yes
7381 then :
7382 case "$host_os" in
7383 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7384 *) am_cv_func_iconv_works="guessing yes" ;;
7385 esac
7386 else $as_nop
7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h. */
7389
7390 #include <iconv.h>
7391 #include <string.h>
7392
7393 #ifndef ICONV_CONST
7394 # define ICONV_CONST $ac_iconv_const
7395 #endif
7396
7397 int
7398 main (void)
7399 {
7400 int result = 0;
7401 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7402 returns. */
7403 {
7404 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7405 if (cd_utf8_to_88591 != (iconv_t)(-1))
7406 {
7407 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
7408 char buf[10];
7409 ICONV_CONST char *inptr = input;
7410 size_t inbytesleft = strlen (input);
7411 char *outptr = buf;
7412 size_t outbytesleft = sizeof (buf);
7413 size_t res = iconv (cd_utf8_to_88591,
7414 &inptr, &inbytesleft,
7415 &outptr, &outbytesleft);
7416 if (res == 0)
7417 result |= 1;
7418 iconv_close (cd_utf8_to_88591);
7419 }
7420 }
7421 /* Test against Solaris 10 bug: Failures are not distinguishable from
7422 successful returns. */
7423 {
7424 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7425 if (cd_ascii_to_88591 != (iconv_t)(-1))
7426 {
7427 static ICONV_CONST char input[] = "\263";
7428 char buf[10];
7429 ICONV_CONST char *inptr = input;
7430 size_t inbytesleft = strlen (input);
7431 char *outptr = buf;
7432 size_t outbytesleft = sizeof (buf);
7433 size_t res = iconv (cd_ascii_to_88591,
7434 &inptr, &inbytesleft,
7435 &outptr, &outbytesleft);
7436 if (res == 0)
7437 result |= 2;
7438 iconv_close (cd_ascii_to_88591);
7439 }
7440 }
7441 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
7442 {
7443 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
7444 if (cd_88591_to_utf8 != (iconv_t)(-1))
7445 {
7446 static ICONV_CONST char input[] = "\304";
7447 static char buf[2] = { (char)0xDE, (char)0xAD };
7448 ICONV_CONST char *inptr = input;
7449 size_t inbytesleft = 1;
7450 char *outptr = buf;
7451 size_t outbytesleft = 1;
7452 size_t res = iconv (cd_88591_to_utf8,
7453 &inptr, &inbytesleft,
7454 &outptr, &outbytesleft);
7455 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
7456 result |= 4;
7457 iconv_close (cd_88591_to_utf8);
7458 }
7459 }
7460 #if 0 /* This bug could be worked around by the caller. */
7461 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7462 {
7463 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7464 if (cd_88591_to_utf8 != (iconv_t)(-1))
7465 {
7466 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7467 char buf[50];
7468 ICONV_CONST char *inptr = input;
7469 size_t inbytesleft = strlen (input);
7470 char *outptr = buf;
7471 size_t outbytesleft = sizeof (buf);
7472 size_t res = iconv (cd_88591_to_utf8,
7473 &inptr, &inbytesleft,
7474 &outptr, &outbytesleft);
7475 if ((int)res > 0)
7476 result |= 8;
7477 iconv_close (cd_88591_to_utf8);
7478 }
7479 }
7480 #endif
7481 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7482 provided. */
7483 {
7484 /* Try standardized names. */
7485 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
7486 /* Try IRIX, OSF/1 names. */
7487 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
7488 /* Try AIX names. */
7489 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
7490 /* Try HP-UX names. */
7491 iconv_t cd4 = iconv_open ("utf8", "eucJP");
7492 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
7493 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
7494 result |= 16;
7495 if (cd1 != (iconv_t)(-1))
7496 iconv_close (cd1);
7497 if (cd2 != (iconv_t)(-1))
7498 iconv_close (cd2);
7499 if (cd3 != (iconv_t)(-1))
7500 iconv_close (cd3);
7501 if (cd4 != (iconv_t)(-1))
7502 iconv_close (cd4);
7503 }
7504 return result;
7505
7506 ;
7507 return 0;
7508 }
7509 _ACEOF
7510 if ac_fn_c_try_run "$LINENO"
7511 then :
7512 am_cv_func_iconv_works=yes
7513 fi
7514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7515 conftest.$ac_objext conftest.beam conftest.$ac_ext
7516 fi
7517
7518 test "$am_cv_func_iconv_works" = no || break
7519 done
7520 LIBS="$am_save_LIBS"
7521
7522 fi
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7524 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
7525 case "$am_cv_func_iconv_works" in
7526 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7527 *) am_func_iconv=yes ;;
7528 esac
7529 else
7530 am_func_iconv=no am_cv_lib_iconv=no
7531 fi
7532 if test "$am_func_iconv" = yes; then
7533
7534 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
7535
7536 fi
7537 if test "$am_cv_lib_iconv" = yes; then
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7539 printf %s "checking how to link with libiconv... " >&6; }
7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7541 printf "%s\n" "$LIBICONV" >&6; }
7542 else
7543 CPPFLAGS="$am_save_CPPFLAGS"
7544 LIBICONV=
7545 LTLIBICONV=
7546 fi
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557 use_additional=yes
7558
7559 acl_save_prefix="$prefix"
7560 prefix="$acl_final_prefix"
7561 acl_save_exec_prefix="$exec_prefix"
7562 exec_prefix="$acl_final_exec_prefix"
7563
7564 eval additional_includedir=\"$includedir\"
7565 eval additional_libdir=\"$libdir\"
7566 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7567 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7568
7569 exec_prefix="$acl_save_exec_prefix"
7570 prefix="$acl_save_prefix"
7571
7572
7573 # Check whether --with-libintl-prefix was given.
7574 if test ${with_libintl_prefix+y}
7575 then :
7576 withval=$with_libintl_prefix;
7577 if test "X$withval" = "Xno"; then
7578 use_additional=no
7579 else
7580 if test "X$withval" = "X"; then
7581
7582 acl_save_prefix="$prefix"
7583 prefix="$acl_final_prefix"
7584 acl_save_exec_prefix="$exec_prefix"
7585 exec_prefix="$acl_final_exec_prefix"
7586
7587 eval additional_includedir=\"$includedir\"
7588 eval additional_libdir=\"$libdir\"
7589 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7590 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7591
7592 exec_prefix="$acl_save_exec_prefix"
7593 prefix="$acl_save_prefix"
7594
7595 else
7596 additional_includedir="$withval/include"
7597 additional_libdir="$withval/$acl_libdirstem"
7598 additional_libdir2="$withval/$acl_libdirstem2"
7599 additional_libdir3="$withval/$acl_libdirstem3"
7600 fi
7601 fi
7602
7603 fi
7604
7605 if test "X$additional_libdir2" = "X$additional_libdir"; then
7606 additional_libdir2=
7607 fi
7608 if test "X$additional_libdir3" = "X$additional_libdir"; then
7609 additional_libdir3=
7610 fi
7611 LIBINTL=
7612 LTLIBINTL=
7613 INCINTL=
7614 LIBINTL_PREFIX=
7615 HAVE_LIBINTL=
7616 rpathdirs=
7617 ltrpathdirs=
7618 names_already_handled=
7619 names_next_round='intl '
7620 while test -n "$names_next_round"; do
7621 names_this_round="$names_next_round"
7622 names_next_round=
7623 for name in $names_this_round; do
7624 already_handled=
7625 for n in $names_already_handled; do
7626 if test "$n" = "$name"; then
7627 already_handled=yes
7628 break
7629 fi
7630 done
7631 if test -z "$already_handled"; then
7632 names_already_handled="$names_already_handled $name"
7633 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7634 eval value=\"\$HAVE_LIB$uppername\"
7635 if test -n "$value"; then
7636 if test "$value" = yes; then
7637 eval value=\"\$LIB$uppername\"
7638 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7639 eval value=\"\$LTLIB$uppername\"
7640 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7641 else
7642 :
7643 fi
7644 else
7645 found_dir=
7646 found_la=
7647 found_so=
7648 found_a=
7649 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7650 if test -n "$acl_shlibext"; then
7651 shrext=".$acl_shlibext" # typically: shrext=.so
7652 else
7653 shrext=
7654 fi
7655 if test $use_additional = yes; then
7656 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
7657 if test "X$found_dir" = "X"; then
7658 eval dir=\$$additional_libdir_variable
7659 if test -n "$dir"; then
7660 if test -n "$acl_shlibext"; then
7661 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
7662 found_dir="$dir"
7663 found_so="$dir/$libname$shrext"
7664 else
7665 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7666 ver=`(cd "$dir" && \
7667 for f in "$libname$shrext".*; do echo "$f"; done \
7668 | sed -e "s,^$libname$shrext\\\\.,," \
7669 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7670 | sed 1q ) 2>/dev/null`
7671 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
7672 found_dir="$dir"
7673 found_so="$dir/$libname$shrext.$ver"
7674 fi
7675 else
7676 eval library_names=\"$acl_library_names_spec\"
7677 for f in $library_names; do
7678 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
7679 found_dir="$dir"
7680 found_so="$dir/$f"
7681 break
7682 fi
7683 done
7684 fi
7685 fi
7686 fi
7687 if test "X$found_dir" = "X"; then
7688 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
7689 found_dir="$dir"
7690 found_a="$dir/$libname.$acl_libext"
7691 fi
7692 fi
7693 if test "X$found_dir" != "X"; then
7694 if test -f "$dir/$libname.la"; then
7695 found_la="$dir/$libname.la"
7696 fi
7697 fi
7698 fi
7699 fi
7700 done
7701 fi
7702 if test "X$found_dir" = "X"; then
7703 for x in $LDFLAGS $LTLIBINTL; do
7704
7705 acl_save_prefix="$prefix"
7706 prefix="$acl_final_prefix"
7707 acl_save_exec_prefix="$exec_prefix"
7708 exec_prefix="$acl_final_exec_prefix"
7709 eval x=\"$x\"
7710 exec_prefix="$acl_save_exec_prefix"
7711 prefix="$acl_save_prefix"
7712
7713 case "$x" in
7714 -L*)
7715 dir=`echo "X$x" | sed -e 's/^X-L//'`
7716 if test -n "$acl_shlibext"; then
7717 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
7718 found_dir="$dir"
7719 found_so="$dir/$libname$shrext"
7720 else
7721 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7722 ver=`(cd "$dir" && \
7723 for f in "$libname$shrext".*; do echo "$f"; done \
7724 | sed -e "s,^$libname$shrext\\\\.,," \
7725 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7726 | sed 1q ) 2>/dev/null`
7727 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
7728 found_dir="$dir"
7729 found_so="$dir/$libname$shrext.$ver"
7730 fi
7731 else
7732 eval library_names=\"$acl_library_names_spec\"
7733 for f in $library_names; do
7734 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
7735 found_dir="$dir"
7736 found_so="$dir/$f"
7737 break
7738 fi
7739 done
7740 fi
7741 fi
7742 fi
7743 if test "X$found_dir" = "X"; then
7744 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
7745 found_dir="$dir"
7746 found_a="$dir/$libname.$acl_libext"
7747 fi
7748 fi
7749 if test "X$found_dir" != "X"; then
7750 if test -f "$dir/$libname.la"; then
7751 found_la="$dir/$libname.la"
7752 fi
7753 fi
7754 ;;
7755 esac
7756 if test "X$found_dir" != "X"; then
7757 break
7758 fi
7759 done
7760 fi
7761 if test "X$found_dir" != "X"; then
7762 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7763 if test "X$found_so" != "X"; then
7764 if test "$enable_rpath" = no \
7765 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7766 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
7767 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
7768 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7769 else
7770 haveit=
7771 for x in $ltrpathdirs; do
7772 if test "X$x" = "X$found_dir"; then
7773 haveit=yes
7774 break
7775 fi
7776 done
7777 if test -z "$haveit"; then
7778 ltrpathdirs="$ltrpathdirs $found_dir"
7779 fi
7780 if test "$acl_hardcode_direct" = yes; then
7781 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7782 else
7783 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7784 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7785 haveit=
7786 for x in $rpathdirs; do
7787 if test "X$x" = "X$found_dir"; then
7788 haveit=yes
7789 break
7790 fi
7791 done
7792 if test -z "$haveit"; then
7793 rpathdirs="$rpathdirs $found_dir"
7794 fi
7795 else
7796 haveit=
7797 for x in $LDFLAGS $LIBINTL; do
7798
7799 acl_save_prefix="$prefix"
7800 prefix="$acl_final_prefix"
7801 acl_save_exec_prefix="$exec_prefix"
7802 exec_prefix="$acl_final_exec_prefix"
7803 eval x=\"$x\"
7804 exec_prefix="$acl_save_exec_prefix"
7805 prefix="$acl_save_prefix"
7806
7807 if test "X$x" = "X-L$found_dir"; then
7808 haveit=yes
7809 break
7810 fi
7811 done
7812 if test -z "$haveit"; then
7813 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7814 fi
7815 if test "$acl_hardcode_minus_L" != no; then
7816 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7817 else
7818 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7819 fi
7820 fi
7821 fi
7822 fi
7823 else
7824 if test "X$found_a" != "X"; then
7825 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7826 else
7827 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7828 fi
7829 fi
7830 additional_includedir=
7831 case "$found_dir" in
7832 */$acl_libdirstem | */$acl_libdirstem/)
7833 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7834 if test "$name" = 'intl'; then
7835 LIBINTL_PREFIX="$basedir"
7836 fi
7837 additional_includedir="$basedir/include"
7838 ;;
7839 */$acl_libdirstem2 | */$acl_libdirstem2/)
7840 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7841 if test "$name" = 'intl'; then
7842 LIBINTL_PREFIX="$basedir"
7843 fi
7844 additional_includedir="$basedir/include"
7845 ;;
7846 */$acl_libdirstem3 | */$acl_libdirstem3/)
7847 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
7848 if test "$name" = 'intl'; then
7849 LIBINTL_PREFIX="$basedir"
7850 fi
7851 additional_includedir="$basedir/include"
7852 ;;
7853 esac
7854 if test "X$additional_includedir" != "X"; then
7855 if test "X$additional_includedir" != "X/usr/include"; then
7856 haveit=
7857 if test "X$additional_includedir" = "X/usr/local/include"; then
7858 if test -n "$GCC"; then
7859 case $host_os in
7860 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7861 esac
7862 fi
7863 fi
7864 if test -z "$haveit"; then
7865 for x in $CPPFLAGS $INCINTL; do
7866
7867 acl_save_prefix="$prefix"
7868 prefix="$acl_final_prefix"
7869 acl_save_exec_prefix="$exec_prefix"
7870 exec_prefix="$acl_final_exec_prefix"
7871 eval x=\"$x\"
7872 exec_prefix="$acl_save_exec_prefix"
7873 prefix="$acl_save_prefix"
7874
7875 if test "X$x" = "X-I$additional_includedir"; then
7876 haveit=yes
7877 break
7878 fi
7879 done
7880 if test -z "$haveit"; then
7881 if test -d "$additional_includedir"; then
7882 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7883 fi
7884 fi
7885 fi
7886 fi
7887 fi
7888 if test -n "$found_la"; then
7889 save_libdir="$libdir"
7890 case "$found_la" in
7891 */* | *\\*) . "$found_la" ;;
7892 *) . "./$found_la" ;;
7893 esac
7894 libdir="$save_libdir"
7895 for dep in $dependency_libs; do
7896 case "$dep" in
7897 -L*)
7898 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7899 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
7900 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
7901 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
7902 haveit=
7903 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
7904 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
7905 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
7906 if test -n "$GCC"; then
7907 case $host_os in
7908 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7909 esac
7910 fi
7911 fi
7912 if test -z "$haveit"; then
7913 haveit=
7914 for x in $LDFLAGS $LIBINTL; do
7915
7916 acl_save_prefix="$prefix"
7917 prefix="$acl_final_prefix"
7918 acl_save_exec_prefix="$exec_prefix"
7919 exec_prefix="$acl_final_exec_prefix"
7920 eval x=\"$x\"
7921 exec_prefix="$acl_save_exec_prefix"
7922 prefix="$acl_save_prefix"
7923
7924 if test "X$x" = "X-L$dependency_libdir"; then
7925 haveit=yes
7926 break
7927 fi
7928 done
7929 if test -z "$haveit"; then
7930 if test -d "$dependency_libdir"; then
7931 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
7932 fi
7933 fi
7934 haveit=
7935 for x in $LDFLAGS $LTLIBINTL; do
7936
7937 acl_save_prefix="$prefix"
7938 prefix="$acl_final_prefix"
7939 acl_save_exec_prefix="$exec_prefix"
7940 exec_prefix="$acl_final_exec_prefix"
7941 eval x=\"$x\"
7942 exec_prefix="$acl_save_exec_prefix"
7943 prefix="$acl_save_prefix"
7944
7945 if test "X$x" = "X-L$dependency_libdir"; then
7946 haveit=yes
7947 break
7948 fi
7949 done
7950 if test -z "$haveit"; then
7951 if test -d "$dependency_libdir"; then
7952 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
7953 fi
7954 fi
7955 fi
7956 fi
7957 ;;
7958 -R*)
7959 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7960 if test "$enable_rpath" != no; then
7961 haveit=
7962 for x in $rpathdirs; do
7963 if test "X$x" = "X$dir"; then
7964 haveit=yes
7965 break
7966 fi
7967 done
7968 if test -z "$haveit"; then
7969 rpathdirs="$rpathdirs $dir"
7970 fi
7971 haveit=
7972 for x in $ltrpathdirs; do
7973 if test "X$x" = "X$dir"; then
7974 haveit=yes
7975 break
7976 fi
7977 done
7978 if test -z "$haveit"; then
7979 ltrpathdirs="$ltrpathdirs $dir"
7980 fi
7981 fi
7982 ;;
7983 -l*)
7984 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7985 ;;
7986 *.la)
7987 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7988 ;;
7989 *)
7990 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7991 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7992 ;;
7993 esac
7994 done
7995 fi
7996 else
7997 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7998 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7999 fi
8000 fi
8001 fi
8002 done
8003 done
8004 if test "X$rpathdirs" != "X"; then
8005 if test -n "$acl_hardcode_libdir_separator"; then
8006 alldirs=
8007 for found_dir in $rpathdirs; do
8008 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8009 done
8010 acl_save_libdir="$libdir"
8011 libdir="$alldirs"
8012 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8013 libdir="$acl_save_libdir"
8014 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8015 else
8016 for found_dir in $rpathdirs; do
8017 acl_save_libdir="$libdir"
8018 libdir="$found_dir"
8019 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8020 libdir="$acl_save_libdir"
8021 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8022 done
8023 fi
8024 fi
8025 if test "X$ltrpathdirs" != "X"; then
8026 for found_dir in $ltrpathdirs; do
8027 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8028 done
8029 fi
8030
8031
8032
8033
8034
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8036 printf %s "checking for GNU gettext in libintl... " >&6; }
8037 if eval test \${$gt_func_gnugettext_libintl+y}
8038 then :
8039 printf %s "(cached) " >&6
8040 else $as_nop
8041 gt_save_CPPFLAGS="$CPPFLAGS"
8042 CPPFLAGS="$CPPFLAGS $INCINTL"
8043 gt_save_LIBS="$LIBS"
8044 LIBS="$LIBS $LIBINTL"
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047
8048 #include <libintl.h>
8049 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8050 extern int _nl_msg_cat_cntr;
8051 extern
8052 #ifdef __cplusplus
8053 "C"
8054 #endif
8055 const char *_nl_expand_alias (const char *);
8056 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8057 #else
8058 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8059 #endif
8060 $gt_revision_test_code
8061
8062 int
8063 main (void)
8064 {
8065
8066 bindtextdomain ("", "");
8067 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8068
8069 ;
8070 return 0;
8071 }
8072 _ACEOF
8073 if ac_fn_c_try_link "$LINENO"
8074 then :
8075 eval "$gt_func_gnugettext_libintl=yes"
8076 else $as_nop
8077 eval "$gt_func_gnugettext_libintl=no"
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8080 conftest$ac_exeext conftest.$ac_ext
8081 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8082 LIBS="$LIBS $LIBICONV"
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8085
8086 #include <libintl.h>
8087 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8088 extern int _nl_msg_cat_cntr;
8089 extern
8090 #ifdef __cplusplus
8091 "C"
8092 #endif
8093 const char *_nl_expand_alias (const char *);
8094 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8095 #else
8096 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8097 #endif
8098 $gt_revision_test_code
8099
8100 int
8101 main (void)
8102 {
8103
8104 bindtextdomain ("", "");
8105 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8106
8107 ;
8108 return 0;
8109 }
8110 _ACEOF
8111 if ac_fn_c_try_link "$LINENO"
8112 then :
8113 LIBINTL="$LIBINTL $LIBICONV"
8114 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8115 eval "$gt_func_gnugettext_libintl=yes"
8116
8117 fi
8118 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8119 conftest$ac_exeext conftest.$ac_ext
8120 fi
8121 CPPFLAGS="$gt_save_CPPFLAGS"
8122 LIBS="$gt_save_LIBS"
8123 fi
8124 eval ac_res=\$$gt_func_gnugettext_libintl
8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8126 printf "%s\n" "$ac_res" >&6; }
8127 fi
8128
8129 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8130 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8131 && test "$PACKAGE" != gettext-runtime \
8132 && test "$PACKAGE" != gettext-tools; }; then
8133 gt_use_preinstalled_gnugettext=yes
8134 else
8135 LIBINTL=
8136 LTLIBINTL=
8137 INCINTL=
8138 fi
8139
8140
8141
8142 if test -n "$INTL_MACOSX_LIBS"; then
8143 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8144 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8145 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8146 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8147 fi
8148 fi
8149
8150 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8151 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8152
8153 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
8154
8155 else
8156 USE_NLS=no
8157 fi
8158 fi
8159
8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8161 printf %s "checking whether to use NLS... " >&6; }
8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8163 printf "%s\n" "$USE_NLS" >&6; }
8164 if test "$USE_NLS" = "yes"; then
8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8166 printf %s "checking where the gettext function comes from... " >&6; }
8167 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8168 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8169 gt_source="external libintl"
8170 else
8171 gt_source="libc"
8172 fi
8173 else
8174 gt_source="included intl directory"
8175 fi
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8177 printf "%s\n" "$gt_source" >&6; }
8178 fi
8179
8180 if test "$USE_NLS" = "yes"; then
8181
8182 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8183 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8185 printf %s "checking how to link with libintl... " >&6; }
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8187 printf "%s\n" "$LIBINTL" >&6; }
8188
8189 for element in $INCINTL; do
8190 haveit=
8191 for x in $CPPFLAGS; do
8192
8193 acl_save_prefix="$prefix"
8194 prefix="$acl_final_prefix"
8195 acl_save_exec_prefix="$exec_prefix"
8196 exec_prefix="$acl_final_exec_prefix"
8197 eval x=\"$x\"
8198 exec_prefix="$acl_save_exec_prefix"
8199 prefix="$acl_save_prefix"
8200
8201 if test "X$x" = "X$element"; then
8202 haveit=yes
8203 break
8204 fi
8205 done
8206 if test -z "$haveit"; then
8207 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8208 fi
8209 done
8210
8211 fi
8212
8213
8214 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
8215
8216
8217 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
8218
8219 fi
8220
8221 POSUB=po
8222 fi
8223
8224
8225
8226 INTLLIBS="$LIBINTL"
8227
8228
8229
8230
8231
8232
8233
8234
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8236 printf %s "checking for nl_langinfo and CODESET... " >&6; }
8237 if test ${am_cv_langinfo_codeset+y}
8238 then :
8239 printf %s "(cached) " >&6
8240 else $as_nop
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8243 #include <langinfo.h>
8244 int
8245 main (void)
8246 {
8247 char* cs = nl_langinfo(CODESET); return !cs;
8248 ;
8249 return 0;
8250 }
8251 _ACEOF
8252 if ac_fn_c_try_link "$LINENO"
8253 then :
8254 am_cv_langinfo_codeset=yes
8255 else $as_nop
8256 am_cv_langinfo_codeset=no
8257 fi
8258 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8259 conftest$ac_exeext conftest.$ac_ext
8260
8261 fi
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8263 printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
8264 if test $am_cv_langinfo_codeset = yes; then
8265
8266 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8267
8268 fi
8269
8270
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8272 printf %s "checking for LC_MESSAGES... " >&6; }
8273 if test ${gt_cv_val_LC_MESSAGES+y}
8274 then :
8275 printf %s "(cached) " >&6
8276 else $as_nop
8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h. */
8279 #include <locale.h>
8280 int
8281 main (void)
8282 {
8283 return LC_MESSAGES
8284 ;
8285 return 0;
8286 }
8287 _ACEOF
8288 if ac_fn_c_try_link "$LINENO"
8289 then :
8290 gt_cv_val_LC_MESSAGES=yes
8291 else $as_nop
8292 gt_cv_val_LC_MESSAGES=no
8293 fi
8294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8295 conftest$ac_exeext conftest.$ac_ext
8296 fi
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
8298 printf "%s\n" "$gt_cv_val_LC_MESSAGES" >&6; }
8299 if test $gt_cv_val_LC_MESSAGES = yes; then
8300
8301 printf "%s\n" "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8302
8303 fi
8304
8305
8306 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8307 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
8308 then :
8309
8310 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
8311
8312
8313 fi
8314
8315
8316
8317 if test -n "$ac_tool_prefix"; then
8318 for ac_prog in ar lib "link -lib"
8319 do
8320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 printf %s "checking for $ac_word... " >&6; }
8324 if test ${ac_cv_prog_AR+y}
8325 then :
8326 printf %s "(cached) " >&6
8327 else $as_nop
8328 if test -n "$AR"; then
8329 ac_cv_prog_AR="$AR" # Let the user override the test.
8330 else
8331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332 for as_dir in $PATH
8333 do
8334 IFS=$as_save_IFS
8335 case $as_dir in #(((
8336 '') as_dir=./ ;;
8337 */) ;;
8338 *) as_dir=$as_dir/ ;;
8339 esac
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8344 break 2
8345 fi
8346 done
8347 done
8348 IFS=$as_save_IFS
8349
8350 fi
8351 fi
8352 AR=$ac_cv_prog_AR
8353 if test -n "$AR"; then
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8355 printf "%s\n" "$AR" >&6; }
8356 else
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 printf "%s\n" "no" >&6; }
8359 fi
8360
8361
8362 test -n "$AR" && break
8363 done
8364 fi
8365 if test -z "$AR"; then
8366 ac_ct_AR=$AR
8367 for ac_prog in ar lib "link -lib"
8368 do
8369 # Extract the first word of "$ac_prog", so it can be a program name with args.
8370 set dummy $ac_prog; ac_word=$2
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372 printf %s "checking for $ac_word... " >&6; }
8373 if test ${ac_cv_prog_ac_ct_AR+y}
8374 then :
8375 printf %s "(cached) " >&6
8376 else $as_nop
8377 if test -n "$ac_ct_AR"; then
8378 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8379 else
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8382 do
8383 IFS=$as_save_IFS
8384 case $as_dir in #(((
8385 '') as_dir=./ ;;
8386 */) ;;
8387 *) as_dir=$as_dir/ ;;
8388 esac
8389 for ac_exec_ext in '' $ac_executable_extensions; do
8390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8391 ac_cv_prog_ac_ct_AR="$ac_prog"
8392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8393 break 2
8394 fi
8395 done
8396 done
8397 IFS=$as_save_IFS
8398
8399 fi
8400 fi
8401 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8402 if test -n "$ac_ct_AR"; then
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8404 printf "%s\n" "$ac_ct_AR" >&6; }
8405 else
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 printf "%s\n" "no" >&6; }
8408 fi
8409
8410
8411 test -n "$ac_ct_AR" && break
8412 done
8413
8414 if test "x$ac_ct_AR" = x; then
8415 AR="false"
8416 else
8417 case $cross_compiling:$ac_tool_warned in
8418 yes:)
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8420 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8421 ac_tool_warned=yes ;;
8422 esac
8423 AR=$ac_ct_AR
8424 fi
8425 fi
8426
8427 : ${AR=ar}
8428
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8430 printf %s "checking the archiver ($AR) interface... " >&6; }
8431 if test ${am_cv_ar_interface+y}
8432 then :
8433 printf %s "(cached) " >&6
8434 else $as_nop
8435 ac_ext=c
8436 ac_cpp='$CPP $CPPFLAGS'
8437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8440
8441 am_cv_ar_interface=ar
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 int some_variable = 0;
8445 _ACEOF
8446 if ac_fn_c_try_compile "$LINENO"
8447 then :
8448 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8450 (eval $am_ar_try) 2>&5
8451 ac_status=$?
8452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8453 test $ac_status = 0; }
8454 if test "$ac_status" -eq 0; then
8455 am_cv_ar_interface=ar
8456 else
8457 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8459 (eval $am_ar_try) 2>&5
8460 ac_status=$?
8461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8462 test $ac_status = 0; }
8463 if test "$ac_status" -eq 0; then
8464 am_cv_ar_interface=lib
8465 else
8466 am_cv_ar_interface=unknown
8467 fi
8468 fi
8469 rm -f conftest.lib libconftest.a
8470
8471 fi
8472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8473 ac_ext=c
8474 ac_cpp='$CPP $CPPFLAGS'
8475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8478
8479 fi
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8481 printf "%s\n" "$am_cv_ar_interface" >&6; }
8482
8483 case $am_cv_ar_interface in
8484 ar)
8485 ;;
8486 lib)
8487 # Microsoft lib, so override with the ar-lib wrapper script.
8488 # FIXME: It is wrong to rewrite AR.
8489 # But if we don't then we get into trouble of one sort or another.
8490 # A longer-term fix would be to have automake use am__AR in this case,
8491 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8492 # similar.
8493 AR="$am_aux_dir/ar-lib $AR"
8494 ;;
8495 unknown)
8496 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8497 ;;
8498 esac
8499
8500 # Check whether --enable-largefile was given.
8501 if test ${enable_largefile+y}
8502 then :
8503 enableval=$enable_largefile;
8504 fi
8505
8506 if test "$enable_largefile" != no; then
8507
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8509 printf %s "checking for special C compiler options needed for large files... " >&6; }
8510 if test ${ac_cv_sys_largefile_CC+y}
8511 then :
8512 printf %s "(cached) " >&6
8513 else $as_nop
8514 ac_cv_sys_largefile_CC=no
8515 if test "$GCC" != yes; then
8516 ac_save_CC=$CC
8517 while :; do
8518 # IRIX 6.2 and later do not support large files by default,
8519 # so use the C compiler's -n32 option if that helps.
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8522 #include <sys/types.h>
8523 /* Check that off_t can represent 2**63 - 1 correctly.
8524 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8525 since some C++ compilers masquerading as C compilers
8526 incorrectly reject 9223372036854775807. */
8527 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8528 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8529 && LARGE_OFF_T % 2147483647 == 1)
8530 ? 1 : -1];
8531 int
8532 main (void)
8533 {
8534
8535 ;
8536 return 0;
8537 }
8538 _ACEOF
8539 if ac_fn_c_try_compile "$LINENO"
8540 then :
8541 break
8542 fi
8543 rm -f core conftest.err conftest.$ac_objext conftest.beam
8544 CC="$CC -n32"
8545 if ac_fn_c_try_compile "$LINENO"
8546 then :
8547 ac_cv_sys_largefile_CC=' -n32'; break
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext conftest.beam
8550 break
8551 done
8552 CC=$ac_save_CC
8553 rm -f conftest.$ac_ext
8554 fi
8555 fi
8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8557 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
8558 if test "$ac_cv_sys_largefile_CC" != no; then
8559 CC=$CC$ac_cv_sys_largefile_CC
8560 fi
8561
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8563 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8564 if test ${ac_cv_sys_file_offset_bits+y}
8565 then :
8566 printf %s "(cached) " >&6
8567 else $as_nop
8568 while :; do
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 #include <sys/types.h>
8572 /* Check that off_t can represent 2**63 - 1 correctly.
8573 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8574 since some C++ compilers masquerading as C compilers
8575 incorrectly reject 9223372036854775807. */
8576 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8577 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8578 && LARGE_OFF_T % 2147483647 == 1)
8579 ? 1 : -1];
8580 int
8581 main (void)
8582 {
8583
8584 ;
8585 return 0;
8586 }
8587 _ACEOF
8588 if ac_fn_c_try_compile "$LINENO"
8589 then :
8590 ac_cv_sys_file_offset_bits=no; break
8591 fi
8592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595 #define _FILE_OFFSET_BITS 64
8596 #include <sys/types.h>
8597 /* Check that off_t can represent 2**63 - 1 correctly.
8598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8599 since some C++ compilers masquerading as C compilers
8600 incorrectly reject 9223372036854775807. */
8601 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8603 && LARGE_OFF_T % 2147483647 == 1)
8604 ? 1 : -1];
8605 int
8606 main (void)
8607 {
8608
8609 ;
8610 return 0;
8611 }
8612 _ACEOF
8613 if ac_fn_c_try_compile "$LINENO"
8614 then :
8615 ac_cv_sys_file_offset_bits=64; break
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8618 ac_cv_sys_file_offset_bits=unknown
8619 break
8620 done
8621 fi
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8623 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
8624 case $ac_cv_sys_file_offset_bits in #(
8625 no | unknown) ;;
8626 *)
8627 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8628 ;;
8629 esac
8630 rm -rf conftest*
8631 if test $ac_cv_sys_file_offset_bits = unknown; then
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8633 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8634 if test ${ac_cv_sys_large_files+y}
8635 then :
8636 printf %s "(cached) " >&6
8637 else $as_nop
8638 while :; do
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8641 #include <sys/types.h>
8642 /* Check that off_t can represent 2**63 - 1 correctly.
8643 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8644 since some C++ compilers masquerading as C compilers
8645 incorrectly reject 9223372036854775807. */
8646 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8647 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8648 && LARGE_OFF_T % 2147483647 == 1)
8649 ? 1 : -1];
8650 int
8651 main (void)
8652 {
8653
8654 ;
8655 return 0;
8656 }
8657 _ACEOF
8658 if ac_fn_c_try_compile "$LINENO"
8659 then :
8660 ac_cv_sys_large_files=no; break
8661 fi
8662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8665 #define _LARGE_FILES 1
8666 #include <sys/types.h>
8667 /* Check that off_t can represent 2**63 - 1 correctly.
8668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8669 since some C++ compilers masquerading as C compilers
8670 incorrectly reject 9223372036854775807. */
8671 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8673 && LARGE_OFF_T % 2147483647 == 1)
8674 ? 1 : -1];
8675 int
8676 main (void)
8677 {
8678
8679 ;
8680 return 0;
8681 }
8682 _ACEOF
8683 if ac_fn_c_try_compile "$LINENO"
8684 then :
8685 ac_cv_sys_large_files=1; break
8686 fi
8687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8688 ac_cv_sys_large_files=unknown
8689 break
8690 done
8691 fi
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8693 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8694 case $ac_cv_sys_large_files in #(
8695 no | unknown) ;;
8696 *)
8697 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8698 ;;
8699 esac
8700 rm -rf conftest*
8701 fi
8702 fi
8703
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5
8705 printf %s "checking whether C compiler accepts ... " >&6; }
8706 if test ${ax_cv_check_cflags__+y}
8707 then :
8708 printf %s "(cached) " >&6
8709 else $as_nop
8710
8711 ax_check_save_flags=$CFLAGS
8712 CFLAGS="$CFLAGS "
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h. */
8715
8716 int
8717 main (void)
8718 {
8719
8720 ;
8721 return 0;
8722 }
8723 _ACEOF
8724 if ac_fn_c_try_compile "$LINENO"
8725 then :
8726 ax_cv_check_cflags__=yes
8727 else $as_nop
8728 ax_cv_check_cflags__=no
8729 fi
8730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8731 CFLAGS=$ax_check_save_flags
8732 fi
8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5
8734 printf "%s\n" "$ax_cv_check_cflags__" >&6; }
8735 if test "x$ax_cv_check_cflags__" = xyes
8736 then :
8737 :
8738 else $as_nop
8739 :
8740 fi
8741
8742
8743
8744 # The cast to long int works around a bug in the HP C Compiler
8745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8747 # This bug is HP SR number 8606223364.
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8749 printf %s "checking size of void *... " >&6; }
8750 if test ${ac_cv_sizeof_void_p+y}
8751 then :
8752 printf %s "(cached) " >&6
8753 else $as_nop
8754 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
8755 then :
8756
8757 else $as_nop
8758 if test "$ac_cv_type_void_p" = yes; then
8759 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8760 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8761 as_fn_error 77 "cannot compute sizeof (void *)
8762 See \`config.log' for more details" "$LINENO" 5; }
8763 else
8764 ac_cv_sizeof_void_p=0
8765 fi
8766 fi
8767
8768 fi
8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8770 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
8771
8772
8773
8774 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
8775
8776
8777 use_persistent_malloc=no
8778 if test "$SKIP_PERSIST_MALLOC" = no && test $ac_cv_sizeof_void_p -eq 8
8779 then
8780 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8781 if test "x$ac_cv_func_mmap" = xyes
8782 then :
8783
8784 fi
8785
8786 ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
8787 if test "x$ac_cv_func_munmap" = xyes
8788 then :
8789
8790 fi
8791
8792 if test $ac_cv_func_mmap = yes && test $ac_cv_func_munmap = yes
8793 then
8794 use_persistent_malloc=yes
8795 case $host_os in
8796 linux-*)
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8799
8800 #include <sys/personality.h>
8801 int x = ADDR_NO_RANDOMIZE;
8802
8803 int
8804 main (void)
8805 {
8806
8807 ;
8808 return 0;
8809 }
8810 _ACEOF
8811 if ac_fn_c_try_compile "$LINENO"
8812 then :
8813 have_addr_no_randomize=yes
8814 else $as_nop
8815 have_addr_no_randomize=no
8816 fi
8817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8818 ;;
8819 *darwin*)
8820 true # On macos we no longer need -no-pie
8821 ;;
8822 *cygwin* | *CYGWIN* | *solaris2.11* | freebsd13.* | openbsd7.* )
8823 true # nothing to do, exes on these systems are not PIE
8824 ;;
8825 # Other OS's go here...
8826 *)
8827 # For now, play it safe
8828 use_persistent_malloc=no
8829
8830 # Allow override for testing on new systems
8831 if test "$REALLY_USE_PERSIST_MALLOC" != ""
8832 then
8833 use_persistent_malloc=yes
8834 fi
8835 ;;
8836 esac
8837 else
8838 use_persistent_malloc=no
8839 fi
8840 fi
8841
8842 if test "$use_persistent_malloc" = "yes"; then
8843 USE_PERSISTENT_MALLOC_TRUE=
8844 USE_PERSISTENT_MALLOC_FALSE='#'
8845 else
8846 USE_PERSISTENT_MALLOC_TRUE='#'
8847 USE_PERSISTENT_MALLOC_FALSE=
8848 fi
8849
8850 if test "$have_addr_no_randomize" = "yes"; then
8851 HAVE_ADDR_NO_RANDOMIZE_TRUE=
8852 HAVE_ADDR_NO_RANDOMIZE_FALSE='#'
8853 else
8854 HAVE_ADDR_NO_RANDOMIZE_TRUE='#'
8855 HAVE_ADDR_NO_RANDOMIZE_FALSE=
8856 fi
8857
8858
8859 if test "$use_persistent_malloc" = "yes"
8860 then
8861
8862 printf "%s\n" "#define USE_PERSISTENT_MALLOC 1" >>confdefs.h
8863
8864 fi
8865 if test "$have_addr_no_randomize" = "yes"
8866 then
8867
8868 printf "%s\n" "#define HAVE_ADDR_NO_RANDOMIZE 1" >>confdefs.h
8869
8870 fi
8871
8872 case `pwd` in
8873 *\ * | *\ *)
8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8875 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8876 esac
8877
8878
8879
8880 macro_version='2.4.7'
8881 macro_revision='2.4.7'
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896 ltmain=$ac_aux_dir/ltmain.sh
8897
8898 # Backslashify metacharacters that are still active within
8899 # double-quoted strings.
8900 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8901
8902 # Same as above, but do not quote variable references.
8903 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8904
8905 # Sed substitution to delay expansion of an escaped shell variable in a
8906 # double_quote_subst'ed string.
8907 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8908
8909 # Sed substitution to delay expansion of an escaped single quote.
8910 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8911
8912 # Sed substitution to avoid accidental globbing in evaled expressions
8913 no_glob_subst='s/\*/\\\*/g'
8914
8915 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8916 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8917 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8918
8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8920 printf %s "checking how to print strings... " >&6; }
8921 # Test print first, because it will be a builtin if present.
8922 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8923 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8924 ECHO='print -r --'
8925 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8926 ECHO='printf %s\n'
8927 else
8928 # Use this function as a fallback that always works.
8929 func_fallback_echo ()
8930 {
8931 eval 'cat <<_LTECHO_EOF
8932 $1
8933 _LTECHO_EOF'
8934 }
8935 ECHO='func_fallback_echo'
8936 fi
8937
8938 # func_echo_all arg...
8939 # Invoke $ECHO with all args, space-separated.
8940 func_echo_all ()
8941 {
8942 $ECHO ""
8943 }
8944
8945 case $ECHO in
8946 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8947 printf "%s\n" "printf" >&6; } ;;
8948 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8949 printf "%s\n" "print -r" >&6; } ;;
8950 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8951 printf "%s\n" "cat" >&6; } ;;
8952 esac
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8968 printf %s "checking for a sed that does not truncate output... " >&6; }
8969 if test ${ac_cv_path_SED+y}
8970 then :
8971 printf %s "(cached) " >&6
8972 else $as_nop
8973 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8974 for ac_i in 1 2 3 4 5 6 7; do
8975 ac_script="$ac_script$as_nl$ac_script"
8976 done
8977 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8978 { ac_script=; unset ac_script;}
8979 if test -z "$SED"; then
8980 ac_path_SED_found=false
8981 # Loop through the user's path and test for each of PROGNAME-LIST
8982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983 for as_dir in $PATH
8984 do
8985 IFS=$as_save_IFS
8986 case $as_dir in #(((
8987 '') as_dir=./ ;;
8988 */) ;;
8989 *) as_dir=$as_dir/ ;;
8990 esac
8991 for ac_prog in sed gsed
8992 do
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8995 as_fn_executable_p "$ac_path_SED" || continue
8996 # Check for GNU ac_path_SED and select it if it is found.
8997 # Check for GNU $ac_path_SED
8998 case `"$ac_path_SED" --version 2>&1` in
8999 *GNU*)
9000 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9001 *)
9002 ac_count=0
9003 printf %s 0123456789 >"conftest.in"
9004 while :
9005 do
9006 cat "conftest.in" "conftest.in" >"conftest.tmp"
9007 mv "conftest.tmp" "conftest.in"
9008 cp "conftest.in" "conftest.nl"
9009 printf "%s\n" '' >> "conftest.nl"
9010 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9012 as_fn_arith $ac_count + 1 && ac_count=$as_val
9013 if test $ac_count -gt ${ac_path_SED_max-0}; then
9014 # Best one so far, save it but keep looking for a better one
9015 ac_cv_path_SED="$ac_path_SED"
9016 ac_path_SED_max=$ac_count
9017 fi
9018 # 10*(2^10) chars as input seems more than enough
9019 test $ac_count -gt 10 && break
9020 done
9021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9022 esac
9023
9024 $ac_path_SED_found && break 3
9025 done
9026 done
9027 done
9028 IFS=$as_save_IFS
9029 if test -z "$ac_cv_path_SED"; then
9030 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9031 fi
9032 else
9033 ac_cv_path_SED=$SED
9034 fi
9035
9036 fi
9037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9038 printf "%s\n" "$ac_cv_path_SED" >&6; }
9039 SED="$ac_cv_path_SED"
9040 rm -f conftest.sed
9041
9042 test -z "$SED" && SED=sed
9043 Xsed="$SED -e 1s/^X//"
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9056 printf %s "checking for fgrep... " >&6; }
9057 if test ${ac_cv_path_FGREP+y}
9058 then :
9059 printf %s "(cached) " >&6
9060 else $as_nop
9061 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9062 then ac_cv_path_FGREP="$GREP -F"
9063 else
9064 if test -z "$FGREP"; then
9065 ac_path_FGREP_found=false
9066 # Loop through the user's path and test for each of PROGNAME-LIST
9067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9069 do
9070 IFS=$as_save_IFS
9071 case $as_dir in #(((
9072 '') as_dir=./ ;;
9073 */) ;;
9074 *) as_dir=$as_dir/ ;;
9075 esac
9076 for ac_prog in fgrep
9077 do
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
9080 as_fn_executable_p "$ac_path_FGREP" || continue
9081 # Check for GNU ac_path_FGREP and select it if it is found.
9082 # Check for GNU $ac_path_FGREP
9083 case `"$ac_path_FGREP" --version 2>&1` in
9084 *GNU*)
9085 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9086 *)
9087 ac_count=0
9088 printf %s 0123456789 >"conftest.in"
9089 while :
9090 do
9091 cat "conftest.in" "conftest.in" >"conftest.tmp"
9092 mv "conftest.tmp" "conftest.in"
9093 cp "conftest.in" "conftest.nl"
9094 printf "%s\n" 'FGREP' >> "conftest.nl"
9095 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9097 as_fn_arith $ac_count + 1 && ac_count=$as_val
9098 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9099 # Best one so far, save it but keep looking for a better one
9100 ac_cv_path_FGREP="$ac_path_FGREP"
9101 ac_path_FGREP_max=$ac_count
9102 fi
9103 # 10*(2^10) chars as input seems more than enough
9104 test $ac_count -gt 10 && break
9105 done
9106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9107 esac
9108
9109 $ac_path_FGREP_found && break 3
9110 done
9111 done
9112 done
9113 IFS=$as_save_IFS
9114 if test -z "$ac_cv_path_FGREP"; then
9115 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9116 fi
9117 else
9118 ac_cv_path_FGREP=$FGREP
9119 fi
9120
9121 fi
9122 fi
9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9124 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
9125 FGREP="$ac_cv_path_FGREP"
9126
9127
9128 test -z "$GREP" && GREP=grep
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148 # Check whether --with-gnu-ld was given.
9149 if test ${with_gnu_ld+y}
9150 then :
9151 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9152 else $as_nop
9153 with_gnu_ld=no
9154 fi
9155
9156 ac_prog=ld
9157 if test yes = "$GCC"; then
9158 # Check if gcc -print-prog-name=ld gives a path.
9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9160 printf %s "checking for ld used by $CC... " >&6; }
9161 case $host in
9162 *-*-mingw*)
9163 # gcc leaves a trailing carriage return, which upsets mingw
9164 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9165 *)
9166 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9167 esac
9168 case $ac_prog in
9169 # Accept absolute paths.
9170 [\\/]* | ?:[\\/]*)
9171 re_direlt='/[^/][^/]*/\.\./'
9172 # Canonicalize the pathname of ld
9173 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9174 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9175 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9176 done
9177 test -z "$LD" && LD=$ac_prog
9178 ;;
9179 "")
9180 # If it fails, then pretend we aren't using GCC.
9181 ac_prog=ld
9182 ;;
9183 *)
9184 # If it is relative, then search for the first ld in PATH.
9185 with_gnu_ld=unknown
9186 ;;
9187 esac
9188 elif test yes = "$with_gnu_ld"; then
9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9190 printf %s "checking for GNU ld... " >&6; }
9191 else
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9193 printf %s "checking for non-GNU ld... " >&6; }
9194 fi
9195 if test ${lt_cv_path_LD+y}
9196 then :
9197 printf %s "(cached) " >&6
9198 else $as_nop
9199 if test -z "$LD"; then
9200 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9201 for ac_dir in $PATH; do
9202 IFS=$lt_save_ifs
9203 test -z "$ac_dir" && ac_dir=.
9204 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9205 lt_cv_path_LD=$ac_dir/$ac_prog
9206 # Check to see if the program is GNU ld. I'd rather use --version,
9207 # but apparently some variants of GNU ld only accept -v.
9208 # Break only if it was the GNU/non-GNU ld that we prefer.
9209 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9210 *GNU* | *'with BFD'*)
9211 test no != "$with_gnu_ld" && break
9212 ;;
9213 *)
9214 test yes != "$with_gnu_ld" && break
9215 ;;
9216 esac
9217 fi
9218 done
9219 IFS=$lt_save_ifs
9220 else
9221 lt_cv_path_LD=$LD # Let the user override the test with a path.
9222 fi
9223 fi
9224
9225 LD=$lt_cv_path_LD
9226 if test -n "$LD"; then
9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9228 printf "%s\n" "$LD" >&6; }
9229 else
9230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 printf "%s\n" "no" >&6; }
9232 fi
9233 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9235 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9236 if test ${lt_cv_prog_gnu_ld+y}
9237 then :
9238 printf %s "(cached) " >&6
9239 else $as_nop
9240 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9241 case `$LD -v 2>&1 </dev/null` in
9242 *GNU* | *'with BFD'*)
9243 lt_cv_prog_gnu_ld=yes
9244 ;;
9245 *)
9246 lt_cv_prog_gnu_ld=no
9247 ;;
9248 esac
9249 fi
9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9251 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
9252 with_gnu_ld=$lt_cv_prog_gnu_ld
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9263 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9264 if test ${lt_cv_path_NM+y}
9265 then :
9266 printf %s "(cached) " >&6
9267 else $as_nop
9268 if test -n "$NM"; then
9269 # Let the user override the test.
9270 lt_cv_path_NM=$NM
9271 else
9272 lt_nm_to_check=${ac_tool_prefix}nm
9273 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9274 lt_nm_to_check="$lt_nm_to_check nm"
9275 fi
9276 for lt_tmp_nm in $lt_nm_to_check; do
9277 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9278 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9279 IFS=$lt_save_ifs
9280 test -z "$ac_dir" && ac_dir=.
9281 tmp_nm=$ac_dir/$lt_tmp_nm
9282 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9283 # Check to see if the nm accepts a BSD-compat flag.
9284 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9285 # nm: unknown option "B" ignored
9286 # Tru64's nm complains that /dev/null is an invalid object file
9287 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9288 case $build_os in
9289 mingw*) lt_bad_file=conftest.nm/nofile ;;
9290 *) lt_bad_file=/dev/null ;;
9291 esac
9292 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
9293 *$lt_bad_file* | *'Invalid file or object type'*)
9294 lt_cv_path_NM="$tmp_nm -B"
9295 break 2
9296 ;;
9297 *)
9298 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
9299 */dev/null*)
9300 lt_cv_path_NM="$tmp_nm -p"
9301 break 2
9302 ;;
9303 *)
9304 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9305 continue # so that we can try to find one that supports BSD flags
9306 ;;
9307 esac
9308 ;;
9309 esac
9310 fi
9311 done
9312 IFS=$lt_save_ifs
9313 done
9314 : ${lt_cv_path_NM=no}
9315 fi
9316 fi
9317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9318 printf "%s\n" "$lt_cv_path_NM" >&6; }
9319 if test no != "$lt_cv_path_NM"; then
9320 NM=$lt_cv_path_NM
9321 else
9322 # Didn't find any BSD compatible name lister, look for dumpbin.
9323 if test -n "$DUMPBIN"; then :
9324 # Let the user override the test.
9325 else
9326 if test -n "$ac_tool_prefix"; then
9327 for ac_prog in dumpbin "link -dump"
9328 do
9329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 printf %s "checking for $ac_word... " >&6; }
9333 if test ${ac_cv_prog_DUMPBIN+y}
9334 then :
9335 printf %s "(cached) " >&6
9336 else $as_nop
9337 if test -n "$DUMPBIN"; then
9338 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9339 else
9340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341 for as_dir in $PATH
9342 do
9343 IFS=$as_save_IFS
9344 case $as_dir in #(((
9345 '') as_dir=./ ;;
9346 */) ;;
9347 *) as_dir=$as_dir/ ;;
9348 esac
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9351 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9353 break 2
9354 fi
9355 done
9356 done
9357 IFS=$as_save_IFS
9358
9359 fi
9360 fi
9361 DUMPBIN=$ac_cv_prog_DUMPBIN
9362 if test -n "$DUMPBIN"; then
9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9364 printf "%s\n" "$DUMPBIN" >&6; }
9365 else
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 printf "%s\n" "no" >&6; }
9368 fi
9369
9370
9371 test -n "$DUMPBIN" && break
9372 done
9373 fi
9374 if test -z "$DUMPBIN"; then
9375 ac_ct_DUMPBIN=$DUMPBIN
9376 for ac_prog in dumpbin "link -dump"
9377 do
9378 # Extract the first word of "$ac_prog", so it can be a program name with args.
9379 set dummy $ac_prog; ac_word=$2
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 printf %s "checking for $ac_word... " >&6; }
9382 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9383 then :
9384 printf %s "(cached) " >&6
9385 else $as_nop
9386 if test -n "$ac_ct_DUMPBIN"; then
9387 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9388 else
9389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 for as_dir in $PATH
9391 do
9392 IFS=$as_save_IFS
9393 case $as_dir in #(((
9394 '') as_dir=./ ;;
9395 */) ;;
9396 *) as_dir=$as_dir/ ;;
9397 esac
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9400 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9402 break 2
9403 fi
9404 done
9405 done
9406 IFS=$as_save_IFS
9407
9408 fi
9409 fi
9410 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9411 if test -n "$ac_ct_DUMPBIN"; then
9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9413 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9414 else
9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 printf "%s\n" "no" >&6; }
9417 fi
9418
9419
9420 test -n "$ac_ct_DUMPBIN" && break
9421 done
9422
9423 if test "x$ac_ct_DUMPBIN" = x; then
9424 DUMPBIN=":"
9425 else
9426 case $cross_compiling:$ac_tool_warned in
9427 yes:)
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9429 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9430 ac_tool_warned=yes ;;
9431 esac
9432 DUMPBIN=$ac_ct_DUMPBIN
9433 fi
9434 fi
9435
9436 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
9437 *COFF*)
9438 DUMPBIN="$DUMPBIN -symbols -headers"
9439 ;;
9440 *)
9441 DUMPBIN=:
9442 ;;
9443 esac
9444 fi
9445
9446 if test : != "$DUMPBIN"; then
9447 NM=$DUMPBIN
9448 fi
9449 fi
9450 test -z "$NM" && NM=nm
9451
9452
9453
9454
9455
9456
9457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9458 printf %s "checking the name lister ($NM) interface... " >&6; }
9459 if test ${lt_cv_nm_interface+y}
9460 then :
9461 printf %s "(cached) " >&6
9462 else $as_nop
9463 lt_cv_nm_interface="BSD nm"
9464 echo "int some_variable = 0;" > conftest.$ac_ext
9465 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9466 (eval "$ac_compile" 2>conftest.err)
9467 cat conftest.err >&5
9468 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9469 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9470 cat conftest.err >&5
9471 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9472 cat conftest.out >&5
9473 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9474 lt_cv_nm_interface="MS dumpbin"
9475 fi
9476 rm -f conftest*
9477 fi
9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9479 printf "%s\n" "$lt_cv_nm_interface" >&6; }
9480
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9482 printf %s "checking whether ln -s works... " >&6; }
9483 LN_S=$as_ln_s
9484 if test "$LN_S" = "ln -s"; then
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9486 printf "%s\n" "yes" >&6; }
9487 else
9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9489 printf "%s\n" "no, using $LN_S" >&6; }
9490 fi
9491
9492 # find the maximum length of command line arguments
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9494 printf %s "checking the maximum length of command line arguments... " >&6; }
9495 if test ${lt_cv_sys_max_cmd_len+y}
9496 then :
9497 printf %s "(cached) " >&6
9498 else $as_nop
9499 i=0
9500 teststring=ABCD
9501
9502 case $build_os in
9503 msdosdjgpp*)
9504 # On DJGPP, this test can blow up pretty badly due to problems in libc
9505 # (any single argument exceeding 2000 bytes causes a buffer overrun
9506 # during glob expansion). Even if it were fixed, the result of this
9507 # check would be larger than it should be.
9508 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9509 ;;
9510
9511 gnu*)
9512 # Under GNU Hurd, this test is not required because there is
9513 # no limit to the length of command line arguments.
9514 # Libtool will interpret -1 as no limit whatsoever
9515 lt_cv_sys_max_cmd_len=-1;
9516 ;;
9517
9518 cygwin* | mingw* | cegcc*)
9519 # On Win9x/ME, this test blows up -- it succeeds, but takes
9520 # about 5 minutes as the teststring grows exponentially.
9521 # Worse, since 9x/ME are not pre-emptively multitasking,
9522 # you end up with a "frozen" computer, even though with patience
9523 # the test eventually succeeds (with a max line length of 256k).
9524 # Instead, let's just punt: use the minimum linelength reported by
9525 # all of the supported platforms: 8192 (on NT/2K/XP).
9526 lt_cv_sys_max_cmd_len=8192;
9527 ;;
9528
9529 mint*)
9530 # On MiNT this can take a long time and run out of memory.
9531 lt_cv_sys_max_cmd_len=8192;
9532 ;;
9533
9534 amigaos*)
9535 # On AmigaOS with pdksh, this test takes hours, literally.
9536 # So we just punt and use a minimum line length of 8192.
9537 lt_cv_sys_max_cmd_len=8192;
9538 ;;
9539
9540 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
9541 # This has been around since 386BSD, at least. Likely further.
9542 if test -x /sbin/sysctl; then
9543 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9544 elif test -x /usr/sbin/sysctl; then
9545 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9546 else
9547 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9548 fi
9549 # And add a safety zone
9550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9552 ;;
9553
9554 interix*)
9555 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9556 lt_cv_sys_max_cmd_len=196608
9557 ;;
9558
9559 os2*)
9560 # The test takes a long time on OS/2.
9561 lt_cv_sys_max_cmd_len=8192
9562 ;;
9563
9564 osf*)
9565 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9566 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9567 # nice to cause kernel panics so lets avoid the loop below.
9568 # First set a reasonable default.
9569 lt_cv_sys_max_cmd_len=16384
9570 #
9571 if test -x /sbin/sysconfig; then
9572 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9573 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9574 esac
9575 fi
9576 ;;
9577 sco3.2v5*)
9578 lt_cv_sys_max_cmd_len=102400
9579 ;;
9580 sysv5* | sco5v6* | sysv4.2uw2*)
9581 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9582 if test -n "$kargmax"; then
9583 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
9584 else
9585 lt_cv_sys_max_cmd_len=32768
9586 fi
9587 ;;
9588 *)
9589 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9590 if test -n "$lt_cv_sys_max_cmd_len" && \
9591 test undefined != "$lt_cv_sys_max_cmd_len"; then
9592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9594 else
9595 # Make teststring a little bigger before we do anything with it.
9596 # a 1K string should be a reasonable start.
9597 for i in 1 2 3 4 5 6 7 8; do
9598 teststring=$teststring$teststring
9599 done
9600 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9601 # If test is not a shell built-in, we'll probably end up computing a
9602 # maximum length that is only half of the actual maximum length, but
9603 # we can't tell.
9604 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9605 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9606 test 17 != "$i" # 1/2 MB should be enough
9607 do
9608 i=`expr $i + 1`
9609 teststring=$teststring$teststring
9610 done
9611 # Only check the string length outside the loop.
9612 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9613 teststring=
9614 # Add a significant safety factor because C++ compilers can tack on
9615 # massive amounts of additional arguments before passing them to the
9616 # linker. It appears as though 1/2 is a usable value.
9617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9618 fi
9619 ;;
9620 esac
9621
9622 fi
9623
9624 if test -n "$lt_cv_sys_max_cmd_len"; then
9625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9626 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9627 else
9628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9629 printf "%s\n" "none" >&6; }
9630 fi
9631 max_cmd_len=$lt_cv_sys_max_cmd_len
9632
9633
9634
9635
9636
9637
9638 : ${CP="cp -f"}
9639 : ${MV="mv -f"}
9640 : ${RM="rm -f"}
9641
9642 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9643 lt_unset=unset
9644 else
9645 lt_unset=false
9646 fi
9647
9648
9649
9650
9651
9652 # test EBCDIC or ASCII
9653 case `echo X|tr X '\101'` in
9654 A) # ASCII based system
9655 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9656 lt_SP2NL='tr \040 \012'
9657 lt_NL2SP='tr \015\012 \040\040'
9658 ;;
9659 *) # EBCDIC based system
9660 lt_SP2NL='tr \100 \n'
9661 lt_NL2SP='tr \r\n \100\100'
9662 ;;
9663 esac
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9674 printf %s "checking how to convert $build file names to $host format... " >&6; }
9675 if test ${lt_cv_to_host_file_cmd+y}
9676 then :
9677 printf %s "(cached) " >&6
9678 else $as_nop
9679 case $host in
9680 *-*-mingw* )
9681 case $build in
9682 *-*-mingw* ) # actually msys
9683 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9684 ;;
9685 *-*-cygwin* )
9686 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9687 ;;
9688 * ) # otherwise, assume *nix
9689 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9690 ;;
9691 esac
9692 ;;
9693 *-*-cygwin* )
9694 case $build in
9695 *-*-mingw* ) # actually msys
9696 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9697 ;;
9698 *-*-cygwin* )
9699 lt_cv_to_host_file_cmd=func_convert_file_noop
9700 ;;
9701 * ) # otherwise, assume *nix
9702 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9703 ;;
9704 esac
9705 ;;
9706 * ) # unhandled hosts (and "normal" native builds)
9707 lt_cv_to_host_file_cmd=func_convert_file_noop
9708 ;;
9709 esac
9710
9711 fi
9712
9713 to_host_file_cmd=$lt_cv_to_host_file_cmd
9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9715 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9716
9717
9718
9719
9720
9721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9722 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9723 if test ${lt_cv_to_tool_file_cmd+y}
9724 then :
9725 printf %s "(cached) " >&6
9726 else $as_nop
9727 #assume ordinary cross tools, or native build.
9728 lt_cv_to_tool_file_cmd=func_convert_file_noop
9729 case $host in
9730 *-*-mingw* )
9731 case $build in
9732 *-*-mingw* ) # actually msys
9733 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9734 ;;
9735 esac
9736 ;;
9737 esac
9738
9739 fi
9740
9741 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9743 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9744
9745
9746
9747
9748
9749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9750 printf %s "checking for $LD option to reload object files... " >&6; }
9751 if test ${lt_cv_ld_reload_flag+y}
9752 then :
9753 printf %s "(cached) " >&6
9754 else $as_nop
9755 lt_cv_ld_reload_flag='-r'
9756 fi
9757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9758 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9759 reload_flag=$lt_cv_ld_reload_flag
9760 case $reload_flag in
9761 "" | " "*) ;;
9762 *) reload_flag=" $reload_flag" ;;
9763 esac
9764 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9765 case $host_os in
9766 cygwin* | mingw* | pw32* | cegcc*)
9767 if test yes != "$GCC"; then
9768 reload_cmds=false
9769 fi
9770 ;;
9771 darwin*)
9772 if test yes = "$GCC"; then
9773 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9774 else
9775 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9776 fi
9777 ;;
9778 esac
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788 if test -n "$ac_tool_prefix"; then
9789 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
9790 set dummy ${ac_tool_prefix}file; ac_word=$2
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9792 printf %s "checking for $ac_word... " >&6; }
9793 if test ${ac_cv_prog_FILECMD+y}
9794 then :
9795 printf %s "(cached) " >&6
9796 else $as_nop
9797 if test -n "$FILECMD"; then
9798 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9799 else
9800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801 for as_dir in $PATH
9802 do
9803 IFS=$as_save_IFS
9804 case $as_dir in #(((
9805 '') as_dir=./ ;;
9806 */) ;;
9807 *) as_dir=$as_dir/ ;;
9808 esac
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9811 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
9812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9813 break 2
9814 fi
9815 done
9816 done
9817 IFS=$as_save_IFS
9818
9819 fi
9820 fi
9821 FILECMD=$ac_cv_prog_FILECMD
9822 if test -n "$FILECMD"; then
9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9824 printf "%s\n" "$FILECMD" >&6; }
9825 else
9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 printf "%s\n" "no" >&6; }
9828 fi
9829
9830
9831 fi
9832 if test -z "$ac_cv_prog_FILECMD"; then
9833 ac_ct_FILECMD=$FILECMD
9834 # Extract the first word of "file", so it can be a program name with args.
9835 set dummy file; ac_word=$2
9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 printf %s "checking for $ac_word... " >&6; }
9838 if test ${ac_cv_prog_ac_ct_FILECMD+y}
9839 then :
9840 printf %s "(cached) " >&6
9841 else $as_nop
9842 if test -n "$ac_ct_FILECMD"; then
9843 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
9844 else
9845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846 for as_dir in $PATH
9847 do
9848 IFS=$as_save_IFS
9849 case $as_dir in #(((
9850 '') as_dir=./ ;;
9851 */) ;;
9852 *) as_dir=$as_dir/ ;;
9853 esac
9854 for ac_exec_ext in '' $ac_executable_extensions; do
9855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9856 ac_cv_prog_ac_ct_FILECMD="file"
9857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9858 break 2
9859 fi
9860 done
9861 done
9862 IFS=$as_save_IFS
9863
9864 fi
9865 fi
9866 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
9867 if test -n "$ac_ct_FILECMD"; then
9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
9869 printf "%s\n" "$ac_ct_FILECMD" >&6; }
9870 else
9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872 printf "%s\n" "no" >&6; }
9873 fi
9874
9875 if test "x$ac_ct_FILECMD" = x; then
9876 FILECMD=":"
9877 else
9878 case $cross_compiling:$ac_tool_warned in
9879 yes:)
9880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9881 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9882 ac_tool_warned=yes ;;
9883 esac
9884 FILECMD=$ac_ct_FILECMD
9885 fi
9886 else
9887 FILECMD="$ac_cv_prog_FILECMD"
9888 fi
9889
9890
9891
9892
9893
9894
9895
9896 if test -n "$ac_tool_prefix"; then
9897 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9898 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9900 printf %s "checking for $ac_word... " >&6; }
9901 if test ${ac_cv_prog_OBJDUMP+y}
9902 then :
9903 printf %s "(cached) " >&6
9904 else $as_nop
9905 if test -n "$OBJDUMP"; then
9906 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9907 else
9908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909 for as_dir in $PATH
9910 do
9911 IFS=$as_save_IFS
9912 case $as_dir in #(((
9913 '') as_dir=./ ;;
9914 */) ;;
9915 *) as_dir=$as_dir/ ;;
9916 esac
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9919 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9921 break 2
9922 fi
9923 done
9924 done
9925 IFS=$as_save_IFS
9926
9927 fi
9928 fi
9929 OBJDUMP=$ac_cv_prog_OBJDUMP
9930 if test -n "$OBJDUMP"; then
9931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9932 printf "%s\n" "$OBJDUMP" >&6; }
9933 else
9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 printf "%s\n" "no" >&6; }
9936 fi
9937
9938
9939 fi
9940 if test -z "$ac_cv_prog_OBJDUMP"; then
9941 ac_ct_OBJDUMP=$OBJDUMP
9942 # Extract the first word of "objdump", so it can be a program name with args.
9943 set dummy objdump; ac_word=$2
9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9945 printf %s "checking for $ac_word... " >&6; }
9946 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9947 then :
9948 printf %s "(cached) " >&6
9949 else $as_nop
9950 if test -n "$ac_ct_OBJDUMP"; then
9951 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9952 else
9953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954 for as_dir in $PATH
9955 do
9956 IFS=$as_save_IFS
9957 case $as_dir in #(((
9958 '') as_dir=./ ;;
9959 */) ;;
9960 *) as_dir=$as_dir/ ;;
9961 esac
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9964 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9966 break 2
9967 fi
9968 done
9969 done
9970 IFS=$as_save_IFS
9971
9972 fi
9973 fi
9974 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9975 if test -n "$ac_ct_OBJDUMP"; then
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9977 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9978 else
9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 printf "%s\n" "no" >&6; }
9981 fi
9982
9983 if test "x$ac_ct_OBJDUMP" = x; then
9984 OBJDUMP="false"
9985 else
9986 case $cross_compiling:$ac_tool_warned in
9987 yes:)
9988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9989 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9990 ac_tool_warned=yes ;;
9991 esac
9992 OBJDUMP=$ac_ct_OBJDUMP
9993 fi
9994 else
9995 OBJDUMP="$ac_cv_prog_OBJDUMP"
9996 fi
9997
9998 test -z "$OBJDUMP" && OBJDUMP=objdump
9999
10000
10001
10002
10003
10004
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10006 printf %s "checking how to recognize dependent libraries... " >&6; }
10007 if test ${lt_cv_deplibs_check_method+y}
10008 then :
10009 printf %s "(cached) " >&6
10010 else $as_nop
10011 lt_cv_file_magic_cmd='$MAGIC_CMD'
10012 lt_cv_file_magic_test_file=
10013 lt_cv_deplibs_check_method='unknown'
10014 # Need to set the preceding variable on all platforms that support
10015 # interlibrary dependencies.
10016 # 'none' -- dependencies not supported.
10017 # 'unknown' -- same as none, but documents that we really don't know.
10018 # 'pass_all' -- all dependencies passed with no checks.
10019 # 'test_compile' -- check by making test program.
10020 # 'file_magic [[regex]]' -- check by looking for files in library path
10021 # that responds to the $file_magic_cmd with a given extended regex.
10022 # If you have 'file' or equivalent on your system and you're not sure
10023 # whether 'pass_all' will *always* work, you probably want this one.
10024
10025 case $host_os in
10026 aix[4-9]*)
10027 lt_cv_deplibs_check_method=pass_all
10028 ;;
10029
10030 beos*)
10031 lt_cv_deplibs_check_method=pass_all
10032 ;;
10033
10034 bsdi[45]*)
10035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10036 lt_cv_file_magic_cmd='$FILECMD -L'
10037 lt_cv_file_magic_test_file=/shlib/libc.so
10038 ;;
10039
10040 cygwin*)
10041 # func_win32_libid is a shell function defined in ltmain.sh
10042 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10043 lt_cv_file_magic_cmd='func_win32_libid'
10044 ;;
10045
10046 mingw* | pw32*)
10047 # Base MSYS/MinGW do not provide the 'file' command needed by
10048 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10049 # unless we find 'file', for example because we are cross-compiling.
10050 if ( file / ) >/dev/null 2>&1; then
10051 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10052 lt_cv_file_magic_cmd='func_win32_libid'
10053 else
10054 # Keep this pattern in sync with the one in func_win32_libid.
10055 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10056 lt_cv_file_magic_cmd='$OBJDUMP -f'
10057 fi
10058 ;;
10059
10060 cegcc*)
10061 # use the weaker test based on 'objdump'. See mingw*.
10062 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10063 lt_cv_file_magic_cmd='$OBJDUMP -f'
10064 ;;
10065
10066 darwin* | rhapsody*)
10067 lt_cv_deplibs_check_method=pass_all
10068 ;;
10069
10070 freebsd* | dragonfly* | midnightbsd*)
10071 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10072 case $host_cpu in
10073 i*86 )
10074 # Not sure whether the presence of OpenBSD here was a mistake.
10075 # Let's accept both of them until this is cleared up.
10076 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10077 lt_cv_file_magic_cmd=$FILECMD
10078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10079 ;;
10080 esac
10081 else
10082 lt_cv_deplibs_check_method=pass_all
10083 fi
10084 ;;
10085
10086 haiku*)
10087 lt_cv_deplibs_check_method=pass_all
10088 ;;
10089
10090 hpux10.20* | hpux11*)
10091 lt_cv_file_magic_cmd=$FILECMD
10092 case $host_cpu in
10093 ia64*)
10094 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10095 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10096 ;;
10097 hppa*64*)
10098 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]'
10099 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10100 ;;
10101 *)
10102 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10103 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10104 ;;
10105 esac
10106 ;;
10107
10108 interix[3-9]*)
10109 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10111 ;;
10112
10113 irix5* | irix6* | nonstopux*)
10114 case $LD in
10115 *-32|*"-32 ") libmagic=32-bit;;
10116 *-n32|*"-n32 ") libmagic=N32;;
10117 *-64|*"-64 ") libmagic=64-bit;;
10118 *) libmagic=never-match;;
10119 esac
10120 lt_cv_deplibs_check_method=pass_all
10121 ;;
10122
10123 # This must be glibc/ELF.
10124 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10125 lt_cv_deplibs_check_method=pass_all
10126 ;;
10127
10128 netbsd*)
10129 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10131 else
10132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10133 fi
10134 ;;
10135
10136 newos6*)
10137 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10138 lt_cv_file_magic_cmd=$FILECMD
10139 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10140 ;;
10141
10142 *nto* | *qnx*)
10143 lt_cv_deplibs_check_method=pass_all
10144 ;;
10145
10146 openbsd* | bitrig*)
10147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10149 else
10150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10151 fi
10152 ;;
10153
10154 osf3* | osf4* | osf5*)
10155 lt_cv_deplibs_check_method=pass_all
10156 ;;
10157
10158 rdos*)
10159 lt_cv_deplibs_check_method=pass_all
10160 ;;
10161
10162 solaris*)
10163 lt_cv_deplibs_check_method=pass_all
10164 ;;
10165
10166 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10167 lt_cv_deplibs_check_method=pass_all
10168 ;;
10169
10170 sysv4 | sysv4.3*)
10171 case $host_vendor in
10172 motorola)
10173 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]'
10174 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10175 ;;
10176 ncr)
10177 lt_cv_deplibs_check_method=pass_all
10178 ;;
10179 sequent)
10180 lt_cv_file_magic_cmd='/bin/file'
10181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10182 ;;
10183 sni)
10184 lt_cv_file_magic_cmd='/bin/file'
10185 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10186 lt_cv_file_magic_test_file=/lib/libc.so
10187 ;;
10188 siemens)
10189 lt_cv_deplibs_check_method=pass_all
10190 ;;
10191 pc)
10192 lt_cv_deplibs_check_method=pass_all
10193 ;;
10194 esac
10195 ;;
10196
10197 tpf*)
10198 lt_cv_deplibs_check_method=pass_all
10199 ;;
10200 os2*)
10201 lt_cv_deplibs_check_method=pass_all
10202 ;;
10203 esac
10204
10205 fi
10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10207 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
10208
10209 file_magic_glob=
10210 want_nocaseglob=no
10211 if test "$build" = "$host"; then
10212 case $host_os in
10213 mingw* | pw32*)
10214 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10215 want_nocaseglob=yes
10216 else
10217 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10218 fi
10219 ;;
10220 esac
10221 fi
10222
10223 file_magic_cmd=$lt_cv_file_magic_cmd
10224 deplibs_check_method=$lt_cv_deplibs_check_method
10225 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248 if test -n "$ac_tool_prefix"; then
10249 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10250 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252 printf %s "checking for $ac_word... " >&6; }
10253 if test ${ac_cv_prog_DLLTOOL+y}
10254 then :
10255 printf %s "(cached) " >&6
10256 else $as_nop
10257 if test -n "$DLLTOOL"; then
10258 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10259 else
10260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10261 for as_dir in $PATH
10262 do
10263 IFS=$as_save_IFS
10264 case $as_dir in #(((
10265 '') as_dir=./ ;;
10266 */) ;;
10267 *) as_dir=$as_dir/ ;;
10268 esac
10269 for ac_exec_ext in '' $ac_executable_extensions; do
10270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10271 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10273 break 2
10274 fi
10275 done
10276 done
10277 IFS=$as_save_IFS
10278
10279 fi
10280 fi
10281 DLLTOOL=$ac_cv_prog_DLLTOOL
10282 if test -n "$DLLTOOL"; then
10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10284 printf "%s\n" "$DLLTOOL" >&6; }
10285 else
10286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10287 printf "%s\n" "no" >&6; }
10288 fi
10289
10290
10291 fi
10292 if test -z "$ac_cv_prog_DLLTOOL"; then
10293 ac_ct_DLLTOOL=$DLLTOOL
10294 # Extract the first word of "dlltool", so it can be a program name with args.
10295 set dummy dlltool; ac_word=$2
10296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10297 printf %s "checking for $ac_word... " >&6; }
10298 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10299 then :
10300 printf %s "(cached) " >&6
10301 else $as_nop
10302 if test -n "$ac_ct_DLLTOOL"; then
10303 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10304 else
10305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306 for as_dir in $PATH
10307 do
10308 IFS=$as_save_IFS
10309 case $as_dir in #(((
10310 '') as_dir=./ ;;
10311 */) ;;
10312 *) as_dir=$as_dir/ ;;
10313 esac
10314 for ac_exec_ext in '' $ac_executable_extensions; do
10315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10316 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10318 break 2
10319 fi
10320 done
10321 done
10322 IFS=$as_save_IFS
10323
10324 fi
10325 fi
10326 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10327 if test -n "$ac_ct_DLLTOOL"; then
10328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10329 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10330 else
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 printf "%s\n" "no" >&6; }
10333 fi
10334
10335 if test "x$ac_ct_DLLTOOL" = x; then
10336 DLLTOOL="false"
10337 else
10338 case $cross_compiling:$ac_tool_warned in
10339 yes:)
10340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10341 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10342 ac_tool_warned=yes ;;
10343 esac
10344 DLLTOOL=$ac_ct_DLLTOOL
10345 fi
10346 else
10347 DLLTOOL="$ac_cv_prog_DLLTOOL"
10348 fi
10349
10350 test -z "$DLLTOOL" && DLLTOOL=dlltool
10351
10352
10353
10354
10355
10356
10357
10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10359 printf %s "checking how to associate runtime and link libraries... " >&6; }
10360 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
10361 then :
10362 printf %s "(cached) " >&6
10363 else $as_nop
10364 lt_cv_sharedlib_from_linklib_cmd='unknown'
10365
10366 case $host_os in
10367 cygwin* | mingw* | pw32* | cegcc*)
10368 # two different shell functions defined in ltmain.sh;
10369 # decide which one to use based on capabilities of $DLLTOOL
10370 case `$DLLTOOL --help 2>&1` in
10371 *--identify-strict*)
10372 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10373 ;;
10374 *)
10375 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10376 ;;
10377 esac
10378 ;;
10379 *)
10380 # fallback: assume linklib IS sharedlib
10381 lt_cv_sharedlib_from_linklib_cmd=$ECHO
10382 ;;
10383 esac
10384
10385 fi
10386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10387 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10388 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10389 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10390
10391
10392
10393
10394
10395
10396
10397 if test -n "$ac_tool_prefix"; then
10398 for ac_prog in ar
10399 do
10400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403 printf %s "checking for $ac_word... " >&6; }
10404 if test ${ac_cv_prog_AR+y}
10405 then :
10406 printf %s "(cached) " >&6
10407 else $as_nop
10408 if test -n "$AR"; then
10409 ac_cv_prog_AR="$AR" # Let the user override the test.
10410 else
10411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412 for as_dir in $PATH
10413 do
10414 IFS=$as_save_IFS
10415 case $as_dir in #(((
10416 '') as_dir=./ ;;
10417 */) ;;
10418 *) as_dir=$as_dir/ ;;
10419 esac
10420 for ac_exec_ext in '' $ac_executable_extensions; do
10421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10422 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10424 break 2
10425 fi
10426 done
10427 done
10428 IFS=$as_save_IFS
10429
10430 fi
10431 fi
10432 AR=$ac_cv_prog_AR
10433 if test -n "$AR"; then
10434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10435 printf "%s\n" "$AR" >&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
10442 test -n "$AR" && break
10443 done
10444 fi
10445 if test -z "$AR"; then
10446 ac_ct_AR=$AR
10447 for ac_prog in ar
10448 do
10449 # Extract the first word of "$ac_prog", so it can be a program name with args.
10450 set dummy $ac_prog; ac_word=$2
10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452 printf %s "checking for $ac_word... " >&6; }
10453 if test ${ac_cv_prog_ac_ct_AR+y}
10454 then :
10455 printf %s "(cached) " >&6
10456 else $as_nop
10457 if test -n "$ac_ct_AR"; then
10458 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10459 else
10460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461 for as_dir in $PATH
10462 do
10463 IFS=$as_save_IFS
10464 case $as_dir in #(((
10465 '') as_dir=./ ;;
10466 */) ;;
10467 *) as_dir=$as_dir/ ;;
10468 esac
10469 for ac_exec_ext in '' $ac_executable_extensions; do
10470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10471 ac_cv_prog_ac_ct_AR="$ac_prog"
10472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10473 break 2
10474 fi
10475 done
10476 done
10477 IFS=$as_save_IFS
10478
10479 fi
10480 fi
10481 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10482 if test -n "$ac_ct_AR"; then
10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10484 printf "%s\n" "$ac_ct_AR" >&6; }
10485 else
10486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487 printf "%s\n" "no" >&6; }
10488 fi
10489
10490
10491 test -n "$ac_ct_AR" && break
10492 done
10493
10494 if test "x$ac_ct_AR" = x; then
10495 AR="false"
10496 else
10497 case $cross_compiling:$ac_tool_warned in
10498 yes:)
10499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10500 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10501 ac_tool_warned=yes ;;
10502 esac
10503 AR=$ac_ct_AR
10504 fi
10505 fi
10506
10507 : ${AR=ar}
10508
10509
10510
10511
10512
10513
10514 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
10515 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
10516 # higher priority because thats what people were doing historically (setting
10517 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
10518 # variable obsoleted/removed.
10519
10520 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
10521 lt_ar_flags=$AR_FLAGS
10522
10523
10524
10525
10526
10527
10528 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
10529 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
10530
10531
10532
10533
10534
10535
10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10537 printf %s "checking for archiver @FILE support... " >&6; }
10538 if test ${lt_cv_ar_at_file+y}
10539 then :
10540 printf %s "(cached) " >&6
10541 else $as_nop
10542 lt_cv_ar_at_file=no
10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10545
10546 int
10547 main (void)
10548 {
10549
10550 ;
10551 return 0;
10552 }
10553 _ACEOF
10554 if ac_fn_c_try_compile "$LINENO"
10555 then :
10556 echo conftest.$ac_objext > conftest.lst
10557 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10559 (eval $lt_ar_try) 2>&5
10560 ac_status=$?
10561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10562 test $ac_status = 0; }
10563 if test 0 -eq "$ac_status"; then
10564 # Ensure the archiver fails upon bogus file names.
10565 rm -f conftest.$ac_objext libconftest.a
10566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10567 (eval $lt_ar_try) 2>&5
10568 ac_status=$?
10569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10570 test $ac_status = 0; }
10571 if test 0 -ne "$ac_status"; then
10572 lt_cv_ar_at_file=@
10573 fi
10574 fi
10575 rm -f conftest.* libconftest.a
10576
10577 fi
10578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10579
10580 fi
10581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10582 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10583
10584 if test no = "$lt_cv_ar_at_file"; then
10585 archiver_list_spec=
10586 else
10587 archiver_list_spec=$lt_cv_ar_at_file
10588 fi
10589
10590
10591
10592
10593
10594
10595
10596 if test -n "$ac_tool_prefix"; then
10597 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10598 set dummy ${ac_tool_prefix}strip; ac_word=$2
10599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10600 printf %s "checking for $ac_word... " >&6; }
10601 if test ${ac_cv_prog_STRIP+y}
10602 then :
10603 printf %s "(cached) " >&6
10604 else $as_nop
10605 if test -n "$STRIP"; then
10606 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10607 else
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10610 do
10611 IFS=$as_save_IFS
10612 case $as_dir in #(((
10613 '') as_dir=./ ;;
10614 */) ;;
10615 *) as_dir=$as_dir/ ;;
10616 esac
10617 for ac_exec_ext in '' $ac_executable_extensions; do
10618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10619 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10621 break 2
10622 fi
10623 done
10624 done
10625 IFS=$as_save_IFS
10626
10627 fi
10628 fi
10629 STRIP=$ac_cv_prog_STRIP
10630 if test -n "$STRIP"; then
10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10632 printf "%s\n" "$STRIP" >&6; }
10633 else
10634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 printf "%s\n" "no" >&6; }
10636 fi
10637
10638
10639 fi
10640 if test -z "$ac_cv_prog_STRIP"; then
10641 ac_ct_STRIP=$STRIP
10642 # Extract the first word of "strip", so it can be a program name with args.
10643 set dummy strip; ac_word=$2
10644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10645 printf %s "checking for $ac_word... " >&6; }
10646 if test ${ac_cv_prog_ac_ct_STRIP+y}
10647 then :
10648 printf %s "(cached) " >&6
10649 else $as_nop
10650 if test -n "$ac_ct_STRIP"; then
10651 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10652 else
10653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654 for as_dir in $PATH
10655 do
10656 IFS=$as_save_IFS
10657 case $as_dir in #(((
10658 '') as_dir=./ ;;
10659 */) ;;
10660 *) as_dir=$as_dir/ ;;
10661 esac
10662 for ac_exec_ext in '' $ac_executable_extensions; do
10663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10664 ac_cv_prog_ac_ct_STRIP="strip"
10665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10666 break 2
10667 fi
10668 done
10669 done
10670 IFS=$as_save_IFS
10671
10672 fi
10673 fi
10674 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10675 if test -n "$ac_ct_STRIP"; then
10676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10677 printf "%s\n" "$ac_ct_STRIP" >&6; }
10678 else
10679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680 printf "%s\n" "no" >&6; }
10681 fi
10682
10683 if test "x$ac_ct_STRIP" = x; then
10684 STRIP=":"
10685 else
10686 case $cross_compiling:$ac_tool_warned in
10687 yes:)
10688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10689 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10690 ac_tool_warned=yes ;;
10691 esac
10692 STRIP=$ac_ct_STRIP
10693 fi
10694 else
10695 STRIP="$ac_cv_prog_STRIP"
10696 fi
10697
10698 test -z "$STRIP" && STRIP=:
10699
10700
10701
10702
10703
10704
10705 if test -n "$ac_tool_prefix"; then
10706 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10707 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709 printf %s "checking for $ac_word... " >&6; }
10710 if test ${ac_cv_prog_RANLIB+y}
10711 then :
10712 printf %s "(cached) " >&6
10713 else $as_nop
10714 if test -n "$RANLIB"; then
10715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10716 else
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718 for as_dir in $PATH
10719 do
10720 IFS=$as_save_IFS
10721 case $as_dir in #(((
10722 '') as_dir=./ ;;
10723 */) ;;
10724 *) as_dir=$as_dir/ ;;
10725 esac
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10730 break 2
10731 fi
10732 done
10733 done
10734 IFS=$as_save_IFS
10735
10736 fi
10737 fi
10738 RANLIB=$ac_cv_prog_RANLIB
10739 if test -n "$RANLIB"; then
10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10741 printf "%s\n" "$RANLIB" >&6; }
10742 else
10743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 printf "%s\n" "no" >&6; }
10745 fi
10746
10747
10748 fi
10749 if test -z "$ac_cv_prog_RANLIB"; then
10750 ac_ct_RANLIB=$RANLIB
10751 # Extract the first word of "ranlib", so it can be a program name with args.
10752 set dummy ranlib; ac_word=$2
10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 printf %s "checking for $ac_word... " >&6; }
10755 if test ${ac_cv_prog_ac_ct_RANLIB+y}
10756 then :
10757 printf %s "(cached) " >&6
10758 else $as_nop
10759 if test -n "$ac_ct_RANLIB"; then
10760 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10761 else
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 for as_dir in $PATH
10764 do
10765 IFS=$as_save_IFS
10766 case $as_dir in #(((
10767 '') as_dir=./ ;;
10768 */) ;;
10769 *) as_dir=$as_dir/ ;;
10770 esac
10771 for ac_exec_ext in '' $ac_executable_extensions; do
10772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10773 ac_cv_prog_ac_ct_RANLIB="ranlib"
10774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10775 break 2
10776 fi
10777 done
10778 done
10779 IFS=$as_save_IFS
10780
10781 fi
10782 fi
10783 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10784 if test -n "$ac_ct_RANLIB"; then
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10786 printf "%s\n" "$ac_ct_RANLIB" >&6; }
10787 else
10788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789 printf "%s\n" "no" >&6; }
10790 fi
10791
10792 if test "x$ac_ct_RANLIB" = x; then
10793 RANLIB=":"
10794 else
10795 case $cross_compiling:$ac_tool_warned in
10796 yes:)
10797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10798 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10799 ac_tool_warned=yes ;;
10800 esac
10801 RANLIB=$ac_ct_RANLIB
10802 fi
10803 else
10804 RANLIB="$ac_cv_prog_RANLIB"
10805 fi
10806
10807 test -z "$RANLIB" && RANLIB=:
10808
10809
10810
10811
10812
10813
10814 # Determine commands to create old-style static archives.
10815 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10816 old_postinstall_cmds='chmod 644 $oldlib'
10817 old_postuninstall_cmds=
10818
10819 if test -n "$RANLIB"; then
10820 case $host_os in
10821 bitrig* | openbsd*)
10822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10823 ;;
10824 *)
10825 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10826 ;;
10827 esac
10828 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10829 fi
10830
10831 case $host_os in
10832 darwin*)
10833 lock_old_archive_extraction=yes ;;
10834 *)
10835 lock_old_archive_extraction=no ;;
10836 esac
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876 # If no C compiler was specified, use CC.
10877 LTCC=${LTCC-"$CC"}
10878
10879 # If no C compiler flags were specified, use CFLAGS.
10880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10881
10882 # Allow CC to be a program name with arguments.
10883 compiler=$CC
10884
10885
10886 # Check for command to grab the raw symbol name followed by C symbol from nm.
10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10888 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10889 if test ${lt_cv_sys_global_symbol_pipe+y}
10890 then :
10891 printf %s "(cached) " >&6
10892 else $as_nop
10893
10894 # These are sane defaults that work on at least a few old systems.
10895 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10896
10897 # Character class describing NM global symbol codes.
10898 symcode='[BCDEGRST]'
10899
10900 # Regexp to match symbols that can be accessed directly from C.
10901 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10902
10903 # Define system-specific variables.
10904 case $host_os in
10905 aix*)
10906 symcode='[BCDT]'
10907 ;;
10908 cygwin* | mingw* | pw32* | cegcc*)
10909 symcode='[ABCDGISTW]'
10910 ;;
10911 hpux*)
10912 if test ia64 = "$host_cpu"; then
10913 symcode='[ABCDEGRST]'
10914 fi
10915 ;;
10916 irix* | nonstopux*)
10917 symcode='[BCDEGRST]'
10918 ;;
10919 osf*)
10920 symcode='[BCDEGQRST]'
10921 ;;
10922 solaris*)
10923 symcode='[BDRT]'
10924 ;;
10925 sco3.2v5*)
10926 symcode='[DT]'
10927 ;;
10928 sysv4.2uw2*)
10929 symcode='[DT]'
10930 ;;
10931 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10932 symcode='[ABDT]'
10933 ;;
10934 sysv4)
10935 symcode='[DFNSTU]'
10936 ;;
10937 esac
10938
10939 # If we're using GNU nm, then use its standard symbol codes.
10940 case `$NM -V 2>&1` in
10941 *GNU* | *'with BFD'*)
10942 symcode='[ABCDGIRSTW]' ;;
10943 esac
10944
10945 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10946 # Gets list of data symbols to import.
10947 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
10948 # Adjust the below global symbol transforms to fixup imported variables.
10949 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10950 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
10951 lt_c_name_lib_hook="\
10952 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
10953 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
10954 else
10955 # Disable hooks by default.
10956 lt_cv_sys_global_symbol_to_import=
10957 lt_cdecl_hook=
10958 lt_c_name_hook=
10959 lt_c_name_lib_hook=
10960 fi
10961
10962 # Transform an extracted symbol line into a proper C declaration.
10963 # Some systems (esp. on ia64) link data and code symbols differently,
10964 # so use this general approach.
10965 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
10966 $lt_cdecl_hook\
10967 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10968 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10969
10970 # Transform an extracted symbol line into symbol name and symbol address
10971 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
10972 $lt_c_name_hook\
10973 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10974 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
10975
10976 # Transform an extracted symbol line into symbol name with lib prefix and
10977 # symbol address.
10978 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
10979 $lt_c_name_lib_hook\
10980 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10981 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
10982 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
10983
10984 # Handle CRLF in mingw tool chain
10985 opt_cr=
10986 case $build_os in
10987 mingw*)
10988 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10989 ;;
10990 esac
10991
10992 # Try without a prefix underscore, then with it.
10993 for ac_symprfx in "" "_"; do
10994
10995 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10996 symxfrm="\\1 $ac_symprfx\\2 \\2"
10997
10998 # Write the raw and C identifiers.
10999 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11000 # Fake it for dumpbin and say T for any non-static function,
11001 # D for any global variable and I for any imported variable.
11002 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
11003 # which start with @ or ?.
11004 lt_cv_sys_global_symbol_pipe="$AWK '"\
11005 " {last_section=section; section=\$ 3};"\
11006 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11007 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11008 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
11009 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
11010 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
11011 " \$ 0!~/External *\|/{next};"\
11012 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11013 " {if(hide[section]) next};"\
11014 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
11015 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
11016 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
11017 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
11018 " ' prfx=^$ac_symprfx"
11019 else
11020 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11021 fi
11022 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
11023
11024 # Check to see that the pipe works correctly.
11025 pipe_works=no
11026
11027 rm -f conftest*
11028 cat > conftest.$ac_ext <<_LT_EOF
11029 #ifdef __cplusplus
11030 extern "C" {
11031 #endif
11032 char nm_test_var;
11033 void nm_test_func(void);
11034 void nm_test_func(void){}
11035 #ifdef __cplusplus
11036 }
11037 #endif
11038 int main(){nm_test_var='a';nm_test_func();return(0);}
11039 _LT_EOF
11040
11041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11042 (eval $ac_compile) 2>&5
11043 ac_status=$?
11044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11045 test $ac_status = 0; }; then
11046 # Now try to grab the symbols.
11047 nlist=conftest.nm
11048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11049 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11050 ac_status=$?
11051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11052 test $ac_status = 0; } && test -s "$nlist"; then
11053 # Try sorting and uniquifying the output.
11054 if sort "$nlist" | uniq > "$nlist"T; then
11055 mv -f "$nlist"T "$nlist"
11056 else
11057 rm -f "$nlist"T
11058 fi
11059
11060 # Make sure that we snagged all the symbols we need.
11061 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11062 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11063 cat <<_LT_EOF > conftest.$ac_ext
11064 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11065 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
11066 /* DATA imports from DLLs on WIN32 can't be const, because runtime
11067 relocations are performed -- see ld's documentation on pseudo-relocs. */
11068 # define LT_DLSYM_CONST
11069 #elif defined __osf__
11070 /* This system does not cope well with relocations in const data. */
11071 # define LT_DLSYM_CONST
11072 #else
11073 # define LT_DLSYM_CONST const
11074 #endif
11075
11076 #ifdef __cplusplus
11077 extern "C" {
11078 #endif
11079
11080 _LT_EOF
11081 # Now generate the symbol file.
11082 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11083
11084 cat <<_LT_EOF >> conftest.$ac_ext
11085
11086 /* The mapping between symbol names and symbols. */
11087 LT_DLSYM_CONST struct {
11088 const char *name;
11089 void *address;
11090 }
11091 lt__PROGRAM__LTX_preloaded_symbols[] =
11092 {
11093 { "@PROGRAM@", (void *) 0 },
11094 _LT_EOF
11095 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11096 cat <<\_LT_EOF >> conftest.$ac_ext
11097 {0, (void *) 0}
11098 };
11099
11100 /* This works around a problem in FreeBSD linker */
11101 #ifdef FREEBSD_WORKAROUND
11102 static const void *lt_preloaded_setup() {
11103 return lt__PROGRAM__LTX_preloaded_symbols;
11104 }
11105 #endif
11106
11107 #ifdef __cplusplus
11108 }
11109 #endif
11110 _LT_EOF
11111 # Now try linking the two files.
11112 mv conftest.$ac_objext conftstm.$ac_objext
11113 lt_globsym_save_LIBS=$LIBS
11114 lt_globsym_save_CFLAGS=$CFLAGS
11115 LIBS=conftstm.$ac_objext
11116 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11118 (eval $ac_link) 2>&5
11119 ac_status=$?
11120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11121 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11122 pipe_works=yes
11123 fi
11124 LIBS=$lt_globsym_save_LIBS
11125 CFLAGS=$lt_globsym_save_CFLAGS
11126 else
11127 echo "cannot find nm_test_func in $nlist" >&5
11128 fi
11129 else
11130 echo "cannot find nm_test_var in $nlist" >&5
11131 fi
11132 else
11133 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11134 fi
11135 else
11136 echo "$progname: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11138 fi
11139 rm -rf conftest* conftst*
11140
11141 # Do not use the global_symbol_pipe unless it works.
11142 if test yes = "$pipe_works"; then
11143 break
11144 else
11145 lt_cv_sys_global_symbol_pipe=
11146 fi
11147 done
11148
11149 fi
11150
11151 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11152 lt_cv_sys_global_symbol_to_cdecl=
11153 fi
11154 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11156 printf "%s\n" "failed" >&6; }
11157 else
11158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11159 printf "%s\n" "ok" >&6; }
11160 fi
11161
11162 # Response file support.
11163 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11164 nm_file_list_spec='@'
11165 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11166 nm_file_list_spec='@'
11167 fi
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11206 printf %s "checking for sysroot... " >&6; }
11207
11208 # Check whether --with-sysroot was given.
11209 if test ${with_sysroot+y}
11210 then :
11211 withval=$with_sysroot;
11212 else $as_nop
11213 with_sysroot=no
11214 fi
11215
11216
11217 lt_sysroot=
11218 case $with_sysroot in #(
11219 yes)
11220 if test yes = "$GCC"; then
11221 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11222 fi
11223 ;; #(
11224 /*)
11225 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
11226 ;; #(
11227 no|'')
11228 ;; #(
11229 *)
11230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11231 printf "%s\n" "$with_sysroot" >&6; }
11232 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11233 ;;
11234 esac
11235
11236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11237 printf "%s\n" "${lt_sysroot:-no}" >&6; }
11238
11239
11240
11241
11242
11243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11244 printf %s "checking for a working dd... " >&6; }
11245 if test ${ac_cv_path_lt_DD+y}
11246 then :
11247 printf %s "(cached) " >&6
11248 else $as_nop
11249 printf 0123456789abcdef0123456789abcdef >conftest.i
11250 cat conftest.i conftest.i >conftest2.i
11251 : ${lt_DD:=$DD}
11252 if test -z "$lt_DD"; then
11253 ac_path_lt_DD_found=false
11254 # Loop through the user's path and test for each of PROGNAME-LIST
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11257 do
11258 IFS=$as_save_IFS
11259 case $as_dir in #(((
11260 '') as_dir=./ ;;
11261 */) ;;
11262 *) as_dir=$as_dir/ ;;
11263 esac
11264 for ac_prog in dd
11265 do
11266 for ac_exec_ext in '' $ac_executable_extensions; do
11267 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
11268 as_fn_executable_p "$ac_path_lt_DD" || continue
11269 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11270 cmp -s conftest.i conftest.out \
11271 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11272 fi
11273 $ac_path_lt_DD_found && break 3
11274 done
11275 done
11276 done
11277 IFS=$as_save_IFS
11278 if test -z "$ac_cv_path_lt_DD"; then
11279 :
11280 fi
11281 else
11282 ac_cv_path_lt_DD=$lt_DD
11283 fi
11284
11285 rm -f conftest.i conftest2.i conftest.out
11286 fi
11287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11288 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
11289
11290
11291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11292 printf %s "checking how to truncate binary pipes... " >&6; }
11293 if test ${lt_cv_truncate_bin+y}
11294 then :
11295 printf %s "(cached) " >&6
11296 else $as_nop
11297 printf 0123456789abcdef0123456789abcdef >conftest.i
11298 cat conftest.i conftest.i >conftest2.i
11299 lt_cv_truncate_bin=
11300 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11301 cmp -s conftest.i conftest.out \
11302 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11303 fi
11304 rm -f conftest.i conftest2.i conftest.out
11305 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
11306 fi
11307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11308 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
11309
11310
11311
11312
11313
11314
11315
11316 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
11317 func_cc_basename ()
11318 {
11319 for cc_temp in $*""; do
11320 case $cc_temp in
11321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11323 \-*) ;;
11324 *) break;;
11325 esac
11326 done
11327 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11328 }
11329
11330 # Check whether --enable-libtool-lock was given.
11331 if test ${enable_libtool_lock+y}
11332 then :
11333 enableval=$enable_libtool_lock;
11334 fi
11335
11336 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11337
11338 # Some flags need to be propagated to the compiler or linker for good
11339 # libtool support.
11340 case $host in
11341 ia64-*-hpux*)
11342 # Find out what ABI is being produced by ac_compile, and set mode
11343 # options accordingly.
11344 echo 'int i;' > conftest.$ac_ext
11345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11346 (eval $ac_compile) 2>&5
11347 ac_status=$?
11348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11349 test $ac_status = 0; }; then
11350 case `$FILECMD conftest.$ac_objext` in
11351 *ELF-32*)
11352 HPUX_IA64_MODE=32
11353 ;;
11354 *ELF-64*)
11355 HPUX_IA64_MODE=64
11356 ;;
11357 esac
11358 fi
11359 rm -rf conftest*
11360 ;;
11361 *-*-irix6*)
11362 # Find out what ABI is being produced by ac_compile, and set linker
11363 # options accordingly.
11364 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11366 (eval $ac_compile) 2>&5
11367 ac_status=$?
11368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11369 test $ac_status = 0; }; then
11370 if test yes = "$lt_cv_prog_gnu_ld"; then
11371 case `$FILECMD conftest.$ac_objext` in
11372 *32-bit*)
11373 LD="${LD-ld} -melf32bsmip"
11374 ;;
11375 *N32*)
11376 LD="${LD-ld} -melf32bmipn32"
11377 ;;
11378 *64-bit*)
11379 LD="${LD-ld} -melf64bmip"
11380 ;;
11381 esac
11382 else
11383 case `$FILECMD conftest.$ac_objext` in
11384 *32-bit*)
11385 LD="${LD-ld} -32"
11386 ;;
11387 *N32*)
11388 LD="${LD-ld} -n32"
11389 ;;
11390 *64-bit*)
11391 LD="${LD-ld} -64"
11392 ;;
11393 esac
11394 fi
11395 fi
11396 rm -rf conftest*
11397 ;;
11398
11399 mips64*-*linux*)
11400 # Find out what ABI is being produced by ac_compile, and set linker
11401 # options accordingly.
11402 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11404 (eval $ac_compile) 2>&5
11405 ac_status=$?
11406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11407 test $ac_status = 0; }; then
11408 emul=elf
11409 case `$FILECMD conftest.$ac_objext` in
11410 *32-bit*)
11411 emul="${emul}32"
11412 ;;
11413 *64-bit*)
11414 emul="${emul}64"
11415 ;;
11416 esac
11417 case `$FILECMD conftest.$ac_objext` in
11418 *MSB*)
11419 emul="${emul}btsmip"
11420 ;;
11421 *LSB*)
11422 emul="${emul}ltsmip"
11423 ;;
11424 esac
11425 case `$FILECMD conftest.$ac_objext` in
11426 *N32*)
11427 emul="${emul}n32"
11428 ;;
11429 esac
11430 LD="${LD-ld} -m $emul"
11431 fi
11432 rm -rf conftest*
11433 ;;
11434
11435 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11436 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11437 # Find out what ABI is being produced by ac_compile, and set linker
11438 # options accordingly. Note that the listed cases only cover the
11439 # situations where additional linker options are needed (such as when
11440 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11441 # vice versa); the common cases where no linker options are needed do
11442 # not appear in the list.
11443 echo 'int i;' > conftest.$ac_ext
11444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11445 (eval $ac_compile) 2>&5
11446 ac_status=$?
11447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11448 test $ac_status = 0; }; then
11449 case `$FILECMD conftest.o` in
11450 *32-bit*)
11451 case $host in
11452 x86_64-*kfreebsd*-gnu)
11453 LD="${LD-ld} -m elf_i386_fbsd"
11454 ;;
11455 x86_64-*linux*)
11456 case `$FILECMD conftest.o` in
11457 *x86-64*)
11458 LD="${LD-ld} -m elf32_x86_64"
11459 ;;
11460 *)
11461 LD="${LD-ld} -m elf_i386"
11462 ;;
11463 esac
11464 ;;
11465 powerpc64le-*linux*)
11466 LD="${LD-ld} -m elf32lppclinux"
11467 ;;
11468 powerpc64-*linux*)
11469 LD="${LD-ld} -m elf32ppclinux"
11470 ;;
11471 s390x-*linux*)
11472 LD="${LD-ld} -m elf_s390"
11473 ;;
11474 sparc64-*linux*)
11475 LD="${LD-ld} -m elf32_sparc"
11476 ;;
11477 esac
11478 ;;
11479 *64-bit*)
11480 case $host in
11481 x86_64-*kfreebsd*-gnu)
11482 LD="${LD-ld} -m elf_x86_64_fbsd"
11483 ;;
11484 x86_64-*linux*)
11485 LD="${LD-ld} -m elf_x86_64"
11486 ;;
11487 powerpcle-*linux*)
11488 LD="${LD-ld} -m elf64lppc"
11489 ;;
11490 powerpc-*linux*)
11491 LD="${LD-ld} -m elf64ppc"
11492 ;;
11493 s390*-*linux*|s390*-*tpf*)
11494 LD="${LD-ld} -m elf64_s390"
11495 ;;
11496 sparc*-*linux*)
11497 LD="${LD-ld} -m elf64_sparc"
11498 ;;
11499 esac
11500 ;;
11501 esac
11502 fi
11503 rm -rf conftest*
11504 ;;
11505
11506 *-*-sco3.2v5*)
11507 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11508 SAVE_CFLAGS=$CFLAGS
11509 CFLAGS="$CFLAGS -belf"
11510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11511 printf %s "checking whether the C compiler needs -belf... " >&6; }
11512 if test ${lt_cv_cc_needs_belf+y}
11513 then :
11514 printf %s "(cached) " >&6
11515 else $as_nop
11516 ac_ext=c
11517 ac_cpp='$CPP $CPPFLAGS'
11518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11521
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11524
11525 int
11526 main (void)
11527 {
11528
11529 ;
11530 return 0;
11531 }
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"
11534 then :
11535 lt_cv_cc_needs_belf=yes
11536 else $as_nop
11537 lt_cv_cc_needs_belf=no
11538 fi
11539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11540 conftest$ac_exeext conftest.$ac_ext
11541 ac_ext=c
11542 ac_cpp='$CPP $CPPFLAGS'
11543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11546
11547 fi
11548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11549 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11550 if test yes != "$lt_cv_cc_needs_belf"; then
11551 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11552 CFLAGS=$SAVE_CFLAGS
11553 fi
11554 ;;
11555 *-*solaris*)
11556 # Find out what ABI is being produced by ac_compile, and set linker
11557 # options accordingly.
11558 echo 'int i;' > conftest.$ac_ext
11559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11560 (eval $ac_compile) 2>&5
11561 ac_status=$?
11562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11563 test $ac_status = 0; }; then
11564 case `$FILECMD conftest.o` in
11565 *64-bit*)
11566 case $lt_cv_prog_gnu_ld in
11567 yes*)
11568 case $host in
11569 i?86-*-solaris*|x86_64-*-solaris*)
11570 LD="${LD-ld} -m elf_x86_64"
11571 ;;
11572 sparc*-*-solaris*)
11573 LD="${LD-ld} -m elf64_sparc"
11574 ;;
11575 esac
11576 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11577 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11578 LD=${LD-ld}_sol2
11579 fi
11580 ;;
11581 *)
11582 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11583 LD="${LD-ld} -64"
11584 fi
11585 ;;
11586 esac
11587 ;;
11588 esac
11589 fi
11590 rm -rf conftest*
11591 ;;
11592 esac
11593
11594 need_locks=$enable_libtool_lock
11595
11596 if test -n "$ac_tool_prefix"; then
11597 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11598 set dummy ${ac_tool_prefix}mt; ac_word=$2
11599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11600 printf %s "checking for $ac_word... " >&6; }
11601 if test ${ac_cv_prog_MANIFEST_TOOL+y}
11602 then :
11603 printf %s "(cached) " >&6
11604 else $as_nop
11605 if test -n "$MANIFEST_TOOL"; then
11606 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11607 else
11608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11610 do
11611 IFS=$as_save_IFS
11612 case $as_dir in #(((
11613 '') as_dir=./ ;;
11614 */) ;;
11615 *) as_dir=$as_dir/ ;;
11616 esac
11617 for ac_exec_ext in '' $ac_executable_extensions; do
11618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11619 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11621 break 2
11622 fi
11623 done
11624 done
11625 IFS=$as_save_IFS
11626
11627 fi
11628 fi
11629 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11630 if test -n "$MANIFEST_TOOL"; then
11631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11632 printf "%s\n" "$MANIFEST_TOOL" >&6; }
11633 else
11634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 printf "%s\n" "no" >&6; }
11636 fi
11637
11638
11639 fi
11640 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11641 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11642 # Extract the first word of "mt", so it can be a program name with args.
11643 set dummy mt; ac_word=$2
11644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645 printf %s "checking for $ac_word... " >&6; }
11646 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11647 then :
11648 printf %s "(cached) " >&6
11649 else $as_nop
11650 if test -n "$ac_ct_MANIFEST_TOOL"; then
11651 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11652 else
11653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11654 for as_dir in $PATH
11655 do
11656 IFS=$as_save_IFS
11657 case $as_dir in #(((
11658 '') as_dir=./ ;;
11659 */) ;;
11660 *) as_dir=$as_dir/ ;;
11661 esac
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11664 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11666 break 2
11667 fi
11668 done
11669 done
11670 IFS=$as_save_IFS
11671
11672 fi
11673 fi
11674 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11675 if test -n "$ac_ct_MANIFEST_TOOL"; then
11676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11677 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11678 else
11679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680 printf "%s\n" "no" >&6; }
11681 fi
11682
11683 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11684 MANIFEST_TOOL=":"
11685 else
11686 case $cross_compiling:$ac_tool_warned in
11687 yes:)
11688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11689 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11690 ac_tool_warned=yes ;;
11691 esac
11692 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11693 fi
11694 else
11695 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11696 fi
11697
11698 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11700 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11701 if test ${lt_cv_path_mainfest_tool+y}
11702 then :
11703 printf %s "(cached) " >&6
11704 else $as_nop
11705 lt_cv_path_mainfest_tool=no
11706 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11707 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11708 cat conftest.err >&5
11709 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11710 lt_cv_path_mainfest_tool=yes
11711 fi
11712 rm -f conftest*
11713 fi
11714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11715 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11716 if test yes != "$lt_cv_path_mainfest_tool"; then
11717 MANIFEST_TOOL=:
11718 fi
11719
11720
11721
11722
11723
11724
11725 case $host_os in
11726 rhapsody* | darwin*)
11727 if test -n "$ac_tool_prefix"; then
11728 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11729 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731 printf %s "checking for $ac_word... " >&6; }
11732 if test ${ac_cv_prog_DSYMUTIL+y}
11733 then :
11734 printf %s "(cached) " >&6
11735 else $as_nop
11736 if test -n "$DSYMUTIL"; then
11737 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11738 else
11739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 for as_dir in $PATH
11741 do
11742 IFS=$as_save_IFS
11743 case $as_dir in #(((
11744 '') as_dir=./ ;;
11745 */) ;;
11746 *) as_dir=$as_dir/ ;;
11747 esac
11748 for ac_exec_ext in '' $ac_executable_extensions; do
11749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11750 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11752 break 2
11753 fi
11754 done
11755 done
11756 IFS=$as_save_IFS
11757
11758 fi
11759 fi
11760 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11761 if test -n "$DSYMUTIL"; then
11762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11763 printf "%s\n" "$DSYMUTIL" >&6; }
11764 else
11765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 printf "%s\n" "no" >&6; }
11767 fi
11768
11769
11770 fi
11771 if test -z "$ac_cv_prog_DSYMUTIL"; then
11772 ac_ct_DSYMUTIL=$DSYMUTIL
11773 # Extract the first word of "dsymutil", so it can be a program name with args.
11774 set dummy dsymutil; ac_word=$2
11775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776 printf %s "checking for $ac_word... " >&6; }
11777 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11778 then :
11779 printf %s "(cached) " >&6
11780 else $as_nop
11781 if test -n "$ac_ct_DSYMUTIL"; then
11782 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11783 else
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11786 do
11787 IFS=$as_save_IFS
11788 case $as_dir in #(((
11789 '') as_dir=./ ;;
11790 */) ;;
11791 *) as_dir=$as_dir/ ;;
11792 esac
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11795 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11797 break 2
11798 fi
11799 done
11800 done
11801 IFS=$as_save_IFS
11802
11803 fi
11804 fi
11805 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11806 if test -n "$ac_ct_DSYMUTIL"; then
11807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11808 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11809 else
11810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811 printf "%s\n" "no" >&6; }
11812 fi
11813
11814 if test "x$ac_ct_DSYMUTIL" = x; then
11815 DSYMUTIL=":"
11816 else
11817 case $cross_compiling:$ac_tool_warned in
11818 yes:)
11819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11820 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11821 ac_tool_warned=yes ;;
11822 esac
11823 DSYMUTIL=$ac_ct_DSYMUTIL
11824 fi
11825 else
11826 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11827 fi
11828
11829 if test -n "$ac_tool_prefix"; then
11830 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11831 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 printf %s "checking for $ac_word... " >&6; }
11834 if test ${ac_cv_prog_NMEDIT+y}
11835 then :
11836 printf %s "(cached) " >&6
11837 else $as_nop
11838 if test -n "$NMEDIT"; then
11839 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11840 else
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
11843 do
11844 IFS=$as_save_IFS
11845 case $as_dir in #(((
11846 '') as_dir=./ ;;
11847 */) ;;
11848 *) as_dir=$as_dir/ ;;
11849 esac
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11852 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11854 break 2
11855 fi
11856 done
11857 done
11858 IFS=$as_save_IFS
11859
11860 fi
11861 fi
11862 NMEDIT=$ac_cv_prog_NMEDIT
11863 if test -n "$NMEDIT"; then
11864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11865 printf "%s\n" "$NMEDIT" >&6; }
11866 else
11867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 printf "%s\n" "no" >&6; }
11869 fi
11870
11871
11872 fi
11873 if test -z "$ac_cv_prog_NMEDIT"; then
11874 ac_ct_NMEDIT=$NMEDIT
11875 # Extract the first word of "nmedit", so it can be a program name with args.
11876 set dummy nmedit; ac_word=$2
11877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11878 printf %s "checking for $ac_word... " >&6; }
11879 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11880 then :
11881 printf %s "(cached) " >&6
11882 else $as_nop
11883 if test -n "$ac_ct_NMEDIT"; then
11884 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11885 else
11886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11888 do
11889 IFS=$as_save_IFS
11890 case $as_dir in #(((
11891 '') as_dir=./ ;;
11892 */) ;;
11893 *) as_dir=$as_dir/ ;;
11894 esac
11895 for ac_exec_ext in '' $ac_executable_extensions; do
11896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11897 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11899 break 2
11900 fi
11901 done
11902 done
11903 IFS=$as_save_IFS
11904
11905 fi
11906 fi
11907 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11908 if test -n "$ac_ct_NMEDIT"; then
11909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11910 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11911 else
11912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 printf "%s\n" "no" >&6; }
11914 fi
11915
11916 if test "x$ac_ct_NMEDIT" = x; then
11917 NMEDIT=":"
11918 else
11919 case $cross_compiling:$ac_tool_warned in
11920 yes:)
11921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11922 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11923 ac_tool_warned=yes ;;
11924 esac
11925 NMEDIT=$ac_ct_NMEDIT
11926 fi
11927 else
11928 NMEDIT="$ac_cv_prog_NMEDIT"
11929 fi
11930
11931 if test -n "$ac_tool_prefix"; then
11932 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11933 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11935 printf %s "checking for $ac_word... " >&6; }
11936 if test ${ac_cv_prog_LIPO+y}
11937 then :
11938 printf %s "(cached) " >&6
11939 else $as_nop
11940 if test -n "$LIPO"; then
11941 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11942 else
11943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944 for as_dir in $PATH
11945 do
11946 IFS=$as_save_IFS
11947 case $as_dir in #(((
11948 '') as_dir=./ ;;
11949 */) ;;
11950 *) as_dir=$as_dir/ ;;
11951 esac
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11954 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11956 break 2
11957 fi
11958 done
11959 done
11960 IFS=$as_save_IFS
11961
11962 fi
11963 fi
11964 LIPO=$ac_cv_prog_LIPO
11965 if test -n "$LIPO"; then
11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11967 printf "%s\n" "$LIPO" >&6; }
11968 else
11969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970 printf "%s\n" "no" >&6; }
11971 fi
11972
11973
11974 fi
11975 if test -z "$ac_cv_prog_LIPO"; then
11976 ac_ct_LIPO=$LIPO
11977 # Extract the first word of "lipo", so it can be a program name with args.
11978 set dummy lipo; ac_word=$2
11979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980 printf %s "checking for $ac_word... " >&6; }
11981 if test ${ac_cv_prog_ac_ct_LIPO+y}
11982 then :
11983 printf %s "(cached) " >&6
11984 else $as_nop
11985 if test -n "$ac_ct_LIPO"; then
11986 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11987 else
11988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11990 do
11991 IFS=$as_save_IFS
11992 case $as_dir in #(((
11993 '') as_dir=./ ;;
11994 */) ;;
11995 *) as_dir=$as_dir/ ;;
11996 esac
11997 for ac_exec_ext in '' $ac_executable_extensions; do
11998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11999 ac_cv_prog_ac_ct_LIPO="lipo"
12000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12001 break 2
12002 fi
12003 done
12004 done
12005 IFS=$as_save_IFS
12006
12007 fi
12008 fi
12009 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12010 if test -n "$ac_ct_LIPO"; then
12011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12012 printf "%s\n" "$ac_ct_LIPO" >&6; }
12013 else
12014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015 printf "%s\n" "no" >&6; }
12016 fi
12017
12018 if test "x$ac_ct_LIPO" = x; then
12019 LIPO=":"
12020 else
12021 case $cross_compiling:$ac_tool_warned in
12022 yes:)
12023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12024 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12025 ac_tool_warned=yes ;;
12026 esac
12027 LIPO=$ac_ct_LIPO
12028 fi
12029 else
12030 LIPO="$ac_cv_prog_LIPO"
12031 fi
12032
12033 if test -n "$ac_tool_prefix"; then
12034 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12035 set dummy ${ac_tool_prefix}otool; ac_word=$2
12036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037 printf %s "checking for $ac_word... " >&6; }
12038 if test ${ac_cv_prog_OTOOL+y}
12039 then :
12040 printf %s "(cached) " >&6
12041 else $as_nop
12042 if test -n "$OTOOL"; then
12043 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12044 else
12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in $PATH
12047 do
12048 IFS=$as_save_IFS
12049 case $as_dir in #(((
12050 '') as_dir=./ ;;
12051 */) ;;
12052 *) as_dir=$as_dir/ ;;
12053 esac
12054 for ac_exec_ext in '' $ac_executable_extensions; do
12055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12056 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12058 break 2
12059 fi
12060 done
12061 done
12062 IFS=$as_save_IFS
12063
12064 fi
12065 fi
12066 OTOOL=$ac_cv_prog_OTOOL
12067 if test -n "$OTOOL"; then
12068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12069 printf "%s\n" "$OTOOL" >&6; }
12070 else
12071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072 printf "%s\n" "no" >&6; }
12073 fi
12074
12075
12076 fi
12077 if test -z "$ac_cv_prog_OTOOL"; then
12078 ac_ct_OTOOL=$OTOOL
12079 # Extract the first word of "otool", so it can be a program name with args.
12080 set dummy otool; ac_word=$2
12081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12082 printf %s "checking for $ac_word... " >&6; }
12083 if test ${ac_cv_prog_ac_ct_OTOOL+y}
12084 then :
12085 printf %s "(cached) " >&6
12086 else $as_nop
12087 if test -n "$ac_ct_OTOOL"; then
12088 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12089 else
12090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091 for as_dir in $PATH
12092 do
12093 IFS=$as_save_IFS
12094 case $as_dir in #(((
12095 '') as_dir=./ ;;
12096 */) ;;
12097 *) as_dir=$as_dir/ ;;
12098 esac
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12101 ac_cv_prog_ac_ct_OTOOL="otool"
12102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12103 break 2
12104 fi
12105 done
12106 done
12107 IFS=$as_save_IFS
12108
12109 fi
12110 fi
12111 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12112 if test -n "$ac_ct_OTOOL"; then
12113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12114 printf "%s\n" "$ac_ct_OTOOL" >&6; }
12115 else
12116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 printf "%s\n" "no" >&6; }
12118 fi
12119
12120 if test "x$ac_ct_OTOOL" = x; then
12121 OTOOL=":"
12122 else
12123 case $cross_compiling:$ac_tool_warned in
12124 yes:)
12125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12126 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12127 ac_tool_warned=yes ;;
12128 esac
12129 OTOOL=$ac_ct_OTOOL
12130 fi
12131 else
12132 OTOOL="$ac_cv_prog_OTOOL"
12133 fi
12134
12135 if test -n "$ac_tool_prefix"; then
12136 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12137 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12139 printf %s "checking for $ac_word... " >&6; }
12140 if test ${ac_cv_prog_OTOOL64+y}
12141 then :
12142 printf %s "(cached) " >&6
12143 else $as_nop
12144 if test -n "$OTOOL64"; then
12145 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12146 else
12147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148 for as_dir in $PATH
12149 do
12150 IFS=$as_save_IFS
12151 case $as_dir in #(((
12152 '') as_dir=./ ;;
12153 */) ;;
12154 *) as_dir=$as_dir/ ;;
12155 esac
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12158 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12160 break 2
12161 fi
12162 done
12163 done
12164 IFS=$as_save_IFS
12165
12166 fi
12167 fi
12168 OTOOL64=$ac_cv_prog_OTOOL64
12169 if test -n "$OTOOL64"; then
12170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12171 printf "%s\n" "$OTOOL64" >&6; }
12172 else
12173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 printf "%s\n" "no" >&6; }
12175 fi
12176
12177
12178 fi
12179 if test -z "$ac_cv_prog_OTOOL64"; then
12180 ac_ct_OTOOL64=$OTOOL64
12181 # Extract the first word of "otool64", so it can be a program name with args.
12182 set dummy otool64; ac_word=$2
12183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12184 printf %s "checking for $ac_word... " >&6; }
12185 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
12186 then :
12187 printf %s "(cached) " >&6
12188 else $as_nop
12189 if test -n "$ac_ct_OTOOL64"; then
12190 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12191 else
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12194 do
12195 IFS=$as_save_IFS
12196 case $as_dir in #(((
12197 '') as_dir=./ ;;
12198 */) ;;
12199 *) as_dir=$as_dir/ ;;
12200 esac
12201 for ac_exec_ext in '' $ac_executable_extensions; do
12202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12203 ac_cv_prog_ac_ct_OTOOL64="otool64"
12204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12205 break 2
12206 fi
12207 done
12208 done
12209 IFS=$as_save_IFS
12210
12211 fi
12212 fi
12213 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12214 if test -n "$ac_ct_OTOOL64"; then
12215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12216 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
12217 else
12218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219 printf "%s\n" "no" >&6; }
12220 fi
12221
12222 if test "x$ac_ct_OTOOL64" = x; then
12223 OTOOL64=":"
12224 else
12225 case $cross_compiling:$ac_tool_warned in
12226 yes:)
12227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12228 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12229 ac_tool_warned=yes ;;
12230 esac
12231 OTOOL64=$ac_ct_OTOOL64
12232 fi
12233 else
12234 OTOOL64="$ac_cv_prog_OTOOL64"
12235 fi
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12264 printf %s "checking for -single_module linker flag... " >&6; }
12265 if test ${lt_cv_apple_cc_single_mod+y}
12266 then :
12267 printf %s "(cached) " >&6
12268 else $as_nop
12269 lt_cv_apple_cc_single_mod=no
12270 if test -z "$LT_MULTI_MODULE"; then
12271 # By default we will add the -single_module flag. You can override
12272 # by either setting the environment variable LT_MULTI_MODULE
12273 # non-empty at configure time, or by adding -multi_module to the
12274 # link flags.
12275 rm -rf libconftest.dylib*
12276 echo "int foo(void){return 1;}" > conftest.c
12277 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12278 -dynamiclib -Wl,-single_module conftest.c" >&5
12279 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12280 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12281 _lt_result=$?
12282 # If there is a non-empty error log, and "single_module"
12283 # appears in it, assume the flag caused a linker warning
12284 if test -s conftest.err && $GREP single_module conftest.err; then
12285 cat conftest.err >&5
12286 # Otherwise, if the output was created with a 0 exit code from
12287 # the compiler, it worked.
12288 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12289 lt_cv_apple_cc_single_mod=yes
12290 else
12291 cat conftest.err >&5
12292 fi
12293 rm -rf libconftest.dylib*
12294 rm -f conftest.*
12295 fi
12296 fi
12297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12298 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
12299
12300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12301 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
12302 if test ${lt_cv_ld_exported_symbols_list+y}
12303 then :
12304 printf %s "(cached) " >&6
12305 else $as_nop
12306 lt_cv_ld_exported_symbols_list=no
12307 save_LDFLAGS=$LDFLAGS
12308 echo "_main" > conftest.sym
12309 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12312
12313 int
12314 main (void)
12315 {
12316
12317 ;
12318 return 0;
12319 }
12320 _ACEOF
12321 if ac_fn_c_try_link "$LINENO"
12322 then :
12323 lt_cv_ld_exported_symbols_list=yes
12324 else $as_nop
12325 lt_cv_ld_exported_symbols_list=no
12326 fi
12327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12328 conftest$ac_exeext conftest.$ac_ext
12329 LDFLAGS=$save_LDFLAGS
12330
12331 fi
12332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12333 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
12334
12335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12336 printf %s "checking for -force_load linker flag... " >&6; }
12337 if test ${lt_cv_ld_force_load+y}
12338 then :
12339 printf %s "(cached) " >&6
12340 else $as_nop
12341 lt_cv_ld_force_load=no
12342 cat > conftest.c << _LT_EOF
12343 int forced_loaded() { return 2;}
12344 _LT_EOF
12345 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12346 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12347 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
12348 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
12349 echo "$RANLIB libconftest.a" >&5
12350 $RANLIB libconftest.a 2>&5
12351 cat > conftest.c << _LT_EOF
12352 int main() { return 0;}
12353 _LT_EOF
12354 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12355 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12356 _lt_result=$?
12357 if test -s conftest.err && $GREP force_load conftest.err; then
12358 cat conftest.err >&5
12359 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12360 lt_cv_ld_force_load=yes
12361 else
12362 cat conftest.err >&5
12363 fi
12364 rm -f conftest.err libconftest.a conftest conftest.c
12365 rm -rf conftest.dSYM
12366
12367 fi
12368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12369 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
12370 case $host_os in
12371 rhapsody* | darwin1.[012])
12372 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12373 darwin1.*)
12374 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12375 darwin*)
12376 case $MACOSX_DEPLOYMENT_TARGET,$host in
12377 10.[012],*|,*powerpc*-darwin[5-8]*)
12378 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12379 *)
12380 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12381 esac
12382 ;;
12383 esac
12384 if test yes = "$lt_cv_apple_cc_single_mod"; then
12385 _lt_dar_single_mod='$single_module'
12386 fi
12387 if test yes = "$lt_cv_ld_exported_symbols_list"; then
12388 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12389 else
12390 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12391 fi
12392 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12393 _lt_dsymutil='~$DSYMUTIL $lib || :'
12394 else
12395 _lt_dsymutil=
12396 fi
12397 ;;
12398 esac
12399
12400 # func_munge_path_list VARIABLE PATH
12401 # -----------------------------------
12402 # VARIABLE is name of variable containing _space_ separated list of
12403 # directories to be munged by the contents of PATH, which is string
12404 # having a format:
12405 # "DIR[:DIR]:"
12406 # string "DIR[ DIR]" will be prepended to VARIABLE
12407 # ":DIR[:DIR]"
12408 # string "DIR[ DIR]" will be appended to VARIABLE
12409 # "DIRP[:DIRP]::[DIRA:]DIRA"
12410 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12411 # "DIRA[ DIRA]" will be appended to VARIABLE
12412 # "DIR[:DIR]"
12413 # VARIABLE will be replaced by "DIR[ DIR]"
12414 func_munge_path_list ()
12415 {
12416 case x$2 in
12417 x)
12418 ;;
12419 *:)
12420 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12421 ;;
12422 x:*)
12423 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12424 ;;
12425 *::*)
12426 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12427 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12428 ;;
12429 *)
12430 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12431 ;;
12432 esac
12433 }
12434
12435 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12436 "
12437 if test "x$ac_cv_header_dlfcn_h" = xyes
12438 then :
12439 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12440
12441 fi
12442
12443
12444
12445
12446
12447 # Set options
12448 enable_win32_dll=yes
12449
12450 case $host in
12451 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12452 if test -n "$ac_tool_prefix"; then
12453 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12454 set dummy ${ac_tool_prefix}as; ac_word=$2
12455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456 printf %s "checking for $ac_word... " >&6; }
12457 if test ${ac_cv_prog_AS+y}
12458 then :
12459 printf %s "(cached) " >&6
12460 else $as_nop
12461 if test -n "$AS"; then
12462 ac_cv_prog_AS="$AS" # Let the user override the test.
12463 else
12464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465 for as_dir in $PATH
12466 do
12467 IFS=$as_save_IFS
12468 case $as_dir in #(((
12469 '') as_dir=./ ;;
12470 */) ;;
12471 *) as_dir=$as_dir/ ;;
12472 esac
12473 for ac_exec_ext in '' $ac_executable_extensions; do
12474 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12475 ac_cv_prog_AS="${ac_tool_prefix}as"
12476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12477 break 2
12478 fi
12479 done
12480 done
12481 IFS=$as_save_IFS
12482
12483 fi
12484 fi
12485 AS=$ac_cv_prog_AS
12486 if test -n "$AS"; then
12487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12488 printf "%s\n" "$AS" >&6; }
12489 else
12490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 printf "%s\n" "no" >&6; }
12492 fi
12493
12494
12495 fi
12496 if test -z "$ac_cv_prog_AS"; then
12497 ac_ct_AS=$AS
12498 # Extract the first word of "as", so it can be a program name with args.
12499 set dummy as; ac_word=$2
12500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501 printf %s "checking for $ac_word... " >&6; }
12502 if test ${ac_cv_prog_ac_ct_AS+y}
12503 then :
12504 printf %s "(cached) " >&6
12505 else $as_nop
12506 if test -n "$ac_ct_AS"; then
12507 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12508 else
12509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510 for as_dir in $PATH
12511 do
12512 IFS=$as_save_IFS
12513 case $as_dir in #(((
12514 '') as_dir=./ ;;
12515 */) ;;
12516 *) as_dir=$as_dir/ ;;
12517 esac
12518 for ac_exec_ext in '' $ac_executable_extensions; do
12519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12520 ac_cv_prog_ac_ct_AS="as"
12521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12522 break 2
12523 fi
12524 done
12525 done
12526 IFS=$as_save_IFS
12527
12528 fi
12529 fi
12530 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12531 if test -n "$ac_ct_AS"; then
12532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12533 printf "%s\n" "$ac_ct_AS" >&6; }
12534 else
12535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 printf "%s\n" "no" >&6; }
12537 fi
12538
12539 if test "x$ac_ct_AS" = x; then
12540 AS="false"
12541 else
12542 case $cross_compiling:$ac_tool_warned in
12543 yes:)
12544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12545 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12546 ac_tool_warned=yes ;;
12547 esac
12548 AS=$ac_ct_AS
12549 fi
12550 else
12551 AS="$ac_cv_prog_AS"
12552 fi
12553
12554 if test -n "$ac_tool_prefix"; then
12555 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12556 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558 printf %s "checking for $ac_word... " >&6; }
12559 if test ${ac_cv_prog_DLLTOOL+y}
12560 then :
12561 printf %s "(cached) " >&6
12562 else $as_nop
12563 if test -n "$DLLTOOL"; then
12564 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12565 else
12566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567 for as_dir in $PATH
12568 do
12569 IFS=$as_save_IFS
12570 case $as_dir in #(((
12571 '') as_dir=./ ;;
12572 */) ;;
12573 *) as_dir=$as_dir/ ;;
12574 esac
12575 for ac_exec_ext in '' $ac_executable_extensions; do
12576 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12577 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12579 break 2
12580 fi
12581 done
12582 done
12583 IFS=$as_save_IFS
12584
12585 fi
12586 fi
12587 DLLTOOL=$ac_cv_prog_DLLTOOL
12588 if test -n "$DLLTOOL"; then
12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12590 printf "%s\n" "$DLLTOOL" >&6; }
12591 else
12592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 printf "%s\n" "no" >&6; }
12594 fi
12595
12596
12597 fi
12598 if test -z "$ac_cv_prog_DLLTOOL"; then
12599 ac_ct_DLLTOOL=$DLLTOOL
12600 # Extract the first word of "dlltool", so it can be a program name with args.
12601 set dummy dlltool; ac_word=$2
12602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603 printf %s "checking for $ac_word... " >&6; }
12604 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12605 then :
12606 printf %s "(cached) " >&6
12607 else $as_nop
12608 if test -n "$ac_ct_DLLTOOL"; then
12609 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12610 else
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
12613 do
12614 IFS=$as_save_IFS
12615 case $as_dir in #(((
12616 '') as_dir=./ ;;
12617 */) ;;
12618 *) as_dir=$as_dir/ ;;
12619 esac
12620 for ac_exec_ext in '' $ac_executable_extensions; do
12621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12622 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12624 break 2
12625 fi
12626 done
12627 done
12628 IFS=$as_save_IFS
12629
12630 fi
12631 fi
12632 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12633 if test -n "$ac_ct_DLLTOOL"; then
12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12635 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12636 else
12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 printf "%s\n" "no" >&6; }
12639 fi
12640
12641 if test "x$ac_ct_DLLTOOL" = x; then
12642 DLLTOOL="false"
12643 else
12644 case $cross_compiling:$ac_tool_warned in
12645 yes:)
12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12647 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12648 ac_tool_warned=yes ;;
12649 esac
12650 DLLTOOL=$ac_ct_DLLTOOL
12651 fi
12652 else
12653 DLLTOOL="$ac_cv_prog_DLLTOOL"
12654 fi
12655
12656 if test -n "$ac_tool_prefix"; then
12657 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12658 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660 printf %s "checking for $ac_word... " >&6; }
12661 if test ${ac_cv_prog_OBJDUMP+y}
12662 then :
12663 printf %s "(cached) " >&6
12664 else $as_nop
12665 if test -n "$OBJDUMP"; then
12666 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12667 else
12668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669 for as_dir in $PATH
12670 do
12671 IFS=$as_save_IFS
12672 case $as_dir in #(((
12673 '') as_dir=./ ;;
12674 */) ;;
12675 *) as_dir=$as_dir/ ;;
12676 esac
12677 for ac_exec_ext in '' $ac_executable_extensions; do
12678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12679 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12681 break 2
12682 fi
12683 done
12684 done
12685 IFS=$as_save_IFS
12686
12687 fi
12688 fi
12689 OBJDUMP=$ac_cv_prog_OBJDUMP
12690 if test -n "$OBJDUMP"; then
12691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12692 printf "%s\n" "$OBJDUMP" >&6; }
12693 else
12694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695 printf "%s\n" "no" >&6; }
12696 fi
12697
12698
12699 fi
12700 if test -z "$ac_cv_prog_OBJDUMP"; then
12701 ac_ct_OBJDUMP=$OBJDUMP
12702 # Extract the first word of "objdump", so it can be a program name with args.
12703 set dummy objdump; ac_word=$2
12704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12705 printf %s "checking for $ac_word... " >&6; }
12706 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12707 then :
12708 printf %s "(cached) " >&6
12709 else $as_nop
12710 if test -n "$ac_ct_OBJDUMP"; then
12711 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12712 else
12713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714 for as_dir in $PATH
12715 do
12716 IFS=$as_save_IFS
12717 case $as_dir in #(((
12718 '') as_dir=./ ;;
12719 */) ;;
12720 *) as_dir=$as_dir/ ;;
12721 esac
12722 for ac_exec_ext in '' $ac_executable_extensions; do
12723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12724 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12726 break 2
12727 fi
12728 done
12729 done
12730 IFS=$as_save_IFS
12731
12732 fi
12733 fi
12734 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12735 if test -n "$ac_ct_OBJDUMP"; then
12736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12737 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12738 else
12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740 printf "%s\n" "no" >&6; }
12741 fi
12742
12743 if test "x$ac_ct_OBJDUMP" = x; then
12744 OBJDUMP="false"
12745 else
12746 case $cross_compiling:$ac_tool_warned in
12747 yes:)
12748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12749 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12750 ac_tool_warned=yes ;;
12751 esac
12752 OBJDUMP=$ac_ct_OBJDUMP
12753 fi
12754 else
12755 OBJDUMP="$ac_cv_prog_OBJDUMP"
12756 fi
12757
12758 ;;
12759 esac
12760
12761 test -z "$AS" && AS=as
12762
12763
12764
12765
12766
12767 test -z "$DLLTOOL" && DLLTOOL=dlltool
12768
12769
12770
12771
12772
12773 test -z "$OBJDUMP" && OBJDUMP=objdump
12774
12775
12776
12777
12778 # Check whether --enable-static was given.
12779 if test ${enable_static+y}
12780 then :
12781 enableval=$enable_static; p=${PACKAGE-default}
12782 case $enableval in
12783 yes) enable_static=yes ;;
12784 no) enable_static=no ;;
12785 *)
12786 enable_static=no
12787 # Look at the argument we got. We use all the common list separators.
12788 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12789 for pkg in $enableval; do
12790 IFS=$lt_save_ifs
12791 if test "X$pkg" = "X$p"; then
12792 enable_static=yes
12793 fi
12794 done
12795 IFS=$lt_save_ifs
12796 ;;
12797 esac
12798 else $as_nop
12799 enable_static=no
12800 fi
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811 enable_dlopen=no
12812
12813
12814
12815 # Check whether --enable-shared was given.
12816 if test ${enable_shared+y}
12817 then :
12818 enableval=$enable_shared; p=${PACKAGE-default}
12819 case $enableval in
12820 yes) enable_shared=yes ;;
12821 no) enable_shared=no ;;
12822 *)
12823 enable_shared=no
12824 # Look at the argument we got. We use all the common list separators.
12825 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12826 for pkg in $enableval; do
12827 IFS=$lt_save_ifs
12828 if test "X$pkg" = "X$p"; then
12829 enable_shared=yes
12830 fi
12831 done
12832 IFS=$lt_save_ifs
12833 ;;
12834 esac
12835 else $as_nop
12836 enable_shared=yes
12837 fi
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849 # Check whether --with-pic was given.
12850 if test ${with_pic+y}
12851 then :
12852 withval=$with_pic; lt_p=${PACKAGE-default}
12853 case $withval in
12854 yes|no) pic_mode=$withval ;;
12855 *)
12856 pic_mode=default
12857 # Look at the argument we got. We use all the common list separators.
12858 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12859 for lt_pkg in $withval; do
12860 IFS=$lt_save_ifs
12861 if test "X$lt_pkg" = "X$lt_p"; then
12862 pic_mode=yes
12863 fi
12864 done
12865 IFS=$lt_save_ifs
12866 ;;
12867 esac
12868 else $as_nop
12869 pic_mode=default
12870 fi
12871
12872
12873
12874
12875
12876
12877
12878
12879 # Check whether --enable-fast-install was given.
12880 if test ${enable_fast_install+y}
12881 then :
12882 enableval=$enable_fast_install; p=${PACKAGE-default}
12883 case $enableval in
12884 yes) enable_fast_install=yes ;;
12885 no) enable_fast_install=no ;;
12886 *)
12887 enable_fast_install=no
12888 # Look at the argument we got. We use all the common list separators.
12889 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12890 for pkg in $enableval; do
12891 IFS=$lt_save_ifs
12892 if test "X$pkg" = "X$p"; then
12893 enable_fast_install=yes
12894 fi
12895 done
12896 IFS=$lt_save_ifs
12897 ;;
12898 esac
12899 else $as_nop
12900 enable_fast_install=yes
12901 fi
12902
12903
12904
12905
12906
12907
12908
12909
12910 shared_archive_member_spec=
12911 case $host,$enable_shared in
12912 power*-*-aix[5-9]*,yes)
12913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12914 printf %s "checking which variant of shared library versioning to provide... " >&6; }
12915
12916 # Check whether --with-aix-soname was given.
12917 if test ${with_aix_soname+y}
12918 then :
12919 withval=$with_aix_soname; case $withval in
12920 aix|svr4|both)
12921 ;;
12922 *)
12923 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12924 ;;
12925 esac
12926 lt_cv_with_aix_soname=$with_aix_soname
12927 else $as_nop
12928 if test ${lt_cv_with_aix_soname+y}
12929 then :
12930 printf %s "(cached) " >&6
12931 else $as_nop
12932 lt_cv_with_aix_soname=aix
12933 fi
12934
12935 with_aix_soname=$lt_cv_with_aix_soname
12936 fi
12937
12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12939 printf "%s\n" "$with_aix_soname" >&6; }
12940 if test aix != "$with_aix_soname"; then
12941 # For the AIX way of multilib, we name the shared archive member
12942 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12943 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12944 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12945 # the AIX toolchain works better with OBJECT_MODE set (default 32).
12946 if test 64 = "${OBJECT_MODE-32}"; then
12947 shared_archive_member_spec=shr_64
12948 else
12949 shared_archive_member_spec=shr
12950 fi
12951 fi
12952 ;;
12953 *)
12954 with_aix_soname=aix
12955 ;;
12956 esac
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967 # This can be used to rebuild libtool when needed
12968 LIBTOOL_DEPS=$ltmain
12969
12970 # Always use our own libtool.
12971 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002 test -z "$LN_S" && LN_S="ln -s"
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017 if test -n "${ZSH_VERSION+set}"; then
13018 setopt NO_GLOB_SUBST
13019 fi
13020
13021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13022 printf %s "checking for objdir... " >&6; }
13023 if test ${lt_cv_objdir+y}
13024 then :
13025 printf %s "(cached) " >&6
13026 else $as_nop
13027 rm -f .libs 2>/dev/null
13028 mkdir .libs 2>/dev/null
13029 if test -d .libs; then
13030 lt_cv_objdir=.libs
13031 else
13032 # MS-DOS does not allow filenames that begin with a dot.
13033 lt_cv_objdir=_libs
13034 fi
13035 rmdir .libs 2>/dev/null
13036 fi
13037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13038 printf "%s\n" "$lt_cv_objdir" >&6; }
13039 objdir=$lt_cv_objdir
13040
13041
13042
13043
13044
13045 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
13046
13047
13048
13049
13050 case $host_os in
13051 aix3*)
13052 # AIX sometimes has problems with the GCC collect2 program. For some
13053 # reason, if we set the COLLECT_NAMES environment variable, the problems
13054 # vanish in a puff of smoke.
13055 if test set != "${COLLECT_NAMES+set}"; then
13056 COLLECT_NAMES=
13057 export COLLECT_NAMES
13058 fi
13059 ;;
13060 esac
13061
13062 # Global variables:
13063 ofile=libtool
13064 can_build_shared=yes
13065
13066 # All known linkers require a '.a' archive for static linking (except MSVC and
13067 # ICC, which need '.lib').
13068 libext=a
13069
13070 with_gnu_ld=$lt_cv_prog_gnu_ld
13071
13072 old_CC=$CC
13073 old_CFLAGS=$CFLAGS
13074
13075 # Set sane defaults for various variables
13076 test -z "$CC" && CC=cc
13077 test -z "$LTCC" && LTCC=$CC
13078 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13079 test -z "$LD" && LD=ld
13080 test -z "$ac_objext" && ac_objext=o
13081
13082 func_cc_basename $compiler
13083 cc_basename=$func_cc_basename_result
13084
13085
13086 # Only perform the check for file, if the check method requires it
13087 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13088 case $deplibs_check_method in
13089 file_magic*)
13090 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13092 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
13093 if test ${lt_cv_path_MAGIC_CMD+y}
13094 then :
13095 printf %s "(cached) " >&6
13096 else $as_nop
13097 case $MAGIC_CMD in
13098 [\\/*] | ?:[\\/]*)
13099 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13100 ;;
13101 *)
13102 lt_save_MAGIC_CMD=$MAGIC_CMD
13103 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13104 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13105 for ac_dir in $ac_dummy; do
13106 IFS=$lt_save_ifs
13107 test -z "$ac_dir" && ac_dir=.
13108 if test -f "$ac_dir/${ac_tool_prefix}file"; then
13109 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
13110 if test -n "$file_magic_test_file"; then
13111 case $deplibs_check_method in
13112 "file_magic "*)
13113 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13114 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13115 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13116 $EGREP "$file_magic_regex" > /dev/null; then
13117 :
13118 else
13119 cat <<_LT_EOF 1>&2
13120
13121 *** Warning: the command libtool uses to detect shared libraries,
13122 *** $file_magic_cmd, produces output that libtool cannot recognize.
13123 *** The result is that libtool may fail to recognize shared libraries
13124 *** as such. This will affect the creation of libtool libraries that
13125 *** depend on shared libraries, but programs linked with such libtool
13126 *** libraries will work regardless of this problem. Nevertheless, you
13127 *** may want to report the problem to your system manager and/or to
13128 *** [email protected]
13129
13130 _LT_EOF
13131 fi ;;
13132 esac
13133 fi
13134 break
13135 fi
13136 done
13137 IFS=$lt_save_ifs
13138 MAGIC_CMD=$lt_save_MAGIC_CMD
13139 ;;
13140 esac
13141 fi
13142
13143 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13144 if test -n "$MAGIC_CMD"; then
13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13146 printf "%s\n" "$MAGIC_CMD" >&6; }
13147 else
13148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 printf "%s\n" "no" >&6; }
13150 fi
13151
13152
13153
13154
13155
13156 if test -z "$lt_cv_path_MAGIC_CMD"; then
13157 if test -n "$ac_tool_prefix"; then
13158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13159 printf %s "checking for file... " >&6; }
13160 if test ${lt_cv_path_MAGIC_CMD+y}
13161 then :
13162 printf %s "(cached) " >&6
13163 else $as_nop
13164 case $MAGIC_CMD in
13165 [\\/*] | ?:[\\/]*)
13166 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13167 ;;
13168 *)
13169 lt_save_MAGIC_CMD=$MAGIC_CMD
13170 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13171 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13172 for ac_dir in $ac_dummy; do
13173 IFS=$lt_save_ifs
13174 test -z "$ac_dir" && ac_dir=.
13175 if test -f "$ac_dir/file"; then
13176 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
13177 if test -n "$file_magic_test_file"; then
13178 case $deplibs_check_method in
13179 "file_magic "*)
13180 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13181 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13182 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13183 $EGREP "$file_magic_regex" > /dev/null; then
13184 :
13185 else
13186 cat <<_LT_EOF 1>&2
13187
13188 *** Warning: the command libtool uses to detect shared libraries,
13189 *** $file_magic_cmd, produces output that libtool cannot recognize.
13190 *** The result is that libtool may fail to recognize shared libraries
13191 *** as such. This will affect the creation of libtool libraries that
13192 *** depend on shared libraries, but programs linked with such libtool
13193 *** libraries will work regardless of this problem. Nevertheless, you
13194 *** may want to report the problem to your system manager and/or to
13195 *** [email protected]
13196
13197 _LT_EOF
13198 fi ;;
13199 esac
13200 fi
13201 break
13202 fi
13203 done
13204 IFS=$lt_save_ifs
13205 MAGIC_CMD=$lt_save_MAGIC_CMD
13206 ;;
13207 esac
13208 fi
13209
13210 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13211 if test -n "$MAGIC_CMD"; then
13212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13213 printf "%s\n" "$MAGIC_CMD" >&6; }
13214 else
13215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 printf "%s\n" "no" >&6; }
13217 fi
13218
13219
13220 else
13221 MAGIC_CMD=:
13222 fi
13223 fi
13224
13225 fi
13226 ;;
13227 esac
13228
13229 # Use C for the default configuration in the libtool script
13230
13231 lt_save_CC=$CC
13232 ac_ext=c
13233 ac_cpp='$CPP $CPPFLAGS'
13234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13237
13238
13239 # Source file extension for C test sources.
13240 ac_ext=c
13241
13242 # Object file extension for compiled C test sources.
13243 objext=o
13244 objext=$objext
13245
13246 # Code to be used in simple compile tests
13247 lt_simple_compile_test_code="int some_variable = 0;"
13248
13249 # Code to be used in simple link tests
13250 lt_simple_link_test_code='int main(){return(0);}'
13251
13252
13253
13254
13255
13256
13257
13258 # If no C compiler was specified, use CC.
13259 LTCC=${LTCC-"$CC"}
13260
13261 # If no C compiler flags were specified, use CFLAGS.
13262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13263
13264 # Allow CC to be a program name with arguments.
13265 compiler=$CC
13266
13267 # Save the default compiler, since it gets overwritten when the other
13268 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13269 compiler_DEFAULT=$CC
13270
13271 # save warnings/boilerplate of simple test code
13272 ac_outfile=conftest.$ac_objext
13273 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13274 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13275 _lt_compiler_boilerplate=`cat conftest.err`
13276 $RM conftest*
13277
13278 ac_outfile=conftest.$ac_objext
13279 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13280 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13281 _lt_linker_boilerplate=`cat conftest.err`
13282 $RM -r conftest*
13283
13284
13285 ## CAVEAT EMPTOR:
13286 ## There is no encapsulation within the following macros, do not change
13287 ## the running order or otherwise move them around unless you know exactly
13288 ## what you are doing...
13289 if test -n "$compiler"; then
13290
13291 lt_prog_compiler_no_builtin_flag=
13292
13293 if test yes = "$GCC"; then
13294 case $cc_basename in
13295 nvcc*)
13296 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13297 *)
13298 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13299 esac
13300
13301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13302 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13303 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13304 then :
13305 printf %s "(cached) " >&6
13306 else $as_nop
13307 lt_cv_prog_compiler_rtti_exceptions=no
13308 ac_outfile=conftest.$ac_objext
13309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13310 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
13311 # Insert the option either (1) after the last *FLAGS variable, or
13312 # (2) before a word containing "conftest.", or (3) at the end.
13313 # Note that $ac_compile itself does not contain backslashes and begins
13314 # with a dollar sign (not a hyphen), so the echo should work correctly.
13315 # The option is referenced via a variable to avoid confusing sed.
13316 lt_compile=`echo "$ac_compile" | $SED \
13317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13319 -e 's:$: $lt_compiler_flag:'`
13320 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13321 (eval "$lt_compile" 2>conftest.err)
13322 ac_status=$?
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 if (exit $ac_status) && test -s "$ac_outfile"; then
13326 # The compiler can only warn and ignore the option if not recognized
13327 # So say no if there are warnings other than the usual output.
13328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13330 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13331 lt_cv_prog_compiler_rtti_exceptions=yes
13332 fi
13333 fi
13334 $RM conftest*
13335
13336 fi
13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13338 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13339
13340 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13341 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13342 else
13343 :
13344 fi
13345
13346 fi
13347
13348
13349
13350
13351
13352
13353 lt_prog_compiler_wl=
13354 lt_prog_compiler_pic=
13355 lt_prog_compiler_static=
13356
13357
13358 if test yes = "$GCC"; then
13359 lt_prog_compiler_wl='-Wl,'
13360 lt_prog_compiler_static='-static'
13361
13362 case $host_os in
13363 aix*)
13364 # All AIX code is PIC.
13365 if test ia64 = "$host_cpu"; then
13366 # AIX 5 now supports IA64 processor
13367 lt_prog_compiler_static='-Bstatic'
13368 fi
13369 lt_prog_compiler_pic='-fPIC'
13370 ;;
13371
13372 amigaos*)
13373 case $host_cpu in
13374 powerpc)
13375 # see comment about AmigaOS4 .so support
13376 lt_prog_compiler_pic='-fPIC'
13377 ;;
13378 m68k)
13379 # FIXME: we need at least 68020 code to build shared libraries, but
13380 # adding the '-m68020' flag to GCC prevents building anything better,
13381 # like '-m68040'.
13382 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13383 ;;
13384 esac
13385 ;;
13386
13387 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13388 # PIC is the default for these OSes.
13389 ;;
13390
13391 mingw* | cygwin* | pw32* | os2* | cegcc*)
13392 # This hack is so that the source file can tell whether it is being
13393 # built for inclusion in a dll (and should export symbols for example).
13394 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13395 # (--disable-auto-import) libraries
13396 lt_prog_compiler_pic='-DDLL_EXPORT'
13397 case $host_os in
13398 os2*)
13399 lt_prog_compiler_static='$wl-static'
13400 ;;
13401 esac
13402 ;;
13403
13404 darwin* | rhapsody*)
13405 # PIC is the default on this platform
13406 # Common symbols not allowed in MH_DYLIB files
13407 lt_prog_compiler_pic='-fno-common'
13408 ;;
13409
13410 haiku*)
13411 # PIC is the default for Haiku.
13412 # The "-static" flag exists, but is broken.
13413 lt_prog_compiler_static=
13414 ;;
13415
13416 hpux*)
13417 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13418 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13419 # sets the default TLS model and affects inlining.
13420 case $host_cpu in
13421 hppa*64*)
13422 # +Z the default
13423 ;;
13424 *)
13425 lt_prog_compiler_pic='-fPIC'
13426 ;;
13427 esac
13428 ;;
13429
13430 interix[3-9]*)
13431 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13432 # Instead, we relocate shared libraries at runtime.
13433 ;;
13434
13435 msdosdjgpp*)
13436 # Just because we use GCC doesn't mean we suddenly get shared libraries
13437 # on systems that don't support them.
13438 lt_prog_compiler_can_build_shared=no
13439 enable_shared=no
13440 ;;
13441
13442 *nto* | *qnx*)
13443 # QNX uses GNU C++, but need to define -shared option too, otherwise
13444 # it will coredump.
13445 lt_prog_compiler_pic='-fPIC -shared'
13446 ;;
13447
13448 sysv4*MP*)
13449 if test -d /usr/nec; then
13450 lt_prog_compiler_pic=-Kconform_pic
13451 fi
13452 ;;
13453
13454 *)
13455 lt_prog_compiler_pic='-fPIC'
13456 ;;
13457 esac
13458
13459 case $cc_basename in
13460 nvcc*) # Cuda Compiler Driver 2.2
13461 lt_prog_compiler_wl='-Xlinker '
13462 if test -n "$lt_prog_compiler_pic"; then
13463 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13464 fi
13465 ;;
13466 esac
13467 else
13468 # PORTME Check for flag to pass linker flags through the system compiler.
13469 case $host_os in
13470 aix*)
13471 lt_prog_compiler_wl='-Wl,'
13472 if test ia64 = "$host_cpu"; then
13473 # AIX 5 now supports IA64 processor
13474 lt_prog_compiler_static='-Bstatic'
13475 else
13476 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13477 fi
13478 ;;
13479
13480 darwin* | rhapsody*)
13481 # PIC is the default on this platform
13482 # Common symbols not allowed in MH_DYLIB files
13483 lt_prog_compiler_pic='-fno-common'
13484 case $cc_basename in
13485 nagfor*)
13486 # NAG Fortran compiler
13487 lt_prog_compiler_wl='-Wl,-Wl,,'
13488 lt_prog_compiler_pic='-PIC'
13489 lt_prog_compiler_static='-Bstatic'
13490 ;;
13491 esac
13492 ;;
13493
13494 mingw* | cygwin* | pw32* | os2* | cegcc*)
13495 # This hack is so that the source file can tell whether it is being
13496 # built for inclusion in a dll (and should export symbols for example).
13497 lt_prog_compiler_pic='-DDLL_EXPORT'
13498 case $host_os in
13499 os2*)
13500 lt_prog_compiler_static='$wl-static'
13501 ;;
13502 esac
13503 ;;
13504
13505 hpux9* | hpux10* | hpux11*)
13506 lt_prog_compiler_wl='-Wl,'
13507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13508 # not for PA HP-UX.
13509 case $host_cpu in
13510 hppa*64*|ia64*)
13511 # +Z the default
13512 ;;
13513 *)
13514 lt_prog_compiler_pic='+Z'
13515 ;;
13516 esac
13517 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13518 lt_prog_compiler_static='$wl-a ${wl}archive'
13519 ;;
13520
13521 irix5* | irix6* | nonstopux*)
13522 lt_prog_compiler_wl='-Wl,'
13523 # PIC (with -KPIC) is the default.
13524 lt_prog_compiler_static='-non_shared'
13525 ;;
13526
13527 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13528 case $cc_basename in
13529 # old Intel for x86_64, which still supported -KPIC.
13530 ecc*)
13531 lt_prog_compiler_wl='-Wl,'
13532 lt_prog_compiler_pic='-KPIC'
13533 lt_prog_compiler_static='-static'
13534 ;;
13535 # icc used to be incompatible with GCC.
13536 # ICC 10 doesn't accept -KPIC any more.
13537 icc* | ifort*)
13538 lt_prog_compiler_wl='-Wl,'
13539 lt_prog_compiler_pic='-fPIC'
13540 lt_prog_compiler_static='-static'
13541 ;;
13542 # Lahey Fortran 8.1.
13543 lf95*)
13544 lt_prog_compiler_wl='-Wl,'
13545 lt_prog_compiler_pic='--shared'
13546 lt_prog_compiler_static='--static'
13547 ;;
13548 nagfor*)
13549 # NAG Fortran compiler
13550 lt_prog_compiler_wl='-Wl,-Wl,,'
13551 lt_prog_compiler_pic='-PIC'
13552 lt_prog_compiler_static='-Bstatic'
13553 ;;
13554 tcc*)
13555 # Fabrice Bellard et al's Tiny C Compiler
13556 lt_prog_compiler_wl='-Wl,'
13557 lt_prog_compiler_pic='-fPIC'
13558 lt_prog_compiler_static='-static'
13559 ;;
13560 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13561 # Portland Group compilers (*not* the Pentium gcc compiler,
13562 # which looks to be a dead project)
13563 lt_prog_compiler_wl='-Wl,'
13564 lt_prog_compiler_pic='-fpic'
13565 lt_prog_compiler_static='-Bstatic'
13566 ;;
13567 ccc*)
13568 lt_prog_compiler_wl='-Wl,'
13569 # All Alpha code is PIC.
13570 lt_prog_compiler_static='-non_shared'
13571 ;;
13572 xl* | bgxl* | bgf* | mpixl*)
13573 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13574 lt_prog_compiler_wl='-Wl,'
13575 lt_prog_compiler_pic='-qpic'
13576 lt_prog_compiler_static='-qstaticlink'
13577 ;;
13578 *)
13579 case `$CC -V 2>&1 | $SED 5q` in
13580 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13581 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13582 lt_prog_compiler_pic='-KPIC'
13583 lt_prog_compiler_static='-Bstatic'
13584 lt_prog_compiler_wl=''
13585 ;;
13586 *Sun\ F* | *Sun*Fortran*)
13587 lt_prog_compiler_pic='-KPIC'
13588 lt_prog_compiler_static='-Bstatic'
13589 lt_prog_compiler_wl='-Qoption ld '
13590 ;;
13591 *Sun\ C*)
13592 # Sun C 5.9
13593 lt_prog_compiler_pic='-KPIC'
13594 lt_prog_compiler_static='-Bstatic'
13595 lt_prog_compiler_wl='-Wl,'
13596 ;;
13597 *Intel*\ [CF]*Compiler*)
13598 lt_prog_compiler_wl='-Wl,'
13599 lt_prog_compiler_pic='-fPIC'
13600 lt_prog_compiler_static='-static'
13601 ;;
13602 *Portland\ Group*)
13603 lt_prog_compiler_wl='-Wl,'
13604 lt_prog_compiler_pic='-fpic'
13605 lt_prog_compiler_static='-Bstatic'
13606 ;;
13607 esac
13608 ;;
13609 esac
13610 ;;
13611
13612 newsos6)
13613 lt_prog_compiler_pic='-KPIC'
13614 lt_prog_compiler_static='-Bstatic'
13615 ;;
13616
13617 *nto* | *qnx*)
13618 # QNX uses GNU C++, but need to define -shared option too, otherwise
13619 # it will coredump.
13620 lt_prog_compiler_pic='-fPIC -shared'
13621 ;;
13622
13623 osf3* | osf4* | osf5*)
13624 lt_prog_compiler_wl='-Wl,'
13625 # All OSF/1 code is PIC.
13626 lt_prog_compiler_static='-non_shared'
13627 ;;
13628
13629 rdos*)
13630 lt_prog_compiler_static='-non_shared'
13631 ;;
13632
13633 solaris*)
13634 lt_prog_compiler_pic='-KPIC'
13635 lt_prog_compiler_static='-Bstatic'
13636 case $cc_basename in
13637 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13638 lt_prog_compiler_wl='-Qoption ld ';;
13639 *)
13640 lt_prog_compiler_wl='-Wl,';;
13641 esac
13642 ;;
13643
13644 sunos4*)
13645 lt_prog_compiler_wl='-Qoption ld '
13646 lt_prog_compiler_pic='-PIC'
13647 lt_prog_compiler_static='-Bstatic'
13648 ;;
13649
13650 sysv4 | sysv4.2uw2* | sysv4.3*)
13651 lt_prog_compiler_wl='-Wl,'
13652 lt_prog_compiler_pic='-KPIC'
13653 lt_prog_compiler_static='-Bstatic'
13654 ;;
13655
13656 sysv4*MP*)
13657 if test -d /usr/nec; then
13658 lt_prog_compiler_pic='-Kconform_pic'
13659 lt_prog_compiler_static='-Bstatic'
13660 fi
13661 ;;
13662
13663 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13664 lt_prog_compiler_wl='-Wl,'
13665 lt_prog_compiler_pic='-KPIC'
13666 lt_prog_compiler_static='-Bstatic'
13667 ;;
13668
13669 unicos*)
13670 lt_prog_compiler_wl='-Wl,'
13671 lt_prog_compiler_can_build_shared=no
13672 ;;
13673
13674 uts4*)
13675 lt_prog_compiler_pic='-pic'
13676 lt_prog_compiler_static='-Bstatic'
13677 ;;
13678
13679 *)
13680 lt_prog_compiler_can_build_shared=no
13681 ;;
13682 esac
13683 fi
13684
13685 case $host_os in
13686 # For platforms that do not support PIC, -DPIC is meaningless:
13687 *djgpp*)
13688 lt_prog_compiler_pic=
13689 ;;
13690 *)
13691 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13692 ;;
13693 esac
13694
13695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13696 printf %s "checking for $compiler option to produce PIC... " >&6; }
13697 if test ${lt_cv_prog_compiler_pic+y}
13698 then :
13699 printf %s "(cached) " >&6
13700 else $as_nop
13701 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13702 fi
13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13704 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13705 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13706
13707 #
13708 # Check to make sure the PIC flag actually works.
13709 #
13710 if test -n "$lt_prog_compiler_pic"; then
13711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13712 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13713 if test ${lt_cv_prog_compiler_pic_works+y}
13714 then :
13715 printf %s "(cached) " >&6
13716 else $as_nop
13717 lt_cv_prog_compiler_pic_works=no
13718 ac_outfile=conftest.$ac_objext
13719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13720 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13721 # Insert the option either (1) after the last *FLAGS variable, or
13722 # (2) before a word containing "conftest.", or (3) at the end.
13723 # Note that $ac_compile itself does not contain backslashes and begins
13724 # with a dollar sign (not a hyphen), so the echo should work correctly.
13725 # The option is referenced via a variable to avoid confusing sed.
13726 lt_compile=`echo "$ac_compile" | $SED \
13727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13729 -e 's:$: $lt_compiler_flag:'`
13730 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13731 (eval "$lt_compile" 2>conftest.err)
13732 ac_status=$?
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 if (exit $ac_status) && test -s "$ac_outfile"; then
13736 # The compiler can only warn and ignore the option if not recognized
13737 # So say no if there are warnings other than the usual output.
13738 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13741 lt_cv_prog_compiler_pic_works=yes
13742 fi
13743 fi
13744 $RM conftest*
13745
13746 fi
13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13748 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13749
13750 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13751 case $lt_prog_compiler_pic in
13752 "" | " "*) ;;
13753 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13754 esac
13755 else
13756 lt_prog_compiler_pic=
13757 lt_prog_compiler_can_build_shared=no
13758 fi
13759
13760 fi
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772 #
13773 # Check to make sure the static flag actually works.
13774 #
13775 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13777 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13778 if test ${lt_cv_prog_compiler_static_works+y}
13779 then :
13780 printf %s "(cached) " >&6
13781 else $as_nop
13782 lt_cv_prog_compiler_static_works=no
13783 save_LDFLAGS=$LDFLAGS
13784 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13785 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13786 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13787 # The linker can only warn and ignore the option if not recognized
13788 # So say no if there are warnings
13789 if test -s conftest.err; then
13790 # Append any errors to the config.log.
13791 cat conftest.err 1>&5
13792 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13794 if diff conftest.exp conftest.er2 >/dev/null; then
13795 lt_cv_prog_compiler_static_works=yes
13796 fi
13797 else
13798 lt_cv_prog_compiler_static_works=yes
13799 fi
13800 fi
13801 $RM -r conftest*
13802 LDFLAGS=$save_LDFLAGS
13803
13804 fi
13805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13806 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13807
13808 if test yes = "$lt_cv_prog_compiler_static_works"; then
13809 :
13810 else
13811 lt_prog_compiler_static=
13812 fi
13813
13814
13815
13816
13817
13818
13819
13820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13821 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13822 if test ${lt_cv_prog_compiler_c_o+y}
13823 then :
13824 printf %s "(cached) " >&6
13825 else $as_nop
13826 lt_cv_prog_compiler_c_o=no
13827 $RM -r conftest 2>/dev/null
13828 mkdir conftest
13829 cd conftest
13830 mkdir out
13831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13832
13833 lt_compiler_flag="-o out/conftest2.$ac_objext"
13834 # Insert the option either (1) after the last *FLAGS variable, or
13835 # (2) before a word containing "conftest.", or (3) at the end.
13836 # Note that $ac_compile itself does not contain backslashes and begins
13837 # with a dollar sign (not a hyphen), so the echo should work correctly.
13838 lt_compile=`echo "$ac_compile" | $SED \
13839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13841 -e 's:$: $lt_compiler_flag:'`
13842 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13843 (eval "$lt_compile" 2>out/conftest.err)
13844 ac_status=$?
13845 cat out/conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13848 then
13849 # The compiler can only warn and ignore the option if not recognized
13850 # So say no if there are warnings
13851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13852 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13853 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13854 lt_cv_prog_compiler_c_o=yes
13855 fi
13856 fi
13857 chmod u+w . 2>&5
13858 $RM conftest*
13859 # SGI C++ compiler will create directory out/ii_files/ for
13860 # template instantiation
13861 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13862 $RM out/* && rmdir out
13863 cd ..
13864 $RM -r conftest
13865 $RM conftest*
13866
13867 fi
13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13869 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13870
13871
13872
13873
13874
13875
13876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13877 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13878 if test ${lt_cv_prog_compiler_c_o+y}
13879 then :
13880 printf %s "(cached) " >&6
13881 else $as_nop
13882 lt_cv_prog_compiler_c_o=no
13883 $RM -r conftest 2>/dev/null
13884 mkdir conftest
13885 cd conftest
13886 mkdir out
13887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13888
13889 lt_compiler_flag="-o out/conftest2.$ac_objext"
13890 # Insert the option either (1) after the last *FLAGS variable, or
13891 # (2) before a word containing "conftest.", or (3) at the end.
13892 # Note that $ac_compile itself does not contain backslashes and begins
13893 # with a dollar sign (not a hyphen), so the echo should work correctly.
13894 lt_compile=`echo "$ac_compile" | $SED \
13895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13897 -e 's:$: $lt_compiler_flag:'`
13898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13899 (eval "$lt_compile" 2>out/conftest.err)
13900 ac_status=$?
13901 cat out/conftest.err >&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13904 then
13905 # The compiler can only warn and ignore the option if not recognized
13906 # So say no if there are warnings
13907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13908 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13909 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13910 lt_cv_prog_compiler_c_o=yes
13911 fi
13912 fi
13913 chmod u+w . 2>&5
13914 $RM conftest*
13915 # SGI C++ compiler will create directory out/ii_files/ for
13916 # template instantiation
13917 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13918 $RM out/* && rmdir out
13919 cd ..
13920 $RM -r conftest
13921 $RM conftest*
13922
13923 fi
13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13925 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13926
13927
13928
13929
13930 hard_links=nottested
13931 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13932 # do not overwrite the value of need_locks provided by the user
13933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13934 printf %s "checking if we can lock with hard links... " >&6; }
13935 hard_links=yes
13936 $RM conftest*
13937 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13938 touch conftest.a
13939 ln conftest.a conftest.b 2>&5 || hard_links=no
13940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13942 printf "%s\n" "$hard_links" >&6; }
13943 if test no = "$hard_links"; then
13944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13945 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13946 need_locks=warn
13947 fi
13948 else
13949 need_locks=no
13950 fi
13951
13952
13953
13954
13955
13956
13957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13958 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13959
13960 runpath_var=
13961 allow_undefined_flag=
13962 always_export_symbols=no
13963 archive_cmds=
13964 archive_expsym_cmds=
13965 compiler_needs_object=no
13966 enable_shared_with_static_runtimes=no
13967 export_dynamic_flag_spec=
13968 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13969 hardcode_automatic=no
13970 hardcode_direct=no
13971 hardcode_direct_absolute=no
13972 hardcode_libdir_flag_spec=
13973 hardcode_libdir_separator=
13974 hardcode_minus_L=no
13975 hardcode_shlibpath_var=unsupported
13976 inherit_rpath=no
13977 link_all_deplibs=unknown
13978 module_cmds=
13979 module_expsym_cmds=
13980 old_archive_from_new_cmds=
13981 old_archive_from_expsyms_cmds=
13982 thread_safe_flag_spec=
13983 whole_archive_flag_spec=
13984 # include_expsyms should be a list of space-separated symbols to be *always*
13985 # included in the symbol list
13986 include_expsyms=
13987 # exclude_expsyms can be an extended regexp of symbols to exclude
13988 # it will be wrapped by ' (' and ')$', so one must not match beginning or
13989 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13990 # as well as any symbol that contains 'd'.
13991 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13992 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13993 # platforms (ab)use it in PIC code, but their linkers get confused if
13994 # the symbol is explicitly referenced. Since portable code cannot
13995 # rely on this symbol name, it's probably fine to never include it in
13996 # preloaded symbol tables.
13997 # Exclude shared library initialization/finalization symbols.
13998 extract_expsyms_cmds=
13999
14000 case $host_os in
14001 cygwin* | mingw* | pw32* | cegcc*)
14002 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
14003 # When not using gcc, we currently assume that we are using
14004 # Microsoft Visual C++ or Intel C++ Compiler.
14005 if test yes != "$GCC"; then
14006 with_gnu_ld=no
14007 fi
14008 ;;
14009 interix*)
14010 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
14011 with_gnu_ld=yes
14012 ;;
14013 openbsd* | bitrig*)
14014 with_gnu_ld=no
14015 ;;
14016 esac
14017
14018 ld_shlibs=yes
14019
14020 # On some targets, GNU ld is compatible enough with the native linker
14021 # that we're better off using the native interface for both.
14022 lt_use_gnu_ld_interface=no
14023 if test yes = "$with_gnu_ld"; then
14024 case $host_os in
14025 aix*)
14026 # The AIX port of GNU ld has always aspired to compatibility
14027 # with the native linker. However, as the warning in the GNU ld
14028 # block says, versions before 2.19.5* couldn't really create working
14029 # shared libraries, regardless of the interface used.
14030 case `$LD -v 2>&1` in
14031 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14032 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14033 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14034 *)
14035 lt_use_gnu_ld_interface=yes
14036 ;;
14037 esac
14038 ;;
14039 *)
14040 lt_use_gnu_ld_interface=yes
14041 ;;
14042 esac
14043 fi
14044
14045 if test yes = "$lt_use_gnu_ld_interface"; then
14046 # If archive_cmds runs LD, not CC, wlarc should be empty
14047 wlarc='$wl'
14048
14049 # Set some defaults for GNU ld with shared library support. These
14050 # are reset later if shared libraries are not supported. Putting them
14051 # here allows them to be overridden if necessary.
14052 runpath_var=LD_RUN_PATH
14053 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14054 export_dynamic_flag_spec='$wl--export-dynamic'
14055 # ancient GNU ld didn't support --whole-archive et. al.
14056 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14057 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14058 else
14059 whole_archive_flag_spec=
14060 fi
14061 supports_anon_versioning=no
14062 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
14063 *GNU\ gold*) supports_anon_versioning=yes ;;
14064 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14065 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14066 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14067 *\ 2.11.*) ;; # other 2.11 versions
14068 *) supports_anon_versioning=yes ;;
14069 esac
14070
14071 # See if GNU ld supports shared libraries.
14072 case $host_os in
14073 aix[3-9]*)
14074 # On AIX/PPC, the GNU linker is very broken
14075 if test ia64 != "$host_cpu"; then
14076 ld_shlibs=no
14077 cat <<_LT_EOF 1>&2
14078
14079 *** Warning: the GNU linker, at least up to release 2.19, is reported
14080 *** to be unable to reliably create shared libraries on AIX.
14081 *** Therefore, libtool is disabling shared libraries support. If you
14082 *** really care for shared libraries, you may want to install binutils
14083 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14084 *** You will then need to restart the configuration process.
14085
14086 _LT_EOF
14087 fi
14088 ;;
14089
14090 amigaos*)
14091 case $host_cpu in
14092 powerpc)
14093 # see comment about AmigaOS4 .so support
14094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14095 archive_expsym_cmds=''
14096 ;;
14097 m68k)
14098 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)'
14099 hardcode_libdir_flag_spec='-L$libdir'
14100 hardcode_minus_L=yes
14101 ;;
14102 esac
14103 ;;
14104
14105 beos*)
14106 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14107 allow_undefined_flag=unsupported
14108 # Joseph Beckenbach <[email protected]> says some releases of gcc
14109 # support --undefined. This deserves some investigation. FIXME
14110 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14111 else
14112 ld_shlibs=no
14113 fi
14114 ;;
14115
14116 cygwin* | mingw* | pw32* | cegcc*)
14117 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14118 # as there is no search path for DLLs.
14119 hardcode_libdir_flag_spec='-L$libdir'
14120 export_dynamic_flag_spec='$wl--export-all-symbols'
14121 allow_undefined_flag=unsupported
14122 always_export_symbols=no
14123 enable_shared_with_static_runtimes=yes
14124 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'
14125 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14126
14127 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14129 # If the export-symbols file already is a .def file, use it as
14130 # is; otherwise, prepend EXPORTS...
14131 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14132 cp $export_symbols $output_objdir/$soname.def;
14133 else
14134 echo EXPORTS > $output_objdir/$soname.def;
14135 cat $export_symbols >> $output_objdir/$soname.def;
14136 fi~
14137 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14138 else
14139 ld_shlibs=no
14140 fi
14141 ;;
14142
14143 haiku*)
14144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14145 link_all_deplibs=yes
14146 ;;
14147
14148 os2*)
14149 hardcode_libdir_flag_spec='-L$libdir'
14150 hardcode_minus_L=yes
14151 allow_undefined_flag=unsupported
14152 shrext_cmds=.dll
14153 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14154 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14155 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14156 $ECHO EXPORTS >> $output_objdir/$libname.def~
14157 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14158 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14159 emximp -o $lib $output_objdir/$libname.def'
14160 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14161 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14162 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14163 $ECHO EXPORTS >> $output_objdir/$libname.def~
14164 prefix_cmds="$SED"~
14165 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14166 prefix_cmds="$prefix_cmds -e 1d";
14167 fi~
14168 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14169 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14170 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14171 emximp -o $lib $output_objdir/$libname.def'
14172 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14173 enable_shared_with_static_runtimes=yes
14174 file_list_spec='@'
14175 ;;
14176
14177 interix[3-9]*)
14178 hardcode_direct=no
14179 hardcode_shlibpath_var=no
14180 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14181 export_dynamic_flag_spec='$wl-E'
14182 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14183 # Instead, shared libraries are loaded at an image base (0x10000000 by
14184 # default) and relocated if they conflict, which is a slow very memory
14185 # consuming and fragmenting process. To avoid this, we pick a random,
14186 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14187 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14188 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14189 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'
14190 ;;
14191
14192 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14193 tmp_diet=no
14194 if test linux-dietlibc = "$host_os"; then
14195 case $cc_basename in
14196 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14197 esac
14198 fi
14199 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14200 && test no = "$tmp_diet"
14201 then
14202 tmp_addflag=' $pic_flag'
14203 tmp_sharedflag='-shared'
14204 case $cc_basename,$host_cpu in
14205 pgcc*) # Portland Group C compiler
14206 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'
14207 tmp_addflag=' $pic_flag'
14208 ;;
14209 pgf77* | pgf90* | pgf95* | pgfortran*)
14210 # Portland Group f77 and f90 compilers
14211 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'
14212 tmp_addflag=' $pic_flag -Mnomain' ;;
14213 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14214 tmp_addflag=' -i_dynamic' ;;
14215 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14216 tmp_addflag=' -i_dynamic -nofor_main' ;;
14217 ifc* | ifort*) # Intel Fortran compiler
14218 tmp_addflag=' -nofor_main' ;;
14219 lf95*) # Lahey Fortran 8.1
14220 whole_archive_flag_spec=
14221 tmp_sharedflag='--shared' ;;
14222 nagfor*) # NAGFOR 5.3
14223 tmp_sharedflag='-Wl,-shared' ;;
14224 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14225 tmp_sharedflag='-qmkshrobj'
14226 tmp_addflag= ;;
14227 nvcc*) # Cuda Compiler Driver 2.2
14228 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'
14229 compiler_needs_object=yes
14230 ;;
14231 esac
14232 case `$CC -V 2>&1 | $SED 5q` in
14233 *Sun\ C*) # Sun C 5.9
14234 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'
14235 compiler_needs_object=yes
14236 tmp_sharedflag='-G' ;;
14237 *Sun\ F*) # Sun Fortran 8.3
14238 tmp_sharedflag='-G' ;;
14239 esac
14240 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14241
14242 if test yes = "$supports_anon_versioning"; then
14243 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14244 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14245 echo "local: *; };" >> $output_objdir/$libname.ver~
14246 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14247 fi
14248
14249 case $cc_basename in
14250 tcc*)
14251 export_dynamic_flag_spec='-rdynamic'
14252 ;;
14253 xlf* | bgf* | bgxlf* | mpixlf*)
14254 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14255 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14256 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14257 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14258 if test yes = "$supports_anon_versioning"; then
14259 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14260 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14261 echo "local: *; };" >> $output_objdir/$libname.ver~
14262 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14263 fi
14264 ;;
14265 esac
14266 else
14267 ld_shlibs=no
14268 fi
14269 ;;
14270
14271 netbsd*)
14272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14273 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14274 wlarc=
14275 else
14276 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14277 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14278 fi
14279 ;;
14280
14281 solaris*)
14282 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14283 ld_shlibs=no
14284 cat <<_LT_EOF 1>&2
14285
14286 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14287 *** create shared libraries on Solaris systems. Therefore, libtool
14288 *** is disabling shared libraries support. We urge you to upgrade GNU
14289 *** binutils to release 2.9.1 or newer. Another option is to modify
14290 *** your PATH or compiler configuration so that the native linker is
14291 *** used, and then restart.
14292
14293 _LT_EOF
14294 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14295 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14296 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14297 else
14298 ld_shlibs=no
14299 fi
14300 ;;
14301
14302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14303 case `$LD -v 2>&1` in
14304 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14305 ld_shlibs=no
14306 cat <<_LT_EOF 1>&2
14307
14308 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14309 *** reliably create shared libraries on SCO systems. Therefore, libtool
14310 *** is disabling shared libraries support. We urge you to upgrade GNU
14311 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14312 *** your PATH or compiler configuration so that the native linker is
14313 *** used, and then restart.
14314
14315 _LT_EOF
14316 ;;
14317 *)
14318 # For security reasons, it is highly recommended that you always
14319 # use absolute paths for naming shared libraries, and exclude the
14320 # DT_RUNPATH tag from executables and libraries. But doing so
14321 # requires that you compile everything twice, which is a pain.
14322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14323 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14326 else
14327 ld_shlibs=no
14328 fi
14329 ;;
14330 esac
14331 ;;
14332
14333 sunos4*)
14334 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14335 wlarc=
14336 hardcode_direct=yes
14337 hardcode_shlibpath_var=no
14338 ;;
14339
14340 *)
14341 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14342 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14343 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14344 else
14345 ld_shlibs=no
14346 fi
14347 ;;
14348 esac
14349
14350 if test no = "$ld_shlibs"; then
14351 runpath_var=
14352 hardcode_libdir_flag_spec=
14353 export_dynamic_flag_spec=
14354 whole_archive_flag_spec=
14355 fi
14356 else
14357 # PORTME fill in a description of your system's linker (not GNU ld)
14358 case $host_os in
14359 aix3*)
14360 allow_undefined_flag=unsupported
14361 always_export_symbols=yes
14362 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'
14363 # Note: this linker hardcodes the directories in LIBPATH if there
14364 # are no directories specified by -L.
14365 hardcode_minus_L=yes
14366 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14367 # Neither direct hardcoding nor static linking is supported with a
14368 # broken collect2.
14369 hardcode_direct=unsupported
14370 fi
14371 ;;
14372
14373 aix[4-9]*)
14374 if test ia64 = "$host_cpu"; then
14375 # On IA64, the linker does run time linking by default, so we don't
14376 # have to do anything special.
14377 aix_use_runtimelinking=no
14378 exp_sym_flag='-Bexport'
14379 no_entry_flag=
14380 else
14381 # If we're using GNU nm, then we don't want the "-C" option.
14382 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14383 # Without the "-l" option, or with the "-B" option, AIX nm treats
14384 # weak defined symbols like other global defined symbols, whereas
14385 # GNU nm marks them as "W".
14386 # While the 'weak' keyword is ignored in the Export File, we need
14387 # it in the Import File for the 'aix-soname' feature, so we have
14388 # to replace the "-B" option with "-P" for AIX nm.
14389 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14390 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'
14391 else
14392 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'
14393 fi
14394 aix_use_runtimelinking=no
14395
14396 # Test if we are trying to use run time linking or normal
14397 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14398 # have runtime linking enabled, and use it for executables.
14399 # For shared libraries, we enable/disable runtime linking
14400 # depending on the kind of the shared library created -
14401 # when "with_aix_soname,aix_use_runtimelinking" is:
14402 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14403 # "aix,yes" lib.so shared, rtl:yes, for executables
14404 # lib.a static archive
14405 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14406 # lib.a(lib.so.V) shared, rtl:no, for executables
14407 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14408 # lib.a(lib.so.V) shared, rtl:no
14409 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14410 # lib.a static archive
14411 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14412 for ld_flag in $LDFLAGS; do
14413 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14414 aix_use_runtimelinking=yes
14415 break
14416 fi
14417 done
14418 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14419 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14420 # so we don't have lib.a shared libs to link our executables.
14421 # We have to force runtime linking in this case.
14422 aix_use_runtimelinking=yes
14423 LDFLAGS="$LDFLAGS -Wl,-brtl"
14424 fi
14425 ;;
14426 esac
14427
14428 exp_sym_flag='-bexport'
14429 no_entry_flag='-bnoentry'
14430 fi
14431
14432 # When large executables or shared objects are built, AIX ld can
14433 # have problems creating the table of contents. If linking a library
14434 # or program results in "error TOC overflow" add -mminimal-toc to
14435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14437
14438 archive_cmds=''
14439 hardcode_direct=yes
14440 hardcode_direct_absolute=yes
14441 hardcode_libdir_separator=':'
14442 link_all_deplibs=yes
14443 file_list_spec='$wl-f,'
14444 case $with_aix_soname,$aix_use_runtimelinking in
14445 aix,*) ;; # traditional, no import file
14446 svr4,* | *,yes) # use import file
14447 # The Import File defines what to hardcode.
14448 hardcode_direct=no
14449 hardcode_direct_absolute=no
14450 ;;
14451 esac
14452
14453 if test yes = "$GCC"; then
14454 case $host_os in aix4.[012]|aix4.[012].*)
14455 # We only want to do this on AIX 4.2 and lower, the check
14456 # below for broken collect2 doesn't work under 4.3+
14457 collect2name=`$CC -print-prog-name=collect2`
14458 if test -f "$collect2name" &&
14459 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14460 then
14461 # We have reworked collect2
14462 :
14463 else
14464 # We have old collect2
14465 hardcode_direct=unsupported
14466 # It fails to find uninstalled libraries when the uninstalled
14467 # path is not listed in the libpath. Setting hardcode_minus_L
14468 # to unsupported forces relinking
14469 hardcode_minus_L=yes
14470 hardcode_libdir_flag_spec='-L$libdir'
14471 hardcode_libdir_separator=
14472 fi
14473 ;;
14474 esac
14475 shared_flag='-shared'
14476 if test yes = "$aix_use_runtimelinking"; then
14477 shared_flag="$shared_flag "'$wl-G'
14478 fi
14479 # Need to ensure runtime linking is disabled for the traditional
14480 # shared library, or the linker may eventually find shared libraries
14481 # /with/ Import File - we do not want to mix them.
14482 shared_flag_aix='-shared'
14483 shared_flag_svr4='-shared $wl-G'
14484 else
14485 # not using gcc
14486 if test ia64 = "$host_cpu"; then
14487 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14488 # chokes on -Wl,-G. The following line is correct:
14489 shared_flag='-G'
14490 else
14491 if test yes = "$aix_use_runtimelinking"; then
14492 shared_flag='$wl-G'
14493 else
14494 shared_flag='$wl-bM:SRE'
14495 fi
14496 shared_flag_aix='$wl-bM:SRE'
14497 shared_flag_svr4='$wl-G'
14498 fi
14499 fi
14500
14501 export_dynamic_flag_spec='$wl-bexpall'
14502 # It seems that -bexpall does not export symbols beginning with
14503 # underscore (_), so it is better to generate a list of symbols to export.
14504 always_export_symbols=yes
14505 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14506 # Warning - without using the other runtime loading flags (-brtl),
14507 # -berok will link without error, but may produce a broken library.
14508 allow_undefined_flag='-berok'
14509 # Determine the default libpath from the value encoded in an
14510 # empty executable.
14511 if test set = "${lt_cv_aix_libpath+set}"; then
14512 aix_libpath=$lt_cv_aix_libpath
14513 else
14514 if test ${lt_cv_aix_libpath_+y}
14515 then :
14516 printf %s "(cached) " >&6
14517 else $as_nop
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520
14521 int
14522 main (void)
14523 {
14524
14525 ;
14526 return 0;
14527 }
14528 _ACEOF
14529 if ac_fn_c_try_link "$LINENO"
14530 then :
14531
14532 lt_aix_libpath_sed='
14533 /Import File Strings/,/^$/ {
14534 /^0/ {
14535 s/^0 *\([^ ]*\) *$/\1/
14536 p
14537 }
14538 }'
14539 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14540 # Check for a 64-bit object if we didn't find anything.
14541 if test -z "$lt_cv_aix_libpath_"; then
14542 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14543 fi
14544 fi
14545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14546 conftest$ac_exeext conftest.$ac_ext
14547 if test -z "$lt_cv_aix_libpath_"; then
14548 lt_cv_aix_libpath_=/usr/lib:/lib
14549 fi
14550
14551 fi
14552
14553 aix_libpath=$lt_cv_aix_libpath_
14554 fi
14555
14556 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14557 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
14558 else
14559 if test ia64 = "$host_cpu"; then
14560 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14561 allow_undefined_flag="-z nodefs"
14562 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"
14563 else
14564 # Determine the default libpath from the value encoded in an
14565 # empty executable.
14566 if test set = "${lt_cv_aix_libpath+set}"; then
14567 aix_libpath=$lt_cv_aix_libpath
14568 else
14569 if test ${lt_cv_aix_libpath_+y}
14570 then :
14571 printf %s "(cached) " >&6
14572 else $as_nop
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14575
14576 int
14577 main (void)
14578 {
14579
14580 ;
14581 return 0;
14582 }
14583 _ACEOF
14584 if ac_fn_c_try_link "$LINENO"
14585 then :
14586
14587 lt_aix_libpath_sed='
14588 /Import File Strings/,/^$/ {
14589 /^0/ {
14590 s/^0 *\([^ ]*\) *$/\1/
14591 p
14592 }
14593 }'
14594 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14595 # Check for a 64-bit object if we didn't find anything.
14596 if test -z "$lt_cv_aix_libpath_"; then
14597 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14598 fi
14599 fi
14600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14601 conftest$ac_exeext conftest.$ac_ext
14602 if test -z "$lt_cv_aix_libpath_"; then
14603 lt_cv_aix_libpath_=/usr/lib:/lib
14604 fi
14605
14606 fi
14607
14608 aix_libpath=$lt_cv_aix_libpath_
14609 fi
14610
14611 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14612 # Warning - without using the other run time loading flags,
14613 # -berok will link without error, but may produce a broken library.
14614 no_undefined_flag=' $wl-bernotok'
14615 allow_undefined_flag=' $wl-berok'
14616 if test yes = "$with_gnu_ld"; then
14617 # We only use this code for GNU lds that support --whole-archive.
14618 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14619 else
14620 # Exported symbols can be pulled into shared objects from archives
14621 whole_archive_flag_spec='$convenience'
14622 fi
14623 archive_cmds_need_lc=yes
14624 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14625 # -brtl affects multiple linker settings, -berok does not and is overridden later
14626 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14627 if test svr4 != "$with_aix_soname"; then
14628 # This is similar to how AIX traditionally builds its shared libraries.
14629 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'
14630 fi
14631 if test aix != "$with_aix_soname"; then
14632 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'
14633 else
14634 # used by -dlpreopen to get the symbols
14635 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14636 fi
14637 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14638 fi
14639 fi
14640 ;;
14641
14642 amigaos*)
14643 case $host_cpu in
14644 powerpc)
14645 # see comment about AmigaOS4 .so support
14646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14647 archive_expsym_cmds=''
14648 ;;
14649 m68k)
14650 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)'
14651 hardcode_libdir_flag_spec='-L$libdir'
14652 hardcode_minus_L=yes
14653 ;;
14654 esac
14655 ;;
14656
14657 bsdi[45]*)
14658 export_dynamic_flag_spec=-rdynamic
14659 ;;
14660
14661 cygwin* | mingw* | pw32* | cegcc*)
14662 # When not using gcc, we currently assume that we are using
14663 # Microsoft Visual C++ or Intel C++ Compiler.
14664 # hardcode_libdir_flag_spec is actually meaningless, as there is
14665 # no search path for DLLs.
14666 case $cc_basename in
14667 cl* | icl*)
14668 # Native MSVC or ICC
14669 hardcode_libdir_flag_spec=' '
14670 allow_undefined_flag=unsupported
14671 always_export_symbols=yes
14672 file_list_spec='@'
14673 # Tell ltmain to make .lib files, not .a files.
14674 libext=lib
14675 # Tell ltmain to make .dll files, not .so files.
14676 shrext_cmds=.dll
14677 # FIXME: Setting linknames here is a bad hack.
14678 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14679 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14680 cp "$export_symbols" "$output_objdir/$soname.def";
14681 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14682 else
14683 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14684 fi~
14685 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14686 linknames='
14687 # The linker will not automatically build a static lib if we build a DLL.
14688 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14689 enable_shared_with_static_runtimes=yes
14690 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14691 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14692 # Don't use ranlib
14693 old_postinstall_cmds='chmod 644 $oldlib'
14694 postlink_cmds='lt_outputfile="@OUTPUT@"~
14695 lt_tool_outputfile="@TOOL_OUTPUT@"~
14696 case $lt_outputfile in
14697 *.exe|*.EXE) ;;
14698 *)
14699 lt_outputfile=$lt_outputfile.exe
14700 lt_tool_outputfile=$lt_tool_outputfile.exe
14701 ;;
14702 esac~
14703 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14704 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14705 $RM "$lt_outputfile.manifest";
14706 fi'
14707 ;;
14708 *)
14709 # Assume MSVC and ICC wrapper
14710 hardcode_libdir_flag_spec=' '
14711 allow_undefined_flag=unsupported
14712 # Tell ltmain to make .lib files, not .a files.
14713 libext=lib
14714 # Tell ltmain to make .dll files, not .so files.
14715 shrext_cmds=.dll
14716 # FIXME: Setting linknames here is a bad hack.
14717 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14718 # The linker will automatically build a .lib file if we build a DLL.
14719 old_archive_from_new_cmds='true'
14720 # FIXME: Should let the user specify the lib program.
14721 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14722 enable_shared_with_static_runtimes=yes
14723 ;;
14724 esac
14725 ;;
14726
14727 darwin* | rhapsody*)
14728
14729
14730 archive_cmds_need_lc=no
14731 hardcode_direct=no
14732 hardcode_automatic=yes
14733 hardcode_shlibpath_var=unsupported
14734 if test yes = "$lt_cv_ld_force_load"; then
14735 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\"`'
14736
14737 else
14738 whole_archive_flag_spec=''
14739 fi
14740 link_all_deplibs=yes
14741 allow_undefined_flag=$_lt_dar_allow_undefined
14742 case $cc_basename in
14743 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14744 *) _lt_dar_can_shared=$GCC ;;
14745 esac
14746 if test yes = "$_lt_dar_can_shared"; then
14747 output_verbose_link_cmd=func_echo_all
14748 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14749 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14750 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"
14751 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"
14752
14753 else
14754 ld_shlibs=no
14755 fi
14756
14757 ;;
14758
14759 dgux*)
14760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14761 hardcode_libdir_flag_spec='-L$libdir'
14762 hardcode_shlibpath_var=no
14763 ;;
14764
14765 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14766 # support. Future versions do this automatically, but an explicit c++rt0.o
14767 # does not break anything, and helps significantly (at the cost of a little
14768 # extra space).
14769 freebsd2.2*)
14770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14771 hardcode_libdir_flag_spec='-R$libdir'
14772 hardcode_direct=yes
14773 hardcode_shlibpath_var=no
14774 ;;
14775
14776 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14777 freebsd2.*)
14778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14779 hardcode_direct=yes
14780 hardcode_minus_L=yes
14781 hardcode_shlibpath_var=no
14782 ;;
14783
14784 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14785 freebsd* | dragonfly* | midnightbsd*)
14786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14787 hardcode_libdir_flag_spec='-R$libdir'
14788 hardcode_direct=yes
14789 hardcode_shlibpath_var=no
14790 ;;
14791
14792 hpux9*)
14793 if test yes = "$GCC"; then
14794 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'
14795 else
14796 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'
14797 fi
14798 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14799 hardcode_libdir_separator=:
14800 hardcode_direct=yes
14801
14802 # hardcode_minus_L: Not really in the search PATH,
14803 # but as the default location of the library.
14804 hardcode_minus_L=yes
14805 export_dynamic_flag_spec='$wl-E'
14806 ;;
14807
14808 hpux10*)
14809 if test yes,no = "$GCC,$with_gnu_ld"; then
14810 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14811 else
14812 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14813 fi
14814 if test no = "$with_gnu_ld"; then
14815 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14816 hardcode_libdir_separator=:
14817 hardcode_direct=yes
14818 hardcode_direct_absolute=yes
14819 export_dynamic_flag_spec='$wl-E'
14820 # hardcode_minus_L: Not really in the search PATH,
14821 # but as the default location of the library.
14822 hardcode_minus_L=yes
14823 fi
14824 ;;
14825
14826 hpux11*)
14827 if test yes,no = "$GCC,$with_gnu_ld"; then
14828 case $host_cpu in
14829 hppa*64*)
14830 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14831 ;;
14832 ia64*)
14833 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14834 ;;
14835 *)
14836 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14837 ;;
14838 esac
14839 else
14840 case $host_cpu in
14841 hppa*64*)
14842 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14843 ;;
14844 ia64*)
14845 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14846 ;;
14847 *)
14848
14849 # Older versions of the 11.00 compiler do not understand -b yet
14850 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14852 printf %s "checking if $CC understands -b... " >&6; }
14853 if test ${lt_cv_prog_compiler__b+y}
14854 then :
14855 printf %s "(cached) " >&6
14856 else $as_nop
14857 lt_cv_prog_compiler__b=no
14858 save_LDFLAGS=$LDFLAGS
14859 LDFLAGS="$LDFLAGS -b"
14860 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14861 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14862 # The linker can only warn and ignore the option if not recognized
14863 # So say no if there are warnings
14864 if test -s conftest.err; then
14865 # Append any errors to the config.log.
14866 cat conftest.err 1>&5
14867 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14869 if diff conftest.exp conftest.er2 >/dev/null; then
14870 lt_cv_prog_compiler__b=yes
14871 fi
14872 else
14873 lt_cv_prog_compiler__b=yes
14874 fi
14875 fi
14876 $RM -r conftest*
14877 LDFLAGS=$save_LDFLAGS
14878
14879 fi
14880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14881 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14882
14883 if test yes = "$lt_cv_prog_compiler__b"; then
14884 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14885 else
14886 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14887 fi
14888
14889 ;;
14890 esac
14891 fi
14892 if test no = "$with_gnu_ld"; then
14893 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14894 hardcode_libdir_separator=:
14895
14896 case $host_cpu in
14897 hppa*64*|ia64*)
14898 hardcode_direct=no
14899 hardcode_shlibpath_var=no
14900 ;;
14901 *)
14902 hardcode_direct=yes
14903 hardcode_direct_absolute=yes
14904 export_dynamic_flag_spec='$wl-E'
14905
14906 # hardcode_minus_L: Not really in the search PATH,
14907 # but as the default location of the library.
14908 hardcode_minus_L=yes
14909 ;;
14910 esac
14911 fi
14912 ;;
14913
14914 irix5* | irix6* | nonstopux*)
14915 if test yes = "$GCC"; then
14916 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'
14917 # Try to use the -exported_symbol ld option, if it does not
14918 # work, assume that -exports_file does not work either and
14919 # implicitly export all symbols.
14920 # This should be the same for all languages, so no per-tag cache variable.
14921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14922 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14923 if test ${lt_cv_irix_exported_symbol+y}
14924 then :
14925 printf %s "(cached) " >&6
14926 else $as_nop
14927 save_LDFLAGS=$LDFLAGS
14928 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14931 int foo (void) { return 0; }
14932 _ACEOF
14933 if ac_fn_c_try_link "$LINENO"
14934 then :
14935 lt_cv_irix_exported_symbol=yes
14936 else $as_nop
14937 lt_cv_irix_exported_symbol=no
14938 fi
14939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14940 conftest$ac_exeext conftest.$ac_ext
14941 LDFLAGS=$save_LDFLAGS
14942 fi
14943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14944 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14945 if test yes = "$lt_cv_irix_exported_symbol"; then
14946 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'
14947 fi
14948 else
14949 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'
14950 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'
14951 fi
14952 archive_cmds_need_lc='no'
14953 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14954 hardcode_libdir_separator=:
14955 inherit_rpath=yes
14956 link_all_deplibs=yes
14957 ;;
14958
14959 linux*)
14960 case $cc_basename in
14961 tcc*)
14962 # Fabrice Bellard et al's Tiny C Compiler
14963 ld_shlibs=yes
14964 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14965 ;;
14966 esac
14967 ;;
14968
14969 netbsd*)
14970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14971 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14972 else
14973 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14974 fi
14975 hardcode_libdir_flag_spec='-R$libdir'
14976 hardcode_direct=yes
14977 hardcode_shlibpath_var=no
14978 ;;
14979
14980 newsos6)
14981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14982 hardcode_direct=yes
14983 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14984 hardcode_libdir_separator=:
14985 hardcode_shlibpath_var=no
14986 ;;
14987
14988 *nto* | *qnx*)
14989 ;;
14990
14991 openbsd* | bitrig*)
14992 if test -f /usr/libexec/ld.so; then
14993 hardcode_direct=yes
14994 hardcode_shlibpath_var=no
14995 hardcode_direct_absolute=yes
14996 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14997 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14998 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14999 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15000 export_dynamic_flag_spec='$wl-E'
15001 else
15002 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15003 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15004 fi
15005 else
15006 ld_shlibs=no
15007 fi
15008 ;;
15009
15010 os2*)
15011 hardcode_libdir_flag_spec='-L$libdir'
15012 hardcode_minus_L=yes
15013 allow_undefined_flag=unsupported
15014 shrext_cmds=.dll
15015 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15016 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15017 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15018 $ECHO EXPORTS >> $output_objdir/$libname.def~
15019 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15020 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15021 emximp -o $lib $output_objdir/$libname.def'
15022 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15023 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15024 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15025 $ECHO EXPORTS >> $output_objdir/$libname.def~
15026 prefix_cmds="$SED"~
15027 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15028 prefix_cmds="$prefix_cmds -e 1d";
15029 fi~
15030 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15031 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15032 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15033 emximp -o $lib $output_objdir/$libname.def'
15034 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15035 enable_shared_with_static_runtimes=yes
15036 file_list_spec='@'
15037 ;;
15038
15039 osf3*)
15040 if test yes = "$GCC"; then
15041 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15042 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'
15043 else
15044 allow_undefined_flag=' -expect_unresolved \*'
15045 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'
15046 fi
15047 archive_cmds_need_lc='no'
15048 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15049 hardcode_libdir_separator=:
15050 ;;
15051
15052 osf4* | osf5*) # as osf3* with the addition of -msym flag
15053 if test yes = "$GCC"; then
15054 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15055 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'
15056 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15057 else
15058 allow_undefined_flag=' -expect_unresolved \*'
15059 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'
15060 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~
15061 $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'
15062
15063 # Both c and cxx compiler support -rpath directly
15064 hardcode_libdir_flag_spec='-rpath $libdir'
15065 fi
15066 archive_cmds_need_lc='no'
15067 hardcode_libdir_separator=:
15068 ;;
15069
15070 solaris*)
15071 no_undefined_flag=' -z defs'
15072 if test yes = "$GCC"; then
15073 wlarc='$wl'
15074 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15075 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15076 $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'
15077 else
15078 case `$CC -V 2>&1` in
15079 *"Compilers 5.0"*)
15080 wlarc=''
15081 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
15082 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15083 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15084 ;;
15085 *)
15086 wlarc='$wl'
15087 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15088 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15089 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15090 ;;
15091 esac
15092 fi
15093 hardcode_libdir_flag_spec='-R$libdir'
15094 hardcode_shlibpath_var=no
15095 case $host_os in
15096 solaris2.[0-5] | solaris2.[0-5].*) ;;
15097 *)
15098 # The compiler driver will combine and reorder linker options,
15099 # but understands '-z linker_flag'. GCC discards it without '$wl',
15100 # but is careful enough not to reorder.
15101 # Supported since Solaris 2.6 (maybe 2.5.1?)
15102 if test yes = "$GCC"; then
15103 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15104 else
15105 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15106 fi
15107 ;;
15108 esac
15109 link_all_deplibs=yes
15110 ;;
15111
15112 sunos4*)
15113 if test sequent = "$host_vendor"; then
15114 # Use $CC to link under sequent, because it throws in some extra .o
15115 # files that make .init and .fini sections work.
15116 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15117 else
15118 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15119 fi
15120 hardcode_libdir_flag_spec='-L$libdir'
15121 hardcode_direct=yes
15122 hardcode_minus_L=yes
15123 hardcode_shlibpath_var=no
15124 ;;
15125
15126 sysv4)
15127 case $host_vendor in
15128 sni)
15129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15130 hardcode_direct=yes # is this really true???
15131 ;;
15132 siemens)
15133 ## LD is ld it makes a PLAMLIB
15134 ## CC just makes a GrossModule.
15135 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15136 reload_cmds='$CC -r -o $output$reload_objs'
15137 hardcode_direct=no
15138 ;;
15139 motorola)
15140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15141 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15142 ;;
15143 esac
15144 runpath_var='LD_RUN_PATH'
15145 hardcode_shlibpath_var=no
15146 ;;
15147
15148 sysv4.3*)
15149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15150 hardcode_shlibpath_var=no
15151 export_dynamic_flag_spec='-Bexport'
15152 ;;
15153
15154 sysv4*MP*)
15155 if test -d /usr/nec; then
15156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15157 hardcode_shlibpath_var=no
15158 runpath_var=LD_RUN_PATH
15159 hardcode_runpath_var=yes
15160 ld_shlibs=yes
15161 fi
15162 ;;
15163
15164 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15165 no_undefined_flag='$wl-z,text'
15166 archive_cmds_need_lc=no
15167 hardcode_shlibpath_var=no
15168 runpath_var='LD_RUN_PATH'
15169
15170 if test yes = "$GCC"; then
15171 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15172 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15173 else
15174 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15175 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15176 fi
15177 ;;
15178
15179 sysv5* | sco3.2v5* | sco5v6*)
15180 # Note: We CANNOT use -z defs as we might desire, because we do not
15181 # link with -lc, and that would cause any symbols used from libc to
15182 # always be unresolved, which means just about no library would
15183 # ever link correctly. If we're not using GNU ld we use -z text
15184 # though, which does catch some bad symbols but isn't as heavy-handed
15185 # as -z defs.
15186 no_undefined_flag='$wl-z,text'
15187 allow_undefined_flag='$wl-z,nodefs'
15188 archive_cmds_need_lc=no
15189 hardcode_shlibpath_var=no
15190 hardcode_libdir_flag_spec='$wl-R,$libdir'
15191 hardcode_libdir_separator=':'
15192 link_all_deplibs=yes
15193 export_dynamic_flag_spec='$wl-Bexport'
15194 runpath_var='LD_RUN_PATH'
15195
15196 if test yes = "$GCC"; then
15197 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15198 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15199 else
15200 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15201 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15202 fi
15203 ;;
15204
15205 uts4*)
15206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15207 hardcode_libdir_flag_spec='-L$libdir'
15208 hardcode_shlibpath_var=no
15209 ;;
15210
15211 *)
15212 ld_shlibs=no
15213 ;;
15214 esac
15215
15216 if test sni = "$host_vendor"; then
15217 case $host in
15218 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15219 export_dynamic_flag_spec='$wl-Blargedynsym'
15220 ;;
15221 esac
15222 fi
15223 fi
15224
15225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15226 printf "%s\n" "$ld_shlibs" >&6; }
15227 test no = "$ld_shlibs" && can_build_shared=no
15228
15229 with_gnu_ld=$with_gnu_ld
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245 #
15246 # Do we need to explicitly link libc?
15247 #
15248 case "x$archive_cmds_need_lc" in
15249 x|xyes)
15250 # Assume -lc should be added
15251 archive_cmds_need_lc=yes
15252
15253 if test yes,yes = "$GCC,$enable_shared"; then
15254 case $archive_cmds in
15255 *'~'*)
15256 # FIXME: we may have to deal with multi-command sequences.
15257 ;;
15258 '$CC '*)
15259 # Test whether the compiler implicitly links with -lc since on some
15260 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15261 # to ld, don't add -lc before -lgcc.
15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15263 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15264 if test ${lt_cv_archive_cmds_need_lc+y}
15265 then :
15266 printf %s "(cached) " >&6
15267 else $as_nop
15268 $RM conftest*
15269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15270
15271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15272 (eval $ac_compile) 2>&5
15273 ac_status=$?
15274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15275 test $ac_status = 0; } 2>conftest.err; then
15276 soname=conftest
15277 lib=conftest
15278 libobjs=conftest.$ac_objext
15279 deplibs=
15280 wl=$lt_prog_compiler_wl
15281 pic_flag=$lt_prog_compiler_pic
15282 compiler_flags=-v
15283 linker_flags=-v
15284 verstring=
15285 output_objdir=.
15286 libname=conftest
15287 lt_save_allow_undefined_flag=$allow_undefined_flag
15288 allow_undefined_flag=
15289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15290 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15291 ac_status=$?
15292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15293 test $ac_status = 0; }
15294 then
15295 lt_cv_archive_cmds_need_lc=no
15296 else
15297 lt_cv_archive_cmds_need_lc=yes
15298 fi
15299 allow_undefined_flag=$lt_save_allow_undefined_flag
15300 else
15301 cat conftest.err 1>&5
15302 fi
15303 $RM conftest*
15304
15305 fi
15306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15307 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15308 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15309 ;;
15310 esac
15311 fi
15312 ;;
15313 esac
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15467 printf %s "checking dynamic linker characteristics... " >&6; }
15468
15469 if test yes = "$GCC"; then
15470 case $host_os in
15471 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15472 *) lt_awk_arg='/^libraries:/' ;;
15473 esac
15474 case $host_os in
15475 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15476 *) lt_sed_strip_eq='s|=/|/|g' ;;
15477 esac
15478 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15479 case $lt_search_path_spec in
15480 *\;*)
15481 # if the path contains ";" then we assume it to be the separator
15482 # otherwise default to the standard path separator (i.e. ":") - it is
15483 # assumed that no part of a normal pathname contains ";" but that should
15484 # okay in the real world where ";" in dirpaths is itself problematic.
15485 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15486 ;;
15487 *)
15488 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15489 ;;
15490 esac
15491 # Ok, now we have the path, separated by spaces, we can step through it
15492 # and add multilib dir if necessary...
15493 lt_tmp_lt_search_path_spec=
15494 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15495 # ...but if some path component already ends with the multilib dir we assume
15496 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15497 case "$lt_multi_os_dir; $lt_search_path_spec " in
15498 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15499 lt_multi_os_dir=
15500 ;;
15501 esac
15502 for lt_sys_path in $lt_search_path_spec; do
15503 if test -d "$lt_sys_path$lt_multi_os_dir"; then
15504 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15505 elif test -n "$lt_multi_os_dir"; then
15506 test -d "$lt_sys_path" && \
15507 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15508 fi
15509 done
15510 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15511 BEGIN {RS = " "; FS = "/|\n";} {
15512 lt_foo = "";
15513 lt_count = 0;
15514 for (lt_i = NF; lt_i > 0; lt_i--) {
15515 if ($lt_i != "" && $lt_i != ".") {
15516 if ($lt_i == "..") {
15517 lt_count++;
15518 } else {
15519 if (lt_count == 0) {
15520 lt_foo = "/" $lt_i lt_foo;
15521 } else {
15522 lt_count--;
15523 }
15524 }
15525 }
15526 }
15527 if (lt_foo != "") { lt_freq[lt_foo]++; }
15528 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15529 }'`
15530 # AWK program above erroneously prepends '/' to C:/dos/paths
15531 # for these hosts.
15532 case $host_os in
15533 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15534 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15535 esac
15536 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15537 else
15538 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15539 fi
15540 library_names_spec=
15541 libname_spec='lib$name'
15542 soname_spec=
15543 shrext_cmds=.so
15544 postinstall_cmds=
15545 postuninstall_cmds=
15546 finish_cmds=
15547 finish_eval=
15548 shlibpath_var=
15549 shlibpath_overrides_runpath=unknown
15550 version_type=none
15551 dynamic_linker="$host_os ld.so"
15552 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15553 need_lib_prefix=unknown
15554 hardcode_into_libs=no
15555
15556 # when you set need_version to no, make sure it does not cause -set_version
15557 # flags to be left without arguments
15558 need_version=unknown
15559
15560
15561
15562 case $host_os in
15563 aix3*)
15564 version_type=linux # correct to gnu/linux during the next big refactor
15565 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15566 shlibpath_var=LIBPATH
15567
15568 # AIX 3 has no versioning support, so we append a major version to the name.
15569 soname_spec='$libname$release$shared_ext$major'
15570 ;;
15571
15572 aix[4-9]*)
15573 version_type=linux # correct to gnu/linux during the next big refactor
15574 need_lib_prefix=no
15575 need_version=no
15576 hardcode_into_libs=yes
15577 if test ia64 = "$host_cpu"; then
15578 # AIX 5 supports IA64
15579 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15580 shlibpath_var=LD_LIBRARY_PATH
15581 else
15582 # With GCC up to 2.95.x, collect2 would create an import file
15583 # for dependence libraries. The import file would start with
15584 # the line '#! .'. This would cause the generated library to
15585 # depend on '.', always an invalid library. This was fixed in
15586 # development snapshots of GCC prior to 3.0.
15587 case $host_os in
15588 aix4 | aix4.[01] | aix4.[01].*)
15589 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15590 echo ' yes '
15591 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15592 :
15593 else
15594 can_build_shared=no
15595 fi
15596 ;;
15597 esac
15598 # Using Import Files as archive members, it is possible to support
15599 # filename-based versioning of shared library archives on AIX. While
15600 # this would work for both with and without runtime linking, it will
15601 # prevent static linking of such archives. So we do filename-based
15602 # shared library versioning with .so extension only, which is used
15603 # when both runtime linking and shared linking is enabled.
15604 # Unfortunately, runtime linking may impact performance, so we do
15605 # not want this to be the default eventually. Also, we use the
15606 # versioned .so libs for executables only if there is the -brtl
15607 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15608 # To allow for filename-based versioning support, we need to create
15609 # libNAME.so.V as an archive file, containing:
15610 # *) an Import File, referring to the versioned filename of the
15611 # archive as well as the shared archive member, telling the
15612 # bitwidth (32 or 64) of that shared object, and providing the
15613 # list of exported symbols of that shared object, eventually
15614 # decorated with the 'weak' keyword
15615 # *) the shared object with the F_LOADONLY flag set, to really avoid
15616 # it being seen by the linker.
15617 # At run time we better use the real file rather than another symlink,
15618 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15619
15620 case $with_aix_soname,$aix_use_runtimelinking in
15621 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15622 # soname into executable. Probably we can add versioning support to
15623 # collect2, so additional links can be useful in future.
15624 aix,yes) # traditional libtool
15625 dynamic_linker='AIX unversionable lib.so'
15626 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15627 # instead of lib<name>.a to let people know that these are not
15628 # typical AIX shared libraries.
15629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15630 ;;
15631 aix,no) # traditional AIX only
15632 dynamic_linker='AIX lib.a(lib.so.V)'
15633 # We preserve .a as extension for shared libraries through AIX4.2
15634 # and later when we are not doing run time linking.
15635 library_names_spec='$libname$release.a $libname.a'
15636 soname_spec='$libname$release$shared_ext$major'
15637 ;;
15638 svr4,*) # full svr4 only
15639 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15640 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15641 # We do not specify a path in Import Files, so LIBPATH fires.
15642 shlibpath_overrides_runpath=yes
15643 ;;
15644 *,yes) # both, prefer svr4
15645 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15646 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15647 # unpreferred sharedlib libNAME.a needs extra handling
15648 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"'
15649 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"'
15650 # We do not specify a path in Import Files, so LIBPATH fires.
15651 shlibpath_overrides_runpath=yes
15652 ;;
15653 *,no) # both, prefer aix
15654 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15655 library_names_spec='$libname$release.a $libname.a'
15656 soname_spec='$libname$release$shared_ext$major'
15657 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15658 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)'
15659 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"'
15660 ;;
15661 esac
15662 shlibpath_var=LIBPATH
15663 fi
15664 ;;
15665
15666 amigaos*)
15667 case $host_cpu in
15668 powerpc)
15669 # Since July 2007 AmigaOS4 officially supports .so libraries.
15670 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15672 ;;
15673 m68k)
15674 library_names_spec='$libname.ixlibrary $libname.a'
15675 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15676 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'
15677 ;;
15678 esac
15679 ;;
15680
15681 beos*)
15682 library_names_spec='$libname$shared_ext'
15683 dynamic_linker="$host_os ld.so"
15684 shlibpath_var=LIBRARY_PATH
15685 ;;
15686
15687 bsdi[45]*)
15688 version_type=linux # correct to gnu/linux during the next big refactor
15689 need_version=no
15690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15691 soname_spec='$libname$release$shared_ext$major'
15692 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15695 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15696 # the default ld.so.conf also contains /usr/contrib/lib and
15697 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15698 # libtool to hard-code these into programs
15699 ;;
15700
15701 cygwin* | mingw* | pw32* | cegcc*)
15702 version_type=windows
15703 shrext_cmds=.dll
15704 need_version=no
15705 need_lib_prefix=no
15706
15707 case $GCC,$cc_basename in
15708 yes,*)
15709 # gcc
15710 library_names_spec='$libname.dll.a'
15711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15712 postinstall_cmds='base_file=`basename \$file`~
15713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15714 dldir=$destdir/`dirname \$dlpath`~
15715 test -d \$dldir || mkdir -p \$dldir~
15716 $install_prog $dir/$dlname \$dldir/$dlname~
15717 chmod a+x \$dldir/$dlname~
15718 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15719 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15720 fi'
15721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15722 dlpath=$dir/\$dldll~
15723 $RM \$dlpath'
15724 shlibpath_overrides_runpath=yes
15725
15726 case $host_os in
15727 cygwin*)
15728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15729 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15730
15731 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15732 ;;
15733 mingw* | cegcc*)
15734 # MinGW DLLs use traditional 'lib' prefix
15735 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15736 ;;
15737 pw32*)
15738 # pw32 DLLs use 'pw' prefix rather than 'lib'
15739 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15740 ;;
15741 esac
15742 dynamic_linker='Win32 ld.exe'
15743 ;;
15744
15745 *,cl* | *,icl*)
15746 # Native MSVC or ICC
15747 libname_spec='$name'
15748 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15749 library_names_spec='$libname.dll.lib'
15750
15751 case $build_os in
15752 mingw*)
15753 sys_lib_search_path_spec=
15754 lt_save_ifs=$IFS
15755 IFS=';'
15756 for lt_path in $LIB
15757 do
15758 IFS=$lt_save_ifs
15759 # Let DOS variable expansion print the short 8.3 style file name.
15760 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15761 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15762 done
15763 IFS=$lt_save_ifs
15764 # Convert to MSYS style.
15765 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15766 ;;
15767 cygwin*)
15768 # Convert to unix form, then to dos form, then back to unix form
15769 # but this time dos style (no spaces!) so that the unix form looks
15770 # like /cygdrive/c/PROGRA~1:/cygdr...
15771 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15772 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15773 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15774 ;;
15775 *)
15776 sys_lib_search_path_spec=$LIB
15777 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15778 # It is most probably a Windows format PATH.
15779 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15780 else
15781 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15782 fi
15783 # FIXME: find the short name or the path components, as spaces are
15784 # common. (e.g. "Program Files" -> "PROGRA~1")
15785 ;;
15786 esac
15787
15788 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15789 postinstall_cmds='base_file=`basename \$file`~
15790 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15791 dldir=$destdir/`dirname \$dlpath`~
15792 test -d \$dldir || mkdir -p \$dldir~
15793 $install_prog $dir/$dlname \$dldir/$dlname'
15794 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15795 dlpath=$dir/\$dldll~
15796 $RM \$dlpath'
15797 shlibpath_overrides_runpath=yes
15798 dynamic_linker='Win32 link.exe'
15799 ;;
15800
15801 *)
15802 # Assume MSVC and ICC wrapper
15803 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15804 dynamic_linker='Win32 ld.exe'
15805 ;;
15806 esac
15807 # FIXME: first we should search . and the directory the executable is in
15808 shlibpath_var=PATH
15809 ;;
15810
15811 darwin* | rhapsody*)
15812 dynamic_linker="$host_os dyld"
15813 version_type=darwin
15814 need_lib_prefix=no
15815 need_version=no
15816 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15817 soname_spec='$libname$release$major$shared_ext'
15818 shlibpath_overrides_runpath=yes
15819 shlibpath_var=DYLD_LIBRARY_PATH
15820 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15821
15822 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15823 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15824 ;;
15825
15826 dgux*)
15827 version_type=linux # correct to gnu/linux during the next big refactor
15828 need_lib_prefix=no
15829 need_version=no
15830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15831 soname_spec='$libname$release$shared_ext$major'
15832 shlibpath_var=LD_LIBRARY_PATH
15833 ;;
15834
15835 freebsd* | dragonfly* | midnightbsd*)
15836 # DragonFly does not have aout. When/if they implement a new
15837 # versioning mechanism, adjust this.
15838 if test -x /usr/bin/objformat; then
15839 objformat=`/usr/bin/objformat`
15840 else
15841 case $host_os in
15842 freebsd[23].*) objformat=aout ;;
15843 *) objformat=elf ;;
15844 esac
15845 fi
15846 version_type=freebsd-$objformat
15847 case $version_type in
15848 freebsd-elf*)
15849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15850 soname_spec='$libname$release$shared_ext$major'
15851 need_version=no
15852 need_lib_prefix=no
15853 ;;
15854 freebsd-*)
15855 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15856 need_version=yes
15857 ;;
15858 esac
15859 shlibpath_var=LD_LIBRARY_PATH
15860 case $host_os in
15861 freebsd2.*)
15862 shlibpath_overrides_runpath=yes
15863 ;;
15864 freebsd3.[01]* | freebsdelf3.[01]*)
15865 shlibpath_overrides_runpath=yes
15866 hardcode_into_libs=yes
15867 ;;
15868 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15869 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15870 shlibpath_overrides_runpath=no
15871 hardcode_into_libs=yes
15872 ;;
15873 *) # from 4.6 on, and DragonFly
15874 shlibpath_overrides_runpath=yes
15875 hardcode_into_libs=yes
15876 ;;
15877 esac
15878 ;;
15879
15880 haiku*)
15881 version_type=linux # correct to gnu/linux during the next big refactor
15882 need_lib_prefix=no
15883 need_version=no
15884 dynamic_linker="$host_os runtime_loader"
15885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15886 soname_spec='$libname$release$shared_ext$major'
15887 shlibpath_var=LIBRARY_PATH
15888 shlibpath_overrides_runpath=no
15889 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15890 hardcode_into_libs=yes
15891 ;;
15892
15893 hpux9* | hpux10* | hpux11*)
15894 # Give a soname corresponding to the major version so that dld.sl refuses to
15895 # link against other versions.
15896 version_type=sunos
15897 need_lib_prefix=no
15898 need_version=no
15899 case $host_cpu in
15900 ia64*)
15901 shrext_cmds='.so'
15902 hardcode_into_libs=yes
15903 dynamic_linker="$host_os dld.so"
15904 shlibpath_var=LD_LIBRARY_PATH
15905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15906 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15907 soname_spec='$libname$release$shared_ext$major'
15908 if test 32 = "$HPUX_IA64_MODE"; then
15909 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15910 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15911 else
15912 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15913 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15914 fi
15915 ;;
15916 hppa*64*)
15917 shrext_cmds='.sl'
15918 hardcode_into_libs=yes
15919 dynamic_linker="$host_os dld.sl"
15920 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15923 soname_spec='$libname$release$shared_ext$major'
15924 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15925 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15926 ;;
15927 *)
15928 shrext_cmds='.sl'
15929 dynamic_linker="$host_os dld.sl"
15930 shlibpath_var=SHLIB_PATH
15931 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15933 soname_spec='$libname$release$shared_ext$major'
15934 ;;
15935 esac
15936 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15937 postinstall_cmds='chmod 555 $lib'
15938 # or fails outright, so override atomically:
15939 install_override_mode=555
15940 ;;
15941
15942 interix[3-9]*)
15943 version_type=linux # correct to gnu/linux during the next big refactor
15944 need_lib_prefix=no
15945 need_version=no
15946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15947 soname_spec='$libname$release$shared_ext$major'
15948 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 shlibpath_overrides_runpath=no
15951 hardcode_into_libs=yes
15952 ;;
15953
15954 irix5* | irix6* | nonstopux*)
15955 case $host_os in
15956 nonstopux*) version_type=nonstopux ;;
15957 *)
15958 if test yes = "$lt_cv_prog_gnu_ld"; then
15959 version_type=linux # correct to gnu/linux during the next big refactor
15960 else
15961 version_type=irix
15962 fi ;;
15963 esac
15964 need_lib_prefix=no
15965 need_version=no
15966 soname_spec='$libname$release$shared_ext$major'
15967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15968 case $host_os in
15969 irix5* | nonstopux*)
15970 libsuff= shlibsuff=
15971 ;;
15972 *)
15973 case $LD in # libtool.m4 will add one of these switches to LD
15974 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15975 libsuff= shlibsuff= libmagic=32-bit;;
15976 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15977 libsuff=32 shlibsuff=N32 libmagic=N32;;
15978 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15979 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15980 *) libsuff= shlibsuff= libmagic=never-match;;
15981 esac
15982 ;;
15983 esac
15984 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15985 shlibpath_overrides_runpath=no
15986 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15987 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15988 hardcode_into_libs=yes
15989 ;;
15990
15991 # No shared lib support for Linux oldld, aout, or coff.
15992 linux*oldld* | linux*aout* | linux*coff*)
15993 dynamic_linker=no
15994 ;;
15995
15996 linux*android*)
15997 version_type=none # Android doesn't support versioned libraries.
15998 need_lib_prefix=no
15999 need_version=no
16000 library_names_spec='$libname$release$shared_ext'
16001 soname_spec='$libname$release$shared_ext'
16002 finish_cmds=
16003 shlibpath_var=LD_LIBRARY_PATH
16004 shlibpath_overrides_runpath=yes
16005
16006 # This implies no fast_install, which is unacceptable.
16007 # Some rework will be needed to allow for fast_install
16008 # before this can be enabled.
16009 hardcode_into_libs=yes
16010
16011 dynamic_linker='Android linker'
16012 # Don't embed -rpath directories since the linker doesn't support them.
16013 hardcode_libdir_flag_spec='-L$libdir'
16014 ;;
16015
16016 # This must be glibc/ELF.
16017 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16018 version_type=linux # correct to gnu/linux during the next big refactor
16019 need_lib_prefix=no
16020 need_version=no
16021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16022 soname_spec='$libname$release$shared_ext$major'
16023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16024 shlibpath_var=LD_LIBRARY_PATH
16025 shlibpath_overrides_runpath=no
16026
16027 # Some binutils ld are patched to set DT_RUNPATH
16028 if test ${lt_cv_shlibpath_overrides_runpath+y}
16029 then :
16030 printf %s "(cached) " >&6
16031 else $as_nop
16032 lt_cv_shlibpath_overrides_runpath=no
16033 save_LDFLAGS=$LDFLAGS
16034 save_libdir=$libdir
16035 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16036 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16038 /* end confdefs.h. */
16039
16040 int
16041 main (void)
16042 {
16043
16044 ;
16045 return 0;
16046 }
16047 _ACEOF
16048 if ac_fn_c_try_link "$LINENO"
16049 then :
16050 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16051 then :
16052 lt_cv_shlibpath_overrides_runpath=yes
16053 fi
16054 fi
16055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16056 conftest$ac_exeext conftest.$ac_ext
16057 LDFLAGS=$save_LDFLAGS
16058 libdir=$save_libdir
16059
16060 fi
16061
16062 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16063
16064 # This implies no fast_install, which is unacceptable.
16065 # Some rework will be needed to allow for fast_install
16066 # before this can be enabled.
16067 hardcode_into_libs=yes
16068
16069 # Ideally, we could use ldconfig to report *all* directores which are
16070 # searched for libraries, however this is still not possible. Aside from not
16071 # being certain /sbin/ldconfig is available, command
16072 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16073 # even though it is searched at run-time. Try to do the best guess by
16074 # appending ld.so.conf contents (and includes) to the search path.
16075 if test -f /etc/ld.so.conf; then
16076 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' ' '`
16077 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16078 fi
16079
16080 # We used to test for /lib/ld.so.1 and disable shared libraries on
16081 # powerpc, because MkLinux only supported shared libraries with the
16082 # GNU dynamic linker. Since this was broken with cross compilers,
16083 # most powerpc-linux boxes support dynamic linking these days and
16084 # people can always --disable-shared, the test was removed, and we
16085 # assume the GNU/Linux dynamic linker is in use.
16086 dynamic_linker='GNU/Linux ld.so'
16087 ;;
16088
16089 netbsd*)
16090 version_type=sunos
16091 need_lib_prefix=no
16092 need_version=no
16093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16094 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16096 dynamic_linker='NetBSD (a.out) ld.so'
16097 else
16098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16099 soname_spec='$libname$release$shared_ext$major'
16100 dynamic_linker='NetBSD ld.elf_so'
16101 fi
16102 shlibpath_var=LD_LIBRARY_PATH
16103 shlibpath_overrides_runpath=yes
16104 hardcode_into_libs=yes
16105 ;;
16106
16107 newsos6)
16108 version_type=linux # correct to gnu/linux during the next big refactor
16109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16110 shlibpath_var=LD_LIBRARY_PATH
16111 shlibpath_overrides_runpath=yes
16112 ;;
16113
16114 *nto* | *qnx*)
16115 version_type=qnx
16116 need_lib_prefix=no
16117 need_version=no
16118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16119 soname_spec='$libname$release$shared_ext$major'
16120 shlibpath_var=LD_LIBRARY_PATH
16121 shlibpath_overrides_runpath=no
16122 hardcode_into_libs=yes
16123 dynamic_linker='ldqnx.so'
16124 ;;
16125
16126 openbsd* | bitrig*)
16127 version_type=sunos
16128 sys_lib_dlsearch_path_spec=/usr/lib
16129 need_lib_prefix=no
16130 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16131 need_version=no
16132 else
16133 need_version=yes
16134 fi
16135 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16137 shlibpath_var=LD_LIBRARY_PATH
16138 shlibpath_overrides_runpath=yes
16139 ;;
16140
16141 os2*)
16142 libname_spec='$name'
16143 version_type=windows
16144 shrext_cmds=.dll
16145 need_version=no
16146 need_lib_prefix=no
16147 # OS/2 can only load a DLL with a base name of 8 characters or less.
16148 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16149 v=$($ECHO $release$versuffix | tr -d .-);
16150 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16151 $ECHO $n$v`$shared_ext'
16152 library_names_spec='${libname}_dll.$libext'
16153 dynamic_linker='OS/2 ld.exe'
16154 shlibpath_var=BEGINLIBPATH
16155 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16157 postinstall_cmds='base_file=`basename \$file`~
16158 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16159 dldir=$destdir/`dirname \$dlpath`~
16160 test -d \$dldir || mkdir -p \$dldir~
16161 $install_prog $dir/$dlname \$dldir/$dlname~
16162 chmod a+x \$dldir/$dlname~
16163 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16164 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16165 fi'
16166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16167 dlpath=$dir/\$dldll~
16168 $RM \$dlpath'
16169 ;;
16170
16171 osf3* | osf4* | osf5*)
16172 version_type=osf
16173 need_lib_prefix=no
16174 need_version=no
16175 soname_spec='$libname$release$shared_ext$major'
16176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16177 shlibpath_var=LD_LIBRARY_PATH
16178 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16180 ;;
16181
16182 rdos*)
16183 dynamic_linker=no
16184 ;;
16185
16186 solaris*)
16187 version_type=linux # correct to gnu/linux during the next big refactor
16188 need_lib_prefix=no
16189 need_version=no
16190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16191 soname_spec='$libname$release$shared_ext$major'
16192 shlibpath_var=LD_LIBRARY_PATH
16193 shlibpath_overrides_runpath=yes
16194 hardcode_into_libs=yes
16195 # ldd complains unless libraries are executable
16196 postinstall_cmds='chmod +x $lib'
16197 ;;
16198
16199 sunos4*)
16200 version_type=sunos
16201 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16202 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16203 shlibpath_var=LD_LIBRARY_PATH
16204 shlibpath_overrides_runpath=yes
16205 if test yes = "$with_gnu_ld"; then
16206 need_lib_prefix=no
16207 fi
16208 need_version=yes
16209 ;;
16210
16211 sysv4 | sysv4.3*)
16212 version_type=linux # correct to gnu/linux during the next big refactor
16213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16214 soname_spec='$libname$release$shared_ext$major'
16215 shlibpath_var=LD_LIBRARY_PATH
16216 case $host_vendor in
16217 sni)
16218 shlibpath_overrides_runpath=no
16219 need_lib_prefix=no
16220 runpath_var=LD_RUN_PATH
16221 ;;
16222 siemens)
16223 need_lib_prefix=no
16224 ;;
16225 motorola)
16226 need_lib_prefix=no
16227 need_version=no
16228 shlibpath_overrides_runpath=no
16229 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16230 ;;
16231 esac
16232 ;;
16233
16234 sysv4*MP*)
16235 if test -d /usr/nec; then
16236 version_type=linux # correct to gnu/linux during the next big refactor
16237 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16238 soname_spec='$libname$shared_ext.$major'
16239 shlibpath_var=LD_LIBRARY_PATH
16240 fi
16241 ;;
16242
16243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16244 version_type=sco
16245 need_lib_prefix=no
16246 need_version=no
16247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16248 soname_spec='$libname$release$shared_ext$major'
16249 shlibpath_var=LD_LIBRARY_PATH
16250 shlibpath_overrides_runpath=yes
16251 hardcode_into_libs=yes
16252 if test yes = "$with_gnu_ld"; then
16253 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16254 else
16255 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16256 case $host_os in
16257 sco3.2v5*)
16258 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16259 ;;
16260 esac
16261 fi
16262 sys_lib_dlsearch_path_spec='/usr/lib'
16263 ;;
16264
16265 tpf*)
16266 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16267 version_type=linux # correct to gnu/linux during the next big refactor
16268 need_lib_prefix=no
16269 need_version=no
16270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16271 shlibpath_var=LD_LIBRARY_PATH
16272 shlibpath_overrides_runpath=no
16273 hardcode_into_libs=yes
16274 ;;
16275
16276 uts4*)
16277 version_type=linux # correct to gnu/linux during the next big refactor
16278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16279 soname_spec='$libname$release$shared_ext$major'
16280 shlibpath_var=LD_LIBRARY_PATH
16281 ;;
16282
16283 *)
16284 dynamic_linker=no
16285 ;;
16286 esac
16287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16288 printf "%s\n" "$dynamic_linker" >&6; }
16289 test no = "$dynamic_linker" && can_build_shared=no
16290
16291 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16292 if test yes = "$GCC"; then
16293 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16294 fi
16295
16296 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16297 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16298 fi
16299
16300 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16301 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16302 fi
16303
16304 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16305 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16306
16307 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16308 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16309
16310 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16311 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16410 printf %s "checking how to hardcode library paths into programs... " >&6; }
16411 hardcode_action=
16412 if test -n "$hardcode_libdir_flag_spec" ||
16413 test -n "$runpath_var" ||
16414 test yes = "$hardcode_automatic"; then
16415
16416 # We can hardcode non-existent directories.
16417 if test no != "$hardcode_direct" &&
16418 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16419 # have to relink, otherwise we might link with an installed library
16420 # when we should be linking with a yet-to-be-installed one
16421 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16422 test no != "$hardcode_minus_L"; then
16423 # Linking always hardcodes the temporary library directory.
16424 hardcode_action=relink
16425 else
16426 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16427 hardcode_action=immediate
16428 fi
16429 else
16430 # We cannot hardcode anything, or else we can only hardcode existing
16431 # directories.
16432 hardcode_action=unsupported
16433 fi
16434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16435 printf "%s\n" "$hardcode_action" >&6; }
16436
16437 if test relink = "$hardcode_action" ||
16438 test yes = "$inherit_rpath"; then
16439 # Fast installation is not supported
16440 enable_fast_install=no
16441 elif test yes = "$shlibpath_overrides_runpath" ||
16442 test no = "$enable_shared"; then
16443 # Fast installation is not necessary
16444 enable_fast_install=needless
16445 fi
16446
16447
16448
16449
16450
16451
16452 if test yes != "$enable_dlopen"; then
16453 enable_dlopen=unknown
16454 enable_dlopen_self=unknown
16455 enable_dlopen_self_static=unknown
16456 else
16457 lt_cv_dlopen=no
16458 lt_cv_dlopen_libs=
16459
16460 case $host_os in
16461 beos*)
16462 lt_cv_dlopen=load_add_on
16463 lt_cv_dlopen_libs=
16464 lt_cv_dlopen_self=yes
16465 ;;
16466
16467 mingw* | pw32* | cegcc*)
16468 lt_cv_dlopen=LoadLibrary
16469 lt_cv_dlopen_libs=
16470 ;;
16471
16472 cygwin*)
16473 lt_cv_dlopen=dlopen
16474 lt_cv_dlopen_libs=
16475 ;;
16476
16477 darwin*)
16478 # if libdl is installed we need to link against it
16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16480 printf %s "checking for dlopen in -ldl... " >&6; }
16481 if test ${ac_cv_lib_dl_dlopen+y}
16482 then :
16483 printf %s "(cached) " >&6
16484 else $as_nop
16485 ac_check_lib_save_LIBS=$LIBS
16486 LIBS="-ldl $LIBS"
16487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16488 /* end confdefs.h. */
16489
16490 /* Override any GCC internal prototype to avoid an error.
16491 Use char because int might match the return type of a GCC
16492 builtin and then its argument prototype would still apply. */
16493 char dlopen ();
16494 int
16495 main (void)
16496 {
16497 return dlopen ();
16498 ;
16499 return 0;
16500 }
16501 _ACEOF
16502 if ac_fn_c_try_link "$LINENO"
16503 then :
16504 ac_cv_lib_dl_dlopen=yes
16505 else $as_nop
16506 ac_cv_lib_dl_dlopen=no
16507 fi
16508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16509 conftest$ac_exeext conftest.$ac_ext
16510 LIBS=$ac_check_lib_save_LIBS
16511 fi
16512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16513 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16514 if test "x$ac_cv_lib_dl_dlopen" = xyes
16515 then :
16516 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16517 else $as_nop
16518
16519 lt_cv_dlopen=dyld
16520 lt_cv_dlopen_libs=
16521 lt_cv_dlopen_self=yes
16522
16523 fi
16524
16525 ;;
16526
16527 tpf*)
16528 # Don't try to run any link tests for TPF. We know it's impossible
16529 # because TPF is a cross-compiler, and we know how we open DSOs.
16530 lt_cv_dlopen=dlopen
16531 lt_cv_dlopen_libs=
16532 lt_cv_dlopen_self=no
16533 ;;
16534
16535 *)
16536 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16537 if test "x$ac_cv_func_shl_load" = xyes
16538 then :
16539 lt_cv_dlopen=shl_load
16540 else $as_nop
16541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16542 printf %s "checking for shl_load in -ldld... " >&6; }
16543 if test ${ac_cv_lib_dld_shl_load+y}
16544 then :
16545 printf %s "(cached) " >&6
16546 else $as_nop
16547 ac_check_lib_save_LIBS=$LIBS
16548 LIBS="-ldld $LIBS"
16549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550 /* end confdefs.h. */
16551
16552 /* Override any GCC internal prototype to avoid an error.
16553 Use char because int might match the return type of a GCC
16554 builtin and then its argument prototype would still apply. */
16555 char shl_load ();
16556 int
16557 main (void)
16558 {
16559 return shl_load ();
16560 ;
16561 return 0;
16562 }
16563 _ACEOF
16564 if ac_fn_c_try_link "$LINENO"
16565 then :
16566 ac_cv_lib_dld_shl_load=yes
16567 else $as_nop
16568 ac_cv_lib_dld_shl_load=no
16569 fi
16570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16571 conftest$ac_exeext conftest.$ac_ext
16572 LIBS=$ac_check_lib_save_LIBS
16573 fi
16574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16575 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16576 if test "x$ac_cv_lib_dld_shl_load" = xyes
16577 then :
16578 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16579 else $as_nop
16580 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16581 if test "x$ac_cv_func_dlopen" = xyes
16582 then :
16583 lt_cv_dlopen=dlopen
16584 else $as_nop
16585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16586 printf %s "checking for dlopen in -ldl... " >&6; }
16587 if test ${ac_cv_lib_dl_dlopen+y}
16588 then :
16589 printf %s "(cached) " >&6
16590 else $as_nop
16591 ac_check_lib_save_LIBS=$LIBS
16592 LIBS="-ldl $LIBS"
16593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16594 /* end confdefs.h. */
16595
16596 /* Override any GCC internal prototype to avoid an error.
16597 Use char because int might match the return type of a GCC
16598 builtin and then its argument prototype would still apply. */
16599 char dlopen ();
16600 int
16601 main (void)
16602 {
16603 return dlopen ();
16604 ;
16605 return 0;
16606 }
16607 _ACEOF
16608 if ac_fn_c_try_link "$LINENO"
16609 then :
16610 ac_cv_lib_dl_dlopen=yes
16611 else $as_nop
16612 ac_cv_lib_dl_dlopen=no
16613 fi
16614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16615 conftest$ac_exeext conftest.$ac_ext
16616 LIBS=$ac_check_lib_save_LIBS
16617 fi
16618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16619 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16620 if test "x$ac_cv_lib_dl_dlopen" = xyes
16621 then :
16622 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16623 else $as_nop
16624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16625 printf %s "checking for dlopen in -lsvld... " >&6; }
16626 if test ${ac_cv_lib_svld_dlopen+y}
16627 then :
16628 printf %s "(cached) " >&6
16629 else $as_nop
16630 ac_check_lib_save_LIBS=$LIBS
16631 LIBS="-lsvld $LIBS"
16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16634
16635 /* Override any GCC internal prototype to avoid an error.
16636 Use char because int might match the return type of a GCC
16637 builtin and then its argument prototype would still apply. */
16638 char dlopen ();
16639 int
16640 main (void)
16641 {
16642 return dlopen ();
16643 ;
16644 return 0;
16645 }
16646 _ACEOF
16647 if ac_fn_c_try_link "$LINENO"
16648 then :
16649 ac_cv_lib_svld_dlopen=yes
16650 else $as_nop
16651 ac_cv_lib_svld_dlopen=no
16652 fi
16653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16654 conftest$ac_exeext conftest.$ac_ext
16655 LIBS=$ac_check_lib_save_LIBS
16656 fi
16657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16658 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16659 if test "x$ac_cv_lib_svld_dlopen" = xyes
16660 then :
16661 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16662 else $as_nop
16663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16664 printf %s "checking for dld_link in -ldld... " >&6; }
16665 if test ${ac_cv_lib_dld_dld_link+y}
16666 then :
16667 printf %s "(cached) " >&6
16668 else $as_nop
16669 ac_check_lib_save_LIBS=$LIBS
16670 LIBS="-ldld $LIBS"
16671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16672 /* end confdefs.h. */
16673
16674 /* Override any GCC internal prototype to avoid an error.
16675 Use char because int might match the return type of a GCC
16676 builtin and then its argument prototype would still apply. */
16677 char dld_link ();
16678 int
16679 main (void)
16680 {
16681 return dld_link ();
16682 ;
16683 return 0;
16684 }
16685 _ACEOF
16686 if ac_fn_c_try_link "$LINENO"
16687 then :
16688 ac_cv_lib_dld_dld_link=yes
16689 else $as_nop
16690 ac_cv_lib_dld_dld_link=no
16691 fi
16692 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16693 conftest$ac_exeext conftest.$ac_ext
16694 LIBS=$ac_check_lib_save_LIBS
16695 fi
16696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16697 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16698 if test "x$ac_cv_lib_dld_dld_link" = xyes
16699 then :
16700 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16701 fi
16702
16703
16704 fi
16705
16706
16707 fi
16708
16709
16710 fi
16711
16712
16713 fi
16714
16715
16716 fi
16717
16718 ;;
16719 esac
16720
16721 if test no = "$lt_cv_dlopen"; then
16722 enable_dlopen=no
16723 else
16724 enable_dlopen=yes
16725 fi
16726
16727 case $lt_cv_dlopen in
16728 dlopen)
16729 save_CPPFLAGS=$CPPFLAGS
16730 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16731
16732 save_LDFLAGS=$LDFLAGS
16733 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16734
16735 save_LIBS=$LIBS
16736 LIBS="$lt_cv_dlopen_libs $LIBS"
16737
16738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16739 printf %s "checking whether a program can dlopen itself... " >&6; }
16740 if test ${lt_cv_dlopen_self+y}
16741 then :
16742 printf %s "(cached) " >&6
16743 else $as_nop
16744 if test yes = "$cross_compiling"; then :
16745 lt_cv_dlopen_self=cross
16746 else
16747 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16748 lt_status=$lt_dlunknown
16749 cat > conftest.$ac_ext <<_LT_EOF
16750 #line $LINENO "configure"
16751 #include "confdefs.h"
16752
16753 #if HAVE_DLFCN_H
16754 #include <dlfcn.h>
16755 #endif
16756
16757 #include <stdio.h>
16758
16759 #ifdef RTLD_GLOBAL
16760 # define LT_DLGLOBAL RTLD_GLOBAL
16761 #else
16762 # ifdef DL_GLOBAL
16763 # define LT_DLGLOBAL DL_GLOBAL
16764 # else
16765 # define LT_DLGLOBAL 0
16766 # endif
16767 #endif
16768
16769 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16770 find out it does not work in some platform. */
16771 #ifndef LT_DLLAZY_OR_NOW
16772 # ifdef RTLD_LAZY
16773 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16774 # else
16775 # ifdef DL_LAZY
16776 # define LT_DLLAZY_OR_NOW DL_LAZY
16777 # else
16778 # ifdef RTLD_NOW
16779 # define LT_DLLAZY_OR_NOW RTLD_NOW
16780 # else
16781 # ifdef DL_NOW
16782 # define LT_DLLAZY_OR_NOW DL_NOW
16783 # else
16784 # define LT_DLLAZY_OR_NOW 0
16785 # endif
16786 # endif
16787 # endif
16788 # endif
16789 #endif
16790
16791 /* When -fvisibility=hidden is used, assume the code has been annotated
16792 correspondingly for the symbols needed. */
16793 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16794 int fnord () __attribute__((visibility("default")));
16795 #endif
16796
16797 int fnord () { return 42; }
16798 int main ()
16799 {
16800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16801 int status = $lt_dlunknown;
16802
16803 if (self)
16804 {
16805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16806 else
16807 {
16808 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16809 else puts (dlerror ());
16810 }
16811 /* dlclose (self); */
16812 }
16813 else
16814 puts (dlerror ());
16815
16816 return status;
16817 }
16818 _LT_EOF
16819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16820 (eval $ac_link) 2>&5
16821 ac_status=$?
16822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16823 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16824 (./conftest; exit; ) >&5 2>/dev/null
16825 lt_status=$?
16826 case x$lt_status in
16827 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16828 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16829 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16830 esac
16831 else :
16832 # compilation failed
16833 lt_cv_dlopen_self=no
16834 fi
16835 fi
16836 rm -fr conftest*
16837
16838
16839 fi
16840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16841 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16842
16843 if test yes = "$lt_cv_dlopen_self"; then
16844 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16846 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16847 if test ${lt_cv_dlopen_self_static+y}
16848 then :
16849 printf %s "(cached) " >&6
16850 else $as_nop
16851 if test yes = "$cross_compiling"; then :
16852 lt_cv_dlopen_self_static=cross
16853 else
16854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16855 lt_status=$lt_dlunknown
16856 cat > conftest.$ac_ext <<_LT_EOF
16857 #line $LINENO "configure"
16858 #include "confdefs.h"
16859
16860 #if HAVE_DLFCN_H
16861 #include <dlfcn.h>
16862 #endif
16863
16864 #include <stdio.h>
16865
16866 #ifdef RTLD_GLOBAL
16867 # define LT_DLGLOBAL RTLD_GLOBAL
16868 #else
16869 # ifdef DL_GLOBAL
16870 # define LT_DLGLOBAL DL_GLOBAL
16871 # else
16872 # define LT_DLGLOBAL 0
16873 # endif
16874 #endif
16875
16876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16877 find out it does not work in some platform. */
16878 #ifndef LT_DLLAZY_OR_NOW
16879 # ifdef RTLD_LAZY
16880 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16881 # else
16882 # ifdef DL_LAZY
16883 # define LT_DLLAZY_OR_NOW DL_LAZY
16884 # else
16885 # ifdef RTLD_NOW
16886 # define LT_DLLAZY_OR_NOW RTLD_NOW
16887 # else
16888 # ifdef DL_NOW
16889 # define LT_DLLAZY_OR_NOW DL_NOW
16890 # else
16891 # define LT_DLLAZY_OR_NOW 0
16892 # endif
16893 # endif
16894 # endif
16895 # endif
16896 #endif
16897
16898 /* When -fvisibility=hidden is used, assume the code has been annotated
16899 correspondingly for the symbols needed. */
16900 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16901 int fnord () __attribute__((visibility("default")));
16902 #endif
16903
16904 int fnord () { return 42; }
16905 int main ()
16906 {
16907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16908 int status = $lt_dlunknown;
16909
16910 if (self)
16911 {
16912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16913 else
16914 {
16915 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16916 else puts (dlerror ());
16917 }
16918 /* dlclose (self); */
16919 }
16920 else
16921 puts (dlerror ());
16922
16923 return status;
16924 }
16925 _LT_EOF
16926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16927 (eval $ac_link) 2>&5
16928 ac_status=$?
16929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16930 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16931 (./conftest; exit; ) >&5 2>/dev/null
16932 lt_status=$?
16933 case x$lt_status in
16934 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16935 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16936 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16937 esac
16938 else :
16939 # compilation failed
16940 lt_cv_dlopen_self_static=no
16941 fi
16942 fi
16943 rm -fr conftest*
16944
16945
16946 fi
16947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16948 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16949 fi
16950
16951 CPPFLAGS=$save_CPPFLAGS
16952 LDFLAGS=$save_LDFLAGS
16953 LIBS=$save_LIBS
16954 ;;
16955 esac
16956
16957 case $lt_cv_dlopen_self in
16958 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16959 *) enable_dlopen_self=unknown ;;
16960 esac
16961
16962 case $lt_cv_dlopen_self_static in
16963 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16964 *) enable_dlopen_self_static=unknown ;;
16965 esac
16966 fi
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984 striplib=
16985 old_striplib=
16986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16987 printf %s "checking whether stripping libraries is possible... " >&6; }
16988 if test -z "$STRIP"; then
16989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16990 printf "%s\n" "no" >&6; }
16991 else
16992 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16993 old_striplib="$STRIP --strip-debug"
16994 striplib="$STRIP --strip-unneeded"
16995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16996 printf "%s\n" "yes" >&6; }
16997 else
16998 case $host_os in
16999 darwin*)
17000 # FIXME - insert some real tests, host_os isn't really good enough
17001 striplib="$STRIP -x"
17002 old_striplib="$STRIP -S"
17003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17004 printf "%s\n" "yes" >&6; }
17005 ;;
17006 freebsd*)
17007 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
17008 old_striplib="$STRIP --strip-debug"
17009 striplib="$STRIP --strip-unneeded"
17010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17011 printf "%s\n" "yes" >&6; }
17012 else
17013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17014 printf "%s\n" "no" >&6; }
17015 fi
17016 ;;
17017 *)
17018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17019 printf "%s\n" "no" >&6; }
17020 ;;
17021 esac
17022 fi
17023 fi
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036 # Report what library types will actually be built
17037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17038 printf %s "checking if libtool supports shared libraries... " >&6; }
17039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17040 printf "%s\n" "$can_build_shared" >&6; }
17041
17042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17043 printf %s "checking whether to build shared libraries... " >&6; }
17044 test no = "$can_build_shared" && enable_shared=no
17045
17046 # On AIX, shared libraries and static libraries use the same namespace, and
17047 # are all built from PIC.
17048 case $host_os in
17049 aix3*)
17050 test yes = "$enable_shared" && enable_static=no
17051 if test -n "$RANLIB"; then
17052 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17053 postinstall_cmds='$RANLIB $lib'
17054 fi
17055 ;;
17056
17057 aix[4-9]*)
17058 if test ia64 != "$host_cpu"; then
17059 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
17060 yes,aix,yes) ;; # shared object as lib.so file only
17061 yes,svr4,*) ;; # shared object as lib.so archive member only
17062 yes,*) enable_static=no ;; # shared object in lib.a archive as well
17063 esac
17064 fi
17065 ;;
17066 esac
17067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17068 printf "%s\n" "$enable_shared" >&6; }
17069
17070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17071 printf %s "checking whether to build static libraries... " >&6; }
17072 # Make sure either enable_shared or enable_static is yes.
17073 test yes = "$enable_shared" || enable_static=yes
17074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17075 printf "%s\n" "$enable_static" >&6; }
17076
17077
17078
17079
17080 fi
17081 ac_ext=c
17082 ac_cpp='$CPP $CPPFLAGS'
17083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17086
17087 CC=$lt_save_CC
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103 ac_config_commands="$ac_config_commands libtool"
17104
17105
17106
17107
17108 # Only expand once:
17109
17110
17111
17112 pkgextensiondir='${libdir}/gawk'${EXTENSIONDIR}
17113
17114
17115 if test "$GCC" = yes
17116 then
17117 CFLAGS="$CFLAGS -Wall" # Don't add -Wextra, hurts older gcc
17118 fi
17119
17120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special development options" >&5
17121 printf %s "checking for special development options... " >&6; }
17122 if test -f $srcdir/../.developing
17123 then
17124 if test "$GCC" = yes
17125 then
17126 CFLAGS="$CFLAGS -Wall -fno-builtin"
17127 fi
17128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17129 printf "%s\n" "yes" >&6; }
17130 else
17131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17132 printf "%s\n" "no" >&6; }
17133 CFLAGS="$CFLAGS -DNDEBUG" # turn off assertions
17134 fi
17135
17136 ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
17137 if test "x$ac_cv_header_fnmatch_h" = xyes
17138 then :
17139 printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h
17140
17141 fi
17142 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
17143 if test "x$ac_cv_header_limits_h" = xyes
17144 then :
17145 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
17146
17147 fi
17148 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
17149 if test "x$ac_cv_header_sys_mkdev_h" = xyes
17150 then :
17151 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
17152
17153 fi
17154 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
17155 if test "x$ac_cv_header_sys_param_h" = xyes
17156 then :
17157 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
17158
17159 fi
17160 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
17161 if test "x$ac_cv_header_sys_select_h" = xyes
17162 then :
17163 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
17164
17165 fi
17166 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
17167 if test "x$ac_cv_header_sys_statvfs_h" = xyes
17168 then :
17169 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
17170
17171 fi
17172 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
17173 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
17174 then :
17175 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
17176
17177 fi
17178 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
17179 if test "x$ac_cv_header_sys_time_h" = xyes
17180 then :
17181 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
17182
17183 fi
17184
17185
17186 ac_header_dirent=no
17187 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17188 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17190 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
17191 if eval test \${$as_ac_Header+y}
17192 then :
17193 printf %s "(cached) " >&6
17194 else $as_nop
17195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17196 /* end confdefs.h. */
17197 #include <sys/types.h>
17198 #include <$ac_hdr>
17199
17200 int
17201 main (void)
17202 {
17203 if ((DIR *) 0)
17204 return 0;
17205 ;
17206 return 0;
17207 }
17208 _ACEOF
17209 if ac_fn_c_try_compile "$LINENO"
17210 then :
17211 eval "$as_ac_Header=yes"
17212 else $as_nop
17213 eval "$as_ac_Header=no"
17214 fi
17215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17216 fi
17217 eval ac_res=\$$as_ac_Header
17218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17219 printf "%s\n" "$ac_res" >&6; }
17220 if eval test \"x\$"$as_ac_Header"\" = x"yes"
17221 then :
17222 cat >>confdefs.h <<_ACEOF
17223 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
17224 _ACEOF
17225
17226 ac_header_dirent=$ac_hdr; break
17227 fi
17228
17229 done
17230 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17231 if test $ac_header_dirent = dirent.h; then
17232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17233 printf %s "checking for library containing opendir... " >&6; }
17234 if test ${ac_cv_search_opendir+y}
17235 then :
17236 printf %s "(cached) " >&6
17237 else $as_nop
17238 ac_func_search_save_LIBS=$LIBS
17239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17240 /* end confdefs.h. */
17241
17242 /* Override any GCC internal prototype to avoid an error.
17243 Use char because int might match the return type of a GCC
17244 builtin and then its argument prototype would still apply. */
17245 char opendir ();
17246 int
17247 main (void)
17248 {
17249 return opendir ();
17250 ;
17251 return 0;
17252 }
17253 _ACEOF
17254 for ac_lib in '' dir
17255 do
17256 if test -z "$ac_lib"; then
17257 ac_res="none required"
17258 else
17259 ac_res=-l$ac_lib
17260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17261 fi
17262 if ac_fn_c_try_link "$LINENO"
17263 then :
17264 ac_cv_search_opendir=$ac_res
17265 fi
17266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17267 conftest$ac_exeext
17268 if test ${ac_cv_search_opendir+y}
17269 then :
17270 break
17271 fi
17272 done
17273 if test ${ac_cv_search_opendir+y}
17274 then :
17275
17276 else $as_nop
17277 ac_cv_search_opendir=no
17278 fi
17279 rm conftest.$ac_ext
17280 LIBS=$ac_func_search_save_LIBS
17281 fi
17282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17283 printf "%s\n" "$ac_cv_search_opendir" >&6; }
17284 ac_res=$ac_cv_search_opendir
17285 if test "$ac_res" != no
17286 then :
17287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17288
17289 fi
17290
17291 else
17292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17293 printf %s "checking for library containing opendir... " >&6; }
17294 if test ${ac_cv_search_opendir+y}
17295 then :
17296 printf %s "(cached) " >&6
17297 else $as_nop
17298 ac_func_search_save_LIBS=$LIBS
17299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300 /* end confdefs.h. */
17301
17302 /* Override any GCC internal prototype to avoid an error.
17303 Use char because int might match the return type of a GCC
17304 builtin and then its argument prototype would still apply. */
17305 char opendir ();
17306 int
17307 main (void)
17308 {
17309 return opendir ();
17310 ;
17311 return 0;
17312 }
17313 _ACEOF
17314 for ac_lib in '' x
17315 do
17316 if test -z "$ac_lib"; then
17317 ac_res="none required"
17318 else
17319 ac_res=-l$ac_lib
17320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17321 fi
17322 if ac_fn_c_try_link "$LINENO"
17323 then :
17324 ac_cv_search_opendir=$ac_res
17325 fi
17326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17327 conftest$ac_exeext
17328 if test ${ac_cv_search_opendir+y}
17329 then :
17330 break
17331 fi
17332 done
17333 if test ${ac_cv_search_opendir+y}
17334 then :
17335
17336 else $as_nop
17337 ac_cv_search_opendir=no
17338 fi
17339 rm conftest.$ac_ext
17340 LIBS=$ac_func_search_save_LIBS
17341 fi
17342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17343 printf "%s\n" "$ac_cv_search_opendir" >&6; }
17344 ac_res=$ac_cv_search_opendir
17345 if test "$ac_res" != no
17346 then :
17347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17348
17349 fi
17350
17351 fi
17352
17353
17354
17355
17356
17357 case $SKIP_MPFR in
17358 no)
17359
17360 # Check whether --with-mpfr was given.
17361 if test ${with_mpfr+y}
17362 then :
17363 withval=$with_mpfr; _do_mpfr=$withval
17364 else $as_nop
17365 _do_mpfr=yes
17366 fi
17367
17368
17369 if test "$_do_mpfr" != "no" ; then
17370 if test -d "$withval" ; then
17371 CPPFLAGS="${CPPFLAGS} -I$withval/include"
17372 LDFLAGS="${LDFLAGS} -L$withval/lib"
17373 fi
17374
17375 _mpfr_save_libs=$LIBS
17376 _combo="-lmpfr -lgmp"
17377 LIBS="$LIBS $_combo"
17378
17379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mpfr via \"$_combo\" is present and usable" >&5
17380 printf %s "checking whether mpfr via \"$_combo\" is present and usable... " >&6; }
17381
17382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383 /* end confdefs.h. */
17384
17385
17386 #include <stdio.h>
17387 #include <mpfr.h>
17388 #include <gmp.h>
17389
17390 int
17391 main (void)
17392 {
17393
17394 mpfr_t p;
17395 mpz_t z;
17396 mpfr_init(p);
17397 mpz_init(z);
17398 mpfr_printf("%Rf%Zd", p, z);
17399 mpfr_clear(p);
17400 mpz_clear(z);
17401
17402 ;
17403 return 0;
17404 }
17405 _ACEOF
17406 if ac_fn_c_try_link "$LINENO"
17407 then :
17408 _found_mpfr=yes
17409 else $as_nop
17410 _found_mpfr=no
17411 fi
17412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17413 conftest$ac_exeext conftest.$ac_ext
17414
17415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_found_mpfr" >&5
17416 printf "%s\n" "$_found_mpfr" >&6; }
17417
17418 LIBS=$_mpfr_save_libs
17419
17420 if test $_found_mpfr = yes ; then
17421
17422 printf "%s\n" "#define HAVE_MPFR 1" >>confdefs.h
17423
17424 LIBMPFR=$_combo
17425
17426 break
17427 fi
17428
17429 unset _mpfr_save_libs
17430 unset _combo
17431 unset _found_mpfr
17432 fi
17433
17434 ;;
17435 esac
17436
17437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
17438 printf %s "checking for library containing fmod... " >&6; }
17439 if test ${ac_cv_search_fmod+y}
17440 then :
17441 printf %s "(cached) " >&6
17442 else $as_nop
17443 ac_func_search_save_LIBS=$LIBS
17444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445 /* end confdefs.h. */
17446
17447 /* Override any GCC internal prototype to avoid an error.
17448 Use char because int might match the return type of a GCC
17449 builtin and then its argument prototype would still apply. */
17450 char fmod ();
17451 int
17452 main (void)
17453 {
17454 return fmod ();
17455 ;
17456 return 0;
17457 }
17458 _ACEOF
17459 for ac_lib in '' m
17460 do
17461 if test -z "$ac_lib"; then
17462 ac_res="none required"
17463 else
17464 ac_res=-l$ac_lib
17465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17466 fi
17467 if ac_fn_c_try_link "$LINENO"
17468 then :
17469 ac_cv_search_fmod=$ac_res
17470 fi
17471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17472 conftest$ac_exeext
17473 if test ${ac_cv_search_fmod+y}
17474 then :
17475 break
17476 fi
17477 done
17478 if test ${ac_cv_search_fmod+y}
17479 then :
17480
17481 else $as_nop
17482 ac_cv_search_fmod=no
17483 fi
17484 rm conftest.$ac_ext
17485 LIBS=$ac_func_search_save_LIBS
17486 fi
17487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
17488 printf "%s\n" "$ac_cv_search_fmod" >&6; }
17489 ac_res=$ac_cv_search_fmod
17490 if test "$ac_res" != no
17491 then :
17492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17493
17494 fi
17495
17496 ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"
17497 if test "x$ac_cv_func_fdopendir" = xyes
17498 then :
17499 printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h
17500
17501 fi
17502 ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
17503 if test "x$ac_cv_func_fmod" = xyes
17504 then :
17505 printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
17506
17507 fi
17508 ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
17509 if test "x$ac_cv_func_fnmatch" = xyes
17510 then :
17511 printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h
17512
17513 fi
17514 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
17515 if test "x$ac_cv_func_getdtablesize" = xyes
17516 then :
17517 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
17518
17519 fi
17520 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
17521 if test "x$ac_cv_func_clock_gettime" = xyes
17522 then :
17523 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17524
17525 fi
17526 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
17527 if test "x$ac_cv_func_gettimeofday" = xyes
17528 then :
17529 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
17530
17531 fi
17532 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
17533 if test "x$ac_cv_func_nanosleep" = xyes
17534 then :
17535 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
17536
17537 fi
17538 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
17539 if test "x$ac_cv_func_select" = xyes
17540 then :
17541 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
17542
17543 fi
17544 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
17545 if test "x$ac_cv_func_statvfs" = xyes
17546 then :
17547 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
17548
17549 fi
17550 ac_fn_c_check_func "$LINENO" "GetSystemTimeAsFileTime" "ac_cv_func_GetSystemTimeAsFileTime"
17551 if test "x$ac_cv_func_GetSystemTimeAsFileTime" = xyes
17552 then :
17553 printf "%s\n" "#define HAVE_GETSYSTEMTIMEASFILETIME 1" >>confdefs.h
17554
17555 fi
17556 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
17557 if test "x$ac_cv_func_strptime" = xyes
17558 then :
17559 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
17560
17561 fi
17562
17563
17564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
17565 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
17566 if test ${ac_cv_c_undeclared_builtin_options+y}
17567 then :
17568 printf %s "(cached) " >&6
17569 else $as_nop
17570 ac_save_CFLAGS=$CFLAGS
17571 ac_cv_c_undeclared_builtin_options='cannot detect'
17572 for ac_arg in '' -fno-builtin; do
17573 CFLAGS="$ac_save_CFLAGS $ac_arg"
17574 # This test program should *not* compile successfully.
17575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576 /* end confdefs.h. */
17577
17578 int
17579 main (void)
17580 {
17581 (void) strchr;
17582 ;
17583 return 0;
17584 }
17585 _ACEOF
17586 if ac_fn_c_try_compile "$LINENO"
17587 then :
17588
17589 else $as_nop
17590 # This test program should compile successfully.
17591 # No library function is consistently available on
17592 # freestanding implementations, so test against a dummy
17593 # declaration. Include always-available headers on the
17594 # off chance that they somehow elicit warnings.
17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h. */
17597 #include <float.h>
17598 #include <limits.h>
17599 #include <stdarg.h>
17600 #include <stddef.h>
17601 extern void ac_decl (int, char *);
17602
17603 int
17604 main (void)
17605 {
17606 (void) ac_decl (0, (char *) 0);
17607 (void) ac_decl;
17608
17609 ;
17610 return 0;
17611 }
17612 _ACEOF
17613 if ac_fn_c_try_compile "$LINENO"
17614 then :
17615 if test x"$ac_arg" = x
17616 then :
17617 ac_cv_c_undeclared_builtin_options='none needed'
17618 else $as_nop
17619 ac_cv_c_undeclared_builtin_options=$ac_arg
17620 fi
17621 break
17622 fi
17623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17624 fi
17625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17626 done
17627 CFLAGS=$ac_save_CFLAGS
17628
17629 fi
17630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
17631 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
17632 case $ac_cv_c_undeclared_builtin_options in #(
17633 'cannot detect') :
17634 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17635 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17636 as_fn_error $? "cannot make $CC report undeclared builtins
17637 See \`config.log' for more details" "$LINENO" 5; } ;; #(
17638 'none needed') :
17639 ac_c_undeclared_builtin_options='' ;; #(
17640 *) :
17641 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
17642 esac
17643
17644
17645
17646
17647
17648 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
17649 if test "x$ac_cv_func_dirfd" = xyes
17650 then :
17651 printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
17652
17653 fi
17654
17655 ac_fn_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
17656 #include <dirent.h>
17657 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17658 if test "x$ac_cv_have_decl_dirfd" = xyes
17659 then :
17660 ac_have_decl=1
17661 else $as_nop
17662 ac_have_decl=0
17663 fi
17664 printf "%s\n" "#define HAVE_DECL_DIRFD $ac_have_decl" >>confdefs.h
17665
17666 if test $ac_cv_have_decl_dirfd = no; then
17667 HAVE_DECL_DIRFD=0
17668 fi
17669
17670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
17671 printf %s "checking whether dirfd is a macro... " >&6; }
17672 if test ${gl_cv_func_dirfd_macro+y}
17673 then :
17674 printf %s "(cached) " >&6
17675 else $as_nop
17676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17677 /* end confdefs.h. */
17678
17679 #include <sys/types.h>
17680 #include <dirent.h>
17681 #ifdef dirfd
17682 dirent_header_defines_dirfd
17683 #endif
17684 _ACEOF
17685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17686 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1
17687 then :
17688 gl_cv_func_dirfd_macro=yes
17689 else $as_nop
17690 gl_cv_func_dirfd_macro=no
17691 fi
17692 rm -rf conftest*
17693
17694 fi
17695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
17696 printf "%s\n" "$gl_cv_func_dirfd_macro" >&6; }
17697
17698 # Use the replacement only if we have no function or macro with that name.
17699 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
17700 if test $ac_cv_have_decl_dirfd = yes; then
17701 # If the system declares dirfd already, let's declare rpl_dirfd instead.
17702 REPLACE_DIRFD=1
17703 fi
17704 fi
17705
17706
17707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
17708 printf %s "checking how to get the file descriptor associated with an open DIR*... " >&6; }
17709 if test ${gl_cv_sys_dir_fd_member_name+y}
17710 then :
17711 printf %s "(cached) " >&6
17712 else $as_nop
17713
17714 dirfd_save_CFLAGS=$CFLAGS
17715 for ac_expr in d_fd dd_fd; do
17716
17717 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
17718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17719 /* end confdefs.h. */
17720
17721 #include <sys/types.h>
17722 #include <dirent.h>
17723 int
17724 main (void)
17725 {
17726 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
17727 ;
17728 return 0;
17729 }
17730 _ACEOF
17731 if ac_fn_c_try_compile "$LINENO"
17732 then :
17733 dir_fd_found=yes
17734
17735 fi
17736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17737 CFLAGS=$dirfd_save_CFLAGS
17738 test "$dir_fd_found" = yes && break
17739 done
17740 test "$dir_fd_found" = yes || ac_expr=no_such_member
17741
17742 gl_cv_sys_dir_fd_member_name=$ac_expr
17743
17744
17745 fi
17746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
17747 printf "%s\n" "$gl_cv_sys_dir_fd_member_name" >&6; }
17748 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
17749
17750 printf "%s\n" "#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name" >>confdefs.h
17751
17752 fi
17753
17754
17755
17756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17757 printf %s "checking for inline... " >&6; }
17758 if test ${ac_cv_c_inline+y}
17759 then :
17760 printf %s "(cached) " >&6
17761 else $as_nop
17762 ac_cv_c_inline=no
17763 for ac_kw in inline __inline__ __inline; do
17764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765 /* end confdefs.h. */
17766 #ifndef __cplusplus
17767 typedef int foo_t;
17768 static $ac_kw foo_t static_foo (void) {return 0; }
17769 $ac_kw foo_t foo (void) {return 0; }
17770 #endif
17771
17772 _ACEOF
17773 if ac_fn_c_try_compile "$LINENO"
17774 then :
17775 ac_cv_c_inline=$ac_kw
17776 fi
17777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17778 test "$ac_cv_c_inline" != no && break
17779 done
17780
17781 fi
17782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17783 printf "%s\n" "$ac_cv_c_inline" >&6; }
17784
17785 case $ac_cv_c_inline in
17786 inline | yes) ;;
17787 *)
17788 case $ac_cv_c_inline in
17789 no) ac_val=;;
17790 *) ac_val=$ac_cv_c_inline;;
17791 esac
17792 cat >>confdefs.h <<_ACEOF
17793 #ifndef __cplusplus
17794 #define inline $ac_val
17795 #endif
17796 _ACEOF
17797 ;;
17798 esac
17799
17800
17801 ac_config_headers="$ac_config_headers config.h:configh.in"
17802
17803
17804
17805 ac_config_files="$ac_config_files Makefile po/Makefile.in"
17806
17807 cat >confcache <<\_ACEOF
17808 # This file is a shell script that caches the results of configure
17809 # tests run on this system so they can be shared between configure
17810 # scripts and configure runs, see configure's option --config-cache.
17811 # It is not useful on other systems. If it contains results you don't
17812 # want to keep, you may remove or edit it.
17813 #
17814 # config.status only pays attention to the cache file if you give it
17815 # the --recheck option to rerun configure.
17816 #
17817 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17818 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17819 # following values.
17820
17821 _ACEOF
17822
17823 # The following way of writing the cache mishandles newlines in values,
17824 # but we know of no workaround that is simple, portable, and efficient.
17825 # So, we kill variables containing newlines.
17826 # Ultrix sh set writes to stderr and can't be redirected directly,
17827 # and sets the high bit in the cache file unless we assign to the vars.
17828 (
17829 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17830 eval ac_val=\$$ac_var
17831 case $ac_val in #(
17832 *${as_nl}*)
17833 case $ac_var in #(
17834 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17835 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17836 esac
17837 case $ac_var in #(
17838 _ | IFS | as_nl) ;; #(
17839 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17840 *) { eval $ac_var=; unset $ac_var;} ;;
17841 esac ;;
17842 esac
17843 done
17844
17845 (set) 2>&1 |
17846 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17847 *${as_nl}ac_space=\ *)
17848 # `set' does not quote correctly, so add quotes: double-quote
17849 # substitution turns \\\\ into \\, and sed turns \\ into \.
17850 sed -n \
17851 "s/'/'\\\\''/g;
17852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17853 ;; #(
17854 *)
17855 # `set' quotes correctly as required by POSIX, so do not add quotes.
17856 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17857 ;;
17858 esac |
17859 sort
17860 ) |
17861 sed '
17862 /^ac_cv_env_/b end
17863 t clear
17864 :clear
17865 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17866 t end
17867 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17868 :end' >>confcache
17869 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17870 if test -w "$cache_file"; then
17871 if test "x$cache_file" != "x/dev/null"; then
17872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17873 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17874 if test ! -f "$cache_file" || test -h "$cache_file"; then
17875 cat confcache >"$cache_file"
17876 else
17877 case $cache_file in #(
17878 */* | ?:*)
17879 mv -f confcache "$cache_file"$$ &&
17880 mv -f "$cache_file"$$ "$cache_file" ;; #(
17881 *)
17882 mv -f confcache "$cache_file" ;;
17883 esac
17884 fi
17885 fi
17886 else
17887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17888 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17889 fi
17890 fi
17891 rm -f confcache
17892
17893 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17894 # Let make expand exec_prefix.
17895 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17896
17897 DEFS=-DHAVE_CONFIG_H
17898
17899 ac_libobjs=
17900 ac_ltlibobjs=
17901 U=
17902 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17903 # 1. Remove the extension, and $U if already installed.
17904 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17905 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17906 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17907 # will be set to the directory where LIBOBJS objects are built.
17908 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17909 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17910 done
17911 LIBOBJS=$ac_libobjs
17912
17913 LTLIBOBJS=$ac_ltlibobjs
17914
17915
17916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17917 printf %s "checking that generated files are newer than configure... " >&6; }
17918 if test -n "$am_sleep_pid"; then
17919 # Hide warnings about reused PIDs.
17920 wait $am_sleep_pid 2>/dev/null
17921 fi
17922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17923 printf "%s\n" "done" >&6; }
17924 if test -n "$EXEEXT"; then
17925 am__EXEEXT_TRUE=
17926 am__EXEEXT_FALSE='#'
17927 else
17928 am__EXEEXT_TRUE='#'
17929 am__EXEEXT_FALSE=
17930 fi
17931
17932 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17933 as_fn_error $? "conditional \"AMDEP\" was never defined.
17934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17935 fi
17936 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17937 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17939 fi
17940 if test -z "${USE_PERSISTENT_MALLOC_TRUE}" && test -z "${USE_PERSISTENT_MALLOC_FALSE}"; then
17941 as_fn_error $? "conditional \"USE_PERSISTENT_MALLOC\" was never defined.
17942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17943 fi
17944 if test -z "${HAVE_ADDR_NO_RANDOMIZE_TRUE}" && test -z "${HAVE_ADDR_NO_RANDOMIZE_FALSE}"; then
17945 as_fn_error $? "conditional \"HAVE_ADDR_NO_RANDOMIZE\" was never defined.
17946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17947 fi
17948
17949 : "${CONFIG_STATUS=./config.status}"
17950 ac_write_fail=0
17951 ac_clean_files_save=$ac_clean_files
17952 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17954 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17955 as_write_fail=0
17956 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17957 #! $SHELL
17958 # Generated by $as_me.
17959 # Run this file to recreate the current configuration.
17960 # Compiler output produced by configure, useful for debugging
17961 # configure, is in config.log if it exists.
17962
17963 debug=false
17964 ac_cs_recheck=false
17965 ac_cs_silent=false
17966
17967 SHELL=\${CONFIG_SHELL-$SHELL}
17968 export SHELL
17969 _ASEOF
17970 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17971 ## -------------------- ##
17972 ## M4sh Initialization. ##
17973 ## -------------------- ##
17974
17975 # Be more Bourne compatible
17976 DUALCASE=1; export DUALCASE # for MKS sh
17977 as_nop=:
17978 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17979 then :
17980 emulate sh
17981 NULLCMD=:
17982 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17983 # is contrary to our usage. Disable this feature.
17984 alias -g '${1+"$@"}'='"$@"'
17985 setopt NO_GLOB_SUBST
17986 else $as_nop
17987 case `(set -o) 2>/dev/null` in #(
17988 *posix*) :
17989 set -o posix ;; #(
17990 *) :
17991 ;;
17992 esac
17993 fi
17994
17995
17996
17997 # Reset variables that may have inherited troublesome values from
17998 # the environment.
17999
18000 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18001 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18002 # side effect of setting IFS to empty, thus disabling word splitting.)
18003 # Quoting is to prevent editors from complaining about space-tab.
18004 as_nl='
18005 '
18006 export as_nl
18007 IFS=" "" $as_nl"
18008
18009 PS1='$ '
18010 PS2='> '
18011 PS4='+ '
18012
18013 # Ensure predictable behavior from utilities with locale-dependent output.
18014 LC_ALL=C
18015 export LC_ALL
18016 LANGUAGE=C
18017 export LANGUAGE
18018
18019 # We cannot yet rely on "unset" to work, but we need these variables
18020 # to be unset--not just set to an empty or harmless value--now, to
18021 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
18022 # also avoids known problems related to "unset" and subshell syntax
18023 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
18024 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
18025 do eval test \${$as_var+y} \
18026 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18027 done
18028
18029 # Ensure that fds 0, 1, and 2 are open.
18030 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
18031 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
18032 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
18033
18034 # The user is always right.
18035 if ${PATH_SEPARATOR+false} :; then
18036 PATH_SEPARATOR=:
18037 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18038 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18039 PATH_SEPARATOR=';'
18040 }
18041 fi
18042
18043
18044 # Find who we are. Look in the path if we contain no directory separator.
18045 as_myself=
18046 case $0 in #((
18047 *[\\/]* ) as_myself=$0 ;;
18048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18049 for as_dir in $PATH
18050 do
18051 IFS=$as_save_IFS
18052 case $as_dir in #(((
18053 '') as_dir=./ ;;
18054 */) ;;
18055 *) as_dir=$as_dir/ ;;
18056 esac
18057 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
18058 done
18059 IFS=$as_save_IFS
18060
18061 ;;
18062 esac
18063 # We did not find ourselves, most probably we were run as `sh COMMAND'
18064 # in which case we are not to be found in the path.
18065 if test "x$as_myself" = x; then
18066 as_myself=$0
18067 fi
18068 if test ! -f "$as_myself"; then
18069 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18070 exit 1
18071 fi
18072
18073
18074
18075 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18076 # ----------------------------------------
18077 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18078 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18079 # script with STATUS, using 1 if that was 0.
18080 as_fn_error ()
18081 {
18082 as_status=$1; test $as_status -eq 0 && as_status=1
18083 if test "$4"; then
18084 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18086 fi
18087 printf "%s\n" "$as_me: error: $2" >&2
18088 as_fn_exit $as_status
18089 } # as_fn_error
18090
18091
18092
18093 # as_fn_set_status STATUS
18094 # -----------------------
18095 # Set $? to STATUS, without forking.
18096 as_fn_set_status ()
18097 {
18098 return $1
18099 } # as_fn_set_status
18100
18101 # as_fn_exit STATUS
18102 # -----------------
18103 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18104 as_fn_exit ()
18105 {
18106 set +e
18107 as_fn_set_status $1
18108 exit $1
18109 } # as_fn_exit
18110
18111 # as_fn_unset VAR
18112 # ---------------
18113 # Portably unset VAR.
18114 as_fn_unset ()
18115 {
18116 { eval $1=; unset $1;}
18117 }
18118 as_unset=as_fn_unset
18119
18120 # as_fn_append VAR VALUE
18121 # ----------------------
18122 # Append the text in VALUE to the end of the definition contained in VAR. Take
18123 # advantage of any shell optimizations that allow amortized linear growth over
18124 # repeated appends, instead of the typical quadratic growth present in naive
18125 # implementations.
18126 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18127 then :
18128 eval 'as_fn_append ()
18129 {
18130 eval $1+=\$2
18131 }'
18132 else $as_nop
18133 as_fn_append ()
18134 {
18135 eval $1=\$$1\$2
18136 }
18137 fi # as_fn_append
18138
18139 # as_fn_arith ARG...
18140 # ------------------
18141 # Perform arithmetic evaluation on the ARGs, and store the result in the
18142 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18143 # must be portable across $(()) and expr.
18144 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18145 then :
18146 eval 'as_fn_arith ()
18147 {
18148 as_val=$(( $* ))
18149 }'
18150 else $as_nop
18151 as_fn_arith ()
18152 {
18153 as_val=`expr "$@" || test $? -eq 1`
18154 }
18155 fi # as_fn_arith
18156
18157
18158 if expr a : '\(a\)' >/dev/null 2>&1 &&
18159 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18160 as_expr=expr
18161 else
18162 as_expr=false
18163 fi
18164
18165 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18166 as_basename=basename
18167 else
18168 as_basename=false
18169 fi
18170
18171 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18172 as_dirname=dirname
18173 else
18174 as_dirname=false
18175 fi
18176
18177 as_me=`$as_basename -- "$0" ||
18178 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18179 X"$0" : 'X\(//\)$' \| \
18180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18181 printf "%s\n" X/"$0" |
18182 sed '/^.*\/\([^/][^/]*\)\/*$/{
18183 s//\1/
18184 q
18185 }
18186 /^X\/\(\/\/\)$/{
18187 s//\1/
18188 q
18189 }
18190 /^X\/\(\/\).*/{
18191 s//\1/
18192 q
18193 }
18194 s/.*/./; q'`
18195
18196 # Avoid depending upon Character Ranges.
18197 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18198 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18199 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18200 as_cr_digits='0123456789'
18201 as_cr_alnum=$as_cr_Letters$as_cr_digits
18202
18203
18204 # Determine whether it's possible to make 'echo' print without a newline.
18205 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18206 # for compatibility with existing Makefiles.
18207 ECHO_C= ECHO_N= ECHO_T=
18208 case `echo -n x` in #(((((
18209 -n*)
18210 case `echo 'xy\c'` in
18211 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18212 xy) ECHO_C='\c';;
18213 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18214 ECHO_T=' ';;
18215 esac;;
18216 *)
18217 ECHO_N='-n';;
18218 esac
18219
18220 # For backward compatibility with old third-party macros, we provide
18221 # the shell variables $as_echo and $as_echo_n. New code should use
18222 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18223 as_echo='printf %s\n'
18224 as_echo_n='printf %s'
18225
18226 rm -f conf$$ conf$$.exe conf$$.file
18227 if test -d conf$$.dir; then
18228 rm -f conf$$.dir/conf$$.file
18229 else
18230 rm -f conf$$.dir
18231 mkdir conf$$.dir 2>/dev/null
18232 fi
18233 if (echo >conf$$.file) 2>/dev/null; then
18234 if ln -s conf$$.file conf$$ 2>/dev/null; then
18235 as_ln_s='ln -s'
18236 # ... but there are two gotchas:
18237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18239 # In both cases, we have to default to `cp -pR'.
18240 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18241 as_ln_s='cp -pR'
18242 elif ln conf$$.file conf$$ 2>/dev/null; then
18243 as_ln_s=ln
18244 else
18245 as_ln_s='cp -pR'
18246 fi
18247 else
18248 as_ln_s='cp -pR'
18249 fi
18250 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18251 rmdir conf$$.dir 2>/dev/null
18252
18253
18254 # as_fn_mkdir_p
18255 # -------------
18256 # Create "$as_dir" as a directory, including parents if necessary.
18257 as_fn_mkdir_p ()
18258 {
18259
18260 case $as_dir in #(
18261 -*) as_dir=./$as_dir;;
18262 esac
18263 test -d "$as_dir" || eval $as_mkdir_p || {
18264 as_dirs=
18265 while :; do
18266 case $as_dir in #(
18267 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18268 *) as_qdir=$as_dir;;
18269 esac
18270 as_dirs="'$as_qdir' $as_dirs"
18271 as_dir=`$as_dirname -- "$as_dir" ||
18272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18273 X"$as_dir" : 'X\(//\)[^/]' \| \
18274 X"$as_dir" : 'X\(//\)$' \| \
18275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18276 printf "%s\n" X"$as_dir" |
18277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18278 s//\1/
18279 q
18280 }
18281 /^X\(\/\/\)[^/].*/{
18282 s//\1/
18283 q
18284 }
18285 /^X\(\/\/\)$/{
18286 s//\1/
18287 q
18288 }
18289 /^X\(\/\).*/{
18290 s//\1/
18291 q
18292 }
18293 s/.*/./; q'`
18294 test -d "$as_dir" && break
18295 done
18296 test -z "$as_dirs" || eval "mkdir $as_dirs"
18297 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18298
18299
18300 } # as_fn_mkdir_p
18301 if mkdir -p . 2>/dev/null; then
18302 as_mkdir_p='mkdir -p "$as_dir"'
18303 else
18304 test -d ./-p && rmdir ./-p
18305 as_mkdir_p=false
18306 fi
18307
18308
18309 # as_fn_executable_p FILE
18310 # -----------------------
18311 # Test if FILE is an executable regular file.
18312 as_fn_executable_p ()
18313 {
18314 test -f "$1" && test -x "$1"
18315 } # as_fn_executable_p
18316 as_test_x='test -x'
18317 as_executable_p=as_fn_executable_p
18318
18319 # Sed expression to map a string onto a valid CPP name.
18320 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18321
18322 # Sed expression to map a string onto a valid variable name.
18323 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18324
18325
18326 exec 6>&1
18327 ## ----------------------------------- ##
18328 ## Main body of $CONFIG_STATUS script. ##
18329 ## ----------------------------------- ##
18330 _ASEOF
18331 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18332
18333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18334 # Save the log message, to keep $0 and so on meaningful, and to
18335 # report actual input values of CONFIG_FILES etc. instead of their
18336 # values after options handling.
18337 ac_log="
18338 This file was extended by GNU Awk Bundled Extensions $as_me 5.3.2, which was
18339 generated by GNU Autoconf 2.71. Invocation command line was
18340
18341 CONFIG_FILES = $CONFIG_FILES
18342 CONFIG_HEADERS = $CONFIG_HEADERS
18343 CONFIG_LINKS = $CONFIG_LINKS
18344 CONFIG_COMMANDS = $CONFIG_COMMANDS
18345 $ $0 $@
18346
18347 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18348 "
18349
18350 _ACEOF
18351
18352 case $ac_config_files in *"
18353 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18354 esac
18355
18356 case $ac_config_headers in *"
18357 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18358 esac
18359
18360
18361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18362 # Files that config.status was made for.
18363 config_files="$ac_config_files"
18364 config_headers="$ac_config_headers"
18365 config_commands="$ac_config_commands"
18366
18367 _ACEOF
18368
18369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18370 ac_cs_usage="\
18371 \`$as_me' instantiates files and other configuration actions
18372 from templates according to the current configuration. Unless the files
18373 and actions are specified as TAGs, all are instantiated by default.
18374
18375 Usage: $0 [OPTION]... [TAG]...
18376
18377 -h, --help print this help, then exit
18378 -V, --version print version number and configuration settings, then exit
18379 --config print configuration, then exit
18380 -q, --quiet, --silent
18381 do not print progress messages
18382 -d, --debug don't remove temporary files
18383 --recheck update $as_me by reconfiguring in the same conditions
18384 --file=FILE[:TEMPLATE]
18385 instantiate the configuration file FILE
18386 --header=FILE[:TEMPLATE]
18387 instantiate the configuration header FILE
18388
18389 Configuration files:
18390 $config_files
18391
18392 Configuration headers:
18393 $config_headers
18394
18395 Configuration commands:
18396 $config_commands
18397
18398 Report bugs to <[email protected]>.
18399 GNU Awk Bundled Extensions home page: <https://www.gnu.org/software/gawk-extensions/>.
18400 General help using GNU software: <https://www.gnu.org/gethelp/>."
18401
18402 _ACEOF
18403 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18404 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18406 ac_cs_config='$ac_cs_config_escaped'
18407 ac_cs_version="\\
18408 GNU Awk Bundled Extensions config.status 5.3.2
18409 configured by $0, generated by GNU Autoconf 2.71,
18410 with options \\"\$ac_cs_config\\"
18411
18412 Copyright (C) 2021 Free Software Foundation, Inc.
18413 This config.status script is free software; the Free Software Foundation
18414 gives unlimited permission to copy, distribute and modify it."
18415
18416 ac_pwd='$ac_pwd'
18417 srcdir='$srcdir'
18418 INSTALL='$INSTALL'
18419 MKDIR_P='$MKDIR_P'
18420 AWK='$AWK'
18421 test -n "\$AWK" || AWK=awk
18422 _ACEOF
18423
18424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18425 # The default lists apply if the user does not specify any file.
18426 ac_need_defaults=:
18427 while test $# != 0
18428 do
18429 case $1 in
18430 --*=?*)
18431 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18432 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18433 ac_shift=:
18434 ;;
18435 --*=)
18436 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18437 ac_optarg=
18438 ac_shift=:
18439 ;;
18440 *)
18441 ac_option=$1
18442 ac_optarg=$2
18443 ac_shift=shift
18444 ;;
18445 esac
18446
18447 case $ac_option in
18448 # Handling of the options.
18449 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18450 ac_cs_recheck=: ;;
18451 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18452 printf "%s\n" "$ac_cs_version"; exit ;;
18453 --config | --confi | --conf | --con | --co | --c )
18454 printf "%s\n" "$ac_cs_config"; exit ;;
18455 --debug | --debu | --deb | --de | --d | -d )
18456 debug=: ;;
18457 --file | --fil | --fi | --f )
18458 $ac_shift
18459 case $ac_optarg in
18460 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18461 '') as_fn_error $? "missing file argument" ;;
18462 esac
18463 as_fn_append CONFIG_FILES " '$ac_optarg'"
18464 ac_need_defaults=false;;
18465 --header | --heade | --head | --hea )
18466 $ac_shift
18467 case $ac_optarg in
18468 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18469 esac
18470 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18471 ac_need_defaults=false;;
18472 --he | --h)
18473 # Conflict between --help and --header
18474 as_fn_error $? "ambiguous option: \`$1'
18475 Try \`$0 --help' for more information.";;
18476 --help | --hel | -h )
18477 printf "%s\n" "$ac_cs_usage"; exit ;;
18478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18479 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18480 ac_cs_silent=: ;;
18481
18482 # This is an error.
18483 -*) as_fn_error $? "unrecognized option: \`$1'
18484 Try \`$0 --help' for more information." ;;
18485
18486 *) as_fn_append ac_config_targets " $1"
18487 ac_need_defaults=false ;;
18488
18489 esac
18490 shift
18491 done
18492
18493 ac_configure_extra_args=
18494
18495 if $ac_cs_silent; then
18496 exec 6>/dev/null
18497 ac_configure_extra_args="$ac_configure_extra_args --silent"
18498 fi
18499
18500 _ACEOF
18501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18502 if \$ac_cs_recheck; then
18503 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18504 shift
18505 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18506 CONFIG_SHELL='$SHELL'
18507 export CONFIG_SHELL
18508 exec "\$@"
18509 fi
18510
18511 _ACEOF
18512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18513 exec 5>>config.log
18514 {
18515 echo
18516 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18517 ## Running $as_me. ##
18518 _ASBOX
18519 printf "%s\n" "$ac_log"
18520 } >&5
18521
18522 _ACEOF
18523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18524 #
18525 # INIT-COMMANDS
18526 #
18527 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18528 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18529 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
18530 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
18531 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18532 LINGUAS="${LINGUAS-%UNSET%}"
18533
18534
18535
18536 # The HP-UX ksh and POSIX shell print the target directory to stdout
18537 # if CDPATH is set.
18538 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18539
18540 sed_quote_subst='$sed_quote_subst'
18541 double_quote_subst='$double_quote_subst'
18542 delay_variable_subst='$delay_variable_subst'
18543 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18544 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18545 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18546 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18547 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18548 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18549 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18550 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18551 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18552 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18553 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18554 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18555 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18556 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18557 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18558 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18559 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18560 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18561 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18562 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18563 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18564 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18565 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18566 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18567 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18568 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18569 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18570 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18571 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18572 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18573 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18574 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18575 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18576 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18577 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18578 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18579 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18580 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18581 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18582 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18583 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18584 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18585 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18586 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18587 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18588 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18589 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18590 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18591 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18592 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18593 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18594 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18595 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18596 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18597 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18598 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18599 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18600 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18601 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18602 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18603 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18604 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"`'
18605 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18606 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18607 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18608 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18609 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18610 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18611 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18612 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18613 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18614 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18615 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18616 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18617 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18618 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18619 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18620 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18621 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18622 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18623 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18624 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18625 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18626 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18627 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18628 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18629 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18630 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18631 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18632 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18633 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18634 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18635 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18636 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18637 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18638 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18639 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18640 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18641 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18642 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18643 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18644 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18645 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18646 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18647 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18648 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18649 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18650 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18651 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18652 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18653 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18654 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18655 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18656 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18657 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18658 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18659 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18660 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18661 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18662 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18663 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18664 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18665 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18666 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18667 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18668 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18669 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18670 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18671 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18672 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18673 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18674 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18675 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18676 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18677 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18678 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18679 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18680 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18681
18682 LTCC='$LTCC'
18683 LTCFLAGS='$LTCFLAGS'
18684 compiler='$compiler_DEFAULT'
18685
18686 # A function that is used when there is no print builtin or printf.
18687 func_fallback_echo ()
18688 {
18689 eval 'cat <<_LTECHO_EOF
18690 \$1
18691 _LTECHO_EOF'
18692 }
18693
18694 # Quote evaled strings.
18695 for var in AS \
18696 DLLTOOL \
18697 OBJDUMP \
18698 SHELL \
18699 ECHO \
18700 PATH_SEPARATOR \
18701 SED \
18702 GREP \
18703 EGREP \
18704 FGREP \
18705 LD \
18706 NM \
18707 LN_S \
18708 lt_SP2NL \
18709 lt_NL2SP \
18710 reload_flag \
18711 FILECMD \
18712 deplibs_check_method \
18713 file_magic_cmd \
18714 file_magic_glob \
18715 want_nocaseglob \
18716 sharedlib_from_linklib_cmd \
18717 AR \
18718 archiver_list_spec \
18719 STRIP \
18720 RANLIB \
18721 CC \
18722 CFLAGS \
18723 compiler \
18724 lt_cv_sys_global_symbol_pipe \
18725 lt_cv_sys_global_symbol_to_cdecl \
18726 lt_cv_sys_global_symbol_to_import \
18727 lt_cv_sys_global_symbol_to_c_name_address \
18728 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18729 lt_cv_nm_interface \
18730 nm_file_list_spec \
18731 lt_cv_truncate_bin \
18732 lt_prog_compiler_no_builtin_flag \
18733 lt_prog_compiler_pic \
18734 lt_prog_compiler_wl \
18735 lt_prog_compiler_static \
18736 lt_cv_prog_compiler_c_o \
18737 need_locks \
18738 MANIFEST_TOOL \
18739 DSYMUTIL \
18740 NMEDIT \
18741 LIPO \
18742 OTOOL \
18743 OTOOL64 \
18744 shrext_cmds \
18745 export_dynamic_flag_spec \
18746 whole_archive_flag_spec \
18747 compiler_needs_object \
18748 with_gnu_ld \
18749 allow_undefined_flag \
18750 no_undefined_flag \
18751 hardcode_libdir_flag_spec \
18752 hardcode_libdir_separator \
18753 exclude_expsyms \
18754 include_expsyms \
18755 file_list_spec \
18756 variables_saved_for_relink \
18757 libname_spec \
18758 library_names_spec \
18759 soname_spec \
18760 install_override_mode \
18761 finish_eval \
18762 old_striplib \
18763 striplib; do
18764 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18765 *[\\\\\\\`\\"\\\$]*)
18766 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18767 ;;
18768 *)
18769 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18770 ;;
18771 esac
18772 done
18773
18774 # Double-quote double-evaled strings.
18775 for var in reload_cmds \
18776 old_postinstall_cmds \
18777 old_postuninstall_cmds \
18778 old_archive_cmds \
18779 extract_expsyms_cmds \
18780 old_archive_from_new_cmds \
18781 old_archive_from_expsyms_cmds \
18782 archive_cmds \
18783 archive_expsym_cmds \
18784 module_cmds \
18785 module_expsym_cmds \
18786 export_symbols_cmds \
18787 prelink_cmds \
18788 postlink_cmds \
18789 postinstall_cmds \
18790 postuninstall_cmds \
18791 finish_cmds \
18792 sys_lib_search_path_spec \
18793 configure_time_dlsearch_path \
18794 configure_time_lt_sys_library_path; do
18795 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18796 *[\\\\\\\`\\"\\\$]*)
18797 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18798 ;;
18799 *)
18800 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18801 ;;
18802 esac
18803 done
18804
18805 ac_aux_dir='$ac_aux_dir'
18806
18807 # See if we are running on zsh, and set the options that allow our
18808 # commands through without removal of \ escapes INIT.
18809 if test -n "\${ZSH_VERSION+set}"; then
18810 setopt NO_GLOB_SUBST
18811 fi
18812
18813
18814 PACKAGE='$PACKAGE'
18815 VERSION='$VERSION'
18816 RM='$RM'
18817 ofile='$ofile'
18818
18819
18820
18821
18822 _ACEOF
18823
18824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18825
18826 # Handling of arguments.
18827 for ac_config_target in $ac_config_targets
18828 do
18829 case $ac_config_target in
18830 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18831 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18832 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18833 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:configh.in" ;;
18834 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18835 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18836
18837 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18838 esac
18839 done
18840
18841
18842 # If the user did not use the arguments to specify the items to instantiate,
18843 # then the envvar interface is used. Set only those that are not.
18844 # We use the long form for the default assignment because of an extremely
18845 # bizarre bug on SunOS 4.1.3.
18846 if $ac_need_defaults; then
18847 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18848 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18849 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18850 fi
18851
18852 # Have a temporary directory for convenience. Make it in the build tree
18853 # simply because there is no reason against having it here, and in addition,
18854 # creating and moving files from /tmp can sometimes cause problems.
18855 # Hook for its removal unless debugging.
18856 # Note that there is a small window in which the directory will not be cleaned:
18857 # after its creation but before its name has been assigned to `$tmp'.
18858 $debug ||
18859 {
18860 tmp= ac_tmp=
18861 trap 'exit_status=$?
18862 : "${ac_tmp:=$tmp}"
18863 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18864 ' 0
18865 trap 'as_fn_exit 1' 1 2 13 15
18866 }
18867 # Create a (secure) tmp directory for tmp files.
18868
18869 {
18870 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18871 test -d "$tmp"
18872 } ||
18873 {
18874 tmp=./conf$$-$RANDOM
18875 (umask 077 && mkdir "$tmp")
18876 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18877 ac_tmp=$tmp
18878
18879 # Set up the scripts for CONFIG_FILES section.
18880 # No need to generate them if there are no CONFIG_FILES.
18881 # This happens for instance with `./config.status config.h'.
18882 if test -n "$CONFIG_FILES"; then
18883
18884
18885 ac_cr=`echo X | tr X '\015'`
18886 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18887 # But we know of no other shell where ac_cr would be empty at this
18888 # point, so we can use a bashism as a fallback.
18889 if test "x$ac_cr" = x; then
18890 eval ac_cr=\$\'\\r\'
18891 fi
18892 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18893 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18894 ac_cs_awk_cr='\\r'
18895 else
18896 ac_cs_awk_cr=$ac_cr
18897 fi
18898
18899 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18900 _ACEOF
18901
18902
18903 {
18904 echo "cat >conf$$subs.awk <<_ACEOF" &&
18905 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18906 echo "_ACEOF"
18907 } >conf$$subs.sh ||
18908 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18909 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18910 ac_delim='%!_!# '
18911 for ac_last_try in false false false false false :; do
18912 . ./conf$$subs.sh ||
18913 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18914
18915 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18916 if test $ac_delim_n = $ac_delim_num; then
18917 break
18918 elif $ac_last_try; then
18919 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18920 else
18921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18922 fi
18923 done
18924 rm -f conf$$subs.sh
18925
18926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18927 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18928 _ACEOF
18929 sed -n '
18930 h
18931 s/^/S["/; s/!.*/"]=/
18932 p
18933 g
18934 s/^[^!]*!//
18935 :repl
18936 t repl
18937 s/'"$ac_delim"'$//
18938 t delim
18939 :nl
18940 h
18941 s/\(.\{148\}\)..*/\1/
18942 t more1
18943 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18944 p
18945 n
18946 b repl
18947 :more1
18948 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18949 p
18950 g
18951 s/.\{148\}//
18952 t nl
18953 :delim
18954 h
18955 s/\(.\{148\}\)..*/\1/
18956 t more2
18957 s/["\\]/\\&/g; s/^/"/; s/$/"/
18958 p
18959 b
18960 :more2
18961 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18962 p
18963 g
18964 s/.\{148\}//
18965 t delim
18966 ' <conf$$subs.awk | sed '
18967 /^[^""]/{
18968 N
18969 s/\n//
18970 }
18971 ' >>$CONFIG_STATUS || ac_write_fail=1
18972 rm -f conf$$subs.awk
18973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18974 _ACAWK
18975 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18976 for (key in S) S_is_set[key] = 1
18977 FS = ""
18978
18979 }
18980 {
18981 line = $ 0
18982 nfields = split(line, field, "@")
18983 substed = 0
18984 len = length(field[1])
18985 for (i = 2; i < nfields; i++) {
18986 key = field[i]
18987 keylen = length(key)
18988 if (S_is_set[key]) {
18989 value = S[key]
18990 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18991 len += length(value) + length(field[++i])
18992 substed = 1
18993 } else
18994 len += 1 + keylen
18995 }
18996
18997 print line
18998 }
18999
19000 _ACAWK
19001 _ACEOF
19002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19003 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19004 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19005 else
19006 cat
19007 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19008 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19009 _ACEOF
19010
19011 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19012 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19013 # trailing colons and then remove the whole line if VPATH becomes empty
19014 # (actually we leave an empty line to preserve line numbers).
19015 if test "x$srcdir" = x.; then
19016 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19017 h
19018 s///
19019 s/^/:/
19020 s/[ ]*$/:/
19021 s/:\$(srcdir):/:/g
19022 s/:\${srcdir}:/:/g
19023 s/:@srcdir@:/:/g
19024 s/^:*//
19025 s/:*$//
19026 x
19027 s/\(=[ ]*\).*/\1/
19028 G
19029 s/\n//
19030 s/^[^=]*=[ ]*$//
19031 }'
19032 fi
19033
19034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19035 fi # test -n "$CONFIG_FILES"
19036
19037 # Set up the scripts for CONFIG_HEADERS section.
19038 # No need to generate them if there are no CONFIG_HEADERS.
19039 # This happens for instance with `./config.status Makefile'.
19040 if test -n "$CONFIG_HEADERS"; then
19041 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19042 BEGIN {
19043 _ACEOF
19044
19045 # Transform confdefs.h into an awk script `defines.awk', embedded as
19046 # here-document in config.status, that substitutes the proper values into
19047 # config.h.in to produce config.h.
19048
19049 # Create a delimiter string that does not exist in confdefs.h, to ease
19050 # handling of long lines.
19051 ac_delim='%!_!# '
19052 for ac_last_try in false false :; do
19053 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19054 if test -z "$ac_tt"; then
19055 break
19056 elif $ac_last_try; then
19057 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19058 else
19059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19060 fi
19061 done
19062
19063 # For the awk script, D is an array of macro values keyed by name,
19064 # likewise P contains macro parameters if any. Preserve backslash
19065 # newline sequences.
19066
19067 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19068 sed -n '
19069 s/.\{148\}/&'"$ac_delim"'/g
19070 t rset
19071 :rset
19072 s/^[ ]*#[ ]*define[ ][ ]*/ /
19073 t def
19074 d
19075 :def
19076 s/\\$//
19077 t bsnl
19078 s/["\\]/\\&/g
19079 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19080 D["\1"]=" \3"/p
19081 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19082 d
19083 :bsnl
19084 s/["\\]/\\&/g
19085 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19086 D["\1"]=" \3\\\\\\n"\\/p
19087 t cont
19088 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19089 t cont
19090 d
19091 :cont
19092 n
19093 s/.\{148\}/&'"$ac_delim"'/g
19094 t clear
19095 :clear
19096 s/\\$//
19097 t bsnlc
19098 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19099 d
19100 :bsnlc
19101 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19102 b cont
19103 ' <confdefs.h | sed '
19104 s/'"$ac_delim"'/"\\\
19105 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19106
19107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19108 for (key in D) D_is_set[key] = 1
19109 FS = ""
19110 }
19111 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19112 line = \$ 0
19113 split(line, arg, " ")
19114 if (arg[1] == "#") {
19115 defundef = arg[2]
19116 mac1 = arg[3]
19117 } else {
19118 defundef = substr(arg[1], 2)
19119 mac1 = arg[2]
19120 }
19121 split(mac1, mac2, "(") #)
19122 macro = mac2[1]
19123 prefix = substr(line, 1, index(line, defundef) - 1)
19124 if (D_is_set[macro]) {
19125 # Preserve the white space surrounding the "#".
19126 print prefix "define", macro P[macro] D[macro]
19127 next
19128 } else {
19129 # Replace #undef with comments. This is necessary, for example,
19130 # in the case of _POSIX_SOURCE, which is predefined and required
19131 # on some systems where configure will not decide to define it.
19132 if (defundef == "undef") {
19133 print "/*", prefix defundef, macro, "*/"
19134 next
19135 }
19136 }
19137 }
19138 { print }
19139 _ACAWK
19140 _ACEOF
19141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19142 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19143 fi # test -n "$CONFIG_HEADERS"
19144
19145
19146 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19147 shift
19148 for ac_tag
19149 do
19150 case $ac_tag in
19151 :[FHLC]) ac_mode=$ac_tag; continue;;
19152 esac
19153 case $ac_mode$ac_tag in
19154 :[FHL]*:*);;
19155 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19156 :[FH]-) ac_tag=-:-;;
19157 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19158 esac
19159 ac_save_IFS=$IFS
19160 IFS=:
19161 set x $ac_tag
19162 IFS=$ac_save_IFS
19163 shift
19164 ac_file=$1
19165 shift
19166
19167 case $ac_mode in
19168 :L) ac_source=$1;;
19169 :[FH])
19170 ac_file_inputs=
19171 for ac_f
19172 do
19173 case $ac_f in
19174 -) ac_f="$ac_tmp/stdin";;
19175 *) # Look for the file first in the build tree, then in the source tree
19176 # (if the path is not absolute). The absolute path cannot be DOS-style,
19177 # because $ac_f cannot contain `:'.
19178 test -f "$ac_f" ||
19179 case $ac_f in
19180 [\\/$]*) false;;
19181 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19182 esac ||
19183 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19184 esac
19185 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19186 as_fn_append ac_file_inputs " '$ac_f'"
19187 done
19188
19189 # Let's still pretend it is `configure' which instantiates (i.e., don't
19190 # use $as_me), people would be surprised to read:
19191 # /* config.h. Generated by config.status. */
19192 configure_input='Generated from '`
19193 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19194 `' by configure.'
19195 if test x"$ac_file" != x-; then
19196 configure_input="$ac_file. $configure_input"
19197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19198 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19199 fi
19200 # Neutralize special characters interpreted by sed in replacement strings.
19201 case $configure_input in #(
19202 *\&* | *\|* | *\\* )
19203 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19204 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19205 *) ac_sed_conf_input=$configure_input;;
19206 esac
19207
19208 case $ac_tag in
19209 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19211 esac
19212 ;;
19213 esac
19214
19215 ac_dir=`$as_dirname -- "$ac_file" ||
19216 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19217 X"$ac_file" : 'X\(//\)[^/]' \| \
19218 X"$ac_file" : 'X\(//\)$' \| \
19219 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19220 printf "%s\n" X"$ac_file" |
19221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19222 s//\1/
19223 q
19224 }
19225 /^X\(\/\/\)[^/].*/{
19226 s//\1/
19227 q
19228 }
19229 /^X\(\/\/\)$/{
19230 s//\1/
19231 q
19232 }
19233 /^X\(\/\).*/{
19234 s//\1/
19235 q
19236 }
19237 s/.*/./; q'`
19238 as_dir="$ac_dir"; as_fn_mkdir_p
19239 ac_builddir=.
19240
19241 case "$ac_dir" in
19242 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19243 *)
19244 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19245 # A ".." for each directory in $ac_dir_suffix.
19246 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19247 case $ac_top_builddir_sub in
19248 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19249 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19250 esac ;;
19251 esac
19252 ac_abs_top_builddir=$ac_pwd
19253 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19254 # for backward compatibility:
19255 ac_top_builddir=$ac_top_build_prefix
19256
19257 case $srcdir in
19258 .) # We are building in place.
19259 ac_srcdir=.
19260 ac_top_srcdir=$ac_top_builddir_sub
19261 ac_abs_top_srcdir=$ac_pwd ;;
19262 [\\/]* | ?:[\\/]* ) # Absolute name.
19263 ac_srcdir=$srcdir$ac_dir_suffix;
19264 ac_top_srcdir=$srcdir
19265 ac_abs_top_srcdir=$srcdir ;;
19266 *) # Relative name.
19267 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19268 ac_top_srcdir=$ac_top_build_prefix$srcdir
19269 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19270 esac
19271 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19272
19273
19274 case $ac_mode in
19275 :F)
19276 #
19277 # CONFIG_FILE
19278 #
19279
19280 case $INSTALL in
19281 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19282 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19283 esac
19284 ac_MKDIR_P=$MKDIR_P
19285 case $MKDIR_P in
19286 [\\/$]* | ?:[\\/]* ) ;;
19287 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19288 esac
19289 _ACEOF
19290
19291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19292 # If the template does not know about datarootdir, expand it.
19293 # FIXME: This hack should be removed a few years after 2.60.
19294 ac_datarootdir_hack=; ac_datarootdir_seen=
19295 ac_sed_dataroot='
19296 /datarootdir/ {
19297 p
19298 q
19299 }
19300 /@datadir@/p
19301 /@docdir@/p
19302 /@infodir@/p
19303 /@localedir@/p
19304 /@mandir@/p'
19305 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19306 *datarootdir*) ac_datarootdir_seen=yes;;
19307 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19309 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19310 _ACEOF
19311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19312 ac_datarootdir_hack='
19313 s&@datadir@&$datadir&g
19314 s&@docdir@&$docdir&g
19315 s&@infodir@&$infodir&g
19316 s&@localedir@&$localedir&g
19317 s&@mandir@&$mandir&g
19318 s&\\\${datarootdir}&$datarootdir&g' ;;
19319 esac
19320 _ACEOF
19321
19322 # Neutralize VPATH when `$srcdir' = `.'.
19323 # Shell code in configure.ac might set extrasub.
19324 # FIXME: do we really want to maintain this feature?
19325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19326 ac_sed_extra="$ac_vpsub
19327 $extrasub
19328 _ACEOF
19329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19330 :t
19331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19332 s|@configure_input@|$ac_sed_conf_input|;t t
19333 s&@top_builddir@&$ac_top_builddir_sub&;t t
19334 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19335 s&@srcdir@&$ac_srcdir&;t t
19336 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19337 s&@top_srcdir@&$ac_top_srcdir&;t t
19338 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19339 s&@builddir@&$ac_builddir&;t t
19340 s&@abs_builddir@&$ac_abs_builddir&;t t
19341 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19342 s&@INSTALL@&$ac_INSTALL&;t t
19343 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19344 $ac_datarootdir_hack
19345 "
19346 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19347 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19348
19349 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19350 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19351 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19352 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19354 which seems to be undefined. Please make sure it is defined" >&5
19355 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19356 which seems to be undefined. Please make sure it is defined" >&2;}
19357
19358 rm -f "$ac_tmp/stdin"
19359 case $ac_file in
19360 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19361 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19362 esac \
19363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19364 ;;
19365 :H)
19366 #
19367 # CONFIG_HEADER
19368 #
19369 if test x"$ac_file" != x-; then
19370 {
19371 printf "%s\n" "/* $configure_input */" >&1 \
19372 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19373 } >"$ac_tmp/config.h" \
19374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19375 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19377 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19378 else
19379 rm -f "$ac_file"
19380 mv "$ac_tmp/config.h" "$ac_file" \
19381 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19382 fi
19383 else
19384 printf "%s\n" "/* $configure_input */" >&1 \
19385 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19386 || as_fn_error $? "could not create -" "$LINENO" 5
19387 fi
19388 # Compute "$ac_file"'s index in $config_headers.
19389 _am_arg="$ac_file"
19390 _am_stamp_count=1
19391 for _am_header in $config_headers :; do
19392 case $_am_header in
19393 $_am_arg | $_am_arg:* )
19394 break ;;
19395 * )
19396 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19397 esac
19398 done
19399 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19400 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19401 X"$_am_arg" : 'X\(//\)[^/]' \| \
19402 X"$_am_arg" : 'X\(//\)$' \| \
19403 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19404 printf "%s\n" X"$_am_arg" |
19405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19406 s//\1/
19407 q
19408 }
19409 /^X\(\/\/\)[^/].*/{
19410 s//\1/
19411 q
19412 }
19413 /^X\(\/\/\)$/{
19414 s//\1/
19415 q
19416 }
19417 /^X\(\/\).*/{
19418 s//\1/
19419 q
19420 }
19421 s/.*/./; q'`/stamp-h$_am_stamp_count
19422 ;;
19423
19424 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19425 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19426 ;;
19427 esac
19428
19429
19430 case $ac_file$ac_mode in
19431 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19432 # Older Autoconf quotes --file arguments for eval, but not when files
19433 # are listed without --file. Let's play safe and only enable the eval
19434 # if we detect the quoting.
19435 # TODO: see whether this extra hack can be removed once we start
19436 # requiring Autoconf 2.70 or later.
19437 case $CONFIG_FILES in #(
19438 *\'*) :
19439 eval set x "$CONFIG_FILES" ;; #(
19440 *) :
19441 set x $CONFIG_FILES ;; #(
19442 *) :
19443 ;;
19444 esac
19445 shift
19446 # Used to flag and report bootstrapping failures.
19447 am_rc=0
19448 for am_mf
19449 do
19450 # Strip MF so we end up with the name of the file.
19451 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19452 # Check whether this is an Automake generated Makefile which includes
19453 # dependency-tracking related rules and includes.
19454 # Grep'ing the whole file directly is not great: AIX grep has a line
19455 # limit of 2048, but all sed's we know have understand at least 4000.
19456 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19457 || continue
19458 am_dirpart=`$as_dirname -- "$am_mf" ||
19459 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19460 X"$am_mf" : 'X\(//\)[^/]' \| \
19461 X"$am_mf" : 'X\(//\)$' \| \
19462 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19463 printf "%s\n" X"$am_mf" |
19464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19465 s//\1/
19466 q
19467 }
19468 /^X\(\/\/\)[^/].*/{
19469 s//\1/
19470 q
19471 }
19472 /^X\(\/\/\)$/{
19473 s//\1/
19474 q
19475 }
19476 /^X\(\/\).*/{
19477 s//\1/
19478 q
19479 }
19480 s/.*/./; q'`
19481 am_filepart=`$as_basename -- "$am_mf" ||
19482 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19483 X"$am_mf" : 'X\(//\)$' \| \
19484 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19485 printf "%s\n" X/"$am_mf" |
19486 sed '/^.*\/\([^/][^/]*\)\/*$/{
19487 s//\1/
19488 q
19489 }
19490 /^X\/\(\/\/\)$/{
19491 s//\1/
19492 q
19493 }
19494 /^X\/\(\/\).*/{
19495 s//\1/
19496 q
19497 }
19498 s/.*/./; q'`
19499 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19500 && sed -e '/# am--include-marker/d' "$am_filepart" \
19501 | $MAKE -f - am--depfiles" >&5
19502 (cd "$am_dirpart" \
19503 && sed -e '/# am--include-marker/d' "$am_filepart" \
19504 | $MAKE -f - am--depfiles) >&5 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } || am_rc=$?
19508 done
19509 if test $am_rc -ne 0; then
19510 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19511 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19512 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19513 for automatic dependency tracking. If GNU make was not used, consider
19514 re-running the configure script with MAKE=\"gmake\" (or whatever is
19515 necessary). You can also try re-running configure with the
19516 '--disable-dependency-tracking' option to at least be able to build
19517 the package (albeit without support for automatic dependency tracking).
19518 See \`config.log' for more details" "$LINENO" 5; }
19519 fi
19520 { am_dirpart=; unset am_dirpart;}
19521 { am_filepart=; unset am_filepart;}
19522 { am_mf=; unset am_mf;}
19523 { am_rc=; unset am_rc;}
19524 rm -f conftest-deps.mk
19525 }
19526 ;;
19527 "po-directories":C)
19528 for ac_file in $CONFIG_FILES; do
19529 # Support "outfile[:infile[:infile...]]"
19530 case "$ac_file" in
19531 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19532 esac
19533 # PO directories have a Makefile.in generated from Makefile.in.in.
19534 case "$ac_file" in */Makefile.in)
19535 # Adjust a relative srcdir.
19536 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19537 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19538 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19539 # In autoconf-2.13 it is called $ac_given_srcdir.
19540 # In autoconf-2.50 it is called $srcdir.
19541 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19542 case "$ac_given_srcdir" in
19543 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19544 /*) top_srcdir="$ac_given_srcdir" ;;
19545 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19546 esac
19547 # Treat a directory as a PO directory if and only if it has a
19548 # POTFILES.in file. This allows packages to have multiple PO
19549 # directories under different names or in different locations.
19550 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19551 rm -f "$ac_dir/POTFILES"
19552 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19553 gt_tab=`printf '\t'`
19554 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19555 POMAKEFILEDEPS="POTFILES.in"
19556 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19557 # on $ac_dir but don't depend on user-specified configuration
19558 # parameters.
19559 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19560 # The LINGUAS file contains the set of available languages.
19561 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19562 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19563 fi
19564 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19565 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19566 else
19567 # The set of available languages was given in configure.in.
19568 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
19569 fi
19570 # Compute POFILES
19571 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19572 # Compute UPDATEPOFILES
19573 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19574 # Compute DUMMYPOFILES
19575 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19576 # Compute GMOFILES
19577 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19578 case "$ac_given_srcdir" in
19579 .) srcdirpre= ;;
19580 *) srcdirpre='$(srcdir)/' ;;
19581 esac
19582 POFILES=
19583 UPDATEPOFILES=
19584 DUMMYPOFILES=
19585 GMOFILES=
19586 for lang in $ALL_LINGUAS; do
19587 POFILES="$POFILES $srcdirpre$lang.po"
19588 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19589 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19590 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19591 done
19592 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19593 # environment variable.
19594 INST_LINGUAS=
19595 if test -n "$ALL_LINGUAS"; then
19596 for presentlang in $ALL_LINGUAS; do
19597 useit=no
19598 if test "%UNSET%" != "$LINGUAS"; then
19599 desiredlanguages="$LINGUAS"
19600 else
19601 desiredlanguages="$ALL_LINGUAS"
19602 fi
19603 for desiredlang in $desiredlanguages; do
19604 # Use the presentlang catalog if desiredlang is
19605 # a. equal to presentlang, or
19606 # b. a variant of presentlang (because in this case,
19607 # presentlang can be used as a fallback for messages
19608 # which are not translated in the desiredlang catalog).
19609 case "$desiredlang" in
19610 "$presentlang"*) useit=yes;;
19611 esac
19612 done
19613 if test $useit = yes; then
19614 INST_LINGUAS="$INST_LINGUAS $presentlang"
19615 fi
19616 done
19617 fi
19618 CATALOGS=
19619 if test -n "$INST_LINGUAS"; then
19620 for lang in $INST_LINGUAS; do
19621 CATALOGS="$CATALOGS $lang.gmo"
19622 done
19623 fi
19624 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19625 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19626 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19627 if test -f "$f"; then
19628 case "$f" in
19629 *.orig | *.bak | *~) ;;
19630 *) cat "$f" >> "$ac_dir/Makefile" ;;
19631 esac
19632 fi
19633 done
19634 fi
19635 ;;
19636 esac
19637 done ;;
19638 "libtool":C)
19639
19640 # See if we are running on zsh, and set the options that allow our
19641 # commands through without removal of \ escapes.
19642 if test -n "${ZSH_VERSION+set}"; then
19643 setopt NO_GLOB_SUBST
19644 fi
19645
19646 cfgfile=${ofile}T
19647 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19648 $RM "$cfgfile"
19649
19650 cat <<_LT_EOF >> "$cfgfile"
19651 #! $SHELL
19652 # Generated automatically by $as_me ($PACKAGE) $VERSION
19653 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19654 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19655
19656 # Provide generalized library-building support services.
19657 # Written by Gordon Matzigkeit, 1996
19658
19659 # Copyright (C) 2014 Free Software Foundation, Inc.
19660 # This is free software; see the source for copying conditions. There is NO
19661 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19662
19663 # GNU Libtool is free software; you can redistribute it and/or modify
19664 # it under the terms of the GNU General Public License as published by
19665 # the Free Software Foundation; either version 2 of of the License, or
19666 # (at your option) any later version.
19667 #
19668 # As a special exception to the GNU General Public License, if you
19669 # distribute this file as part of a program or library that is built
19670 # using GNU Libtool, you may include this file under the same
19671 # distribution terms that you use for the rest of that program.
19672 #
19673 # GNU Libtool is distributed in the hope that it will be useful, but
19674 # WITHOUT ANY WARRANTY; without even the implied warranty of
19675 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19676 # GNU General Public License for more details.
19677 #
19678 # You should have received a copy of the GNU General Public License
19679 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19680
19681
19682 # The names of the tagged configurations supported by this script.
19683 available_tags=''
19684
19685 # Configured defaults for sys_lib_dlsearch_path munging.
19686 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19687
19688 # ### BEGIN LIBTOOL CONFIG
19689
19690 # Which release of libtool.m4 was used?
19691 macro_version=$macro_version
19692 macro_revision=$macro_revision
19693
19694 # Assembler program.
19695 AS=$lt_AS
19696
19697 # DLL creation program.
19698 DLLTOOL=$lt_DLLTOOL
19699
19700 # Object dumper program.
19701 OBJDUMP=$lt_OBJDUMP
19702
19703 # Whether or not to build static libraries.
19704 build_old_libs=$enable_static
19705
19706 # Whether or not to build shared libraries.
19707 build_libtool_libs=$enable_shared
19708
19709 # What type of objects to build.
19710 pic_mode=$pic_mode
19711
19712 # Whether or not to optimize for fast installation.
19713 fast_install=$enable_fast_install
19714
19715 # Shared archive member basename,for filename based shared library versioning on AIX.
19716 shared_archive_member_spec=$shared_archive_member_spec
19717
19718 # Shell to use when invoking shell scripts.
19719 SHELL=$lt_SHELL
19720
19721 # An echo program that protects backslashes.
19722 ECHO=$lt_ECHO
19723
19724 # The PATH separator for the build system.
19725 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19726
19727 # The host system.
19728 host_alias=$host_alias
19729 host=$host
19730 host_os=$host_os
19731
19732 # The build system.
19733 build_alias=$build_alias
19734 build=$build
19735 build_os=$build_os
19736
19737 # A sed program that does not truncate output.
19738 SED=$lt_SED
19739
19740 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19741 Xsed="\$SED -e 1s/^X//"
19742
19743 # A grep program that handles long lines.
19744 GREP=$lt_GREP
19745
19746 # An ERE matcher.
19747 EGREP=$lt_EGREP
19748
19749 # A literal string matcher.
19750 FGREP=$lt_FGREP
19751
19752 # A BSD- or MS-compatible name lister.
19753 NM=$lt_NM
19754
19755 # Whether we need soft or hard links.
19756 LN_S=$lt_LN_S
19757
19758 # What is the maximum length of a command?
19759 max_cmd_len=$max_cmd_len
19760
19761 # Object file suffix (normally "o").
19762 objext=$ac_objext
19763
19764 # Executable file suffix (normally "").
19765 exeext=$exeext
19766
19767 # whether the shell understands "unset".
19768 lt_unset=$lt_unset
19769
19770 # turn spaces into newlines.
19771 SP2NL=$lt_lt_SP2NL
19772
19773 # turn newlines into spaces.
19774 NL2SP=$lt_lt_NL2SP
19775
19776 # convert \$build file names to \$host format.
19777 to_host_file_cmd=$lt_cv_to_host_file_cmd
19778
19779 # convert \$build files to toolchain format.
19780 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19781
19782 # A file(cmd) program that detects file types.
19783 FILECMD=$lt_FILECMD
19784
19785 # Method to check whether dependent libraries are shared objects.
19786 deplibs_check_method=$lt_deplibs_check_method
19787
19788 # Command to use when deplibs_check_method = "file_magic".
19789 file_magic_cmd=$lt_file_magic_cmd
19790
19791 # How to find potential files when deplibs_check_method = "file_magic".
19792 file_magic_glob=$lt_file_magic_glob
19793
19794 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19795 want_nocaseglob=$lt_want_nocaseglob
19796
19797 # Command to associate shared and link libraries.
19798 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19799
19800 # The archiver.
19801 AR=$lt_AR
19802
19803 # Flags to create an archive (by configure).
19804 lt_ar_flags=$lt_ar_flags
19805
19806 # Flags to create an archive.
19807 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19808
19809 # How to feed a file listing to the archiver.
19810 archiver_list_spec=$lt_archiver_list_spec
19811
19812 # A symbol stripping program.
19813 STRIP=$lt_STRIP
19814
19815 # Commands used to install an old-style archive.
19816 RANLIB=$lt_RANLIB
19817 old_postinstall_cmds=$lt_old_postinstall_cmds
19818 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19819
19820 # Whether to use a lock for old archive extraction.
19821 lock_old_archive_extraction=$lock_old_archive_extraction
19822
19823 # A C compiler.
19824 LTCC=$lt_CC
19825
19826 # LTCC compiler flags.
19827 LTCFLAGS=$lt_CFLAGS
19828
19829 # Take the output of nm and produce a listing of raw symbols and C names.
19830 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19831
19832 # Transform the output of nm in a proper C declaration.
19833 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19834
19835 # Transform the output of nm into a list of symbols to manually relocate.
19836 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19837
19838 # Transform the output of nm in a C name address pair.
19839 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19840
19841 # Transform the output of nm in a C name address pair when lib prefix is needed.
19842 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19843
19844 # The name lister interface.
19845 nm_interface=$lt_lt_cv_nm_interface
19846
19847 # Specify filename containing input files for \$NM.
19848 nm_file_list_spec=$lt_nm_file_list_spec
19849
19850 # The root where to search for dependent libraries,and where our libraries should be installed.
19851 lt_sysroot=$lt_sysroot
19852
19853 # Command to truncate a binary pipe.
19854 lt_truncate_bin=$lt_lt_cv_truncate_bin
19855
19856 # The name of the directory that contains temporary libtool files.
19857 objdir=$objdir
19858
19859 # Used to examine libraries when file_magic_cmd begins with "file".
19860 MAGIC_CMD=$MAGIC_CMD
19861
19862 # Must we lock files when doing compilation?
19863 need_locks=$lt_need_locks
19864
19865 # Manifest tool.
19866 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19867
19868 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19869 DSYMUTIL=$lt_DSYMUTIL
19870
19871 # Tool to change global to local symbols on Mac OS X.
19872 NMEDIT=$lt_NMEDIT
19873
19874 # Tool to manipulate fat objects and archives on Mac OS X.
19875 LIPO=$lt_LIPO
19876
19877 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19878 OTOOL=$lt_OTOOL
19879
19880 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19881 OTOOL64=$lt_OTOOL64
19882
19883 # Old archive suffix (normally "a").
19884 libext=$libext
19885
19886 # Shared library suffix (normally ".so").
19887 shrext_cmds=$lt_shrext_cmds
19888
19889 # The commands to extract the exported symbol list from a shared archive.
19890 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19891
19892 # Variables whose values should be saved in libtool wrapper scripts and
19893 # restored at link time.
19894 variables_saved_for_relink=$lt_variables_saved_for_relink
19895
19896 # Do we need the "lib" prefix for modules?
19897 need_lib_prefix=$need_lib_prefix
19898
19899 # Do we need a version for libraries?
19900 need_version=$need_version
19901
19902 # Library versioning type.
19903 version_type=$version_type
19904
19905 # Shared library runtime path variable.
19906 runpath_var=$runpath_var
19907
19908 # Shared library path variable.
19909 shlibpath_var=$shlibpath_var
19910
19911 # Is shlibpath searched before the hard-coded library search path?
19912 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19913
19914 # Format of library name prefix.
19915 libname_spec=$lt_libname_spec
19916
19917 # List of archive names. First name is the real one, the rest are links.
19918 # The last name is the one that the linker finds with -lNAME
19919 library_names_spec=$lt_library_names_spec
19920
19921 # The coded name of the library, if different from the real name.
19922 soname_spec=$lt_soname_spec
19923
19924 # Permission mode override for installation of shared libraries.
19925 install_override_mode=$lt_install_override_mode
19926
19927 # Command to use after installation of a shared archive.
19928 postinstall_cmds=$lt_postinstall_cmds
19929
19930 # Command to use after uninstallation of a shared archive.
19931 postuninstall_cmds=$lt_postuninstall_cmds
19932
19933 # Commands used to finish a libtool library installation in a directory.
19934 finish_cmds=$lt_finish_cmds
19935
19936 # As "finish_cmds", except a single script fragment to be evaled but
19937 # not shown.
19938 finish_eval=$lt_finish_eval
19939
19940 # Whether we should hardcode library paths into libraries.
19941 hardcode_into_libs=$hardcode_into_libs
19942
19943 # Compile-time system search path for libraries.
19944 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19945
19946 # Detected run-time system search path for libraries.
19947 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19948
19949 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19950 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19951
19952 # Whether dlopen is supported.
19953 dlopen_support=$enable_dlopen
19954
19955 # Whether dlopen of programs is supported.
19956 dlopen_self=$enable_dlopen_self
19957
19958 # Whether dlopen of statically linked programs is supported.
19959 dlopen_self_static=$enable_dlopen_self_static
19960
19961 # Commands to strip libraries.
19962 old_striplib=$lt_old_striplib
19963 striplib=$lt_striplib
19964
19965
19966 # The linker used to build libraries.
19967 LD=$lt_LD
19968
19969 # How to create reloadable object files.
19970 reload_flag=$lt_reload_flag
19971 reload_cmds=$lt_reload_cmds
19972
19973 # Commands used to build an old-style archive.
19974 old_archive_cmds=$lt_old_archive_cmds
19975
19976 # A language specific compiler.
19977 CC=$lt_compiler
19978
19979 # Is the compiler the GNU compiler?
19980 with_gcc=$GCC
19981
19982 # Compiler flag to turn off builtin functions.
19983 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19984
19985 # Additional compiler flags for building library objects.
19986 pic_flag=$lt_lt_prog_compiler_pic
19987
19988 # How to pass a linker flag through the compiler.
19989 wl=$lt_lt_prog_compiler_wl
19990
19991 # Compiler flag to prevent dynamic linking.
19992 link_static_flag=$lt_lt_prog_compiler_static
19993
19994 # Does compiler simultaneously support -c and -o options?
19995 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19996
19997 # Whether or not to add -lc for building shared libraries.
19998 build_libtool_need_lc=$archive_cmds_need_lc
19999
20000 # Whether or not to disallow shared libs when runtime libs are static.
20001 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20002
20003 # Compiler flag to allow reflexive dlopens.
20004 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20005
20006 # Compiler flag to generate shared objects directly from archives.
20007 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20008
20009 # Whether the compiler copes with passing no objects directly.
20010 compiler_needs_object=$lt_compiler_needs_object
20011
20012 # Create an old-style archive from a shared archive.
20013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20014
20015 # Create a temporary old-style archive to link instead of a shared archive.
20016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20017
20018 # Commands used to build a shared archive.
20019 archive_cmds=$lt_archive_cmds
20020 archive_expsym_cmds=$lt_archive_expsym_cmds
20021
20022 # Commands used to build a loadable module if different from building
20023 # a shared archive.
20024 module_cmds=$lt_module_cmds
20025 module_expsym_cmds=$lt_module_expsym_cmds
20026
20027 # Whether we are building with GNU ld or not.
20028 with_gnu_ld=$lt_with_gnu_ld
20029
20030 # Flag that allows shared libraries with undefined symbols to be built.
20031 allow_undefined_flag=$lt_allow_undefined_flag
20032
20033 # Flag that enforces no undefined symbols.
20034 no_undefined_flag=$lt_no_undefined_flag
20035
20036 # Flag to hardcode \$libdir into a binary during linking.
20037 # This must work even if \$libdir does not exist
20038 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20039
20040 # Whether we need a single "-rpath" flag with a separated argument.
20041 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20042
20043 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20044 # DIR into the resulting binary.
20045 hardcode_direct=$hardcode_direct
20046
20047 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20048 # DIR into the resulting binary and the resulting library dependency is
20049 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20050 # library is relocated.
20051 hardcode_direct_absolute=$hardcode_direct_absolute
20052
20053 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20054 # into the resulting binary.
20055 hardcode_minus_L=$hardcode_minus_L
20056
20057 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20058 # into the resulting binary.
20059 hardcode_shlibpath_var=$hardcode_shlibpath_var
20060
20061 # Set to "yes" if building a shared library automatically hardcodes DIR
20062 # into the library and all subsequent libraries and executables linked
20063 # against it.
20064 hardcode_automatic=$hardcode_automatic
20065
20066 # Set to yes if linker adds runtime paths of dependent libraries
20067 # to runtime path list.
20068 inherit_rpath=$inherit_rpath
20069
20070 # Whether libtool must link a program against all its dependency libraries.
20071 link_all_deplibs=$link_all_deplibs
20072
20073 # Set to "yes" if exported symbols are required.
20074 always_export_symbols=$always_export_symbols
20075
20076 # The commands to list exported symbols.
20077 export_symbols_cmds=$lt_export_symbols_cmds
20078
20079 # Symbols that should not be listed in the preloaded symbols.
20080 exclude_expsyms=$lt_exclude_expsyms
20081
20082 # Symbols that must always be exported.
20083 include_expsyms=$lt_include_expsyms
20084
20085 # Commands necessary for linking programs (against libraries) with templates.
20086 prelink_cmds=$lt_prelink_cmds
20087
20088 # Commands necessary for finishing linking programs.
20089 postlink_cmds=$lt_postlink_cmds
20090
20091 # Specify filename containing input files.
20092 file_list_spec=$lt_file_list_spec
20093
20094 # How to hardcode a shared library path into an executable.
20095 hardcode_action=$hardcode_action
20096
20097 # ### END LIBTOOL CONFIG
20098
20099 _LT_EOF
20100
20101 cat <<'_LT_EOF' >> "$cfgfile"
20102
20103 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20104
20105 # func_munge_path_list VARIABLE PATH
20106 # -----------------------------------
20107 # VARIABLE is name of variable containing _space_ separated list of
20108 # directories to be munged by the contents of PATH, which is string
20109 # having a format:
20110 # "DIR[:DIR]:"
20111 # string "DIR[ DIR]" will be prepended to VARIABLE
20112 # ":DIR[:DIR]"
20113 # string "DIR[ DIR]" will be appended to VARIABLE
20114 # "DIRP[:DIRP]::[DIRA:]DIRA"
20115 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20116 # "DIRA[ DIRA]" will be appended to VARIABLE
20117 # "DIR[:DIR]"
20118 # VARIABLE will be replaced by "DIR[ DIR]"
20119 func_munge_path_list ()
20120 {
20121 case x$2 in
20122 x)
20123 ;;
20124 *:)
20125 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20126 ;;
20127 x:*)
20128 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20129 ;;
20130 *::*)
20131 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20132 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20133 ;;
20134 *)
20135 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20136 ;;
20137 esac
20138 }
20139
20140
20141 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20142 func_cc_basename ()
20143 {
20144 for cc_temp in $*""; do
20145 case $cc_temp in
20146 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20147 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20148 \-*) ;;
20149 *) break;;
20150 esac
20151 done
20152 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20153 }
20154
20155
20156 # ### END FUNCTIONS SHARED WITH CONFIGURE
20157
20158 _LT_EOF
20159
20160 case $host_os in
20161 aix3*)
20162 cat <<\_LT_EOF >> "$cfgfile"
20163 # AIX sometimes has problems with the GCC collect2 program. For some
20164 # reason, if we set the COLLECT_NAMES environment variable, the problems
20165 # vanish in a puff of smoke.
20166 if test set != "${COLLECT_NAMES+set}"; then
20167 COLLECT_NAMES=
20168 export COLLECT_NAMES
20169 fi
20170 _LT_EOF
20171 ;;
20172 esac
20173
20174
20175
20176 ltmain=$ac_aux_dir/ltmain.sh
20177
20178
20179 # We use sed instead of cat because bash on DJGPP gets confused if
20180 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20181 # text mode, it properly converts lines to CR/LF. This bash problem
20182 # is reportedly fixed, but why not run on old versions too?
20183 $SED '$q' "$ltmain" >> "$cfgfile" \
20184 || (rm -f "$cfgfile"; exit 1)
20185
20186 mv -f "$cfgfile" "$ofile" ||
20187 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20188 chmod +x "$ofile"
20189
20190 ;;
20191
20192 esac
20193 done # for ac_tag
20194
20195
20196 as_fn_exit 0
20197 _ACEOF
20198 ac_clean_files=$ac_clean_files_save
20199
20200 test $ac_write_fail = 0 ||
20201 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20202
20203
20204 # configure is writing to config.log, and then calls config.status.
20205 # config.status does its own redirection, appending to config.log.
20206 # Unfortunately, on DOS this fails, as config.log is still kept open
20207 # by configure, so config.status won't be able to write to it; its
20208 # output is simply discarded. So we exec the FD to /dev/null,
20209 # effectively closing config.log, so it can be properly (re)opened and
20210 # appended to by config.status. When coming back to configure, we
20211 # need to make the FD available again.
20212 if test "$no_create" != yes; then
20213 ac_cs_success=:
20214 ac_config_status_args=
20215 test "$silent" = yes &&
20216 ac_config_status_args="$ac_config_status_args --quiet"
20217 exec 5>/dev/null
20218 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20219 exec 5>>config.log
20220 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20221 # would make configure fail if this is the last instruction.
20222 $ac_cs_success || as_fn_exit 1
20223 fi
20224 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20226 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20227 fi
20228
20229 if test "$GCC" = yes &&
20230 test -f $srcdir/../.developing &&
20231 grep -i debug $srcdir/../.developing > /dev/null
20232 then
20233 sed -e '/-O2/s///' -e '/^CFLAGS = /s//&${DEBUG} /' Makefile > foo
20234 mv foo Makefile
20235 fi
20236