Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libfastjson 1.2304.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libfastjson'
592 PACKAGE_TARNAME='libfastjson'
593 PACKAGE_VERSION='1.2304.0'
594 PACKAGE_STRING='libfastjson 1.2304.0'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_default_prefix=/usr
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 JSON_BSYMBOLIC_LDFLAGS
639 LT_SYS_LIBRARY_PATH
640 OTOOL64
641 OTOOL
642 LIPO
643 NMEDIT
644 DSYMUTIL
645 MANIFEST_TOOL
646 RANLIB
647 ac_ct_AR
648 AR
649 DLLTOOL
650 OBJDUMP
651 LN_S
652 NM
653 ac_ct_DUMPBIN
654 DUMPBIN
655 LD
656 FGREP
657 host_os
658 host_vendor
659 host_cpu
660 host
661 build_os
662 build_vendor
663 build_cpu
664 build
665 LIBTOOL
666 LIBOBJS
667 VALGRIND
668 WARN_SCANNERFLAGS
669 WARN_LDFLAGS
670 WARN_CFLAGS
671 SED
672 EGREP
673 GREP
674 CPP
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__include
683 DEPDIR
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 AM_BACKSLASH
692 AM_DEFAULT_VERBOSITY
693 AM_DEFAULT_V
694 AM_V
695 am__untar
696 am__tar
697 AMTAR
698 am__leading_dot
699 SET_MAKE
700 AWK
701 mkdir_p
702 MKDIR_P
703 INSTALL_STRIP_PROGRAM
704 STRIP
705 install_sh
706 MAKEINFO
707 AUTOHEADER
708 AUTOMAKE
709 AUTOCONF
710 ACLOCAL
711 VERSION
712 PACKAGE
713 CYGPATH_W
714 am__isrc
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 AIX_FALSE
719 AIX_TRUE
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 runstatedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL
759 am__quote'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_silent_rules
764 enable_dependency_tracking
765 enable_compile_warnings
766 enable_Werror
767 enable_rdrand
768 enable_valgrind
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_aix_soname
774 with_gnu_ld
775 with_sysroot
776 enable_libtool_lock
777 enable_Bsymbolic
778 '
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 CPP
788 LT_SYS_LIBRARY_PATH'
789
790
791 # Initialize some variables set by options.
792 ac_init_help=
793 ac_init_version=false
794 ac_unrecognized_opts=
795 ac_unrecognized_sep=
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
798 cache_file=/dev/null
799 exec_prefix=NONE
800 no_create=
801 no_recursion=
802 prefix=NONE
803 program_prefix=NONE
804 program_suffix=NONE
805 program_transform_name=s,x,x,
806 silent=
807 site=
808 srcdir=
809 verbose=
810 x_includes=NONE
811 x_libraries=NONE
812
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 runstatedir='${localstatedir}/run'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -runstatedir | --runstatedir | --runstatedi | --runstated \
1081 | --runstate | --runstat | --runsta | --runst | --runs \
1082 | --run | --ru | --r)
1083 ac_prev=runstatedir ;;
1084 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1085 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1086 | --run=* | --ru=* | --r=*)
1087 runstatedir=$ac_optarg ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1110
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1133
1134 -with-* | --with-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=\$ac_optarg ;;
1149
1150 -without-* | --without-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159 "with_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=no ;;
1165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1183
1184 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1185 Try \`$0 --help' for more information"
1186 ;;
1187
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 case $ac_envvar in #(
1192 '' | [0-9]* | *[!_$as_cr_alnum]* )
1193 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1194 esac
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1197
1198 *)
1199 # FIXME: should be removed in autoconf 3.0.
1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204 ;;
1205
1206 esac
1207 done
1208
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 as_fn_error $? "missing argument to $ac_option"
1212 fi
1213
1214 if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1216 no) ;;
1217 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219 esac
1220 fi
1221
1222 # Check all directory arguments for consistency.
1223 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir runstatedir
1227 do
1228 eval ac_val=\$$ac_var
1229 # Remove trailing slashes.
1230 case $ac_val in
1231 */ )
1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\$ac_val;;
1234 esac
1235 # Be sure to have absolute directory names.
1236 case $ac_val in
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 esac
1240 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 done
1242
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1246 build=$build_alias
1247 host=$host_alias
1248 target=$target_alias
1249
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
1254 elif test "x$build_alias" != "x$host_alias"; then
1255 cross_compiling=yes
1256 fi
1257 fi
1258
1259 ac_tool_prefix=
1260 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261
1262 test "$silent" = yes && exec 6>/dev/null
1263
1264
1265 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266 ac_ls_di=`ls -di .` &&
1267 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268 as_fn_error $? "working directory cannot be determined"
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270 as_fn_error $? "pwd does not report name of working directory"
1271
1272
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$as_myself" ||
1278 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282 $as_echo X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\/\)[^/].*/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\).*/{
1296 s//\1/
1297 q
1298 }
1299 s/.*/./; q'`
1300 srcdir=$ac_confdir
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 srcdir=..
1303 fi
1304 else
1305 ac_srcdir_defaulted=no
1306 fi
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1310 fi
1311 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 ac_abs_confdir=`(
1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1314 pwd)`
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 srcdir=.
1318 fi
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1322 case $srcdir in
1323 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 esac
1325 for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 done
1331
1332 #
1333 # Report the --help message.
1334 #
1335 if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1338 cat <<_ACEOF
1339 \`configure' configures libfastjson 1.2304.0 to adapt to many kinds of systems.
1340
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1342
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE. See below for descriptions of some of the useful variables.
1345
1346 Defaults for the options are specified in brackets.
1347
1348 Configuration:
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
1353 -q, --quiet, --silent do not print \`checking ...' messages
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1358
1359 Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
1361 [$ac_default_prefix]
1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 [PREFIX]
1364
1365 By default, \`make install' will install all the files in
1366 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368 for instance \`--prefix=\$HOME'.
1369
1370 For better control, use the options below.
1371
1372 Fine tuning of the installation directories:
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/libfastjson]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1394
1395 cat <<\_ACEOF
1396
1397 Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401
1402 System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 _ACEOF
1406 fi
1407
1408 if test -n "$ac_init_help"; then
1409 case $ac_init_help in
1410 short | recursive ) echo "Configuration of libfastjson 1.2304.0:";;
1411 esac
1412 cat <<\_ACEOF
1413
1414 Optional Features:
1415 --disable-option-checking ignore unrecognized --enable/--with options
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-silent-rules less verbose build output (undo: "make V=1")
1419 --disable-silent-rules verbose build output (undo: "make V=0")
1420 --enable-dependency-tracking
1421 do not reject slow dependency extractors
1422 --disable-dependency-tracking
1423 speeds up one-time build
1424 --enable-compile-warnings=[no/yes/error]
1425 Enable compiler warnings and errors
1426 --disable-Werror Unconditionally make all compiler warnings non-fatal
1427 --enable-rdrand Enable RDRAND Hardware RNG Hash Seed generation on
1428 supported x86/x64 platforms.
1429 --enable-valgrind enable running the testbench under valgrind memcheck
1430 tool [default=no]
1431 --enable-shared[=PKGS] build shared libraries [default=yes]
1432 --enable-static[=PKGS] build static libraries [default=yes]
1433 --enable-fast-install[=PKGS]
1434 optimize for fast installation [default=yes]
1435 --disable-libtool-lock avoid locking (might break parallel builds)
1436 --disable-Bsymbolic Avoid linking with -Bsymbolic-function
1437
1438 Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1442 both]
1443 --with-aix-soname=aix|svr4|both
1444 shared library versioning (aka "SONAME") variant to
1445 provide on AIX, [default=aix].
1446 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1447 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1448 compiler's sysroot if not specified).
1449
1450 Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457 you have headers in a nonstandard directory <include dir>
1458 CPP C preprocessor
1459 LT_SYS_LIBRARY_PATH
1460 User-defined run-time library search path.
1461
1462 Use these variables to override the choices made by `configure' or to help
1463 it to find libraries and programs with nonstandard names/locations.
1464
1465 Report bugs to <[email protected]>.
1466 _ACEOF
1467 ac_status=$?
1468 fi
1469
1470 if test "$ac_init_help" = "recursive"; then
1471 # If there are subdirs, report their specific --help.
1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473 test -d "$ac_dir" ||
1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475 continue
1476 ac_builddir=.
1477
1478 case "$ac_dir" in
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *)
1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487 esac ;;
1488 esac
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1493
1494 case $srcdir in
1495 .) # We are building in place.
1496 ac_srcdir=.
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
1500 ac_srcdir=$srcdir$ac_dir_suffix;
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1503 *) # Relative name.
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 esac
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for guested configure.
1512 if test -f "$ac_srcdir/configure.gnu"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515 elif test -f "$ac_srcdir/configure"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure" --help=recursive
1518 else
1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 fi || ac_status=$?
1521 cd "$ac_pwd" || { ac_status=$?; break; }
1522 done
1523 fi
1524
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1527 cat <<\_ACEOF
1528 libfastjson configure 1.2304.0
1529 generated by GNU Autoconf 2.69
1530
1531 Copyright (C) 2012 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1534 _ACEOF
1535 exit
1536 fi
1537
1538 ## ------------------------ ##
1539 ## Autoconf initialization. ##
1540 ## ------------------------ ##
1541
1542 # ac_fn_c_try_compile LINENO
1543 # --------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_compile ()
1546 {
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext
1549 if { { ac_try="$ac_compile"
1550 case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_compile") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1562 fi
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext; then :
1568 ac_retval=0
1569 else
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1572
1573 ac_retval=1
1574 fi
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1577
1578 } # ac_fn_c_try_compile
1579
1580 # ac_fn_c_try_cpp LINENO
1581 # ----------------------
1582 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_cpp ()
1584 {
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 if { { ac_try="$ac_cpp conftest.$ac_ext"
1587 case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1599 fi
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } > conftest.i && {
1602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 }; then :
1605 ac_retval=0
1606 else
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1
1611 fi
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_cpp
1616
1617 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1620 # the include files in INCLUDES and setting the cache variable VAR
1621 # accordingly.
1622 ac_fn_c_check_header_mongrel ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if eval \${$3+:} false; then :
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627 $as_echo_n "checking for $2... " >&6; }
1628 if eval \${$3+:} false; then :
1629 $as_echo_n "(cached) " >&6
1630 fi
1631 eval ac_res=\$$3
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634 else
1635 # Is the header compilable?
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1637 $as_echo_n "checking $2 usability... " >&6; }
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1640 $4
1641 #include <$2>
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"; then :
1644 ac_header_compiler=yes
1645 else
1646 ac_header_compiler=no
1647 fi
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1650 $as_echo "$ac_header_compiler" >&6; }
1651
1652 # Is the header present?
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1654 $as_echo_n "checking $2 presence... " >&6; }
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_cpp "$LINENO"; then :
1660 ac_header_preproc=yes
1661 else
1662 ac_header_preproc=no
1663 fi
1664 rm -f conftest.err conftest.i conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1666 $as_echo "$ac_header_preproc" >&6; }
1667
1668 # So? What about this header?
1669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1670 yes:no: )
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1672 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1674 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1675 ;;
1676 no:yes:* )
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1678 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1680 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1682 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1684 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687 ( $as_echo "## ---------------------------------------- ##
1688 ## Report this to [email protected] ##
1689 ## ---------------------------------------- ##"
1690 ) | sed "s/^/$as_me: WARNING: /" >&2
1691 ;;
1692 esac
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 $as_echo_n "checking for $2... " >&6; }
1695 if eval \${$3+:} false; then :
1696 $as_echo_n "(cached) " >&6
1697 else
1698 eval "$3=\$ac_header_compiler"
1699 fi
1700 eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1703 fi
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705
1706 } # ac_fn_c_check_header_mongrel
1707
1708 # ac_fn_c_try_run LINENO
1709 # ----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711 # that executables *can* be run.
1712 ac_fn_c_try_run ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>&5
1723 ac_status=$?
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726 { { case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_try") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; }; }; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: program exited with status $ac_status" >&5
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=$ac_status
1743 fi
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_run
1749
1750 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists and can be compiled using the include files in
1753 # INCLUDES, setting the cache variable VAR accordingly.
1754 ac_fn_c_check_header_compile ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if eval \${$3+:} false; then :
1760 $as_echo_n "(cached) " >&6
1761 else
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1764 $4
1765 #include <$2>
1766 _ACEOF
1767 if ac_fn_c_try_compile "$LINENO"; then :
1768 eval "$3=yes"
1769 else
1770 eval "$3=no"
1771 fi
1772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1773 fi
1774 eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778
1779 } # ac_fn_c_check_header_compile
1780
1781 # ac_fn_c_try_link LINENO
1782 # -----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_c_try_link ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 rm -f conftest.$ac_objext conftest$ac_exeext
1788 if { { ac_try="$ac_link"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_link") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1801 fi
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest$ac_exeext && {
1807 test "$cross_compiling" = yes ||
1808 test -x conftest$ac_exeext
1809 }; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815 ac_retval=1
1816 fi
1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1818 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1819 # interfere with the next link command; also delete a directory that is
1820 # left behind by Apple's compiler. We do this before executing the actions.
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1824
1825 } # ac_fn_c_try_link
1826
1827 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1828 # -------------------------------------------
1829 # Tests whether TYPE exists after having included INCLUDES, setting cache
1830 # variable VAR accordingly.
1831 ac_fn_c_check_type ()
1832 {
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 eval "$3=no"
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 $4
1843 int
1844 main ()
1845 {
1846 if (sizeof ($2))
1847 return 0;
1848 ;
1849 return 0;
1850 }
1851 _ACEOF
1852 if ac_fn_c_try_compile "$LINENO"; then :
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 $4
1856 int
1857 main ()
1858 {
1859 if (sizeof (($2)))
1860 return 0;
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"; then :
1866
1867 else
1868 eval "$3=yes"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_type
1880
1881 # ac_fn_c_check_func LINENO FUNC VAR
1882 # ----------------------------------
1883 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1884 ac_fn_c_check_func ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1891 else
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1894 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1896 #define $2 innocuous_$2
1897
1898 /* System header to define __stub macros and hopefully few prototypes,
1899 which can conflict with char $2 (); below.
1900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1901 <limits.h> exists even on freestanding compilers. */
1902
1903 #ifdef __STDC__
1904 # include <limits.h>
1905 #else
1906 # include <assert.h>
1907 #endif
1908
1909 #undef $2
1910
1911 /* Override any GCC internal prototype to avoid an error.
1912 Use char because int might match the return type of a GCC
1913 builtin and then its argument prototype would still apply. */
1914 #ifdef __cplusplus
1915 extern "C"
1916 #endif
1917 char $2 ();
1918 /* The GNU C library defines this for functions which it implements
1919 to always fail with ENOSYS. Some functions are actually named
1920 something starting with __ and the normal name is an alias. */
1921 #if defined __stub_$2 || defined __stub___$2
1922 choke me
1923 #endif
1924
1925 int
1926 main ()
1927 {
1928 return $2 ();
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 if ac_fn_c_try_link "$LINENO"; then :
1934 eval "$3=yes"
1935 else
1936 eval "$3=no"
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext \
1939 conftest$ac_exeext conftest.$ac_ext
1940 fi
1941 eval ac_res=\$$3
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945
1946 } # ac_fn_c_check_func
1947 cat >config.log <<_ACEOF
1948 This file contains any messages produced by compilers while
1949 running configure, to aid debugging if configure makes a mistake.
1950
1951 It was created by libfastjson $as_me 1.2304.0, which was
1952 generated by GNU Autoconf 2.69. Invocation command line was
1953
1954 $ $0 $@
1955
1956 _ACEOF
1957 exec 5>>config.log
1958 {
1959 cat <<_ASUNAME
1960 ## --------- ##
1961 ## Platform. ##
1962 ## --------- ##
1963
1964 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1965 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1966 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1967 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1968 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1969
1970 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1971 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1972
1973 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1974 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1975 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1976 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1977 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1978 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1979 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1980
1981 _ASUNAME
1982
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
1988 $as_echo "PATH: $as_dir"
1989 done
1990 IFS=$as_save_IFS
1991
1992 } >&5
1993
1994 cat >&5 <<_ACEOF
1995
1996
1997 ## ----------- ##
1998 ## Core tests. ##
1999 ## ----------- ##
2000
2001 _ACEOF
2002
2003
2004 # Keep a trace of the command line.
2005 # Strip out --no-create and --no-recursion so they do not pile up.
2006 # Strip out --silent because we don't want to record it for future runs.
2007 # Also quote any args containing shell meta-characters.
2008 # Make two passes to allow for proper duplicate-argument suppression.
2009 ac_configure_args=
2010 ac_configure_args0=
2011 ac_configure_args1=
2012 ac_must_keep_next=false
2013 for ac_pass in 1 2
2014 do
2015 for ac_arg
2016 do
2017 case $ac_arg in
2018 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2020 | -silent | --silent | --silen | --sile | --sil)
2021 continue ;;
2022 *\'*)
2023 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2024 esac
2025 case $ac_pass in
2026 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2027 2)
2028 as_fn_append ac_configure_args1 " '$ac_arg'"
2029 if test $ac_must_keep_next = true; then
2030 ac_must_keep_next=false # Got value, back to normal.
2031 else
2032 case $ac_arg in
2033 *=* | --config-cache | -C | -disable-* | --disable-* \
2034 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2035 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2036 | -with-* | --with-* | -without-* | --without-* | --x)
2037 case "$ac_configure_args0 " in
2038 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2039 esac
2040 ;;
2041 -* ) ac_must_keep_next=true ;;
2042 esac
2043 fi
2044 as_fn_append ac_configure_args " '$ac_arg'"
2045 ;;
2046 esac
2047 done
2048 done
2049 { ac_configure_args0=; unset ac_configure_args0;}
2050 { ac_configure_args1=; unset ac_configure_args1;}
2051
2052 # When interrupted or exit'd, cleanup temporary files, and complete
2053 # config.log. We remove comments because anyway the quotes in there
2054 # would cause problems or look ugly.
2055 # WARNING: Use '\'' to represent an apostrophe within the trap.
2056 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2057 trap 'exit_status=$?
2058 # Save into config.log some information that might help in debugging.
2059 {
2060 echo
2061
2062 $as_echo "## ---------------- ##
2063 ## Cache variables. ##
2064 ## ---------------- ##"
2065 echo
2066 # The following way of writing the cache mishandles newlines in values,
2067 (
2068 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in #(
2071 *${as_nl}*)
2072 case $ac_var in #(
2073 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2074 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2075 esac
2076 case $ac_var in #(
2077 _ | IFS | as_nl) ;; #(
2078 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2079 *) { eval $ac_var=; unset $ac_var;} ;;
2080 esac ;;
2081 esac
2082 done
2083 (set) 2>&1 |
2084 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2085 *${as_nl}ac_space=\ *)
2086 sed -n \
2087 "s/'\''/'\''\\\\'\'''\''/g;
2088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2089 ;; #(
2090 *)
2091 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2092 ;;
2093 esac |
2094 sort
2095 )
2096 echo
2097
2098 $as_echo "## ----------------- ##
2099 ## Output variables. ##
2100 ## ----------------- ##"
2101 echo
2102 for ac_var in $ac_subst_vars
2103 do
2104 eval ac_val=\$$ac_var
2105 case $ac_val in
2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 esac
2108 $as_echo "$ac_var='\''$ac_val'\''"
2109 done | sort
2110 echo
2111
2112 if test -n "$ac_subst_files"; then
2113 $as_echo "## ------------------- ##
2114 ## File substitutions. ##
2115 ## ------------------- ##"
2116 echo
2117 for ac_var in $ac_subst_files
2118 do
2119 eval ac_val=\$$ac_var
2120 case $ac_val in
2121 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2122 esac
2123 $as_echo "$ac_var='\''$ac_val'\''"
2124 done | sort
2125 echo
2126 fi
2127
2128 if test -s confdefs.h; then
2129 $as_echo "## ----------- ##
2130 ## confdefs.h. ##
2131 ## ----------- ##"
2132 echo
2133 cat confdefs.h
2134 echo
2135 fi
2136 test "$ac_signal" != 0 &&
2137 $as_echo "$as_me: caught signal $ac_signal"
2138 $as_echo "$as_me: exit $exit_status"
2139 } >&5
2140 rm -f core *.core core.conftest.* &&
2141 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2142 exit $exit_status
2143 ' 0
2144 for ac_signal in 1 2 13 15; do
2145 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2146 done
2147 ac_signal=0
2148
2149 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2150 rm -f -r conftest* confdefs.h
2151
2152 $as_echo "/* confdefs.h */" > confdefs.h
2153
2154 # Predefined preprocessor variables.
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_NAME "$PACKAGE_NAME"
2158 _ACEOF
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_STRING "$PACKAGE_STRING"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_URL "$PACKAGE_URL"
2178 _ACEOF
2179
2180
2181 # Let the site file select an alternate cache file if it wants to.
2182 # Prefer an explicitly selected file to automatically selected ones.
2183 ac_site_file1=NONE
2184 ac_site_file2=NONE
2185 if test -n "$CONFIG_SITE"; then
2186 # We do not want a PATH search for config.site.
2187 case $CONFIG_SITE in #((
2188 -*) ac_site_file1=./$CONFIG_SITE;;
2189 */*) ac_site_file1=$CONFIG_SITE;;
2190 *) ac_site_file1=./$CONFIG_SITE;;
2191 esac
2192 elif test "x$prefix" != xNONE; then
2193 ac_site_file1=$prefix/share/config.site
2194 ac_site_file2=$prefix/etc/config.site
2195 else
2196 ac_site_file1=$ac_default_prefix/share/config.site
2197 ac_site_file2=$ac_default_prefix/etc/config.site
2198 fi
2199 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2200 do
2201 test "x$ac_site_file" = xNONE && continue
2202 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2204 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2205 sed 's/^/| /' "$ac_site_file" >&5
2206 . "$ac_site_file" \
2207 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2209 as_fn_error $? "failed to load site script $ac_site_file
2210 See \`config.log' for more details" "$LINENO" 5; }
2211 fi
2212 done
2213
2214 if test -r "$cache_file"; then
2215 # Some versions of bash will fail to source /dev/null (special files
2216 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2217 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2219 $as_echo "$as_me: loading cache $cache_file" >&6;}
2220 case $cache_file in
2221 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2222 *) . "./$cache_file";;
2223 esac
2224 fi
2225 else
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2227 $as_echo "$as_me: creating cache $cache_file" >&6;}
2228 >$cache_file
2229 fi
2230
2231 # Check that the precious variables saved in the cache have kept the same
2232 # value.
2233 ac_cache_corrupted=false
2234 for ac_var in $ac_precious_vars; do
2235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2236 eval ac_new_set=\$ac_env_${ac_var}_set
2237 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2238 eval ac_new_val=\$ac_env_${ac_var}_value
2239 case $ac_old_set,$ac_new_set in
2240 set,)
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2242 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2243 ac_cache_corrupted=: ;;
2244 ,set)
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2246 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2247 ac_cache_corrupted=: ;;
2248 ,);;
2249 *)
2250 if test "x$ac_old_val" != "x$ac_new_val"; then
2251 # differences in whitespace do not lead to failure.
2252 ac_old_val_w=`echo x $ac_old_val`
2253 ac_new_val_w=`echo x $ac_new_val`
2254 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2256 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2257 ac_cache_corrupted=:
2258 else
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2260 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2261 eval $ac_var=\$ac_old_val
2262 fi
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2264 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2266 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2267 fi;;
2268 esac
2269 # Pass precious variables to config.status.
2270 if test "$ac_new_set" = set; then
2271 case $ac_new_val in
2272 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2273 *) ac_arg=$ac_var=$ac_new_val ;;
2274 esac
2275 case " $ac_configure_args " in
2276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2277 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2278 esac
2279 fi
2280 done
2281 if $ac_cache_corrupted; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2285 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2286 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2287 fi
2288 ## -------------------- ##
2289 ## Main body of script. ##
2290 ## -------------------- ##
2291
2292 ac_ext=c
2293 ac_cpp='$CPP $CPPFLAGS'
2294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2297
2298
2299 # AIXPORT START: Detect the underlying OS
2300 unamestr=$(uname)
2301 if test x$unamestr = xAIX; then
2302 AIX_TRUE=
2303 AIX_FALSE='#'
2304 else
2305 AIX_TRUE='#'
2306 AIX_FALSE=
2307 fi
2308
2309 # AIXPORT END
2310
2311 # AIXPORT : Set the required variables for AIX config script
2312 if test "$unamestr" = "AIX"; then
2313 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig"
2314 LIBS="-lbsd -lm"
2315 CPPFLAGS="-D_AIX -D_THREAD_SAFE -D_BSD=43"
2316 LDFLAGS="-qcpluscmt -brtl -bexpall "
2317 CC="xlc"
2318
2319 fi
2320 # AIXPORT END
2321
2322
2323 ac_config_headers="$ac_config_headers config.h"
2324
2325
2326 am__api_version='1.16'
2327
2328 ac_aux_dir=
2329 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2330 if test -f "$ac_dir/install-sh"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install-sh -c"
2333 break
2334 elif test -f "$ac_dir/install.sh"; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/install.sh -c"
2337 break
2338 elif test -f "$ac_dir/shtool"; then
2339 ac_aux_dir=$ac_dir
2340 ac_install_sh="$ac_aux_dir/shtool install -c"
2341 break
2342 fi
2343 done
2344 if test -z "$ac_aux_dir"; then
2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2346 fi
2347
2348 # These three variables are undocumented and unsupported,
2349 # and are intended to be withdrawn in a future Autoconf release.
2350 # They can cause serious problems if a builder's source tree is in a directory
2351 # whose full name contains unusual characters.
2352 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2355
2356
2357 # Find a good install program. We prefer a C program (faster),
2358 # so one script is as good as another. But avoid the broken or
2359 # incompatible versions:
2360 # SysV /etc/install, /usr/sbin/install
2361 # SunOS /usr/etc/install
2362 # IRIX /sbin/install
2363 # AIX /bin/install
2364 # AmigaOS /C/install, which installs bootblocks on floppy discs
2365 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2366 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2367 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2368 # OS/2's system install, which has a completely different semantic
2369 # ./install, which can be erroneously created by make from ./install.sh.
2370 # Reject install programs that cannot install multiple files.
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2372 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2373 if test -z "$INSTALL"; then
2374 if ${ac_cv_path_install+:} false; then :
2375 $as_echo_n "(cached) " >&6
2376 else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380 IFS=$as_save_IFS
2381 test -z "$as_dir" && as_dir=.
2382 # Account for people who put trailing slashes in PATH elements.
2383 case $as_dir/ in #((
2384 ./ | .// | /[cC]/* | \
2385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2387 /usr/ucb/* ) ;;
2388 *)
2389 # OSF1 and SCO ODT 3.0 have their own names for install.
2390 # Don't use installbsd from OSF since it installs stuff as root
2391 # by default.
2392 for ac_prog in ginstall scoinst install; do
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2395 if test $ac_prog = install &&
2396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2397 # AIX install. It has an incompatible calling convention.
2398 :
2399 elif test $ac_prog = install &&
2400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401 # program-specific install script used by HP pwplus--don't use.
2402 :
2403 else
2404 rm -rf conftest.one conftest.two conftest.dir
2405 echo one > conftest.one
2406 echo two > conftest.two
2407 mkdir conftest.dir
2408 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2409 test -s conftest.one && test -s conftest.two &&
2410 test -s conftest.dir/conftest.one &&
2411 test -s conftest.dir/conftest.two
2412 then
2413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2414 break 3
2415 fi
2416 fi
2417 fi
2418 done
2419 done
2420 ;;
2421 esac
2422
2423 done
2424 IFS=$as_save_IFS
2425
2426 rm -rf conftest.one conftest.two conftest.dir
2427
2428 fi
2429 if test "${ac_cv_path_install+set}" = set; then
2430 INSTALL=$ac_cv_path_install
2431 else
2432 # As a last resort, use the slow shell script. Don't cache a
2433 # value for INSTALL within a source directory, because that will
2434 # break other packages using the cache if that directory is
2435 # removed, or if the value is a relative name.
2436 INSTALL=$ac_install_sh
2437 fi
2438 fi
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2440 $as_echo "$INSTALL" >&6; }
2441
2442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2443 # It thinks the first close brace ends the variable substitution.
2444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2445
2446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2447
2448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2449
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2451 $as_echo_n "checking whether build environment is sane... " >&6; }
2452 # Reject unsafe characters in $srcdir or the absolute working directory
2453 # name. Accept space and tab only in the latter.
2454 am_lf='
2455 '
2456 case `pwd` in
2457 *[\\\"\#\$\&\'\`$am_lf]*)
2458 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2459 esac
2460 case $srcdir in
2461 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2462 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2463 esac
2464
2465 # Do 'set' in a subshell so we don't clobber the current shell's
2466 # arguments. Must try -L first in case configure is actually a
2467 # symlink; some systems play weird games with the mod time of symlinks
2468 # (eg FreeBSD returns the mod time of the symlink's containing
2469 # directory).
2470 if (
2471 am_has_slept=no
2472 for am_try in 1 2; do
2473 echo "timestamp, slept: $am_has_slept" > conftest.file
2474 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2475 if test "$*" = "X"; then
2476 # -L didn't work.
2477 set X `ls -t "$srcdir/configure" conftest.file`
2478 fi
2479 if test "$*" != "X $srcdir/configure conftest.file" \
2480 && test "$*" != "X conftest.file $srcdir/configure"; then
2481
2482 # If neither matched, then we have a broken ls. This can happen
2483 # if, for instance, CONFIG_SHELL is bash and it inherits a
2484 # broken ls alias from the environment. This has actually
2485 # happened. Such a system could not be considered "sane".
2486 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2487 alias in your environment" "$LINENO" 5
2488 fi
2489 if test "$2" = conftest.file || test $am_try -eq 2; then
2490 break
2491 fi
2492 # Just in case.
2493 sleep 1
2494 am_has_slept=yes
2495 done
2496 test "$2" = conftest.file
2497 )
2498 then
2499 # Ok.
2500 :
2501 else
2502 as_fn_error $? "newly created file is older than distributed files!
2503 Check your system clock" "$LINENO" 5
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2506 $as_echo "yes" >&6; }
2507 # If we didn't sleep, we still need to ensure time stamps of config.status and
2508 # generated files are strictly newer.
2509 am_sleep_pid=
2510 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2511 ( sleep 1 ) &
2512 am_sleep_pid=$!
2513 fi
2514
2515 rm -f conftest.file
2516
2517 test "$program_prefix" != NONE &&
2518 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2519 # Use a double $ so make ignores it.
2520 test "$program_suffix" != NONE &&
2521 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2522 # Double any \ or $.
2523 # By default was `s,x,x', remove it if useless.
2524 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2525 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2526
2527 # Expand $ac_aux_dir to an absolute path.
2528 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2529
2530 if test x"${MISSING+set}" != xset; then
2531 case $am_aux_dir in
2532 *\ * | *\ *)
2533 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2534 *)
2535 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2536 esac
2537 fi
2538 # Use eval to expand $SHELL
2539 if eval "$MISSING --is-lightweight"; then
2540 am_missing_run="$MISSING "
2541 else
2542 am_missing_run=
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2544 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2545 fi
2546
2547 if test x"${install_sh+set}" != xset; then
2548 case $am_aux_dir in
2549 *\ * | *\ *)
2550 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2551 *)
2552 install_sh="\${SHELL} $am_aux_dir/install-sh"
2553 esac
2554 fi
2555
2556 # Installed binaries are usually stripped using 'strip' when the user
2557 # run "make install-strip". However 'strip' might not be the right
2558 # tool to use in cross-compilation environments, therefore Automake
2559 # will honor the 'STRIP' environment variable to overrule this program.
2560 if test "$cross_compiling" != no; then
2561 if test -n "$ac_tool_prefix"; then
2562 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2563 set dummy ${ac_tool_prefix}strip; ac_word=$2
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if ${ac_cv_prog_STRIP+:} false; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 if test -n "$STRIP"; then
2570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2579 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2582 fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 STRIP=$ac_cv_prog_STRIP
2590 if test -n "$STRIP"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2592 $as_echo "$STRIP" >&6; }
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595 $as_echo "no" >&6; }
2596 fi
2597
2598
2599 fi
2600 if test -z "$ac_cv_prog_STRIP"; then
2601 ac_ct_STRIP=$STRIP
2602 # Extract the first word of "strip", so it can be a program name with args.
2603 set dummy strip; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 if test -n "$ac_ct_STRIP"; then
2610 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_prog_ac_ct_STRIP="strip"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2630 if test -n "$ac_ct_STRIP"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2632 $as_echo "$ac_ct_STRIP" >&6; }
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638 if test "x$ac_ct_STRIP" = x; then
2639 STRIP=":"
2640 else
2641 case $cross_compiling:$ac_tool_warned in
2642 yes:)
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2645 ac_tool_warned=yes ;;
2646 esac
2647 STRIP=$ac_ct_STRIP
2648 fi
2649 else
2650 STRIP="$ac_cv_prog_STRIP"
2651 fi
2652
2653 fi
2654 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2655
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2657 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2658 if test -z "$MKDIR_P"; then
2659 if ${ac_cv_path_mkdir+:} false; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2664 do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_prog in mkdir gmkdir; do
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2670 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2671 'mkdir (GNU coreutils) '* | \
2672 'mkdir (coreutils) '* | \
2673 'mkdir (fileutils) '4.1*)
2674 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2675 break 3;;
2676 esac
2677 done
2678 done
2679 done
2680 IFS=$as_save_IFS
2681
2682 fi
2683
2684 test -d ./--version && rmdir ./--version
2685 if test "${ac_cv_path_mkdir+set}" = set; then
2686 MKDIR_P="$ac_cv_path_mkdir -p"
2687 else
2688 # As a last resort, use the slow shell script. Don't cache a
2689 # value for MKDIR_P within a source directory, because that will
2690 # break other packages using the cache if that directory is
2691 # removed, or if the value is a relative name.
2692 MKDIR_P="$ac_install_sh -d"
2693 fi
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2696 $as_echo "$MKDIR_P" >&6; }
2697
2698 for ac_prog in gawk mawk nawk awk
2699 do
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if ${ac_cv_prog_AWK+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$AWK"; then
2708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_AWK="$ac_prog"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 AWK=$ac_cv_prog_AWK
2728 if test -n "$AWK"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2730 $as_echo "$AWK" >&6; }
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735
2736
2737 test -n "$AWK" && break
2738 done
2739
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2741 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2742 set x ${MAKE-make}
2743 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2744 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 cat >conftest.make <<\_ACEOF
2748 SHELL = /bin/sh
2749 all:
2750 @echo '@@@%%%=$(MAKE)=@@@%%%'
2751 _ACEOF
2752 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2753 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2754 *@@@%%%=?*=@@@%%%*)
2755 eval ac_cv_prog_make_${ac_make}_set=yes;;
2756 *)
2757 eval ac_cv_prog_make_${ac_make}_set=no;;
2758 esac
2759 rm -f conftest.make
2760 fi
2761 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2763 $as_echo "yes" >&6; }
2764 SET_MAKE=
2765 else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2768 SET_MAKE="MAKE=${MAKE-make}"
2769 fi
2770
2771 rm -rf .tst 2>/dev/null
2772 mkdir .tst 2>/dev/null
2773 if test -d .tst; then
2774 am__leading_dot=.
2775 else
2776 am__leading_dot=_
2777 fi
2778 rmdir .tst 2>/dev/null
2779
2780 # Check whether --enable-silent-rules was given.
2781 if test "${enable_silent_rules+set}" = set; then :
2782 enableval=$enable_silent_rules;
2783 fi
2784
2785 case $enable_silent_rules in # (((
2786 yes) AM_DEFAULT_VERBOSITY=0;;
2787 no) AM_DEFAULT_VERBOSITY=1;;
2788 *) AM_DEFAULT_VERBOSITY=1;;
2789 esac
2790 am_make=${MAKE-make}
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2792 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2793 if ${am_cv_make_support_nested_variables+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 if $as_echo 'TRUE=$(BAR$(V))
2797 BAR0=false
2798 BAR1=true
2799 V=1
2800 am__doit:
2801 @$(TRUE)
2802 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2803 am_cv_make_support_nested_variables=yes
2804 else
2805 am_cv_make_support_nested_variables=no
2806 fi
2807 fi
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2809 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2810 if test $am_cv_make_support_nested_variables = yes; then
2811 AM_V='$(V)'
2812 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2813 else
2814 AM_V=$AM_DEFAULT_VERBOSITY
2815 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2816 fi
2817 AM_BACKSLASH='\'
2818
2819 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2820 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2821 # is not polluted with repeated "-I."
2822 am__isrc=' -I$(srcdir)'
2823 # test to see if srcdir already configured
2824 if test -f $srcdir/config.status; then
2825 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2826 fi
2827 fi
2828
2829 # test whether we have cygpath
2830 if test -z "$CYGPATH_W"; then
2831 if (cygpath --version) >/dev/null 2>/dev/null; then
2832 CYGPATH_W='cygpath -w'
2833 else
2834 CYGPATH_W=echo
2835 fi
2836 fi
2837
2838
2839 # Define the identity of the package.
2840 PACKAGE='libfastjson'
2841 VERSION='1.2304.0'
2842
2843
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE "$PACKAGE"
2846 _ACEOF
2847
2848
2849 cat >>confdefs.h <<_ACEOF
2850 #define VERSION "$VERSION"
2851 _ACEOF
2852
2853 # Some tools Automake needs.
2854
2855 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2856
2857
2858 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2859
2860
2861 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2862
2863
2864 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2865
2866
2867 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2868
2869 # For better backward compatibility. To be removed once Automake 1.9.x
2870 # dies out for good. For more background, see:
2871 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2872 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2873 mkdir_p='$(MKDIR_P)'
2874
2875 # We need awk for the "check" target (and possibly the TAP driver). The
2876 # system "awk" is bad on some platforms.
2877 # Always define AMTAR for backward compatibility. Yes, it's still used
2878 # in the wild :-( We should find a proper way to deprecate it ...
2879 AMTAR='$${TAR-tar}'
2880
2881
2882 # We'll loop over all known methods to create a tar archive until one works.
2883 _am_tools='gnutar pax cpio none'
2884
2885 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2886
2887
2888
2889
2890
2891
2892 # POSIX will say in a future version that running "rm -f" with no argument
2893 # is OK; and we want to be able to make that assumption in our Makefile
2894 # recipes. So use an aggressive probe to check that the usage we want is
2895 # actually supported "in the wild" to an acceptable degree.
2896 # See automake bug#10828.
2897 # To make any issue more visible, cause the running configure to be aborted
2898 # by default if the 'rm' program in use doesn't match our expectations; the
2899 # user can still override this though.
2900 if rm -f && rm -fr && rm -rf; then : OK; else
2901 cat >&2 <<'END'
2902 Oops!
2903
2904 Your 'rm' program seems unable to run without file operands specified
2905 on the command line, even when the '-f' option is present. This is contrary
2906 to the behaviour of most rm programs out there, and not conforming with
2907 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2908
2909 Please tell [email protected] about your system, including the value
2910 of your $PATH and any error possibly output before this message. This
2911 can help us improve future automake versions.
2912
2913 END
2914 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2915 echo 'Configuration will proceed anyway, since you have set the' >&2
2916 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2917 echo >&2
2918 else
2919 cat >&2 <<'END'
2920 Aborting the configuration process, to ensure you take notice of the issue.
2921
2922 You can download and install GNU coreutils to get an 'rm' implementation
2923 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2924
2925 If you want to complete the configuration process using your problematic
2926 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2927 to "yes", and re-run configure.
2928
2929 END
2930 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2931 fi
2932 fi
2933
2934
2935
2936 DEPDIR="${am__leading_dot}deps"
2937
2938 ac_config_commands="$ac_config_commands depfiles"
2939
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2941 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2942 cat > confinc.mk << 'END'
2943 am__doit:
2944 @echo this is the am__doit target >confinc.out
2945 .PHONY: am__doit
2946 END
2947 am__include="#"
2948 am__quote=
2949 # BSD make does it like this.
2950 echo '.include "confinc.mk" # ignored' > confmf.BSD
2951 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2952 echo 'include confinc.mk # ignored' > confmf.GNU
2953 _am_result=no
2954 for s in GNU BSD; do
2955 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2956 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }
2960 case $?:`cat confinc.out 2>/dev/null` in #(
2961 '0:this is the am__doit target') :
2962 case $s in #(
2963 BSD) :
2964 am__include='.include' am__quote='"' ;; #(
2965 *) :
2966 am__include='include' am__quote='' ;;
2967 esac ;; #(
2968 *) :
2969 ;;
2970 esac
2971 if test "$am__include" != "#"; then
2972 _am_result="yes ($s style)"
2973 break
2974 fi
2975 done
2976 rm -f confinc.* confmf.*
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2978 $as_echo "${_am_result}" >&6; }
2979
2980 # Check whether --enable-dependency-tracking was given.
2981 if test "${enable_dependency_tracking+set}" = set; then :
2982 enableval=$enable_dependency_tracking;
2983 fi
2984
2985 if test "x$enable_dependency_tracking" != xno; then
2986 am_depcomp="$ac_aux_dir/depcomp"
2987 AMDEPBACKSLASH='\'
2988 am__nodep='_no'
2989 fi
2990 if test "x$enable_dependency_tracking" != xno; then
2991 AMDEP_TRUE=
2992 AMDEP_FALSE='#'
2993 else
2994 AMDEP_TRUE='#'
2995 AMDEP_FALSE=
2996 fi
2997
2998
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004 if test -n "$ac_tool_prefix"; then
3005 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3006 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_CC+:} false; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 if test -n "$CC"; then
3013 ac_cv_prog_CC="$CC" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026 done
3027 done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041
3042 fi
3043 if test -z "$ac_cv_prog_CC"; then
3044 ac_ct_CC=$CC
3045 # Extract the first word of "gcc", so it can be a program name with args.
3046 set dummy gcc; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 if test -n "$ac_ct_CC"; then
3053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062 ac_cv_prog_ac_ct_CC="gcc"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066 done
3067 done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3073 if test -n "$ac_ct_CC"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3075 $as_echo "$ac_ct_CC" >&6; }
3076 else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080
3081 if test "x$ac_ct_CC" = x; then
3082 CC=""
3083 else
3084 case $cross_compiling:$ac_tool_warned in
3085 yes:)
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3088 ac_tool_warned=yes ;;
3089 esac
3090 CC=$ac_ct_CC
3091 fi
3092 else
3093 CC="$ac_cv_prog_CC"
3094 fi
3095
3096 if test -z "$CC"; then
3097 if test -n "$ac_tool_prefix"; then
3098 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3099 set dummy ${ac_tool_prefix}cc; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_CC+:} false; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 if test -n "$CC"; then
3106 ac_cv_prog_CC="$CC" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_CC="${ac_tool_prefix}cc"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 fi
3124 fi
3125 CC=$ac_cv_prog_CC
3126 if test -n "$CC"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3128 $as_echo "$CC" >&6; }
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 fi
3133
3134
3135 fi
3136 fi
3137 if test -z "$CC"; then
3138 # Extract the first word of "cc", so it can be a program name with args.
3139 set dummy cc; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_CC+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 ac_prog_rejected=no
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3157 ac_prog_rejected=yes
3158 continue
3159 fi
3160 ac_cv_prog_CC="cc"
3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3163 fi
3164 done
3165 done
3166 IFS=$as_save_IFS
3167
3168 if test $ac_prog_rejected = yes; then
3169 # We found a bogon in the path, so make sure we never use it.
3170 set dummy $ac_cv_prog_CC
3171 shift
3172 if test $# != 0; then
3173 # We chose a different compiler from the bogus one.
3174 # However, it has the same basename, so the bogon will be chosen
3175 # first if we set CC to just the basename; use the full file name.
3176 shift
3177 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3178 fi
3179 fi
3180 fi
3181 fi
3182 CC=$ac_cv_prog_CC
3183 if test -n "$CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185 $as_echo "$CC" >&6; }
3186 else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 fi
3190
3191
3192 fi
3193 if test -z "$CC"; then
3194 if test -n "$ac_tool_prefix"; then
3195 for ac_prog in cl.exe
3196 do
3197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if ${ac_cv_prog_CC+:} false; then :
3202 $as_echo_n "(cached) " >&6
3203 else
3204 if test -n "$CC"; then
3205 ac_cv_prog_CC="$CC" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3217 fi
3218 done
3219 done
3220 IFS=$as_save_IFS
3221
3222 fi
3223 fi
3224 CC=$ac_cv_prog_CC
3225 if test -n "$CC"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227 $as_echo "$CC" >&6; }
3228 else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 fi
3232
3233
3234 test -n "$CC" && break
3235 done
3236 fi
3237 if test -z "$CC"; then
3238 ac_ct_CC=$CC
3239 for ac_prog in cl.exe
3240 do
3241 # Extract the first word of "$ac_prog", so it can be a program name with args.
3242 set dummy $ac_prog; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 if test -n "$ac_ct_CC"; then
3249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258 ac_cv_prog_ac_ct_CC="$ac_prog"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3261 fi
3262 done
3263 done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3269 if test -n "$ac_ct_CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3271 $as_echo "$ac_ct_CC" >&6; }
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277
3278 test -n "$ac_ct_CC" && break
3279 done
3280
3281 if test "x$ac_ct_CC" = x; then
3282 CC=""
3283 else
3284 case $cross_compiling:$ac_tool_warned in
3285 yes:)
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3288 ac_tool_warned=yes ;;
3289 esac
3290 CC=$ac_ct_CC
3291 fi
3292 fi
3293
3294 fi
3295
3296
3297 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error $? "no acceptable C compiler found in \$PATH
3300 See \`config.log' for more details" "$LINENO" 5; }
3301
3302 # Provide some information about the compiler.
3303 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3304 set X $ac_compile
3305 ac_compiler=$2
3306 for ac_option in --version -v -V -qversion; do
3307 { { ac_try="$ac_compiler $ac_option >&5"
3308 case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3315 ac_status=$?
3316 if test -s conftest.err; then
3317 sed '10a\
3318 ... rest of stderr output deleted ...
3319 10q' conftest.err >conftest.er1
3320 cat conftest.er1 >&5
3321 fi
3322 rm -f conftest.er1 conftest.err
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }
3325 done
3326
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3329
3330 int
3331 main ()
3332 {
3333
3334 ;
3335 return 0;
3336 }
3337 _ACEOF
3338 ac_clean_files_save=$ac_clean_files
3339 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3340 # Try to create an executable without -o first, disregard a.out.
3341 # It will help us diagnose broken compilers, and finding out an intuition
3342 # of exeext.
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3344 $as_echo_n "checking whether the C compiler works... " >&6; }
3345 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3346
3347 # The possible output files:
3348 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3349
3350 ac_rmfiles=
3351 for ac_file in $ac_files
3352 do
3353 case $ac_file in
3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3355 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3356 esac
3357 done
3358 rm -f $ac_rmfiles
3359
3360 if { { ac_try="$ac_link_default"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366 $as_echo "$ac_try_echo"; } >&5
3367 (eval "$ac_link_default") 2>&5
3368 ac_status=$?
3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370 test $ac_status = 0; }; then :
3371 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3372 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3373 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3374 # so that the user can short-circuit this test for compilers unknown to
3375 # Autoconf.
3376 for ac_file in $ac_files ''
3377 do
3378 test -f "$ac_file" || continue
3379 case $ac_file in
3380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3381 ;;
3382 [ab].out )
3383 # We found the default executable, but exeext='' is most
3384 # certainly right.
3385 break;;
3386 *.* )
3387 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3388 then :; else
3389 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 fi
3391 # We set ac_cv_exeext here because the later test for it is not
3392 # safe: cross compilers may not add the suffix if given an `-o'
3393 # argument, so we may need to know it at that point already.
3394 # Even if this section looks crufty: it has the advantage of
3395 # actually working.
3396 break;;
3397 * )
3398 break;;
3399 esac
3400 done
3401 test "$ac_cv_exeext" = no && ac_cv_exeext=
3402
3403 else
3404 ac_file=''
3405 fi
3406 if test -z "$ac_file"; then :
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 $as_echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3411
3412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error 77 "C compiler cannot create executables
3415 See \`config.log' for more details" "$LINENO" 5; }
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418 $as_echo "yes" >&6; }
3419 fi
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3421 $as_echo_n "checking for C compiler default output file name... " >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3423 $as_echo "$ac_file" >&6; }
3424 ac_exeext=$ac_cv_exeext
3425
3426 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3427 ac_clean_files=$ac_clean_files_save
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3429 $as_echo_n "checking for suffix of executables... " >&6; }
3430 if { { ac_try="$ac_link"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_link") 2>&5
3438 ac_status=$?
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }; then :
3441 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3442 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3443 # work properly (i.e., refer to `conftest.exe'), while it won't with
3444 # `rm'.
3445 for ac_file in conftest.exe conftest conftest.*; do
3446 test -f "$ac_file" || continue
3447 case $ac_file in
3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3449 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450 break;;
3451 * ) break;;
3452 esac
3453 done
3454 else
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3458 See \`config.log' for more details" "$LINENO" 5; }
3459 fi
3460 rm -f conftest conftest$ac_cv_exeext
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3462 $as_echo "$ac_cv_exeext" >&6; }
3463
3464 rm -f conftest.$ac_ext
3465 EXEEXT=$ac_cv_exeext
3466 ac_exeext=$EXEEXT
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3469 #include <stdio.h>
3470 int
3471 main ()
3472 {
3473 FILE *f = fopen ("conftest.out", "w");
3474 return ferror (f) || fclose (f) != 0;
3475
3476 ;
3477 return 0;
3478 }
3479 _ACEOF
3480 ac_clean_files="$ac_clean_files conftest.out"
3481 # Check that the compiler produces executables we can run. If not, either
3482 # the compiler is broken, or we cross compile.
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3484 $as_echo_n "checking whether we are cross compiling... " >&6; }
3485 if test "$cross_compiling" != yes; then
3486 { { ac_try="$ac_link"
3487 case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493 (eval "$ac_link") 2>&5
3494 ac_status=$?
3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496 test $ac_status = 0; }
3497 if { ac_try='./conftest$ac_cv_exeext'
3498 { { case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_try") 2>&5
3505 ac_status=$?
3506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507 test $ac_status = 0; }; }; then
3508 cross_compiling=no
3509 else
3510 if test "$cross_compiling" = maybe; then
3511 cross_compiling=yes
3512 else
3513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 as_fn_error $? "cannot run C compiled programs.
3516 If you meant to cross compile, use \`--host'.
3517 See \`config.log' for more details" "$LINENO" 5; }
3518 fi
3519 fi
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3522 $as_echo "$cross_compiling" >&6; }
3523
3524 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3525 ac_clean_files=$ac_clean_files_save
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3527 $as_echo_n "checking for suffix of object files... " >&6; }
3528 if ${ac_cv_objext+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3533
3534 int
3535 main ()
3536 {
3537
3538 ;
3539 return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.o conftest.obj
3543 if { { ac_try="$ac_compile"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549 $as_echo "$ac_try_echo"; } >&5
3550 (eval "$ac_compile") 2>&5
3551 ac_status=$?
3552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553 test $ac_status = 0; }; then :
3554 for ac_file in conftest.o conftest.obj conftest.*; do
3555 test -f "$ac_file" || continue;
3556 case $ac_file in
3557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3559 break;;
3560 esac
3561 done
3562 else
3563 $as_echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error $? "cannot compute suffix of object files: cannot compile
3569 See \`config.log' for more details" "$LINENO" 5; }
3570 fi
3571 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3574 $as_echo "$ac_cv_objext" >&6; }
3575 OBJEXT=$ac_cv_objext
3576 ac_objext=$OBJEXT
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3578 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3579 if ${ac_cv_c_compiler_gnu+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 int
3586 main ()
3587 {
3588 #ifndef __GNUC__
3589 choke me
3590 #endif
3591
3592 ;
3593 return 0;
3594 }
3595 _ACEOF
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_compiler_gnu=yes
3598 else
3599 ac_compiler_gnu=no
3600 fi
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3603
3604 fi
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3606 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3607 if test $ac_compiler_gnu = yes; then
3608 GCC=yes
3609 else
3610 GCC=
3611 fi
3612 ac_test_CFLAGS=${CFLAGS+set}
3613 ac_save_CFLAGS=$CFLAGS
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3615 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3616 if ${ac_cv_prog_cc_g+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 ac_save_c_werror_flag=$ac_c_werror_flag
3620 ac_c_werror_flag=yes
3621 ac_cv_prog_cc_g=no
3622 CFLAGS="-g"
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625
3626 int
3627 main ()
3628 {
3629
3630 ;
3631 return 0;
3632 }
3633 _ACEOF
3634 if ac_fn_c_try_compile "$LINENO"; then :
3635 ac_cv_prog_cc_g=yes
3636 else
3637 CFLAGS=""
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3640
3641 int
3642 main ()
3643 {
3644
3645 ;
3646 return 0;
3647 }
3648 _ACEOF
3649 if ac_fn_c_try_compile "$LINENO"; then :
3650
3651 else
3652 ac_c_werror_flag=$ac_save_c_werror_flag
3653 CFLAGS="-g"
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656
3657 int
3658 main ()
3659 {
3660
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 if ac_fn_c_try_compile "$LINENO"; then :
3666 ac_cv_prog_cc_g=yes
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 fi
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 fi
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 ac_c_werror_flag=$ac_save_c_werror_flag
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3676 $as_echo "$ac_cv_prog_cc_g" >&6; }
3677 if test "$ac_test_CFLAGS" = set; then
3678 CFLAGS=$ac_save_CFLAGS
3679 elif test $ac_cv_prog_cc_g = yes; then
3680 if test "$GCC" = yes; then
3681 CFLAGS="-g -O2"
3682 else
3683 CFLAGS="-g"
3684 fi
3685 else
3686 if test "$GCC" = yes; then
3687 CFLAGS="-O2"
3688 else
3689 CFLAGS=
3690 fi
3691 fi
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3693 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3694 if ${ac_cv_prog_cc_c89+:} false; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 ac_cv_prog_cc_c89=no
3698 ac_save_CC=$CC
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701 #include <stdarg.h>
3702 #include <stdio.h>
3703 struct stat;
3704 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3705 struct buf { int x; };
3706 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3707 static char *e (p, i)
3708 char **p;
3709 int i;
3710 {
3711 return p[i];
3712 }
3713 static char *f (char * (*g) (char **, int), char **p, ...)
3714 {
3715 char *s;
3716 va_list v;
3717 va_start (v,p);
3718 s = g (p, va_arg (v,int));
3719 va_end (v);
3720 return s;
3721 }
3722
3723 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3724 function prototypes and stuff, but not '\xHH' hex character constants.
3725 These don't provoke an error unfortunately, instead are silently treated
3726 as 'x'. The following induces an error, until -std is added to get
3727 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3728 array size at least. It's necessary to write '\x00'==0 to get something
3729 that's true only with -std. */
3730 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3731
3732 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3733 inside strings and character constants. */
3734 #define FOO(x) 'x'
3735 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3736
3737 int test (int i, double x);
3738 struct s1 {int (*f) (int a);};
3739 struct s2 {int (*f) (double a);};
3740 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3741 int argc;
3742 char **argv;
3743 int
3744 main ()
3745 {
3746 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3752 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3753 do
3754 CC="$ac_save_CC $ac_arg"
3755 if ac_fn_c_try_compile "$LINENO"; then :
3756 ac_cv_prog_cc_c89=$ac_arg
3757 fi
3758 rm -f core conftest.err conftest.$ac_objext
3759 test "x$ac_cv_prog_cc_c89" != "xno" && break
3760 done
3761 rm -f conftest.$ac_ext
3762 CC=$ac_save_CC
3763
3764 fi
3765 # AC_CACHE_VAL
3766 case "x$ac_cv_prog_cc_c89" in
3767 x)
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3769 $as_echo "none needed" >&6; } ;;
3770 xno)
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3772 $as_echo "unsupported" >&6; } ;;
3773 *)
3774 CC="$CC $ac_cv_prog_cc_c89"
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3776 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3777 esac
3778 if test "x$ac_cv_prog_cc_c89" != xno; then :
3779
3780 fi
3781
3782 ac_ext=c
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787
3788 ac_ext=c
3789 ac_cpp='$CPP $CPPFLAGS'
3790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3794 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3795 if ${am_cv_prog_cc_c_o+:} false; then :
3796 $as_echo_n "(cached) " >&6
3797 else
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800
3801 int
3802 main ()
3803 {
3804
3805 ;
3806 return 0;
3807 }
3808 _ACEOF
3809 # Make sure it works both with $CC and with simple cc.
3810 # Following AC_PROG_CC_C_O, we do the test twice because some
3811 # compilers refuse to overwrite an existing .o file with -o,
3812 # though they will create one.
3813 am_cv_prog_cc_c_o=yes
3814 for am_i in 1 2; do
3815 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3816 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } \
3820 && test -f conftest2.$ac_objext; then
3821 : OK
3822 else
3823 am_cv_prog_cc_c_o=no
3824 break
3825 fi
3826 done
3827 rm -f core conftest*
3828 unset am_i
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3831 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3832 if test "$am_cv_prog_cc_c_o" != yes; then
3833 # Losing compiler, so override with the script.
3834 # FIXME: It is wrong to rewrite CC.
3835 # But if we don't then we get into trouble of one sort or another.
3836 # A longer-term fix would be to have automake use am__CC in this case,
3837 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3838 CC="$am_aux_dir/compile $CC"
3839 fi
3840 ac_ext=c
3841 ac_cpp='$CPP $CPPFLAGS'
3842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845
3846
3847 depcc="$CC" am_compiler_list=
3848
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3850 $as_echo_n "checking dependency style of $depcc... " >&6; }
3851 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3855 # We make a subdir and do the tests there. Otherwise we can end up
3856 # making bogus files that we don't know about and never remove. For
3857 # instance it was reported that on HP-UX the gcc test will end up
3858 # making a dummy file named 'D' -- because '-MD' means "put the output
3859 # in D".
3860 rm -rf conftest.dir
3861 mkdir conftest.dir
3862 # Copy depcomp to subdir because otherwise we won't find it if we're
3863 # using a relative directory.
3864 cp "$am_depcomp" conftest.dir
3865 cd conftest.dir
3866 # We will build objects and dependencies in a subdirectory because
3867 # it helps to detect inapplicable dependency modes. For instance
3868 # both Tru64's cc and ICC support -MD to output dependencies as a
3869 # side effect of compilation, but ICC will put the dependencies in
3870 # the current directory while Tru64 will put them in the object
3871 # directory.
3872 mkdir sub
3873
3874 am_cv_CC_dependencies_compiler_type=none
3875 if test "$am_compiler_list" = ""; then
3876 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3877 fi
3878 am__universal=false
3879 case " $depcc " in #(
3880 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3881 esac
3882
3883 for depmode in $am_compiler_list; do
3884 # Setup a source with many dependencies, because some compilers
3885 # like to wrap large dependency lists on column 80 (with \), and
3886 # we should not choose a depcomp mode which is confused by this.
3887 #
3888 # We need to recreate these files for each test, as the compiler may
3889 # overwrite some of them when testing with obscure command lines.
3890 # This happens at least with the AIX C compiler.
3891 : > sub/conftest.c
3892 for i in 1 2 3 4 5 6; do
3893 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3894 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3895 # Solaris 10 /bin/sh.
3896 echo '/* dummy */' > sub/conftst$i.h
3897 done
3898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3899
3900 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3901 # mode. It turns out that the SunPro C++ compiler does not properly
3902 # handle '-M -o', and we need to detect this. Also, some Intel
3903 # versions had trouble with output in subdirs.
3904 am__obj=sub/conftest.${OBJEXT-o}
3905 am__minus_obj="-o $am__obj"
3906 case $depmode in
3907 gcc)
3908 # This depmode causes a compiler race in universal mode.
3909 test "$am__universal" = false || continue
3910 ;;
3911 nosideeffect)
3912 # After this tag, mechanisms are not by side-effect, so they'll
3913 # only be used when explicitly requested.
3914 if test "x$enable_dependency_tracking" = xyes; then
3915 continue
3916 else
3917 break
3918 fi
3919 ;;
3920 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3921 # This compiler won't grok '-c -o', but also, the minuso test has
3922 # not run yet. These depmodes are late enough in the game, and
3923 # so weak that their functioning should not be impacted.
3924 am__obj=conftest.${OBJEXT-o}
3925 am__minus_obj=
3926 ;;
3927 none) break ;;
3928 esac
3929 if depmode=$depmode \
3930 source=sub/conftest.c object=$am__obj \
3931 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3932 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3933 >/dev/null 2>conftest.err &&
3934 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3935 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3936 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3937 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3938 # icc doesn't choke on unknown options, it will just issue warnings
3939 # or remarks (even with -Werror). So we grep stderr for any message
3940 # that says an option was ignored or not supported.
3941 # When given -MP, icc 7.0 and 7.1 complain thusly:
3942 # icc: Command line warning: ignoring option '-M'; no argument required
3943 # The diagnosis changed in icc 8.0:
3944 # icc: Command line remark: option '-MP' not supported
3945 if (grep 'ignoring option' conftest.err ||
3946 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3947 am_cv_CC_dependencies_compiler_type=$depmode
3948 break
3949 fi
3950 fi
3951 done
3952
3953 cd ..
3954 rm -rf conftest.dir
3955 else
3956 am_cv_CC_dependencies_compiler_type=none
3957 fi
3958
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3961 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3962 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3963
3964 if
3965 test "x$enable_dependency_tracking" != xno \
3966 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3967 am__fastdepCC_TRUE=
3968 am__fastdepCC_FALSE='#'
3969 else
3970 am__fastdepCC_TRUE='#'
3971 am__fastdepCC_FALSE=
3972 fi
3973
3974
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3976 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3977 if ${ac_cv_prog_cc_c99+:} false; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 ac_cv_prog_cc_c99=no
3981 ac_save_CC=$CC
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3984 #include <stdarg.h>
3985 #include <stdbool.h>
3986 #include <stdlib.h>
3987 #include <wchar.h>
3988 #include <stdio.h>
3989
3990 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3991 #define debug(...) fprintf (stderr, __VA_ARGS__)
3992 #define showlist(...) puts (#__VA_ARGS__)
3993 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3994 static void
3995 test_varargs_macros (void)
3996 {
3997 int x = 1234;
3998 int y = 5678;
3999 debug ("Flag");
4000 debug ("X = %d\n", x);
4001 showlist (The first, second, and third items.);
4002 report (x>y, "x is %d but y is %d", x, y);
4003 }
4004
4005 // Check long long types.
4006 #define BIG64 18446744073709551615ull
4007 #define BIG32 4294967295ul
4008 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4009 #if !BIG_OK
4010 your preprocessor is broken;
4011 #endif
4012 #if BIG_OK
4013 #else
4014 your preprocessor is broken;
4015 #endif
4016 static long long int bignum = -9223372036854775807LL;
4017 static unsigned long long int ubignum = BIG64;
4018
4019 struct incomplete_array
4020 {
4021 int datasize;
4022 double data[];
4023 };
4024
4025 struct named_init {
4026 int number;
4027 const wchar_t *name;
4028 double average;
4029 };
4030
4031 typedef const char *ccp;
4032
4033 static inline int
4034 test_restrict (ccp restrict text)
4035 {
4036 // See if C++-style comments work.
4037 // Iterate through items via the restricted pointer.
4038 // Also check for declarations in for loops.
4039 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4040 continue;
4041 return 0;
4042 }
4043
4044 // Check varargs and va_copy.
4045 static void
4046 test_varargs (const char *format, ...)
4047 {
4048 va_list args;
4049 va_start (args, format);
4050 va_list args_copy;
4051 va_copy (args_copy, args);
4052
4053 const char *str;
4054 int number;
4055 float fnumber;
4056
4057 while (*format)
4058 {
4059 switch (*format++)
4060 {
4061 case 's': // string
4062 str = va_arg (args_copy, const char *);
4063 break;
4064 case 'd': // int
4065 number = va_arg (args_copy, int);
4066 break;
4067 case 'f': // float
4068 fnumber = va_arg (args_copy, double);
4069 break;
4070 default:
4071 break;
4072 }
4073 }
4074 va_end (args_copy);
4075 va_end (args);
4076 }
4077
4078 int
4079 main ()
4080 {
4081
4082 // Check bool.
4083 _Bool success = false;
4084
4085 // Check restrict.
4086 if (test_restrict ("String literal") == 0)
4087 success = true;
4088 char *restrict newvar = "Another string";
4089
4090 // Check varargs.
4091 test_varargs ("s, d' f .", "string", 65, 34.234);
4092 test_varargs_macros ();
4093
4094 // Check flexible array members.
4095 struct incomplete_array *ia =
4096 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4097 ia->datasize = 10;
4098 for (int i = 0; i < ia->datasize; ++i)
4099 ia->data[i] = i * 1.234;
4100
4101 // Check named initializers.
4102 struct named_init ni = {
4103 .number = 34,
4104 .name = L"Test wide string",
4105 .average = 543.34343,
4106 };
4107
4108 ni.number = 58;
4109
4110 int dynamic_array[ni.number];
4111 dynamic_array[ni.number - 1] = 543;
4112
4113 // work around unused variable warnings
4114 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4115 || dynamic_array[ni.number - 1] != 543);
4116
4117 ;
4118 return 0;
4119 }
4120 _ACEOF
4121 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4122 do
4123 CC="$ac_save_CC $ac_arg"
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_cv_prog_cc_c99=$ac_arg
4126 fi
4127 rm -f core conftest.err conftest.$ac_objext
4128 test "x$ac_cv_prog_cc_c99" != "xno" && break
4129 done
4130 rm -f conftest.$ac_ext
4131 CC=$ac_save_CC
4132
4133 fi
4134 # AC_CACHE_VAL
4135 case "x$ac_cv_prog_cc_c99" in
4136 x)
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4138 $as_echo "none needed" >&6; } ;;
4139 xno)
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4141 $as_echo "unsupported" >&6; } ;;
4142 *)
4143 CC="$CC $ac_cv_prog_cc_c99"
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4145 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4146 esac
4147 if test "x$ac_cv_prog_cc_c99" != xno; then :
4148
4149 fi
4150
4151
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4153 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4154 set x ${MAKE-make}
4155 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4156 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 cat >conftest.make <<\_ACEOF
4160 SHELL = /bin/sh
4161 all:
4162 @echo '@@@%%%=$(MAKE)=@@@%%%'
4163 _ACEOF
4164 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4165 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4166 *@@@%%%=?*=@@@%%%*)
4167 eval ac_cv_prog_make_${ac_make}_set=yes;;
4168 *)
4169 eval ac_cv_prog_make_${ac_make}_set=no;;
4170 esac
4171 rm -f conftest.make
4172 fi
4173 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4175 $as_echo "yes" >&6; }
4176 SET_MAKE=
4177 else
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4180 SET_MAKE="MAKE=${MAKE-make}"
4181 fi
4182
4183
4184 ac_ext=c
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4190 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4191 # On Suns, sometimes $CPP names a directory.
4192 if test -n "$CPP" && test -d "$CPP"; then
4193 CPP=
4194 fi
4195 if test -z "$CPP"; then
4196 if ${ac_cv_prog_CPP+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 # Double quotes because CPP needs to be expanded
4200 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4201 do
4202 ac_preproc_ok=false
4203 for ac_c_preproc_warn_flag in '' yes
4204 do
4205 # Use a header file that comes with gcc, so configuring glibc
4206 # with a fresh cross-compiler works.
4207 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4208 # <limits.h> exists even on freestanding compilers.
4209 # On the NeXT, cc -E runs the code through the compiler's parser,
4210 # not just through cpp. "Syntax error" is here to catch this case.
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4213 #ifdef __STDC__
4214 # include <limits.h>
4215 #else
4216 # include <assert.h>
4217 #endif
4218 Syntax error
4219 _ACEOF
4220 if ac_fn_c_try_cpp "$LINENO"; then :
4221
4222 else
4223 # Broken: fails on valid input.
4224 continue
4225 fi
4226 rm -f conftest.err conftest.i conftest.$ac_ext
4227
4228 # OK, works on sane cases. Now check whether nonexistent headers
4229 # can be detected and how.
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232 #include <ac_nonexistent.h>
4233 _ACEOF
4234 if ac_fn_c_try_cpp "$LINENO"; then :
4235 # Broken: success on invalid input.
4236 continue
4237 else
4238 # Passes both tests.
4239 ac_preproc_ok=:
4240 break
4241 fi
4242 rm -f conftest.err conftest.i conftest.$ac_ext
4243
4244 done
4245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4246 rm -f conftest.i conftest.err conftest.$ac_ext
4247 if $ac_preproc_ok; then :
4248 break
4249 fi
4250
4251 done
4252 ac_cv_prog_CPP=$CPP
4253
4254 fi
4255 CPP=$ac_cv_prog_CPP
4256 else
4257 ac_cv_prog_CPP=$CPP
4258 fi
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4260 $as_echo "$CPP" >&6; }
4261 ac_preproc_ok=false
4262 for ac_c_preproc_warn_flag in '' yes
4263 do
4264 # Use a header file that comes with gcc, so configuring glibc
4265 # with a fresh cross-compiler works.
4266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4267 # <limits.h> exists even on freestanding compilers.
4268 # On the NeXT, cc -E runs the code through the compiler's parser,
4269 # not just through cpp. "Syntax error" is here to catch this case.
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272 #ifdef __STDC__
4273 # include <limits.h>
4274 #else
4275 # include <assert.h>
4276 #endif
4277 Syntax error
4278 _ACEOF
4279 if ac_fn_c_try_cpp "$LINENO"; then :
4280
4281 else
4282 # Broken: fails on valid input.
4283 continue
4284 fi
4285 rm -f conftest.err conftest.i conftest.$ac_ext
4286
4287 # OK, works on sane cases. Now check whether nonexistent headers
4288 # can be detected and how.
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4291 #include <ac_nonexistent.h>
4292 _ACEOF
4293 if ac_fn_c_try_cpp "$LINENO"; then :
4294 # Broken: success on invalid input.
4295 continue
4296 else
4297 # Passes both tests.
4298 ac_preproc_ok=:
4299 break
4300 fi
4301 rm -f conftest.err conftest.i conftest.$ac_ext
4302
4303 done
4304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4305 rm -f conftest.i conftest.err conftest.$ac_ext
4306 if $ac_preproc_ok; then :
4307
4308 else
4309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4311 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4312 See \`config.log' for more details" "$LINENO" 5; }
4313 fi
4314
4315 ac_ext=c
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320
4321
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4323 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4324 if ${ac_cv_path_GREP+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 if test -z "$GREP"; then
4328 ac_path_GREP_found=false
4329 # Loop through the user's path and test for each of PROGNAME-LIST
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4332 do
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_prog in grep ggrep; do
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4338 as_fn_executable_p "$ac_path_GREP" || continue
4339 # Check for GNU ac_path_GREP and select it if it is found.
4340 # Check for GNU $ac_path_GREP
4341 case `"$ac_path_GREP" --version 2>&1` in
4342 *GNU*)
4343 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4344 *)
4345 ac_count=0
4346 $as_echo_n 0123456789 >"conftest.in"
4347 while :
4348 do
4349 cat "conftest.in" "conftest.in" >"conftest.tmp"
4350 mv "conftest.tmp" "conftest.in"
4351 cp "conftest.in" "conftest.nl"
4352 $as_echo 'GREP' >> "conftest.nl"
4353 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4354 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4355 as_fn_arith $ac_count + 1 && ac_count=$as_val
4356 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4357 # Best one so far, save it but keep looking for a better one
4358 ac_cv_path_GREP="$ac_path_GREP"
4359 ac_path_GREP_max=$ac_count
4360 fi
4361 # 10*(2^10) chars as input seems more than enough
4362 test $ac_count -gt 10 && break
4363 done
4364 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4365 esac
4366
4367 $ac_path_GREP_found && break 3
4368 done
4369 done
4370 done
4371 IFS=$as_save_IFS
4372 if test -z "$ac_cv_path_GREP"; then
4373 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4374 fi
4375 else
4376 ac_cv_path_GREP=$GREP
4377 fi
4378
4379 fi
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4381 $as_echo "$ac_cv_path_GREP" >&6; }
4382 GREP="$ac_cv_path_GREP"
4383
4384
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4386 $as_echo_n "checking for egrep... " >&6; }
4387 if ${ac_cv_path_EGREP+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4391 then ac_cv_path_EGREP="$GREP -E"
4392 else
4393 if test -z "$EGREP"; then
4394 ac_path_EGREP_found=false
4395 # Loop through the user's path and test for each of PROGNAME-LIST
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4398 do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_prog in egrep; do
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4404 as_fn_executable_p "$ac_path_EGREP" || continue
4405 # Check for GNU ac_path_EGREP and select it if it is found.
4406 # Check for GNU $ac_path_EGREP
4407 case `"$ac_path_EGREP" --version 2>&1` in
4408 *GNU*)
4409 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4410 *)
4411 ac_count=0
4412 $as_echo_n 0123456789 >"conftest.in"
4413 while :
4414 do
4415 cat "conftest.in" "conftest.in" >"conftest.tmp"
4416 mv "conftest.tmp" "conftest.in"
4417 cp "conftest.in" "conftest.nl"
4418 $as_echo 'EGREP' >> "conftest.nl"
4419 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4421 as_fn_arith $ac_count + 1 && ac_count=$as_val
4422 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4423 # Best one so far, save it but keep looking for a better one
4424 ac_cv_path_EGREP="$ac_path_EGREP"
4425 ac_path_EGREP_max=$ac_count
4426 fi
4427 # 10*(2^10) chars as input seems more than enough
4428 test $ac_count -gt 10 && break
4429 done
4430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4431 esac
4432
4433 $ac_path_EGREP_found && break 3
4434 done
4435 done
4436 done
4437 IFS=$as_save_IFS
4438 if test -z "$ac_cv_path_EGREP"; then
4439 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4440 fi
4441 else
4442 ac_cv_path_EGREP=$EGREP
4443 fi
4444
4445 fi
4446 fi
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4448 $as_echo "$ac_cv_path_EGREP" >&6; }
4449 EGREP="$ac_cv_path_EGREP"
4450
4451
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4453 $as_echo_n "checking for ANSI C header files... " >&6; }
4454 if ${ac_cv_header_stdc+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 #include <stdlib.h>
4460 #include <stdarg.h>
4461 #include <string.h>
4462 #include <float.h>
4463
4464 int
4465 main ()
4466 {
4467
4468 ;
4469 return 0;
4470 }
4471 _ACEOF
4472 if ac_fn_c_try_compile "$LINENO"; then :
4473 ac_cv_header_stdc=yes
4474 else
4475 ac_cv_header_stdc=no
4476 fi
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478
4479 if test $ac_cv_header_stdc = yes; then
4480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 #include <string.h>
4484
4485 _ACEOF
4486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4487 $EGREP "memchr" >/dev/null 2>&1; then :
4488
4489 else
4490 ac_cv_header_stdc=no
4491 fi
4492 rm -f conftest*
4493
4494 fi
4495
4496 if test $ac_cv_header_stdc = yes; then
4497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500 #include <stdlib.h>
4501
4502 _ACEOF
4503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4504 $EGREP "free" >/dev/null 2>&1; then :
4505
4506 else
4507 ac_cv_header_stdc=no
4508 fi
4509 rm -f conftest*
4510
4511 fi
4512
4513 if test $ac_cv_header_stdc = yes; then
4514 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4515 if test "$cross_compiling" = yes; then :
4516 :
4517 else
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520 #include <ctype.h>
4521 #include <stdlib.h>
4522 #if ((' ' & 0x0FF) == 0x020)
4523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4525 #else
4526 # define ISLOWER(c) \
4527 (('a' <= (c) && (c) <= 'i') \
4528 || ('j' <= (c) && (c) <= 'r') \
4529 || ('s' <= (c) && (c) <= 'z'))
4530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4531 #endif
4532
4533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4534 int
4535 main ()
4536 {
4537 int i;
4538 for (i = 0; i < 256; i++)
4539 if (XOR (islower (i), ISLOWER (i))
4540 || toupper (i) != TOUPPER (i))
4541 return 2;
4542 return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_run "$LINENO"; then :
4546
4547 else
4548 ac_cv_header_stdc=no
4549 fi
4550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4551 conftest.$ac_objext conftest.beam conftest.$ac_ext
4552 fi
4553
4554 fi
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4557 $as_echo "$ac_cv_header_stdc" >&6; }
4558 if test $ac_cv_header_stdc = yes; then
4559
4560 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4561
4562 fi
4563
4564 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4565 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4566 inttypes.h stdint.h unistd.h
4567 do :
4568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4569 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4570 "
4571 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4572 cat >>confdefs.h <<_ACEOF
4573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4574 _ACEOF
4575
4576 fi
4577
4578 done
4579
4580
4581
4582 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4583 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4584 MINIX=yes
4585 else
4586 MINIX=
4587 fi
4588
4589
4590 if test "$MINIX" = yes; then
4591
4592 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4593
4594
4595 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4596
4597
4598 $as_echo "#define _MINIX 1" >>confdefs.h
4599
4600 fi
4601
4602
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4604 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4605 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4610
4611 # define __EXTENSIONS__ 1
4612 $ac_includes_default
4613 int
4614 main ()
4615 {
4616
4617 ;
4618 return 0;
4619 }
4620 _ACEOF
4621 if ac_fn_c_try_compile "$LINENO"; then :
4622 ac_cv_safe_to_define___extensions__=yes
4623 else
4624 ac_cv_safe_to_define___extensions__=no
4625 fi
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4629 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4630 test $ac_cv_safe_to_define___extensions__ = yes &&
4631 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4632
4633 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4634
4635 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4636
4637 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4638
4639 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4640
4641
4642
4643 if test "$GCC" = "yes"
4644 then
4645
4646
4647
4648
4649
4650 # $is_release = (.git directory does not exist)
4651 if test -d ${srcdir}/.git; then :
4652 ax_is_release=no
4653 else
4654 ax_is_release=yes
4655 fi
4656
4657
4658
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4660 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4661 if ${ac_cv_path_SED+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4665 for ac_i in 1 2 3 4 5 6 7; do
4666 ac_script="$ac_script$as_nl$ac_script"
4667 done
4668 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4669 { ac_script=; unset ac_script;}
4670 if test -z "$SED"; then
4671 ac_path_SED_found=false
4672 # Loop through the user's path and test for each of PROGNAME-LIST
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_prog in sed gsed; do
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4681 as_fn_executable_p "$ac_path_SED" || continue
4682 # Check for GNU ac_path_SED and select it if it is found.
4683 # Check for GNU $ac_path_SED
4684 case `"$ac_path_SED" --version 2>&1` in
4685 *GNU*)
4686 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4687 *)
4688 ac_count=0
4689 $as_echo_n 0123456789 >"conftest.in"
4690 while :
4691 do
4692 cat "conftest.in" "conftest.in" >"conftest.tmp"
4693 mv "conftest.tmp" "conftest.in"
4694 cp "conftest.in" "conftest.nl"
4695 $as_echo '' >> "conftest.nl"
4696 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4698 as_fn_arith $ac_count + 1 && ac_count=$as_val
4699 if test $ac_count -gt ${ac_path_SED_max-0}; then
4700 # Best one so far, save it but keep looking for a better one
4701 ac_cv_path_SED="$ac_path_SED"
4702 ac_path_SED_max=$ac_count
4703 fi
4704 # 10*(2^10) chars as input seems more than enough
4705 test $ac_count -gt 10 && break
4706 done
4707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4708 esac
4709
4710 $ac_path_SED_found && break 3
4711 done
4712 done
4713 done
4714 IFS=$as_save_IFS
4715 if test -z "$ac_cv_path_SED"; then
4716 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4717 fi
4718 else
4719 ac_cv_path_SED=$SED
4720 fi
4721
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4724 $as_echo "$ac_cv_path_SED" >&6; }
4725 SED="$ac_cv_path_SED"
4726 rm -f conftest.sed
4727
4728
4729 # C support is enabled by default.
4730
4731
4732 # Only enable C++ support if AC_PROG_CXX is called. The redefinition of
4733 # AC_PROG_CXX is so that a fatal error is emitted if this macro is called
4734 # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be
4735 # checked.
4736
4737
4738
4739
4740 # Default value for IS-RELEASE is $ax_is_release
4741 ax_compiler_flags_is_release=$ax_is_release
4742
4743 # Check whether --enable-compile-warnings was given.
4744 if test "${enable_compile_warnings+set}" = set; then :
4745 enableval=$enable_compile_warnings;
4746 else
4747 if test "$ax_compiler_flags_is_release" = "yes"; then :
4748 enable_compile_warnings="yes"
4749 else
4750 enable_compile_warnings="error"
4751 fi
4752 fi
4753
4754 # Check whether --enable-Werror was given.
4755 if test "${enable_Werror+set}" = set; then :
4756 enableval=$enable_Werror;
4757 else
4758 enable_Werror=maybe
4759 fi
4760
4761
4762 # Return the user's chosen warning level
4763 if test "$enable_Werror" = "no" -a \
4764 "$enable_compile_warnings" = "error"; then :
4765
4766 enable_compile_warnings="yes"
4767
4768 fi
4769
4770 ax_enable_compile_warnings=$enable_compile_warnings
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781 # Variable names
4782
4783
4784 ac_ext=c
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789
4790
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4793
4794 #ifndef __cplusplus
4795 #error "no C++"
4796 #endif
4797 int
4798 main ()
4799 {
4800
4801 ;
4802 return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806 ax_compiler_cxx=yes;
4807 else
4808 ax_compiler_cxx=no;
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811
4812 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
4813 # flags, otherwise they are always appended to the warn_cflags variable, and
4814 # Clang warns on them for every compilation unit.
4815 # If this is passed to GCC, it will explode, so the flag must be enabled
4816 # conditionally.
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
4818 $as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
4819 if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822
4823 ax_check_save_flags=$CFLAGS
4824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4827
4828 int
4829 main ()
4830 {
4831
4832 ;
4833 return 0;
4834 }
4835 _ACEOF
4836 if ac_fn_c_try_compile "$LINENO"; then :
4837 ax_cv_check_cflags___Werror_unknown_warning_option=yes
4838 else
4839 ax_cv_check_cflags___Werror_unknown_warning_option=no
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842 CFLAGS=$ax_check_save_flags
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
4845 $as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
4846 if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
4847
4848 ax_compiler_flags_test="-Werror=unknown-warning-option"
4849
4850 else
4851
4852 ax_compiler_flags_test=""
4853
4854 fi
4855
4856
4857 # Check that -Wno-suggest-attribute=format is supported
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-suggest-attribute=format" >&5
4859 $as_echo_n "checking whether C compiler accepts -Wno-suggest-attribute=format... " >&6; }
4860 if ${ax_cv_check_cflags___Wno_suggest_attribute_format+:} false; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863
4864 ax_check_save_flags=$CFLAGS
4865 CFLAGS="$CFLAGS -Wno-suggest-attribute=format"
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868
4869 int
4870 main ()
4871 {
4872
4873 ;
4874 return 0;
4875 }
4876 _ACEOF
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 ax_cv_check_cflags___Wno_suggest_attribute_format=yes
4879 else
4880 ax_cv_check_cflags___Wno_suggest_attribute_format=no
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 CFLAGS=$ax_check_save_flags
4884 fi
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_suggest_attribute_format" >&5
4886 $as_echo "$ax_cv_check_cflags___Wno_suggest_attribute_format" >&6; }
4887 if test "x$ax_cv_check_cflags___Wno_suggest_attribute_format" = xyes; then :
4888
4889 ax_compiler_no_suggest_attribute_flags="-Wno-suggest-attribute=format"
4890
4891 else
4892
4893 ax_compiler_no_suggest_attribute_flags=""
4894
4895 fi
4896
4897
4898 # Base flags
4899
4900
4901
4902
4903 for flag in -fno-strict-aliasing ; do
4904 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
4906 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
4907 if eval \${$as_CACHEVAR+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910
4911 ax_check_save_flags=$CFLAGS
4912 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915
4916 int
4917 main ()
4918 {
4919
4920 ;
4921 return 0;
4922 }
4923 _ACEOF
4924 if ac_fn_c_try_compile "$LINENO"; then :
4925 eval "$as_CACHEVAR=yes"
4926 else
4927 eval "$as_CACHEVAR=no"
4928 fi
4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 CFLAGS=$ax_check_save_flags
4931 fi
4932 eval ac_res=\$$as_CACHEVAR
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4934 $as_echo "$ac_res" >&6; }
4935 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
4936
4937 if ${WARN_CFLAGS+:} false; then :
4938
4939 case " $WARN_CFLAGS " in #(
4940 *" $flag "*) :
4941 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
4942 (: WARN_CFLAGS already contains $flag) 2>&5
4943 ac_status=$?
4944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4945 test $ac_status = 0; } ;; #(
4946 *) :
4947
4948 as_fn_append WARN_CFLAGS " $flag"
4949 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
4950 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
4951 ac_status=$?
4952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4953 test $ac_status = 0; }
4954 ;;
4955 esac
4956
4957 else
4958
4959 WARN_CFLAGS=$flag
4960 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
4961 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
4962 ac_status=$?
4963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4964 test $ac_status = 0; }
4965
4966 fi
4967
4968 else
4969 :
4970 fi
4971
4972 done
4973
4974
4975 if test "$ax_enable_compile_warnings" != "no"; then :
4976
4977 if test "$ax_compiler_cxx" = "no" ; then
4978 # C-only flags. Warn in C++
4979
4980
4981
4982
4983 for flag in -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wimplicit-function-declaration -Wold-style-definition -Wjump-misses-init ; do
4984 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
4986 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
4987 if eval \${$as_CACHEVAR+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990
4991 ax_check_save_flags=$CFLAGS
4992 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995
4996 int
4997 main ()
4998 {
4999
5000 ;
5001 return 0;
5002 }
5003 _ACEOF
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005 eval "$as_CACHEVAR=yes"
5006 else
5007 eval "$as_CACHEVAR=no"
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 CFLAGS=$ax_check_save_flags
5011 fi
5012 eval ac_res=\$$as_CACHEVAR
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5014 $as_echo "$ac_res" >&6; }
5015 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
5016
5017 if ${WARN_CFLAGS+:} false; then :
5018
5019 case " $WARN_CFLAGS " in #(
5020 *" $flag "*) :
5021 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
5022 (: WARN_CFLAGS already contains $flag) 2>&5
5023 ac_status=$?
5024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5025 test $ac_status = 0; } ;; #(
5026 *) :
5027
5028 as_fn_append WARN_CFLAGS " $flag"
5029 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
5030 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
5031 ac_status=$?
5032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5033 test $ac_status = 0; }
5034 ;;
5035 esac
5036
5037 else
5038
5039 WARN_CFLAGS=$flag
5040 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
5041 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
5042 ac_status=$?
5043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044 test $ac_status = 0; }
5045
5046 fi
5047
5048 else
5049 :
5050 fi
5051
5052 done
5053
5054 fi
5055
5056 # "yes" flags
5057
5058
5059
5060
5061 for flag in -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wdouble-promotion ; do
5062 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
5064 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
5065 if eval \${$as_CACHEVAR+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068
5069 ax_check_save_flags=$CFLAGS
5070 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5073
5074 int
5075 main ()
5076 {
5077
5078 ;
5079 return 0;
5080 }
5081 _ACEOF
5082 if ac_fn_c_try_compile "$LINENO"; then :
5083 eval "$as_CACHEVAR=yes"
5084 else
5085 eval "$as_CACHEVAR=no"
5086 fi
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 CFLAGS=$ax_check_save_flags
5089 fi
5090 eval ac_res=\$$as_CACHEVAR
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5092 $as_echo "$ac_res" >&6; }
5093 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
5094
5095 if ${WARN_CFLAGS+:} false; then :
5096
5097 case " $WARN_CFLAGS " in #(
5098 *" $flag "*) :
5099 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
5100 (: WARN_CFLAGS already contains $flag) 2>&5
5101 ac_status=$?
5102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5103 test $ac_status = 0; } ;; #(
5104 *) :
5105
5106 as_fn_append WARN_CFLAGS " $flag"
5107 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
5108 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
5109 ac_status=$?
5110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5111 test $ac_status = 0; }
5112 ;;
5113 esac
5114
5115 else
5116
5117 WARN_CFLAGS=$flag
5118 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
5119 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
5120 ac_status=$?
5121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5122 test $ac_status = 0; }
5123
5124 fi
5125
5126 else
5127 :
5128 fi
5129
5130 done
5131
5132
5133 fi
5134 if test "$ax_enable_compile_warnings" = "error"; then :
5135
5136 # "error" flags; -Werror has to be appended unconditionally because
5137 # it's not possible to test for
5138 #
5139 # suggest-attribute=format is disabled because it gives too many false
5140 # positives
5141
5142 if ${WARN_CFLAGS+:} false; then :
5143
5144 case " $WARN_CFLAGS " in #(
5145 *" -Werror "*) :
5146 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5
5147 (: WARN_CFLAGS already contains -Werror) 2>&5
5148 ac_status=$?
5149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5150 test $ac_status = 0; } ;; #(
5151 *) :
5152
5153 as_fn_append WARN_CFLAGS " -Werror"
5154 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
5155 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
5156 ac_status=$?
5157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5158 test $ac_status = 0; }
5159 ;;
5160 esac
5161
5162 else
5163
5164 WARN_CFLAGS=-Werror
5165 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
5166 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
5167 ac_status=$?
5168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5169 test $ac_status = 0; }
5170
5171 fi
5172
5173
5174
5175
5176
5177
5178 for flag in $ax_compiler_no_suggest_attribute_flags ; do
5179 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
5181 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
5182 if eval \${$as_CACHEVAR+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185
5186 ax_check_save_flags=$CFLAGS
5187 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5190
5191 int
5192 main ()
5193 {
5194
5195 ;
5196 return 0;
5197 }
5198 _ACEOF
5199 if ac_fn_c_try_compile "$LINENO"; then :
5200 eval "$as_CACHEVAR=yes"
5201 else
5202 eval "$as_CACHEVAR=no"
5203 fi
5204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205 CFLAGS=$ax_check_save_flags
5206 fi
5207 eval ac_res=\$$as_CACHEVAR
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5209 $as_echo "$ac_res" >&6; }
5210 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
5211
5212 if ${WARN_CFLAGS+:} false; then :
5213
5214 case " $WARN_CFLAGS " in #(
5215 *" $flag "*) :
5216 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
5217 (: WARN_CFLAGS already contains $flag) 2>&5
5218 ac_status=$?
5219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5220 test $ac_status = 0; } ;; #(
5221 *) :
5222
5223 as_fn_append WARN_CFLAGS " $flag"
5224 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
5225 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
5226 ac_status=$?
5227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5228 test $ac_status = 0; }
5229 ;;
5230 esac
5231
5232 else
5233
5234 WARN_CFLAGS=$flag
5235 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
5236 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
5237 ac_status=$?
5238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5239 test $ac_status = 0; }
5240
5241 fi
5242
5243 else
5244 :
5245 fi
5246
5247 done
5248
5249
5250 fi
5251
5252 # In the flags below, when disabling specific flags, always add *both*
5253 # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example)
5254 # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall,
5255 # which effectively turns that flag back on again as an error.
5256 for flag in $WARN_CFLAGS; do
5257 case $flag in #(
5258 -Wno-*=*) :
5259 ;; #(
5260 -Wno-*) :
5261
5262
5263
5264
5265
5266 for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do
5267 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
5269 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
5270 if eval \${$as_CACHEVAR+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273
5274 ax_check_save_flags=$CFLAGS
5275 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278
5279 int
5280 main ()
5281 {
5282
5283 ;
5284 return 0;
5285 }
5286 _ACEOF
5287 if ac_fn_c_try_compile "$LINENO"; then :
5288 eval "$as_CACHEVAR=yes"
5289 else
5290 eval "$as_CACHEVAR=no"
5291 fi
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 CFLAGS=$ax_check_save_flags
5294 fi
5295 eval ac_res=\$$as_CACHEVAR
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5297 $as_echo "$ac_res" >&6; }
5298 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
5299
5300 if ${WARN_CFLAGS+:} false; then :
5301
5302 case " $WARN_CFLAGS " in #(
5303 *" $flag "*) :
5304 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
5305 (: WARN_CFLAGS already contains $flag) 2>&5
5306 ac_status=$?
5307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5308 test $ac_status = 0; } ;; #(
5309 *) :
5310
5311 as_fn_append WARN_CFLAGS " $flag"
5312 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
5313 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
5314 ac_status=$?
5315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5316 test $ac_status = 0; }
5317 ;;
5318 esac
5319
5320 else
5321
5322 WARN_CFLAGS=$flag
5323 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
5324 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
5325 ac_status=$?
5326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5327 test $ac_status = 0; }
5328
5329 fi
5330
5331 else
5332 :
5333 fi
5334
5335 done
5336
5337 ;; #(
5338 *) :
5339 ;;
5340 esac
5341 done
5342
5343 ac_ext=c
5344 ac_cpp='$CPP $CPPFLAGS'
5345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5348
5349
5350 # Substitute the variables
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364 # Variable names
5365
5366
5367 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
5368 # flags, otherwise they are always appended to the warn_ldflags variable,
5369 # and Clang warns on them for every compilation unit.
5370 # If this is passed to GCC, it will explode, so the flag must be enabled
5371 # conditionally.
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
5373 $as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
5374 if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377
5378 ax_check_save_flags=$CFLAGS
5379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5382
5383 int
5384 main ()
5385 {
5386
5387 ;
5388 return 0;
5389 }
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392 ax_cv_check_cflags___Werror_unknown_warning_option=yes
5393 else
5394 ax_cv_check_cflags___Werror_unknown_warning_option=no
5395 fi
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 CFLAGS=$ax_check_save_flags
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
5400 $as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
5401 if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
5402
5403 ax_compiler_flags_test="-Werror=unknown-warning-option"
5404
5405 else
5406
5407 ax_compiler_flags_test=""
5408
5409 fi
5410
5411
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--as-needed" >&5
5413 $as_echo_n "checking whether the linker accepts -Wl,--as-needed... " >&6; }
5414 if ${ax_cv_check_ldflags___Wl___as_needed+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417
5418 ax_check_save_flags=$LDFLAGS
5419 LDFLAGS="$LDFLAGS -Wl,--as-needed"
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422
5423 int
5424 main ()
5425 {
5426
5427 ;
5428 return 0;
5429 }
5430 _ACEOF
5431 if ac_fn_c_try_link "$LINENO"; then :
5432 ax_cv_check_ldflags___Wl___as_needed=yes
5433 else
5434 ax_cv_check_ldflags___Wl___as_needed=no
5435 fi
5436 rm -f core conftest.err conftest.$ac_objext \
5437 conftest$ac_exeext conftest.$ac_ext
5438 LDFLAGS=$ax_check_save_flags
5439 fi
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___as_needed" >&5
5441 $as_echo "$ax_cv_check_ldflags___Wl___as_needed" >&6; }
5442 if test "x$ax_cv_check_ldflags___Wl___as_needed" = xyes; then :
5443
5444
5445
5446
5447
5448 for flag in -Wl,--as-needed; do
5449 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
5451 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
5452 if eval \${$as_CACHEVAR+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455
5456 ax_check_save_flags=$LDFLAGS
5457 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460
5461 int
5462 main ()
5463 {
5464
5465 ;
5466 return 0;
5467 }
5468 _ACEOF
5469 if ac_fn_c_try_link "$LINENO"; then :
5470 eval "$as_CACHEVAR=yes"
5471 else
5472 eval "$as_CACHEVAR=no"
5473 fi
5474 rm -f core conftest.err conftest.$ac_objext \
5475 conftest$ac_exeext conftest.$ac_ext
5476 LDFLAGS=$ax_check_save_flags
5477 fi
5478 eval ac_res=\$$as_CACHEVAR
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5480 $as_echo "$ac_res" >&6; }
5481 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
5482
5483 if ${AM_LDFLAGS+:} false; then :
5484
5485 case " $AM_LDFLAGS " in #(
5486 *" $flag "*) :
5487 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
5488 (: AM_LDFLAGS already contains $flag) 2>&5
5489 ac_status=$?
5490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5491 test $ac_status = 0; } ;; #(
5492 *) :
5493
5494 as_fn_append AM_LDFLAGS " $flag"
5495 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
5496 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
5497 ac_status=$?
5498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5499 test $ac_status = 0; }
5500 ;;
5501 esac
5502
5503 else
5504
5505 AM_LDFLAGS=$flag
5506 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
5507 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
5508 ac_status=$?
5509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5510 test $ac_status = 0; }
5511
5512 fi
5513
5514 else
5515 :
5516 fi
5517
5518 done
5519
5520
5521 else
5522 :
5523 fi
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
5526 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
5527 if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530
5531 ax_check_save_flags=$LDFLAGS
5532 LDFLAGS="$LDFLAGS -Wl,-z,relro"
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535
5536 int
5537 main ()
5538 {
5539
5540 ;
5541 return 0;
5542 }
5543 _ACEOF
5544 if ac_fn_c_try_link "$LINENO"; then :
5545 ax_cv_check_ldflags___Wl__z_relro=yes
5546 else
5547 ax_cv_check_ldflags___Wl__z_relro=no
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext \
5550 conftest$ac_exeext conftest.$ac_ext
5551 LDFLAGS=$ax_check_save_flags
5552 fi
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
5554 $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
5555 if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
5556
5557
5558
5559
5560
5561 for flag in -Wl,-z,relro; do
5562 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
5564 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
5565 if eval \${$as_CACHEVAR+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568
5569 ax_check_save_flags=$LDFLAGS
5570 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573
5574 int
5575 main ()
5576 {
5577
5578 ;
5579 return 0;
5580 }
5581 _ACEOF
5582 if ac_fn_c_try_link "$LINENO"; then :
5583 eval "$as_CACHEVAR=yes"
5584 else
5585 eval "$as_CACHEVAR=no"
5586 fi
5587 rm -f core conftest.err conftest.$ac_objext \
5588 conftest$ac_exeext conftest.$ac_ext
5589 LDFLAGS=$ax_check_save_flags
5590 fi
5591 eval ac_res=\$$as_CACHEVAR
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5593 $as_echo "$ac_res" >&6; }
5594 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
5595
5596 if ${AM_LDFLAGS+:} false; then :
5597
5598 case " $AM_LDFLAGS " in #(
5599 *" $flag "*) :
5600 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
5601 (: AM_LDFLAGS already contains $flag) 2>&5
5602 ac_status=$?
5603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5604 test $ac_status = 0; } ;; #(
5605 *) :
5606
5607 as_fn_append AM_LDFLAGS " $flag"
5608 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
5609 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
5610 ac_status=$?
5611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5612 test $ac_status = 0; }
5613 ;;
5614 esac
5615
5616 else
5617
5618 AM_LDFLAGS=$flag
5619 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
5620 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
5621 ac_status=$?
5622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5623 test $ac_status = 0; }
5624
5625 fi
5626
5627 else
5628 :
5629 fi
5630
5631 done
5632
5633
5634 else
5635 :
5636 fi
5637
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
5639 $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
5640 if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643
5644 ax_check_save_flags=$LDFLAGS
5645 LDFLAGS="$LDFLAGS -Wl,-z,now"
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648
5649 int
5650 main ()
5651 {
5652
5653 ;
5654 return 0;
5655 }
5656 _ACEOF
5657 if ac_fn_c_try_link "$LINENO"; then :
5658 ax_cv_check_ldflags___Wl__z_now=yes
5659 else
5660 ax_cv_check_ldflags___Wl__z_now=no
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext \
5663 conftest$ac_exeext conftest.$ac_ext
5664 LDFLAGS=$ax_check_save_flags
5665 fi
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
5667 $as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
5668 if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
5669
5670
5671
5672
5673
5674 for flag in -Wl,-z,now; do
5675 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
5677 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
5678 if eval \${$as_CACHEVAR+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681
5682 ax_check_save_flags=$LDFLAGS
5683 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686
5687 int
5688 main ()
5689 {
5690
5691 ;
5692 return 0;
5693 }
5694 _ACEOF
5695 if ac_fn_c_try_link "$LINENO"; then :
5696 eval "$as_CACHEVAR=yes"
5697 else
5698 eval "$as_CACHEVAR=no"
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext \
5701 conftest$ac_exeext conftest.$ac_ext
5702 LDFLAGS=$ax_check_save_flags
5703 fi
5704 eval ac_res=\$$as_CACHEVAR
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5706 $as_echo "$ac_res" >&6; }
5707 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
5708
5709 if ${AM_LDFLAGS+:} false; then :
5710
5711 case " $AM_LDFLAGS " in #(
5712 *" $flag "*) :
5713 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
5714 (: AM_LDFLAGS already contains $flag) 2>&5
5715 ac_status=$?
5716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5717 test $ac_status = 0; } ;; #(
5718 *) :
5719
5720 as_fn_append AM_LDFLAGS " $flag"
5721 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
5722 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
5723 ac_status=$?
5724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5725 test $ac_status = 0; }
5726 ;;
5727 esac
5728
5729 else
5730
5731 AM_LDFLAGS=$flag
5732 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
5733 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
5734 ac_status=$?
5735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5736 test $ac_status = 0; }
5737
5738 fi
5739
5740 else
5741 :
5742 fi
5743
5744 done
5745
5746
5747 else
5748 :
5749 fi
5750
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
5752 $as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
5753 if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756
5757 ax_check_save_flags=$LDFLAGS
5758 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761
5762 int
5763 main ()
5764 {
5765
5766 ;
5767 return 0;
5768 }
5769 _ACEOF
5770 if ac_fn_c_try_link "$LINENO"; then :
5771 ax_cv_check_ldflags___Wl__z_noexecstack=yes
5772 else
5773 ax_cv_check_ldflags___Wl__z_noexecstack=no
5774 fi
5775 rm -f core conftest.err conftest.$ac_objext \
5776 conftest$ac_exeext conftest.$ac_ext
5777 LDFLAGS=$ax_check_save_flags
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
5780 $as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
5781 if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
5782
5783
5784
5785
5786
5787 for flag in -Wl,-z,noexecstack; do
5788 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
5790 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
5791 if eval \${$as_CACHEVAR+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794
5795 ax_check_save_flags=$LDFLAGS
5796 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799
5800 int
5801 main ()
5802 {
5803
5804 ;
5805 return 0;
5806 }
5807 _ACEOF
5808 if ac_fn_c_try_link "$LINENO"; then :
5809 eval "$as_CACHEVAR=yes"
5810 else
5811 eval "$as_CACHEVAR=no"
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext \
5814 conftest$ac_exeext conftest.$ac_ext
5815 LDFLAGS=$ax_check_save_flags
5816 fi
5817 eval ac_res=\$$as_CACHEVAR
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5819 $as_echo "$ac_res" >&6; }
5820 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
5821
5822 if ${AM_LDFLAGS+:} false; then :
5823
5824 case " $AM_LDFLAGS " in #(
5825 *" $flag "*) :
5826 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
5827 (: AM_LDFLAGS already contains $flag) 2>&5
5828 ac_status=$?
5829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5830 test $ac_status = 0; } ;; #(
5831 *) :
5832
5833 as_fn_append AM_LDFLAGS " $flag"
5834 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
5835 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
5836 ac_status=$?
5837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5838 test $ac_status = 0; }
5839 ;;
5840 esac
5841
5842 else
5843
5844 AM_LDFLAGS=$flag
5845 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
5846 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
5847 ac_status=$?
5848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5849 test $ac_status = 0; }
5850
5851 fi
5852
5853 else
5854 :
5855 fi
5856
5857 done
5858
5859
5860 else
5861 :
5862 fi
5863
5864 # textonly, retpolineplt not yet
5865
5866 # macOS and cygwin linker do not have --as-needed
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--no-as-needed" >&5
5868 $as_echo_n "checking whether the linker accepts -Wl,--no-as-needed... " >&6; }
5869 if ${ax_cv_check_ldflags___Wl___no_as_needed+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872
5873 ax_check_save_flags=$LDFLAGS
5874 LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5877
5878 int
5879 main ()
5880 {
5881
5882 ;
5883 return 0;
5884 }
5885 _ACEOF
5886 if ac_fn_c_try_link "$LINENO"; then :
5887 ax_cv_check_ldflags___Wl___no_as_needed=yes
5888 else
5889 ax_cv_check_ldflags___Wl___no_as_needed=no
5890 fi
5891 rm -f core conftest.err conftest.$ac_objext \
5892 conftest$ac_exeext conftest.$ac_ext
5893 LDFLAGS=$ax_check_save_flags
5894 fi
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___no_as_needed" >&5
5896 $as_echo "$ax_cv_check_ldflags___Wl___no_as_needed" >&6; }
5897 if test "x$ax_cv_check_ldflags___Wl___no_as_needed" = xyes; then :
5898
5899 ax_compiler_flags_as_needed_option="-Wl,--no-as-needed"
5900
5901 else
5902
5903 ax_compiler_flags_as_needed_option=""
5904
5905 fi
5906
5907
5908 # macOS linker speaks with a different accent
5909 ax_compiler_flags_fatal_warnings_option=""
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--fatal-warnings" >&5
5911 $as_echo_n "checking whether the linker accepts -Wl,--fatal-warnings... " >&6; }
5912 if ${ax_cv_check_ldflags___Wl___fatal_warnings+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915
5916 ax_check_save_flags=$LDFLAGS
5917 LDFLAGS="$LDFLAGS -Wl,--fatal-warnings"
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5920
5921 int
5922 main ()
5923 {
5924
5925 ;
5926 return 0;
5927 }
5928 _ACEOF
5929 if ac_fn_c_try_link "$LINENO"; then :
5930 ax_cv_check_ldflags___Wl___fatal_warnings=yes
5931 else
5932 ax_cv_check_ldflags___Wl___fatal_warnings=no
5933 fi
5934 rm -f core conftest.err conftest.$ac_objext \
5935 conftest$ac_exeext conftest.$ac_ext
5936 LDFLAGS=$ax_check_save_flags
5937 fi
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___fatal_warnings" >&5
5939 $as_echo "$ax_cv_check_ldflags___Wl___fatal_warnings" >&6; }
5940 if test "x$ax_cv_check_ldflags___Wl___fatal_warnings" = xyes; then :
5941
5942 ax_compiler_flags_fatal_warnings_option="-Wl,--fatal-warnings"
5943
5944 else
5945 :
5946 fi
5947
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-fatal_warnings" >&5
5949 $as_echo_n "checking whether the linker accepts -Wl,-fatal_warnings... " >&6; }
5950 if ${ax_cv_check_ldflags___Wl__fatal_warnings+:} false; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953
5954 ax_check_save_flags=$LDFLAGS
5955 LDFLAGS="$LDFLAGS -Wl,-fatal_warnings"
5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5958
5959 int
5960 main ()
5961 {
5962
5963 ;
5964 return 0;
5965 }
5966 _ACEOF
5967 if ac_fn_c_try_link "$LINENO"; then :
5968 ax_cv_check_ldflags___Wl__fatal_warnings=yes
5969 else
5970 ax_cv_check_ldflags___Wl__fatal_warnings=no
5971 fi
5972 rm -f core conftest.err conftest.$ac_objext \
5973 conftest$ac_exeext conftest.$ac_ext
5974 LDFLAGS=$ax_check_save_flags
5975 fi
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__fatal_warnings" >&5
5977 $as_echo "$ax_cv_check_ldflags___Wl__fatal_warnings" >&6; }
5978 if test "x$ax_cv_check_ldflags___Wl__fatal_warnings" = xyes; then :
5979
5980 ax_compiler_flags_fatal_warnings_option="-Wl,-fatal_warnings"
5981
5982 else
5983 :
5984 fi
5985
5986
5987 # Base flags
5988
5989
5990
5991
5992 for flag in $ax_compiler_flags_as_needed_option ; do
5993 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
5995 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
5996 if eval \${$as_CACHEVAR+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999
6000 ax_check_save_flags=$LDFLAGS
6001 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004
6005 int
6006 main ()
6007 {
6008
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 if ac_fn_c_try_link "$LINENO"; then :
6014 eval "$as_CACHEVAR=yes"
6015 else
6016 eval "$as_CACHEVAR=no"
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext \
6019 conftest$ac_exeext conftest.$ac_ext
6020 LDFLAGS=$ax_check_save_flags
6021 fi
6022 eval ac_res=\$$as_CACHEVAR
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6024 $as_echo "$ac_res" >&6; }
6025 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6026
6027 if ${WARN_LDFLAGS+:} false; then :
6028
6029 case " $WARN_LDFLAGS " in #(
6030 *" $flag "*) :
6031 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
6032 (: WARN_LDFLAGS already contains $flag) 2>&5
6033 ac_status=$?
6034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6035 test $ac_status = 0; } ;; #(
6036 *) :
6037
6038 as_fn_append WARN_LDFLAGS " $flag"
6039 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
6040 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
6041 ac_status=$?
6042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6043 test $ac_status = 0; }
6044 ;;
6045 esac
6046
6047 else
6048
6049 WARN_LDFLAGS=$flag
6050 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
6051 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
6052 ac_status=$?
6053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054 test $ac_status = 0; }
6055
6056 fi
6057
6058 else
6059 :
6060 fi
6061
6062 done
6063
6064
6065 if test "$ax_enable_compile_warnings" != "no"; then :
6066
6067 # "yes" flags
6068
6069
6070
6071
6072 for flag in ; do
6073 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
6075 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
6076 if eval \${$as_CACHEVAR+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079
6080 ax_check_save_flags=$LDFLAGS
6081 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084
6085 int
6086 main ()
6087 {
6088
6089 ;
6090 return 0;
6091 }
6092 _ACEOF
6093 if ac_fn_c_try_link "$LINENO"; then :
6094 eval "$as_CACHEVAR=yes"
6095 else
6096 eval "$as_CACHEVAR=no"
6097 fi
6098 rm -f core conftest.err conftest.$ac_objext \
6099 conftest$ac_exeext conftest.$ac_ext
6100 LDFLAGS=$ax_check_save_flags
6101 fi
6102 eval ac_res=\$$as_CACHEVAR
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6104 $as_echo "$ac_res" >&6; }
6105 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6106
6107 if ${WARN_LDFLAGS+:} false; then :
6108
6109 case " $WARN_LDFLAGS " in #(
6110 *" $flag "*) :
6111 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
6112 (: WARN_LDFLAGS already contains $flag) 2>&5
6113 ac_status=$?
6114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6115 test $ac_status = 0; } ;; #(
6116 *) :
6117
6118 as_fn_append WARN_LDFLAGS " $flag"
6119 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
6120 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
6121 ac_status=$?
6122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6123 test $ac_status = 0; }
6124 ;;
6125 esac
6126
6127 else
6128
6129 WARN_LDFLAGS=$flag
6130 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
6131 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
6132 ac_status=$?
6133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6134 test $ac_status = 0; }
6135
6136 fi
6137
6138 else
6139 :
6140 fi
6141
6142 done
6143
6144
6145 fi
6146 if test "$ax_enable_compile_warnings" = "error"; then :
6147
6148 # "error" flags; -Werror has to be appended unconditionally because
6149 # it's not possible to test for
6150 #
6151 # suggest-attribute=format is disabled because it gives too many false
6152 # positives
6153
6154
6155
6156
6157 for flag in $ax_compiler_flags_fatal_warnings_option ; do
6158 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
6160 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
6161 if eval \${$as_CACHEVAR+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164
6165 ax_check_save_flags=$LDFLAGS
6166 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6169
6170 int
6171 main ()
6172 {
6173
6174 ;
6175 return 0;
6176 }
6177 _ACEOF
6178 if ac_fn_c_try_link "$LINENO"; then :
6179 eval "$as_CACHEVAR=yes"
6180 else
6181 eval "$as_CACHEVAR=no"
6182 fi
6183 rm -f core conftest.err conftest.$ac_objext \
6184 conftest$ac_exeext conftest.$ac_ext
6185 LDFLAGS=$ax_check_save_flags
6186 fi
6187 eval ac_res=\$$as_CACHEVAR
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6189 $as_echo "$ac_res" >&6; }
6190 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6191
6192 if ${WARN_LDFLAGS+:} false; then :
6193
6194 case " $WARN_LDFLAGS " in #(
6195 *" $flag "*) :
6196 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
6197 (: WARN_LDFLAGS already contains $flag) 2>&5
6198 ac_status=$?
6199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200 test $ac_status = 0; } ;; #(
6201 *) :
6202
6203 as_fn_append WARN_LDFLAGS " $flag"
6204 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
6205 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
6206 ac_status=$?
6207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208 test $ac_status = 0; }
6209 ;;
6210 esac
6211
6212 else
6213
6214 WARN_LDFLAGS=$flag
6215 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
6216 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
6217 ac_status=$?
6218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219 test $ac_status = 0; }
6220
6221 fi
6222
6223 else
6224 :
6225 fi
6226
6227 done
6228
6229
6230 fi
6231
6232 # Substitute the variables
6233
6234
6235
6236
6237
6238
6239 # Variable names
6240
6241
6242 # Base flags
6243
6244 if ${WARN_SCANNERFLAGS+:} false; then :
6245
6246 case " $WARN_SCANNERFLAGS " in #(
6247 *" "*) :
6248 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5
6249 (: WARN_SCANNERFLAGS already contains ) 2>&5
6250 ac_status=$?
6251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252 test $ac_status = 0; } ;; #(
6253 *) :
6254
6255 as_fn_append WARN_SCANNERFLAGS " "
6256 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
6257 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
6258 ac_status=$?
6259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6260 test $ac_status = 0; }
6261 ;;
6262 esac
6263
6264 else
6265
6266 WARN_SCANNERFLAGS=
6267 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
6268 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
6269 ac_status=$?
6270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271 test $ac_status = 0; }
6272
6273 fi
6274
6275
6276 if test "$ax_enable_compile_warnings" != "no"; then :
6277
6278 # "yes" flags
6279
6280 if ${WARN_SCANNERFLAGS+:} false; then :
6281
6282 case " $WARN_SCANNERFLAGS " in #(
6283 *" --warn-all "*) :
6284 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-all "; } >&5
6285 (: WARN_SCANNERFLAGS already contains --warn-all ) 2>&5
6286 ac_status=$?
6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288 test $ac_status = 0; } ;; #(
6289 *) :
6290
6291 as_fn_append WARN_SCANNERFLAGS " --warn-all "
6292 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
6293 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
6294 ac_status=$?
6295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6296 test $ac_status = 0; }
6297 ;;
6298 esac
6299
6300 else
6301
6302 WARN_SCANNERFLAGS= --warn-all
6303 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
6304 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
6305 ac_status=$?
6306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307 test $ac_status = 0; }
6308
6309 fi
6310
6311
6312 fi
6313 if test "$ax_enable_compile_warnings" = "error"; then :
6314
6315 # "error" flags
6316
6317 if ${WARN_SCANNERFLAGS+:} false; then :
6318
6319 case " $WARN_SCANNERFLAGS " in #(
6320 *" --warn-error "*) :
6321 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-error "; } >&5
6322 (: WARN_SCANNERFLAGS already contains --warn-error ) 2>&5
6323 ac_status=$?
6324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6325 test $ac_status = 0; } ;; #(
6326 *) :
6327
6328 as_fn_append WARN_SCANNERFLAGS " --warn-error "
6329 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
6330 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
6331 ac_status=$?
6332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6333 test $ac_status = 0; }
6334 ;;
6335 esac
6336
6337 else
6338
6339 WARN_SCANNERFLAGS= --warn-error
6340 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
6341 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
6342 ac_status=$?
6343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344 test $ac_status = 0; }
6345
6346 fi
6347
6348
6349 fi
6350
6351 # Substitute the variables
6352
6353
6354
6355
6356
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler is not GCC or close compatible, not using ax_compiler_flags because of this (CC=$CC)" >&5
6359 $as_echo "$as_me: WARNING: compiler is not GCC or close compatible, not using ax_compiler_flags because of this (CC=$CC)" >&2;}
6360 fi
6361
6362 # Check whether --enable-rdrand was given.
6363 if test "${enable_rdrand+set}" = set; then :
6364 enableval=$enable_rdrand; if test x$enableval = xyes; then
6365 enable_rdrand=yes
6366
6367 $as_echo "#define ENABLE_RDRAND 1" >>confdefs.h
6368
6369 fi
6370 fi
6371
6372
6373 if test "x$enable_rdrand" = "xyes"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms" >&5
6375 $as_echo "RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable" >&5
6378 $as_echo "RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable" >&6; }
6379 fi
6380
6381 # enable silent build by default
6382 # Check whether --enable-silent-rules was given.
6383 if test "${enable_silent_rules+set}" = set; then :
6384 enableval=$enable_silent_rules;
6385 fi
6386
6387 case $enable_silent_rules in # (((
6388 yes) AM_DEFAULT_VERBOSITY=0;;
6389 no) AM_DEFAULT_VERBOSITY=1;;
6390 *) AM_DEFAULT_VERBOSITY=0;;
6391 esac
6392 am_make=${MAKE-make}
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6394 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6395 if ${am_cv_make_support_nested_variables+:} false; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 if $as_echo 'TRUE=$(BAR$(V))
6399 BAR0=false
6400 BAR1=true
6401 V=1
6402 am__doit:
6403 @$(TRUE)
6404 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6405 am_cv_make_support_nested_variables=yes
6406 else
6407 am_cv_make_support_nested_variables=no
6408 fi
6409 fi
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6411 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6412 if test $am_cv_make_support_nested_variables = yes; then
6413 AM_V='$(V)'
6414 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6415 else
6416 AM_V=$AM_DEFAULT_VERBOSITY
6417 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6418 fi
6419 AM_BACKSLASH='\'
6420
6421
6422 # Check whether --enable-valgrind was given.
6423 if test "${enable_valgrind+set}" = set; then :
6424 enableval=$enable_valgrind; case "${enableval}" in
6425 yes) enable_valgrind="yes" ;;
6426 no) enable_valgrind="no" ;;
6427 *) as_fn_error $? "bad value ${enableval} for --enable-valgrind" "$LINENO" 5 ;;
6428 esac
6429 else
6430 enable_valgrind="no"
6431
6432 fi
6433
6434 if test "$enable_valgrind" = "yes"; then
6435 # Extract the first word of "valgrind", so it can be a program name with args.
6436 set dummy valgrind; ac_word=$2
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if ${ac_cv_prog_VALGRIND+:} false; then :
6440 $as_echo_n "(cached) " >&6
6441 else
6442 if test -n "$VALGRIND"; then
6443 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
6444 else
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6447 do
6448 IFS=$as_save_IFS
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6452 ac_cv_prog_VALGRIND="valgrind"
6453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 break 2
6455 fi
6456 done
6457 done
6458 IFS=$as_save_IFS
6459
6460 test -z "$ac_cv_prog_VALGRIND" && ac_cv_prog_VALGRIND="no"
6461 fi
6462 fi
6463 VALGRIND=$ac_cv_prog_VALGRIND
6464 if test -n "$VALGRIND"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
6466 $as_echo "$VALGRIND" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472
6473 if test "x$VALGRIND" = "xno"; then
6474 as_fn_error $? "--enable-valgrind given, but valgrind is not present on system" "$LINENO" 5
6475 fi
6476
6477
6478 $as_echo "#define VALGRIND 1" >>confdefs.h
6479
6480 fi
6481
6482 # Checks for programs.
6483
6484 # Checks for libraries.
6485
6486 # Checks for header files.
6487
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6489 $as_echo_n "checking for ANSI C header files... " >&6; }
6490 if ${ac_cv_header_stdc+:} false; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6495 #include <stdlib.h>
6496 #include <stdarg.h>
6497 #include <string.h>
6498 #include <float.h>
6499
6500 int
6501 main ()
6502 {
6503
6504 ;
6505 return 0;
6506 }
6507 _ACEOF
6508 if ac_fn_c_try_compile "$LINENO"; then :
6509 ac_cv_header_stdc=yes
6510 else
6511 ac_cv_header_stdc=no
6512 fi
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514
6515 if test $ac_cv_header_stdc = yes; then
6516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519 #include <string.h>
6520
6521 _ACEOF
6522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6523 $EGREP "memchr" >/dev/null 2>&1; then :
6524
6525 else
6526 ac_cv_header_stdc=no
6527 fi
6528 rm -f conftest*
6529
6530 fi
6531
6532 if test $ac_cv_header_stdc = yes; then
6533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 #include <stdlib.h>
6537
6538 _ACEOF
6539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6540 $EGREP "free" >/dev/null 2>&1; then :
6541
6542 else
6543 ac_cv_header_stdc=no
6544 fi
6545 rm -f conftest*
6546
6547 fi
6548
6549 if test $ac_cv_header_stdc = yes; then
6550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6551 if test "$cross_compiling" = yes; then :
6552 :
6553 else
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 #include <ctype.h>
6557 #include <stdlib.h>
6558 #if ((' ' & 0x0FF) == 0x020)
6559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6561 #else
6562 # define ISLOWER(c) \
6563 (('a' <= (c) && (c) <= 'i') \
6564 || ('j' <= (c) && (c) <= 'r') \
6565 || ('s' <= (c) && (c) <= 'z'))
6566 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6567 #endif
6568
6569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6570 int
6571 main ()
6572 {
6573 int i;
6574 for (i = 0; i < 256; i++)
6575 if (XOR (islower (i), ISLOWER (i))
6576 || toupper (i) != TOUPPER (i))
6577 return 2;
6578 return 0;
6579 }
6580 _ACEOF
6581 if ac_fn_c_try_run "$LINENO"; then :
6582
6583 else
6584 ac_cv_header_stdc=no
6585 fi
6586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6587 conftest.$ac_objext conftest.beam conftest.$ac_ext
6588 fi
6589
6590 fi
6591 fi
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6593 $as_echo "$ac_cv_header_stdc" >&6; }
6594 if test $ac_cv_header_stdc = yes; then
6595
6596 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6597
6598 fi
6599
6600 for ac_header in fcntl.h limits.h strings.h syslog.h unistd.h sys/cdefs.h sys/param.h stdarg.h locale.h endian.h
6601 do :
6602 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6603 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6604 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6605 cat >>confdefs.h <<_ACEOF
6606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6607 _ACEOF
6608
6609 fi
6610
6611 done
6612
6613
6614 # Checks for typedefs, structures, and compiler characteristics.
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6616 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6617 if ${ac_cv_c_const+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622
6623 int
6624 main ()
6625 {
6626
6627 #ifndef __cplusplus
6628 /* Ultrix mips cc rejects this sort of thing. */
6629 typedef int charset[2];
6630 const charset cs = { 0, 0 };
6631 /* SunOS 4.1.1 cc rejects this. */
6632 char const *const *pcpcc;
6633 char **ppc;
6634 /* NEC SVR4.0.2 mips cc rejects this. */
6635 struct point {int x, y;};
6636 static struct point const zero = {0,0};
6637 /* AIX XL C 1.02.0.0 rejects this.
6638 It does not let you subtract one const X* pointer from another in
6639 an arm of an if-expression whose if-part is not a constant
6640 expression */
6641 const char *g = "string";
6642 pcpcc = &g + (g ? g-g : 0);
6643 /* HPUX 7.0 cc rejects these. */
6644 ++pcpcc;
6645 ppc = (char**) pcpcc;
6646 pcpcc = (char const *const *) ppc;
6647 { /* SCO 3.2v4 cc rejects this sort of thing. */
6648 char tx;
6649 char *t = &tx;
6650 char const *s = 0 ? (char *) 0 : (char const *) 0;
6651
6652 *t++ = 0;
6653 if (s) return 0;
6654 }
6655 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6656 int x[] = {25, 17};
6657 const int *foo = &x[0];
6658 ++foo;
6659 }
6660 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6661 typedef const int *iptr;
6662 iptr p = 0;
6663 ++p;
6664 }
6665 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6666 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6667 struct s { int j; const int *ap[3]; } bx;
6668 struct s *b = &bx; b->j = 5;
6669 }
6670 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6671 const int foo = 10;
6672 if (!foo) return 0;
6673 }
6674 return !cs[0] && !zero.x;
6675 #endif
6676
6677 ;
6678 return 0;
6679 }
6680 _ACEOF
6681 if ac_fn_c_try_compile "$LINENO"; then :
6682 ac_cv_c_const=yes
6683 else
6684 ac_cv_c_const=no
6685 fi
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 fi
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6689 $as_echo "$ac_cv_c_const" >&6; }
6690 if test $ac_cv_c_const = no; then
6691
6692 $as_echo "#define const /**/" >>confdefs.h
6693
6694 fi
6695
6696 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6697 if test "x$ac_cv_type_size_t" = xyes; then :
6698
6699 else
6700
6701 cat >>confdefs.h <<_ACEOF
6702 #define size_t unsigned int
6703 _ACEOF
6704
6705 fi
6706
6707
6708
6709 # check for availability of atomic operations
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
6711 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
6712 if ${ap_cv_atomic_builtins+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6717
6718 int
6719 main ()
6720 {
6721
6722 unsigned long val = 1010, tmp, *mem = &val;
6723
6724 if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
6725 return 1;
6726
6727 tmp = val;
6728
6729 if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
6730 return 1;
6731
6732 if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
6733 return 1;
6734
6735 tmp = 3030;
6736
6737 if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
6738 return 1;
6739
6740 if (__sync_lock_test_and_set(&val, 4040) != 3030)
6741 return 1;
6742
6743 mem = &tmp;
6744
6745 if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
6746 return 1;
6747
6748 __sync_synchronize();
6749
6750 if (mem != &val)
6751 return 1;
6752
6753 return 0;
6754
6755 ;
6756 return 0;
6757 }
6758 _ACEOF
6759 if ac_fn_c_try_link "$LINENO"; then :
6760 ap_cv_atomic_builtins=yes
6761 else
6762 ap_cv_atomic_builtins=no
6763 fi
6764 rm -f core conftest.err conftest.$ac_objext \
6765 conftest$ac_exeext conftest.$ac_ext
6766 fi
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5
6768 $as_echo "$ap_cv_atomic_builtins" >&6; }
6769
6770 if test "$ap_cv_atomic_builtins" = "yes"; then
6771
6772 $as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
6773
6774 fi
6775
6776
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins for 64 bit data types" >&5
6778 $as_echo_n "checking whether the compiler provides atomic builtins for 64 bit data types... " >&6; }
6779 if ${ap_cv_atomic_builtins_64+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784
6785 int
6786 main ()
6787 {
6788
6789 unsigned long long val = 1010, tmp, *mem = &val;
6790
6791 if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
6792 return 1;
6793
6794 tmp = val;
6795
6796 if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
6797 return 1;
6798
6799 if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
6800 return 1;
6801
6802 tmp = 3030;
6803
6804 if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
6805 return 1;
6806
6807 if (__sync_lock_test_and_set(&val, 4040) != 3030)
6808 return 1;
6809
6810 mem = &tmp;
6811
6812 if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
6813 return 1;
6814
6815 __sync_synchronize();
6816
6817 if (mem != &val)
6818 return 1;
6819
6820 return 0;
6821
6822 ;
6823 return 0;
6824 }
6825 _ACEOF
6826 if ac_fn_c_try_link "$LINENO"; then :
6827 ap_cv_atomic_builtins_64=yes
6828 else
6829 ap_cv_atomic_builtins_64=no
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833 fi
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins_64" >&5
6835 $as_echo "$ap_cv_atomic_builtins_64" >&6; }
6836
6837 if test "$ap_cv_atomic_builtins_64" = "yes"; then
6838
6839 $as_echo "#define HAVE_ATOMIC_BUILTINS64 1" >>confdefs.h
6840
6841 fi
6842
6843
6844
6845
6846 # Checks for library functions.
6847 for ac_func in vprintf
6848 do :
6849 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6850 if test "x$ac_cv_func_vprintf" = xyes; then :
6851 cat >>confdefs.h <<_ACEOF
6852 #define HAVE_VPRINTF 1
6853 _ACEOF
6854
6855 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6856 if test "x$ac_cv_func__doprnt" = xyes; then :
6857
6858 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6859
6860 fi
6861
6862 fi
6863 done
6864
6865
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6867 $as_echo_n "checking for working memcmp... " >&6; }
6868 if ${ac_cv_func_memcmp_working+:} false; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 if test "$cross_compiling" = yes; then :
6872 ac_cv_func_memcmp_working=no
6873 else
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876 $ac_includes_default
6877 int
6878 main ()
6879 {
6880
6881 /* Some versions of memcmp are not 8-bit clean. */
6882 char c0 = '\100', c1 = '\200', c2 = '\201';
6883 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6884 return 1;
6885
6886 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6887 or more and with at least one buffer not starting on a 4-byte boundary.
6888 William Lewis provided this test program. */
6889 {
6890 char foo[21];
6891 char bar[21];
6892 int i;
6893 for (i = 0; i < 4; i++)
6894 {
6895 char *a = foo + i;
6896 char *b = bar + i;
6897 strcpy (a, "--------01111111");
6898 strcpy (b, "--------10000000");
6899 if (memcmp (a, b, 16) >= 0)
6900 return 1;
6901 }
6902 return 0;
6903 }
6904
6905 ;
6906 return 0;
6907 }
6908 _ACEOF
6909 if ac_fn_c_try_run "$LINENO"; then :
6910 ac_cv_func_memcmp_working=yes
6911 else
6912 ac_cv_func_memcmp_working=no
6913 fi
6914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6915 conftest.$ac_objext conftest.beam conftest.$ac_ext
6916 fi
6917
6918 fi
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6920 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6921 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6922 *" memcmp.$ac_objext "* ) ;;
6923 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6924 ;;
6925 esac
6926
6927
6928 for ac_func in strcasecmp strdup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp setlocale
6929 do :
6930 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6931 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6932 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6933 cat >>confdefs.h <<_ACEOF
6934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6935 _ACEOF
6936
6937 fi
6938 done
6939
6940
6941 if test "$ac_cv_have_decl_isnan" = "yes" ; then
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944 #include <math.h>
6945 int
6946 main ()
6947 {
6948 float f = 0.0; return isnan(f)
6949 ;
6950 return 0;
6951 }
6952 _ACEOF
6953 if ac_fn_c_try_link "$LINENO"; then :
6954
6955 else
6956 LIBS="$LIBS -lm"
6957 fi
6958 rm -f core conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext conftest.$ac_ext
6960 fi
6961
6962 #check if .section.gnu.warning accepts long strings (for __warn_references)
6963 ac_ext=c
6964 ac_cpp='$CPP $CPPFLAGS'
6965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968
6969
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .gnu.warning accepts long strings" >&5
6971 $as_echo_n "checking if .gnu.warning accepts long strings... " >&6; }
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974
6975 extern void json_object_get();
6976 __asm__(".section .gnu.json_object_get,\n\t.ascii \"Please link against libfastjson instead of libjson\"\n\t.text");
6977
6978 int main(int c,char* v) {return 0;}
6979
6980 _ACEOF
6981 if ac_fn_c_try_link "$LINENO"; then :
6982
6983
6984 $as_echo "#define HAS_GNU_WARNING_LONG 1" >>confdefs.h
6985
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6987 $as_echo "yes" >&6; }
6988
6989 else
6990
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 $as_echo "no" >&6; }
6993
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext \
6996 conftest$ac_exeext conftest.$ac_ext
6997
6998 ac_ext=c
6999 ac_cpp='$CPP $CPPFLAGS'
7000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7003
7004
7005 case `pwd` in
7006 *\ * | *\ *)
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7008 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7009 esac
7010
7011
7012
7013 macro_version='2.4.6'
7014 macro_revision='2.4.6'
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028 ltmain=$ac_aux_dir/ltmain.sh
7029
7030 # Make sure we can run config.sub.
7031 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7032 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7033
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7035 $as_echo_n "checking build system type... " >&6; }
7036 if ${ac_cv_build+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 ac_build_alias=$build_alias
7040 test "x$ac_build_alias" = x &&
7041 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7042 test "x$ac_build_alias" = x &&
7043 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7044 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7045 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7046
7047 fi
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7049 $as_echo "$ac_cv_build" >&6; }
7050 case $ac_cv_build in
7051 *-*-*) ;;
7052 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7053 esac
7054 build=$ac_cv_build
7055 ac_save_IFS=$IFS; IFS='-'
7056 set x $ac_cv_build
7057 shift
7058 build_cpu=$1
7059 build_vendor=$2
7060 shift; shift
7061 # Remember, the first character of IFS is used to create $*,
7062 # except with old shells:
7063 build_os=$*
7064 IFS=$ac_save_IFS
7065 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7066
7067
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7069 $as_echo_n "checking host system type... " >&6; }
7070 if ${ac_cv_host+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 if test "x$host_alias" = x; then
7074 ac_cv_host=$ac_cv_build
7075 else
7076 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7077 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7078 fi
7079
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7082 $as_echo "$ac_cv_host" >&6; }
7083 case $ac_cv_host in
7084 *-*-*) ;;
7085 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7086 esac
7087 host=$ac_cv_host
7088 ac_save_IFS=$IFS; IFS='-'
7089 set x $ac_cv_host
7090 shift
7091 host_cpu=$1
7092 host_vendor=$2
7093 shift; shift
7094 # Remember, the first character of IFS is used to create $*,
7095 # except with old shells:
7096 host_os=$*
7097 IFS=$ac_save_IFS
7098 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7099
7100
7101 # Backslashify metacharacters that are still active within
7102 # double-quoted strings.
7103 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7104
7105 # Same as above, but do not quote variable references.
7106 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7107
7108 # Sed substitution to delay expansion of an escaped shell variable in a
7109 # double_quote_subst'ed string.
7110 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7111
7112 # Sed substitution to delay expansion of an escaped single quote.
7113 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7114
7115 # Sed substitution to avoid accidental globbing in evaled expressions
7116 no_glob_subst='s/\*/\\\*/g'
7117
7118 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7120 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7121
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7123 $as_echo_n "checking how to print strings... " >&6; }
7124 # Test print first, because it will be a builtin if present.
7125 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7126 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7127 ECHO='print -r --'
7128 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7129 ECHO='printf %s\n'
7130 else
7131 # Use this function as a fallback that always works.
7132 func_fallback_echo ()
7133 {
7134 eval 'cat <<_LTECHO_EOF
7135 $1
7136 _LTECHO_EOF'
7137 }
7138 ECHO='func_fallback_echo'
7139 fi
7140
7141 # func_echo_all arg...
7142 # Invoke $ECHO with all args, space-separated.
7143 func_echo_all ()
7144 {
7145 $ECHO ""
7146 }
7147
7148 case $ECHO in
7149 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7150 $as_echo "printf" >&6; } ;;
7151 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7152 $as_echo "print -r" >&6; } ;;
7153 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7154 $as_echo "cat" >&6; } ;;
7155 esac
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7171 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7172 if ${ac_cv_path_SED+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7176 for ac_i in 1 2 3 4 5 6 7; do
7177 ac_script="$ac_script$as_nl$ac_script"
7178 done
7179 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7180 { ac_script=; unset ac_script;}
7181 if test -z "$SED"; then
7182 ac_path_SED_found=false
7183 # Loop through the user's path and test for each of PROGNAME-LIST
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187 IFS=$as_save_IFS
7188 test -z "$as_dir" && as_dir=.
7189 for ac_prog in sed gsed; do
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7192 as_fn_executable_p "$ac_path_SED" || continue
7193 # Check for GNU ac_path_SED and select it if it is found.
7194 # Check for GNU $ac_path_SED
7195 case `"$ac_path_SED" --version 2>&1` in
7196 *GNU*)
7197 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7198 *)
7199 ac_count=0
7200 $as_echo_n 0123456789 >"conftest.in"
7201 while :
7202 do
7203 cat "conftest.in" "conftest.in" >"conftest.tmp"
7204 mv "conftest.tmp" "conftest.in"
7205 cp "conftest.in" "conftest.nl"
7206 $as_echo '' >> "conftest.nl"
7207 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7209 as_fn_arith $ac_count + 1 && ac_count=$as_val
7210 if test $ac_count -gt ${ac_path_SED_max-0}; then
7211 # Best one so far, save it but keep looking for a better one
7212 ac_cv_path_SED="$ac_path_SED"
7213 ac_path_SED_max=$ac_count
7214 fi
7215 # 10*(2^10) chars as input seems more than enough
7216 test $ac_count -gt 10 && break
7217 done
7218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7219 esac
7220
7221 $ac_path_SED_found && break 3
7222 done
7223 done
7224 done
7225 IFS=$as_save_IFS
7226 if test -z "$ac_cv_path_SED"; then
7227 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7228 fi
7229 else
7230 ac_cv_path_SED=$SED
7231 fi
7232
7233 fi
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7235 $as_echo "$ac_cv_path_SED" >&6; }
7236 SED="$ac_cv_path_SED"
7237 rm -f conftest.sed
7238
7239 test -z "$SED" && SED=sed
7240 Xsed="$SED -e 1s/^X//"
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7253 $as_echo_n "checking for fgrep... " >&6; }
7254 if ${ac_cv_path_FGREP+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7258 then ac_cv_path_FGREP="$GREP -F"
7259 else
7260 if test -z "$FGREP"; then
7261 ac_path_FGREP_found=false
7262 # Loop through the user's path and test for each of PROGNAME-LIST
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7265 do
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
7268 for ac_prog in fgrep; do
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7271 as_fn_executable_p "$ac_path_FGREP" || continue
7272 # Check for GNU ac_path_FGREP and select it if it is found.
7273 # Check for GNU $ac_path_FGREP
7274 case `"$ac_path_FGREP" --version 2>&1` in
7275 *GNU*)
7276 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7277 *)
7278 ac_count=0
7279 $as_echo_n 0123456789 >"conftest.in"
7280 while :
7281 do
7282 cat "conftest.in" "conftest.in" >"conftest.tmp"
7283 mv "conftest.tmp" "conftest.in"
7284 cp "conftest.in" "conftest.nl"
7285 $as_echo 'FGREP' >> "conftest.nl"
7286 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7288 as_fn_arith $ac_count + 1 && ac_count=$as_val
7289 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7290 # Best one so far, save it but keep looking for a better one
7291 ac_cv_path_FGREP="$ac_path_FGREP"
7292 ac_path_FGREP_max=$ac_count
7293 fi
7294 # 10*(2^10) chars as input seems more than enough
7295 test $ac_count -gt 10 && break
7296 done
7297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7298 esac
7299
7300 $ac_path_FGREP_found && break 3
7301 done
7302 done
7303 done
7304 IFS=$as_save_IFS
7305 if test -z "$ac_cv_path_FGREP"; then
7306 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7307 fi
7308 else
7309 ac_cv_path_FGREP=$FGREP
7310 fi
7311
7312 fi
7313 fi
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7315 $as_echo "$ac_cv_path_FGREP" >&6; }
7316 FGREP="$ac_cv_path_FGREP"
7317
7318
7319 test -z "$GREP" && GREP=grep
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339 # Check whether --with-gnu-ld was given.
7340 if test "${with_gnu_ld+set}" = set; then :
7341 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7342 else
7343 with_gnu_ld=no
7344 fi
7345
7346 ac_prog=ld
7347 if test yes = "$GCC"; then
7348 # Check if gcc -print-prog-name=ld gives a path.
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7350 $as_echo_n "checking for ld used by $CC... " >&6; }
7351 case $host in
7352 *-*-mingw*)
7353 # gcc leaves a trailing carriage return, which upsets mingw
7354 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7355 *)
7356 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7357 esac
7358 case $ac_prog in
7359 # Accept absolute paths.
7360 [\\/]* | ?:[\\/]*)
7361 re_direlt='/[^/][^/]*/\.\./'
7362 # Canonicalize the pathname of ld
7363 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7364 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7365 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7366 done
7367 test -z "$LD" && LD=$ac_prog
7368 ;;
7369 "")
7370 # If it fails, then pretend we aren't using GCC.
7371 ac_prog=ld
7372 ;;
7373 *)
7374 # If it is relative, then search for the first ld in PATH.
7375 with_gnu_ld=unknown
7376 ;;
7377 esac
7378 elif test yes = "$with_gnu_ld"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7380 $as_echo_n "checking for GNU ld... " >&6; }
7381 else
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7383 $as_echo_n "checking for non-GNU ld... " >&6; }
7384 fi
7385 if ${lt_cv_path_LD+:} false; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 if test -z "$LD"; then
7389 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7390 for ac_dir in $PATH; do
7391 IFS=$lt_save_ifs
7392 test -z "$ac_dir" && ac_dir=.
7393 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7394 lt_cv_path_LD=$ac_dir/$ac_prog
7395 # Check to see if the program is GNU ld. I'd rather use --version,
7396 # but apparently some variants of GNU ld only accept -v.
7397 # Break only if it was the GNU/non-GNU ld that we prefer.
7398 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7399 *GNU* | *'with BFD'*)
7400 test no != "$with_gnu_ld" && break
7401 ;;
7402 *)
7403 test yes != "$with_gnu_ld" && break
7404 ;;
7405 esac
7406 fi
7407 done
7408 IFS=$lt_save_ifs
7409 else
7410 lt_cv_path_LD=$LD # Let the user override the test with a path.
7411 fi
7412 fi
7413
7414 LD=$lt_cv_path_LD
7415 if test -n "$LD"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7417 $as_echo "$LD" >&6; }
7418 else
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7424 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7425 if ${lt_cv_prog_gnu_ld+:} false; then :
7426 $as_echo_n "(cached) " >&6
7427 else
7428 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7429 case `$LD -v 2>&1 </dev/null` in
7430 *GNU* | *'with BFD'*)
7431 lt_cv_prog_gnu_ld=yes
7432 ;;
7433 *)
7434 lt_cv_prog_gnu_ld=no
7435 ;;
7436 esac
7437 fi
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7439 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7440 with_gnu_ld=$lt_cv_prog_gnu_ld
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7451 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7452 if ${lt_cv_path_NM+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 if test -n "$NM"; then
7456 # Let the user override the test.
7457 lt_cv_path_NM=$NM
7458 else
7459 lt_nm_to_check=${ac_tool_prefix}nm
7460 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7461 lt_nm_to_check="$lt_nm_to_check nm"
7462 fi
7463 for lt_tmp_nm in $lt_nm_to_check; do
7464 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7465 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7466 IFS=$lt_save_ifs
7467 test -z "$ac_dir" && ac_dir=.
7468 tmp_nm=$ac_dir/$lt_tmp_nm
7469 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7470 # Check to see if the nm accepts a BSD-compat flag.
7471 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7472 # nm: unknown option "B" ignored
7473 # Tru64's nm complains that /dev/null is an invalid object file
7474 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7475 case $build_os in
7476 mingw*) lt_bad_file=conftest.nm/nofile ;;
7477 *) lt_bad_file=/dev/null ;;
7478 esac
7479 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7480 *$lt_bad_file* | *'Invalid file or object type'*)
7481 lt_cv_path_NM="$tmp_nm -B"
7482 break 2
7483 ;;
7484 *)
7485 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7486 */dev/null*)
7487 lt_cv_path_NM="$tmp_nm -p"
7488 break 2
7489 ;;
7490 *)
7491 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7492 continue # so that we can try to find one that supports BSD flags
7493 ;;
7494 esac
7495 ;;
7496 esac
7497 fi
7498 done
7499 IFS=$lt_save_ifs
7500 done
7501 : ${lt_cv_path_NM=no}
7502 fi
7503 fi
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7505 $as_echo "$lt_cv_path_NM" >&6; }
7506 if test no != "$lt_cv_path_NM"; then
7507 NM=$lt_cv_path_NM
7508 else
7509 # Didn't find any BSD compatible name lister, look for dumpbin.
7510 if test -n "$DUMPBIN"; then :
7511 # Let the user override the test.
7512 else
7513 if test -n "$ac_tool_prefix"; then
7514 for ac_prog in dumpbin "link -dump"
7515 do
7516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_DUMPBIN+:} false; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523 if test -n "$DUMPBIN"; then
7524 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7528 do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7536 fi
7537 done
7538 done
7539 IFS=$as_save_IFS
7540
7541 fi
7542 fi
7543 DUMPBIN=$ac_cv_prog_DUMPBIN
7544 if test -n "$DUMPBIN"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7546 $as_echo "$DUMPBIN" >&6; }
7547 else
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 fi
7551
7552
7553 test -n "$DUMPBIN" && break
7554 done
7555 fi
7556 if test -z "$DUMPBIN"; then
7557 ac_ct_DUMPBIN=$DUMPBIN
7558 for ac_prog in dumpbin "link -dump"
7559 do
7560 # Extract the first word of "$ac_prog", so it can be a program name with args.
7561 set dummy $ac_prog; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567 if test -n "$ac_ct_DUMPBIN"; then
7568 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7569 else
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7572 do
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7577 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 break 2
7580 fi
7581 done
7582 done
7583 IFS=$as_save_IFS
7584
7585 fi
7586 fi
7587 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7588 if test -n "$ac_ct_DUMPBIN"; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7590 $as_echo "$ac_ct_DUMPBIN" >&6; }
7591 else
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7594 fi
7595
7596
7597 test -n "$ac_ct_DUMPBIN" && break
7598 done
7599
7600 if test "x$ac_ct_DUMPBIN" = x; then
7601 DUMPBIN=":"
7602 else
7603 case $cross_compiling:$ac_tool_warned in
7604 yes:)
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7607 ac_tool_warned=yes ;;
7608 esac
7609 DUMPBIN=$ac_ct_DUMPBIN
7610 fi
7611 fi
7612
7613 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7614 *COFF*)
7615 DUMPBIN="$DUMPBIN -symbols -headers"
7616 ;;
7617 *)
7618 DUMPBIN=:
7619 ;;
7620 esac
7621 fi
7622
7623 if test : != "$DUMPBIN"; then
7624 NM=$DUMPBIN
7625 fi
7626 fi
7627 test -z "$NM" && NM=nm
7628
7629
7630
7631
7632
7633
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7635 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7636 if ${lt_cv_nm_interface+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 lt_cv_nm_interface="BSD nm"
7640 echo "int some_variable = 0;" > conftest.$ac_ext
7641 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7642 (eval "$ac_compile" 2>conftest.err)
7643 cat conftest.err >&5
7644 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7645 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7646 cat conftest.err >&5
7647 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7648 cat conftest.out >&5
7649 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7650 lt_cv_nm_interface="MS dumpbin"
7651 fi
7652 rm -f conftest*
7653 fi
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7655 $as_echo "$lt_cv_nm_interface" >&6; }
7656
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7658 $as_echo_n "checking whether ln -s works... " >&6; }
7659 LN_S=$as_ln_s
7660 if test "$LN_S" = "ln -s"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7662 $as_echo "yes" >&6; }
7663 else
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7665 $as_echo "no, using $LN_S" >&6; }
7666 fi
7667
7668 # find the maximum length of command line arguments
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7670 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7671 if ${lt_cv_sys_max_cmd_len+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 i=0
7675 teststring=ABCD
7676
7677 case $build_os in
7678 msdosdjgpp*)
7679 # On DJGPP, this test can blow up pretty badly due to problems in libc
7680 # (any single argument exceeding 2000 bytes causes a buffer overrun
7681 # during glob expansion). Even if it were fixed, the result of this
7682 # check would be larger than it should be.
7683 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7684 ;;
7685
7686 gnu*)
7687 # Under GNU Hurd, this test is not required because there is
7688 # no limit to the length of command line arguments.
7689 # Libtool will interpret -1 as no limit whatsoever
7690 lt_cv_sys_max_cmd_len=-1;
7691 ;;
7692
7693 cygwin* | mingw* | cegcc*)
7694 # On Win9x/ME, this test blows up -- it succeeds, but takes
7695 # about 5 minutes as the teststring grows exponentially.
7696 # Worse, since 9x/ME are not pre-emptively multitasking,
7697 # you end up with a "frozen" computer, even though with patience
7698 # the test eventually succeeds (with a max line length of 256k).
7699 # Instead, let's just punt: use the minimum linelength reported by
7700 # all of the supported platforms: 8192 (on NT/2K/XP).
7701 lt_cv_sys_max_cmd_len=8192;
7702 ;;
7703
7704 mint*)
7705 # On MiNT this can take a long time and run out of memory.
7706 lt_cv_sys_max_cmd_len=8192;
7707 ;;
7708
7709 amigaos*)
7710 # On AmigaOS with pdksh, this test takes hours, literally.
7711 # So we just punt and use a minimum line length of 8192.
7712 lt_cv_sys_max_cmd_len=8192;
7713 ;;
7714
7715 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7716 # This has been around since 386BSD, at least. Likely further.
7717 if test -x /sbin/sysctl; then
7718 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7719 elif test -x /usr/sbin/sysctl; then
7720 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7721 else
7722 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7723 fi
7724 # And add a safety zone
7725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7727 ;;
7728
7729 interix*)
7730 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7731 lt_cv_sys_max_cmd_len=196608
7732 ;;
7733
7734 os2*)
7735 # The test takes a long time on OS/2.
7736 lt_cv_sys_max_cmd_len=8192
7737 ;;
7738
7739 osf*)
7740 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7741 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7742 # nice to cause kernel panics so lets avoid the loop below.
7743 # First set a reasonable default.
7744 lt_cv_sys_max_cmd_len=16384
7745 #
7746 if test -x /sbin/sysconfig; then
7747 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7748 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7749 esac
7750 fi
7751 ;;
7752 sco3.2v5*)
7753 lt_cv_sys_max_cmd_len=102400
7754 ;;
7755 sysv5* | sco5v6* | sysv4.2uw2*)
7756 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7757 if test -n "$kargmax"; then
7758 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7759 else
7760 lt_cv_sys_max_cmd_len=32768
7761 fi
7762 ;;
7763 *)
7764 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7765 if test -n "$lt_cv_sys_max_cmd_len" && \
7766 test undefined != "$lt_cv_sys_max_cmd_len"; then
7767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7769 else
7770 # Make teststring a little bigger before we do anything with it.
7771 # a 1K string should be a reasonable start.
7772 for i in 1 2 3 4 5 6 7 8; do
7773 teststring=$teststring$teststring
7774 done
7775 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7776 # If test is not a shell built-in, we'll probably end up computing a
7777 # maximum length that is only half of the actual maximum length, but
7778 # we can't tell.
7779 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7780 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7781 test 17 != "$i" # 1/2 MB should be enough
7782 do
7783 i=`expr $i + 1`
7784 teststring=$teststring$teststring
7785 done
7786 # Only check the string length outside the loop.
7787 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7788 teststring=
7789 # Add a significant safety factor because C++ compilers can tack on
7790 # massive amounts of additional arguments before passing them to the
7791 # linker. It appears as though 1/2 is a usable value.
7792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7793 fi
7794 ;;
7795 esac
7796
7797 fi
7798
7799 if test -n "$lt_cv_sys_max_cmd_len"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7801 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7804 $as_echo "none" >&6; }
7805 fi
7806 max_cmd_len=$lt_cv_sys_max_cmd_len
7807
7808
7809
7810
7811
7812
7813 : ${CP="cp -f"}
7814 : ${MV="mv -f"}
7815 : ${RM="rm -f"}
7816
7817 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7818 lt_unset=unset
7819 else
7820 lt_unset=false
7821 fi
7822
7823
7824
7825
7826
7827 # test EBCDIC or ASCII
7828 case `echo X|tr X '\101'` in
7829 A) # ASCII based system
7830 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7831 lt_SP2NL='tr \040 \012'
7832 lt_NL2SP='tr \015\012 \040\040'
7833 ;;
7834 *) # EBCDIC based system
7835 lt_SP2NL='tr \100 \n'
7836 lt_NL2SP='tr \r\n \100\100'
7837 ;;
7838 esac
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7849 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7850 if ${lt_cv_to_host_file_cmd+:} false; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 case $host in
7854 *-*-mingw* )
7855 case $build in
7856 *-*-mingw* ) # actually msys
7857 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7858 ;;
7859 *-*-cygwin* )
7860 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7861 ;;
7862 * ) # otherwise, assume *nix
7863 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7864 ;;
7865 esac
7866 ;;
7867 *-*-cygwin* )
7868 case $build in
7869 *-*-mingw* ) # actually msys
7870 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7871 ;;
7872 *-*-cygwin* )
7873 lt_cv_to_host_file_cmd=func_convert_file_noop
7874 ;;
7875 * ) # otherwise, assume *nix
7876 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7877 ;;
7878 esac
7879 ;;
7880 * ) # unhandled hosts (and "normal" native builds)
7881 lt_cv_to_host_file_cmd=func_convert_file_noop
7882 ;;
7883 esac
7884
7885 fi
7886
7887 to_host_file_cmd=$lt_cv_to_host_file_cmd
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7889 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7890
7891
7892
7893
7894
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7896 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7897 if ${lt_cv_to_tool_file_cmd+:} false; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 #assume ordinary cross tools, or native build.
7901 lt_cv_to_tool_file_cmd=func_convert_file_noop
7902 case $host in
7903 *-*-mingw* )
7904 case $build in
7905 *-*-mingw* ) # actually msys
7906 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7907 ;;
7908 esac
7909 ;;
7910 esac
7911
7912 fi
7913
7914 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7916 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7917
7918
7919
7920
7921
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7923 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7924 if ${lt_cv_ld_reload_flag+:} false; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 lt_cv_ld_reload_flag='-r'
7928 fi
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7930 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7931 reload_flag=$lt_cv_ld_reload_flag
7932 case $reload_flag in
7933 "" | " "*) ;;
7934 *) reload_flag=" $reload_flag" ;;
7935 esac
7936 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7937 case $host_os in
7938 cygwin* | mingw* | pw32* | cegcc*)
7939 if test yes != "$GCC"; then
7940 reload_cmds=false
7941 fi
7942 ;;
7943 darwin*)
7944 if test yes = "$GCC"; then
7945 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7946 else
7947 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7948 fi
7949 ;;
7950 esac
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960 if test -n "$ac_tool_prefix"; then
7961 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7962 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if ${ac_cv_prog_OBJDUMP+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 if test -n "$OBJDUMP"; then
7969 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7973 do
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7981 fi
7982 done
7983 done
7984 IFS=$as_save_IFS
7985
7986 fi
7987 fi
7988 OBJDUMP=$ac_cv_prog_OBJDUMP
7989 if test -n "$OBJDUMP"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7991 $as_echo "$OBJDUMP" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7995 fi
7996
7997
7998 fi
7999 if test -z "$ac_cv_prog_OBJDUMP"; then
8000 ac_ct_OBJDUMP=$OBJDUMP
8001 # Extract the first word of "objdump", so it can be a program name with args.
8002 set dummy objdump; ac_word=$2
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 $as_echo_n "checking for $ac_word... " >&6; }
8005 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8006 $as_echo_n "(cached) " >&6
8007 else
8008 if test -n "$ac_ct_OBJDUMP"; then
8009 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8010 else
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8013 do
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022 done
8023 done
8024 IFS=$as_save_IFS
8025
8026 fi
8027 fi
8028 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8029 if test -n "$ac_ct_OBJDUMP"; then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8031 $as_echo "$ac_ct_OBJDUMP" >&6; }
8032 else
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8035 fi
8036
8037 if test "x$ac_ct_OBJDUMP" = x; then
8038 OBJDUMP="false"
8039 else
8040 case $cross_compiling:$ac_tool_warned in
8041 yes:)
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8044 ac_tool_warned=yes ;;
8045 esac
8046 OBJDUMP=$ac_ct_OBJDUMP
8047 fi
8048 else
8049 OBJDUMP="$ac_cv_prog_OBJDUMP"
8050 fi
8051
8052 test -z "$OBJDUMP" && OBJDUMP=objdump
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8063 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8064 if ${lt_cv_deplibs_check_method+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 lt_cv_file_magic_cmd='$MAGIC_CMD'
8068 lt_cv_file_magic_test_file=
8069 lt_cv_deplibs_check_method='unknown'
8070 # Need to set the preceding variable on all platforms that support
8071 # interlibrary dependencies.
8072 # 'none' -- dependencies not supported.
8073 # 'unknown' -- same as none, but documents that we really don't know.
8074 # 'pass_all' -- all dependencies passed with no checks.
8075 # 'test_compile' -- check by making test program.
8076 # 'file_magic [[regex]]' -- check by looking for files in library path
8077 # that responds to the $file_magic_cmd with a given extended regex.
8078 # If you have 'file' or equivalent on your system and you're not sure
8079 # whether 'pass_all' will *always* work, you probably want this one.
8080
8081 case $host_os in
8082 aix[4-9]*)
8083 lt_cv_deplibs_check_method=pass_all
8084 ;;
8085
8086 beos*)
8087 lt_cv_deplibs_check_method=pass_all
8088 ;;
8089
8090 bsdi[45]*)
8091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8092 lt_cv_file_magic_cmd='/usr/bin/file -L'
8093 lt_cv_file_magic_test_file=/shlib/libc.so
8094 ;;
8095
8096 cygwin*)
8097 # func_win32_libid is a shell function defined in ltmain.sh
8098 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8099 lt_cv_file_magic_cmd='func_win32_libid'
8100 ;;
8101
8102 mingw* | pw32*)
8103 # Base MSYS/MinGW do not provide the 'file' command needed by
8104 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8105 # unless we find 'file', for example because we are cross-compiling.
8106 if ( file / ) >/dev/null 2>&1; then
8107 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8108 lt_cv_file_magic_cmd='func_win32_libid'
8109 else
8110 # Keep this pattern in sync with the one in func_win32_libid.
8111 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8112 lt_cv_file_magic_cmd='$OBJDUMP -f'
8113 fi
8114 ;;
8115
8116 cegcc*)
8117 # use the weaker test based on 'objdump'. See mingw*.
8118 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8119 lt_cv_file_magic_cmd='$OBJDUMP -f'
8120 ;;
8121
8122 darwin* | rhapsody*)
8123 lt_cv_deplibs_check_method=pass_all
8124 ;;
8125
8126 freebsd* | dragonfly*)
8127 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8128 case $host_cpu in
8129 i*86 )
8130 # Not sure whether the presence of OpenBSD here was a mistake.
8131 # Let's accept both of them until this is cleared up.
8132 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8133 lt_cv_file_magic_cmd=/usr/bin/file
8134 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8135 ;;
8136 esac
8137 else
8138 lt_cv_deplibs_check_method=pass_all
8139 fi
8140 ;;
8141
8142 haiku*)
8143 lt_cv_deplibs_check_method=pass_all
8144 ;;
8145
8146 hpux10.20* | hpux11*)
8147 lt_cv_file_magic_cmd=/usr/bin/file
8148 case $host_cpu in
8149 ia64*)
8150 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8151 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8152 ;;
8153 hppa*64*)
8154 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]'
8155 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8156 ;;
8157 *)
8158 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8159 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8160 ;;
8161 esac
8162 ;;
8163
8164 interix[3-9]*)
8165 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8167 ;;
8168
8169 irix5* | irix6* | nonstopux*)
8170 case $LD in
8171 *-32|*"-32 ") libmagic=32-bit;;
8172 *-n32|*"-n32 ") libmagic=N32;;
8173 *-64|*"-64 ") libmagic=64-bit;;
8174 *) libmagic=never-match;;
8175 esac
8176 lt_cv_deplibs_check_method=pass_all
8177 ;;
8178
8179 # This must be glibc/ELF.
8180 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8181 lt_cv_deplibs_check_method=pass_all
8182 ;;
8183
8184 netbsd* | netbsdelf*-gnu)
8185 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8187 else
8188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8189 fi
8190 ;;
8191
8192 newos6*)
8193 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8194 lt_cv_file_magic_cmd=/usr/bin/file
8195 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8196 ;;
8197
8198 *nto* | *qnx*)
8199 lt_cv_deplibs_check_method=pass_all
8200 ;;
8201
8202 openbsd* | bitrig*)
8203 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8205 else
8206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8207 fi
8208 ;;
8209
8210 osf3* | osf4* | osf5*)
8211 lt_cv_deplibs_check_method=pass_all
8212 ;;
8213
8214 rdos*)
8215 lt_cv_deplibs_check_method=pass_all
8216 ;;
8217
8218 solaris*)
8219 lt_cv_deplibs_check_method=pass_all
8220 ;;
8221
8222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8223 lt_cv_deplibs_check_method=pass_all
8224 ;;
8225
8226 sysv4 | sysv4.3*)
8227 case $host_vendor in
8228 motorola)
8229 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]'
8230 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8231 ;;
8232 ncr)
8233 lt_cv_deplibs_check_method=pass_all
8234 ;;
8235 sequent)
8236 lt_cv_file_magic_cmd='/bin/file'
8237 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8238 ;;
8239 sni)
8240 lt_cv_file_magic_cmd='/bin/file'
8241 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8242 lt_cv_file_magic_test_file=/lib/libc.so
8243 ;;
8244 siemens)
8245 lt_cv_deplibs_check_method=pass_all
8246 ;;
8247 pc)
8248 lt_cv_deplibs_check_method=pass_all
8249 ;;
8250 esac
8251 ;;
8252
8253 tpf*)
8254 lt_cv_deplibs_check_method=pass_all
8255 ;;
8256 os2*)
8257 lt_cv_deplibs_check_method=pass_all
8258 ;;
8259 esac
8260
8261 fi
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8263 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8264
8265 file_magic_glob=
8266 want_nocaseglob=no
8267 if test "$build" = "$host"; then
8268 case $host_os in
8269 mingw* | pw32*)
8270 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8271 want_nocaseglob=yes
8272 else
8273 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8274 fi
8275 ;;
8276 esac
8277 fi
8278
8279 file_magic_cmd=$lt_cv_file_magic_cmd
8280 deplibs_check_method=$lt_cv_deplibs_check_method
8281 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304 if test -n "$ac_tool_prefix"; then
8305 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8306 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if ${ac_cv_prog_DLLTOOL+:} false; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 if test -n "$DLLTOOL"; then
8313 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8322 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 break 2
8325 fi
8326 done
8327 done
8328 IFS=$as_save_IFS
8329
8330 fi
8331 fi
8332 DLLTOOL=$ac_cv_prog_DLLTOOL
8333 if test -n "$DLLTOOL"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8335 $as_echo "$DLLTOOL" >&6; }
8336 else
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8339 fi
8340
8341
8342 fi
8343 if test -z "$ac_cv_prog_DLLTOOL"; then
8344 ac_ct_DLLTOOL=$DLLTOOL
8345 # Extract the first word of "dlltool", so it can be a program name with args.
8346 set dummy dlltool; ac_word=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 if test -n "$ac_ct_DLLTOOL"; then
8353 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8362 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 break 2
8365 fi
8366 done
8367 done
8368 IFS=$as_save_IFS
8369
8370 fi
8371 fi
8372 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8373 if test -n "$ac_ct_DLLTOOL"; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8375 $as_echo "$ac_ct_DLLTOOL" >&6; }
8376 else
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8379 fi
8380
8381 if test "x$ac_ct_DLLTOOL" = x; then
8382 DLLTOOL="false"
8383 else
8384 case $cross_compiling:$ac_tool_warned in
8385 yes:)
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8388 ac_tool_warned=yes ;;
8389 esac
8390 DLLTOOL=$ac_ct_DLLTOOL
8391 fi
8392 else
8393 DLLTOOL="$ac_cv_prog_DLLTOOL"
8394 fi
8395
8396 test -z "$DLLTOOL" && DLLTOOL=dlltool
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8408 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8409 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 lt_cv_sharedlib_from_linklib_cmd='unknown'
8413
8414 case $host_os in
8415 cygwin* | mingw* | pw32* | cegcc*)
8416 # two different shell functions defined in ltmain.sh;
8417 # decide which one to use based on capabilities of $DLLTOOL
8418 case `$DLLTOOL --help 2>&1` in
8419 *--identify-strict*)
8420 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8421 ;;
8422 *)
8423 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8424 ;;
8425 esac
8426 ;;
8427 *)
8428 # fallback: assume linklib IS sharedlib
8429 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8430 ;;
8431 esac
8432
8433 fi
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8435 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8436 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8437 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8438
8439
8440
8441
8442
8443
8444
8445 if test -n "$ac_tool_prefix"; then
8446 for ac_prog in ar
8447 do
8448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451 $as_echo_n "checking for $ac_word... " >&6; }
8452 if ${ac_cv_prog_AR+:} false; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 if test -n "$AR"; then
8456 ac_cv_prog_AR="$AR" # Let the user override the test.
8457 else
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 for as_dir in $PATH
8460 do
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8465 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 break 2
8468 fi
8469 done
8470 done
8471 IFS=$as_save_IFS
8472
8473 fi
8474 fi
8475 AR=$ac_cv_prog_AR
8476 if test -n "$AR"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8478 $as_echo "$AR" >&6; }
8479 else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8482 fi
8483
8484
8485 test -n "$AR" && break
8486 done
8487 fi
8488 if test -z "$AR"; then
8489 ac_ct_AR=$AR
8490 for ac_prog in ar
8491 do
8492 # Extract the first word of "$ac_prog", so it can be a program name with args.
8493 set dummy $ac_prog; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 if test -n "$ac_ct_AR"; then
8500 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8501 else
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8504 do
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8509 ac_cv_prog_ac_ct_AR="$ac_prog"
8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 break 2
8512 fi
8513 done
8514 done
8515 IFS=$as_save_IFS
8516
8517 fi
8518 fi
8519 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8520 if test -n "$ac_ct_AR"; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8522 $as_echo "$ac_ct_AR" >&6; }
8523 else
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8526 fi
8527
8528
8529 test -n "$ac_ct_AR" && break
8530 done
8531
8532 if test "x$ac_ct_AR" = x; then
8533 AR="false"
8534 else
8535 case $cross_compiling:$ac_tool_warned in
8536 yes:)
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8539 ac_tool_warned=yes ;;
8540 esac
8541 AR=$ac_ct_AR
8542 fi
8543 fi
8544
8545 : ${AR=ar}
8546 : ${AR_FLAGS=cr}
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8559 $as_echo_n "checking for archiver @FILE support... " >&6; }
8560 if ${lt_cv_ar_at_file+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562 else
8563 lt_cv_ar_at_file=no
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566
8567 int
8568 main ()
8569 {
8570
8571 ;
8572 return 0;
8573 }
8574 _ACEOF
8575 if ac_fn_c_try_compile "$LINENO"; then :
8576 echo conftest.$ac_objext > conftest.lst
8577 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8579 (eval $lt_ar_try) 2>&5
8580 ac_status=$?
8581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8582 test $ac_status = 0; }
8583 if test 0 -eq "$ac_status"; then
8584 # Ensure the archiver fails upon bogus file names.
8585 rm -f conftest.$ac_objext libconftest.a
8586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8587 (eval $lt_ar_try) 2>&5
8588 ac_status=$?
8589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8590 test $ac_status = 0; }
8591 if test 0 -ne "$ac_status"; then
8592 lt_cv_ar_at_file=@
8593 fi
8594 fi
8595 rm -f conftest.* libconftest.a
8596
8597 fi
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599
8600 fi
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8602 $as_echo "$lt_cv_ar_at_file" >&6; }
8603
8604 if test no = "$lt_cv_ar_at_file"; then
8605 archiver_list_spec=
8606 else
8607 archiver_list_spec=$lt_cv_ar_at_file
8608 fi
8609
8610
8611
8612
8613
8614
8615
8616 if test -n "$ac_tool_prefix"; then
8617 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8618 set dummy ${ac_tool_prefix}strip; ac_word=$2
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620 $as_echo_n "checking for $ac_word... " >&6; }
8621 if ${ac_cv_prog_STRIP+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 if test -n "$STRIP"; then
8625 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8626 else
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 for as_dir in $PATH
8629 do
8630 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 break 2
8637 fi
8638 done
8639 done
8640 IFS=$as_save_IFS
8641
8642 fi
8643 fi
8644 STRIP=$ac_cv_prog_STRIP
8645 if test -n "$STRIP"; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8647 $as_echo "$STRIP" >&6; }
8648 else
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8651 fi
8652
8653
8654 fi
8655 if test -z "$ac_cv_prog_STRIP"; then
8656 ac_ct_STRIP=$STRIP
8657 # Extract the first word of "strip", so it can be a program name with args.
8658 set dummy strip; ac_word=$2
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8660 $as_echo_n "checking for $ac_word... " >&6; }
8661 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 if test -n "$ac_ct_STRIP"; then
8665 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8666 else
8667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 for as_dir in $PATH
8669 do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8674 ac_cv_prog_ac_ct_STRIP="strip"
8675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 break 2
8677 fi
8678 done
8679 done
8680 IFS=$as_save_IFS
8681
8682 fi
8683 fi
8684 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8685 if test -n "$ac_ct_STRIP"; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8687 $as_echo "$ac_ct_STRIP" >&6; }
8688 else
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690 $as_echo "no" >&6; }
8691 fi
8692
8693 if test "x$ac_ct_STRIP" = x; then
8694 STRIP=":"
8695 else
8696 case $cross_compiling:$ac_tool_warned in
8697 yes:)
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8700 ac_tool_warned=yes ;;
8701 esac
8702 STRIP=$ac_ct_STRIP
8703 fi
8704 else
8705 STRIP="$ac_cv_prog_STRIP"
8706 fi
8707
8708 test -z "$STRIP" && STRIP=:
8709
8710
8711
8712
8713
8714
8715 if test -n "$ac_tool_prefix"; then
8716 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8717 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if ${ac_cv_prog_RANLIB+:} false; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 if test -n "$RANLIB"; then
8724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729 IFS=$as_save_IFS
8730 test -z "$as_dir" && as_dir=.
8731 for ac_exec_ext in '' $ac_executable_extensions; do
8732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8733 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8735 break 2
8736 fi
8737 done
8738 done
8739 IFS=$as_save_IFS
8740
8741 fi
8742 fi
8743 RANLIB=$ac_cv_prog_RANLIB
8744 if test -n "$RANLIB"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8746 $as_echo "$RANLIB" >&6; }
8747 else
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8750 fi
8751
8752
8753 fi
8754 if test -z "$ac_cv_prog_RANLIB"; then
8755 ac_ct_RANLIB=$RANLIB
8756 # Extract the first word of "ranlib", so it can be a program name with args.
8757 set dummy ranlib; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8761 $as_echo_n "(cached) " >&6
8762 else
8763 if test -n "$ac_ct_RANLIB"; then
8764 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8765 else
8766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8767 for as_dir in $PATH
8768 do
8769 IFS=$as_save_IFS
8770 test -z "$as_dir" && as_dir=.
8771 for ac_exec_ext in '' $ac_executable_extensions; do
8772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8773 ac_cv_prog_ac_ct_RANLIB="ranlib"
8774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775 break 2
8776 fi
8777 done
8778 done
8779 IFS=$as_save_IFS
8780
8781 fi
8782 fi
8783 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8784 if test -n "$ac_ct_RANLIB"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8786 $as_echo "$ac_ct_RANLIB" >&6; }
8787 else
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8790 fi
8791
8792 if test "x$ac_ct_RANLIB" = x; then
8793 RANLIB=":"
8794 else
8795 case $cross_compiling:$ac_tool_warned in
8796 yes:)
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8799 ac_tool_warned=yes ;;
8800 esac
8801 RANLIB=$ac_ct_RANLIB
8802 fi
8803 else
8804 RANLIB="$ac_cv_prog_RANLIB"
8805 fi
8806
8807 test -z "$RANLIB" && RANLIB=:
8808
8809
8810
8811
8812
8813
8814 # Determine commands to create old-style static archives.
8815 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8816 old_postinstall_cmds='chmod 644 $oldlib'
8817 old_postuninstall_cmds=
8818
8819 if test -n "$RANLIB"; then
8820 case $host_os in
8821 bitrig* | openbsd*)
8822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8823 ;;
8824 *)
8825 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8826 ;;
8827 esac
8828 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8829 fi
8830
8831 case $host_os in
8832 darwin*)
8833 lock_old_archive_extraction=yes ;;
8834 *)
8835 lock_old_archive_extraction=no ;;
8836 esac
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876 # If no C compiler was specified, use CC.
8877 LTCC=${LTCC-"$CC"}
8878
8879 # If no C compiler flags were specified, use CFLAGS.
8880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8881
8882 # Allow CC to be a program name with arguments.
8883 compiler=$CC
8884
8885
8886 # Check for command to grab the raw symbol name followed by C symbol from nm.
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8888 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8889 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892
8893 # These are sane defaults that work on at least a few old systems.
8894 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8895
8896 # Character class describing NM global symbol codes.
8897 symcode='[BCDEGRST]'
8898
8899 # Regexp to match symbols that can be accessed directly from C.
8900 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8901
8902 # Define system-specific variables.
8903 case $host_os in
8904 aix*)
8905 symcode='[BCDT]'
8906 ;;
8907 cygwin* | mingw* | pw32* | cegcc*)
8908 symcode='[ABCDGISTW]'
8909 ;;
8910 hpux*)
8911 if test ia64 = "$host_cpu"; then
8912 symcode='[ABCDEGRST]'
8913 fi
8914 ;;
8915 irix* | nonstopux*)
8916 symcode='[BCDEGRST]'
8917 ;;
8918 osf*)
8919 symcode='[BCDEGQRST]'
8920 ;;
8921 solaris*)
8922 symcode='[BDRT]'
8923 ;;
8924 sco3.2v5*)
8925 symcode='[DT]'
8926 ;;
8927 sysv4.2uw2*)
8928 symcode='[DT]'
8929 ;;
8930 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8931 symcode='[ABDT]'
8932 ;;
8933 sysv4)
8934 symcode='[DFNSTU]'
8935 ;;
8936 esac
8937
8938 # If we're using GNU nm, then use its standard symbol codes.
8939 case `$NM -V 2>&1` in
8940 *GNU* | *'with BFD'*)
8941 symcode='[ABCDGIRSTW]' ;;
8942 esac
8943
8944 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8945 # Gets list of data symbols to import.
8946 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8947 # Adjust the below global symbol transforms to fixup imported variables.
8948 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8949 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8950 lt_c_name_lib_hook="\
8951 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8952 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8953 else
8954 # Disable hooks by default.
8955 lt_cv_sys_global_symbol_to_import=
8956 lt_cdecl_hook=
8957 lt_c_name_hook=
8958 lt_c_name_lib_hook=
8959 fi
8960
8961 # Transform an extracted symbol line into a proper C declaration.
8962 # Some systems (esp. on ia64) link data and code symbols differently,
8963 # so use this general approach.
8964 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8965 $lt_cdecl_hook\
8966 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8967 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8968
8969 # Transform an extracted symbol line into symbol name and symbol address
8970 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8971 $lt_c_name_hook\
8972 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8973 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8974
8975 # Transform an extracted symbol line into symbol name with lib prefix and
8976 # symbol address.
8977 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8978 $lt_c_name_lib_hook\
8979 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8980 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8981 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8982
8983 # Handle CRLF in mingw tool chain
8984 opt_cr=
8985 case $build_os in
8986 mingw*)
8987 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8988 ;;
8989 esac
8990
8991 # Try without a prefix underscore, then with it.
8992 for ac_symprfx in "" "_"; do
8993
8994 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8995 symxfrm="\\1 $ac_symprfx\\2 \\2"
8996
8997 # Write the raw and C identifiers.
8998 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8999 # Fake it for dumpbin and say T for any non-static function,
9000 # D for any global variable and I for any imported variable.
9001 # Also find C++ and __fastcall symbols from MSVC++,
9002 # which start with @ or ?.
9003 lt_cv_sys_global_symbol_pipe="$AWK '"\
9004 " {last_section=section; section=\$ 3};"\
9005 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9006 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9007 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9008 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9009 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9010 " \$ 0!~/External *\|/{next};"\
9011 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9012 " {if(hide[section]) next};"\
9013 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9014 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9015 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9016 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9017 " ' prfx=^$ac_symprfx"
9018 else
9019 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9020 fi
9021 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9022
9023 # Check to see that the pipe works correctly.
9024 pipe_works=no
9025
9026 rm -f conftest*
9027 cat > conftest.$ac_ext <<_LT_EOF
9028 #ifdef __cplusplus
9029 extern "C" {
9030 #endif
9031 char nm_test_var;
9032 void nm_test_func(void);
9033 void nm_test_func(void){}
9034 #ifdef __cplusplus
9035 }
9036 #endif
9037 int main(){nm_test_var='a';nm_test_func();return(0);}
9038 _LT_EOF
9039
9040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9041 (eval $ac_compile) 2>&5
9042 ac_status=$?
9043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9044 test $ac_status = 0; }; then
9045 # Now try to grab the symbols.
9046 nlist=conftest.nm
9047 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9048 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9049 # Try sorting and uniquifying the output.
9050 if sort "$nlist" | uniq > "$nlist"T; then
9051 mv -f "$nlist"T "$nlist"
9052 else
9053 rm -f "$nlist"T
9054 fi
9055
9056 # Make sure that we snagged all the symbols we need.
9057 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9058 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9059 cat <<_LT_EOF > conftest.$ac_ext
9060 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9061 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9062 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9063 relocations are performed -- see ld's documentation on pseudo-relocs. */
9064 # define LT_DLSYM_CONST
9065 #elif defined __osf__
9066 /* This system does not cope well with relocations in const data. */
9067 # define LT_DLSYM_CONST
9068 #else
9069 # define LT_DLSYM_CONST const
9070 #endif
9071
9072 #ifdef __cplusplus
9073 extern "C" {
9074 #endif
9075
9076 _LT_EOF
9077 # Now generate the symbol file.
9078 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9079
9080 cat <<_LT_EOF >> conftest.$ac_ext
9081
9082 /* The mapping between symbol names and symbols. */
9083 LT_DLSYM_CONST struct {
9084 const char *name;
9085 void *address;
9086 }
9087 lt__PROGRAM__LTX_preloaded_symbols[] =
9088 {
9089 { "@PROGRAM@", (void *) 0 },
9090 _LT_EOF
9091 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9092 cat <<\_LT_EOF >> conftest.$ac_ext
9093 {0, (void *) 0}
9094 };
9095
9096 /* This works around a problem in FreeBSD linker */
9097 #ifdef FREEBSD_WORKAROUND
9098 static const void *lt_preloaded_setup() {
9099 return lt__PROGRAM__LTX_preloaded_symbols;
9100 }
9101 #endif
9102
9103 #ifdef __cplusplus
9104 }
9105 #endif
9106 _LT_EOF
9107 # Now try linking the two files.
9108 mv conftest.$ac_objext conftstm.$ac_objext
9109 lt_globsym_save_LIBS=$LIBS
9110 lt_globsym_save_CFLAGS=$CFLAGS
9111 LIBS=conftstm.$ac_objext
9112 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9114 (eval $ac_link) 2>&5
9115 ac_status=$?
9116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9117 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9118 pipe_works=yes
9119 fi
9120 LIBS=$lt_globsym_save_LIBS
9121 CFLAGS=$lt_globsym_save_CFLAGS
9122 else
9123 echo "cannot find nm_test_func in $nlist" >&5
9124 fi
9125 else
9126 echo "cannot find nm_test_var in $nlist" >&5
9127 fi
9128 else
9129 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9130 fi
9131 else
9132 echo "$progname: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9134 fi
9135 rm -rf conftest* conftst*
9136
9137 # Do not use the global_symbol_pipe unless it works.
9138 if test yes = "$pipe_works"; then
9139 break
9140 else
9141 lt_cv_sys_global_symbol_pipe=
9142 fi
9143 done
9144
9145 fi
9146
9147 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9148 lt_cv_sys_global_symbol_to_cdecl=
9149 fi
9150 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9152 $as_echo "failed" >&6; }
9153 else
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9155 $as_echo "ok" >&6; }
9156 fi
9157
9158 # Response file support.
9159 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9160 nm_file_list_spec='@'
9161 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9162 nm_file_list_spec='@'
9163 fi
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9202 $as_echo_n "checking for sysroot... " >&6; }
9203
9204 # Check whether --with-sysroot was given.
9205 if test "${with_sysroot+set}" = set; then :
9206 withval=$with_sysroot;
9207 else
9208 with_sysroot=no
9209 fi
9210
9211
9212 lt_sysroot=
9213 case $with_sysroot in #(
9214 yes)
9215 if test yes = "$GCC"; then
9216 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9217 fi
9218 ;; #(
9219 /*)
9220 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9221 ;; #(
9222 no|'')
9223 ;; #(
9224 *)
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9226 $as_echo "$with_sysroot" >&6; }
9227 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9228 ;;
9229 esac
9230
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9232 $as_echo "${lt_sysroot:-no}" >&6; }
9233
9234
9235
9236
9237
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9239 $as_echo_n "checking for a working dd... " >&6; }
9240 if ${ac_cv_path_lt_DD+:} false; then :
9241 $as_echo_n "(cached) " >&6
9242 else
9243 printf 0123456789abcdef0123456789abcdef >conftest.i
9244 cat conftest.i conftest.i >conftest2.i
9245 : ${lt_DD:=$DD}
9246 if test -z "$lt_DD"; then
9247 ac_path_lt_DD_found=false
9248 # Loop through the user's path and test for each of PROGNAME-LIST
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250 for as_dir in $PATH
9251 do
9252 IFS=$as_save_IFS
9253 test -z "$as_dir" && as_dir=.
9254 for ac_prog in dd; do
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9257 as_fn_executable_p "$ac_path_lt_DD" || continue
9258 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9259 cmp -s conftest.i conftest.out \
9260 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9261 fi
9262 $ac_path_lt_DD_found && break 3
9263 done
9264 done
9265 done
9266 IFS=$as_save_IFS
9267 if test -z "$ac_cv_path_lt_DD"; then
9268 :
9269 fi
9270 else
9271 ac_cv_path_lt_DD=$lt_DD
9272 fi
9273
9274 rm -f conftest.i conftest2.i conftest.out
9275 fi
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9277 $as_echo "$ac_cv_path_lt_DD" >&6; }
9278
9279
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9281 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9282 if ${lt_cv_truncate_bin+:} false; then :
9283 $as_echo_n "(cached) " >&6
9284 else
9285 printf 0123456789abcdef0123456789abcdef >conftest.i
9286 cat conftest.i conftest.i >conftest2.i
9287 lt_cv_truncate_bin=
9288 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9289 cmp -s conftest.i conftest.out \
9290 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9291 fi
9292 rm -f conftest.i conftest2.i conftest.out
9293 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9294 fi
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9296 $as_echo "$lt_cv_truncate_bin" >&6; }
9297
9298
9299
9300
9301
9302
9303
9304 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9305 func_cc_basename ()
9306 {
9307 for cc_temp in $*""; do
9308 case $cc_temp in
9309 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9310 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9311 \-*) ;;
9312 *) break;;
9313 esac
9314 done
9315 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9316 }
9317
9318 # Check whether --enable-libtool-lock was given.
9319 if test "${enable_libtool_lock+set}" = set; then :
9320 enableval=$enable_libtool_lock;
9321 fi
9322
9323 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9324
9325 # Some flags need to be propagated to the compiler or linker for good
9326 # libtool support.
9327 case $host in
9328 ia64-*-hpux*)
9329 # Find out what ABI is being produced by ac_compile, and set mode
9330 # options accordingly.
9331 echo 'int i;' > conftest.$ac_ext
9332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9333 (eval $ac_compile) 2>&5
9334 ac_status=$?
9335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9336 test $ac_status = 0; }; then
9337 case `/usr/bin/file conftest.$ac_objext` in
9338 *ELF-32*)
9339 HPUX_IA64_MODE=32
9340 ;;
9341 *ELF-64*)
9342 HPUX_IA64_MODE=64
9343 ;;
9344 esac
9345 fi
9346 rm -rf conftest*
9347 ;;
9348 *-*-irix6*)
9349 # Find out what ABI is being produced by ac_compile, and set linker
9350 # options accordingly.
9351 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9353 (eval $ac_compile) 2>&5
9354 ac_status=$?
9355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9356 test $ac_status = 0; }; then
9357 if test yes = "$lt_cv_prog_gnu_ld"; then
9358 case `/usr/bin/file conftest.$ac_objext` in
9359 *32-bit*)
9360 LD="${LD-ld} -melf32bsmip"
9361 ;;
9362 *N32*)
9363 LD="${LD-ld} -melf32bmipn32"
9364 ;;
9365 *64-bit*)
9366 LD="${LD-ld} -melf64bmip"
9367 ;;
9368 esac
9369 else
9370 case `/usr/bin/file conftest.$ac_objext` in
9371 *32-bit*)
9372 LD="${LD-ld} -32"
9373 ;;
9374 *N32*)
9375 LD="${LD-ld} -n32"
9376 ;;
9377 *64-bit*)
9378 LD="${LD-ld} -64"
9379 ;;
9380 esac
9381 fi
9382 fi
9383 rm -rf conftest*
9384 ;;
9385
9386 mips64*-*linux*)
9387 # Find out what ABI is being produced by ac_compile, and set linker
9388 # options accordingly.
9389 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9391 (eval $ac_compile) 2>&5
9392 ac_status=$?
9393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9394 test $ac_status = 0; }; then
9395 emul=elf
9396 case `/usr/bin/file conftest.$ac_objext` in
9397 *32-bit*)
9398 emul="${emul}32"
9399 ;;
9400 *64-bit*)
9401 emul="${emul}64"
9402 ;;
9403 esac
9404 case `/usr/bin/file conftest.$ac_objext` in
9405 *MSB*)
9406 emul="${emul}btsmip"
9407 ;;
9408 *LSB*)
9409 emul="${emul}ltsmip"
9410 ;;
9411 esac
9412 case `/usr/bin/file conftest.$ac_objext` in
9413 *N32*)
9414 emul="${emul}n32"
9415 ;;
9416 esac
9417 LD="${LD-ld} -m $emul"
9418 fi
9419 rm -rf conftest*
9420 ;;
9421
9422 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9423 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9424 # Find out what ABI is being produced by ac_compile, and set linker
9425 # options accordingly. Note that the listed cases only cover the
9426 # situations where additional linker options are needed (such as when
9427 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9428 # vice versa); the common cases where no linker options are needed do
9429 # not appear in the list.
9430 echo 'int i;' > conftest.$ac_ext
9431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9432 (eval $ac_compile) 2>&5
9433 ac_status=$?
9434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9435 test $ac_status = 0; }; then
9436 case `/usr/bin/file conftest.o` in
9437 *32-bit*)
9438 case $host in
9439 x86_64-*kfreebsd*-gnu)
9440 LD="${LD-ld} -m elf_i386_fbsd"
9441 ;;
9442 x86_64-*linux*)
9443 case `/usr/bin/file conftest.o` in
9444 *x86-64*)
9445 LD="${LD-ld} -m elf32_x86_64"
9446 ;;
9447 *)
9448 LD="${LD-ld} -m elf_i386"
9449 ;;
9450 esac
9451 ;;
9452 powerpc64le-*linux*)
9453 LD="${LD-ld} -m elf32lppclinux"
9454 ;;
9455 powerpc64-*linux*)
9456 LD="${LD-ld} -m elf32ppclinux"
9457 ;;
9458 s390x-*linux*)
9459 LD="${LD-ld} -m elf_s390"
9460 ;;
9461 sparc64-*linux*)
9462 LD="${LD-ld} -m elf32_sparc"
9463 ;;
9464 esac
9465 ;;
9466 *64-bit*)
9467 case $host in
9468 x86_64-*kfreebsd*-gnu)
9469 LD="${LD-ld} -m elf_x86_64_fbsd"
9470 ;;
9471 x86_64-*linux*)
9472 LD="${LD-ld} -m elf_x86_64"
9473 ;;
9474 powerpcle-*linux*)
9475 LD="${LD-ld} -m elf64lppc"
9476 ;;
9477 powerpc-*linux*)
9478 LD="${LD-ld} -m elf64ppc"
9479 ;;
9480 s390*-*linux*|s390*-*tpf*)
9481 LD="${LD-ld} -m elf64_s390"
9482 ;;
9483 sparc*-*linux*)
9484 LD="${LD-ld} -m elf64_sparc"
9485 ;;
9486 esac
9487 ;;
9488 esac
9489 fi
9490 rm -rf conftest*
9491 ;;
9492
9493 *-*-sco3.2v5*)
9494 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9495 SAVE_CFLAGS=$CFLAGS
9496 CFLAGS="$CFLAGS -belf"
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9498 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9499 if ${lt_cv_cc_needs_belf+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 ac_ext=c
9503 ac_cpp='$CPP $CPPFLAGS'
9504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9507
9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509 /* end confdefs.h. */
9510
9511 int
9512 main ()
9513 {
9514
9515 ;
9516 return 0;
9517 }
9518 _ACEOF
9519 if ac_fn_c_try_link "$LINENO"; then :
9520 lt_cv_cc_needs_belf=yes
9521 else
9522 lt_cv_cc_needs_belf=no
9523 fi
9524 rm -f core conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526 ac_ext=c
9527 ac_cpp='$CPP $CPPFLAGS'
9528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9531
9532 fi
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9534 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9535 if test yes != "$lt_cv_cc_needs_belf"; then
9536 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9537 CFLAGS=$SAVE_CFLAGS
9538 fi
9539 ;;
9540 *-*solaris*)
9541 # Find out what ABI is being produced by ac_compile, and set linker
9542 # options accordingly.
9543 echo 'int i;' > conftest.$ac_ext
9544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9545 (eval $ac_compile) 2>&5
9546 ac_status=$?
9547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9548 test $ac_status = 0; }; then
9549 case `/usr/bin/file conftest.o` in
9550 *64-bit*)
9551 case $lt_cv_prog_gnu_ld in
9552 yes*)
9553 case $host in
9554 i?86-*-solaris*|x86_64-*-solaris*)
9555 LD="${LD-ld} -m elf_x86_64"
9556 ;;
9557 sparc*-*-solaris*)
9558 LD="${LD-ld} -m elf64_sparc"
9559 ;;
9560 esac
9561 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9562 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9563 LD=${LD-ld}_sol2
9564 fi
9565 ;;
9566 *)
9567 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9568 LD="${LD-ld} -64"
9569 fi
9570 ;;
9571 esac
9572 ;;
9573 esac
9574 fi
9575 rm -rf conftest*
9576 ;;
9577 esac
9578
9579 need_locks=$enable_libtool_lock
9580
9581 if test -n "$ac_tool_prefix"; then
9582 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9583 set dummy ${ac_tool_prefix}mt; ac_word=$2
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 $as_echo_n "checking for $ac_word... " >&6; }
9586 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9587 $as_echo_n "(cached) " >&6
9588 else
9589 if test -n "$MANIFEST_TOOL"; then
9590 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9591 else
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593 for as_dir in $PATH
9594 do
9595 IFS=$as_save_IFS
9596 test -z "$as_dir" && as_dir=.
9597 for ac_exec_ext in '' $ac_executable_extensions; do
9598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9599 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601 break 2
9602 fi
9603 done
9604 done
9605 IFS=$as_save_IFS
9606
9607 fi
9608 fi
9609 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9610 if test -n "$MANIFEST_TOOL"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9612 $as_echo "$MANIFEST_TOOL" >&6; }
9613 else
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9616 fi
9617
9618
9619 fi
9620 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9621 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9622 # Extract the first word of "mt", so it can be a program name with args.
9623 set dummy mt; ac_word=$2
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625 $as_echo_n "checking for $ac_word... " >&6; }
9626 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 if test -n "$ac_ct_MANIFEST_TOOL"; then
9630 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9631 else
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9634 do
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9639 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9641 break 2
9642 fi
9643 done
9644 done
9645 IFS=$as_save_IFS
9646
9647 fi
9648 fi
9649 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9650 if test -n "$ac_ct_MANIFEST_TOOL"; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9652 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9653 else
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9656 fi
9657
9658 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9659 MANIFEST_TOOL=":"
9660 else
9661 case $cross_compiling:$ac_tool_warned in
9662 yes:)
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9665 ac_tool_warned=yes ;;
9666 esac
9667 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9668 fi
9669 else
9670 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9671 fi
9672
9673 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9675 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9676 if ${lt_cv_path_mainfest_tool+:} false; then :
9677 $as_echo_n "(cached) " >&6
9678 else
9679 lt_cv_path_mainfest_tool=no
9680 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9681 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9682 cat conftest.err >&5
9683 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9684 lt_cv_path_mainfest_tool=yes
9685 fi
9686 rm -f conftest*
9687 fi
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9689 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9690 if test yes != "$lt_cv_path_mainfest_tool"; then
9691 MANIFEST_TOOL=:
9692 fi
9693
9694
9695
9696
9697
9698
9699 case $host_os in
9700 rhapsody* | darwin*)
9701 if test -n "$ac_tool_prefix"; then
9702 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9703 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 $as_echo_n "checking for $ac_word... " >&6; }
9706 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9707 $as_echo_n "(cached) " >&6
9708 else
9709 if test -n "$DSYMUTIL"; then
9710 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9711 else
9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713 for as_dir in $PATH
9714 do
9715 IFS=$as_save_IFS
9716 test -z "$as_dir" && as_dir=.
9717 for ac_exec_ext in '' $ac_executable_extensions; do
9718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9719 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721 break 2
9722 fi
9723 done
9724 done
9725 IFS=$as_save_IFS
9726
9727 fi
9728 fi
9729 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9730 if test -n "$DSYMUTIL"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9732 $as_echo "$DSYMUTIL" >&6; }
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9736 fi
9737
9738
9739 fi
9740 if test -z "$ac_cv_prog_DSYMUTIL"; then
9741 ac_ct_DSYMUTIL=$DSYMUTIL
9742 # Extract the first word of "dsymutil", so it can be a program name with args.
9743 set dummy dsymutil; ac_word=$2
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9745 $as_echo_n "checking for $ac_word... " >&6; }
9746 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 if test -n "$ac_ct_DSYMUTIL"; then
9750 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9751 else
9752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9753 for as_dir in $PATH
9754 do
9755 IFS=$as_save_IFS
9756 test -z "$as_dir" && as_dir=.
9757 for ac_exec_ext in '' $ac_executable_extensions; do
9758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9759 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9761 break 2
9762 fi
9763 done
9764 done
9765 IFS=$as_save_IFS
9766
9767 fi
9768 fi
9769 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9770 if test -n "$ac_ct_DSYMUTIL"; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9772 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9773 else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775 $as_echo "no" >&6; }
9776 fi
9777
9778 if test "x$ac_ct_DSYMUTIL" = x; then
9779 DSYMUTIL=":"
9780 else
9781 case $cross_compiling:$ac_tool_warned in
9782 yes:)
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9785 ac_tool_warned=yes ;;
9786 esac
9787 DSYMUTIL=$ac_ct_DSYMUTIL
9788 fi
9789 else
9790 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9791 fi
9792
9793 if test -n "$ac_tool_prefix"; then
9794 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9795 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if ${ac_cv_prog_NMEDIT+:} false; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 if test -n "$NMEDIT"; then
9802 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9803 else
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9806 do
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
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_NMEDIT="${ac_tool_prefix}nmedit"
9812 $as_echo "$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 NMEDIT=$ac_cv_prog_NMEDIT
9822 if test -n "$NMEDIT"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9824 $as_echo "$NMEDIT" >&6; }
9825 else
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9828 fi
9829
9830
9831 fi
9832 if test -z "$ac_cv_prog_NMEDIT"; then
9833 ac_ct_NMEDIT=$NMEDIT
9834 # Extract the first word of "nmedit", so it can be a program name with args.
9835 set dummy nmedit; ac_word=$2
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 $as_echo_n "checking for $ac_word... " >&6; }
9838 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 if test -n "$ac_ct_NMEDIT"; then
9842 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9843 else
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 for as_dir in $PATH
9846 do
9847 IFS=$as_save_IFS
9848 test -z "$as_dir" && as_dir=.
9849 for ac_exec_ext in '' $ac_executable_extensions; do
9850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9851 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9853 break 2
9854 fi
9855 done
9856 done
9857 IFS=$as_save_IFS
9858
9859 fi
9860 fi
9861 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9862 if test -n "$ac_ct_NMEDIT"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9864 $as_echo "$ac_ct_NMEDIT" >&6; }
9865 else
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9868 fi
9869
9870 if test "x$ac_ct_NMEDIT" = x; then
9871 NMEDIT=":"
9872 else
9873 case $cross_compiling:$ac_tool_warned in
9874 yes:)
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9877 ac_tool_warned=yes ;;
9878 esac
9879 NMEDIT=$ac_ct_NMEDIT
9880 fi
9881 else
9882 NMEDIT="$ac_cv_prog_NMEDIT"
9883 fi
9884
9885 if test -n "$ac_tool_prefix"; then
9886 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9887 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889 $as_echo_n "checking for $ac_word... " >&6; }
9890 if ${ac_cv_prog_LIPO+:} false; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 if test -n "$LIPO"; then
9894 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9895 else
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in $PATH
9898 do
9899 IFS=$as_save_IFS
9900 test -z "$as_dir" && as_dir=.
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9903 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 break 2
9906 fi
9907 done
9908 done
9909 IFS=$as_save_IFS
9910
9911 fi
9912 fi
9913 LIPO=$ac_cv_prog_LIPO
9914 if test -n "$LIPO"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9916 $as_echo "$LIPO" >&6; }
9917 else
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919 $as_echo "no" >&6; }
9920 fi
9921
9922
9923 fi
9924 if test -z "$ac_cv_prog_LIPO"; then
9925 ac_ct_LIPO=$LIPO
9926 # Extract the first word of "lipo", so it can be a program name with args.
9927 set dummy lipo; ac_word=$2
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929 $as_echo_n "checking for $ac_word... " >&6; }
9930 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 if test -n "$ac_ct_LIPO"; then
9934 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9935 else
9936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937 for as_dir in $PATH
9938 do
9939 IFS=$as_save_IFS
9940 test -z "$as_dir" && as_dir=.
9941 for ac_exec_ext in '' $ac_executable_extensions; do
9942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9943 ac_cv_prog_ac_ct_LIPO="lipo"
9944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 break 2
9946 fi
9947 done
9948 done
9949 IFS=$as_save_IFS
9950
9951 fi
9952 fi
9953 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9954 if test -n "$ac_ct_LIPO"; then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9956 $as_echo "$ac_ct_LIPO" >&6; }
9957 else
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 $as_echo "no" >&6; }
9960 fi
9961
9962 if test "x$ac_ct_LIPO" = x; then
9963 LIPO=":"
9964 else
9965 case $cross_compiling:$ac_tool_warned in
9966 yes:)
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9969 ac_tool_warned=yes ;;
9970 esac
9971 LIPO=$ac_ct_LIPO
9972 fi
9973 else
9974 LIPO="$ac_cv_prog_LIPO"
9975 fi
9976
9977 if test -n "$ac_tool_prefix"; then
9978 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9979 set dummy ${ac_tool_prefix}otool; ac_word=$2
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981 $as_echo_n "checking for $ac_word... " >&6; }
9982 if ${ac_cv_prog_OTOOL+:} false; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9985 if test -n "$OTOOL"; then
9986 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9987 else
9988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989 for as_dir in $PATH
9990 do
9991 IFS=$as_save_IFS
9992 test -z "$as_dir" && as_dir=.
9993 for ac_exec_ext in '' $ac_executable_extensions; do
9994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9995 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9997 break 2
9998 fi
9999 done
10000 done
10001 IFS=$as_save_IFS
10002
10003 fi
10004 fi
10005 OTOOL=$ac_cv_prog_OTOOL
10006 if test -n "$OTOOL"; then
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10008 $as_echo "$OTOOL" >&6; }
10009 else
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011 $as_echo "no" >&6; }
10012 fi
10013
10014
10015 fi
10016 if test -z "$ac_cv_prog_OTOOL"; then
10017 ac_ct_OTOOL=$OTOOL
10018 # Extract the first word of "otool", so it can be a program name with args.
10019 set dummy otool; ac_word=$2
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021 $as_echo_n "checking for $ac_word... " >&6; }
10022 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 if test -n "$ac_ct_OTOOL"; then
10026 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10027 else
10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $PATH
10030 do
10031 IFS=$as_save_IFS
10032 test -z "$as_dir" && as_dir=.
10033 for ac_exec_ext in '' $ac_executable_extensions; do
10034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10035 ac_cv_prog_ac_ct_OTOOL="otool"
10036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10037 break 2
10038 fi
10039 done
10040 done
10041 IFS=$as_save_IFS
10042
10043 fi
10044 fi
10045 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10046 if test -n "$ac_ct_OTOOL"; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10048 $as_echo "$ac_ct_OTOOL" >&6; }
10049 else
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10052 fi
10053
10054 if test "x$ac_ct_OTOOL" = x; then
10055 OTOOL=":"
10056 else
10057 case $cross_compiling:$ac_tool_warned in
10058 yes:)
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10061 ac_tool_warned=yes ;;
10062 esac
10063 OTOOL=$ac_ct_OTOOL
10064 fi
10065 else
10066 OTOOL="$ac_cv_prog_OTOOL"
10067 fi
10068
10069 if test -n "$ac_tool_prefix"; then
10070 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10071 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10073 $as_echo_n "checking for $ac_word... " >&6; }
10074 if ${ac_cv_prog_OTOOL64+:} false; then :
10075 $as_echo_n "(cached) " >&6
10076 else
10077 if test -n "$OTOOL64"; then
10078 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10079 else
10080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081 for as_dir in $PATH
10082 do
10083 IFS=$as_save_IFS
10084 test -z "$as_dir" && as_dir=.
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10087 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10089 break 2
10090 fi
10091 done
10092 done
10093 IFS=$as_save_IFS
10094
10095 fi
10096 fi
10097 OTOOL64=$ac_cv_prog_OTOOL64
10098 if test -n "$OTOOL64"; then
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10100 $as_echo "$OTOOL64" >&6; }
10101 else
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 $as_echo "no" >&6; }
10104 fi
10105
10106
10107 fi
10108 if test -z "$ac_cv_prog_OTOOL64"; then
10109 ac_ct_OTOOL64=$OTOOL64
10110 # Extract the first word of "otool64", so it can be a program name with args.
10111 set dummy otool64; ac_word=$2
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10113 $as_echo_n "checking for $ac_word... " >&6; }
10114 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10115 $as_echo_n "(cached) " >&6
10116 else
10117 if test -n "$ac_ct_OTOOL64"; then
10118 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10119 else
10120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121 for as_dir in $PATH
10122 do
10123 IFS=$as_save_IFS
10124 test -z "$as_dir" && as_dir=.
10125 for ac_exec_ext in '' $ac_executable_extensions; do
10126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10127 ac_cv_prog_ac_ct_OTOOL64="otool64"
10128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10129 break 2
10130 fi
10131 done
10132 done
10133 IFS=$as_save_IFS
10134
10135 fi
10136 fi
10137 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10138 if test -n "$ac_ct_OTOOL64"; then
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10140 $as_echo "$ac_ct_OTOOL64" >&6; }
10141 else
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10143 $as_echo "no" >&6; }
10144 fi
10145
10146 if test "x$ac_ct_OTOOL64" = x; then
10147 OTOOL64=":"
10148 else
10149 case $cross_compiling:$ac_tool_warned in
10150 yes:)
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10153 ac_tool_warned=yes ;;
10154 esac
10155 OTOOL64=$ac_ct_OTOOL64
10156 fi
10157 else
10158 OTOOL64="$ac_cv_prog_OTOOL64"
10159 fi
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10188 $as_echo_n "checking for -single_module linker flag... " >&6; }
10189 if ${lt_cv_apple_cc_single_mod+:} false; then :
10190 $as_echo_n "(cached) " >&6
10191 else
10192 lt_cv_apple_cc_single_mod=no
10193 if test -z "$LT_MULTI_MODULE"; then
10194 # By default we will add the -single_module flag. You can override
10195 # by either setting the environment variable LT_MULTI_MODULE
10196 # non-empty at configure time, or by adding -multi_module to the
10197 # link flags.
10198 rm -rf libconftest.dylib*
10199 echo "int foo(void){return 1;}" > conftest.c
10200 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10201 -dynamiclib -Wl,-single_module conftest.c" >&5
10202 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10203 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10204 _lt_result=$?
10205 # If there is a non-empty error log, and "single_module"
10206 # appears in it, assume the flag caused a linker warning
10207 if test -s conftest.err && $GREP single_module conftest.err; then
10208 cat conftest.err >&5
10209 # Otherwise, if the output was created with a 0 exit code from
10210 # the compiler, it worked.
10211 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10212 lt_cv_apple_cc_single_mod=yes
10213 else
10214 cat conftest.err >&5
10215 fi
10216 rm -rf libconftest.dylib*
10217 rm -f conftest.*
10218 fi
10219 fi
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10221 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10222
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10224 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10225 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10226 $as_echo_n "(cached) " >&6
10227 else
10228 lt_cv_ld_exported_symbols_list=no
10229 save_LDFLAGS=$LDFLAGS
10230 echo "_main" > conftest.sym
10231 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10234
10235 int
10236 main ()
10237 {
10238
10239 ;
10240 return 0;
10241 }
10242 _ACEOF
10243 if ac_fn_c_try_link "$LINENO"; then :
10244 lt_cv_ld_exported_symbols_list=yes
10245 else
10246 lt_cv_ld_exported_symbols_list=no
10247 fi
10248 rm -f core conftest.err conftest.$ac_objext \
10249 conftest$ac_exeext conftest.$ac_ext
10250 LDFLAGS=$save_LDFLAGS
10251
10252 fi
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10254 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10255
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10257 $as_echo_n "checking for -force_load linker flag... " >&6; }
10258 if ${lt_cv_ld_force_load+:} false; then :
10259 $as_echo_n "(cached) " >&6
10260 else
10261 lt_cv_ld_force_load=no
10262 cat > conftest.c << _LT_EOF
10263 int forced_loaded() { return 2;}
10264 _LT_EOF
10265 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10266 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10267 echo "$AR cr libconftest.a conftest.o" >&5
10268 $AR cr libconftest.a conftest.o 2>&5
10269 echo "$RANLIB libconftest.a" >&5
10270 $RANLIB libconftest.a 2>&5
10271 cat > conftest.c << _LT_EOF
10272 int main() { return 0;}
10273 _LT_EOF
10274 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10275 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10276 _lt_result=$?
10277 if test -s conftest.err && $GREP force_load conftest.err; then
10278 cat conftest.err >&5
10279 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10280 lt_cv_ld_force_load=yes
10281 else
10282 cat conftest.err >&5
10283 fi
10284 rm -f conftest.err libconftest.a conftest conftest.c
10285 rm -rf conftest.dSYM
10286
10287 fi
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10289 $as_echo "$lt_cv_ld_force_load" >&6; }
10290 case $host_os in
10291 rhapsody* | darwin1.[012])
10292 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10293 darwin1.*)
10294 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10295 darwin*) # darwin 5.x on
10296 # if running on 10.5 or later, the deployment target defaults
10297 # to the OS version, if on x86, and 10.4, the deployment
10298 # target defaults to 10.4. Don't you love it?
10299 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10300 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10301 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10302 10.[012][,.]*)
10303 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10304 10.*)
10305 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10306 esac
10307 ;;
10308 esac
10309 if test yes = "$lt_cv_apple_cc_single_mod"; then
10310 _lt_dar_single_mod='$single_module'
10311 fi
10312 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10313 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10314 else
10315 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10316 fi
10317 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10318 _lt_dsymutil='~$DSYMUTIL $lib || :'
10319 else
10320 _lt_dsymutil=
10321 fi
10322 ;;
10323 esac
10324
10325 # func_munge_path_list VARIABLE PATH
10326 # -----------------------------------
10327 # VARIABLE is name of variable containing _space_ separated list of
10328 # directories to be munged by the contents of PATH, which is string
10329 # having a format:
10330 # "DIR[:DIR]:"
10331 # string "DIR[ DIR]" will be prepended to VARIABLE
10332 # ":DIR[:DIR]"
10333 # string "DIR[ DIR]" will be appended to VARIABLE
10334 # "DIRP[:DIRP]::[DIRA:]DIRA"
10335 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10336 # "DIRA[ DIRA]" will be appended to VARIABLE
10337 # "DIR[:DIR]"
10338 # VARIABLE will be replaced by "DIR[ DIR]"
10339 func_munge_path_list ()
10340 {
10341 case x$2 in
10342 x)
10343 ;;
10344 *:)
10345 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10346 ;;
10347 x:*)
10348 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10349 ;;
10350 *::*)
10351 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10352 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10353 ;;
10354 *)
10355 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10356 ;;
10357 esac
10358 }
10359
10360 for ac_header in dlfcn.h
10361 do :
10362 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10363 "
10364 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10365 cat >>confdefs.h <<_ACEOF
10366 #define HAVE_DLFCN_H 1
10367 _ACEOF
10368
10369 fi
10370
10371 done
10372
10373
10374
10375
10376
10377 # Set options
10378
10379
10380
10381 enable_dlopen=no
10382
10383
10384 enable_win32_dll=no
10385
10386
10387 # Check whether --enable-shared was given.
10388 if test "${enable_shared+set}" = set; then :
10389 enableval=$enable_shared; p=${PACKAGE-default}
10390 case $enableval in
10391 yes) enable_shared=yes ;;
10392 no) enable_shared=no ;;
10393 *)
10394 enable_shared=no
10395 # Look at the argument we got. We use all the common list separators.
10396 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10397 for pkg in $enableval; do
10398 IFS=$lt_save_ifs
10399 if test "X$pkg" = "X$p"; then
10400 enable_shared=yes
10401 fi
10402 done
10403 IFS=$lt_save_ifs
10404 ;;
10405 esac
10406 else
10407 enable_shared=yes
10408 fi
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418 # Check whether --enable-static was given.
10419 if test "${enable_static+set}" = set; then :
10420 enableval=$enable_static; p=${PACKAGE-default}
10421 case $enableval in
10422 yes) enable_static=yes ;;
10423 no) enable_static=no ;;
10424 *)
10425 enable_static=no
10426 # Look at the argument we got. We use all the common list separators.
10427 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10428 for pkg in $enableval; do
10429 IFS=$lt_save_ifs
10430 if test "X$pkg" = "X$p"; then
10431 enable_static=yes
10432 fi
10433 done
10434 IFS=$lt_save_ifs
10435 ;;
10436 esac
10437 else
10438 enable_static=yes
10439 fi
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450 # Check whether --with-pic was given.
10451 if test "${with_pic+set}" = set; then :
10452 withval=$with_pic; lt_p=${PACKAGE-default}
10453 case $withval in
10454 yes|no) pic_mode=$withval ;;
10455 *)
10456 pic_mode=default
10457 # Look at the argument we got. We use all the common list separators.
10458 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10459 for lt_pkg in $withval; do
10460 IFS=$lt_save_ifs
10461 if test "X$lt_pkg" = "X$lt_p"; then
10462 pic_mode=yes
10463 fi
10464 done
10465 IFS=$lt_save_ifs
10466 ;;
10467 esac
10468 else
10469 pic_mode=default
10470 fi
10471
10472
10473
10474
10475
10476
10477
10478
10479 # Check whether --enable-fast-install was given.
10480 if test "${enable_fast_install+set}" = set; then :
10481 enableval=$enable_fast_install; p=${PACKAGE-default}
10482 case $enableval in
10483 yes) enable_fast_install=yes ;;
10484 no) enable_fast_install=no ;;
10485 *)
10486 enable_fast_install=no
10487 # Look at the argument we got. We use all the common list separators.
10488 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10489 for pkg in $enableval; do
10490 IFS=$lt_save_ifs
10491 if test "X$pkg" = "X$p"; then
10492 enable_fast_install=yes
10493 fi
10494 done
10495 IFS=$lt_save_ifs
10496 ;;
10497 esac
10498 else
10499 enable_fast_install=yes
10500 fi
10501
10502
10503
10504
10505
10506
10507
10508
10509 shared_archive_member_spec=
10510 case $host,$enable_shared in
10511 power*-*-aix[5-9]*,yes)
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10513 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10514
10515 # Check whether --with-aix-soname was given.
10516 if test "${with_aix_soname+set}" = set; then :
10517 withval=$with_aix_soname; case $withval in
10518 aix|svr4|both)
10519 ;;
10520 *)
10521 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10522 ;;
10523 esac
10524 lt_cv_with_aix_soname=$with_aix_soname
10525 else
10526 if ${lt_cv_with_aix_soname+:} false; then :
10527 $as_echo_n "(cached) " >&6
10528 else
10529 lt_cv_with_aix_soname=aix
10530 fi
10531
10532 with_aix_soname=$lt_cv_with_aix_soname
10533 fi
10534
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10536 $as_echo "$with_aix_soname" >&6; }
10537 if test aix != "$with_aix_soname"; then
10538 # For the AIX way of multilib, we name the shared archive member
10539 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10540 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10541 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10542 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10543 if test 64 = "${OBJECT_MODE-32}"; then
10544 shared_archive_member_spec=shr_64
10545 else
10546 shared_archive_member_spec=shr
10547 fi
10548 fi
10549 ;;
10550 *)
10551 with_aix_soname=aix
10552 ;;
10553 esac
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564 # This can be used to rebuild libtool when needed
10565 LIBTOOL_DEPS=$ltmain
10566
10567 # Always use our own libtool.
10568 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599 test -z "$LN_S" && LN_S="ln -s"
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614 if test -n "${ZSH_VERSION+set}"; then
10615 setopt NO_GLOB_SUBST
10616 fi
10617
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10619 $as_echo_n "checking for objdir... " >&6; }
10620 if ${lt_cv_objdir+:} false; then :
10621 $as_echo_n "(cached) " >&6
10622 else
10623 rm -f .libs 2>/dev/null
10624 mkdir .libs 2>/dev/null
10625 if test -d .libs; then
10626 lt_cv_objdir=.libs
10627 else
10628 # MS-DOS does not allow filenames that begin with a dot.
10629 lt_cv_objdir=_libs
10630 fi
10631 rmdir .libs 2>/dev/null
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10634 $as_echo "$lt_cv_objdir" >&6; }
10635 objdir=$lt_cv_objdir
10636
10637
10638
10639
10640
10641 cat >>confdefs.h <<_ACEOF
10642 #define LT_OBJDIR "$lt_cv_objdir/"
10643 _ACEOF
10644
10645
10646
10647
10648 case $host_os in
10649 aix3*)
10650 # AIX sometimes has problems with the GCC collect2 program. For some
10651 # reason, if we set the COLLECT_NAMES environment variable, the problems
10652 # vanish in a puff of smoke.
10653 if test set != "${COLLECT_NAMES+set}"; then
10654 COLLECT_NAMES=
10655 export COLLECT_NAMES
10656 fi
10657 ;;
10658 esac
10659
10660 # Global variables:
10661 ofile=libtool
10662 can_build_shared=yes
10663
10664 # All known linkers require a '.a' archive for static linking (except MSVC,
10665 # which needs '.lib').
10666 libext=a
10667
10668 with_gnu_ld=$lt_cv_prog_gnu_ld
10669
10670 old_CC=$CC
10671 old_CFLAGS=$CFLAGS
10672
10673 # Set sane defaults for various variables
10674 test -z "$CC" && CC=cc
10675 test -z "$LTCC" && LTCC=$CC
10676 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10677 test -z "$LD" && LD=ld
10678 test -z "$ac_objext" && ac_objext=o
10679
10680 func_cc_basename $compiler
10681 cc_basename=$func_cc_basename_result
10682
10683
10684 # Only perform the check for file, if the check method requires it
10685 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10686 case $deplibs_check_method in
10687 file_magic*)
10688 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10690 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10691 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10692 $as_echo_n "(cached) " >&6
10693 else
10694 case $MAGIC_CMD in
10695 [\\/*] | ?:[\\/]*)
10696 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10697 ;;
10698 *)
10699 lt_save_MAGIC_CMD=$MAGIC_CMD
10700 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10701 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10702 for ac_dir in $ac_dummy; do
10703 IFS=$lt_save_ifs
10704 test -z "$ac_dir" && ac_dir=.
10705 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10706 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10707 if test -n "$file_magic_test_file"; then
10708 case $deplibs_check_method in
10709 "file_magic "*)
10710 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10711 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10712 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10713 $EGREP "$file_magic_regex" > /dev/null; then
10714 :
10715 else
10716 cat <<_LT_EOF 1>&2
10717
10718 *** Warning: the command libtool uses to detect shared libraries,
10719 *** $file_magic_cmd, produces output that libtool cannot recognize.
10720 *** The result is that libtool may fail to recognize shared libraries
10721 *** as such. This will affect the creation of libtool libraries that
10722 *** depend on shared libraries, but programs linked with such libtool
10723 *** libraries will work regardless of this problem. Nevertheless, you
10724 *** may want to report the problem to your system manager and/or to
10725 *** [email protected]
10726
10727 _LT_EOF
10728 fi ;;
10729 esac
10730 fi
10731 break
10732 fi
10733 done
10734 IFS=$lt_save_ifs
10735 MAGIC_CMD=$lt_save_MAGIC_CMD
10736 ;;
10737 esac
10738 fi
10739
10740 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10741 if test -n "$MAGIC_CMD"; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10743 $as_echo "$MAGIC_CMD" >&6; }
10744 else
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746 $as_echo "no" >&6; }
10747 fi
10748
10749
10750
10751
10752
10753 if test -z "$lt_cv_path_MAGIC_CMD"; then
10754 if test -n "$ac_tool_prefix"; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10756 $as_echo_n "checking for file... " >&6; }
10757 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 case $MAGIC_CMD in
10761 [\\/*] | ?:[\\/]*)
10762 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10763 ;;
10764 *)
10765 lt_save_MAGIC_CMD=$MAGIC_CMD
10766 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10767 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10768 for ac_dir in $ac_dummy; do
10769 IFS=$lt_save_ifs
10770 test -z "$ac_dir" && ac_dir=.
10771 if test -f "$ac_dir/file"; then
10772 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10773 if test -n "$file_magic_test_file"; then
10774 case $deplibs_check_method in
10775 "file_magic "*)
10776 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10777 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10778 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10779 $EGREP "$file_magic_regex" > /dev/null; then
10780 :
10781 else
10782 cat <<_LT_EOF 1>&2
10783
10784 *** Warning: the command libtool uses to detect shared libraries,
10785 *** $file_magic_cmd, produces output that libtool cannot recognize.
10786 *** The result is that libtool may fail to recognize shared libraries
10787 *** as such. This will affect the creation of libtool libraries that
10788 *** depend on shared libraries, but programs linked with such libtool
10789 *** libraries will work regardless of this problem. Nevertheless, you
10790 *** may want to report the problem to your system manager and/or to
10791 *** [email protected]
10792
10793 _LT_EOF
10794 fi ;;
10795 esac
10796 fi
10797 break
10798 fi
10799 done
10800 IFS=$lt_save_ifs
10801 MAGIC_CMD=$lt_save_MAGIC_CMD
10802 ;;
10803 esac
10804 fi
10805
10806 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10807 if test -n "$MAGIC_CMD"; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10809 $as_echo "$MAGIC_CMD" >&6; }
10810 else
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812 $as_echo "no" >&6; }
10813 fi
10814
10815
10816 else
10817 MAGIC_CMD=:
10818 fi
10819 fi
10820
10821 fi
10822 ;;
10823 esac
10824
10825 # Use C for the default configuration in the libtool script
10826
10827 lt_save_CC=$CC
10828 ac_ext=c
10829 ac_cpp='$CPP $CPPFLAGS'
10830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10833
10834
10835 # Source file extension for C test sources.
10836 ac_ext=c
10837
10838 # Object file extension for compiled C test sources.
10839 objext=o
10840 objext=$objext
10841
10842 # Code to be used in simple compile tests
10843 lt_simple_compile_test_code="int some_variable = 0;"
10844
10845 # Code to be used in simple link tests
10846 lt_simple_link_test_code='int main(){return(0);}'
10847
10848
10849
10850
10851
10852
10853
10854 # If no C compiler was specified, use CC.
10855 LTCC=${LTCC-"$CC"}
10856
10857 # If no C compiler flags were specified, use CFLAGS.
10858 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10859
10860 # Allow CC to be a program name with arguments.
10861 compiler=$CC
10862
10863 # Save the default compiler, since it gets overwritten when the other
10864 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10865 compiler_DEFAULT=$CC
10866
10867 # save warnings/boilerplate of simple test code
10868 ac_outfile=conftest.$ac_objext
10869 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10870 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10871 _lt_compiler_boilerplate=`cat conftest.err`
10872 $RM conftest*
10873
10874 ac_outfile=conftest.$ac_objext
10875 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10876 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10877 _lt_linker_boilerplate=`cat conftest.err`
10878 $RM -r conftest*
10879
10880
10881 ## CAVEAT EMPTOR:
10882 ## There is no encapsulation within the following macros, do not change
10883 ## the running order or otherwise move them around unless you know exactly
10884 ## what you are doing...
10885 if test -n "$compiler"; then
10886
10887 lt_prog_compiler_no_builtin_flag=
10888
10889 if test yes = "$GCC"; then
10890 case $cc_basename in
10891 nvcc*)
10892 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10893 *)
10894 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10895 esac
10896
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10898 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10899 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10900 $as_echo_n "(cached) " >&6
10901 else
10902 lt_cv_prog_compiler_rtti_exceptions=no
10903 ac_outfile=conftest.$ac_objext
10904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10905 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10906 # Insert the option either (1) after the last *FLAGS variable, or
10907 # (2) before a word containing "conftest.", or (3) at the end.
10908 # Note that $ac_compile itself does not contain backslashes and begins
10909 # with a dollar sign (not a hyphen), so the echo should work correctly.
10910 # The option is referenced via a variable to avoid confusing sed.
10911 lt_compile=`echo "$ac_compile" | $SED \
10912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10914 -e 's:$: $lt_compiler_flag:'`
10915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10916 (eval "$lt_compile" 2>conftest.err)
10917 ac_status=$?
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 if (exit $ac_status) && test -s "$ac_outfile"; then
10921 # The compiler can only warn and ignore the option if not recognized
10922 # So say no if there are warnings other than the usual output.
10923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10925 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10926 lt_cv_prog_compiler_rtti_exceptions=yes
10927 fi
10928 fi
10929 $RM conftest*
10930
10931 fi
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10933 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10934
10935 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10936 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10937 else
10938 :
10939 fi
10940
10941 fi
10942
10943
10944
10945
10946
10947
10948 lt_prog_compiler_wl=
10949 lt_prog_compiler_pic=
10950 lt_prog_compiler_static=
10951
10952
10953 if test yes = "$GCC"; then
10954 lt_prog_compiler_wl='-Wl,'
10955 lt_prog_compiler_static='-static'
10956
10957 case $host_os in
10958 aix*)
10959 # All AIX code is PIC.
10960 if test ia64 = "$host_cpu"; then
10961 # AIX 5 now supports IA64 processor
10962 lt_prog_compiler_static='-Bstatic'
10963 fi
10964 lt_prog_compiler_pic='-fPIC'
10965 ;;
10966
10967 amigaos*)
10968 case $host_cpu in
10969 powerpc)
10970 # see comment about AmigaOS4 .so support
10971 lt_prog_compiler_pic='-fPIC'
10972 ;;
10973 m68k)
10974 # FIXME: we need at least 68020 code to build shared libraries, but
10975 # adding the '-m68020' flag to GCC prevents building anything better,
10976 # like '-m68040'.
10977 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10978 ;;
10979 esac
10980 ;;
10981
10982 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10983 # PIC is the default for these OSes.
10984 ;;
10985
10986 mingw* | cygwin* | pw32* | os2* | cegcc*)
10987 # This hack is so that the source file can tell whether it is being
10988 # built for inclusion in a dll (and should export symbols for example).
10989 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10990 # (--disable-auto-import) libraries
10991 lt_prog_compiler_pic='-DDLL_EXPORT'
10992 case $host_os in
10993 os2*)
10994 lt_prog_compiler_static='$wl-static'
10995 ;;
10996 esac
10997 ;;
10998
10999 darwin* | rhapsody*)
11000 # PIC is the default on this platform
11001 # Common symbols not allowed in MH_DYLIB files
11002 lt_prog_compiler_pic='-fno-common'
11003 ;;
11004
11005 haiku*)
11006 # PIC is the default for Haiku.
11007 # The "-static" flag exists, but is broken.
11008 lt_prog_compiler_static=
11009 ;;
11010
11011 hpux*)
11012 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11013 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11014 # sets the default TLS model and affects inlining.
11015 case $host_cpu in
11016 hppa*64*)
11017 # +Z the default
11018 ;;
11019 *)
11020 lt_prog_compiler_pic='-fPIC'
11021 ;;
11022 esac
11023 ;;
11024
11025 interix[3-9]*)
11026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11027 # Instead, we relocate shared libraries at runtime.
11028 ;;
11029
11030 msdosdjgpp*)
11031 # Just because we use GCC doesn't mean we suddenly get shared libraries
11032 # on systems that don't support them.
11033 lt_prog_compiler_can_build_shared=no
11034 enable_shared=no
11035 ;;
11036
11037 *nto* | *qnx*)
11038 # QNX uses GNU C++, but need to define -shared option too, otherwise
11039 # it will coredump.
11040 lt_prog_compiler_pic='-fPIC -shared'
11041 ;;
11042
11043 sysv4*MP*)
11044 if test -d /usr/nec; then
11045 lt_prog_compiler_pic=-Kconform_pic
11046 fi
11047 ;;
11048
11049 *)
11050 lt_prog_compiler_pic='-fPIC'
11051 ;;
11052 esac
11053
11054 case $cc_basename in
11055 nvcc*) # Cuda Compiler Driver 2.2
11056 lt_prog_compiler_wl='-Xlinker '
11057 if test -n "$lt_prog_compiler_pic"; then
11058 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11059 fi
11060 ;;
11061 esac
11062 else
11063 # PORTME Check for flag to pass linker flags through the system compiler.
11064 case $host_os in
11065 aix*)
11066 lt_prog_compiler_wl='-Wl,'
11067 if test ia64 = "$host_cpu"; then
11068 # AIX 5 now supports IA64 processor
11069 lt_prog_compiler_static='-Bstatic'
11070 else
11071 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11072 fi
11073 ;;
11074
11075 darwin* | rhapsody*)
11076 # PIC is the default on this platform
11077 # Common symbols not allowed in MH_DYLIB files
11078 lt_prog_compiler_pic='-fno-common'
11079 case $cc_basename in
11080 nagfor*)
11081 # NAG Fortran compiler
11082 lt_prog_compiler_wl='-Wl,-Wl,,'
11083 lt_prog_compiler_pic='-PIC'
11084 lt_prog_compiler_static='-Bstatic'
11085 ;;
11086 esac
11087 ;;
11088
11089 mingw* | cygwin* | pw32* | os2* | cegcc*)
11090 # This hack is so that the source file can tell whether it is being
11091 # built for inclusion in a dll (and should export symbols for example).
11092 lt_prog_compiler_pic='-DDLL_EXPORT'
11093 case $host_os in
11094 os2*)
11095 lt_prog_compiler_static='$wl-static'
11096 ;;
11097 esac
11098 ;;
11099
11100 hpux9* | hpux10* | hpux11*)
11101 lt_prog_compiler_wl='-Wl,'
11102 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11103 # not for PA HP-UX.
11104 case $host_cpu in
11105 hppa*64*|ia64*)
11106 # +Z the default
11107 ;;
11108 *)
11109 lt_prog_compiler_pic='+Z'
11110 ;;
11111 esac
11112 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11113 lt_prog_compiler_static='$wl-a ${wl}archive'
11114 ;;
11115
11116 irix5* | irix6* | nonstopux*)
11117 lt_prog_compiler_wl='-Wl,'
11118 # PIC (with -KPIC) is the default.
11119 lt_prog_compiler_static='-non_shared'
11120 ;;
11121
11122 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11123 case $cc_basename in
11124 # old Intel for x86_64, which still supported -KPIC.
11125 ecc*)
11126 lt_prog_compiler_wl='-Wl,'
11127 lt_prog_compiler_pic='-KPIC'
11128 lt_prog_compiler_static='-static'
11129 ;;
11130 # flang / f18. f95 an alias for gfortran or flang on Debian
11131 flang* | f18* | f95*)
11132 lt_prog_compiler_wl='-Wl,'
11133 lt_prog_compiler_pic='-fPIC'
11134 lt_prog_compiler_static='-static'
11135 ;;
11136 # icc used to be incompatible with GCC.
11137 # ICC 10 doesn't accept -KPIC any more.
11138 icc* | ifort*)
11139 lt_prog_compiler_wl='-Wl,'
11140 lt_prog_compiler_pic='-fPIC'
11141 lt_prog_compiler_static='-static'
11142 ;;
11143 # Lahey Fortran 8.1.
11144 lf95*)
11145 lt_prog_compiler_wl='-Wl,'
11146 lt_prog_compiler_pic='--shared'
11147 lt_prog_compiler_static='--static'
11148 ;;
11149 nagfor*)
11150 # NAG Fortran compiler
11151 lt_prog_compiler_wl='-Wl,-Wl,,'
11152 lt_prog_compiler_pic='-PIC'
11153 lt_prog_compiler_static='-Bstatic'
11154 ;;
11155 tcc*)
11156 # Fabrice Bellard et al's Tiny C Compiler
11157 lt_prog_compiler_wl='-Wl,'
11158 lt_prog_compiler_pic='-fPIC'
11159 lt_prog_compiler_static='-static'
11160 ;;
11161 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11162 # Portland Group compilers (*not* the Pentium gcc compiler,
11163 # which looks to be a dead project)
11164 lt_prog_compiler_wl='-Wl,'
11165 lt_prog_compiler_pic='-fpic'
11166 lt_prog_compiler_static='-Bstatic'
11167 ;;
11168 ccc*)
11169 lt_prog_compiler_wl='-Wl,'
11170 # All Alpha code is PIC.
11171 lt_prog_compiler_static='-non_shared'
11172 ;;
11173 xl* | bgxl* | bgf* | mpixl*)
11174 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11175 lt_prog_compiler_wl='-Wl,'
11176 lt_prog_compiler_pic='-qpic'
11177 lt_prog_compiler_static='-qstaticlink'
11178 ;;
11179 *)
11180 case `$CC -V 2>&1 | sed 5q` in
11181 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11182 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11183 lt_prog_compiler_pic='-KPIC'
11184 lt_prog_compiler_static='-Bstatic'
11185 lt_prog_compiler_wl=''
11186 ;;
11187 *Sun\ F* | *Sun*Fortran*)
11188 lt_prog_compiler_pic='-KPIC'
11189 lt_prog_compiler_static='-Bstatic'
11190 lt_prog_compiler_wl='-Qoption ld '
11191 ;;
11192 *Sun\ C*)
11193 # Sun C 5.9
11194 lt_prog_compiler_pic='-KPIC'
11195 lt_prog_compiler_static='-Bstatic'
11196 lt_prog_compiler_wl='-Wl,'
11197 ;;
11198 *Intel*\ [CF]*Compiler*)
11199 lt_prog_compiler_wl='-Wl,'
11200 lt_prog_compiler_pic='-fPIC'
11201 lt_prog_compiler_static='-static'
11202 ;;
11203 *Portland\ Group*)
11204 lt_prog_compiler_wl='-Wl,'
11205 lt_prog_compiler_pic='-fpic'
11206 lt_prog_compiler_static='-Bstatic'
11207 ;;
11208 esac
11209 ;;
11210 esac
11211 ;;
11212
11213 newsos6)
11214 lt_prog_compiler_pic='-KPIC'
11215 lt_prog_compiler_static='-Bstatic'
11216 ;;
11217
11218 *nto* | *qnx*)
11219 # QNX uses GNU C++, but need to define -shared option too, otherwise
11220 # it will coredump.
11221 lt_prog_compiler_pic='-fPIC -shared'
11222 ;;
11223
11224 osf3* | osf4* | osf5*)
11225 lt_prog_compiler_wl='-Wl,'
11226 # All OSF/1 code is PIC.
11227 lt_prog_compiler_static='-non_shared'
11228 ;;
11229
11230 rdos*)
11231 lt_prog_compiler_static='-non_shared'
11232 ;;
11233
11234 solaris*)
11235 lt_prog_compiler_pic='-KPIC'
11236 lt_prog_compiler_static='-Bstatic'
11237 case $cc_basename in
11238 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11239 lt_prog_compiler_wl='-Qoption ld ';;
11240 *)
11241 lt_prog_compiler_wl='-Wl,';;
11242 esac
11243 ;;
11244
11245 sunos4*)
11246 lt_prog_compiler_wl='-Qoption ld '
11247 lt_prog_compiler_pic='-PIC'
11248 lt_prog_compiler_static='-Bstatic'
11249 ;;
11250
11251 sysv4 | sysv4.2uw2* | sysv4.3*)
11252 lt_prog_compiler_wl='-Wl,'
11253 lt_prog_compiler_pic='-KPIC'
11254 lt_prog_compiler_static='-Bstatic'
11255 ;;
11256
11257 sysv4*MP*)
11258 if test -d /usr/nec; then
11259 lt_prog_compiler_pic='-Kconform_pic'
11260 lt_prog_compiler_static='-Bstatic'
11261 fi
11262 ;;
11263
11264 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11265 lt_prog_compiler_wl='-Wl,'
11266 lt_prog_compiler_pic='-KPIC'
11267 lt_prog_compiler_static='-Bstatic'
11268 ;;
11269
11270 unicos*)
11271 lt_prog_compiler_wl='-Wl,'
11272 lt_prog_compiler_can_build_shared=no
11273 ;;
11274
11275 uts4*)
11276 lt_prog_compiler_pic='-pic'
11277 lt_prog_compiler_static='-Bstatic'
11278 ;;
11279
11280 *)
11281 lt_prog_compiler_can_build_shared=no
11282 ;;
11283 esac
11284 fi
11285
11286 case $host_os in
11287 # For platforms that do not support PIC, -DPIC is meaningless:
11288 *djgpp*)
11289 lt_prog_compiler_pic=
11290 ;;
11291 *)
11292 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11293 ;;
11294 esac
11295
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11297 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11298 if ${lt_cv_prog_compiler_pic+:} false; then :
11299 $as_echo_n "(cached) " >&6
11300 else
11301 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11302 fi
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11304 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11305 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11306
11307 #
11308 # Check to make sure the PIC flag actually works.
11309 #
11310 if test -n "$lt_prog_compiler_pic"; then
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11312 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11313 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11314 $as_echo_n "(cached) " >&6
11315 else
11316 lt_cv_prog_compiler_pic_works=no
11317 ac_outfile=conftest.$ac_objext
11318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11319 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11320 # Insert the option either (1) after the last *FLAGS variable, or
11321 # (2) before a word containing "conftest.", or (3) at the end.
11322 # Note that $ac_compile itself does not contain backslashes and begins
11323 # with a dollar sign (not a hyphen), so the echo should work correctly.
11324 # The option is referenced via a variable to avoid confusing sed.
11325 lt_compile=`echo "$ac_compile" | $SED \
11326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11328 -e 's:$: $lt_compiler_flag:'`
11329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11330 (eval "$lt_compile" 2>conftest.err)
11331 ac_status=$?
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 if (exit $ac_status) && test -s "$ac_outfile"; then
11335 # The compiler can only warn and ignore the option if not recognized
11336 # So say no if there are warnings other than the usual output.
11337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11340 lt_cv_prog_compiler_pic_works=yes
11341 fi
11342 fi
11343 $RM conftest*
11344
11345 fi
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11347 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11348
11349 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11350 case $lt_prog_compiler_pic in
11351 "" | " "*) ;;
11352 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11353 esac
11354 else
11355 lt_prog_compiler_pic=
11356 lt_prog_compiler_can_build_shared=no
11357 fi
11358
11359 fi
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371 #
11372 # Check to make sure the static flag actually works.
11373 #
11374 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11376 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11377 if ${lt_cv_prog_compiler_static_works+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 lt_cv_prog_compiler_static_works=no
11381 save_LDFLAGS=$LDFLAGS
11382 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11383 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11384 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11385 # The linker can only warn and ignore the option if not recognized
11386 # So say no if there are warnings
11387 if test -s conftest.err; then
11388 # Append any errors to the config.log.
11389 cat conftest.err 1>&5
11390 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11392 if diff conftest.exp conftest.er2 >/dev/null; then
11393 lt_cv_prog_compiler_static_works=yes
11394 fi
11395 else
11396 lt_cv_prog_compiler_static_works=yes
11397 fi
11398 fi
11399 $RM -r conftest*
11400 LDFLAGS=$save_LDFLAGS
11401
11402 fi
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11404 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11405
11406 if test yes = "$lt_cv_prog_compiler_static_works"; then
11407 :
11408 else
11409 lt_prog_compiler_static=
11410 fi
11411
11412
11413
11414
11415
11416
11417
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11419 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11420 if ${lt_cv_prog_compiler_c_o+:} false; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 lt_cv_prog_compiler_c_o=no
11424 $RM -r conftest 2>/dev/null
11425 mkdir conftest
11426 cd conftest
11427 mkdir out
11428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11429
11430 lt_compiler_flag="-o out/conftest2.$ac_objext"
11431 # Insert the option either (1) after the last *FLAGS variable, or
11432 # (2) before a word containing "conftest.", or (3) at the end.
11433 # Note that $ac_compile itself does not contain backslashes and begins
11434 # with a dollar sign (not a hyphen), so the echo should work correctly.
11435 lt_compile=`echo "$ac_compile" | $SED \
11436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11438 -e 's:$: $lt_compiler_flag:'`
11439 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11440 (eval "$lt_compile" 2>out/conftest.err)
11441 ac_status=$?
11442 cat out/conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11445 then
11446 # The compiler can only warn and ignore the option if not recognized
11447 # So say no if there are warnings
11448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11449 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11450 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11451 lt_cv_prog_compiler_c_o=yes
11452 fi
11453 fi
11454 chmod u+w . 2>&5
11455 $RM conftest*
11456 # SGI C++ compiler will create directory out/ii_files/ for
11457 # template instantiation
11458 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11459 $RM out/* && rmdir out
11460 cd ..
11461 $RM -r conftest
11462 $RM conftest*
11463
11464 fi
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11466 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11467
11468
11469
11470
11471
11472
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11474 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11475 if ${lt_cv_prog_compiler_c_o+:} false; then :
11476 $as_echo_n "(cached) " >&6
11477 else
11478 lt_cv_prog_compiler_c_o=no
11479 $RM -r conftest 2>/dev/null
11480 mkdir conftest
11481 cd conftest
11482 mkdir out
11483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11484
11485 lt_compiler_flag="-o out/conftest2.$ac_objext"
11486 # Insert the option either (1) after the last *FLAGS variable, or
11487 # (2) before a word containing "conftest.", or (3) at the end.
11488 # Note that $ac_compile itself does not contain backslashes and begins
11489 # with a dollar sign (not a hyphen), so the echo should work correctly.
11490 lt_compile=`echo "$ac_compile" | $SED \
11491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11493 -e 's:$: $lt_compiler_flag:'`
11494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11495 (eval "$lt_compile" 2>out/conftest.err)
11496 ac_status=$?
11497 cat out/conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11500 then
11501 # The compiler can only warn and ignore the option if not recognized
11502 # So say no if there are warnings
11503 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11504 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11505 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11506 lt_cv_prog_compiler_c_o=yes
11507 fi
11508 fi
11509 chmod u+w . 2>&5
11510 $RM conftest*
11511 # SGI C++ compiler will create directory out/ii_files/ for
11512 # template instantiation
11513 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11514 $RM out/* && rmdir out
11515 cd ..
11516 $RM -r conftest
11517 $RM conftest*
11518
11519 fi
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11521 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11522
11523
11524
11525
11526 hard_links=nottested
11527 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11528 # do not overwrite the value of need_locks provided by the user
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11530 $as_echo_n "checking if we can lock with hard links... " >&6; }
11531 hard_links=yes
11532 $RM conftest*
11533 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11534 touch conftest.a
11535 ln conftest.a conftest.b 2>&5 || hard_links=no
11536 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11538 $as_echo "$hard_links" >&6; }
11539 if test no = "$hard_links"; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11541 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11542 need_locks=warn
11543 fi
11544 else
11545 need_locks=no
11546 fi
11547
11548
11549
11550
11551
11552
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11554 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11555
11556 runpath_var=
11557 allow_undefined_flag=
11558 always_export_symbols=no
11559 archive_cmds=
11560 archive_expsym_cmds=
11561 compiler_needs_object=no
11562 enable_shared_with_static_runtimes=no
11563 export_dynamic_flag_spec=
11564 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11565 hardcode_automatic=no
11566 hardcode_direct=no
11567 hardcode_direct_absolute=no
11568 hardcode_libdir_flag_spec=
11569 hardcode_libdir_separator=
11570 hardcode_minus_L=no
11571 hardcode_shlibpath_var=unsupported
11572 inherit_rpath=no
11573 link_all_deplibs=unknown
11574 module_cmds=
11575 module_expsym_cmds=
11576 old_archive_from_new_cmds=
11577 old_archive_from_expsyms_cmds=
11578 thread_safe_flag_spec=
11579 whole_archive_flag_spec=
11580 # include_expsyms should be a list of space-separated symbols to be *always*
11581 # included in the symbol list
11582 include_expsyms=
11583 # exclude_expsyms can be an extended regexp of symbols to exclude
11584 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11585 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11586 # as well as any symbol that contains 'd'.
11587 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11588 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11589 # platforms (ab)use it in PIC code, but their linkers get confused if
11590 # the symbol is explicitly referenced. Since portable code cannot
11591 # rely on this symbol name, it's probably fine to never include it in
11592 # preloaded symbol tables.
11593 # Exclude shared library initialization/finalization symbols.
11594 extract_expsyms_cmds=
11595
11596 case $host_os in
11597 cygwin* | mingw* | pw32* | cegcc*)
11598 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11599 # When not using gcc, we currently assume that we are using
11600 # Microsoft Visual C++.
11601 if test yes != "$GCC"; then
11602 with_gnu_ld=no
11603 fi
11604 ;;
11605 interix*)
11606 # we just hope/assume this is gcc and not c89 (= MSVC++)
11607 with_gnu_ld=yes
11608 ;;
11609 openbsd* | bitrig*)
11610 with_gnu_ld=no
11611 ;;
11612 linux* | k*bsd*-gnu | gnu*)
11613 link_all_deplibs=no
11614 ;;
11615 esac
11616
11617 ld_shlibs=yes
11618
11619 # On some targets, GNU ld is compatible enough with the native linker
11620 # that we're better off using the native interface for both.
11621 lt_use_gnu_ld_interface=no
11622 if test yes = "$with_gnu_ld"; then
11623 case $host_os in
11624 aix*)
11625 # The AIX port of GNU ld has always aspired to compatibility
11626 # with the native linker. However, as the warning in the GNU ld
11627 # block says, versions before 2.19.5* couldn't really create working
11628 # shared libraries, regardless of the interface used.
11629 case `$LD -v 2>&1` in
11630 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11631 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11632 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11633 *)
11634 lt_use_gnu_ld_interface=yes
11635 ;;
11636 esac
11637 ;;
11638 *)
11639 lt_use_gnu_ld_interface=yes
11640 ;;
11641 esac
11642 fi
11643
11644 if test yes = "$lt_use_gnu_ld_interface"; then
11645 # If archive_cmds runs LD, not CC, wlarc should be empty
11646 wlarc='$wl'
11647
11648 # Set some defaults for GNU ld with shared library support. These
11649 # are reset later if shared libraries are not supported. Putting them
11650 # here allows them to be overridden if necessary.
11651 runpath_var=LD_RUN_PATH
11652 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11653 export_dynamic_flag_spec='$wl--export-dynamic'
11654 # ancient GNU ld didn't support --whole-archive et. al.
11655 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11656 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11657 else
11658 whole_archive_flag_spec=
11659 fi
11660 supports_anon_versioning=no
11661 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11662 *GNU\ gold*) supports_anon_versioning=yes ;;
11663 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11664 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11665 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11666 *\ 2.11.*) ;; # other 2.11 versions
11667 *) supports_anon_versioning=yes ;;
11668 esac
11669
11670 # See if GNU ld supports shared libraries.
11671 case $host_os in
11672 aix[3-9]*)
11673 # On AIX/PPC, the GNU linker is very broken
11674 if test ia64 != "$host_cpu"; then
11675 ld_shlibs=no
11676 cat <<_LT_EOF 1>&2
11677
11678 *** Warning: the GNU linker, at least up to release 2.19, is reported
11679 *** to be unable to reliably create shared libraries on AIX.
11680 *** Therefore, libtool is disabling shared libraries support. If you
11681 *** really care for shared libraries, you may want to install binutils
11682 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11683 *** You will then need to restart the configuration process.
11684
11685 _LT_EOF
11686 fi
11687 ;;
11688
11689 amigaos*)
11690 case $host_cpu in
11691 powerpc)
11692 # see comment about AmigaOS4 .so support
11693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11694 archive_expsym_cmds=''
11695 ;;
11696 m68k)
11697 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)'
11698 hardcode_libdir_flag_spec='-L$libdir'
11699 hardcode_minus_L=yes
11700 ;;
11701 esac
11702 ;;
11703
11704 beos*)
11705 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11706 allow_undefined_flag=unsupported
11707 # Joseph Beckenbach <[email protected]> says some releases of gcc
11708 # support --undefined. This deserves some investigation. FIXME
11709 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11710 else
11711 ld_shlibs=no
11712 fi
11713 ;;
11714
11715 cygwin* | mingw* | pw32* | cegcc*)
11716 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11717 # as there is no search path for DLLs.
11718 hardcode_libdir_flag_spec='-L$libdir'
11719 export_dynamic_flag_spec='$wl--export-all-symbols'
11720 allow_undefined_flag=unsupported
11721 always_export_symbols=no
11722 enable_shared_with_static_runtimes=yes
11723 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'
11724 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11725
11726 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11728 # If the export-symbols file already is a .def file, use it as
11729 # is; otherwise, prepend EXPORTS...
11730 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11731 cp $export_symbols $output_objdir/$soname.def;
11732 else
11733 echo EXPORTS > $output_objdir/$soname.def;
11734 cat $export_symbols >> $output_objdir/$soname.def;
11735 fi~
11736 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11737 else
11738 ld_shlibs=no
11739 fi
11740 ;;
11741
11742 haiku*)
11743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11744 link_all_deplibs=yes
11745 ;;
11746
11747 os2*)
11748 hardcode_libdir_flag_spec='-L$libdir'
11749 hardcode_minus_L=yes
11750 allow_undefined_flag=unsupported
11751 shrext_cmds=.dll
11752 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11753 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11754 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11755 $ECHO EXPORTS >> $output_objdir/$libname.def~
11756 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11757 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11758 emximp -o $lib $output_objdir/$libname.def'
11759 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11760 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11761 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11762 $ECHO EXPORTS >> $output_objdir/$libname.def~
11763 prefix_cmds="$SED"~
11764 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11765 prefix_cmds="$prefix_cmds -e 1d";
11766 fi~
11767 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11768 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11769 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11770 emximp -o $lib $output_objdir/$libname.def'
11771 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11772 enable_shared_with_static_runtimes=yes
11773 ;;
11774
11775 interix[3-9]*)
11776 hardcode_direct=no
11777 hardcode_shlibpath_var=no
11778 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11779 export_dynamic_flag_spec='$wl-E'
11780 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11781 # Instead, shared libraries are loaded at an image base (0x10000000 by
11782 # default) and relocated if they conflict, which is a slow very memory
11783 # consuming and fragmenting process. To avoid this, we pick a random,
11784 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11785 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11786 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11787 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'
11788 ;;
11789
11790 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11791 tmp_diet=no
11792 if test linux-dietlibc = "$host_os"; then
11793 case $cc_basename in
11794 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11795 esac
11796 fi
11797 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11798 && test no = "$tmp_diet"
11799 then
11800 tmp_addflag=' $pic_flag'
11801 tmp_sharedflag='-shared'
11802 case $cc_basename,$host_cpu in
11803 pgcc*) # Portland Group C compiler
11804 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'
11805 tmp_addflag=' $pic_flag'
11806 ;;
11807 pgf77* | pgf90* | pgf95* | pgfortran*)
11808 # Portland Group f77 and f90 compilers
11809 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'
11810 tmp_addflag=' $pic_flag -Mnomain' ;;
11811 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11812 tmp_addflag=' -i_dynamic' ;;
11813 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11814 tmp_addflag=' -i_dynamic -nofor_main' ;;
11815 ifc* | ifort*) # Intel Fortran compiler
11816 tmp_addflag=' -nofor_main' ;;
11817 lf95*) # Lahey Fortran 8.1
11818 whole_archive_flag_spec=
11819 tmp_sharedflag='--shared' ;;
11820 nagfor*) # NAGFOR 5.3
11821 tmp_sharedflag='-Wl,-shared' ;;
11822 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11823 tmp_sharedflag='-qmkshrobj'
11824 tmp_addflag= ;;
11825 nvcc*) # Cuda Compiler Driver 2.2
11826 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'
11827 compiler_needs_object=yes
11828 ;;
11829 esac
11830 case `$CC -V 2>&1 | sed 5q` in
11831 *Sun\ C*) # Sun C 5.9
11832 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'
11833 compiler_needs_object=yes
11834 tmp_sharedflag='-G' ;;
11835 *Sun\ F*) # Sun Fortran 8.3
11836 tmp_sharedflag='-G' ;;
11837 esac
11838 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11839
11840 if test yes = "$supports_anon_versioning"; then
11841 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11842 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11843 echo "local: *; };" >> $output_objdir/$libname.ver~
11844 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11845 fi
11846
11847 case $cc_basename in
11848 tcc*)
11849 export_dynamic_flag_spec='-rdynamic'
11850 ;;
11851 xlf* | bgf* | bgxlf* | mpixlf*)
11852 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11853 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11854 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11855 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11856 if test yes = "$supports_anon_versioning"; then
11857 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11858 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11859 echo "local: *; };" >> $output_objdir/$libname.ver~
11860 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11861 fi
11862 ;;
11863 esac
11864 else
11865 ld_shlibs=no
11866 fi
11867 ;;
11868
11869 netbsd* | netbsdelf*-gnu)
11870 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11871 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11872 wlarc=
11873 else
11874 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11875 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11876 fi
11877 ;;
11878
11879 solaris*)
11880 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11881 ld_shlibs=no
11882 cat <<_LT_EOF 1>&2
11883
11884 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11885 *** create shared libraries on Solaris systems. Therefore, libtool
11886 *** is disabling shared libraries support. We urge you to upgrade GNU
11887 *** binutils to release 2.9.1 or newer. Another option is to modify
11888 *** your PATH or compiler configuration so that the native linker is
11889 *** used, and then restart.
11890
11891 _LT_EOF
11892 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11893 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11894 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11895 else
11896 ld_shlibs=no
11897 fi
11898 ;;
11899
11900 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11901 case `$LD -v 2>&1` in
11902 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11903 ld_shlibs=no
11904 cat <<_LT_EOF 1>&2
11905
11906 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11907 *** reliably create shared libraries on SCO systems. Therefore, libtool
11908 *** is disabling shared libraries support. We urge you to upgrade GNU
11909 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11910 *** your PATH or compiler configuration so that the native linker is
11911 *** used, and then restart.
11912
11913 _LT_EOF
11914 ;;
11915 *)
11916 # For security reasons, it is highly recommended that you always
11917 # use absolute paths for naming shared libraries, and exclude the
11918 # DT_RUNPATH tag from executables and libraries. But doing so
11919 # requires that you compile everything twice, which is a pain.
11920 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11921 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11923 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11924 else
11925 ld_shlibs=no
11926 fi
11927 ;;
11928 esac
11929 ;;
11930
11931 sunos4*)
11932 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11933 wlarc=
11934 hardcode_direct=yes
11935 hardcode_shlibpath_var=no
11936 ;;
11937
11938 *)
11939 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11940 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11941 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11942 else
11943 ld_shlibs=no
11944 fi
11945 ;;
11946 esac
11947
11948 if test no = "$ld_shlibs"; then
11949 runpath_var=
11950 hardcode_libdir_flag_spec=
11951 export_dynamic_flag_spec=
11952 whole_archive_flag_spec=
11953 fi
11954 else
11955 # PORTME fill in a description of your system's linker (not GNU ld)
11956 case $host_os in
11957 aix3*)
11958 allow_undefined_flag=unsupported
11959 always_export_symbols=yes
11960 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'
11961 # Note: this linker hardcodes the directories in LIBPATH if there
11962 # are no directories specified by -L.
11963 hardcode_minus_L=yes
11964 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11965 # Neither direct hardcoding nor static linking is supported with a
11966 # broken collect2.
11967 hardcode_direct=unsupported
11968 fi
11969 ;;
11970
11971 aix[4-9]*)
11972 if test ia64 = "$host_cpu"; then
11973 # On IA64, the linker does run time linking by default, so we don't
11974 # have to do anything special.
11975 aix_use_runtimelinking=no
11976 exp_sym_flag='-Bexport'
11977 no_entry_flag=
11978 else
11979 # If we're using GNU nm, then we don't want the "-C" option.
11980 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11981 # Without the "-l" option, or with the "-B" option, AIX nm treats
11982 # weak defined symbols like other global defined symbols, whereas
11983 # GNU nm marks them as "W".
11984 # While the 'weak' keyword is ignored in the Export File, we need
11985 # it in the Import File for the 'aix-soname' feature, so we have
11986 # to replace the "-B" option with "-P" for AIX nm.
11987 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11988 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'
11989 else
11990 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 == "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'
11991 fi
11992 aix_use_runtimelinking=no
11993
11994 # Test if we are trying to use run time linking or normal
11995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11996 # have runtime linking enabled, and use it for executables.
11997 # For shared libraries, we enable/disable runtime linking
11998 # depending on the kind of the shared library created -
11999 # when "with_aix_soname,aix_use_runtimelinking" is:
12000 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12001 # "aix,yes" lib.so shared, rtl:yes, for executables
12002 # lib.a static archive
12003 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12004 # lib.a(lib.so.V) shared, rtl:no, for executables
12005 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12006 # lib.a(lib.so.V) shared, rtl:no
12007 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12008 # lib.a static archive
12009 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12010 for ld_flag in $LDFLAGS; do
12011 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12012 aix_use_runtimelinking=yes
12013 break
12014 fi
12015 done
12016 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12017 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12018 # so we don't have lib.a shared libs to link our executables.
12019 # We have to force runtime linking in this case.
12020 aix_use_runtimelinking=yes
12021 LDFLAGS="$LDFLAGS -Wl,-brtl"
12022 fi
12023 ;;
12024 esac
12025
12026 exp_sym_flag='-bexport'
12027 no_entry_flag='-bnoentry'
12028 fi
12029
12030 # When large executables or shared objects are built, AIX ld can
12031 # have problems creating the table of contents. If linking a library
12032 # or program results in "error TOC overflow" add -mminimal-toc to
12033 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12034 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12035
12036 archive_cmds=''
12037 hardcode_direct=yes
12038 hardcode_direct_absolute=yes
12039 hardcode_libdir_separator=':'
12040 link_all_deplibs=yes
12041 file_list_spec='$wl-f,'
12042 case $with_aix_soname,$aix_use_runtimelinking in
12043 aix,*) ;; # traditional, no import file
12044 svr4,* | *,yes) # use import file
12045 # The Import File defines what to hardcode.
12046 hardcode_direct=no
12047 hardcode_direct_absolute=no
12048 ;;
12049 esac
12050
12051 if test yes = "$GCC"; then
12052 case $host_os in aix4.[012]|aix4.[012].*)
12053 # We only want to do this on AIX 4.2 and lower, the check
12054 # below for broken collect2 doesn't work under 4.3+
12055 collect2name=`$CC -print-prog-name=collect2`
12056 if test -f "$collect2name" &&
12057 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12058 then
12059 # We have reworked collect2
12060 :
12061 else
12062 # We have old collect2
12063 hardcode_direct=unsupported
12064 # It fails to find uninstalled libraries when the uninstalled
12065 # path is not listed in the libpath. Setting hardcode_minus_L
12066 # to unsupported forces relinking
12067 hardcode_minus_L=yes
12068 hardcode_libdir_flag_spec='-L$libdir'
12069 hardcode_libdir_separator=
12070 fi
12071 ;;
12072 esac
12073 shared_flag='-shared'
12074 if test yes = "$aix_use_runtimelinking"; then
12075 shared_flag="$shared_flag "'$wl-G'
12076 fi
12077 # Need to ensure runtime linking is disabled for the traditional
12078 # shared library, or the linker may eventually find shared libraries
12079 # /with/ Import File - we do not want to mix them.
12080 shared_flag_aix='-shared'
12081 shared_flag_svr4='-shared $wl-G'
12082 else
12083 # not using gcc
12084 if test ia64 = "$host_cpu"; then
12085 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12086 # chokes on -Wl,-G. The following line is correct:
12087 shared_flag='-G'
12088 else
12089 if test yes = "$aix_use_runtimelinking"; then
12090 shared_flag='$wl-G'
12091 else
12092 shared_flag='$wl-bM:SRE'
12093 fi
12094 shared_flag_aix='$wl-bM:SRE'
12095 shared_flag_svr4='$wl-G'
12096 fi
12097 fi
12098
12099 export_dynamic_flag_spec='$wl-bexpall'
12100 # It seems that -bexpall does not export symbols beginning with
12101 # underscore (_), so it is better to generate a list of symbols to export.
12102 always_export_symbols=yes
12103 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12104 # Warning - without using the other runtime loading flags (-brtl),
12105 # -berok will link without error, but may produce a broken library.
12106 allow_undefined_flag='-berok'
12107 # Determine the default libpath from the value encoded in an
12108 # empty executable.
12109 if test set = "${lt_cv_aix_libpath+set}"; then
12110 aix_libpath=$lt_cv_aix_libpath
12111 else
12112 if ${lt_cv_aix_libpath_+:} false; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h. */
12117
12118 int
12119 main ()
12120 {
12121
12122 ;
12123 return 0;
12124 }
12125 _ACEOF
12126 if ac_fn_c_try_link "$LINENO"; then :
12127
12128 lt_aix_libpath_sed='
12129 /Import File Strings/,/^$/ {
12130 /^0/ {
12131 s/^0 *\([^ ]*\) *$/\1/
12132 p
12133 }
12134 }'
12135 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12136 # Check for a 64-bit object if we didn't find anything.
12137 if test -z "$lt_cv_aix_libpath_"; then
12138 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12139 fi
12140 fi
12141 rm -f core conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext conftest.$ac_ext
12143 if test -z "$lt_cv_aix_libpath_"; then
12144 lt_cv_aix_libpath_=/usr/lib:/lib
12145 fi
12146
12147 fi
12148
12149 aix_libpath=$lt_cv_aix_libpath_
12150 fi
12151
12152 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12153 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
12154 else
12155 if test ia64 = "$host_cpu"; then
12156 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12157 allow_undefined_flag="-z nodefs"
12158 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"
12159 else
12160 # Determine the default libpath from the value encoded in an
12161 # empty executable.
12162 if test set = "${lt_cv_aix_libpath+set}"; then
12163 aix_libpath=$lt_cv_aix_libpath
12164 else
12165 if ${lt_cv_aix_libpath_+:} false; then :
12166 $as_echo_n "(cached) " >&6
12167 else
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12170
12171 int
12172 main ()
12173 {
12174
12175 ;
12176 return 0;
12177 }
12178 _ACEOF
12179 if ac_fn_c_try_link "$LINENO"; then :
12180
12181 lt_aix_libpath_sed='
12182 /Import File Strings/,/^$/ {
12183 /^0/ {
12184 s/^0 *\([^ ]*\) *$/\1/
12185 p
12186 }
12187 }'
12188 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12189 # Check for a 64-bit object if we didn't find anything.
12190 if test -z "$lt_cv_aix_libpath_"; then
12191 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12192 fi
12193 fi
12194 rm -f core conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196 if test -z "$lt_cv_aix_libpath_"; then
12197 lt_cv_aix_libpath_=/usr/lib:/lib
12198 fi
12199
12200 fi
12201
12202 aix_libpath=$lt_cv_aix_libpath_
12203 fi
12204
12205 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12206 # Warning - without using the other run time loading flags,
12207 # -berok will link without error, but may produce a broken library.
12208 no_undefined_flag=' $wl-bernotok'
12209 allow_undefined_flag=' $wl-berok'
12210 if test yes = "$with_gnu_ld"; then
12211 # We only use this code for GNU lds that support --whole-archive.
12212 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12213 else
12214 # Exported symbols can be pulled into shared objects from archives
12215 whole_archive_flag_spec='$convenience'
12216 fi
12217 archive_cmds_need_lc=yes
12218 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12219 # -brtl affects multiple linker settings, -berok does not and is overridden later
12220 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12221 if test svr4 != "$with_aix_soname"; then
12222 # This is similar to how AIX traditionally builds its shared libraries.
12223 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'
12224 fi
12225 if test aix != "$with_aix_soname"; then
12226 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'
12227 else
12228 # used by -dlpreopen to get the symbols
12229 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12230 fi
12231 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12232 fi
12233 fi
12234 ;;
12235
12236 amigaos*)
12237 case $host_cpu in
12238 powerpc)
12239 # see comment about AmigaOS4 .so support
12240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12241 archive_expsym_cmds=''
12242 ;;
12243 m68k)
12244 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)'
12245 hardcode_libdir_flag_spec='-L$libdir'
12246 hardcode_minus_L=yes
12247 ;;
12248 esac
12249 ;;
12250
12251 bsdi[45]*)
12252 export_dynamic_flag_spec=-rdynamic
12253 ;;
12254
12255 cygwin* | mingw* | pw32* | cegcc*)
12256 # When not using gcc, we currently assume that we are using
12257 # Microsoft Visual C++.
12258 # hardcode_libdir_flag_spec is actually meaningless, as there is
12259 # no search path for DLLs.
12260 case $cc_basename in
12261 cl*)
12262 # Native MSVC
12263 hardcode_libdir_flag_spec=' '
12264 allow_undefined_flag=unsupported
12265 always_export_symbols=yes
12266 file_list_spec='@'
12267 # Tell ltmain to make .lib files, not .a files.
12268 libext=lib
12269 # Tell ltmain to make .dll files, not .so files.
12270 shrext_cmds=.dll
12271 # FIXME: Setting linknames here is a bad hack.
12272 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12273 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12274 cp "$export_symbols" "$output_objdir/$soname.def";
12275 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12276 else
12277 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12278 fi~
12279 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12280 linknames='
12281 # The linker will not automatically build a static lib if we build a DLL.
12282 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12283 enable_shared_with_static_runtimes=yes
12284 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12285 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12286 # Don't use ranlib
12287 old_postinstall_cmds='chmod 644 $oldlib'
12288 postlink_cmds='lt_outputfile="@OUTPUT@"~
12289 lt_tool_outputfile="@TOOL_OUTPUT@"~
12290 case $lt_outputfile in
12291 *.exe|*.EXE) ;;
12292 *)
12293 lt_outputfile=$lt_outputfile.exe
12294 lt_tool_outputfile=$lt_tool_outputfile.exe
12295 ;;
12296 esac~
12297 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12298 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12299 $RM "$lt_outputfile.manifest";
12300 fi'
12301 ;;
12302 *)
12303 # Assume MSVC wrapper
12304 hardcode_libdir_flag_spec=' '
12305 allow_undefined_flag=unsupported
12306 # Tell ltmain to make .lib files, not .a files.
12307 libext=lib
12308 # Tell ltmain to make .dll files, not .so files.
12309 shrext_cmds=.dll
12310 # FIXME: Setting linknames here is a bad hack.
12311 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12312 # The linker will automatically build a .lib file if we build a DLL.
12313 old_archive_from_new_cmds='true'
12314 # FIXME: Should let the user specify the lib program.
12315 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12316 enable_shared_with_static_runtimes=yes
12317 ;;
12318 esac
12319 ;;
12320
12321 darwin* | rhapsody*)
12322
12323
12324 archive_cmds_need_lc=no
12325 hardcode_direct=no
12326 hardcode_automatic=yes
12327 hardcode_shlibpath_var=unsupported
12328 if test yes = "$lt_cv_ld_force_load"; then
12329 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\"`'
12330
12331 else
12332 whole_archive_flag_spec=''
12333 fi
12334 link_all_deplibs=yes
12335 allow_undefined_flag=$_lt_dar_allow_undefined
12336 case $cc_basename in
12337 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12338 *) _lt_dar_can_shared=$GCC ;;
12339 esac
12340 if test yes = "$_lt_dar_can_shared"; then
12341 output_verbose_link_cmd=func_echo_all
12342 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12343 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12344 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"
12345 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"
12346
12347 else
12348 ld_shlibs=no
12349 fi
12350
12351 ;;
12352
12353 dgux*)
12354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12355 hardcode_libdir_flag_spec='-L$libdir'
12356 hardcode_shlibpath_var=no
12357 ;;
12358
12359 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12360 # support. Future versions do this automatically, but an explicit c++rt0.o
12361 # does not break anything, and helps significantly (at the cost of a little
12362 # extra space).
12363 freebsd2.2*)
12364 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12365 hardcode_libdir_flag_spec='-R$libdir'
12366 hardcode_direct=yes
12367 hardcode_shlibpath_var=no
12368 ;;
12369
12370 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12371 freebsd2.*)
12372 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12373 hardcode_direct=yes
12374 hardcode_minus_L=yes
12375 hardcode_shlibpath_var=no
12376 ;;
12377
12378 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12379 freebsd* | dragonfly*)
12380 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12381 hardcode_libdir_flag_spec='-R$libdir'
12382 hardcode_direct=yes
12383 hardcode_shlibpath_var=no
12384 ;;
12385
12386 hpux9*)
12387 if test yes = "$GCC"; then
12388 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'
12389 else
12390 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'
12391 fi
12392 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12393 hardcode_libdir_separator=:
12394 hardcode_direct=yes
12395
12396 # hardcode_minus_L: Not really in the search PATH,
12397 # but as the default location of the library.
12398 hardcode_minus_L=yes
12399 export_dynamic_flag_spec='$wl-E'
12400 ;;
12401
12402 hpux10*)
12403 if test yes,no = "$GCC,$with_gnu_ld"; then
12404 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12405 else
12406 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12407 fi
12408 if test no = "$with_gnu_ld"; then
12409 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12410 hardcode_libdir_separator=:
12411 hardcode_direct=yes
12412 hardcode_direct_absolute=yes
12413 export_dynamic_flag_spec='$wl-E'
12414 # hardcode_minus_L: Not really in the search PATH,
12415 # but as the default location of the library.
12416 hardcode_minus_L=yes
12417 fi
12418 ;;
12419
12420 hpux11*)
12421 if test yes,no = "$GCC,$with_gnu_ld"; then
12422 case $host_cpu in
12423 hppa*64*)
12424 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12425 ;;
12426 ia64*)
12427 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12428 ;;
12429 *)
12430 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12431 ;;
12432 esac
12433 else
12434 case $host_cpu in
12435 hppa*64*)
12436 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12437 ;;
12438 ia64*)
12439 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12440 ;;
12441 *)
12442
12443 # Older versions of the 11.00 compiler do not understand -b yet
12444 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12446 $as_echo_n "checking if $CC understands -b... " >&6; }
12447 if ${lt_cv_prog_compiler__b+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 lt_cv_prog_compiler__b=no
12451 save_LDFLAGS=$LDFLAGS
12452 LDFLAGS="$LDFLAGS -b"
12453 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12454 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12455 # The linker can only warn and ignore the option if not recognized
12456 # So say no if there are warnings
12457 if test -s conftest.err; then
12458 # Append any errors to the config.log.
12459 cat conftest.err 1>&5
12460 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12462 if diff conftest.exp conftest.er2 >/dev/null; then
12463 lt_cv_prog_compiler__b=yes
12464 fi
12465 else
12466 lt_cv_prog_compiler__b=yes
12467 fi
12468 fi
12469 $RM -r conftest*
12470 LDFLAGS=$save_LDFLAGS
12471
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12474 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12475
12476 if test yes = "$lt_cv_prog_compiler__b"; then
12477 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12478 else
12479 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12480 fi
12481
12482 ;;
12483 esac
12484 fi
12485 if test no = "$with_gnu_ld"; then
12486 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12487 hardcode_libdir_separator=:
12488
12489 case $host_cpu in
12490 hppa*64*|ia64*)
12491 hardcode_direct=no
12492 hardcode_shlibpath_var=no
12493 ;;
12494 *)
12495 hardcode_direct=yes
12496 hardcode_direct_absolute=yes
12497 export_dynamic_flag_spec='$wl-E'
12498
12499 # hardcode_minus_L: Not really in the search PATH,
12500 # but as the default location of the library.
12501 hardcode_minus_L=yes
12502 ;;
12503 esac
12504 fi
12505 ;;
12506
12507 irix5* | irix6* | nonstopux*)
12508 if test yes = "$GCC"; then
12509 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'
12510 # Try to use the -exported_symbol ld option, if it does not
12511 # work, assume that -exports_file does not work either and
12512 # implicitly export all symbols.
12513 # This should be the same for all languages, so no per-tag cache variable.
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12515 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12516 if ${lt_cv_irix_exported_symbol+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 save_LDFLAGS=$LDFLAGS
12520 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12523 int foo (void) { return 0; }
12524 _ACEOF
12525 if ac_fn_c_try_link "$LINENO"; then :
12526 lt_cv_irix_exported_symbol=yes
12527 else
12528 lt_cv_irix_exported_symbol=no
12529 fi
12530 rm -f core conftest.err conftest.$ac_objext \
12531 conftest$ac_exeext conftest.$ac_ext
12532 LDFLAGS=$save_LDFLAGS
12533 fi
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12535 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12536 if test yes = "$lt_cv_irix_exported_symbol"; then
12537 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'
12538 fi
12539 link_all_deplibs=no
12540 else
12541 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'
12542 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'
12543 fi
12544 archive_cmds_need_lc='no'
12545 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12546 hardcode_libdir_separator=:
12547 inherit_rpath=yes
12548 link_all_deplibs=yes
12549 ;;
12550
12551 linux*)
12552 case $cc_basename in
12553 tcc*)
12554 # Fabrice Bellard et al's Tiny C Compiler
12555 ld_shlibs=yes
12556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12557 ;;
12558 esac
12559 ;;
12560
12561 netbsd* | netbsdelf*-gnu)
12562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12564 else
12565 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12566 fi
12567 hardcode_libdir_flag_spec='-R$libdir'
12568 hardcode_direct=yes
12569 hardcode_shlibpath_var=no
12570 ;;
12571
12572 newsos6)
12573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12574 hardcode_direct=yes
12575 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12576 hardcode_libdir_separator=:
12577 hardcode_shlibpath_var=no
12578 ;;
12579
12580 *nto* | *qnx*)
12581 ;;
12582
12583 openbsd* | bitrig*)
12584 if test -f /usr/libexec/ld.so; then
12585 hardcode_direct=yes
12586 hardcode_shlibpath_var=no
12587 hardcode_direct_absolute=yes
12588 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12590 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12591 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12592 export_dynamic_flag_spec='$wl-E'
12593 else
12594 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12595 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12596 fi
12597 else
12598 ld_shlibs=no
12599 fi
12600 ;;
12601
12602 os2*)
12603 hardcode_libdir_flag_spec='-L$libdir'
12604 hardcode_minus_L=yes
12605 allow_undefined_flag=unsupported
12606 shrext_cmds=.dll
12607 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12608 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12609 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12610 $ECHO EXPORTS >> $output_objdir/$libname.def~
12611 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12612 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12613 emximp -o $lib $output_objdir/$libname.def'
12614 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12615 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12616 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12617 $ECHO EXPORTS >> $output_objdir/$libname.def~
12618 prefix_cmds="$SED"~
12619 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12620 prefix_cmds="$prefix_cmds -e 1d";
12621 fi~
12622 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12623 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12624 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12625 emximp -o $lib $output_objdir/$libname.def'
12626 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12627 enable_shared_with_static_runtimes=yes
12628 ;;
12629
12630 osf3*)
12631 if test yes = "$GCC"; then
12632 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12633 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'
12634 else
12635 allow_undefined_flag=' -expect_unresolved \*'
12636 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'
12637 fi
12638 archive_cmds_need_lc='no'
12639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12640 hardcode_libdir_separator=:
12641 ;;
12642
12643 osf4* | osf5*) # as osf3* with the addition of -msym flag
12644 if test yes = "$GCC"; then
12645 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12646 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'
12647 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12648 else
12649 allow_undefined_flag=' -expect_unresolved \*'
12650 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'
12651 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~
12652 $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'
12653
12654 # Both c and cxx compiler support -rpath directly
12655 hardcode_libdir_flag_spec='-rpath $libdir'
12656 fi
12657 archive_cmds_need_lc='no'
12658 hardcode_libdir_separator=:
12659 ;;
12660
12661 solaris*)
12662 no_undefined_flag=' -z defs'
12663 if test yes = "$GCC"; then
12664 wlarc='$wl'
12665 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12666 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12667 $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'
12668 else
12669 case `$CC -V 2>&1` in
12670 *"Compilers 5.0"*)
12671 wlarc=''
12672 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12673 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12674 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12675 ;;
12676 *)
12677 wlarc='$wl'
12678 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12679 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12680 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12681 ;;
12682 esac
12683 fi
12684 hardcode_libdir_flag_spec='-R$libdir'
12685 hardcode_shlibpath_var=no
12686 case $host_os in
12687 solaris2.[0-5] | solaris2.[0-5].*) ;;
12688 *)
12689 # The compiler driver will combine and reorder linker options,
12690 # but understands '-z linker_flag'. GCC discards it without '$wl',
12691 # but is careful enough not to reorder.
12692 # Supported since Solaris 2.6 (maybe 2.5.1?)
12693 if test yes = "$GCC"; then
12694 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12695 else
12696 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12697 fi
12698 ;;
12699 esac
12700 link_all_deplibs=yes
12701 ;;
12702
12703 sunos4*)
12704 if test sequent = "$host_vendor"; then
12705 # Use $CC to link under sequent, because it throws in some extra .o
12706 # files that make .init and .fini sections work.
12707 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12708 else
12709 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12710 fi
12711 hardcode_libdir_flag_spec='-L$libdir'
12712 hardcode_direct=yes
12713 hardcode_minus_L=yes
12714 hardcode_shlibpath_var=no
12715 ;;
12716
12717 sysv4)
12718 case $host_vendor in
12719 sni)
12720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12721 hardcode_direct=yes # is this really true???
12722 ;;
12723 siemens)
12724 ## LD is ld it makes a PLAMLIB
12725 ## CC just makes a GrossModule.
12726 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12727 reload_cmds='$CC -r -o $output$reload_objs'
12728 hardcode_direct=no
12729 ;;
12730 motorola)
12731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12732 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12733 ;;
12734 esac
12735 runpath_var='LD_RUN_PATH'
12736 hardcode_shlibpath_var=no
12737 ;;
12738
12739 sysv4.3*)
12740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12741 hardcode_shlibpath_var=no
12742 export_dynamic_flag_spec='-Bexport'
12743 ;;
12744
12745 sysv4*MP*)
12746 if test -d /usr/nec; then
12747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12748 hardcode_shlibpath_var=no
12749 runpath_var=LD_RUN_PATH
12750 hardcode_runpath_var=yes
12751 ld_shlibs=yes
12752 fi
12753 ;;
12754
12755 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12756 no_undefined_flag='$wl-z,text'
12757 archive_cmds_need_lc=no
12758 hardcode_shlibpath_var=no
12759 runpath_var='LD_RUN_PATH'
12760
12761 if test yes = "$GCC"; then
12762 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12763 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12764 else
12765 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12766 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12767 fi
12768 ;;
12769
12770 sysv5* | sco3.2v5* | sco5v6*)
12771 # Note: We CANNOT use -z defs as we might desire, because we do not
12772 # link with -lc, and that would cause any symbols used from libc to
12773 # always be unresolved, which means just about no library would
12774 # ever link correctly. If we're not using GNU ld we use -z text
12775 # though, which does catch some bad symbols but isn't as heavy-handed
12776 # as -z defs.
12777 no_undefined_flag='$wl-z,text'
12778 allow_undefined_flag='$wl-z,nodefs'
12779 archive_cmds_need_lc=no
12780 hardcode_shlibpath_var=no
12781 hardcode_libdir_flag_spec='$wl-R,$libdir'
12782 hardcode_libdir_separator=':'
12783 link_all_deplibs=yes
12784 export_dynamic_flag_spec='$wl-Bexport'
12785 runpath_var='LD_RUN_PATH'
12786
12787 if test yes = "$GCC"; then
12788 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12789 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12790 else
12791 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12792 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12793 fi
12794 ;;
12795
12796 uts4*)
12797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12798 hardcode_libdir_flag_spec='-L$libdir'
12799 hardcode_shlibpath_var=no
12800 ;;
12801
12802 *)
12803 ld_shlibs=no
12804 ;;
12805 esac
12806
12807 if test sni = "$host_vendor"; then
12808 case $host in
12809 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12810 export_dynamic_flag_spec='$wl-Blargedynsym'
12811 ;;
12812 esac
12813 fi
12814 fi
12815
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12817 $as_echo "$ld_shlibs" >&6; }
12818 test no = "$ld_shlibs" && can_build_shared=no
12819
12820 with_gnu_ld=$with_gnu_ld
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836 #
12837 # Do we need to explicitly link libc?
12838 #
12839 case "x$archive_cmds_need_lc" in
12840 x|xyes)
12841 # Assume -lc should be added
12842 archive_cmds_need_lc=yes
12843
12844 if test yes,yes = "$GCC,$enable_shared"; then
12845 case $archive_cmds in
12846 *'~'*)
12847 # FIXME: we may have to deal with multi-command sequences.
12848 ;;
12849 '$CC '*)
12850 # Test whether the compiler implicitly links with -lc since on some
12851 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12852 # to ld, don't add -lc before -lgcc.
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12854 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12855 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 $RM conftest*
12859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12860
12861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12862 (eval $ac_compile) 2>&5
12863 ac_status=$?
12864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12865 test $ac_status = 0; } 2>conftest.err; then
12866 soname=conftest
12867 lib=conftest
12868 libobjs=conftest.$ac_objext
12869 deplibs=
12870 wl=$lt_prog_compiler_wl
12871 pic_flag=$lt_prog_compiler_pic
12872 compiler_flags=-v
12873 linker_flags=-v
12874 verstring=
12875 output_objdir=.
12876 libname=conftest
12877 lt_save_allow_undefined_flag=$allow_undefined_flag
12878 allow_undefined_flag=
12879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12880 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12881 ac_status=$?
12882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12883 test $ac_status = 0; }
12884 then
12885 lt_cv_archive_cmds_need_lc=no
12886 else
12887 lt_cv_archive_cmds_need_lc=yes
12888 fi
12889 allow_undefined_flag=$lt_save_allow_undefined_flag
12890 else
12891 cat conftest.err 1>&5
12892 fi
12893 $RM conftest*
12894
12895 fi
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12897 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12898 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12899 ;;
12900 esac
12901 fi
12902 ;;
12903 esac
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
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
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13057 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13058
13059 if test yes = "$GCC"; then
13060 case $host_os in
13061 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13062 *) lt_awk_arg='/^libraries:/' ;;
13063 esac
13064 case $host_os in
13065 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13066 *) lt_sed_strip_eq='s|=/|/|g' ;;
13067 esac
13068 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13069 case $lt_search_path_spec in
13070 *\;*)
13071 # if the path contains ";" then we assume it to be the separator
13072 # otherwise default to the standard path separator (i.e. ":") - it is
13073 # assumed that no part of a normal pathname contains ";" but that should
13074 # okay in the real world where ";" in dirpaths is itself problematic.
13075 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13076 ;;
13077 *)
13078 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13079 ;;
13080 esac
13081 # Ok, now we have the path, separated by spaces, we can step through it
13082 # and add multilib dir if necessary...
13083 lt_tmp_lt_search_path_spec=
13084 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13085 # ...but if some path component already ends with the multilib dir we assume
13086 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13087 case "$lt_multi_os_dir; $lt_search_path_spec " in
13088 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13089 lt_multi_os_dir=
13090 ;;
13091 esac
13092 for lt_sys_path in $lt_search_path_spec; do
13093 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13094 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13095 elif test -n "$lt_multi_os_dir"; then
13096 test -d "$lt_sys_path" && \
13097 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13098 fi
13099 done
13100 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13101 BEGIN {RS = " "; FS = "/|\n";} {
13102 lt_foo = "";
13103 lt_count = 0;
13104 for (lt_i = NF; lt_i > 0; lt_i--) {
13105 if ($lt_i != "" && $lt_i != ".") {
13106 if ($lt_i == "..") {
13107 lt_count++;
13108 } else {
13109 if (lt_count == 0) {
13110 lt_foo = "/" $lt_i lt_foo;
13111 } else {
13112 lt_count--;
13113 }
13114 }
13115 }
13116 }
13117 if (lt_foo != "") { lt_freq[lt_foo]++; }
13118 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13119 }'`
13120 # AWK program above erroneously prepends '/' to C:/dos/paths
13121 # for these hosts.
13122 case $host_os in
13123 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13124 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13125 esac
13126 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13127 else
13128 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13129 fi
13130 library_names_spec=
13131 libname_spec='lib$name'
13132 soname_spec=
13133 shrext_cmds=.so
13134 postinstall_cmds=
13135 postuninstall_cmds=
13136 finish_cmds=
13137 finish_eval=
13138 shlibpath_var=
13139 shlibpath_overrides_runpath=unknown
13140 version_type=none
13141 dynamic_linker="$host_os ld.so"
13142 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13143 need_lib_prefix=unknown
13144 hardcode_into_libs=no
13145
13146 # when you set need_version to no, make sure it does not cause -set_version
13147 # flags to be left without arguments
13148 need_version=unknown
13149
13150
13151
13152 case $host_os in
13153 aix3*)
13154 version_type=linux # correct to gnu/linux during the next big refactor
13155 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13156 shlibpath_var=LIBPATH
13157
13158 # AIX 3 has no versioning support, so we append a major version to the name.
13159 soname_spec='$libname$release$shared_ext$major'
13160 ;;
13161
13162 aix[4-9]*)
13163 version_type=linux # correct to gnu/linux during the next big refactor
13164 need_lib_prefix=no
13165 need_version=no
13166 hardcode_into_libs=yes
13167 if test ia64 = "$host_cpu"; then
13168 # AIX 5 supports IA64
13169 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13170 shlibpath_var=LD_LIBRARY_PATH
13171 else
13172 # With GCC up to 2.95.x, collect2 would create an import file
13173 # for dependence libraries. The import file would start with
13174 # the line '#! .'. This would cause the generated library to
13175 # depend on '.', always an invalid library. This was fixed in
13176 # development snapshots of GCC prior to 3.0.
13177 case $host_os in
13178 aix4 | aix4.[01] | aix4.[01].*)
13179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13180 echo ' yes '
13181 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13182 :
13183 else
13184 can_build_shared=no
13185 fi
13186 ;;
13187 esac
13188 # Using Import Files as archive members, it is possible to support
13189 # filename-based versioning of shared library archives on AIX. While
13190 # this would work for both with and without runtime linking, it will
13191 # prevent static linking of such archives. So we do filename-based
13192 # shared library versioning with .so extension only, which is used
13193 # when both runtime linking and shared linking is enabled.
13194 # Unfortunately, runtime linking may impact performance, so we do
13195 # not want this to be the default eventually. Also, we use the
13196 # versioned .so libs for executables only if there is the -brtl
13197 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13198 # To allow for filename-based versioning support, we need to create
13199 # libNAME.so.V as an archive file, containing:
13200 # *) an Import File, referring to the versioned filename of the
13201 # archive as well as the shared archive member, telling the
13202 # bitwidth (32 or 64) of that shared object, and providing the
13203 # list of exported symbols of that shared object, eventually
13204 # decorated with the 'weak' keyword
13205 # *) the shared object with the F_LOADONLY flag set, to really avoid
13206 # it being seen by the linker.
13207 # At run time we better use the real file rather than another symlink,
13208 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13209
13210 case $with_aix_soname,$aix_use_runtimelinking in
13211 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13212 # soname into executable. Probably we can add versioning support to
13213 # collect2, so additional links can be useful in future.
13214 aix,yes) # traditional libtool
13215 dynamic_linker='AIX unversionable lib.so'
13216 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13217 # instead of lib<name>.a to let people know that these are not
13218 # typical AIX shared libraries.
13219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13220 ;;
13221 aix,no) # traditional AIX only
13222 dynamic_linker='AIX lib.a(lib.so.V)'
13223 # We preserve .a as extension for shared libraries through AIX4.2
13224 # and later when we are not doing run time linking.
13225 library_names_spec='$libname$release.a $libname.a'
13226 soname_spec='$libname$release$shared_ext$major'
13227 ;;
13228 svr4,*) # full svr4 only
13229 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13230 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13231 # We do not specify a path in Import Files, so LIBPATH fires.
13232 shlibpath_overrides_runpath=yes
13233 ;;
13234 *,yes) # both, prefer svr4
13235 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13236 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13237 # unpreferred sharedlib libNAME.a needs extra handling
13238 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"'
13239 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"'
13240 # We do not specify a path in Import Files, so LIBPATH fires.
13241 shlibpath_overrides_runpath=yes
13242 ;;
13243 *,no) # both, prefer aix
13244 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13245 library_names_spec='$libname$release.a $libname.a'
13246 soname_spec='$libname$release$shared_ext$major'
13247 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13248 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)'
13249 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"'
13250 ;;
13251 esac
13252 shlibpath_var=LIBPATH
13253 fi
13254 ;;
13255
13256 amigaos*)
13257 case $host_cpu in
13258 powerpc)
13259 # Since July 2007 AmigaOS4 officially supports .so libraries.
13260 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13262 ;;
13263 m68k)
13264 library_names_spec='$libname.ixlibrary $libname.a'
13265 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13266 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'
13267 ;;
13268 esac
13269 ;;
13270
13271 beos*)
13272 library_names_spec='$libname$shared_ext'
13273 dynamic_linker="$host_os ld.so"
13274 shlibpath_var=LIBRARY_PATH
13275 ;;
13276
13277 bsdi[45]*)
13278 version_type=linux # correct to gnu/linux during the next big refactor
13279 need_version=no
13280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13281 soname_spec='$libname$release$shared_ext$major'
13282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13283 shlibpath_var=LD_LIBRARY_PATH
13284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13286 # the default ld.so.conf also contains /usr/contrib/lib and
13287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13288 # libtool to hard-code these into programs
13289 ;;
13290
13291 cygwin* | mingw* | pw32* | cegcc*)
13292 version_type=windows
13293 shrext_cmds=.dll
13294 need_version=no
13295 need_lib_prefix=no
13296
13297 case $GCC,$cc_basename in
13298 yes,*)
13299 # gcc
13300 library_names_spec='$libname.dll.a'
13301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13302 postinstall_cmds='base_file=`basename \$file`~
13303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13304 dldir=$destdir/`dirname \$dlpath`~
13305 test -d \$dldir || mkdir -p \$dldir~
13306 $install_prog $dir/$dlname \$dldir/$dlname~
13307 chmod a+x \$dldir/$dlname~
13308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13310 fi'
13311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13312 dlpath=$dir/\$dldll~
13313 $RM \$dlpath'
13314 shlibpath_overrides_runpath=yes
13315
13316 case $host_os in
13317 cygwin*)
13318 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13319 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13320
13321 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13322 ;;
13323 mingw* | cegcc*)
13324 # MinGW DLLs use traditional 'lib' prefix
13325 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13326 ;;
13327 pw32*)
13328 # pw32 DLLs use 'pw' prefix rather than 'lib'
13329 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13330 ;;
13331 esac
13332 dynamic_linker='Win32 ld.exe'
13333 ;;
13334
13335 *,cl*)
13336 # Native MSVC
13337 libname_spec='$name'
13338 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13339 library_names_spec='$libname.dll.lib'
13340
13341 case $build_os in
13342 mingw*)
13343 sys_lib_search_path_spec=
13344 lt_save_ifs=$IFS
13345 IFS=';'
13346 for lt_path in $LIB
13347 do
13348 IFS=$lt_save_ifs
13349 # Let DOS variable expansion print the short 8.3 style file name.
13350 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13351 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13352 done
13353 IFS=$lt_save_ifs
13354 # Convert to MSYS style.
13355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13356 ;;
13357 cygwin*)
13358 # Convert to unix form, then to dos form, then back to unix form
13359 # but this time dos style (no spaces!) so that the unix form looks
13360 # like /cygdrive/c/PROGRA~1:/cygdr...
13361 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13362 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13363 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13364 ;;
13365 *)
13366 sys_lib_search_path_spec=$LIB
13367 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13368 # It is most probably a Windows format PATH.
13369 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13370 else
13371 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13372 fi
13373 # FIXME: find the short name or the path components, as spaces are
13374 # common. (e.g. "Program Files" -> "PROGRA~1")
13375 ;;
13376 esac
13377
13378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13379 postinstall_cmds='base_file=`basename \$file`~
13380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13381 dldir=$destdir/`dirname \$dlpath`~
13382 test -d \$dldir || mkdir -p \$dldir~
13383 $install_prog $dir/$dlname \$dldir/$dlname'
13384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13385 dlpath=$dir/\$dldll~
13386 $RM \$dlpath'
13387 shlibpath_overrides_runpath=yes
13388 dynamic_linker='Win32 link.exe'
13389 ;;
13390
13391 *)
13392 # Assume MSVC wrapper
13393 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13394 dynamic_linker='Win32 ld.exe'
13395 ;;
13396 esac
13397 # FIXME: first we should search . and the directory the executable is in
13398 shlibpath_var=PATH
13399 ;;
13400
13401 darwin* | rhapsody*)
13402 dynamic_linker="$host_os dyld"
13403 version_type=darwin
13404 need_lib_prefix=no
13405 need_version=no
13406 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13407 soname_spec='$libname$release$major$shared_ext'
13408 shlibpath_overrides_runpath=yes
13409 shlibpath_var=DYLD_LIBRARY_PATH
13410 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13411
13412 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13413 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13414 ;;
13415
13416 dgux*)
13417 version_type=linux # correct to gnu/linux during the next big refactor
13418 need_lib_prefix=no
13419 need_version=no
13420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13421 soname_spec='$libname$release$shared_ext$major'
13422 shlibpath_var=LD_LIBRARY_PATH
13423 ;;
13424
13425 freebsd* | dragonfly*)
13426 # DragonFly does not have aout. When/if they implement a new
13427 # versioning mechanism, adjust this.
13428 if test -x /usr/bin/objformat; then
13429 objformat=`/usr/bin/objformat`
13430 else
13431 case $host_os in
13432 freebsd[23].*) objformat=aout ;;
13433 *) objformat=elf ;;
13434 esac
13435 fi
13436 version_type=freebsd-$objformat
13437 case $version_type in
13438 freebsd-elf*)
13439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13440 soname_spec='$libname$release$shared_ext$major'
13441 need_version=no
13442 need_lib_prefix=no
13443 ;;
13444 freebsd-*)
13445 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13446 need_version=yes
13447 ;;
13448 esac
13449 shlibpath_var=LD_LIBRARY_PATH
13450 case $host_os in
13451 freebsd2.*)
13452 shlibpath_overrides_runpath=yes
13453 ;;
13454 freebsd3.[01]* | freebsdelf3.[01]*)
13455 shlibpath_overrides_runpath=yes
13456 hardcode_into_libs=yes
13457 ;;
13458 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13459 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13460 shlibpath_overrides_runpath=no
13461 hardcode_into_libs=yes
13462 ;;
13463 *) # from 4.6 on, and DragonFly
13464 shlibpath_overrides_runpath=yes
13465 hardcode_into_libs=yes
13466 ;;
13467 esac
13468 ;;
13469
13470 haiku*)
13471 version_type=linux # correct to gnu/linux during the next big refactor
13472 need_lib_prefix=no
13473 need_version=no
13474 dynamic_linker="$host_os runtime_loader"
13475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13476 soname_spec='$libname$release$shared_ext$major'
13477 shlibpath_var=LIBRARY_PATH
13478 shlibpath_overrides_runpath=no
13479 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13480 hardcode_into_libs=yes
13481 ;;
13482
13483 hpux9* | hpux10* | hpux11*)
13484 # Give a soname corresponding to the major version so that dld.sl refuses to
13485 # link against other versions.
13486 version_type=sunos
13487 need_lib_prefix=no
13488 need_version=no
13489 case $host_cpu in
13490 ia64*)
13491 shrext_cmds='.so'
13492 hardcode_into_libs=yes
13493 dynamic_linker="$host_os dld.so"
13494 shlibpath_var=LD_LIBRARY_PATH
13495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13497 soname_spec='$libname$release$shared_ext$major'
13498 if test 32 = "$HPUX_IA64_MODE"; then
13499 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13500 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13501 else
13502 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13503 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13504 fi
13505 ;;
13506 hppa*64*)
13507 shrext_cmds='.sl'
13508 hardcode_into_libs=yes
13509 dynamic_linker="$host_os dld.sl"
13510 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13513 soname_spec='$libname$release$shared_ext$major'
13514 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13516 ;;
13517 *)
13518 shrext_cmds='.sl'
13519 dynamic_linker="$host_os dld.sl"
13520 shlibpath_var=SHLIB_PATH
13521 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13523 soname_spec='$libname$release$shared_ext$major'
13524 ;;
13525 esac
13526 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13527 postinstall_cmds='chmod 555 $lib'
13528 # or fails outright, so override atomically:
13529 install_override_mode=555
13530 ;;
13531
13532 interix[3-9]*)
13533 version_type=linux # correct to gnu/linux during the next big refactor
13534 need_lib_prefix=no
13535 need_version=no
13536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13537 soname_spec='$libname$release$shared_ext$major'
13538 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13539 shlibpath_var=LD_LIBRARY_PATH
13540 shlibpath_overrides_runpath=no
13541 hardcode_into_libs=yes
13542 ;;
13543
13544 irix5* | irix6* | nonstopux*)
13545 case $host_os in
13546 nonstopux*) version_type=nonstopux ;;
13547 *)
13548 if test yes = "$lt_cv_prog_gnu_ld"; then
13549 version_type=linux # correct to gnu/linux during the next big refactor
13550 else
13551 version_type=irix
13552 fi ;;
13553 esac
13554 need_lib_prefix=no
13555 need_version=no
13556 soname_spec='$libname$release$shared_ext$major'
13557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13558 case $host_os in
13559 irix5* | nonstopux*)
13560 libsuff= shlibsuff=
13561 ;;
13562 *)
13563 case $LD in # libtool.m4 will add one of these switches to LD
13564 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13565 libsuff= shlibsuff= libmagic=32-bit;;
13566 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13567 libsuff=32 shlibsuff=N32 libmagic=N32;;
13568 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13569 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13570 *) libsuff= shlibsuff= libmagic=never-match;;
13571 esac
13572 ;;
13573 esac
13574 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13575 shlibpath_overrides_runpath=no
13576 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13577 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13578 hardcode_into_libs=yes
13579 ;;
13580
13581 # No shared lib support for Linux oldld, aout, or coff.
13582 linux*oldld* | linux*aout* | linux*coff*)
13583 dynamic_linker=no
13584 ;;
13585
13586 linux*android*)
13587 version_type=none # Android doesn't support versioned libraries.
13588 need_lib_prefix=no
13589 need_version=no
13590 library_names_spec='$libname$release$shared_ext'
13591 soname_spec='$libname$release$shared_ext'
13592 finish_cmds=
13593 shlibpath_var=LD_LIBRARY_PATH
13594 shlibpath_overrides_runpath=yes
13595
13596 # This implies no fast_install, which is unacceptable.
13597 # Some rework will be needed to allow for fast_install
13598 # before this can be enabled.
13599 hardcode_into_libs=yes
13600
13601 dynamic_linker='Android linker'
13602 # Don't embed -rpath directories since the linker doesn't support them.
13603 hardcode_libdir_flag_spec='-L$libdir'
13604 ;;
13605
13606 # This must be glibc/ELF.
13607 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13608 version_type=linux # correct to gnu/linux during the next big refactor
13609 need_lib_prefix=no
13610 need_version=no
13611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13612 soname_spec='$libname$release$shared_ext$major'
13613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13614 shlibpath_var=LD_LIBRARY_PATH
13615 shlibpath_overrides_runpath=no
13616
13617 # Some binutils ld are patched to set DT_RUNPATH
13618 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13619 $as_echo_n "(cached) " >&6
13620 else
13621 lt_cv_shlibpath_overrides_runpath=no
13622 save_LDFLAGS=$LDFLAGS
13623 save_libdir=$libdir
13624 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13625 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13628
13629 int
13630 main ()
13631 {
13632
13633 ;
13634 return 0;
13635 }
13636 _ACEOF
13637 if ac_fn_c_try_link "$LINENO"; then :
13638 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13639 lt_cv_shlibpath_overrides_runpath=yes
13640 fi
13641 fi
13642 rm -f core conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
13644 LDFLAGS=$save_LDFLAGS
13645 libdir=$save_libdir
13646
13647 fi
13648
13649 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13650
13651 # This implies no fast_install, which is unacceptable.
13652 # Some rework will be needed to allow for fast_install
13653 # before this can be enabled.
13654 hardcode_into_libs=yes
13655
13656 # Ideally, we could use ldconfig to report *all* directores which are
13657 # searched for libraries, however this is still not possible. Aside from not
13658 # being certain /sbin/ldconfig is available, command
13659 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13660 # even though it is searched at run-time. Try to do the best guess by
13661 # appending ld.so.conf contents (and includes) to the search path.
13662 if test -f /etc/ld.so.conf; then
13663 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' ' '`
13664 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13665 fi
13666
13667 # We used to test for /lib/ld.so.1 and disable shared libraries on
13668 # powerpc, because MkLinux only supported shared libraries with the
13669 # GNU dynamic linker. Since this was broken with cross compilers,
13670 # most powerpc-linux boxes support dynamic linking these days and
13671 # people can always --disable-shared, the test was removed, and we
13672 # assume the GNU/Linux dynamic linker is in use.
13673 dynamic_linker='GNU/Linux ld.so'
13674 ;;
13675
13676 netbsdelf*-gnu)
13677 version_type=linux
13678 need_lib_prefix=no
13679 need_version=no
13680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13681 soname_spec='${libname}${release}${shared_ext}$major'
13682 shlibpath_var=LD_LIBRARY_PATH
13683 shlibpath_overrides_runpath=no
13684 hardcode_into_libs=yes
13685 dynamic_linker='NetBSD ld.elf_so'
13686 ;;
13687
13688 netbsd*)
13689 version_type=sunos
13690 need_lib_prefix=no
13691 need_version=no
13692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13693 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13695 dynamic_linker='NetBSD (a.out) ld.so'
13696 else
13697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13698 soname_spec='$libname$release$shared_ext$major'
13699 dynamic_linker='NetBSD ld.elf_so'
13700 fi
13701 shlibpath_var=LD_LIBRARY_PATH
13702 shlibpath_overrides_runpath=yes
13703 hardcode_into_libs=yes
13704 ;;
13705
13706 newsos6)
13707 version_type=linux # correct to gnu/linux during the next big refactor
13708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13709 shlibpath_var=LD_LIBRARY_PATH
13710 shlibpath_overrides_runpath=yes
13711 ;;
13712
13713 *nto* | *qnx*)
13714 version_type=qnx
13715 need_lib_prefix=no
13716 need_version=no
13717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13718 soname_spec='$libname$release$shared_ext$major'
13719 shlibpath_var=LD_LIBRARY_PATH
13720 shlibpath_overrides_runpath=no
13721 hardcode_into_libs=yes
13722 dynamic_linker='ldqnx.so'
13723 ;;
13724
13725 openbsd* | bitrig*)
13726 version_type=sunos
13727 sys_lib_dlsearch_path_spec=/usr/lib
13728 need_lib_prefix=no
13729 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13730 need_version=no
13731 else
13732 need_version=yes
13733 fi
13734 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13736 shlibpath_var=LD_LIBRARY_PATH
13737 shlibpath_overrides_runpath=yes
13738 ;;
13739
13740 os2*)
13741 libname_spec='$name'
13742 version_type=windows
13743 shrext_cmds=.dll
13744 need_version=no
13745 need_lib_prefix=no
13746 # OS/2 can only load a DLL with a base name of 8 characters or less.
13747 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13748 v=$($ECHO $release$versuffix | tr -d .-);
13749 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13750 $ECHO $n$v`$shared_ext'
13751 library_names_spec='${libname}_dll.$libext'
13752 dynamic_linker='OS/2 ld.exe'
13753 shlibpath_var=BEGINLIBPATH
13754 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13756 postinstall_cmds='base_file=`basename \$file`~
13757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13758 dldir=$destdir/`dirname \$dlpath`~
13759 test -d \$dldir || mkdir -p \$dldir~
13760 $install_prog $dir/$dlname \$dldir/$dlname~
13761 chmod a+x \$dldir/$dlname~
13762 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13763 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13764 fi'
13765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13766 dlpath=$dir/\$dldll~
13767 $RM \$dlpath'
13768 ;;
13769
13770 osf3* | osf4* | osf5*)
13771 version_type=osf
13772 need_lib_prefix=no
13773 need_version=no
13774 soname_spec='$libname$release$shared_ext$major'
13775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13776 shlibpath_var=LD_LIBRARY_PATH
13777 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13779 ;;
13780
13781 rdos*)
13782 dynamic_linker=no
13783 ;;
13784
13785 solaris*)
13786 version_type=linux # correct to gnu/linux during the next big refactor
13787 need_lib_prefix=no
13788 need_version=no
13789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13790 soname_spec='$libname$release$shared_ext$major'
13791 shlibpath_var=LD_LIBRARY_PATH
13792 shlibpath_overrides_runpath=yes
13793 hardcode_into_libs=yes
13794 # ldd complains unless libraries are executable
13795 postinstall_cmds='chmod +x $lib'
13796 ;;
13797
13798 sunos4*)
13799 version_type=sunos
13800 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13801 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13802 shlibpath_var=LD_LIBRARY_PATH
13803 shlibpath_overrides_runpath=yes
13804 if test yes = "$with_gnu_ld"; then
13805 need_lib_prefix=no
13806 fi
13807 need_version=yes
13808 ;;
13809
13810 sysv4 | sysv4.3*)
13811 version_type=linux # correct to gnu/linux during the next big refactor
13812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13813 soname_spec='$libname$release$shared_ext$major'
13814 shlibpath_var=LD_LIBRARY_PATH
13815 case $host_vendor in
13816 sni)
13817 shlibpath_overrides_runpath=no
13818 need_lib_prefix=no
13819 runpath_var=LD_RUN_PATH
13820 ;;
13821 siemens)
13822 need_lib_prefix=no
13823 ;;
13824 motorola)
13825 need_lib_prefix=no
13826 need_version=no
13827 shlibpath_overrides_runpath=no
13828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13829 ;;
13830 esac
13831 ;;
13832
13833 sysv4*MP*)
13834 if test -d /usr/nec; then
13835 version_type=linux # correct to gnu/linux during the next big refactor
13836 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13837 soname_spec='$libname$shared_ext.$major'
13838 shlibpath_var=LD_LIBRARY_PATH
13839 fi
13840 ;;
13841
13842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13843 version_type=sco
13844 need_lib_prefix=no
13845 need_version=no
13846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13847 soname_spec='$libname$release$shared_ext$major'
13848 shlibpath_var=LD_LIBRARY_PATH
13849 shlibpath_overrides_runpath=yes
13850 hardcode_into_libs=yes
13851 if test yes = "$with_gnu_ld"; then
13852 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13853 else
13854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13855 case $host_os in
13856 sco3.2v5*)
13857 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13858 ;;
13859 esac
13860 fi
13861 sys_lib_dlsearch_path_spec='/usr/lib'
13862 ;;
13863
13864 tpf*)
13865 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13866 version_type=linux # correct to gnu/linux during the next big refactor
13867 need_lib_prefix=no
13868 need_version=no
13869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13870 shlibpath_var=LD_LIBRARY_PATH
13871 shlibpath_overrides_runpath=no
13872 hardcode_into_libs=yes
13873 ;;
13874
13875 uts4*)
13876 version_type=linux # correct to gnu/linux during the next big refactor
13877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13878 soname_spec='$libname$release$shared_ext$major'
13879 shlibpath_var=LD_LIBRARY_PATH
13880 ;;
13881
13882 *)
13883 dynamic_linker=no
13884 ;;
13885 esac
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13887 $as_echo "$dynamic_linker" >&6; }
13888 test no = "$dynamic_linker" && can_build_shared=no
13889
13890 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13891 if test yes = "$GCC"; then
13892 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13893 fi
13894
13895 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13896 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13897 fi
13898
13899 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13900 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13901 fi
13902
13903 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13904 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13905
13906 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13907 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13908
13909 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13910 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14009 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14010 hardcode_action=
14011 if test -n "$hardcode_libdir_flag_spec" ||
14012 test -n "$runpath_var" ||
14013 test yes = "$hardcode_automatic"; then
14014
14015 # We can hardcode non-existent directories.
14016 if test no != "$hardcode_direct" &&
14017 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14018 # have to relink, otherwise we might link with an installed library
14019 # when we should be linking with a yet-to-be-installed one
14020 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14021 test no != "$hardcode_minus_L"; then
14022 # Linking always hardcodes the temporary library directory.
14023 hardcode_action=relink
14024 else
14025 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14026 hardcode_action=immediate
14027 fi
14028 else
14029 # We cannot hardcode anything, or else we can only hardcode existing
14030 # directories.
14031 hardcode_action=unsupported
14032 fi
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14034 $as_echo "$hardcode_action" >&6; }
14035
14036 if test relink = "$hardcode_action" ||
14037 test yes = "$inherit_rpath"; then
14038 # Fast installation is not supported
14039 enable_fast_install=no
14040 elif test yes = "$shlibpath_overrides_runpath" ||
14041 test no = "$enable_shared"; then
14042 # Fast installation is not necessary
14043 enable_fast_install=needless
14044 fi
14045
14046
14047
14048
14049
14050
14051 if test yes != "$enable_dlopen"; then
14052 enable_dlopen=unknown
14053 enable_dlopen_self=unknown
14054 enable_dlopen_self_static=unknown
14055 else
14056 lt_cv_dlopen=no
14057 lt_cv_dlopen_libs=
14058
14059 case $host_os in
14060 beos*)
14061 lt_cv_dlopen=load_add_on
14062 lt_cv_dlopen_libs=
14063 lt_cv_dlopen_self=yes
14064 ;;
14065
14066 mingw* | pw32* | cegcc*)
14067 lt_cv_dlopen=LoadLibrary
14068 lt_cv_dlopen_libs=
14069 ;;
14070
14071 cygwin*)
14072 lt_cv_dlopen=dlopen
14073 lt_cv_dlopen_libs=
14074 ;;
14075
14076 darwin*)
14077 # if libdl is installed we need to link against it
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14079 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14080 if ${ac_cv_lib_dl_dlopen+:} false; then :
14081 $as_echo_n "(cached) " >&6
14082 else
14083 ac_check_lib_save_LIBS=$LIBS
14084 LIBS="-ldl $LIBS"
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14087
14088 /* Override any GCC internal prototype to avoid an error.
14089 Use char because int might match the return type of a GCC
14090 builtin and then its argument prototype would still apply. */
14091 #ifdef __cplusplus
14092 extern "C"
14093 #endif
14094 char dlopen ();
14095 int
14096 main ()
14097 {
14098 return dlopen ();
14099 ;
14100 return 0;
14101 }
14102 _ACEOF
14103 if ac_fn_c_try_link "$LINENO"; then :
14104 ac_cv_lib_dl_dlopen=yes
14105 else
14106 ac_cv_lib_dl_dlopen=no
14107 fi
14108 rm -f core conftest.err conftest.$ac_objext \
14109 conftest$ac_exeext conftest.$ac_ext
14110 LIBS=$ac_check_lib_save_LIBS
14111 fi
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14113 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14114 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14115 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14116 else
14117
14118 lt_cv_dlopen=dyld
14119 lt_cv_dlopen_libs=
14120 lt_cv_dlopen_self=yes
14121
14122 fi
14123
14124 ;;
14125
14126 tpf*)
14127 # Don't try to run any link tests for TPF. We know it's impossible
14128 # because TPF is a cross-compiler, and we know how we open DSOs.
14129 lt_cv_dlopen=dlopen
14130 lt_cv_dlopen_libs=
14131 lt_cv_dlopen_self=no
14132 ;;
14133
14134 *)
14135 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14136 if test "x$ac_cv_func_shl_load" = xyes; then :
14137 lt_cv_dlopen=shl_load
14138 else
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14140 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14141 if ${ac_cv_lib_dld_shl_load+:} false; then :
14142 $as_echo_n "(cached) " >&6
14143 else
14144 ac_check_lib_save_LIBS=$LIBS
14145 LIBS="-ldld $LIBS"
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148
14149 /* Override any GCC internal prototype to avoid an error.
14150 Use char because int might match the return type of a GCC
14151 builtin and then its argument prototype would still apply. */
14152 #ifdef __cplusplus
14153 extern "C"
14154 #endif
14155 char shl_load ();
14156 int
14157 main ()
14158 {
14159 return shl_load ();
14160 ;
14161 return 0;
14162 }
14163 _ACEOF
14164 if ac_fn_c_try_link "$LINENO"; then :
14165 ac_cv_lib_dld_shl_load=yes
14166 else
14167 ac_cv_lib_dld_shl_load=no
14168 fi
14169 rm -f core conftest.err conftest.$ac_objext \
14170 conftest$ac_exeext conftest.$ac_ext
14171 LIBS=$ac_check_lib_save_LIBS
14172 fi
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14174 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14175 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14176 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14177 else
14178 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14179 if test "x$ac_cv_func_dlopen" = xyes; then :
14180 lt_cv_dlopen=dlopen
14181 else
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14183 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14184 if ${ac_cv_lib_dl_dlopen+:} false; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 ac_check_lib_save_LIBS=$LIBS
14188 LIBS="-ldl $LIBS"
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14191
14192 /* Override any GCC internal prototype to avoid an error.
14193 Use char because int might match the return type of a GCC
14194 builtin and then its argument prototype would still apply. */
14195 #ifdef __cplusplus
14196 extern "C"
14197 #endif
14198 char dlopen ();
14199 int
14200 main ()
14201 {
14202 return dlopen ();
14203 ;
14204 return 0;
14205 }
14206 _ACEOF
14207 if ac_fn_c_try_link "$LINENO"; then :
14208 ac_cv_lib_dl_dlopen=yes
14209 else
14210 ac_cv_lib_dl_dlopen=no
14211 fi
14212 rm -f core conftest.err conftest.$ac_objext \
14213 conftest$ac_exeext conftest.$ac_ext
14214 LIBS=$ac_check_lib_save_LIBS
14215 fi
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14217 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14218 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14219 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14220 else
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14222 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14223 if ${ac_cv_lib_svld_dlopen+:} false; then :
14224 $as_echo_n "(cached) " >&6
14225 else
14226 ac_check_lib_save_LIBS=$LIBS
14227 LIBS="-lsvld $LIBS"
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h. */
14230
14231 /* Override any GCC internal prototype to avoid an error.
14232 Use char because int might match the return type of a GCC
14233 builtin and then its argument prototype would still apply. */
14234 #ifdef __cplusplus
14235 extern "C"
14236 #endif
14237 char dlopen ();
14238 int
14239 main ()
14240 {
14241 return dlopen ();
14242 ;
14243 return 0;
14244 }
14245 _ACEOF
14246 if ac_fn_c_try_link "$LINENO"; then :
14247 ac_cv_lib_svld_dlopen=yes
14248 else
14249 ac_cv_lib_svld_dlopen=no
14250 fi
14251 rm -f core conftest.err conftest.$ac_objext \
14252 conftest$ac_exeext conftest.$ac_ext
14253 LIBS=$ac_check_lib_save_LIBS
14254 fi
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14256 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14257 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14258 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14259 else
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14261 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14262 if ${ac_cv_lib_dld_dld_link+:} false; then :
14263 $as_echo_n "(cached) " >&6
14264 else
14265 ac_check_lib_save_LIBS=$LIBS
14266 LIBS="-ldld $LIBS"
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14269
14270 /* Override any GCC internal prototype to avoid an error.
14271 Use char because int might match the return type of a GCC
14272 builtin and then its argument prototype would still apply. */
14273 #ifdef __cplusplus
14274 extern "C"
14275 #endif
14276 char dld_link ();
14277 int
14278 main ()
14279 {
14280 return dld_link ();
14281 ;
14282 return 0;
14283 }
14284 _ACEOF
14285 if ac_fn_c_try_link "$LINENO"; then :
14286 ac_cv_lib_dld_dld_link=yes
14287 else
14288 ac_cv_lib_dld_dld_link=no
14289 fi
14290 rm -f core conftest.err conftest.$ac_objext \
14291 conftest$ac_exeext conftest.$ac_ext
14292 LIBS=$ac_check_lib_save_LIBS
14293 fi
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14295 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14296 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14297 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14298 fi
14299
14300
14301 fi
14302
14303
14304 fi
14305
14306
14307 fi
14308
14309
14310 fi
14311
14312
14313 fi
14314
14315 ;;
14316 esac
14317
14318 if test no = "$lt_cv_dlopen"; then
14319 enable_dlopen=no
14320 else
14321 enable_dlopen=yes
14322 fi
14323
14324 case $lt_cv_dlopen in
14325 dlopen)
14326 save_CPPFLAGS=$CPPFLAGS
14327 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14328
14329 save_LDFLAGS=$LDFLAGS
14330 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14331
14332 save_LIBS=$LIBS
14333 LIBS="$lt_cv_dlopen_libs $LIBS"
14334
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14336 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14337 if ${lt_cv_dlopen_self+:} false; then :
14338 $as_echo_n "(cached) " >&6
14339 else
14340 if test yes = "$cross_compiling"; then :
14341 lt_cv_dlopen_self=cross
14342 else
14343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14344 lt_status=$lt_dlunknown
14345 cat > conftest.$ac_ext <<_LT_EOF
14346 #line $LINENO "configure"
14347 #include "confdefs.h"
14348
14349 #if HAVE_DLFCN_H
14350 #include <dlfcn.h>
14351 #endif
14352
14353 #include <stdio.h>
14354
14355 #ifdef RTLD_GLOBAL
14356 # define LT_DLGLOBAL RTLD_GLOBAL
14357 #else
14358 # ifdef DL_GLOBAL
14359 # define LT_DLGLOBAL DL_GLOBAL
14360 # else
14361 # define LT_DLGLOBAL 0
14362 # endif
14363 #endif
14364
14365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14366 find out it does not work in some platform. */
14367 #ifndef LT_DLLAZY_OR_NOW
14368 # ifdef RTLD_LAZY
14369 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14370 # else
14371 # ifdef DL_LAZY
14372 # define LT_DLLAZY_OR_NOW DL_LAZY
14373 # else
14374 # ifdef RTLD_NOW
14375 # define LT_DLLAZY_OR_NOW RTLD_NOW
14376 # else
14377 # ifdef DL_NOW
14378 # define LT_DLLAZY_OR_NOW DL_NOW
14379 # else
14380 # define LT_DLLAZY_OR_NOW 0
14381 # endif
14382 # endif
14383 # endif
14384 # endif
14385 #endif
14386
14387 /* When -fvisibility=hidden is used, assume the code has been annotated
14388 correspondingly for the symbols needed. */
14389 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14390 int fnord () __attribute__((visibility("default")));
14391 #endif
14392
14393 int fnord () { return 42; }
14394 int main ()
14395 {
14396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14397 int status = $lt_dlunknown;
14398
14399 if (self)
14400 {
14401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14402 else
14403 {
14404 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14405 else puts (dlerror ());
14406 }
14407 /* dlclose (self); */
14408 }
14409 else
14410 puts (dlerror ());
14411
14412 return status;
14413 }
14414 _LT_EOF
14415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14416 (eval $ac_link) 2>&5
14417 ac_status=$?
14418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14419 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14420 (./conftest; exit; ) >&5 2>/dev/null
14421 lt_status=$?
14422 case x$lt_status in
14423 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14424 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14425 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14426 esac
14427 else :
14428 # compilation failed
14429 lt_cv_dlopen_self=no
14430 fi
14431 fi
14432 rm -fr conftest*
14433
14434
14435 fi
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14437 $as_echo "$lt_cv_dlopen_self" >&6; }
14438
14439 if test yes = "$lt_cv_dlopen_self"; then
14440 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14442 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14443 if ${lt_cv_dlopen_self_static+:} false; then :
14444 $as_echo_n "(cached) " >&6
14445 else
14446 if test yes = "$cross_compiling"; then :
14447 lt_cv_dlopen_self_static=cross
14448 else
14449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14450 lt_status=$lt_dlunknown
14451 cat > conftest.$ac_ext <<_LT_EOF
14452 #line $LINENO "configure"
14453 #include "confdefs.h"
14454
14455 #if HAVE_DLFCN_H
14456 #include <dlfcn.h>
14457 #endif
14458
14459 #include <stdio.h>
14460
14461 #ifdef RTLD_GLOBAL
14462 # define LT_DLGLOBAL RTLD_GLOBAL
14463 #else
14464 # ifdef DL_GLOBAL
14465 # define LT_DLGLOBAL DL_GLOBAL
14466 # else
14467 # define LT_DLGLOBAL 0
14468 # endif
14469 #endif
14470
14471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14472 find out it does not work in some platform. */
14473 #ifndef LT_DLLAZY_OR_NOW
14474 # ifdef RTLD_LAZY
14475 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14476 # else
14477 # ifdef DL_LAZY
14478 # define LT_DLLAZY_OR_NOW DL_LAZY
14479 # else
14480 # ifdef RTLD_NOW
14481 # define LT_DLLAZY_OR_NOW RTLD_NOW
14482 # else
14483 # ifdef DL_NOW
14484 # define LT_DLLAZY_OR_NOW DL_NOW
14485 # else
14486 # define LT_DLLAZY_OR_NOW 0
14487 # endif
14488 # endif
14489 # endif
14490 # endif
14491 #endif
14492
14493 /* When -fvisibility=hidden is used, assume the code has been annotated
14494 correspondingly for the symbols needed. */
14495 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14496 int fnord () __attribute__((visibility("default")));
14497 #endif
14498
14499 int fnord () { return 42; }
14500 int main ()
14501 {
14502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14503 int status = $lt_dlunknown;
14504
14505 if (self)
14506 {
14507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14508 else
14509 {
14510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14511 else puts (dlerror ());
14512 }
14513 /* dlclose (self); */
14514 }
14515 else
14516 puts (dlerror ());
14517
14518 return status;
14519 }
14520 _LT_EOF
14521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14522 (eval $ac_link) 2>&5
14523 ac_status=$?
14524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14525 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14526 (./conftest; exit; ) >&5 2>/dev/null
14527 lt_status=$?
14528 case x$lt_status in
14529 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14530 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14531 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14532 esac
14533 else :
14534 # compilation failed
14535 lt_cv_dlopen_self_static=no
14536 fi
14537 fi
14538 rm -fr conftest*
14539
14540
14541 fi
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14543 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14544 fi
14545
14546 CPPFLAGS=$save_CPPFLAGS
14547 LDFLAGS=$save_LDFLAGS
14548 LIBS=$save_LIBS
14549 ;;
14550 esac
14551
14552 case $lt_cv_dlopen_self in
14553 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14554 *) enable_dlopen_self=unknown ;;
14555 esac
14556
14557 case $lt_cv_dlopen_self_static in
14558 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14559 *) enable_dlopen_self_static=unknown ;;
14560 esac
14561 fi
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579 striplib=
14580 old_striplib=
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14582 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14583 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14584 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14585 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14587 $as_echo "yes" >&6; }
14588 else
14589 # FIXME - insert some real tests, host_os isn't really good enough
14590 case $host_os in
14591 darwin*)
14592 if test -n "$STRIP"; then
14593 striplib="$STRIP -x"
14594 old_striplib="$STRIP -S"
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14596 $as_echo "yes" >&6; }
14597 else
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14599 $as_echo "no" >&6; }
14600 fi
14601 ;;
14602 *)
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14604 $as_echo "no" >&6; }
14605 ;;
14606 esac
14607 fi
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620 # Report what library types will actually be built
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14622 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14624 $as_echo "$can_build_shared" >&6; }
14625
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14627 $as_echo_n "checking whether to build shared libraries... " >&6; }
14628 test no = "$can_build_shared" && enable_shared=no
14629
14630 # On AIX, shared libraries and static libraries use the same namespace, and
14631 # are all built from PIC.
14632 case $host_os in
14633 aix3*)
14634 test yes = "$enable_shared" && enable_static=no
14635 if test -n "$RANLIB"; then
14636 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14637 postinstall_cmds='$RANLIB $lib'
14638 fi
14639 ;;
14640
14641 aix[4-9]*)
14642 if test ia64 != "$host_cpu"; then
14643 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14644 yes,aix,yes) ;; # shared object as lib.so file only
14645 yes,svr4,*) ;; # shared object as lib.so archive member only
14646 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14647 esac
14648 fi
14649 ;;
14650 esac
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14652 $as_echo "$enable_shared" >&6; }
14653
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14655 $as_echo_n "checking whether to build static libraries... " >&6; }
14656 # Make sure either enable_shared or enable_static is yes.
14657 test yes = "$enable_shared" || enable_static=yes
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14659 $as_echo "$enable_static" >&6; }
14660
14661
14662
14663
14664 fi
14665 ac_ext=c
14666 ac_cpp='$CPP $CPPFLAGS'
14667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14670
14671 CC=$lt_save_CC
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687 ac_config_commands="$ac_config_commands libtool"
14688
14689
14690
14691
14692 # Only expand once:
14693
14694
14695
14696 # Check for the -Bsymbolic-functions linker flag
14697 # Check whether --enable-Bsymbolic was given.
14698 if test "${enable_Bsymbolic+set}" = set; then :
14699 enableval=$enable_Bsymbolic;
14700 else
14701 enable_Bsymbolic=check
14702 fi
14703
14704
14705 if test "x$enable_Bsymbolic" = "xcheck"; then :
14706
14707 saved_LDFLAGS="${LDFLAGS}"
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
14709 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
14710 LDFLAGS=-Wl,-Bsymbolic-functions
14711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712 /* end confdefs.h. */
14713
14714 int
14715 main ()
14716 {
14717 int main (void) { return 0; }
14718 ;
14719 return 0;
14720 }
14721 _ACEOF
14722 if ac_fn_c_try_link "$LINENO"; then :
14723
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14725 $as_echo "yes" >&6; }
14726 enable_Bsymbolic=yes
14727
14728 else
14729
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14731 $as_echo "no" >&6; }
14732 enable_Bsymbolic=no
14733
14734 fi
14735 rm -f core conftest.err conftest.$ac_objext \
14736 conftest$ac_exeext conftest.$ac_ext
14737 LDFLAGS="${saved_LDFLAGS}"
14738
14739 fi
14740
14741 if test "x$enable_Bsymbolic" = "xyes"; then :
14742 JSON_BSYMBOLIC_LDFLAGS=-Wl,-Bsymbolic-functions
14743 fi
14744
14745
14746 ac_config_files="$ac_config_files Makefile libfastjson.pc libfastjson-uninstalled.pc tests/Makefile"
14747
14748
14749 cat >confcache <<\_ACEOF
14750 # This file is a shell script that caches the results of configure
14751 # tests run on this system so they can be shared between configure
14752 # scripts and configure runs, see configure's option --config-cache.
14753 # It is not useful on other systems. If it contains results you don't
14754 # want to keep, you may remove or edit it.
14755 #
14756 # config.status only pays attention to the cache file if you give it
14757 # the --recheck option to rerun configure.
14758 #
14759 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14760 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14761 # following values.
14762
14763 _ACEOF
14764
14765 # The following way of writing the cache mishandles newlines in values,
14766 # but we know of no workaround that is simple, portable, and efficient.
14767 # So, we kill variables containing newlines.
14768 # Ultrix sh set writes to stderr and can't be redirected directly,
14769 # and sets the high bit in the cache file unless we assign to the vars.
14770 (
14771 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14772 eval ac_val=\$$ac_var
14773 case $ac_val in #(
14774 *${as_nl}*)
14775 case $ac_var in #(
14776 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14777 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14778 esac
14779 case $ac_var in #(
14780 _ | IFS | as_nl) ;; #(
14781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14782 *) { eval $ac_var=; unset $ac_var;} ;;
14783 esac ;;
14784 esac
14785 done
14786
14787 (set) 2>&1 |
14788 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14789 *${as_nl}ac_space=\ *)
14790 # `set' does not quote correctly, so add quotes: double-quote
14791 # substitution turns \\\\ into \\, and sed turns \\ into \.
14792 sed -n \
14793 "s/'/'\\\\''/g;
14794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14795 ;; #(
14796 *)
14797 # `set' quotes correctly as required by POSIX, so do not add quotes.
14798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14799 ;;
14800 esac |
14801 sort
14802 ) |
14803 sed '
14804 /^ac_cv_env_/b end
14805 t clear
14806 :clear
14807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14808 t end
14809 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14810 :end' >>confcache
14811 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14812 if test -w "$cache_file"; then
14813 if test "x$cache_file" != "x/dev/null"; then
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14815 $as_echo "$as_me: updating cache $cache_file" >&6;}
14816 if test ! -f "$cache_file" || test -h "$cache_file"; then
14817 cat confcache >"$cache_file"
14818 else
14819 case $cache_file in #(
14820 */* | ?:*)
14821 mv -f confcache "$cache_file"$$ &&
14822 mv -f "$cache_file"$$ "$cache_file" ;; #(
14823 *)
14824 mv -f confcache "$cache_file" ;;
14825 esac
14826 fi
14827 fi
14828 else
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14830 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14831 fi
14832 fi
14833 rm -f confcache
14834
14835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14836 # Let make expand exec_prefix.
14837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14838
14839 DEFS=-DHAVE_CONFIG_H
14840
14841 ac_libobjs=
14842 ac_ltlibobjs=
14843 U=
14844 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14845 # 1. Remove the extension, and $U if already installed.
14846 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14847 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14848 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14849 # will be set to the directory where LIBOBJS objects are built.
14850 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14851 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14852 done
14853 LIBOBJS=$ac_libobjs
14854
14855 LTLIBOBJS=$ac_ltlibobjs
14856
14857
14858 if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
14859 as_fn_error $? "conditional \"AIX\" was never defined.
14860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14861 fi
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14863 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14864 if test -n "$am_sleep_pid"; then
14865 # Hide warnings about reused PIDs.
14866 wait $am_sleep_pid 2>/dev/null
14867 fi
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14869 $as_echo "done" >&6; }
14870 if test -n "$EXEEXT"; then
14871 am__EXEEXT_TRUE=
14872 am__EXEEXT_FALSE='#'
14873 else
14874 am__EXEEXT_TRUE='#'
14875 am__EXEEXT_FALSE=
14876 fi
14877
14878 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14879 as_fn_error $? "conditional \"AMDEP\" was never defined.
14880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14881 fi
14882 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14883 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14885 fi
14886
14887 : "${CONFIG_STATUS=./config.status}"
14888 ac_write_fail=0
14889 ac_clean_files_save=$ac_clean_files
14890 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14892 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14893 as_write_fail=0
14894 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14895 #! $SHELL
14896 # Generated by $as_me.
14897 # Run this file to recreate the current configuration.
14898 # Compiler output produced by configure, useful for debugging
14899 # configure, is in config.log if it exists.
14900
14901 debug=false
14902 ac_cs_recheck=false
14903 ac_cs_silent=false
14904
14905 SHELL=\${CONFIG_SHELL-$SHELL}
14906 export SHELL
14907 _ASEOF
14908 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14909 ## -------------------- ##
14910 ## M4sh Initialization. ##
14911 ## -------------------- ##
14912
14913 # Be more Bourne compatible
14914 DUALCASE=1; export DUALCASE # for MKS sh
14915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14916 emulate sh
14917 NULLCMD=:
14918 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14919 # is contrary to our usage. Disable this feature.
14920 alias -g '${1+"$@"}'='"$@"'
14921 setopt NO_GLOB_SUBST
14922 else
14923 case `(set -o) 2>/dev/null` in #(
14924 *posix*) :
14925 set -o posix ;; #(
14926 *) :
14927 ;;
14928 esac
14929 fi
14930
14931
14932 as_nl='
14933 '
14934 export as_nl
14935 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14936 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14937 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14938 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14939 # Prefer a ksh shell builtin over an external printf program on Solaris,
14940 # but without wasting forks for bash or zsh.
14941 if test -z "$BASH_VERSION$ZSH_VERSION" \
14942 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14943 as_echo='print -r --'
14944 as_echo_n='print -rn --'
14945 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14946 as_echo='printf %s\n'
14947 as_echo_n='printf %s'
14948 else
14949 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14950 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14951 as_echo_n='/usr/ucb/echo -n'
14952 else
14953 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14954 as_echo_n_body='eval
14955 arg=$1;
14956 case $arg in #(
14957 *"$as_nl"*)
14958 expr "X$arg" : "X\\(.*\\)$as_nl";
14959 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14960 esac;
14961 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14962 '
14963 export as_echo_n_body
14964 as_echo_n='sh -c $as_echo_n_body as_echo'
14965 fi
14966 export as_echo_body
14967 as_echo='sh -c $as_echo_body as_echo'
14968 fi
14969
14970 # The user is always right.
14971 if test "${PATH_SEPARATOR+set}" != set; then
14972 PATH_SEPARATOR=:
14973 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14974 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14975 PATH_SEPARATOR=';'
14976 }
14977 fi
14978
14979
14980 # IFS
14981 # We need space, tab and new line, in precisely that order. Quoting is
14982 # there to prevent editors from complaining about space-tab.
14983 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14984 # splitting by setting IFS to empty value.)
14985 IFS=" "" $as_nl"
14986
14987 # Find who we are. Look in the path if we contain no directory separator.
14988 as_myself=
14989 case $0 in #((
14990 *[\\/]* ) as_myself=$0 ;;
14991 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14992 for as_dir in $PATH
14993 do
14994 IFS=$as_save_IFS
14995 test -z "$as_dir" && as_dir=.
14996 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14997 done
14998 IFS=$as_save_IFS
14999
15000 ;;
15001 esac
15002 # We did not find ourselves, most probably we were run as `sh COMMAND'
15003 # in which case we are not to be found in the path.
15004 if test "x$as_myself" = x; then
15005 as_myself=$0
15006 fi
15007 if test ! -f "$as_myself"; then
15008 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15009 exit 1
15010 fi
15011
15012 # Unset variables that we do not need and which cause bugs (e.g. in
15013 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15014 # suppresses any "Segmentation fault" message there. '((' could
15015 # trigger a bug in pdksh 5.2.14.
15016 for as_var in BASH_ENV ENV MAIL MAILPATH
15017 do eval test x\${$as_var+set} = xset \
15018 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15019 done
15020 PS1='$ '
15021 PS2='> '
15022 PS4='+ '
15023
15024 # NLS nuisances.
15025 LC_ALL=C
15026 export LC_ALL
15027 LANGUAGE=C
15028 export LANGUAGE
15029
15030 # CDPATH.
15031 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15032
15033
15034 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15035 # ----------------------------------------
15036 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15037 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15038 # script with STATUS, using 1 if that was 0.
15039 as_fn_error ()
15040 {
15041 as_status=$1; test $as_status -eq 0 && as_status=1
15042 if test "$4"; then
15043 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15044 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15045 fi
15046 $as_echo "$as_me: error: $2" >&2
15047 as_fn_exit $as_status
15048 } # as_fn_error
15049
15050
15051 # as_fn_set_status STATUS
15052 # -----------------------
15053 # Set $? to STATUS, without forking.
15054 as_fn_set_status ()
15055 {
15056 return $1
15057 } # as_fn_set_status
15058
15059 # as_fn_exit STATUS
15060 # -----------------
15061 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15062 as_fn_exit ()
15063 {
15064 set +e
15065 as_fn_set_status $1
15066 exit $1
15067 } # as_fn_exit
15068
15069 # as_fn_unset VAR
15070 # ---------------
15071 # Portably unset VAR.
15072 as_fn_unset ()
15073 {
15074 { eval $1=; unset $1;}
15075 }
15076 as_unset=as_fn_unset
15077 # as_fn_append VAR VALUE
15078 # ----------------------
15079 # Append the text in VALUE to the end of the definition contained in VAR. Take
15080 # advantage of any shell optimizations that allow amortized linear growth over
15081 # repeated appends, instead of the typical quadratic growth present in naive
15082 # implementations.
15083 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15084 eval 'as_fn_append ()
15085 {
15086 eval $1+=\$2
15087 }'
15088 else
15089 as_fn_append ()
15090 {
15091 eval $1=\$$1\$2
15092 }
15093 fi # as_fn_append
15094
15095 # as_fn_arith ARG...
15096 # ------------------
15097 # Perform arithmetic evaluation on the ARGs, and store the result in the
15098 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15099 # must be portable across $(()) and expr.
15100 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15101 eval 'as_fn_arith ()
15102 {
15103 as_val=$(( $* ))
15104 }'
15105 else
15106 as_fn_arith ()
15107 {
15108 as_val=`expr "$@" || test $? -eq 1`
15109 }
15110 fi # as_fn_arith
15111
15112
15113 if expr a : '\(a\)' >/dev/null 2>&1 &&
15114 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15115 as_expr=expr
15116 else
15117 as_expr=false
15118 fi
15119
15120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15121 as_basename=basename
15122 else
15123 as_basename=false
15124 fi
15125
15126 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15127 as_dirname=dirname
15128 else
15129 as_dirname=false
15130 fi
15131
15132 as_me=`$as_basename -- "$0" ||
15133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15134 X"$0" : 'X\(//\)$' \| \
15135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15136 $as_echo X/"$0" |
15137 sed '/^.*\/\([^/][^/]*\)\/*$/{
15138 s//\1/
15139 q
15140 }
15141 /^X\/\(\/\/\)$/{
15142 s//\1/
15143 q
15144 }
15145 /^X\/\(\/\).*/{
15146 s//\1/
15147 q
15148 }
15149 s/.*/./; q'`
15150
15151 # Avoid depending upon Character Ranges.
15152 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15153 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15154 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15155 as_cr_digits='0123456789'
15156 as_cr_alnum=$as_cr_Letters$as_cr_digits
15157
15158 ECHO_C= ECHO_N= ECHO_T=
15159 case `echo -n x` in #(((((
15160 -n*)
15161 case `echo 'xy\c'` in
15162 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15163 xy) ECHO_C='\c';;
15164 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15165 ECHO_T=' ';;
15166 esac;;
15167 *)
15168 ECHO_N='-n';;
15169 esac
15170
15171 rm -f conf$$ conf$$.exe conf$$.file
15172 if test -d conf$$.dir; then
15173 rm -f conf$$.dir/conf$$.file
15174 else
15175 rm -f conf$$.dir
15176 mkdir conf$$.dir 2>/dev/null
15177 fi
15178 if (echo >conf$$.file) 2>/dev/null; then
15179 if ln -s conf$$.file conf$$ 2>/dev/null; then
15180 as_ln_s='ln -s'
15181 # ... but there are two gotchas:
15182 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15183 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15184 # In both cases, we have to default to `cp -pR'.
15185 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15186 as_ln_s='cp -pR'
15187 elif ln conf$$.file conf$$ 2>/dev/null; then
15188 as_ln_s=ln
15189 else
15190 as_ln_s='cp -pR'
15191 fi
15192 else
15193 as_ln_s='cp -pR'
15194 fi
15195 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15196 rmdir conf$$.dir 2>/dev/null
15197
15198
15199 # as_fn_mkdir_p
15200 # -------------
15201 # Create "$as_dir" as a directory, including parents if necessary.
15202 as_fn_mkdir_p ()
15203 {
15204
15205 case $as_dir in #(
15206 -*) as_dir=./$as_dir;;
15207 esac
15208 test -d "$as_dir" || eval $as_mkdir_p || {
15209 as_dirs=
15210 while :; do
15211 case $as_dir in #(
15212 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15213 *) as_qdir=$as_dir;;
15214 esac
15215 as_dirs="'$as_qdir' $as_dirs"
15216 as_dir=`$as_dirname -- "$as_dir" ||
15217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15218 X"$as_dir" : 'X\(//\)[^/]' \| \
15219 X"$as_dir" : 'X\(//\)$' \| \
15220 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15221 $as_echo X"$as_dir" |
15222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15223 s//\1/
15224 q
15225 }
15226 /^X\(\/\/\)[^/].*/{
15227 s//\1/
15228 q
15229 }
15230 /^X\(\/\/\)$/{
15231 s//\1/
15232 q
15233 }
15234 /^X\(\/\).*/{
15235 s//\1/
15236 q
15237 }
15238 s/.*/./; q'`
15239 test -d "$as_dir" && break
15240 done
15241 test -z "$as_dirs" || eval "mkdir $as_dirs"
15242 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15243
15244
15245 } # as_fn_mkdir_p
15246 if mkdir -p . 2>/dev/null; then
15247 as_mkdir_p='mkdir -p "$as_dir"'
15248 else
15249 test -d ./-p && rmdir ./-p
15250 as_mkdir_p=false
15251 fi
15252
15253
15254 # as_fn_executable_p FILE
15255 # -----------------------
15256 # Test if FILE is an executable regular file.
15257 as_fn_executable_p ()
15258 {
15259 test -f "$1" && test -x "$1"
15260 } # as_fn_executable_p
15261 as_test_x='test -x'
15262 as_executable_p=as_fn_executable_p
15263
15264 # Sed expression to map a string onto a valid CPP name.
15265 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15266
15267 # Sed expression to map a string onto a valid variable name.
15268 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15269
15270
15271 exec 6>&1
15272 ## ----------------------------------- ##
15273 ## Main body of $CONFIG_STATUS script. ##
15274 ## ----------------------------------- ##
15275 _ASEOF
15276 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15277
15278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15279 # Save the log message, to keep $0 and so on meaningful, and to
15280 # report actual input values of CONFIG_FILES etc. instead of their
15281 # values after options handling.
15282 ac_log="
15283 This file was extended by libfastjson $as_me 1.2304.0, which was
15284 generated by GNU Autoconf 2.69. Invocation command line was
15285
15286 CONFIG_FILES = $CONFIG_FILES
15287 CONFIG_HEADERS = $CONFIG_HEADERS
15288 CONFIG_LINKS = $CONFIG_LINKS
15289 CONFIG_COMMANDS = $CONFIG_COMMANDS
15290 $ $0 $@
15291
15292 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15293 "
15294
15295 _ACEOF
15296
15297 case $ac_config_files in *"
15298 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15299 esac
15300
15301 case $ac_config_headers in *"
15302 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15303 esac
15304
15305
15306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15307 # Files that config.status was made for.
15308 config_files="$ac_config_files"
15309 config_headers="$ac_config_headers"
15310 config_commands="$ac_config_commands"
15311
15312 _ACEOF
15313
15314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15315 ac_cs_usage="\
15316 \`$as_me' instantiates files and other configuration actions
15317 from templates according to the current configuration. Unless the files
15318 and actions are specified as TAGs, all are instantiated by default.
15319
15320 Usage: $0 [OPTION]... [TAG]...
15321
15322 -h, --help print this help, then exit
15323 -V, --version print version number and configuration settings, then exit
15324 --config print configuration, then exit
15325 -q, --quiet, --silent
15326 do not print progress messages
15327 -d, --debug don't remove temporary files
15328 --recheck update $as_me by reconfiguring in the same conditions
15329 --file=FILE[:TEMPLATE]
15330 instantiate the configuration file FILE
15331 --header=FILE[:TEMPLATE]
15332 instantiate the configuration header FILE
15333
15334 Configuration files:
15335 $config_files
15336
15337 Configuration headers:
15338 $config_headers
15339
15340 Configuration commands:
15341 $config_commands
15342
15343 Report bugs to <[email protected]>."
15344
15345 _ACEOF
15346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15347 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15348 ac_cs_version="\\
15349 libfastjson config.status 1.2304.0
15350 configured by $0, generated by GNU Autoconf 2.69,
15351 with options \\"\$ac_cs_config\\"
15352
15353 Copyright (C) 2012 Free Software Foundation, Inc.
15354 This config.status script is free software; the Free Software Foundation
15355 gives unlimited permission to copy, distribute and modify it."
15356
15357 ac_pwd='$ac_pwd'
15358 srcdir='$srcdir'
15359 INSTALL='$INSTALL'
15360 MKDIR_P='$MKDIR_P'
15361 AWK='$AWK'
15362 test -n "\$AWK" || AWK=awk
15363 _ACEOF
15364
15365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15366 # The default lists apply if the user does not specify any file.
15367 ac_need_defaults=:
15368 while test $# != 0
15369 do
15370 case $1 in
15371 --*=?*)
15372 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15373 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15374 ac_shift=:
15375 ;;
15376 --*=)
15377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15378 ac_optarg=
15379 ac_shift=:
15380 ;;
15381 *)
15382 ac_option=$1
15383 ac_optarg=$2
15384 ac_shift=shift
15385 ;;
15386 esac
15387
15388 case $ac_option in
15389 # Handling of the options.
15390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15391 ac_cs_recheck=: ;;
15392 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15393 $as_echo "$ac_cs_version"; exit ;;
15394 --config | --confi | --conf | --con | --co | --c )
15395 $as_echo "$ac_cs_config"; exit ;;
15396 --debug | --debu | --deb | --de | --d | -d )
15397 debug=: ;;
15398 --file | --fil | --fi | --f )
15399 $ac_shift
15400 case $ac_optarg in
15401 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15402 '') as_fn_error $? "missing file argument" ;;
15403 esac
15404 as_fn_append CONFIG_FILES " '$ac_optarg'"
15405 ac_need_defaults=false;;
15406 --header | --heade | --head | --hea )
15407 $ac_shift
15408 case $ac_optarg in
15409 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15410 esac
15411 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15412 ac_need_defaults=false;;
15413 --he | --h)
15414 # Conflict between --help and --header
15415 as_fn_error $? "ambiguous option: \`$1'
15416 Try \`$0 --help' for more information.";;
15417 --help | --hel | -h )
15418 $as_echo "$ac_cs_usage"; exit ;;
15419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15420 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15421 ac_cs_silent=: ;;
15422
15423 # This is an error.
15424 -*) as_fn_error $? "unrecognized option: \`$1'
15425 Try \`$0 --help' for more information." ;;
15426
15427 *) as_fn_append ac_config_targets " $1"
15428 ac_need_defaults=false ;;
15429
15430 esac
15431 shift
15432 done
15433
15434 ac_configure_extra_args=
15435
15436 if $ac_cs_silent; then
15437 exec 6>/dev/null
15438 ac_configure_extra_args="$ac_configure_extra_args --silent"
15439 fi
15440
15441 _ACEOF
15442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15443 if \$ac_cs_recheck; then
15444 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15445 shift
15446 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15447 CONFIG_SHELL='$SHELL'
15448 export CONFIG_SHELL
15449 exec "\$@"
15450 fi
15451
15452 _ACEOF
15453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15454 exec 5>>config.log
15455 {
15456 echo
15457 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15458 ## Running $as_me. ##
15459 _ASBOX
15460 $as_echo "$ac_log"
15461 } >&5
15462
15463 _ACEOF
15464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15465 #
15466 # INIT-COMMANDS
15467 #
15468 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15469
15470
15471 # The HP-UX ksh and POSIX shell print the target directory to stdout
15472 # if CDPATH is set.
15473 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15474
15475 sed_quote_subst='$sed_quote_subst'
15476 double_quote_subst='$double_quote_subst'
15477 delay_variable_subst='$delay_variable_subst'
15478 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15479 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15480 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15481 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15482 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15483 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15484 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15485 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15486 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15487 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15488 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15489 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15490 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15491 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15492 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15493 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15494 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15495 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15496 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15497 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15498 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15499 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15500 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15501 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15502 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15503 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15504 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15505 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15506 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15507 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15508 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15509 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15510 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15511 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15512 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15513 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15514 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15515 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15516 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15517 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15518 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15519 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15520 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15521 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15522 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15523 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15524 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15525 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15526 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15527 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15528 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15529 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15530 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15531 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15532 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15533 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15534 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15535 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15536 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"`'
15537 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15538 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15539 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15540 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15541 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15542 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15543 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15544 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15545 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15546 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15547 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15548 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15549 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15550 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15551 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15552 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15553 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15554 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15555 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15556 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15557 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15558 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15559 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15560 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15561 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15562 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15563 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15564 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15565 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15566 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15567 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15568 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15569 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15570 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15571 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15572 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15573 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15574 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15575 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15576 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15577 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15578 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15579 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15580 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15581 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15582 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15583 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15584 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15585 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15586 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15587 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15588 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15589 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15590 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15591 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15592 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15593 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15594 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15595 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15596 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15597 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15598 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15599 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15600 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15601 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15602 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15603 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15604 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15605 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15606 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15607 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15608 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15609 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15610 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15611 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15612 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15613
15614 LTCC='$LTCC'
15615 LTCFLAGS='$LTCFLAGS'
15616 compiler='$compiler_DEFAULT'
15617
15618 # A function that is used when there is no print builtin or printf.
15619 func_fallback_echo ()
15620 {
15621 eval 'cat <<_LTECHO_EOF
15622 \$1
15623 _LTECHO_EOF'
15624 }
15625
15626 # Quote evaled strings.
15627 for var in SHELL \
15628 ECHO \
15629 PATH_SEPARATOR \
15630 SED \
15631 GREP \
15632 EGREP \
15633 FGREP \
15634 LD \
15635 NM \
15636 LN_S \
15637 lt_SP2NL \
15638 lt_NL2SP \
15639 reload_flag \
15640 OBJDUMP \
15641 deplibs_check_method \
15642 file_magic_cmd \
15643 file_magic_glob \
15644 want_nocaseglob \
15645 DLLTOOL \
15646 sharedlib_from_linklib_cmd \
15647 AR \
15648 AR_FLAGS \
15649 archiver_list_spec \
15650 STRIP \
15651 RANLIB \
15652 CC \
15653 CFLAGS \
15654 compiler \
15655 lt_cv_sys_global_symbol_pipe \
15656 lt_cv_sys_global_symbol_to_cdecl \
15657 lt_cv_sys_global_symbol_to_import \
15658 lt_cv_sys_global_symbol_to_c_name_address \
15659 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15660 lt_cv_nm_interface \
15661 nm_file_list_spec \
15662 lt_cv_truncate_bin \
15663 lt_prog_compiler_no_builtin_flag \
15664 lt_prog_compiler_pic \
15665 lt_prog_compiler_wl \
15666 lt_prog_compiler_static \
15667 lt_cv_prog_compiler_c_o \
15668 need_locks \
15669 MANIFEST_TOOL \
15670 DSYMUTIL \
15671 NMEDIT \
15672 LIPO \
15673 OTOOL \
15674 OTOOL64 \
15675 shrext_cmds \
15676 export_dynamic_flag_spec \
15677 whole_archive_flag_spec \
15678 compiler_needs_object \
15679 with_gnu_ld \
15680 allow_undefined_flag \
15681 no_undefined_flag \
15682 hardcode_libdir_flag_spec \
15683 hardcode_libdir_separator \
15684 exclude_expsyms \
15685 include_expsyms \
15686 file_list_spec \
15687 variables_saved_for_relink \
15688 libname_spec \
15689 library_names_spec \
15690 soname_spec \
15691 install_override_mode \
15692 finish_eval \
15693 old_striplib \
15694 striplib; do
15695 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15696 *[\\\\\\\`\\"\\\$]*)
15697 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15698 ;;
15699 *)
15700 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15701 ;;
15702 esac
15703 done
15704
15705 # Double-quote double-evaled strings.
15706 for var in reload_cmds \
15707 old_postinstall_cmds \
15708 old_postuninstall_cmds \
15709 old_archive_cmds \
15710 extract_expsyms_cmds \
15711 old_archive_from_new_cmds \
15712 old_archive_from_expsyms_cmds \
15713 archive_cmds \
15714 archive_expsym_cmds \
15715 module_cmds \
15716 module_expsym_cmds \
15717 export_symbols_cmds \
15718 prelink_cmds \
15719 postlink_cmds \
15720 postinstall_cmds \
15721 postuninstall_cmds \
15722 finish_cmds \
15723 sys_lib_search_path_spec \
15724 configure_time_dlsearch_path \
15725 configure_time_lt_sys_library_path; do
15726 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15727 *[\\\\\\\`\\"\\\$]*)
15728 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15729 ;;
15730 *)
15731 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15732 ;;
15733 esac
15734 done
15735
15736 ac_aux_dir='$ac_aux_dir'
15737
15738 # See if we are running on zsh, and set the options that allow our
15739 # commands through without removal of \ escapes INIT.
15740 if test -n "\${ZSH_VERSION+set}"; then
15741 setopt NO_GLOB_SUBST
15742 fi
15743
15744
15745 PACKAGE='$PACKAGE'
15746 VERSION='$VERSION'
15747 RM='$RM'
15748 ofile='$ofile'
15749
15750
15751
15752
15753 _ACEOF
15754
15755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15756
15757 # Handling of arguments.
15758 for ac_config_target in $ac_config_targets
15759 do
15760 case $ac_config_target in
15761 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15762 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15763 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15764 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15765 "libfastjson.pc") CONFIG_FILES="$CONFIG_FILES libfastjson.pc" ;;
15766 "libfastjson-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libfastjson-uninstalled.pc" ;;
15767 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15768
15769 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15770 esac
15771 done
15772
15773
15774 # If the user did not use the arguments to specify the items to instantiate,
15775 # then the envvar interface is used. Set only those that are not.
15776 # We use the long form for the default assignment because of an extremely
15777 # bizarre bug on SunOS 4.1.3.
15778 if $ac_need_defaults; then
15779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15780 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15781 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15782 fi
15783
15784 # Have a temporary directory for convenience. Make it in the build tree
15785 # simply because there is no reason against having it here, and in addition,
15786 # creating and moving files from /tmp can sometimes cause problems.
15787 # Hook for its removal unless debugging.
15788 # Note that there is a small window in which the directory will not be cleaned:
15789 # after its creation but before its name has been assigned to `$tmp'.
15790 $debug ||
15791 {
15792 tmp= ac_tmp=
15793 trap 'exit_status=$?
15794 : "${ac_tmp:=$tmp}"
15795 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15796 ' 0
15797 trap 'as_fn_exit 1' 1 2 13 15
15798 }
15799 # Create a (secure) tmp directory for tmp files.
15800
15801 {
15802 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15803 test -d "$tmp"
15804 } ||
15805 {
15806 tmp=./conf$$-$RANDOM
15807 (umask 077 && mkdir "$tmp")
15808 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15809 ac_tmp=$tmp
15810
15811 # Set up the scripts for CONFIG_FILES section.
15812 # No need to generate them if there are no CONFIG_FILES.
15813 # This happens for instance with `./config.status config.h'.
15814 if test -n "$CONFIG_FILES"; then
15815
15816
15817 ac_cr=`echo X | tr X '\015'`
15818 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15819 # But we know of no other shell where ac_cr would be empty at this
15820 # point, so we can use a bashism as a fallback.
15821 if test "x$ac_cr" = x; then
15822 eval ac_cr=\$\'\\r\'
15823 fi
15824 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15825 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15826 ac_cs_awk_cr='\\r'
15827 else
15828 ac_cs_awk_cr=$ac_cr
15829 fi
15830
15831 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15832 _ACEOF
15833
15834
15835 {
15836 echo "cat >conf$$subs.awk <<_ACEOF" &&
15837 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15838 echo "_ACEOF"
15839 } >conf$$subs.sh ||
15840 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15841 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15842 ac_delim='%!_!# '
15843 for ac_last_try in false false false false false :; do
15844 . ./conf$$subs.sh ||
15845 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15846
15847 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15848 if test $ac_delim_n = $ac_delim_num; then
15849 break
15850 elif $ac_last_try; then
15851 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15852 else
15853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15854 fi
15855 done
15856 rm -f conf$$subs.sh
15857
15858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15859 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15860 _ACEOF
15861 sed -n '
15862 h
15863 s/^/S["/; s/!.*/"]=/
15864 p
15865 g
15866 s/^[^!]*!//
15867 :repl
15868 t repl
15869 s/'"$ac_delim"'$//
15870 t delim
15871 :nl
15872 h
15873 s/\(.\{148\}\)..*/\1/
15874 t more1
15875 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15876 p
15877 n
15878 b repl
15879 :more1
15880 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15881 p
15882 g
15883 s/.\{148\}//
15884 t nl
15885 :delim
15886 h
15887 s/\(.\{148\}\)..*/\1/
15888 t more2
15889 s/["\\]/\\&/g; s/^/"/; s/$/"/
15890 p
15891 b
15892 :more2
15893 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15894 p
15895 g
15896 s/.\{148\}//
15897 t delim
15898 ' <conf$$subs.awk | sed '
15899 /^[^""]/{
15900 N
15901 s/\n//
15902 }
15903 ' >>$CONFIG_STATUS || ac_write_fail=1
15904 rm -f conf$$subs.awk
15905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15906 _ACAWK
15907 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15908 for (key in S) S_is_set[key] = 1
15909 FS = ""
15910
15911 }
15912 {
15913 line = $ 0
15914 nfields = split(line, field, "@")
15915 substed = 0
15916 len = length(field[1])
15917 for (i = 2; i < nfields; i++) {
15918 key = field[i]
15919 keylen = length(key)
15920 if (S_is_set[key]) {
15921 value = S[key]
15922 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15923 len += length(value) + length(field[++i])
15924 substed = 1
15925 } else
15926 len += 1 + keylen
15927 }
15928
15929 print line
15930 }
15931
15932 _ACAWK
15933 _ACEOF
15934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15935 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15936 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15937 else
15938 cat
15939 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15940 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15941 _ACEOF
15942
15943 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15944 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15945 # trailing colons and then remove the whole line if VPATH becomes empty
15946 # (actually we leave an empty line to preserve line numbers).
15947 if test "x$srcdir" = x.; then
15948 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15949 h
15950 s///
15951 s/^/:/
15952 s/[ ]*$/:/
15953 s/:\$(srcdir):/:/g
15954 s/:\${srcdir}:/:/g
15955 s/:@srcdir@:/:/g
15956 s/^:*//
15957 s/:*$//
15958 x
15959 s/\(=[ ]*\).*/\1/
15960 G
15961 s/\n//
15962 s/^[^=]*=[ ]*$//
15963 }'
15964 fi
15965
15966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15967 fi # test -n "$CONFIG_FILES"
15968
15969 # Set up the scripts for CONFIG_HEADERS section.
15970 # No need to generate them if there are no CONFIG_HEADERS.
15971 # This happens for instance with `./config.status Makefile'.
15972 if test -n "$CONFIG_HEADERS"; then
15973 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15974 BEGIN {
15975 _ACEOF
15976
15977 # Transform confdefs.h into an awk script `defines.awk', embedded as
15978 # here-document in config.status, that substitutes the proper values into
15979 # config.h.in to produce config.h.
15980
15981 # Create a delimiter string that does not exist in confdefs.h, to ease
15982 # handling of long lines.
15983 ac_delim='%!_!# '
15984 for ac_last_try in false false :; do
15985 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15986 if test -z "$ac_tt"; then
15987 break
15988 elif $ac_last_try; then
15989 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15990 else
15991 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15992 fi
15993 done
15994
15995 # For the awk script, D is an array of macro values keyed by name,
15996 # likewise P contains macro parameters if any. Preserve backslash
15997 # newline sequences.
15998
15999 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16000 sed -n '
16001 s/.\{148\}/&'"$ac_delim"'/g
16002 t rset
16003 :rset
16004 s/^[ ]*#[ ]*define[ ][ ]*/ /
16005 t def
16006 d
16007 :def
16008 s/\\$//
16009 t bsnl
16010 s/["\\]/\\&/g
16011 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16012 D["\1"]=" \3"/p
16013 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16014 d
16015 :bsnl
16016 s/["\\]/\\&/g
16017 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16018 D["\1"]=" \3\\\\\\n"\\/p
16019 t cont
16020 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16021 t cont
16022 d
16023 :cont
16024 n
16025 s/.\{148\}/&'"$ac_delim"'/g
16026 t clear
16027 :clear
16028 s/\\$//
16029 t bsnlc
16030 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16031 d
16032 :bsnlc
16033 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16034 b cont
16035 ' <confdefs.h | sed '
16036 s/'"$ac_delim"'/"\\\
16037 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16038
16039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16040 for (key in D) D_is_set[key] = 1
16041 FS = ""
16042 }
16043 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16044 line = \$ 0
16045 split(line, arg, " ")
16046 if (arg[1] == "#") {
16047 defundef = arg[2]
16048 mac1 = arg[3]
16049 } else {
16050 defundef = substr(arg[1], 2)
16051 mac1 = arg[2]
16052 }
16053 split(mac1, mac2, "(") #)
16054 macro = mac2[1]
16055 prefix = substr(line, 1, index(line, defundef) - 1)
16056 if (D_is_set[macro]) {
16057 # Preserve the white space surrounding the "#".
16058 print prefix "define", macro P[macro] D[macro]
16059 next
16060 } else {
16061 # Replace #undef with comments. This is necessary, for example,
16062 # in the case of _POSIX_SOURCE, which is predefined and required
16063 # on some systems where configure will not decide to define it.
16064 if (defundef == "undef") {
16065 print "/*", prefix defundef, macro, "*/"
16066 next
16067 }
16068 }
16069 }
16070 { print }
16071 _ACAWK
16072 _ACEOF
16073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16074 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16075 fi # test -n "$CONFIG_HEADERS"
16076
16077
16078 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16079 shift
16080 for ac_tag
16081 do
16082 case $ac_tag in
16083 :[FHLC]) ac_mode=$ac_tag; continue;;
16084 esac
16085 case $ac_mode$ac_tag in
16086 :[FHL]*:*);;
16087 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16088 :[FH]-) ac_tag=-:-;;
16089 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16090 esac
16091 ac_save_IFS=$IFS
16092 IFS=:
16093 set x $ac_tag
16094 IFS=$ac_save_IFS
16095 shift
16096 ac_file=$1
16097 shift
16098
16099 case $ac_mode in
16100 :L) ac_source=$1;;
16101 :[FH])
16102 ac_file_inputs=
16103 for ac_f
16104 do
16105 case $ac_f in
16106 -) ac_f="$ac_tmp/stdin";;
16107 *) # Look for the file first in the build tree, then in the source tree
16108 # (if the path is not absolute). The absolute path cannot be DOS-style,
16109 # because $ac_f cannot contain `:'.
16110 test -f "$ac_f" ||
16111 case $ac_f in
16112 [\\/$]*) false;;
16113 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16114 esac ||
16115 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16116 esac
16117 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16118 as_fn_append ac_file_inputs " '$ac_f'"
16119 done
16120
16121 # Let's still pretend it is `configure' which instantiates (i.e., don't
16122 # use $as_me), people would be surprised to read:
16123 # /* config.h. Generated by config.status. */
16124 configure_input='Generated from '`
16125 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16126 `' by configure.'
16127 if test x"$ac_file" != x-; then
16128 configure_input="$ac_file. $configure_input"
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16130 $as_echo "$as_me: creating $ac_file" >&6;}
16131 fi
16132 # Neutralize special characters interpreted by sed in replacement strings.
16133 case $configure_input in #(
16134 *\&* | *\|* | *\\* )
16135 ac_sed_conf_input=`$as_echo "$configure_input" |
16136 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16137 *) ac_sed_conf_input=$configure_input;;
16138 esac
16139
16140 case $ac_tag in
16141 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16143 esac
16144 ;;
16145 esac
16146
16147 ac_dir=`$as_dirname -- "$ac_file" ||
16148 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16149 X"$ac_file" : 'X\(//\)[^/]' \| \
16150 X"$ac_file" : 'X\(//\)$' \| \
16151 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16152 $as_echo X"$ac_file" |
16153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16154 s//\1/
16155 q
16156 }
16157 /^X\(\/\/\)[^/].*/{
16158 s//\1/
16159 q
16160 }
16161 /^X\(\/\/\)$/{
16162 s//\1/
16163 q
16164 }
16165 /^X\(\/\).*/{
16166 s//\1/
16167 q
16168 }
16169 s/.*/./; q'`
16170 as_dir="$ac_dir"; as_fn_mkdir_p
16171 ac_builddir=.
16172
16173 case "$ac_dir" in
16174 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16175 *)
16176 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16177 # A ".." for each directory in $ac_dir_suffix.
16178 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16179 case $ac_top_builddir_sub in
16180 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16181 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16182 esac ;;
16183 esac
16184 ac_abs_top_builddir=$ac_pwd
16185 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16186 # for backward compatibility:
16187 ac_top_builddir=$ac_top_build_prefix
16188
16189 case $srcdir in
16190 .) # We are building in place.
16191 ac_srcdir=.
16192 ac_top_srcdir=$ac_top_builddir_sub
16193 ac_abs_top_srcdir=$ac_pwd ;;
16194 [\\/]* | ?:[\\/]* ) # Absolute name.
16195 ac_srcdir=$srcdir$ac_dir_suffix;
16196 ac_top_srcdir=$srcdir
16197 ac_abs_top_srcdir=$srcdir ;;
16198 *) # Relative name.
16199 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16200 ac_top_srcdir=$ac_top_build_prefix$srcdir
16201 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16202 esac
16203 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16204
16205
16206 case $ac_mode in
16207 :F)
16208 #
16209 # CONFIG_FILE
16210 #
16211
16212 case $INSTALL in
16213 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16214 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16215 esac
16216 ac_MKDIR_P=$MKDIR_P
16217 case $MKDIR_P in
16218 [\\/$]* | ?:[\\/]* ) ;;
16219 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16220 esac
16221 _ACEOF
16222
16223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16224 # If the template does not know about datarootdir, expand it.
16225 # FIXME: This hack should be removed a few years after 2.60.
16226 ac_datarootdir_hack=; ac_datarootdir_seen=
16227 ac_sed_dataroot='
16228 /datarootdir/ {
16229 p
16230 q
16231 }
16232 /@datadir@/p
16233 /@docdir@/p
16234 /@infodir@/p
16235 /@localedir@/p
16236 /@mandir@/p'
16237 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16238 *datarootdir*) ac_datarootdir_seen=yes;;
16239 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16241 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16242 _ACEOF
16243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16244 ac_datarootdir_hack='
16245 s&@datadir@&$datadir&g
16246 s&@docdir@&$docdir&g
16247 s&@infodir@&$infodir&g
16248 s&@localedir@&$localedir&g
16249 s&@mandir@&$mandir&g
16250 s&\\\${datarootdir}&$datarootdir&g' ;;
16251 esac
16252 _ACEOF
16253
16254 # Neutralize VPATH when `$srcdir' = `.'.
16255 # Shell code in configure.ac might set extrasub.
16256 # FIXME: do we really want to maintain this feature?
16257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16258 ac_sed_extra="$ac_vpsub
16259 $extrasub
16260 _ACEOF
16261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16262 :t
16263 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16264 s|@configure_input@|$ac_sed_conf_input|;t t
16265 s&@top_builddir@&$ac_top_builddir_sub&;t t
16266 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16267 s&@srcdir@&$ac_srcdir&;t t
16268 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16269 s&@top_srcdir@&$ac_top_srcdir&;t t
16270 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16271 s&@builddir@&$ac_builddir&;t t
16272 s&@abs_builddir@&$ac_abs_builddir&;t t
16273 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16274 s&@INSTALL@&$ac_INSTALL&;t t
16275 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16276 $ac_datarootdir_hack
16277 "
16278 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16279 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16280
16281 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16282 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16283 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16284 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16286 which seems to be undefined. Please make sure it is defined" >&5
16287 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16288 which seems to be undefined. Please make sure it is defined" >&2;}
16289
16290 rm -f "$ac_tmp/stdin"
16291 case $ac_file in
16292 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16293 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16294 esac \
16295 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16296 ;;
16297 :H)
16298 #
16299 # CONFIG_HEADER
16300 #
16301 if test x"$ac_file" != x-; then
16302 {
16303 $as_echo "/* $configure_input */" \
16304 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16305 } >"$ac_tmp/config.h" \
16306 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16307 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16309 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16310 else
16311 rm -f "$ac_file"
16312 mv "$ac_tmp/config.h" "$ac_file" \
16313 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16314 fi
16315 else
16316 $as_echo "/* $configure_input */" \
16317 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16318 || as_fn_error $? "could not create -" "$LINENO" 5
16319 fi
16320 # Compute "$ac_file"'s index in $config_headers.
16321 _am_arg="$ac_file"
16322 _am_stamp_count=1
16323 for _am_header in $config_headers :; do
16324 case $_am_header in
16325 $_am_arg | $_am_arg:* )
16326 break ;;
16327 * )
16328 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16329 esac
16330 done
16331 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16332 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16333 X"$_am_arg" : 'X\(//\)[^/]' \| \
16334 X"$_am_arg" : 'X\(//\)$' \| \
16335 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16336 $as_echo X"$_am_arg" |
16337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16338 s//\1/
16339 q
16340 }
16341 /^X\(\/\/\)[^/].*/{
16342 s//\1/
16343 q
16344 }
16345 /^X\(\/\/\)$/{
16346 s//\1/
16347 q
16348 }
16349 /^X\(\/\).*/{
16350 s//\1/
16351 q
16352 }
16353 s/.*/./; q'`/stamp-h$_am_stamp_count
16354 ;;
16355
16356 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16357 $as_echo "$as_me: executing $ac_file commands" >&6;}
16358 ;;
16359 esac
16360
16361
16362 case $ac_file$ac_mode in
16363 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16364 # Older Autoconf quotes --file arguments for eval, but not when files
16365 # are listed without --file. Let's play safe and only enable the eval
16366 # if we detect the quoting.
16367 # TODO: see whether this extra hack can be removed once we start
16368 # requiring Autoconf 2.70 or later.
16369 case $CONFIG_FILES in #(
16370 *\'*) :
16371 eval set x "$CONFIG_FILES" ;; #(
16372 *) :
16373 set x $CONFIG_FILES ;; #(
16374 *) :
16375 ;;
16376 esac
16377 shift
16378 # Used to flag and report bootstrapping failures.
16379 am_rc=0
16380 for am_mf
16381 do
16382 # Strip MF so we end up with the name of the file.
16383 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16384 # Check whether this is an Automake generated Makefile which includes
16385 # dependency-tracking related rules and includes.
16386 # Grep'ing the whole file directly is not great: AIX grep has a line
16387 # limit of 2048, but all sed's we know have understand at least 4000.
16388 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16389 || continue
16390 am_dirpart=`$as_dirname -- "$am_mf" ||
16391 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16392 X"$am_mf" : 'X\(//\)[^/]' \| \
16393 X"$am_mf" : 'X\(//\)$' \| \
16394 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16395 $as_echo X"$am_mf" |
16396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16397 s//\1/
16398 q
16399 }
16400 /^X\(\/\/\)[^/].*/{
16401 s//\1/
16402 q
16403 }
16404 /^X\(\/\/\)$/{
16405 s//\1/
16406 q
16407 }
16408 /^X\(\/\).*/{
16409 s//\1/
16410 q
16411 }
16412 s/.*/./; q'`
16413 am_filepart=`$as_basename -- "$am_mf" ||
16414 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16415 X"$am_mf" : 'X\(//\)$' \| \
16416 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16417 $as_echo X/"$am_mf" |
16418 sed '/^.*\/\([^/][^/]*\)\/*$/{
16419 s//\1/
16420 q
16421 }
16422 /^X\/\(\/\/\)$/{
16423 s//\1/
16424 q
16425 }
16426 /^X\/\(\/\).*/{
16427 s//\1/
16428 q
16429 }
16430 s/.*/./; q'`
16431 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16432 && sed -e '/# am--include-marker/d' "$am_filepart" \
16433 | $MAKE -f - am--depfiles" >&5
16434 (cd "$am_dirpart" \
16435 && sed -e '/# am--include-marker/d' "$am_filepart" \
16436 | $MAKE -f - am--depfiles) >&5 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } || am_rc=$?
16440 done
16441 if test $am_rc -ne 0; then
16442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16444 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16445 for automatic dependency tracking. Try re-running configure with the
16446 '--disable-dependency-tracking' option to at least be able to build
16447 the package (albeit without support for automatic dependency tracking).
16448 See \`config.log' for more details" "$LINENO" 5; }
16449 fi
16450 { am_dirpart=; unset am_dirpart;}
16451 { am_filepart=; unset am_filepart;}
16452 { am_mf=; unset am_mf;}
16453 { am_rc=; unset am_rc;}
16454 rm -f conftest-deps.mk
16455 }
16456 ;;
16457 "libtool":C)
16458
16459 # See if we are running on zsh, and set the options that allow our
16460 # commands through without removal of \ escapes.
16461 if test -n "${ZSH_VERSION+set}"; then
16462 setopt NO_GLOB_SUBST
16463 fi
16464
16465 cfgfile=${ofile}T
16466 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16467 $RM "$cfgfile"
16468
16469 cat <<_LT_EOF >> "$cfgfile"
16470 #! $SHELL
16471 # Generated automatically by $as_me ($PACKAGE) $VERSION
16472 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16473
16474 # Provide generalized library-building support services.
16475 # Written by Gordon Matzigkeit, 1996
16476
16477 # Copyright (C) 2014 Free Software Foundation, Inc.
16478 # This is free software; see the source for copying conditions. There is NO
16479 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16480
16481 # GNU Libtool is free software; you can redistribute it and/or modify
16482 # it under the terms of the GNU General Public License as published by
16483 # the Free Software Foundation; either version 2 of of the License, or
16484 # (at your option) any later version.
16485 #
16486 # As a special exception to the GNU General Public License, if you
16487 # distribute this file as part of a program or library that is built
16488 # using GNU Libtool, you may include this file under the same
16489 # distribution terms that you use for the rest of that program.
16490 #
16491 # GNU Libtool is distributed in the hope that it will be useful, but
16492 # WITHOUT ANY WARRANTY; without even the implied warranty of
16493 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16494 # GNU General Public License for more details.
16495 #
16496 # You should have received a copy of the GNU General Public License
16497 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16498
16499
16500 # The names of the tagged configurations supported by this script.
16501 available_tags=''
16502
16503 # Configured defaults for sys_lib_dlsearch_path munging.
16504 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16505
16506 # ### BEGIN LIBTOOL CONFIG
16507
16508 # Which release of libtool.m4 was used?
16509 macro_version=$macro_version
16510 macro_revision=$macro_revision
16511
16512 # Whether or not to build shared libraries.
16513 build_libtool_libs=$enable_shared
16514
16515 # Whether or not to build static libraries.
16516 build_old_libs=$enable_static
16517
16518 # What type of objects to build.
16519 pic_mode=$pic_mode
16520
16521 # Whether or not to optimize for fast installation.
16522 fast_install=$enable_fast_install
16523
16524 # Shared archive member basename,for filename based shared library versioning on AIX.
16525 shared_archive_member_spec=$shared_archive_member_spec
16526
16527 # Shell to use when invoking shell scripts.
16528 SHELL=$lt_SHELL
16529
16530 # An echo program that protects backslashes.
16531 ECHO=$lt_ECHO
16532
16533 # The PATH separator for the build system.
16534 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16535
16536 # The host system.
16537 host_alias=$host_alias
16538 host=$host
16539 host_os=$host_os
16540
16541 # The build system.
16542 build_alias=$build_alias
16543 build=$build
16544 build_os=$build_os
16545
16546 # A sed program that does not truncate output.
16547 SED=$lt_SED
16548
16549 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16550 Xsed="\$SED -e 1s/^X//"
16551
16552 # A grep program that handles long lines.
16553 GREP=$lt_GREP
16554
16555 # An ERE matcher.
16556 EGREP=$lt_EGREP
16557
16558 # A literal string matcher.
16559 FGREP=$lt_FGREP
16560
16561 # A BSD- or MS-compatible name lister.
16562 NM=$lt_NM
16563
16564 # Whether we need soft or hard links.
16565 LN_S=$lt_LN_S
16566
16567 # What is the maximum length of a command?
16568 max_cmd_len=$max_cmd_len
16569
16570 # Object file suffix (normally "o").
16571 objext=$ac_objext
16572
16573 # Executable file suffix (normally "").
16574 exeext=$exeext
16575
16576 # whether the shell understands "unset".
16577 lt_unset=$lt_unset
16578
16579 # turn spaces into newlines.
16580 SP2NL=$lt_lt_SP2NL
16581
16582 # turn newlines into spaces.
16583 NL2SP=$lt_lt_NL2SP
16584
16585 # convert \$build file names to \$host format.
16586 to_host_file_cmd=$lt_cv_to_host_file_cmd
16587
16588 # convert \$build files to toolchain format.
16589 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16590
16591 # An object symbol dumper.
16592 OBJDUMP=$lt_OBJDUMP
16593
16594 # Method to check whether dependent libraries are shared objects.
16595 deplibs_check_method=$lt_deplibs_check_method
16596
16597 # Command to use when deplibs_check_method = "file_magic".
16598 file_magic_cmd=$lt_file_magic_cmd
16599
16600 # How to find potential files when deplibs_check_method = "file_magic".
16601 file_magic_glob=$lt_file_magic_glob
16602
16603 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16604 want_nocaseglob=$lt_want_nocaseglob
16605
16606 # DLL creation program.
16607 DLLTOOL=$lt_DLLTOOL
16608
16609 # Command to associate shared and link libraries.
16610 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16611
16612 # The archiver.
16613 AR=$lt_AR
16614
16615 # Flags to create an archive.
16616 AR_FLAGS=$lt_AR_FLAGS
16617
16618 # How to feed a file listing to the archiver.
16619 archiver_list_spec=$lt_archiver_list_spec
16620
16621 # A symbol stripping program.
16622 STRIP=$lt_STRIP
16623
16624 # Commands used to install an old-style archive.
16625 RANLIB=$lt_RANLIB
16626 old_postinstall_cmds=$lt_old_postinstall_cmds
16627 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16628
16629 # Whether to use a lock for old archive extraction.
16630 lock_old_archive_extraction=$lock_old_archive_extraction
16631
16632 # A C compiler.
16633 LTCC=$lt_CC
16634
16635 # LTCC compiler flags.
16636 LTCFLAGS=$lt_CFLAGS
16637
16638 # Take the output of nm and produce a listing of raw symbols and C names.
16639 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16640
16641 # Transform the output of nm in a proper C declaration.
16642 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16643
16644 # Transform the output of nm into a list of symbols to manually relocate.
16645 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16646
16647 # Transform the output of nm in a C name address pair.
16648 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16649
16650 # Transform the output of nm in a C name address pair when lib prefix is needed.
16651 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16652
16653 # The name lister interface.
16654 nm_interface=$lt_lt_cv_nm_interface
16655
16656 # Specify filename containing input files for \$NM.
16657 nm_file_list_spec=$lt_nm_file_list_spec
16658
16659 # The root where to search for dependent libraries,and where our libraries should be installed.
16660 lt_sysroot=$lt_sysroot
16661
16662 # Command to truncate a binary pipe.
16663 lt_truncate_bin=$lt_lt_cv_truncate_bin
16664
16665 # The name of the directory that contains temporary libtool files.
16666 objdir=$objdir
16667
16668 # Used to examine libraries when file_magic_cmd begins with "file".
16669 MAGIC_CMD=$MAGIC_CMD
16670
16671 # Must we lock files when doing compilation?
16672 need_locks=$lt_need_locks
16673
16674 # Manifest tool.
16675 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16676
16677 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16678 DSYMUTIL=$lt_DSYMUTIL
16679
16680 # Tool to change global to local symbols on Mac OS X.
16681 NMEDIT=$lt_NMEDIT
16682
16683 # Tool to manipulate fat objects and archives on Mac OS X.
16684 LIPO=$lt_LIPO
16685
16686 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16687 OTOOL=$lt_OTOOL
16688
16689 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16690 OTOOL64=$lt_OTOOL64
16691
16692 # Old archive suffix (normally "a").
16693 libext=$libext
16694
16695 # Shared library suffix (normally ".so").
16696 shrext_cmds=$lt_shrext_cmds
16697
16698 # The commands to extract the exported symbol list from a shared archive.
16699 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16700
16701 # Variables whose values should be saved in libtool wrapper scripts and
16702 # restored at link time.
16703 variables_saved_for_relink=$lt_variables_saved_for_relink
16704
16705 # Do we need the "lib" prefix for modules?
16706 need_lib_prefix=$need_lib_prefix
16707
16708 # Do we need a version for libraries?
16709 need_version=$need_version
16710
16711 # Library versioning type.
16712 version_type=$version_type
16713
16714 # Shared library runtime path variable.
16715 runpath_var=$runpath_var
16716
16717 # Shared library path variable.
16718 shlibpath_var=$shlibpath_var
16719
16720 # Is shlibpath searched before the hard-coded library search path?
16721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16722
16723 # Format of library name prefix.
16724 libname_spec=$lt_libname_spec
16725
16726 # List of archive names. First name is the real one, the rest are links.
16727 # The last name is the one that the linker finds with -lNAME
16728 library_names_spec=$lt_library_names_spec
16729
16730 # The coded name of the library, if different from the real name.
16731 soname_spec=$lt_soname_spec
16732
16733 # Permission mode override for installation of shared libraries.
16734 install_override_mode=$lt_install_override_mode
16735
16736 # Command to use after installation of a shared archive.
16737 postinstall_cmds=$lt_postinstall_cmds
16738
16739 # Command to use after uninstallation of a shared archive.
16740 postuninstall_cmds=$lt_postuninstall_cmds
16741
16742 # Commands used to finish a libtool library installation in a directory.
16743 finish_cmds=$lt_finish_cmds
16744
16745 # As "finish_cmds", except a single script fragment to be evaled but
16746 # not shown.
16747 finish_eval=$lt_finish_eval
16748
16749 # Whether we should hardcode library paths into libraries.
16750 hardcode_into_libs=$hardcode_into_libs
16751
16752 # Compile-time system search path for libraries.
16753 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16754
16755 # Detected run-time system search path for libraries.
16756 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16757
16758 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16759 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16760
16761 # Whether dlopen is supported.
16762 dlopen_support=$enable_dlopen
16763
16764 # Whether dlopen of programs is supported.
16765 dlopen_self=$enable_dlopen_self
16766
16767 # Whether dlopen of statically linked programs is supported.
16768 dlopen_self_static=$enable_dlopen_self_static
16769
16770 # Commands to strip libraries.
16771 old_striplib=$lt_old_striplib
16772 striplib=$lt_striplib
16773
16774
16775 # The linker used to build libraries.
16776 LD=$lt_LD
16777
16778 # How to create reloadable object files.
16779 reload_flag=$lt_reload_flag
16780 reload_cmds=$lt_reload_cmds
16781
16782 # Commands used to build an old-style archive.
16783 old_archive_cmds=$lt_old_archive_cmds
16784
16785 # A language specific compiler.
16786 CC=$lt_compiler
16787
16788 # Is the compiler the GNU compiler?
16789 with_gcc=$GCC
16790
16791 # Compiler flag to turn off builtin functions.
16792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16793
16794 # Additional compiler flags for building library objects.
16795 pic_flag=$lt_lt_prog_compiler_pic
16796
16797 # How to pass a linker flag through the compiler.
16798 wl=$lt_lt_prog_compiler_wl
16799
16800 # Compiler flag to prevent dynamic linking.
16801 link_static_flag=$lt_lt_prog_compiler_static
16802
16803 # Does compiler simultaneously support -c and -o options?
16804 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16805
16806 # Whether or not to add -lc for building shared libraries.
16807 build_libtool_need_lc=$archive_cmds_need_lc
16808
16809 # Whether or not to disallow shared libs when runtime libs are static.
16810 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16811
16812 # Compiler flag to allow reflexive dlopens.
16813 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16814
16815 # Compiler flag to generate shared objects directly from archives.
16816 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16817
16818 # Whether the compiler copes with passing no objects directly.
16819 compiler_needs_object=$lt_compiler_needs_object
16820
16821 # Create an old-style archive from a shared archive.
16822 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16823
16824 # Create a temporary old-style archive to link instead of a shared archive.
16825 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16826
16827 # Commands used to build a shared archive.
16828 archive_cmds=$lt_archive_cmds
16829 archive_expsym_cmds=$lt_archive_expsym_cmds
16830
16831 # Commands used to build a loadable module if different from building
16832 # a shared archive.
16833 module_cmds=$lt_module_cmds
16834 module_expsym_cmds=$lt_module_expsym_cmds
16835
16836 # Whether we are building with GNU ld or not.
16837 with_gnu_ld=$lt_with_gnu_ld
16838
16839 # Flag that allows shared libraries with undefined symbols to be built.
16840 allow_undefined_flag=$lt_allow_undefined_flag
16841
16842 # Flag that enforces no undefined symbols.
16843 no_undefined_flag=$lt_no_undefined_flag
16844
16845 # Flag to hardcode \$libdir into a binary during linking.
16846 # This must work even if \$libdir does not exist
16847 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16848
16849 # Whether we need a single "-rpath" flag with a separated argument.
16850 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16851
16852 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16853 # DIR into the resulting binary.
16854 hardcode_direct=$hardcode_direct
16855
16856 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16857 # DIR into the resulting binary and the resulting library dependency is
16858 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16859 # library is relocated.
16860 hardcode_direct_absolute=$hardcode_direct_absolute
16861
16862 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16863 # into the resulting binary.
16864 hardcode_minus_L=$hardcode_minus_L
16865
16866 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16867 # into the resulting binary.
16868 hardcode_shlibpath_var=$hardcode_shlibpath_var
16869
16870 # Set to "yes" if building a shared library automatically hardcodes DIR
16871 # into the library and all subsequent libraries and executables linked
16872 # against it.
16873 hardcode_automatic=$hardcode_automatic
16874
16875 # Set to yes if linker adds runtime paths of dependent libraries
16876 # to runtime path list.
16877 inherit_rpath=$inherit_rpath
16878
16879 # Whether libtool must link a program against all its dependency libraries.
16880 link_all_deplibs=$link_all_deplibs
16881
16882 # Set to "yes" if exported symbols are required.
16883 always_export_symbols=$always_export_symbols
16884
16885 # The commands to list exported symbols.
16886 export_symbols_cmds=$lt_export_symbols_cmds
16887
16888 # Symbols that should not be listed in the preloaded symbols.
16889 exclude_expsyms=$lt_exclude_expsyms
16890
16891 # Symbols that must always be exported.
16892 include_expsyms=$lt_include_expsyms
16893
16894 # Commands necessary for linking programs (against libraries) with templates.
16895 prelink_cmds=$lt_prelink_cmds
16896
16897 # Commands necessary for finishing linking programs.
16898 postlink_cmds=$lt_postlink_cmds
16899
16900 # Specify filename containing input files.
16901 file_list_spec=$lt_file_list_spec
16902
16903 # How to hardcode a shared library path into an executable.
16904 hardcode_action=$hardcode_action
16905
16906 # ### END LIBTOOL CONFIG
16907
16908 _LT_EOF
16909
16910 cat <<'_LT_EOF' >> "$cfgfile"
16911
16912 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16913
16914 # func_munge_path_list VARIABLE PATH
16915 # -----------------------------------
16916 # VARIABLE is name of variable containing _space_ separated list of
16917 # directories to be munged by the contents of PATH, which is string
16918 # having a format:
16919 # "DIR[:DIR]:"
16920 # string "DIR[ DIR]" will be prepended to VARIABLE
16921 # ":DIR[:DIR]"
16922 # string "DIR[ DIR]" will be appended to VARIABLE
16923 # "DIRP[:DIRP]::[DIRA:]DIRA"
16924 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16925 # "DIRA[ DIRA]" will be appended to VARIABLE
16926 # "DIR[:DIR]"
16927 # VARIABLE will be replaced by "DIR[ DIR]"
16928 func_munge_path_list ()
16929 {
16930 case x$2 in
16931 x)
16932 ;;
16933 *:)
16934 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16935 ;;
16936 x:*)
16937 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16938 ;;
16939 *::*)
16940 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16941 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16942 ;;
16943 *)
16944 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16945 ;;
16946 esac
16947 }
16948
16949
16950 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16951 func_cc_basename ()
16952 {
16953 for cc_temp in $*""; do
16954 case $cc_temp in
16955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16957 \-*) ;;
16958 *) break;;
16959 esac
16960 done
16961 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16962 }
16963
16964
16965 # ### END FUNCTIONS SHARED WITH CONFIGURE
16966
16967 _LT_EOF
16968
16969 case $host_os in
16970 aix3*)
16971 cat <<\_LT_EOF >> "$cfgfile"
16972 # AIX sometimes has problems with the GCC collect2 program. For some
16973 # reason, if we set the COLLECT_NAMES environment variable, the problems
16974 # vanish in a puff of smoke.
16975 if test set != "${COLLECT_NAMES+set}"; then
16976 COLLECT_NAMES=
16977 export COLLECT_NAMES
16978 fi
16979 _LT_EOF
16980 ;;
16981 esac
16982
16983
16984 ltmain=$ac_aux_dir/ltmain.sh
16985
16986
16987 # We use sed instead of cat because bash on DJGPP gets confused if
16988 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16989 # text mode, it properly converts lines to CR/LF. This bash problem
16990 # is reportedly fixed, but why not run on old versions too?
16991 sed '$q' "$ltmain" >> "$cfgfile" \
16992 || (rm -f "$cfgfile"; exit 1)
16993
16994 mv -f "$cfgfile" "$ofile" ||
16995 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16996 chmod +x "$ofile"
16997
16998 ;;
16999
17000 esac
17001 done # for ac_tag
17002
17003
17004 as_fn_exit 0
17005 _ACEOF
17006 ac_clean_files=$ac_clean_files_save
17007
17008 test $ac_write_fail = 0 ||
17009 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17010
17011
17012 # configure is writing to config.log, and then calls config.status.
17013 # config.status does its own redirection, appending to config.log.
17014 # Unfortunately, on DOS this fails, as config.log is still kept open
17015 # by configure, so config.status won't be able to write to it; its
17016 # output is simply discarded. So we exec the FD to /dev/null,
17017 # effectively closing config.log, so it can be properly (re)opened and
17018 # appended to by config.status. When coming back to configure, we
17019 # need to make the FD available again.
17020 if test "$no_create" != yes; then
17021 ac_cs_success=:
17022 ac_config_status_args=
17023 test "$silent" = yes &&
17024 ac_config_status_args="$ac_config_status_args --quiet"
17025 exec 5>/dev/null
17026 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17027 exec 5>>config.log
17028 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17029 # would make configure fail if this is the last instruction.
17030 $ac_cs_success || as_fn_exit 1
17031 fi
17032 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17034 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17035 fi
17036
17037