configure revision 1.18.2.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for file 5.33.
4 #
5 # Report bugs to <christos (at] astron.com>.
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 bug-autoconf (at] gnu.org and
278 $0: christos (at] astron.com about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: 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='file'
592 PACKAGE_TARNAME='file'
593 PACKAGE_VERSION='5.33'
594 PACKAGE_STRING='file 5.33'
595 PACKAGE_BUGREPORT='christos (at] astron.com'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_header_list=
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 IS_CROSS_COMPILE_FALSE
639 IS_CROSS_COMPILE_TRUE
640 LIBOBJS
641 OTOOL64
642 OTOOL
643 LIPO
644 NMEDIT
645 DSYMUTIL
646 MANIFEST_TOOL
647 RANLIB
648 ac_ct_AR
649 AR
650 DLLTOOL
651 OBJDUMP
652 NM
653 ac_ct_DUMPBIN
654 DUMPBIN
655 LD
656 FGREP
657 SED
658 LIBTOOL
659 LN_S
660 EGREP
661 GREP
662 CPP
663 am__fastdepCC_FALSE
664 am__fastdepCC_TRUE
665 CCDEPMODE
666 am__nodep
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 OBJEXT
674 EXEEXT
675 ac_ct_CC
676 CPPFLAGS
677 LDFLAGS
678 CFLAGS
679 CC
680 WARNINGS
681 FSECT5_FALSE
682 FSECT5_TRUE
683 fsect
684 pkgdatadir
685 MINGW_FALSE
686 MINGW_TRUE
687 MINGW
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
696 MAINT
697 MAINTAINER_MODE_FALSE
698 MAINTAINER_MODE_TRUE
699 AM_BACKSLASH
700 AM_DEFAULT_VERBOSITY
701 AM_DEFAULT_V
702 AM_V
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
708 AWK
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 enable_silent_rules
768 enable_maintainer_mode
769 enable_elf
770 enable_elf_core
771 enable_zlib
772 enable_libseccomp
773 enable_fsect_man5
774 enable_dependency_tracking
775 enable_static
776 with_pic
777 enable_shared
778 enable_fast_install
779 with_gnu_ld
780 with_sysroot
781 enable_libtool_lock
782 enable_largefile
783 enable_warnings
784 '
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
788 CC
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 CPP'
794
795
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
817
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
843
844 ac_prev=
845 ac_dashdash=
846 for ac_option
847 do
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
851 ac_prev=
852 continue
853 fi
854
855 case $ac_option in
856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 *=) ac_optarg= ;;
858 *) ac_optarg=yes ;;
859 esac
860
861 # Accept the important Cygnus configure options, so we can diagnose typos.
862
863 case $ac_dashdash$ac_option in
864 --)
865 ac_dashdash=yes ;;
866
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 ac_prev=bindir ;;
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 bindir=$ac_optarg ;;
871
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
876
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882 cache_file=$ac_optarg ;;
883
884 --config-cache | -C)
885 cache_file=config.cache ;;
886
887 -datadir | --datadir | --datadi | --datad)
888 ac_prev=datadir ;;
889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
890 datadir=$ac_optarg ;;
891
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
898
899 -disable-* | --disable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error $? "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
907 *"
908 "enable_$ac_useropt"
909 "*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=no ;;
914
915 -docdir | --docdir | --docdi | --doc | --do)
916 ac_prev=docdir ;;
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 docdir=$ac_optarg ;;
919
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 ac_prev=dvidir ;;
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 dvidir=$ac_optarg ;;
924
925 -enable-* | --enable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=\$ac_optarg ;;
940
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
949
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
953
954 -help | --help | --hel | --he | -h)
955 ac_init_help=long ;;
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
960
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
965
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 ac_prev=htmldir ;;
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 | --ht=*)
970 htmldir=$ac_optarg ;;
971
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
978
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
983
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 libdir=$ac_optarg ;;
988
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
995
996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1000
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1007
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1012
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1016
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1019 no_create=yes ;;
1020
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 no_recursion=yes ;;
1024
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1033
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1038
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1045
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1052
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1069
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1074
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1079
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1083
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
1088 sbindir=$ac_optarg ;;
1089
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
1099 sharedstatedir=$ac_optarg ;;
1100
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
1104 site=$ac_optarg ;;
1105
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1110
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1117
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1122
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1125
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1128
1129 -with-* | --with-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=\$ac_optarg ;;
1144
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
1160
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1164
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1171
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1178
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1181 ;;
1182
1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189 esac
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1192
1193 *)
1194 # FIXME: should be removed in autoconf 3.0.
1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199 ;;
1200
1201 esac
1202 done
1203
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $? "missing argument to $ac_option"
1207 fi
1208
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 esac
1215 fi
1216
1217 # Check all directory arguments for consistency.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1222 do
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1225 case $ac_val in
1226 */ )
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1229 esac
1230 # Be sure to have absolute directory names.
1231 case $ac_val in
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 esac
1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1237
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1244
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 elif test "x$build_alias" != "x$host_alias"; then
1250 cross_compiling=yes
1251 fi
1252 fi
1253
1254 ac_tool_prefix=
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256
1257 test "$silent" = yes && exec 6>/dev/null
1258
1259
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error $? "pwd does not report name of working directory"
1266
1267
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 $as_echo X"$as_myself" |
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)[^/].*/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\).*/{
1291 s//\1/
1292 q
1293 }
1294 s/.*/./; q'`
1295 srcdir=$ac_confdir
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 srcdir=..
1298 fi
1299 else
1300 ac_srcdir_defaulted=no
1301 fi
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1305 fi
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 ac_abs_confdir=`(
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309 pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1326
1327 #
1328 # Report the --help message.
1329 #
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1333 cat <<_ACEOF
1334 \`configure' configures file 5.33 to adapt to many kinds of systems.
1335
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1340
1341 Defaults for the options are specified in brackets.
1342
1343 Configuration:
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking ...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 [PREFIX]
1359
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1364
1365 For better control, use the options below.
1366
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/file]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1387 _ACEOF
1388
1389 cat <<\_ACEOF
1390
1391 Program names:
1392 --program-prefix=PREFIX prepend PREFIX to installed program names
1393 --program-suffix=SUFFIX append SUFFIX to installed program names
1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1395
1396 System types:
1397 --build=BUILD configure for building on BUILD [guessed]
1398 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1399 _ACEOF
1400 fi
1401
1402 if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of file 5.33:";;
1405 esac
1406 cat <<\_ACEOF
1407
1408 Optional Features:
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --enable-silent-rules less verbose build output (undo: "make V=1")
1413 --disable-silent-rules verbose build output (undo: "make V=0")
1414 --enable-maintainer-mode
1415 enable make rules and dependencies not useful (and
1416 sometimes confusing) to the casual installer
1417 --disable-elf disable builtin ELF support
1418 --disable-elf-core disable ELF core file support
1419 --disable-zlib disable zlib compression support [default=auto]
1420 --disable-libseccomp disable libseccomp sandboxing [default=auto]
1421 --enable-fsect-man5 enable file formats in man section 5
1422 --enable-dependency-tracking
1423 do not reject slow dependency extractors
1424 --disable-dependency-tracking
1425 speeds up one-time build
1426 --enable-static[=PKGS] build static libraries [default=no]
1427 --enable-shared[=PKGS] build shared libraries [default=yes]
1428 --enable-fast-install[=PKGS]
1429 optimize for fast installation [default=yes]
1430 --disable-libtool-lock avoid locking (might break parallel builds)
1431 --disable-largefile omit support for large files
1432 --disable-warnings disable compiler warnings
1433
1434 Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1438 both]
1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1440 --with-sysroot=DIR Search for dependent libraries within DIR
1441 (or the compiler's sysroot if not specified).
1442
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 CPP C preprocessor
1452
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1455
1456 Report bugs to <christos (at] astron.com>.
1457 _ACEOF
1458 ac_status=$?
1459 fi
1460
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 continue
1467 ac_builddir=.
1468
1469 case "$ac_dir" in
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *)
1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479 esac
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1484
1485 case $srcdir in
1486 .) # We are building in place.
1487 ac_srcdir=.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 esac
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1509 else
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1513 done
1514 fi
1515
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1518 cat <<\_ACEOF
1519 file configure 5.33
1520 generated by GNU Autoconf 2.69
1521
1522 Copyright (C) 2012 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1525 _ACEOF
1526 exit
1527 fi
1528
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1532
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1537 {
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541 case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560 else
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1563
1564 ac_retval=1
1565 fi
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1568
1569 } # ac_fn_c_try_compile
1570
1571 # ac_fn_c_try_cpp LINENO
1572 # ----------------------
1573 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_cpp ()
1575 {
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 if { { ac_try="$ac_cpp conftest.$ac_ext"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } > conftest.i && {
1593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 }; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1
1602 fi
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_cpp
1607
1608 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1609 # -------------------------------------------------------
1610 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1611 # the include files in INCLUDES and setting the cache variable VAR
1612 # accordingly.
1613 ac_fn_c_check_header_mongrel ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if eval \${$3+:} false; then :
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618 $as_echo_n "checking for $2... " >&6; }
1619 if eval \${$3+:} false; then :
1620 $as_echo_n "(cached) " >&6
1621 fi
1622 eval ac_res=\$$3
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 $as_echo "$ac_res" >&6; }
1625 else
1626 # Is the header compilable?
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1628 $as_echo_n "checking $2 usability... " >&6; }
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h. */
1631 $4
1632 #include <$2>
1633 _ACEOF
1634 if ac_fn_c_try_compile "$LINENO"; then :
1635 ac_header_compiler=yes
1636 else
1637 ac_header_compiler=no
1638 fi
1639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1641 $as_echo "$ac_header_compiler" >&6; }
1642
1643 # Is the header present?
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1645 $as_echo_n "checking $2 presence... " >&6; }
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h. */
1648 #include <$2>
1649 _ACEOF
1650 if ac_fn_c_try_cpp "$LINENO"; then :
1651 ac_header_preproc=yes
1652 else
1653 ac_header_preproc=no
1654 fi
1655 rm -f conftest.err conftest.i conftest.$ac_ext
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1657 $as_echo "$ac_header_preproc" >&6; }
1658
1659 # So? What about this header?
1660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1661 yes:no: )
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1663 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1665 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666 ;;
1667 no:yes:* )
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1669 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1671 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1673 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1675 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1677 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678 ( $as_echo "## ---------------------------------- ##
1679 ## Report this to christos (at] astron.com ##
1680 ## ---------------------------------- ##"
1681 ) | sed "s/^/$as_me: WARNING: /" >&2
1682 ;;
1683 esac
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if eval \${$3+:} false; then :
1687 $as_echo_n "(cached) " >&6
1688 else
1689 eval "$3=\$ac_header_compiler"
1690 fi
1691 eval ac_res=\$$3
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694 fi
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
1697 } # ac_fn_c_check_header_mongrel
1698
1699 # ac_fn_c_try_run LINENO
1700 # ----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1702 # that executables *can* be run.
1703 ac_fn_c_try_run ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_link"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1717 { { case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_try") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; }; }; then :
1727 ac_retval=0
1728 else
1729 $as_echo "$as_me: program exited with status $ac_status" >&5
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=$ac_status
1734 fi
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_run
1740
1741 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742 # -------------------------------------------------------
1743 # Tests whether HEADER exists and can be compiled using the include files in
1744 # INCLUDES, setting the cache variable VAR accordingly.
1745 ac_fn_c_check_header_compile ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if eval \${$3+:} false; then :
1751 $as_echo_n "(cached) " >&6
1752 else
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 $4
1756 #include <$2>
1757 _ACEOF
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759 eval "$3=yes"
1760 else
1761 eval "$3=no"
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 fi
1765 eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769
1770 } # ac_fn_c_check_header_compile
1771
1772 # ac_fn_c_try_link LINENO
1773 # -----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_link ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext conftest$ac_exeext
1779 if { { ac_try="$ac_link"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1792 fi
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest$ac_exeext && {
1798 test "$cross_compiling" = yes ||
1799 test -x conftest$ac_exeext
1800 }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1
1807 fi
1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1810 # interfere with the next link command; also delete a directory that is
1811 # left behind by Apple's compiler. We do this before executing the actions.
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1815
1816 } # ac_fn_c_try_link
1817
1818 # ac_fn_c_check_func LINENO FUNC VAR
1819 # ----------------------------------
1820 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1821 ac_fn_c_check_func ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828 else
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1833 #define $2 innocuous_$2
1834
1835 /* System header to define __stub macros and hopefully few prototypes,
1836 which can conflict with char $2 (); below.
1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838 <limits.h> exists even on freestanding compilers. */
1839
1840 #ifdef __STDC__
1841 # include <limits.h>
1842 #else
1843 # include <assert.h>
1844 #endif
1845
1846 #undef $2
1847
1848 /* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1851 #ifdef __cplusplus
1852 extern "C"
1853 #endif
1854 char $2 ();
1855 /* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858 #if defined __stub_$2 || defined __stub___$2
1859 choke me
1860 #endif
1861
1862 int
1863 main ()
1864 {
1865 return $2 ();
1866 ;
1867 return 0;
1868 }
1869 _ACEOF
1870 if ac_fn_c_try_link "$LINENO"; then :
1871 eval "$3=yes"
1872 else
1873 eval "$3=no"
1874 fi
1875 rm -f core conftest.err conftest.$ac_objext \
1876 conftest$ac_exeext conftest.$ac_ext
1877 fi
1878 eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883 } # ac_fn_c_check_func
1884
1885 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1886 # -------------------------------------------
1887 # Tests whether TYPE exists after having included INCLUDES, setting cache
1888 # variable VAR accordingly.
1889 ac_fn_c_check_type ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1896 else
1897 eval "$3=no"
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 $4
1901 int
1902 main ()
1903 {
1904 if (sizeof ($2))
1905 return 0;
1906 ;
1907 return 0;
1908 }
1909 _ACEOF
1910 if ac_fn_c_try_compile "$LINENO"; then :
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 $4
1914 int
1915 main ()
1916 {
1917 if (sizeof (($2)))
1918 return 0;
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924
1925 else
1926 eval "$3=yes"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 fi
1932 eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937 } # ac_fn_c_check_type
1938
1939 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1940 # ----------------------------------------------------
1941 # Tries to find if the field MEMBER exists in type AGGR, after including
1942 # INCLUDES, setting cache variable VAR accordingly.
1943 ac_fn_c_check_member ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1947 $as_echo_n "checking for $2.$3... " >&6; }
1948 if eval \${$4+:} false; then :
1949 $as_echo_n "(cached) " >&6
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 $5
1954 int
1955 main ()
1956 {
1957 static $2 ac_aggr;
1958 if (ac_aggr.$3)
1959 return 0;
1960 ;
1961 return 0;
1962 }
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 eval "$4=yes"
1966 else
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 $5
1970 int
1971 main ()
1972 {
1973 static $2 ac_aggr;
1974 if (sizeof ac_aggr.$3)
1975 return 0;
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 eval "$4=yes"
1982 else
1983 eval "$4=no"
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 fi
1989 eval ac_res=\$$4
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
1994 } # ac_fn_c_check_member
1995
1996 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1997 # ---------------------------------------------
1998 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1999 # accordingly.
2000 ac_fn_c_check_decl ()
2001 {
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 as_decl_name=`echo $2|sed 's/ *(.*//'`
2004 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2006 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2007 if eval \${$3+:} false; then :
2008 $as_echo_n "(cached) " >&6
2009 else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $4
2013 int
2014 main ()
2015 {
2016 #ifndef $as_decl_name
2017 #ifdef __cplusplus
2018 (void) $as_decl_use;
2019 #else
2020 (void) $as_decl_name;
2021 #endif
2022 #endif
2023
2024 ;
2025 return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 eval "$3=yes"
2030 else
2031 eval "$3=no"
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 fi
2035 eval ac_res=\$$3
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039
2040 } # ac_fn_c_check_decl
2041
2042 # ac_fn_c_find_uintX_t LINENO BITS VAR
2043 # ------------------------------------
2044 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2045 # accordingly.
2046 ac_fn_c_find_uintX_t ()
2047 {
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2050 $as_echo_n "checking for uint$2_t... " >&6; }
2051 if eval \${$3+:} false; then :
2052 $as_echo_n "(cached) " >&6
2053 else
2054 eval "$3=no"
2055 # Order is important - never check a type that is potentially smaller
2056 # than half of the expected target width.
2057 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2058 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 $ac_includes_default
2062 int
2063 main ()
2064 {
2065 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2066 test_array [0] = 0;
2067 return test_array [0];
2068
2069 ;
2070 return 0;
2071 }
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074 case $ac_type in #(
2075 uint$2_t) :
2076 eval "$3=yes" ;; #(
2077 *) :
2078 eval "$3=\$ac_type" ;;
2079 esac
2080 fi
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 if eval test \"x\$"$3"\" = x"no"; then :
2083
2084 else
2085 break
2086 fi
2087 done
2088 fi
2089 eval ac_res=\$$3
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 $as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093
2094 } # ac_fn_c_find_uintX_t
2095
2096 # ac_fn_c_find_intX_t LINENO BITS VAR
2097 # -----------------------------------
2098 # Finds a signed integer type with width BITS, setting cache variable VAR
2099 # accordingly.
2100 ac_fn_c_find_intX_t ()
2101 {
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2104 $as_echo_n "checking for int$2_t... " >&6; }
2105 if eval \${$3+:} false; then :
2106 $as_echo_n "(cached) " >&6
2107 else
2108 eval "$3=no"
2109 # Order is important - never check a type that is potentially smaller
2110 # than half of the expected target width.
2111 for ac_type in int$2_t 'int' 'long int' \
2112 'long long int' 'short int' 'signed char'; do
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2115 $ac_includes_default
2116 enum { N = $2 / 2 - 1 };
2117 int
2118 main ()
2119 {
2120 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2121 test_array [0] = 0;
2122 return test_array [0];
2123
2124 ;
2125 return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 $ac_includes_default
2132 enum { N = $2 / 2 - 1 };
2133 int
2134 main ()
2135 {
2136 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2137 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2138 test_array [0] = 0;
2139 return test_array [0];
2140
2141 ;
2142 return 0;
2143 }
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2146
2147 else
2148 case $ac_type in #(
2149 int$2_t) :
2150 eval "$3=yes" ;; #(
2151 *) :
2152 eval "$3=\$ac_type" ;;
2153 esac
2154 fi
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 fi
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 if eval test \"x\$"$3"\" = x"no"; then :
2159
2160 else
2161 break
2162 fi
2163 done
2164 fi
2165 eval ac_res=\$$3
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169
2170 } # ac_fn_c_find_intX_t
2171 cat >config.log <<_ACEOF
2172 This file contains any messages produced by compilers while
2173 running configure, to aid debugging if configure makes a mistake.
2174
2175 It was created by file $as_me 5.33, which was
2176 generated by GNU Autoconf 2.69. Invocation command line was
2177
2178 $ $0 $@
2179
2180 _ACEOF
2181 exec 5>>config.log
2182 {
2183 cat <<_ASUNAME
2184 ## --------- ##
2185 ## Platform. ##
2186 ## --------- ##
2187
2188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2189 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2190 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2191 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2192 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2193
2194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2195 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2196
2197 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2198 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2200 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2201 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2202 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2203 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2204
2205 _ASUNAME
2206
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2209 do
2210 IFS=$as_save_IFS
2211 test -z "$as_dir" && as_dir=.
2212 $as_echo "PATH: $as_dir"
2213 done
2214 IFS=$as_save_IFS
2215
2216 } >&5
2217
2218 cat >&5 <<_ACEOF
2219
2220
2221 ## ----------- ##
2222 ## Core tests. ##
2223 ## ----------- ##
2224
2225 _ACEOF
2226
2227
2228 # Keep a trace of the command line.
2229 # Strip out --no-create and --no-recursion so they do not pile up.
2230 # Strip out --silent because we don't want to record it for future runs.
2231 # Also quote any args containing shell meta-characters.
2232 # Make two passes to allow for proper duplicate-argument suppression.
2233 ac_configure_args=
2234 ac_configure_args0=
2235 ac_configure_args1=
2236 ac_must_keep_next=false
2237 for ac_pass in 1 2
2238 do
2239 for ac_arg
2240 do
2241 case $ac_arg in
2242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2244 | -silent | --silent | --silen | --sile | --sil)
2245 continue ;;
2246 *\'*)
2247 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2248 esac
2249 case $ac_pass in
2250 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2251 2)
2252 as_fn_append ac_configure_args1 " '$ac_arg'"
2253 if test $ac_must_keep_next = true; then
2254 ac_must_keep_next=false # Got value, back to normal.
2255 else
2256 case $ac_arg in
2257 *=* | --config-cache | -C | -disable-* | --disable-* \
2258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2260 | -with-* | --with-* | -without-* | --without-* | --x)
2261 case "$ac_configure_args0 " in
2262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2263 esac
2264 ;;
2265 -* ) ac_must_keep_next=true ;;
2266 esac
2267 fi
2268 as_fn_append ac_configure_args " '$ac_arg'"
2269 ;;
2270 esac
2271 done
2272 done
2273 { ac_configure_args0=; unset ac_configure_args0;}
2274 { ac_configure_args1=; unset ac_configure_args1;}
2275
2276 # When interrupted or exit'd, cleanup temporary files, and complete
2277 # config.log. We remove comments because anyway the quotes in there
2278 # would cause problems or look ugly.
2279 # WARNING: Use '\'' to represent an apostrophe within the trap.
2280 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2281 trap 'exit_status=$?
2282 # Save into config.log some information that might help in debugging.
2283 {
2284 echo
2285
2286 $as_echo "## ---------------- ##
2287 ## Cache variables. ##
2288 ## ---------------- ##"
2289 echo
2290 # The following way of writing the cache mishandles newlines in values,
2291 (
2292 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2293 eval ac_val=\$$ac_var
2294 case $ac_val in #(
2295 *${as_nl}*)
2296 case $ac_var in #(
2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2299 esac
2300 case $ac_var in #(
2301 _ | IFS | as_nl) ;; #(
2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303 *) { eval $ac_var=; unset $ac_var;} ;;
2304 esac ;;
2305 esac
2306 done
2307 (set) 2>&1 |
2308 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2309 *${as_nl}ac_space=\ *)
2310 sed -n \
2311 "s/'\''/'\''\\\\'\'''\''/g;
2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2313 ;; #(
2314 *)
2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2316 ;;
2317 esac |
2318 sort
2319 )
2320 echo
2321
2322 $as_echo "## ----------------- ##
2323 ## Output variables. ##
2324 ## ----------------- ##"
2325 echo
2326 for ac_var in $ac_subst_vars
2327 do
2328 eval ac_val=\$$ac_var
2329 case $ac_val in
2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331 esac
2332 $as_echo "$ac_var='\''$ac_val'\''"
2333 done | sort
2334 echo
2335
2336 if test -n "$ac_subst_files"; then
2337 $as_echo "## ------------------- ##
2338 ## File substitutions. ##
2339 ## ------------------- ##"
2340 echo
2341 for ac_var in $ac_subst_files
2342 do
2343 eval ac_val=\$$ac_var
2344 case $ac_val in
2345 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346 esac
2347 $as_echo "$ac_var='\''$ac_val'\''"
2348 done | sort
2349 echo
2350 fi
2351
2352 if test -s confdefs.h; then
2353 $as_echo "## ----------- ##
2354 ## confdefs.h. ##
2355 ## ----------- ##"
2356 echo
2357 cat confdefs.h
2358 echo
2359 fi
2360 test "$ac_signal" != 0 &&
2361 $as_echo "$as_me: caught signal $ac_signal"
2362 $as_echo "$as_me: exit $exit_status"
2363 } >&5
2364 rm -f core *.core core.conftest.* &&
2365 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2366 exit $exit_status
2367 ' 0
2368 for ac_signal in 1 2 13 15; do
2369 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2370 done
2371 ac_signal=0
2372
2373 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2374 rm -f -r conftest* confdefs.h
2375
2376 $as_echo "/* confdefs.h */" > confdefs.h
2377
2378 # Predefined preprocessor variables.
2379
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_NAME "$PACKAGE_NAME"
2382 _ACEOF
2383
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2386 _ACEOF
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2390 _ACEOF
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_STRING "$PACKAGE_STRING"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2398 _ACEOF
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_URL "$PACKAGE_URL"
2402 _ACEOF
2403
2404
2405 # Let the site file select an alternate cache file if it wants to.
2406 # Prefer an explicitly selected file to automatically selected ones.
2407 ac_site_file1=NONE
2408 ac_site_file2=NONE
2409 if test -n "$CONFIG_SITE"; then
2410 # We do not want a PATH search for config.site.
2411 case $CONFIG_SITE in #((
2412 -*) ac_site_file1=./$CONFIG_SITE;;
2413 */*) ac_site_file1=$CONFIG_SITE;;
2414 *) ac_site_file1=./$CONFIG_SITE;;
2415 esac
2416 elif test "x$prefix" != xNONE; then
2417 ac_site_file1=$prefix/share/config.site
2418 ac_site_file2=$prefix/etc/config.site
2419 else
2420 ac_site_file1=$ac_default_prefix/share/config.site
2421 ac_site_file2=$ac_default_prefix/etc/config.site
2422 fi
2423 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2424 do
2425 test "x$ac_site_file" = xNONE && continue
2426 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2428 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2429 sed 's/^/| /' "$ac_site_file" >&5
2430 . "$ac_site_file" \
2431 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433 as_fn_error $? "failed to load site script $ac_site_file
2434 See \`config.log' for more details" "$LINENO" 5; }
2435 fi
2436 done
2437
2438 if test -r "$cache_file"; then
2439 # Some versions of bash will fail to source /dev/null (special files
2440 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2441 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2443 $as_echo "$as_me: loading cache $cache_file" >&6;}
2444 case $cache_file in
2445 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2446 *) . "./$cache_file";;
2447 esac
2448 fi
2449 else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2451 $as_echo "$as_me: creating cache $cache_file" >&6;}
2452 >$cache_file
2453 fi
2454
2455 as_fn_append ac_header_list " stdlib.h"
2456 as_fn_append ac_header_list " unistd.h"
2457 as_fn_append ac_header_list " sys/param.h"
2458 # Check that the precious variables saved in the cache have kept the same
2459 # value.
2460 ac_cache_corrupted=false
2461 for ac_var in $ac_precious_vars; do
2462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2463 eval ac_new_set=\$ac_env_${ac_var}_set
2464 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2465 eval ac_new_val=\$ac_env_${ac_var}_value
2466 case $ac_old_set,$ac_new_set in
2467 set,)
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2469 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2470 ac_cache_corrupted=: ;;
2471 ,set)
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2473 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2474 ac_cache_corrupted=: ;;
2475 ,);;
2476 *)
2477 if test "x$ac_old_val" != "x$ac_new_val"; then
2478 # differences in whitespace do not lead to failure.
2479 ac_old_val_w=`echo x $ac_old_val`
2480 ac_new_val_w=`echo x $ac_new_val`
2481 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2483 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2484 ac_cache_corrupted=:
2485 else
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2487 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2488 eval $ac_var=\$ac_old_val
2489 fi
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2491 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2493 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2494 fi;;
2495 esac
2496 # Pass precious variables to config.status.
2497 if test "$ac_new_set" = set; then
2498 case $ac_new_val in
2499 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2500 *) ac_arg=$ac_var=$ac_new_val ;;
2501 esac
2502 case " $ac_configure_args " in
2503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2504 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2505 esac
2506 fi
2507 done
2508 if $ac_cache_corrupted; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2512 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2513 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2514 fi
2515 ## -------------------- ##
2516 ## Main body of script. ##
2517 ## -------------------- ##
2518
2519 ac_ext=c
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524
2525
2526 am__api_version='1.13'
2527
2528 ac_aux_dir=
2529 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2530 if test -f "$ac_dir/install-sh"; then
2531 ac_aux_dir=$ac_dir
2532 ac_install_sh="$ac_aux_dir/install-sh -c"
2533 break
2534 elif test -f "$ac_dir/install.sh"; then
2535 ac_aux_dir=$ac_dir
2536 ac_install_sh="$ac_aux_dir/install.sh -c"
2537 break
2538 elif test -f "$ac_dir/shtool"; then
2539 ac_aux_dir=$ac_dir
2540 ac_install_sh="$ac_aux_dir/shtool install -c"
2541 break
2542 fi
2543 done
2544 if test -z "$ac_aux_dir"; then
2545 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2546 fi
2547
2548 # These three variables are undocumented and unsupported,
2549 # and are intended to be withdrawn in a future Autoconf release.
2550 # They can cause serious problems if a builder's source tree is in a directory
2551 # whose full name contains unusual characters.
2552 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2553 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2554 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2555
2556
2557 # Find a good install program. We prefer a C program (faster),
2558 # so one script is as good as another. But avoid the broken or
2559 # incompatible versions:
2560 # SysV /etc/install, /usr/sbin/install
2561 # SunOS /usr/etc/install
2562 # IRIX /sbin/install
2563 # AIX /bin/install
2564 # AmigaOS /C/install, which installs bootblocks on floppy discs
2565 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2566 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2567 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2568 # OS/2's system install, which has a completely different semantic
2569 # ./install, which can be erroneously created by make from ./install.sh.
2570 # Reject install programs that cannot install multiple files.
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2572 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2573 if test -z "$INSTALL"; then
2574 if ${ac_cv_path_install+:} false; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 # Account for people who put trailing slashes in PATH elements.
2583 case $as_dir/ in #((
2584 ./ | .// | /[cC]/* | \
2585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2586 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2587 /usr/ucb/* ) ;;
2588 *)
2589 # OSF1 and SCO ODT 3.0 have their own names for install.
2590 # Don't use installbsd from OSF since it installs stuff as root
2591 # by default.
2592 for ac_prog in ginstall scoinst install; do
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2595 if test $ac_prog = install &&
2596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2597 # AIX install. It has an incompatible calling convention.
2598 :
2599 elif test $ac_prog = install &&
2600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601 # program-specific install script used by HP pwplus--don't use.
2602 :
2603 else
2604 rm -rf conftest.one conftest.two conftest.dir
2605 echo one > conftest.one
2606 echo two > conftest.two
2607 mkdir conftest.dir
2608 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2609 test -s conftest.one && test -s conftest.two &&
2610 test -s conftest.dir/conftest.one &&
2611 test -s conftest.dir/conftest.two
2612 then
2613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2614 break 3
2615 fi
2616 fi
2617 fi
2618 done
2619 done
2620 ;;
2621 esac
2622
2623 done
2624 IFS=$as_save_IFS
2625
2626 rm -rf conftest.one conftest.two conftest.dir
2627
2628 fi
2629 if test "${ac_cv_path_install+set}" = set; then
2630 INSTALL=$ac_cv_path_install
2631 else
2632 # As a last resort, use the slow shell script. Don't cache a
2633 # value for INSTALL within a source directory, because that will
2634 # break other packages using the cache if that directory is
2635 # removed, or if the value is a relative name.
2636 INSTALL=$ac_install_sh
2637 fi
2638 fi
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2640 $as_echo "$INSTALL" >&6; }
2641
2642 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2643 # It thinks the first close brace ends the variable substitution.
2644 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2645
2646 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2647
2648 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2649
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2651 $as_echo_n "checking whether build environment is sane... " >&6; }
2652 # Reject unsafe characters in $srcdir or the absolute working directory
2653 # name. Accept space and tab only in the latter.
2654 am_lf='
2655 '
2656 case `pwd` in
2657 *[\\\"\#\$\&\'\`$am_lf]*)
2658 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2659 esac
2660 case $srcdir in
2661 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2662 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2663 esac
2664
2665 # Do 'set' in a subshell so we don't clobber the current shell's
2666 # arguments. Must try -L first in case configure is actually a
2667 # symlink; some systems play weird games with the mod time of symlinks
2668 # (eg FreeBSD returns the mod time of the symlink's containing
2669 # directory).
2670 if (
2671 am_has_slept=no
2672 for am_try in 1 2; do
2673 echo "timestamp, slept: $am_has_slept" > conftest.file
2674 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2675 if test "$*" = "X"; then
2676 # -L didn't work.
2677 set X `ls -t "$srcdir/configure" conftest.file`
2678 fi
2679 if test "$*" != "X $srcdir/configure conftest.file" \
2680 && test "$*" != "X conftest.file $srcdir/configure"; then
2681
2682 # If neither matched, then we have a broken ls. This can happen
2683 # if, for instance, CONFIG_SHELL is bash and it inherits a
2684 # broken ls alias from the environment. This has actually
2685 # happened. Such a system could not be considered "sane".
2686 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2687 alias in your environment" "$LINENO" 5
2688 fi
2689 if test "$2" = conftest.file || test $am_try -eq 2; then
2690 break
2691 fi
2692 # Just in case.
2693 sleep 1
2694 am_has_slept=yes
2695 done
2696 test "$2" = conftest.file
2697 )
2698 then
2699 # Ok.
2700 :
2701 else
2702 as_fn_error $? "newly created file is older than distributed files!
2703 Check your system clock" "$LINENO" 5
2704 fi
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2706 $as_echo "yes" >&6; }
2707 # If we didn't sleep, we still need to ensure time stamps of config.status and
2708 # generated files are strictly newer.
2709 am_sleep_pid=
2710 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2711 ( sleep 1 ) &
2712 am_sleep_pid=$!
2713 fi
2714
2715 rm -f conftest.file
2716
2717 test "$program_prefix" != NONE &&
2718 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2719 # Use a double $ so make ignores it.
2720 test "$program_suffix" != NONE &&
2721 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2722 # Double any \ or $.
2723 # By default was `s,x,x', remove it if useless.
2724 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2725 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2726
2727 # expand $ac_aux_dir to an absolute path
2728 am_aux_dir=`cd $ac_aux_dir && pwd`
2729
2730 if test x"${MISSING+set}" != xset; then
2731 case $am_aux_dir in
2732 *\ * | *\ *)
2733 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2734 *)
2735 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2736 esac
2737 fi
2738 # Use eval to expand $SHELL
2739 if eval "$MISSING --is-lightweight"; then
2740 am_missing_run="$MISSING "
2741 else
2742 am_missing_run=
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2744 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2745 fi
2746
2747 if test x"${install_sh}" != xset; then
2748 case $am_aux_dir in
2749 *\ * | *\ *)
2750 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2751 *)
2752 install_sh="\${SHELL} $am_aux_dir/install-sh"
2753 esac
2754 fi
2755
2756 # Installed binaries are usually stripped using 'strip' when the user
2757 # run "make install-strip". However 'strip' might not be the right
2758 # tool to use in cross-compilation environments, therefore Automake
2759 # will honor the 'STRIP' environment variable to overrule this program.
2760 if test "$cross_compiling" != no; then
2761 if test -n "$ac_tool_prefix"; then
2762 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2763 set dummy ${ac_tool_prefix}strip; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if ${ac_cv_prog_STRIP+:} false; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 if test -n "$STRIP"; then
2770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 STRIP=$ac_cv_prog_STRIP
2790 if test -n "$STRIP"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2792 $as_echo "$STRIP" >&6; }
2793 else
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2796 fi
2797
2798
2799 fi
2800 if test -z "$ac_cv_prog_STRIP"; then
2801 ac_ct_STRIP=$STRIP
2802 # Extract the first word of "strip", so it can be a program name with args.
2803 set dummy strip; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2807 $as_echo_n "(cached) " >&6
2808 else
2809 if test -n "$ac_ct_STRIP"; then
2810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819 ac_cv_prog_ac_ct_STRIP="strip"
2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2822 fi
2823 done
2824 done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2830 if test -n "$ac_ct_STRIP"; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2832 $as_echo "$ac_ct_STRIP" >&6; }
2833 else
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837
2838 if test "x$ac_ct_STRIP" = x; then
2839 STRIP=":"
2840 else
2841 case $cross_compiling:$ac_tool_warned in
2842 yes:)
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2845 ac_tool_warned=yes ;;
2846 esac
2847 STRIP=$ac_ct_STRIP
2848 fi
2849 else
2850 STRIP="$ac_cv_prog_STRIP"
2851 fi
2852
2853 fi
2854 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2855
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2857 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2858 if test -z "$MKDIR_P"; then
2859 if ${ac_cv_path_mkdir+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2864 do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_prog in mkdir gmkdir; do
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2870 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2871 'mkdir (GNU coreutils) '* | \
2872 'mkdir (coreutils) '* | \
2873 'mkdir (fileutils) '4.1*)
2874 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2875 break 3;;
2876 esac
2877 done
2878 done
2879 done
2880 IFS=$as_save_IFS
2881
2882 fi
2883
2884 test -d ./--version && rmdir ./--version
2885 if test "${ac_cv_path_mkdir+set}" = set; then
2886 MKDIR_P="$ac_cv_path_mkdir -p"
2887 else
2888 # As a last resort, use the slow shell script. Don't cache a
2889 # value for MKDIR_P within a source directory, because that will
2890 # break other packages using the cache if that directory is
2891 # removed, or if the value is a relative name.
2892 MKDIR_P="$ac_install_sh -d"
2893 fi
2894 fi
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2896 $as_echo "$MKDIR_P" >&6; }
2897
2898 for ac_prog in gawk mawk nawk awk
2899 do
2900 # Extract the first word of "$ac_prog", so it can be a program name with args.
2901 set dummy $ac_prog; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_prog_AWK+:} false; then :
2905 $as_echo_n "(cached) " >&6
2906 else
2907 if test -n "$AWK"; then
2908 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_AWK="$ac_prog"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 fi
2926 fi
2927 AWK=$ac_cv_prog_AWK
2928 if test -n "$AWK"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2930 $as_echo "$AWK" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2934 fi
2935
2936
2937 test -n "$AWK" && break
2938 done
2939
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2941 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2942 set x ${MAKE-make}
2943 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2944 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 cat >conftest.make <<\_ACEOF
2948 SHELL = /bin/sh
2949 all:
2950 @echo '@@@%%%=$(MAKE)=@@@%%%'
2951 _ACEOF
2952 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2953 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2954 *@@@%%%=?*=@@@%%%*)
2955 eval ac_cv_prog_make_${ac_make}_set=yes;;
2956 *)
2957 eval ac_cv_prog_make_${ac_make}_set=no;;
2958 esac
2959 rm -f conftest.make
2960 fi
2961 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2963 $as_echo "yes" >&6; }
2964 SET_MAKE=
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 SET_MAKE="MAKE=${MAKE-make}"
2969 fi
2970
2971 rm -rf .tst 2>/dev/null
2972 mkdir .tst 2>/dev/null
2973 if test -d .tst; then
2974 am__leading_dot=.
2975 else
2976 am__leading_dot=_
2977 fi
2978 rmdir .tst 2>/dev/null
2979
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2981 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2982 # Check whether --enable-maintainer-mode was given.
2983 if test "${enable_maintainer_mode+set}" = set; then :
2984 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2985 else
2986 USE_MAINTAINER_MODE=no
2987 fi
2988
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2990 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2991 if test $USE_MAINTAINER_MODE = yes; then
2992 MAINTAINER_MODE_TRUE=
2993 MAINTAINER_MODE_FALSE='#'
2994 else
2995 MAINTAINER_MODE_TRUE='#'
2996 MAINTAINER_MODE_FALSE=
2997 fi
2998
2999 MAINT=$MAINTAINER_MODE_TRUE
3000
3001
3002 # Check whether --enable-silent-rules was given.
3003 if test "${enable_silent_rules+set}" = set; then :
3004 enableval=$enable_silent_rules;
3005 fi
3006
3007 case $enable_silent_rules in # (((
3008 yes) AM_DEFAULT_VERBOSITY=0;;
3009 no) AM_DEFAULT_VERBOSITY=1;;
3010 *) AM_DEFAULT_VERBOSITY=1;;
3011 esac
3012 am_make=${MAKE-make}
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3014 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3015 if ${am_cv_make_support_nested_variables+:} false; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 if $as_echo 'TRUE=$(BAR$(V))
3019 BAR0=false
3020 BAR1=true
3021 V=1
3022 am__doit:
3023 @$(TRUE)
3024 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3025 am_cv_make_support_nested_variables=yes
3026 else
3027 am_cv_make_support_nested_variables=no
3028 fi
3029 fi
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3031 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3032 if test $am_cv_make_support_nested_variables = yes; then
3033 AM_V='$(V)'
3034 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3035 else
3036 AM_V=$AM_DEFAULT_VERBOSITY
3037 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3038 fi
3039 AM_BACKSLASH='\'
3040
3041 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3042 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3043 # is not polluted with repeated "-I."
3044 am__isrc=' -I$(srcdir)'
3045 # test to see if srcdir already configured
3046 if test -f $srcdir/config.status; then
3047 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3048 fi
3049 fi
3050
3051 # test whether we have cygpath
3052 if test -z "$CYGPATH_W"; then
3053 if (cygpath --version) >/dev/null 2>/dev/null; then
3054 CYGPATH_W='cygpath -w'
3055 else
3056 CYGPATH_W=echo
3057 fi
3058 fi
3059
3060
3061 # Define the identity of the package.
3062 PACKAGE='file'
3063 VERSION='5.33'
3064
3065
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE "$PACKAGE"
3068 _ACEOF
3069
3070
3071 cat >>confdefs.h <<_ACEOF
3072 #define VERSION "$VERSION"
3073 _ACEOF
3074
3075 # Some tools Automake needs.
3076
3077 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3078
3079
3080 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3081
3082
3083 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3084
3085
3086 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3087
3088
3089 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3090
3091 # For better backward compatibility. To be removed once Automake 1.9.x
3092 # dies out for good. For more background, see:
3093 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3094 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3095 mkdir_p='$(MKDIR_P)'
3096
3097 # We need awk for the "check" target. The system "awk" is bad on
3098 # some platforms.
3099 # Always define AMTAR for backward compatibility. Yes, it's still used
3100 # in the wild :-( We should find a proper way to deprecate it ...
3101 AMTAR='$${TAR-tar}'
3102
3103 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3104
3105
3106
3107
3108
3109 # Check whether --enable-silent-rules was given.
3110 if test "${enable_silent_rules+set}" = set; then :
3111 enableval=$enable_silent_rules;
3112 fi
3113
3114 case $enable_silent_rules in # (((
3115 yes) AM_DEFAULT_VERBOSITY=0;;
3116 no) AM_DEFAULT_VERBOSITY=1;;
3117 *) AM_DEFAULT_VERBOSITY=0;;
3118 esac
3119 am_make=${MAKE-make}
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3121 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3122 if ${am_cv_make_support_nested_variables+:} false; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if $as_echo 'TRUE=$(BAR$(V))
3126 BAR0=false
3127 BAR1=true
3128 V=1
3129 am__doit:
3130 @$(TRUE)
3131 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3132 am_cv_make_support_nested_variables=yes
3133 else
3134 am_cv_make_support_nested_variables=no
3135 fi
3136 fi
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3138 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3139 if test $am_cv_make_support_nested_variables = yes; then
3140 AM_V='$(V)'
3141 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3142 else
3143 AM_V=$AM_DEFAULT_VERBOSITY
3144 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3145 fi
3146 AM_BACKSLASH='\'
3147
3148
3149 ac_config_headers="$ac_config_headers config.h"
3150
3151
3152
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3154 $as_echo_n "checking for builtin ELF support... " >&6; }
3155 # Check whether --enable-elf was given.
3156 if test "${enable_elf+set}" = set; then :
3157 enableval=$enable_elf; if test "${enableval}" = yes; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3159 $as_echo "yes" >&6; }
3160
3161 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3162
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167 else
3168
3169 # enable by default
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171 $as_echo "yes" >&6; }
3172
3173 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3174
3175
3176 fi
3177
3178
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3180 $as_echo_n "checking for ELF core file support... " >&6; }
3181 # Check whether --enable-elf-core was given.
3182 if test "${enable_elf_core+set}" = set; then :
3183 enableval=$enable_elf_core; if test "${enableval}" = yes; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3185 $as_echo "yes" >&6; }
3186
3187 $as_echo "#define ELFCORE 1" >>confdefs.h
3188
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193 else
3194
3195 # enable by default
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3197 $as_echo "yes" >&6; }
3198
3199 $as_echo "#define ELFCORE 1" >>confdefs.h
3200
3201
3202 fi
3203
3204
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
3206 $as_echo_n "checking for zlib support... " >&6; }
3207 # Check whether --enable-zlib was given.
3208 if test "${enable_zlib+set}" = set; then :
3209 enableval=$enable_zlib;
3210 fi
3211
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
3213 $as_echo "$enable_zlib" >&6; }
3214
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
3216 $as_echo_n "checking for libseccomp support... " >&6; }
3217 # Check whether --enable-libseccomp was given.
3218 if test "${enable_libseccomp+set}" = set; then :
3219 enableval=$enable_libseccomp;
3220 fi
3221
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
3223 $as_echo "$enable_libseccomp" >&6; }
3224
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3226 $as_echo_n "checking for file formats in man section 5... " >&6; }
3227 # Check whether --enable-fsect-man5 was given.
3228 if test "${enable_fsect_man5+set}" = set; then :
3229 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3231 $as_echo "yes" >&6; }
3232 fsect=5
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 fsect=4
3237 fi
3238 else
3239
3240 # disable by default
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fsect=4
3244
3245 fi
3246
3247
3248 # Make sure we can run config.sub.
3249 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3250 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3251
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3253 $as_echo_n "checking build system type... " >&6; }
3254 if ${ac_cv_build+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 ac_build_alias=$build_alias
3258 test "x$ac_build_alias" = x &&
3259 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3260 test "x$ac_build_alias" = x &&
3261 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3262 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3263 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3264
3265 fi
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3267 $as_echo "$ac_cv_build" >&6; }
3268 case $ac_cv_build in
3269 *-*-*) ;;
3270 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3271 esac
3272 build=$ac_cv_build
3273 ac_save_IFS=$IFS; IFS='-'
3274 set x $ac_cv_build
3275 shift
3276 build_cpu=$1
3277 build_vendor=$2
3278 shift; shift
3279 # Remember, the first character of IFS is used to create $*,
3280 # except with old shells:
3281 build_os=$*
3282 IFS=$ac_save_IFS
3283 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3284
3285
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3287 $as_echo_n "checking host system type... " >&6; }
3288 if ${ac_cv_host+:} false; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 if test "x$host_alias" = x; then
3292 ac_cv_host=$ac_cv_build
3293 else
3294 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3295 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3296 fi
3297
3298 fi
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3300 $as_echo "$ac_cv_host" >&6; }
3301 case $ac_cv_host in
3302 *-*-*) ;;
3303 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3304 esac
3305 host=$ac_cv_host
3306 ac_save_IFS=$IFS; IFS='-'
3307 set x $ac_cv_host
3308 shift
3309 host_cpu=$1
3310 host_vendor=$2
3311 shift; shift
3312 # Remember, the first character of IFS is used to create $*,
3313 # except with old shells:
3314 host_os=$*
3315 IFS=$ac_save_IFS
3316 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3317
3318
3319 case "$host_os" in
3320 mingw32*)
3321 MINGW=1
3322 ;;
3323 *)
3324 MINGW=0
3325 ;;
3326 esac
3327
3328 if test "$MINGW" = 1; then
3329 MINGW_TRUE=
3330 MINGW_FALSE='#'
3331 else
3332 MINGW_TRUE='#'
3333 MINGW_FALSE=
3334 fi
3335
3336
3337 pkgdatadir='$(datadir)/misc'
3338
3339
3340 if test x$fsect = x5; then
3341 FSECT5_TRUE=
3342 FSECT5_FALSE='#'
3343 else
3344 FSECT5_TRUE='#'
3345 FSECT5_FALSE=
3346 fi
3347
3348
3349
3350
3351 DEPDIR="${am__leading_dot}deps"
3352
3353 ac_config_commands="$ac_config_commands depfiles"
3354
3355
3356 am_make=${MAKE-make}
3357 cat > confinc << 'END'
3358 am__doit:
3359 @echo this is the am__doit target
3360 .PHONY: am__doit
3361 END
3362 # If we don't find an include directive, just comment out the code.
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3364 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3365 am__include="#"
3366 am__quote=
3367 _am_result=none
3368 # First try GNU make style include.
3369 echo "include confinc" > confmf
3370 # Ignore all kinds of additional output from 'make'.
3371 case `$am_make -s -f confmf 2> /dev/null` in #(
3372 *the\ am__doit\ target*)
3373 am__include=include
3374 am__quote=
3375 _am_result=GNU
3376 ;;
3377 esac
3378 # Now try BSD make style include.
3379 if test "$am__include" = "#"; then
3380 echo '.include "confinc"' > confmf
3381 case `$am_make -s -f confmf 2> /dev/null` in #(
3382 *the\ am__doit\ target*)
3383 am__include=.include
3384 am__quote="\""
3385 _am_result=BSD
3386 ;;
3387 esac
3388 fi
3389
3390
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3392 $as_echo "$_am_result" >&6; }
3393 rm -f confinc confmf
3394
3395 # Check whether --enable-dependency-tracking was given.
3396 if test "${enable_dependency_tracking+set}" = set; then :
3397 enableval=$enable_dependency_tracking;
3398 fi
3399
3400 if test "x$enable_dependency_tracking" != xno; then
3401 am_depcomp="$ac_aux_dir/depcomp"
3402 AMDEPBACKSLASH='\'
3403 am__nodep='_no'
3404 fi
3405 if test "x$enable_dependency_tracking" != xno; then
3406 AMDEP_TRUE=
3407 AMDEP_FALSE='#'
3408 else
3409 AMDEP_TRUE='#'
3410 AMDEP_FALSE=
3411 fi
3412
3413
3414 ac_ext=c
3415 ac_cpp='$CPP $CPPFLAGS'
3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_prog_CC+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456
3457 fi
3458 if test -z "$ac_cv_prog_CC"; then
3459 ac_ct_CC=$CC
3460 # Extract the first word of "gcc", so it can be a program name with args.
3461 set dummy gcc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 if test -n "$ac_ct_CC"; then
3468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3469 else
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473 IFS=$as_save_IFS
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_prog_ac_ct_CC="gcc"
3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 break 2
3480 fi
3481 done
3482 done
3483 IFS=$as_save_IFS
3484
3485 fi
3486 fi
3487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3488 if test -n "$ac_ct_CC"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3490 $as_echo "$ac_ct_CC" >&6; }
3491 else
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3494 fi
3495
3496 if test "x$ac_ct_CC" = x; then
3497 CC=""
3498 else
3499 case $cross_compiling:$ac_tool_warned in
3500 yes:)
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3503 ac_tool_warned=yes ;;
3504 esac
3505 CC=$ac_ct_CC
3506 fi
3507 else
3508 CC="$ac_cv_prog_CC"
3509 fi
3510
3511 if test -z "$CC"; then
3512 if test -n "$ac_tool_prefix"; then
3513 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3514 set dummy ${ac_tool_prefix}cc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_CC+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_CC="${ac_tool_prefix}cc"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534 done
3535 done
3536 IFS=$as_save_IFS
3537
3538 fi
3539 fi
3540 CC=$ac_cv_prog_CC
3541 if test -n "$CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3543 $as_echo "$CC" >&6; }
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 fi
3548
3549
3550 fi
3551 fi
3552 if test -z "$CC"; then
3553 # Extract the first word of "cc", so it can be a program name with args.
3554 set dummy cc; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if ${ac_cv_prog_CC+:} false; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3562 else
3563 ac_prog_rejected=no
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3572 ac_prog_rejected=yes
3573 continue
3574 fi
3575 ac_cv_prog_CC="cc"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 break 2
3578 fi
3579 done
3580 done
3581 IFS=$as_save_IFS
3582
3583 if test $ac_prog_rejected = yes; then
3584 # We found a bogon in the path, so make sure we never use it.
3585 set dummy $ac_cv_prog_CC
3586 shift
3587 if test $# != 0; then
3588 # We chose a different compiler from the bogus one.
3589 # However, it has the same basename, so the bogon will be chosen
3590 # first if we set CC to just the basename; use the full file name.
3591 shift
3592 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3593 fi
3594 fi
3595 fi
3596 fi
3597 CC=$ac_cv_prog_CC
3598 if test -n "$CC"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3600 $as_echo "$CC" >&6; }
3601 else
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3604 fi
3605
3606
3607 fi
3608 if test -z "$CC"; then
3609 if test -n "$ac_tool_prefix"; then
3610 for ac_prog in cl.exe
3611 do
3612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615 $as_echo_n "checking for $ac_word... " >&6; }
3616 if ${ac_cv_prog_CC+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 if test -n "$CC"; then
3620 ac_cv_prog_CC="$CC" # Let the user override the test.
3621 else
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3624 do
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3629 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633 done
3634 done
3635 IFS=$as_save_IFS
3636
3637 fi
3638 fi
3639 CC=$ac_cv_prog_CC
3640 if test -n "$CC"; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3642 $as_echo "$CC" >&6; }
3643 else
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3646 fi
3647
3648
3649 test -n "$CC" && break
3650 done
3651 fi
3652 if test -z "$CC"; then
3653 ac_ct_CC=$CC
3654 for ac_prog in cl.exe
3655 do
3656 # Extract the first word of "$ac_prog", so it can be a program name with args.
3657 set dummy $ac_prog; ac_word=$2
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659 $as_echo_n "checking for $ac_word... " >&6; }
3660 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if test -n "$ac_ct_CC"; then
3664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673 ac_cv_prog_ac_ct_CC="$ac_prog"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677 done
3678 done
3679 IFS=$as_save_IFS
3680
3681 fi
3682 fi
3683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684 if test -n "$ac_ct_CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3686 $as_echo "$ac_ct_CC" >&6; }
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3690 fi
3691
3692
3693 test -n "$ac_ct_CC" && break
3694 done
3695
3696 if test "x$ac_ct_CC" = x; then
3697 CC=""
3698 else
3699 case $cross_compiling:$ac_tool_warned in
3700 yes:)
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3703 ac_tool_warned=yes ;;
3704 esac
3705 CC=$ac_ct_CC
3706 fi
3707 fi
3708
3709 fi
3710
3711
3712 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error $? "no acceptable C compiler found in \$PATH
3715 See \`config.log' for more details" "$LINENO" 5; }
3716
3717 # Provide some information about the compiler.
3718 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3719 set X $ac_compile
3720 ac_compiler=$2
3721 for ac_option in --version -v -V -qversion; do
3722 { { ac_try="$ac_compiler $ac_option >&5"
3723 case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3730 ac_status=$?
3731 if test -s conftest.err; then
3732 sed '10a\
3733 ... rest of stderr output deleted ...
3734 10q' conftest.err >conftest.er1
3735 cat conftest.er1 >&5
3736 fi
3737 rm -f conftest.er1 conftest.err
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }
3740 done
3741
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744
3745 int
3746 main ()
3747 {
3748
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 ac_clean_files_save=$ac_clean_files
3754 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3755 # Try to create an executable without -o first, disregard a.out.
3756 # It will help us diagnose broken compilers, and finding out an intuition
3757 # of exeext.
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3759 $as_echo_n "checking whether the C compiler works... " >&6; }
3760 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3761
3762 # The possible output files:
3763 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3764
3765 ac_rmfiles=
3766 for ac_file in $ac_files
3767 do
3768 case $ac_file in
3769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3771 esac
3772 done
3773 rm -f $ac_rmfiles
3774
3775 if { { ac_try="$ac_link_default"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781 $as_echo "$ac_try_echo"; } >&5
3782 (eval "$ac_link_default") 2>&5
3783 ac_status=$?
3784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785 test $ac_status = 0; }; then :
3786 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3787 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3788 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3789 # so that the user can short-circuit this test for compilers unknown to
3790 # Autoconf.
3791 for ac_file in $ac_files ''
3792 do
3793 test -f "$ac_file" || continue
3794 case $ac_file in
3795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3796 ;;
3797 [ab].out )
3798 # We found the default executable, but exeext='' is most
3799 # certainly right.
3800 break;;
3801 *.* )
3802 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3803 then :; else
3804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3805 fi
3806 # We set ac_cv_exeext here because the later test for it is not
3807 # safe: cross compilers may not add the suffix if given an `-o'
3808 # argument, so we may need to know it at that point already.
3809 # Even if this section looks crufty: it has the advantage of
3810 # actually working.
3811 break;;
3812 * )
3813 break;;
3814 esac
3815 done
3816 test "$ac_cv_exeext" = no && ac_cv_exeext=
3817
3818 else
3819 ac_file=''
3820 fi
3821 if test -z "$ac_file"; then :
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error 77 "C compiler cannot create executables
3830 See \`config.log' for more details" "$LINENO" 5; }
3831 else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3833 $as_echo "yes" >&6; }
3834 fi
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3836 $as_echo_n "checking for C compiler default output file name... " >&6; }
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3838 $as_echo "$ac_file" >&6; }
3839 ac_exeext=$ac_cv_exeext
3840
3841 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3842 ac_clean_files=$ac_clean_files_save
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3844 $as_echo_n "checking for suffix of executables... " >&6; }
3845 if { { ac_try="$ac_link"
3846 case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_link") 2>&5
3853 ac_status=$?
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }; then :
3856 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3857 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3858 # work properly (i.e., refer to `conftest.exe'), while it won't with
3859 # `rm'.
3860 for ac_file in conftest.exe conftest conftest.*; do
3861 test -f "$ac_file" || continue
3862 case $ac_file in
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3864 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3865 break;;
3866 * ) break;;
3867 esac
3868 done
3869 else
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3873 See \`config.log' for more details" "$LINENO" 5; }
3874 fi
3875 rm -f conftest conftest$ac_cv_exeext
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3877 $as_echo "$ac_cv_exeext" >&6; }
3878
3879 rm -f conftest.$ac_ext
3880 EXEEXT=$ac_cv_exeext
3881 ac_exeext=$EXEEXT
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884 #include <stdio.h>
3885 int
3886 main ()
3887 {
3888 FILE *f = fopen ("conftest.out", "w");
3889 return ferror (f) || fclose (f) != 0;
3890
3891 ;
3892 return 0;
3893 }
3894 _ACEOF
3895 ac_clean_files="$ac_clean_files conftest.out"
3896 # Check that the compiler produces executables we can run. If not, either
3897 # the compiler is broken, or we cross compile.
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3899 $as_echo_n "checking whether we are cross compiling... " >&6; }
3900 if test "$cross_compiling" != yes; then
3901 { { ac_try="$ac_link"
3902 case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_link") 2>&5
3909 ac_status=$?
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }
3912 if { ac_try='./conftest$ac_cv_exeext'
3913 { { case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919 (eval "$ac_try") 2>&5
3920 ac_status=$?
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }; }; then
3923 cross_compiling=no
3924 else
3925 if test "$cross_compiling" = maybe; then
3926 cross_compiling=yes
3927 else
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error $? "cannot run C compiled programs.
3931 If you meant to cross compile, use \`--host'.
3932 See \`config.log' for more details" "$LINENO" 5; }
3933 fi
3934 fi
3935 fi
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3937 $as_echo "$cross_compiling" >&6; }
3938
3939 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3940 ac_clean_files=$ac_clean_files_save
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3942 $as_echo_n "checking for suffix of object files... " >&6; }
3943 if ${ac_cv_objext+:} false; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3948
3949 int
3950 main ()
3951 {
3952
3953 ;
3954 return 0;
3955 }
3956 _ACEOF
3957 rm -f conftest.o conftest.obj
3958 if { { ac_try="$ac_compile"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_compile") 2>&5
3966 ac_status=$?
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }; then :
3969 for ac_file in conftest.o conftest.obj conftest.*; do
3970 test -f "$ac_file" || continue;
3971 case $ac_file in
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3974 break;;
3975 esac
3976 done
3977 else
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error $? "cannot compute suffix of object files: cannot compile
3984 See \`config.log' for more details" "$LINENO" 5; }
3985 fi
3986 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3987 fi
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3989 $as_echo "$ac_cv_objext" >&6; }
3990 OBJEXT=$ac_cv_objext
3991 ac_objext=$OBJEXT
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3993 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3994 if ${ac_cv_c_compiler_gnu+:} false; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
3999
4000 int
4001 main ()
4002 {
4003 #ifndef __GNUC__
4004 choke me
4005 #endif
4006
4007 ;
4008 return 0;
4009 }
4010 _ACEOF
4011 if ac_fn_c_try_compile "$LINENO"; then :
4012 ac_compiler_gnu=yes
4013 else
4014 ac_compiler_gnu=no
4015 fi
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4018
4019 fi
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4021 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4022 if test $ac_compiler_gnu = yes; then
4023 GCC=yes
4024 else
4025 GCC=
4026 fi
4027 ac_test_CFLAGS=${CFLAGS+set}
4028 ac_save_CFLAGS=$CFLAGS
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4030 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4031 if ${ac_cv_prog_cc_g+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 ac_save_c_werror_flag=$ac_c_werror_flag
4035 ac_c_werror_flag=yes
4036 ac_cv_prog_cc_g=no
4037 CFLAGS="-g"
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040
4041 int
4042 main ()
4043 {
4044
4045 ;
4046 return 0;
4047 }
4048 _ACEOF
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050 ac_cv_prog_cc_g=yes
4051 else
4052 CFLAGS=""
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055
4056 int
4057 main ()
4058 {
4059
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065
4066 else
4067 ac_c_werror_flag=$ac_save_c_werror_flag
4068 CFLAGS="-g"
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071
4072 int
4073 main ()
4074 {
4075
4076 ;
4077 return 0;
4078 }
4079 _ACEOF
4080 if ac_fn_c_try_compile "$LINENO"; then :
4081 ac_cv_prog_cc_g=yes
4082 fi
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 fi
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 fi
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 ac_c_werror_flag=$ac_save_c_werror_flag
4089 fi
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4091 $as_echo "$ac_cv_prog_cc_g" >&6; }
4092 if test "$ac_test_CFLAGS" = set; then
4093 CFLAGS=$ac_save_CFLAGS
4094 elif test $ac_cv_prog_cc_g = yes; then
4095 if test "$GCC" = yes; then
4096 CFLAGS="-g -O2"
4097 else
4098 CFLAGS="-g"
4099 fi
4100 else
4101 if test "$GCC" = yes; then
4102 CFLAGS="-O2"
4103 else
4104 CFLAGS=
4105 fi
4106 fi
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4108 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4109 if ${ac_cv_prog_cc_c89+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 ac_cv_prog_cc_c89=no
4113 ac_save_CC=$CC
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116 #include <stdarg.h>
4117 #include <stdio.h>
4118 struct stat;
4119 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4120 struct buf { int x; };
4121 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4122 static char *e (p, i)
4123 char **p;
4124 int i;
4125 {
4126 return p[i];
4127 }
4128 static char *f (char * (*g) (char **, int), char **p, ...)
4129 {
4130 char *s;
4131 va_list v;
4132 va_start (v,p);
4133 s = g (p, va_arg (v,int));
4134 va_end (v);
4135 return s;
4136 }
4137
4138 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4139 function prototypes and stuff, but not '\xHH' hex character constants.
4140 These don't provoke an error unfortunately, instead are silently treated
4141 as 'x'. The following induces an error, until -std is added to get
4142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4143 array size at least. It's necessary to write '\x00'==0 to get something
4144 that's true only with -std. */
4145 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4146
4147 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4148 inside strings and character constants. */
4149 #define FOO(x) 'x'
4150 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4151
4152 int test (int i, double x);
4153 struct s1 {int (*f) (int a);};
4154 struct s2 {int (*f) (double a);};
4155 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4156 int argc;
4157 char **argv;
4158 int
4159 main ()
4160 {
4161 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4162 ;
4163 return 0;
4164 }
4165 _ACEOF
4166 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4167 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4168 do
4169 CC="$ac_save_CC $ac_arg"
4170 if ac_fn_c_try_compile "$LINENO"; then :
4171 ac_cv_prog_cc_c89=$ac_arg
4172 fi
4173 rm -f core conftest.err conftest.$ac_objext
4174 test "x$ac_cv_prog_cc_c89" != "xno" && break
4175 done
4176 rm -f conftest.$ac_ext
4177 CC=$ac_save_CC
4178
4179 fi
4180 # AC_CACHE_VAL
4181 case "x$ac_cv_prog_cc_c89" in
4182 x)
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4184 $as_echo "none needed" >&6; } ;;
4185 xno)
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4187 $as_echo "unsupported" >&6; } ;;
4188 *)
4189 CC="$CC $ac_cv_prog_cc_c89"
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4191 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4192 esac
4193 if test "x$ac_cv_prog_cc_c89" != xno; then :
4194
4195 fi
4196
4197 ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202
4203 depcc="$CC" am_compiler_list=
4204
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4206 $as_echo_n "checking dependency style of $depcc... " >&6; }
4207 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4211 # We make a subdir and do the tests there. Otherwise we can end up
4212 # making bogus files that we don't know about and never remove. For
4213 # instance it was reported that on HP-UX the gcc test will end up
4214 # making a dummy file named 'D' -- because '-MD' means "put the output
4215 # in D".
4216 rm -rf conftest.dir
4217 mkdir conftest.dir
4218 # Copy depcomp to subdir because otherwise we won't find it if we're
4219 # using a relative directory.
4220 cp "$am_depcomp" conftest.dir
4221 cd conftest.dir
4222 # We will build objects and dependencies in a subdirectory because
4223 # it helps to detect inapplicable dependency modes. For instance
4224 # both Tru64's cc and ICC support -MD to output dependencies as a
4225 # side effect of compilation, but ICC will put the dependencies in
4226 # the current directory while Tru64 will put them in the object
4227 # directory.
4228 mkdir sub
4229
4230 am_cv_CC_dependencies_compiler_type=none
4231 if test "$am_compiler_list" = ""; then
4232 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4233 fi
4234 am__universal=false
4235 case " $depcc " in #(
4236 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4237 esac
4238
4239 for depmode in $am_compiler_list; do
4240 # Setup a source with many dependencies, because some compilers
4241 # like to wrap large dependency lists on column 80 (with \), and
4242 # we should not choose a depcomp mode which is confused by this.
4243 #
4244 # We need to recreate these files for each test, as the compiler may
4245 # overwrite some of them when testing with obscure command lines.
4246 # This happens at least with the AIX C compiler.
4247 : > sub/conftest.c
4248 for i in 1 2 3 4 5 6; do
4249 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4250 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4251 # Solaris 10 /bin/sh.
4252 echo '/* dummy */' > sub/conftst$i.h
4253 done
4254 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4255
4256 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4257 # mode. It turns out that the SunPro C++ compiler does not properly
4258 # handle '-M -o', and we need to detect this. Also, some Intel
4259 # versions had trouble with output in subdirs.
4260 am__obj=sub/conftest.${OBJEXT-o}
4261 am__minus_obj="-o $am__obj"
4262 case $depmode in
4263 gcc)
4264 # This depmode causes a compiler race in universal mode.
4265 test "$am__universal" = false || continue
4266 ;;
4267 nosideeffect)
4268 # After this tag, mechanisms are not by side-effect, so they'll
4269 # only be used when explicitly requested.
4270 if test "x$enable_dependency_tracking" = xyes; then
4271 continue
4272 else
4273 break
4274 fi
4275 ;;
4276 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4277 # This compiler won't grok '-c -o', but also, the minuso test has
4278 # not run yet. These depmodes are late enough in the game, and
4279 # so weak that their functioning should not be impacted.
4280 am__obj=conftest.${OBJEXT-o}
4281 am__minus_obj=
4282 ;;
4283 none) break ;;
4284 esac
4285 if depmode=$depmode \
4286 source=sub/conftest.c object=$am__obj \
4287 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4288 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4289 >/dev/null 2>conftest.err &&
4290 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4291 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4292 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4293 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4294 # icc doesn't choke on unknown options, it will just issue warnings
4295 # or remarks (even with -Werror). So we grep stderr for any message
4296 # that says an option was ignored or not supported.
4297 # When given -MP, icc 7.0 and 7.1 complain thusly:
4298 # icc: Command line warning: ignoring option '-M'; no argument required
4299 # The diagnosis changed in icc 8.0:
4300 # icc: Command line remark: option '-MP' not supported
4301 if (grep 'ignoring option' conftest.err ||
4302 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4303 am_cv_CC_dependencies_compiler_type=$depmode
4304 break
4305 fi
4306 fi
4307 done
4308
4309 cd ..
4310 rm -rf conftest.dir
4311 else
4312 am_cv_CC_dependencies_compiler_type=none
4313 fi
4314
4315 fi
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4317 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4318 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4319
4320 if
4321 test "x$enable_dependency_tracking" != xno \
4322 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4323 am__fastdepCC_TRUE=
4324 am__fastdepCC_FALSE='#'
4325 else
4326 am__fastdepCC_TRUE='#'
4327 am__fastdepCC_FALSE=
4328 fi
4329
4330
4331 case $ac_cv_prog_cc_stdc in #(
4332 no) :
4333 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4334 *) :
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4336 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4337 if ${ac_cv_prog_cc_c99+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 ac_cv_prog_cc_c99=no
4341 ac_save_CC=$CC
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <stdarg.h>
4345 #include <stdbool.h>
4346 #include <stdlib.h>
4347 #include <wchar.h>
4348 #include <stdio.h>
4349
4350 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4351 #define debug(...) fprintf (stderr, __VA_ARGS__)
4352 #define showlist(...) puts (#__VA_ARGS__)
4353 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4354 static void
4355 test_varargs_macros (void)
4356 {
4357 int x = 1234;
4358 int y = 5678;
4359 debug ("Flag");
4360 debug ("X = %d\n", x);
4361 showlist (The first, second, and third items.);
4362 report (x>y, "x is %d but y is %d", x, y);
4363 }
4364
4365 // Check long long types.
4366 #define BIG64 18446744073709551615ull
4367 #define BIG32 4294967295ul
4368 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4369 #if !BIG_OK
4370 your preprocessor is broken;
4371 #endif
4372 #if BIG_OK
4373 #else
4374 your preprocessor is broken;
4375 #endif
4376 static long long int bignum = -9223372036854775807LL;
4377 static unsigned long long int ubignum = BIG64;
4378
4379 struct incomplete_array
4380 {
4381 int datasize;
4382 double data[];
4383 };
4384
4385 struct named_init {
4386 int number;
4387 const wchar_t *name;
4388 double average;
4389 };
4390
4391 typedef const char *ccp;
4392
4393 static inline int
4394 test_restrict (ccp restrict text)
4395 {
4396 // See if C++-style comments work.
4397 // Iterate through items via the restricted pointer.
4398 // Also check for declarations in for loops.
4399 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4400 continue;
4401 return 0;
4402 }
4403
4404 // Check varargs and va_copy.
4405 static void
4406 test_varargs (const char *format, ...)
4407 {
4408 va_list args;
4409 va_start (args, format);
4410 va_list args_copy;
4411 va_copy (args_copy, args);
4412
4413 const char *str;
4414 int number;
4415 float fnumber;
4416
4417 while (*format)
4418 {
4419 switch (*format++)
4420 {
4421 case 's': // string
4422 str = va_arg (args_copy, const char *);
4423 break;
4424 case 'd': // int
4425 number = va_arg (args_copy, int);
4426 break;
4427 case 'f': // float
4428 fnumber = va_arg (args_copy, double);
4429 break;
4430 default:
4431 break;
4432 }
4433 }
4434 va_end (args_copy);
4435 va_end (args);
4436 }
4437
4438 int
4439 main ()
4440 {
4441
4442 // Check bool.
4443 _Bool success = false;
4444
4445 // Check restrict.
4446 if (test_restrict ("String literal") == 0)
4447 success = true;
4448 char *restrict newvar = "Another string";
4449
4450 // Check varargs.
4451 test_varargs ("s, d' f .", "string", 65, 34.234);
4452 test_varargs_macros ();
4453
4454 // Check flexible array members.
4455 struct incomplete_array *ia =
4456 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4457 ia->datasize = 10;
4458 for (int i = 0; i < ia->datasize; ++i)
4459 ia->data[i] = i * 1.234;
4460
4461 // Check named initializers.
4462 struct named_init ni = {
4463 .number = 34,
4464 .name = L"Test wide string",
4465 .average = 543.34343,
4466 };
4467
4468 ni.number = 58;
4469
4470 int dynamic_array[ni.number];
4471 dynamic_array[ni.number - 1] = 543;
4472
4473 // work around unused variable warnings
4474 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4475 || dynamic_array[ni.number - 1] != 543);
4476
4477 ;
4478 return 0;
4479 }
4480 _ACEOF
4481 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4482 do
4483 CC="$ac_save_CC $ac_arg"
4484 if ac_fn_c_try_compile "$LINENO"; then :
4485 ac_cv_prog_cc_c99=$ac_arg
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext
4488 test "x$ac_cv_prog_cc_c99" != "xno" && break
4489 done
4490 rm -f conftest.$ac_ext
4491 CC=$ac_save_CC
4492
4493 fi
4494 # AC_CACHE_VAL
4495 case "x$ac_cv_prog_cc_c99" in
4496 x)
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4498 $as_echo "none needed" >&6; } ;;
4499 xno)
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4501 $as_echo "unsupported" >&6; } ;;
4502 *)
4503 CC="$CC $ac_cv_prog_cc_c99"
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4505 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4506 esac
4507 if test "x$ac_cv_prog_cc_c99" != xno; then :
4508 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4509 else
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4511 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4512 if ${ac_cv_prog_cc_c89+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 ac_cv_prog_cc_c89=no
4516 ac_save_CC=$CC
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 #include <stdarg.h>
4520 #include <stdio.h>
4521 struct stat;
4522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4523 struct buf { int x; };
4524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4525 static char *e (p, i)
4526 char **p;
4527 int i;
4528 {
4529 return p[i];
4530 }
4531 static char *f (char * (*g) (char **, int), char **p, ...)
4532 {
4533 char *s;
4534 va_list v;
4535 va_start (v,p);
4536 s = g (p, va_arg (v,int));
4537 va_end (v);
4538 return s;
4539 }
4540
4541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4542 function prototypes and stuff, but not '\xHH' hex character constants.
4543 These don't provoke an error unfortunately, instead are silently treated
4544 as 'x'. The following induces an error, until -std is added to get
4545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4546 array size at least. It's necessary to write '\x00'==0 to get something
4547 that's true only with -std. */
4548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4549
4550 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4551 inside strings and character constants. */
4552 #define FOO(x) 'x'
4553 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4554
4555 int test (int i, double x);
4556 struct s1 {int (*f) (int a);};
4557 struct s2 {int (*f) (double a);};
4558 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4559 int argc;
4560 char **argv;
4561 int
4562 main ()
4563 {
4564 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4570 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4571 do
4572 CC="$ac_save_CC $ac_arg"
4573 if ac_fn_c_try_compile "$LINENO"; then :
4574 ac_cv_prog_cc_c89=$ac_arg
4575 fi
4576 rm -f core conftest.err conftest.$ac_objext
4577 test "x$ac_cv_prog_cc_c89" != "xno" && break
4578 done
4579 rm -f conftest.$ac_ext
4580 CC=$ac_save_CC
4581
4582 fi
4583 # AC_CACHE_VAL
4584 case "x$ac_cv_prog_cc_c89" in
4585 x)
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4587 $as_echo "none needed" >&6; } ;;
4588 xno)
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4590 $as_echo "unsupported" >&6; } ;;
4591 *)
4592 CC="$CC $ac_cv_prog_cc_c89"
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4594 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4595 esac
4596 if test "x$ac_cv_prog_cc_c89" != xno; then :
4597 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4598 else
4599 ac_cv_prog_cc_stdc=no
4600 fi
4601
4602 fi
4603 ;;
4604 esac
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4606 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4607 if ${ac_cv_prog_cc_stdc+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 fi
4610
4611 case $ac_cv_prog_cc_stdc in #(
4612 no) :
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4614 $as_echo "unsupported" >&6; } ;; #(
4615 '') :
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4617 $as_echo "none needed" >&6; } ;; #(
4618 *) :
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4620 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4621 esac
4622
4623
4624 ac_ext=c
4625 ac_cpp='$CPP $CPPFLAGS'
4626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4630 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4631 # On Suns, sometimes $CPP names a directory.
4632 if test -n "$CPP" && test -d "$CPP"; then
4633 CPP=
4634 fi
4635 if test -z "$CPP"; then
4636 if ${ac_cv_prog_CPP+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 # Double quotes because CPP needs to be expanded
4640 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4641 do
4642 ac_preproc_ok=false
4643 for ac_c_preproc_warn_flag in '' yes
4644 do
4645 # Use a header file that comes with gcc, so configuring glibc
4646 # with a fresh cross-compiler works.
4647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4648 # <limits.h> exists even on freestanding compilers.
4649 # On the NeXT, cc -E runs the code through the compiler's parser,
4650 # not just through cpp. "Syntax error" is here to catch this case.
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4653 #ifdef __STDC__
4654 # include <limits.h>
4655 #else
4656 # include <assert.h>
4657 #endif
4658 Syntax error
4659 _ACEOF
4660 if ac_fn_c_try_cpp "$LINENO"; then :
4661
4662 else
4663 # Broken: fails on valid input.
4664 continue
4665 fi
4666 rm -f conftest.err conftest.i conftest.$ac_ext
4667
4668 # OK, works on sane cases. Now check whether nonexistent headers
4669 # can be detected and how.
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4672 #include <ac_nonexistent.h>
4673 _ACEOF
4674 if ac_fn_c_try_cpp "$LINENO"; then :
4675 # Broken: success on invalid input.
4676 continue
4677 else
4678 # Passes both tests.
4679 ac_preproc_ok=:
4680 break
4681 fi
4682 rm -f conftest.err conftest.i conftest.$ac_ext
4683
4684 done
4685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4686 rm -f conftest.i conftest.err conftest.$ac_ext
4687 if $ac_preproc_ok; then :
4688 break
4689 fi
4690
4691 done
4692 ac_cv_prog_CPP=$CPP
4693
4694 fi
4695 CPP=$ac_cv_prog_CPP
4696 else
4697 ac_cv_prog_CPP=$CPP
4698 fi
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4700 $as_echo "$CPP" >&6; }
4701 ac_preproc_ok=false
4702 for ac_c_preproc_warn_flag in '' yes
4703 do
4704 # Use a header file that comes with gcc, so configuring glibc
4705 # with a fresh cross-compiler works.
4706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4707 # <limits.h> exists even on freestanding compilers.
4708 # On the NeXT, cc -E runs the code through the compiler's parser,
4709 # not just through cpp. "Syntax error" is here to catch this case.
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 #ifdef __STDC__
4713 # include <limits.h>
4714 #else
4715 # include <assert.h>
4716 #endif
4717 Syntax error
4718 _ACEOF
4719 if ac_fn_c_try_cpp "$LINENO"; then :
4720
4721 else
4722 # Broken: fails on valid input.
4723 continue
4724 fi
4725 rm -f conftest.err conftest.i conftest.$ac_ext
4726
4727 # OK, works on sane cases. Now check whether nonexistent headers
4728 # can be detected and how.
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4731 #include <ac_nonexistent.h>
4732 _ACEOF
4733 if ac_fn_c_try_cpp "$LINENO"; then :
4734 # Broken: success on invalid input.
4735 continue
4736 else
4737 # Passes both tests.
4738 ac_preproc_ok=:
4739 break
4740 fi
4741 rm -f conftest.err conftest.i conftest.$ac_ext
4742
4743 done
4744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4745 rm -f conftest.i conftest.err conftest.$ac_ext
4746 if $ac_preproc_ok; then :
4747
4748 else
4749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4751 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4752 See \`config.log' for more details" "$LINENO" 5; }
4753 fi
4754
4755 ac_ext=c
4756 ac_cpp='$CPP $CPPFLAGS'
4757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4760
4761
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4763 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4764 if ${ac_cv_path_GREP+:} false; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 if test -z "$GREP"; then
4768 ac_path_GREP_found=false
4769 # Loop through the user's path and test for each of PROGNAME-LIST
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4772 do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_prog in grep ggrep; do
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4778 as_fn_executable_p "$ac_path_GREP" || continue
4779 # Check for GNU ac_path_GREP and select it if it is found.
4780 # Check for GNU $ac_path_GREP
4781 case `"$ac_path_GREP" --version 2>&1` in
4782 *GNU*)
4783 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4784 *)
4785 ac_count=0
4786 $as_echo_n 0123456789 >"conftest.in"
4787 while :
4788 do
4789 cat "conftest.in" "conftest.in" >"conftest.tmp"
4790 mv "conftest.tmp" "conftest.in"
4791 cp "conftest.in" "conftest.nl"
4792 $as_echo 'GREP' >> "conftest.nl"
4793 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4795 as_fn_arith $ac_count + 1 && ac_count=$as_val
4796 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4797 # Best one so far, save it but keep looking for a better one
4798 ac_cv_path_GREP="$ac_path_GREP"
4799 ac_path_GREP_max=$ac_count
4800 fi
4801 # 10*(2^10) chars as input seems more than enough
4802 test $ac_count -gt 10 && break
4803 done
4804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4805 esac
4806
4807 $ac_path_GREP_found && break 3
4808 done
4809 done
4810 done
4811 IFS=$as_save_IFS
4812 if test -z "$ac_cv_path_GREP"; then
4813 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4814 fi
4815 else
4816 ac_cv_path_GREP=$GREP
4817 fi
4818
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4821 $as_echo "$ac_cv_path_GREP" >&6; }
4822 GREP="$ac_cv_path_GREP"
4823
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4826 $as_echo_n "checking for egrep... " >&6; }
4827 if ${ac_cv_path_EGREP+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4831 then ac_cv_path_EGREP="$GREP -E"
4832 else
4833 if test -z "$EGREP"; then
4834 ac_path_EGREP_found=false
4835 # Loop through the user's path and test for each of PROGNAME-LIST
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4838 do
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_prog in egrep; do
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4844 as_fn_executable_p "$ac_path_EGREP" || continue
4845 # Check for GNU ac_path_EGREP and select it if it is found.
4846 # Check for GNU $ac_path_EGREP
4847 case `"$ac_path_EGREP" --version 2>&1` in
4848 *GNU*)
4849 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4850 *)
4851 ac_count=0
4852 $as_echo_n 0123456789 >"conftest.in"
4853 while :
4854 do
4855 cat "conftest.in" "conftest.in" >"conftest.tmp"
4856 mv "conftest.tmp" "conftest.in"
4857 cp "conftest.in" "conftest.nl"
4858 $as_echo 'EGREP' >> "conftest.nl"
4859 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4861 as_fn_arith $ac_count + 1 && ac_count=$as_val
4862 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4863 # Best one so far, save it but keep looking for a better one
4864 ac_cv_path_EGREP="$ac_path_EGREP"
4865 ac_path_EGREP_max=$ac_count
4866 fi
4867 # 10*(2^10) chars as input seems more than enough
4868 test $ac_count -gt 10 && break
4869 done
4870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4871 esac
4872
4873 $ac_path_EGREP_found && break 3
4874 done
4875 done
4876 done
4877 IFS=$as_save_IFS
4878 if test -z "$ac_cv_path_EGREP"; then
4879 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4880 fi
4881 else
4882 ac_cv_path_EGREP=$EGREP
4883 fi
4884
4885 fi
4886 fi
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4888 $as_echo "$ac_cv_path_EGREP" >&6; }
4889 EGREP="$ac_cv_path_EGREP"
4890
4891
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4893 $as_echo_n "checking for ANSI C header files... " >&6; }
4894 if ${ac_cv_header_stdc+:} false; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 #include <stdlib.h>
4900 #include <stdarg.h>
4901 #include <string.h>
4902 #include <float.h>
4903
4904 int
4905 main ()
4906 {
4907
4908 ;
4909 return 0;
4910 }
4911 _ACEOF
4912 if ac_fn_c_try_compile "$LINENO"; then :
4913 ac_cv_header_stdc=yes
4914 else
4915 ac_cv_header_stdc=no
4916 fi
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918
4919 if test $ac_cv_header_stdc = yes; then
4920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 #include <string.h>
4924
4925 _ACEOF
4926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4927 $EGREP "memchr" >/dev/null 2>&1; then :
4928
4929 else
4930 ac_cv_header_stdc=no
4931 fi
4932 rm -f conftest*
4933
4934 fi
4935
4936 if test $ac_cv_header_stdc = yes; then
4937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940 #include <stdlib.h>
4941
4942 _ACEOF
4943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944 $EGREP "free" >/dev/null 2>&1; then :
4945
4946 else
4947 ac_cv_header_stdc=no
4948 fi
4949 rm -f conftest*
4950
4951 fi
4952
4953 if test $ac_cv_header_stdc = yes; then
4954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4955 if test "$cross_compiling" = yes; then :
4956 :
4957 else
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4960 #include <ctype.h>
4961 #include <stdlib.h>
4962 #if ((' ' & 0x0FF) == 0x020)
4963 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4964 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4965 #else
4966 # define ISLOWER(c) \
4967 (('a' <= (c) && (c) <= 'i') \
4968 || ('j' <= (c) && (c) <= 'r') \
4969 || ('s' <= (c) && (c) <= 'z'))
4970 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4971 #endif
4972
4973 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4974 int
4975 main ()
4976 {
4977 int i;
4978 for (i = 0; i < 256; i++)
4979 if (XOR (islower (i), ISLOWER (i))
4980 || toupper (i) != TOUPPER (i))
4981 return 2;
4982 return 0;
4983 }
4984 _ACEOF
4985 if ac_fn_c_try_run "$LINENO"; then :
4986
4987 else
4988 ac_cv_header_stdc=no
4989 fi
4990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4991 conftest.$ac_objext conftest.beam conftest.$ac_ext
4992 fi
4993
4994 fi
4995 fi
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4997 $as_echo "$ac_cv_header_stdc" >&6; }
4998 if test $ac_cv_header_stdc = yes; then
4999
5000 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5001
5002 fi
5003
5004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5005 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5006 inttypes.h stdint.h unistd.h
5007 do :
5008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5009 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5010 "
5011 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5012 cat >>confdefs.h <<_ACEOF
5013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5014 _ACEOF
5015
5016 fi
5017
5018 done
5019
5020
5021
5022 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5023 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5024 MINIX=yes
5025 else
5026 MINIX=
5027 fi
5028
5029
5030 if test "$MINIX" = yes; then
5031
5032 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5033
5034
5035 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5036
5037
5038 $as_echo "#define _MINIX 1" >>confdefs.h
5039
5040 fi
5041
5042
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5044 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5045 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050
5051 # define __EXTENSIONS__ 1
5052 $ac_includes_default
5053 int
5054 main ()
5055 {
5056
5057 ;
5058 return 0;
5059 }
5060 _ACEOF
5061 if ac_fn_c_try_compile "$LINENO"; then :
5062 ac_cv_safe_to_define___extensions__=yes
5063 else
5064 ac_cv_safe_to_define___extensions__=no
5065 fi
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 fi
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5069 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5070 test $ac_cv_safe_to_define___extensions__ = yes &&
5071 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5072
5073 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5074
5075 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5076
5077 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5078
5079 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5080
5081
5082 if test "x$CC" != xcc; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5084 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5087 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5088 fi
5089 set dummy $CC; ac_cc=`$as_echo "$2" |
5090 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5091 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096
5097 int
5098 main ()
5099 {
5100
5101 ;
5102 return 0;
5103 }
5104 _ACEOF
5105 # Make sure it works both with $CC and with simple cc.
5106 # We do the test twice because some compilers refuse to overwrite an
5107 # existing .o file with -o, though they will create one.
5108 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5109 rm -f conftest2.*
5110 if { { case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113 esac
5114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5115 $as_echo "$ac_try_echo"; } >&5
5116 (eval "$ac_try") 2>&5
5117 ac_status=$?
5118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5119 test $ac_status = 0; } &&
5120 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5123 esac
5124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5125 $as_echo "$ac_try_echo"; } >&5
5126 (eval "$ac_try") 2>&5
5127 ac_status=$?
5128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129 test $ac_status = 0; };
5130 then
5131 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5132 if test "x$CC" != xcc; then
5133 # Test first that cc exists at all.
5134 if { ac_try='cc -c conftest.$ac_ext >&5'
5135 { { case "(($ac_try" in
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5138 esac
5139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5140 $as_echo "$ac_try_echo"; } >&5
5141 (eval "$ac_try") 2>&5
5142 ac_status=$?
5143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5144 test $ac_status = 0; }; }; then
5145 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5146 rm -f conftest2.*
5147 if { { case "(($ac_try" in
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5150 esac
5151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5152 $as_echo "$ac_try_echo"; } >&5
5153 (eval "$ac_try") 2>&5
5154 ac_status=$?
5155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5156 test $ac_status = 0; } &&
5157 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5160 esac
5161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5162 $as_echo "$ac_try_echo"; } >&5
5163 (eval "$ac_try") 2>&5
5164 ac_status=$?
5165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5166 test $ac_status = 0; };
5167 then
5168 # cc works too.
5169 :
5170 else
5171 # cc exists but doesn't like -o.
5172 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5173 fi
5174 fi
5175 fi
5176 else
5177 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5178 fi
5179 rm -f core conftest*
5180
5181 fi
5182 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5184 $as_echo "yes" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5188
5189 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5190
5191 fi
5192
5193 # FIXME: we rely on the cache variable name because
5194 # there is no other way.
5195 set dummy $CC
5196 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5197 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5198 if test "$am_t" != yes; then
5199 # Losing compiler, so override with the script.
5200 # FIXME: It is wrong to rewrite CC.
5201 # But if we don't then we get into trouble of one sort or another.
5202 # A longer-term fix would be to have automake use am__CC in this case,
5203 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5204 CC="$am_aux_dir/compile $CC"
5205 fi
5206
5207
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5209 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5210 if ${ac_cv_c_bigendian+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 ac_cv_c_bigendian=unknown
5214 # See if we're dealing with a universal compiler.
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #ifndef __APPLE_CC__
5218 not a universal capable compiler
5219 #endif
5220 typedef int dummy;
5221
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"; then :
5224
5225 # Check for potential -arch flags. It is not universal unless
5226 # there are at least two -arch flags with different values.
5227 ac_arch=
5228 ac_prev=
5229 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5230 if test -n "$ac_prev"; then
5231 case $ac_word in
5232 i?86 | x86_64 | ppc | ppc64)
5233 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5234 ac_arch=$ac_word
5235 else
5236 ac_cv_c_bigendian=universal
5237 break
5238 fi
5239 ;;
5240 esac
5241 ac_prev=
5242 elif test "x$ac_word" = "x-arch"; then
5243 ac_prev=arch
5244 fi
5245 done
5246 fi
5247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248 if test $ac_cv_c_bigendian = unknown; then
5249 # See if sys/param.h defines the BYTE_ORDER macro.
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5252 #include <sys/types.h>
5253 #include <sys/param.h>
5254
5255 int
5256 main ()
5257 {
5258 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5259 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5260 && LITTLE_ENDIAN)
5261 bogus endian macros
5262 #endif
5263
5264 ;
5265 return 0;
5266 }
5267 _ACEOF
5268 if ac_fn_c_try_compile "$LINENO"; then :
5269 # It does; now see whether it defined to BIG_ENDIAN or not.
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 #include <sys/types.h>
5273 #include <sys/param.h>
5274
5275 int
5276 main ()
5277 {
5278 #if BYTE_ORDER != BIG_ENDIAN
5279 not big endian
5280 #endif
5281
5282 ;
5283 return 0;
5284 }
5285 _ACEOF
5286 if ac_fn_c_try_compile "$LINENO"; then :
5287 ac_cv_c_bigendian=yes
5288 else
5289 ac_cv_c_bigendian=no
5290 fi
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 fi
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 fi
5295 if test $ac_cv_c_bigendian = unknown; then
5296 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #include <limits.h>
5300
5301 int
5302 main ()
5303 {
5304 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5305 bogus endian macros
5306 #endif
5307
5308 ;
5309 return 0;
5310 }
5311 _ACEOF
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313 # It does; now see whether it defined to _BIG_ENDIAN or not.
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 #include <limits.h>
5317
5318 int
5319 main ()
5320 {
5321 #ifndef _BIG_ENDIAN
5322 not big endian
5323 #endif
5324
5325 ;
5326 return 0;
5327 }
5328 _ACEOF
5329 if ac_fn_c_try_compile "$LINENO"; then :
5330 ac_cv_c_bigendian=yes
5331 else
5332 ac_cv_c_bigendian=no
5333 fi
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 fi
5338 if test $ac_cv_c_bigendian = unknown; then
5339 # Compile a test program.
5340 if test "$cross_compiling" = yes; then :
5341 # Try to guess by grepping values from an object file.
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 short int ascii_mm[] =
5345 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5346 short int ascii_ii[] =
5347 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5348 int use_ascii (int i) {
5349 return ascii_mm[i] + ascii_ii[i];
5350 }
5351 short int ebcdic_ii[] =
5352 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5353 short int ebcdic_mm[] =
5354 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5355 int use_ebcdic (int i) {
5356 return ebcdic_mm[i] + ebcdic_ii[i];
5357 }
5358 extern int foo;
5359
5360 int
5361 main ()
5362 {
5363 return use_ascii (foo) == use_ebcdic (foo);
5364 ;
5365 return 0;
5366 }
5367 _ACEOF
5368 if ac_fn_c_try_compile "$LINENO"; then :
5369 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5370 ac_cv_c_bigendian=yes
5371 fi
5372 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5373 if test "$ac_cv_c_bigendian" = unknown; then
5374 ac_cv_c_bigendian=no
5375 else
5376 # finding both strings is unlikely to happen, but who knows?
5377 ac_cv_c_bigendian=unknown
5378 fi
5379 fi
5380 fi
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 else
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 $ac_includes_default
5386 int
5387 main ()
5388 {
5389
5390 /* Are we little or big endian? From Harbison&Steele. */
5391 union
5392 {
5393 long int l;
5394 char c[sizeof (long int)];
5395 } u;
5396 u.l = 1;
5397 return u.c[sizeof (long int) - 1] == 1;
5398
5399 ;
5400 return 0;
5401 }
5402 _ACEOF
5403 if ac_fn_c_try_run "$LINENO"; then :
5404 ac_cv_c_bigendian=no
5405 else
5406 ac_cv_c_bigendian=yes
5407 fi
5408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5409 conftest.$ac_objext conftest.beam conftest.$ac_ext
5410 fi
5411
5412 fi
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5415 $as_echo "$ac_cv_c_bigendian" >&6; }
5416 case $ac_cv_c_bigendian in #(
5417 yes)
5418 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5419 ;; #(
5420 no)
5421 ;; #(
5422 universal)
5423
5424 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5425
5426 ;; #(
5427 *)
5428 as_fn_error $? "unknown endianness
5429 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5430 esac
5431
5432
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5434 $as_echo_n "checking whether ln -s works... " >&6; }
5435 LN_S=$as_ln_s
5436 if test "$LN_S" = "ln -s"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5438 $as_echo "yes" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5441 $as_echo "no, using $LN_S" >&6; }
5442 fi
5443
5444 case `pwd` in
5445 *\ * | *\ *)
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5447 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5448 esac
5449
5450
5451
5452 macro_version='2.4.2'
5453 macro_revision='1.3337'
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467 ltmain="$ac_aux_dir/ltmain.sh"
5468
5469 # Backslashify metacharacters that are still active within
5470 # double-quoted strings.
5471 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5472
5473 # Same as above, but do not quote variable references.
5474 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5475
5476 # Sed substitution to delay expansion of an escaped shell variable in a
5477 # double_quote_subst'ed string.
5478 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5479
5480 # Sed substitution to delay expansion of an escaped single quote.
5481 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5482
5483 # Sed substitution to avoid accidental globbing in evaled expressions
5484 no_glob_subst='s/\*/\\\*/g'
5485
5486 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5487 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5488 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5489
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5491 $as_echo_n "checking how to print strings... " >&6; }
5492 # Test print first, because it will be a builtin if present.
5493 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5494 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5495 ECHO='print -r --'
5496 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5497 ECHO='printf %s\n'
5498 else
5499 # Use this function as a fallback that always works.
5500 func_fallback_echo ()
5501 {
5502 eval 'cat <<_LTECHO_EOF
5503 $1
5504 _LTECHO_EOF'
5505 }
5506 ECHO='func_fallback_echo'
5507 fi
5508
5509 # func_echo_all arg...
5510 # Invoke $ECHO with all args, space-separated.
5511 func_echo_all ()
5512 {
5513 $ECHO ""
5514 }
5515
5516 case "$ECHO" in
5517 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5518 $as_echo "printf" >&6; } ;;
5519 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5520 $as_echo "print -r" >&6; } ;;
5521 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5522 $as_echo "cat" >&6; } ;;
5523 esac
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5539 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5540 if ${ac_cv_path_SED+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5544 for ac_i in 1 2 3 4 5 6 7; do
5545 ac_script="$ac_script$as_nl$ac_script"
5546 done
5547 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5548 { ac_script=; unset ac_script;}
5549 if test -z "$SED"; then
5550 ac_path_SED_found=false
5551 # Loop through the user's path and test for each of PROGNAME-LIST
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5554 do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_prog in sed gsed; do
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5560 as_fn_executable_p "$ac_path_SED" || continue
5561 # Check for GNU ac_path_SED and select it if it is found.
5562 # Check for GNU $ac_path_SED
5563 case `"$ac_path_SED" --version 2>&1` in
5564 *GNU*)
5565 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5566 *)
5567 ac_count=0
5568 $as_echo_n 0123456789 >"conftest.in"
5569 while :
5570 do
5571 cat "conftest.in" "conftest.in" >"conftest.tmp"
5572 mv "conftest.tmp" "conftest.in"
5573 cp "conftest.in" "conftest.nl"
5574 $as_echo '' >> "conftest.nl"
5575 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5577 as_fn_arith $ac_count + 1 && ac_count=$as_val
5578 if test $ac_count -gt ${ac_path_SED_max-0}; then
5579 # Best one so far, save it but keep looking for a better one
5580 ac_cv_path_SED="$ac_path_SED"
5581 ac_path_SED_max=$ac_count
5582 fi
5583 # 10*(2^10) chars as input seems more than enough
5584 test $ac_count -gt 10 && break
5585 done
5586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5587 esac
5588
5589 $ac_path_SED_found && break 3
5590 done
5591 done
5592 done
5593 IFS=$as_save_IFS
5594 if test -z "$ac_cv_path_SED"; then
5595 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5596 fi
5597 else
5598 ac_cv_path_SED=$SED
5599 fi
5600
5601 fi
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5603 $as_echo "$ac_cv_path_SED" >&6; }
5604 SED="$ac_cv_path_SED"
5605 rm -f conftest.sed
5606
5607 test -z "$SED" && SED=sed
5608 Xsed="$SED -e 1s/^X//"
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5621 $as_echo_n "checking for fgrep... " >&6; }
5622 if ${ac_cv_path_FGREP+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5626 then ac_cv_path_FGREP="$GREP -F"
5627 else
5628 if test -z "$FGREP"; then
5629 ac_path_FGREP_found=false
5630 # Loop through the user's path and test for each of PROGNAME-LIST
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5633 do
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
5636 for ac_prog in fgrep; do
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5639 as_fn_executable_p "$ac_path_FGREP" || continue
5640 # Check for GNU ac_path_FGREP and select it if it is found.
5641 # Check for GNU $ac_path_FGREP
5642 case `"$ac_path_FGREP" --version 2>&1` in
5643 *GNU*)
5644 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5645 *)
5646 ac_count=0
5647 $as_echo_n 0123456789 >"conftest.in"
5648 while :
5649 do
5650 cat "conftest.in" "conftest.in" >"conftest.tmp"
5651 mv "conftest.tmp" "conftest.in"
5652 cp "conftest.in" "conftest.nl"
5653 $as_echo 'FGREP' >> "conftest.nl"
5654 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5656 as_fn_arith $ac_count + 1 && ac_count=$as_val
5657 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5658 # Best one so far, save it but keep looking for a better one
5659 ac_cv_path_FGREP="$ac_path_FGREP"
5660 ac_path_FGREP_max=$ac_count
5661 fi
5662 # 10*(2^10) chars as input seems more than enough
5663 test $ac_count -gt 10 && break
5664 done
5665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5666 esac
5667
5668 $ac_path_FGREP_found && break 3
5669 done
5670 done
5671 done
5672 IFS=$as_save_IFS
5673 if test -z "$ac_cv_path_FGREP"; then
5674 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5675 fi
5676 else
5677 ac_cv_path_FGREP=$FGREP
5678 fi
5679
5680 fi
5681 fi
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5683 $as_echo "$ac_cv_path_FGREP" >&6; }
5684 FGREP="$ac_cv_path_FGREP"
5685
5686
5687 test -z "$GREP" && GREP=grep
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707 # Check whether --with-gnu-ld was given.
5708 if test "${with_gnu_ld+set}" = set; then :
5709 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5710 else
5711 with_gnu_ld=no
5712 fi
5713
5714 ac_prog=ld
5715 if test "$GCC" = yes; then
5716 # Check if gcc -print-prog-name=ld gives a path.
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5718 $as_echo_n "checking for ld used by $CC... " >&6; }
5719 case $host in
5720 *-*-mingw*)
5721 # gcc leaves a trailing carriage return which upsets mingw
5722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5723 *)
5724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5725 esac
5726 case $ac_prog in
5727 # Accept absolute paths.
5728 [\\/]* | ?:[\\/]*)
5729 re_direlt='/[^/][^/]*/\.\./'
5730 # Canonicalize the pathname of ld
5731 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5732 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5733 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5734 done
5735 test -z "$LD" && LD="$ac_prog"
5736 ;;
5737 "")
5738 # If it fails, then pretend we aren't using GCC.
5739 ac_prog=ld
5740 ;;
5741 *)
5742 # If it is relative, then search for the first ld in PATH.
5743 with_gnu_ld=unknown
5744 ;;
5745 esac
5746 elif test "$with_gnu_ld" = yes; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5748 $as_echo_n "checking for GNU ld... " >&6; }
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5751 $as_echo_n "checking for non-GNU ld... " >&6; }
5752 fi
5753 if ${lt_cv_path_LD+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 if test -z "$LD"; then
5757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5758 for ac_dir in $PATH; do
5759 IFS="$lt_save_ifs"
5760 test -z "$ac_dir" && ac_dir=.
5761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5762 lt_cv_path_LD="$ac_dir/$ac_prog"
5763 # Check to see if the program is GNU ld. I'd rather use --version,
5764 # but apparently some variants of GNU ld only accept -v.
5765 # Break only if it was the GNU/non-GNU ld that we prefer.
5766 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5767 *GNU* | *'with BFD'*)
5768 test "$with_gnu_ld" != no && break
5769 ;;
5770 *)
5771 test "$with_gnu_ld" != yes && break
5772 ;;
5773 esac
5774 fi
5775 done
5776 IFS="$lt_save_ifs"
5777 else
5778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5779 fi
5780 fi
5781
5782 LD="$lt_cv_path_LD"
5783 if test -n "$LD"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5785 $as_echo "$LD" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5789 fi
5790 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5792 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5793 if ${lt_cv_prog_gnu_ld+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5797 case `$LD -v 2>&1 </dev/null` in
5798 *GNU* | *'with BFD'*)
5799 lt_cv_prog_gnu_ld=yes
5800 ;;
5801 *)
5802 lt_cv_prog_gnu_ld=no
5803 ;;
5804 esac
5805 fi
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5807 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5808 with_gnu_ld=$lt_cv_prog_gnu_ld
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5819 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5820 if ${lt_cv_path_NM+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 if test -n "$NM"; then
5824 # Let the user override the test.
5825 lt_cv_path_NM="$NM"
5826 else
5827 lt_nm_to_check="${ac_tool_prefix}nm"
5828 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5829 lt_nm_to_check="$lt_nm_to_check nm"
5830 fi
5831 for lt_tmp_nm in $lt_nm_to_check; do
5832 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5833 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5834 IFS="$lt_save_ifs"
5835 test -z "$ac_dir" && ac_dir=.
5836 tmp_nm="$ac_dir/$lt_tmp_nm"
5837 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5838 # Check to see if the nm accepts a BSD-compat flag.
5839 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5840 # nm: unknown option "B" ignored
5841 # Tru64's nm complains that /dev/null is an invalid object file
5842 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5843 */dev/null* | *'Invalid file or object type'*)
5844 lt_cv_path_NM="$tmp_nm -B"
5845 break
5846 ;;
5847 *)
5848 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5849 */dev/null*)
5850 lt_cv_path_NM="$tmp_nm -p"
5851 break
5852 ;;
5853 *)
5854 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5855 continue # so that we can try to find one that supports BSD flags
5856 ;;
5857 esac
5858 ;;
5859 esac
5860 fi
5861 done
5862 IFS="$lt_save_ifs"
5863 done
5864 : ${lt_cv_path_NM=no}
5865 fi
5866 fi
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5868 $as_echo "$lt_cv_path_NM" >&6; }
5869 if test "$lt_cv_path_NM" != "no"; then
5870 NM="$lt_cv_path_NM"
5871 else
5872 # Didn't find any BSD compatible name lister, look for dumpbin.
5873 if test -n "$DUMPBIN"; then :
5874 # Let the user override the test.
5875 else
5876 if test -n "$ac_tool_prefix"; then
5877 for ac_prog in dumpbin "link -dump"
5878 do
5879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if ${ac_cv_prog_DUMPBIN+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 if test -n "$DUMPBIN"; then
5887 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5896 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5899 fi
5900 done
5901 done
5902 IFS=$as_save_IFS
5903
5904 fi
5905 fi
5906 DUMPBIN=$ac_cv_prog_DUMPBIN
5907 if test -n "$DUMPBIN"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5909 $as_echo "$DUMPBIN" >&6; }
5910 else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
5913 fi
5914
5915
5916 test -n "$DUMPBIN" && break
5917 done
5918 fi
5919 if test -z "$DUMPBIN"; then
5920 ac_ct_DUMPBIN=$DUMPBIN
5921 for ac_prog in dumpbin "link -dump"
5922 do
5923 # Extract the first word of "$ac_prog", so it can be a program name with args.
5924 set dummy $ac_prog; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 if test -n "$ac_ct_DUMPBIN"; then
5931 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944 done
5945 done
5946 IFS=$as_save_IFS
5947
5948 fi
5949 fi
5950 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5951 if test -n "$ac_ct_DUMPBIN"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5953 $as_echo "$ac_ct_DUMPBIN" >&6; }
5954 else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5957 fi
5958
5959
5960 test -n "$ac_ct_DUMPBIN" && break
5961 done
5962
5963 if test "x$ac_ct_DUMPBIN" = x; then
5964 DUMPBIN=":"
5965 else
5966 case $cross_compiling:$ac_tool_warned in
5967 yes:)
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970 ac_tool_warned=yes ;;
5971 esac
5972 DUMPBIN=$ac_ct_DUMPBIN
5973 fi
5974 fi
5975
5976 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5977 *COFF*)
5978 DUMPBIN="$DUMPBIN -symbols"
5979 ;;
5980 *)
5981 DUMPBIN=:
5982 ;;
5983 esac
5984 fi
5985
5986 if test "$DUMPBIN" != ":"; then
5987 NM="$DUMPBIN"
5988 fi
5989 fi
5990 test -z "$NM" && NM=nm
5991
5992
5993
5994
5995
5996
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5998 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5999 if ${lt_cv_nm_interface+:} false; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 lt_cv_nm_interface="BSD nm"
6003 echo "int some_variable = 0;" > conftest.$ac_ext
6004 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6005 (eval "$ac_compile" 2>conftest.err)
6006 cat conftest.err >&5
6007 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6008 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6009 cat conftest.err >&5
6010 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6011 cat conftest.out >&5
6012 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6013 lt_cv_nm_interface="MS dumpbin"
6014 fi
6015 rm -f conftest*
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6018 $as_echo "$lt_cv_nm_interface" >&6; }
6019
6020 # find the maximum length of command line arguments
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6022 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6023 if ${lt_cv_sys_max_cmd_len+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 i=0
6027 teststring="ABCD"
6028
6029 case $build_os in
6030 msdosdjgpp*)
6031 # On DJGPP, this test can blow up pretty badly due to problems in libc
6032 # (any single argument exceeding 2000 bytes causes a buffer overrun
6033 # during glob expansion). Even if it were fixed, the result of this
6034 # check would be larger than it should be.
6035 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6036 ;;
6037
6038 gnu*)
6039 # Under GNU Hurd, this test is not required because there is
6040 # no limit to the length of command line arguments.
6041 # Libtool will interpret -1 as no limit whatsoever
6042 lt_cv_sys_max_cmd_len=-1;
6043 ;;
6044
6045 cygwin* | mingw* | cegcc*)
6046 # On Win9x/ME, this test blows up -- it succeeds, but takes
6047 # about 5 minutes as the teststring grows exponentially.
6048 # Worse, since 9x/ME are not pre-emptively multitasking,
6049 # you end up with a "frozen" computer, even though with patience
6050 # the test eventually succeeds (with a max line length of 256k).
6051 # Instead, let's just punt: use the minimum linelength reported by
6052 # all of the supported platforms: 8192 (on NT/2K/XP).
6053 lt_cv_sys_max_cmd_len=8192;
6054 ;;
6055
6056 mint*)
6057 # On MiNT this can take a long time and run out of memory.
6058 lt_cv_sys_max_cmd_len=8192;
6059 ;;
6060
6061 amigaos*)
6062 # On AmigaOS with pdksh, this test takes hours, literally.
6063 # So we just punt and use a minimum line length of 8192.
6064 lt_cv_sys_max_cmd_len=8192;
6065 ;;
6066
6067 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6068 # This has been around since 386BSD, at least. Likely further.
6069 if test -x /sbin/sysctl; then
6070 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6071 elif test -x /usr/sbin/sysctl; then
6072 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6073 else
6074 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6075 fi
6076 # And add a safety zone
6077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6078 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6079 ;;
6080
6081 interix*)
6082 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6083 lt_cv_sys_max_cmd_len=196608
6084 ;;
6085
6086 os2*)
6087 # The test takes a long time on OS/2.
6088 lt_cv_sys_max_cmd_len=8192
6089 ;;
6090
6091 osf*)
6092 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6093 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6094 # nice to cause kernel panics so lets avoid the loop below.
6095 # First set a reasonable default.
6096 lt_cv_sys_max_cmd_len=16384
6097 #
6098 if test -x /sbin/sysconfig; then
6099 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6100 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6101 esac
6102 fi
6103 ;;
6104 sco3.2v5*)
6105 lt_cv_sys_max_cmd_len=102400
6106 ;;
6107 sysv5* | sco5v6* | sysv4.2uw2*)
6108 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6109 if test -n "$kargmax"; then
6110 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6111 else
6112 lt_cv_sys_max_cmd_len=32768
6113 fi
6114 ;;
6115 *)
6116 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6117 if test -n "$lt_cv_sys_max_cmd_len"; then
6118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6120 else
6121 # Make teststring a little bigger before we do anything with it.
6122 # a 1K string should be a reasonable start.
6123 for i in 1 2 3 4 5 6 7 8 ; do
6124 teststring=$teststring$teststring
6125 done
6126 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6127 # If test is not a shell built-in, we'll probably end up computing a
6128 # maximum length that is only half of the actual maximum length, but
6129 # we can't tell.
6130 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6131 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6132 test $i != 17 # 1/2 MB should be enough
6133 do
6134 i=`expr $i + 1`
6135 teststring=$teststring$teststring
6136 done
6137 # Only check the string length outside the loop.
6138 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6139 teststring=
6140 # Add a significant safety factor because C++ compilers can tack on
6141 # massive amounts of additional arguments before passing them to the
6142 # linker. It appears as though 1/2 is a usable value.
6143 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6144 fi
6145 ;;
6146 esac
6147
6148 fi
6149
6150 if test -n $lt_cv_sys_max_cmd_len ; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6152 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6153 else
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6155 $as_echo "none" >&6; }
6156 fi
6157 max_cmd_len=$lt_cv_sys_max_cmd_len
6158
6159
6160
6161
6162
6163
6164 : ${CP="cp -f"}
6165 : ${MV="mv -f"}
6166 : ${RM="rm -f"}
6167
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6169 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6170 # Try some XSI features
6171 xsi_shell=no
6172 ( _lt_dummy="a/b/c"
6173 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6174 = c,a/b,b/c, \
6175 && eval 'test $(( 1 + 1 )) -eq 2 \
6176 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6177 && xsi_shell=yes
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6179 $as_echo "$xsi_shell" >&6; }
6180
6181
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6183 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6184 lt_shell_append=no
6185 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6186 >/dev/null 2>&1 \
6187 && lt_shell_append=yes
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6189 $as_echo "$lt_shell_append" >&6; }
6190
6191
6192 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6193 lt_unset=unset
6194 else
6195 lt_unset=false
6196 fi
6197
6198
6199
6200
6201
6202 # test EBCDIC or ASCII
6203 case `echo X|tr X '\101'` in
6204 A) # ASCII based system
6205 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6206 lt_SP2NL='tr \040 \012'
6207 lt_NL2SP='tr \015\012 \040\040'
6208 ;;
6209 *) # EBCDIC based system
6210 lt_SP2NL='tr \100 \n'
6211 lt_NL2SP='tr \r\n \100\100'
6212 ;;
6213 esac
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6224 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6225 if ${lt_cv_to_host_file_cmd+:} false; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 case $host in
6229 *-*-mingw* )
6230 case $build in
6231 *-*-mingw* ) # actually msys
6232 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6233 ;;
6234 *-*-cygwin* )
6235 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6236 ;;
6237 * ) # otherwise, assume *nix
6238 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6239 ;;
6240 esac
6241 ;;
6242 *-*-cygwin* )
6243 case $build in
6244 *-*-mingw* ) # actually msys
6245 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6246 ;;
6247 *-*-cygwin* )
6248 lt_cv_to_host_file_cmd=func_convert_file_noop
6249 ;;
6250 * ) # otherwise, assume *nix
6251 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6252 ;;
6253 esac
6254 ;;
6255 * ) # unhandled hosts (and "normal" native builds)
6256 lt_cv_to_host_file_cmd=func_convert_file_noop
6257 ;;
6258 esac
6259
6260 fi
6261
6262 to_host_file_cmd=$lt_cv_to_host_file_cmd
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6264 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6265
6266
6267
6268
6269
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6271 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6272 if ${lt_cv_to_tool_file_cmd+:} false; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 #assume ordinary cross tools, or native build.
6276 lt_cv_to_tool_file_cmd=func_convert_file_noop
6277 case $host in
6278 *-*-mingw* )
6279 case $build in
6280 *-*-mingw* ) # actually msys
6281 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6282 ;;
6283 esac
6284 ;;
6285 esac
6286
6287 fi
6288
6289 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6291 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6292
6293
6294
6295
6296
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6298 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6299 if ${lt_cv_ld_reload_flag+:} false; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 lt_cv_ld_reload_flag='-r'
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6305 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6306 reload_flag=$lt_cv_ld_reload_flag
6307 case $reload_flag in
6308 "" | " "*) ;;
6309 *) reload_flag=" $reload_flag" ;;
6310 esac
6311 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6312 case $host_os in
6313 cygwin* | mingw* | pw32* | cegcc*)
6314 if test "$GCC" != yes; then
6315 reload_cmds=false
6316 fi
6317 ;;
6318 darwin*)
6319 if test "$GCC" = yes; then
6320 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6321 else
6322 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6323 fi
6324 ;;
6325 esac
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335 if test -n "$ac_tool_prefix"; then
6336 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6337 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_OBJDUMP+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 if test -n "$OBJDUMP"; then
6344 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357 done
6358 done
6359 IFS=$as_save_IFS
6360
6361 fi
6362 fi
6363 OBJDUMP=$ac_cv_prog_OBJDUMP
6364 if test -n "$OBJDUMP"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6366 $as_echo "$OBJDUMP" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371
6372
6373 fi
6374 if test -z "$ac_cv_prog_OBJDUMP"; then
6375 ac_ct_OBJDUMP=$OBJDUMP
6376 # Extract the first word of "objdump", so it can be a program name with args.
6377 set dummy objdump; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 if test -n "$ac_ct_OBJDUMP"; then
6384 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397 done
6398 done
6399 IFS=$as_save_IFS
6400
6401 fi
6402 fi
6403 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6404 if test -n "$ac_ct_OBJDUMP"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6406 $as_echo "$ac_ct_OBJDUMP" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411
6412 if test "x$ac_ct_OBJDUMP" = x; then
6413 OBJDUMP="false"
6414 else
6415 case $cross_compiling:$ac_tool_warned in
6416 yes:)
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6419 ac_tool_warned=yes ;;
6420 esac
6421 OBJDUMP=$ac_ct_OBJDUMP
6422 fi
6423 else
6424 OBJDUMP="$ac_cv_prog_OBJDUMP"
6425 fi
6426
6427 test -z "$OBJDUMP" && OBJDUMP=objdump
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6438 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6439 if ${lt_cv_deplibs_check_method+:} false; then :
6440 $as_echo_n "(cached) " >&6
6441 else
6442 lt_cv_file_magic_cmd='$MAGIC_CMD'
6443 lt_cv_file_magic_test_file=
6444 lt_cv_deplibs_check_method='unknown'
6445 # Need to set the preceding variable on all platforms that support
6446 # interlibrary dependencies.
6447 # 'none' -- dependencies not supported.
6448 # `unknown' -- same as none, but documents that we really don't know.
6449 # 'pass_all' -- all dependencies passed with no checks.
6450 # 'test_compile' -- check by making test program.
6451 # 'file_magic [[regex]]' -- check by looking for files in library path
6452 # which responds to the $file_magic_cmd with a given extended regex.
6453 # If you have `file' or equivalent on your system and you're not sure
6454 # whether `pass_all' will *always* work, you probably want this one.
6455
6456 case $host_os in
6457 aix[4-9]*)
6458 lt_cv_deplibs_check_method=pass_all
6459 ;;
6460
6461 beos*)
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
6464
6465 bsdi[45]*)
6466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6467 lt_cv_file_magic_cmd='/usr/bin/file -L'
6468 lt_cv_file_magic_test_file=/shlib/libc.so
6469 ;;
6470
6471 cygwin*)
6472 # func_win32_libid is a shell function defined in ltmain.sh
6473 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6474 lt_cv_file_magic_cmd='func_win32_libid'
6475 ;;
6476
6477 mingw* | pw32*)
6478 # Base MSYS/MinGW do not provide the 'file' command needed by
6479 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6480 # unless we find 'file', for example because we are cross-compiling.
6481 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6482 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6483 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6484 lt_cv_file_magic_cmd='func_win32_libid'
6485 else
6486 # Keep this pattern in sync with the one in func_win32_libid.
6487 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6488 lt_cv_file_magic_cmd='$OBJDUMP -f'
6489 fi
6490 ;;
6491
6492 cegcc*)
6493 # use the weaker test based on 'objdump'. See mingw*.
6494 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6495 lt_cv_file_magic_cmd='$OBJDUMP -f'
6496 ;;
6497
6498 darwin* | rhapsody*)
6499 lt_cv_deplibs_check_method=pass_all
6500 ;;
6501
6502 freebsd* | dragonfly*)
6503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6504 case $host_cpu in
6505 i*86 )
6506 # Not sure whether the presence of OpenBSD here was a mistake.
6507 # Let's accept both of them until this is cleared up.
6508 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6509 lt_cv_file_magic_cmd=/usr/bin/file
6510 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6511 ;;
6512 esac
6513 else
6514 lt_cv_deplibs_check_method=pass_all
6515 fi
6516 ;;
6517
6518 gnu*)
6519 lt_cv_deplibs_check_method=pass_all
6520 ;;
6521
6522 haiku*)
6523 lt_cv_deplibs_check_method=pass_all
6524 ;;
6525
6526 hpux10.20* | hpux11*)
6527 lt_cv_file_magic_cmd=/usr/bin/file
6528 case $host_cpu in
6529 ia64*)
6530 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6531 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6532 ;;
6533 hppa*64*)
6534 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]'
6535 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6536 ;;
6537 *)
6538 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6539 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6540 ;;
6541 esac
6542 ;;
6543
6544 interix[3-9]*)
6545 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6547 ;;
6548
6549 irix5* | irix6* | nonstopux*)
6550 case $LD in
6551 *-32|*"-32 ") libmagic=32-bit;;
6552 *-n32|*"-n32 ") libmagic=N32;;
6553 *-64|*"-64 ") libmagic=64-bit;;
6554 *) libmagic=never-match;;
6555 esac
6556 lt_cv_deplibs_check_method=pass_all
6557 ;;
6558
6559 # This must be glibc/ELF.
6560 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6561 lt_cv_deplibs_check_method=pass_all
6562 ;;
6563
6564 netbsd*)
6565 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6567 else
6568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6569 fi
6570 ;;
6571
6572 newos6*)
6573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6574 lt_cv_file_magic_cmd=/usr/bin/file
6575 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6576 ;;
6577
6578 *nto* | *qnx*)
6579 lt_cv_deplibs_check_method=pass_all
6580 ;;
6581
6582 openbsd*)
6583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6585 else
6586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6587 fi
6588 ;;
6589
6590 osf3* | osf4* | osf5*)
6591 lt_cv_deplibs_check_method=pass_all
6592 ;;
6593
6594 rdos*)
6595 lt_cv_deplibs_check_method=pass_all
6596 ;;
6597
6598 solaris*)
6599 lt_cv_deplibs_check_method=pass_all
6600 ;;
6601
6602 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6603 lt_cv_deplibs_check_method=pass_all
6604 ;;
6605
6606 sysv4 | sysv4.3*)
6607 case $host_vendor in
6608 motorola)
6609 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]'
6610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6611 ;;
6612 ncr)
6613 lt_cv_deplibs_check_method=pass_all
6614 ;;
6615 sequent)
6616 lt_cv_file_magic_cmd='/bin/file'
6617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6618 ;;
6619 sni)
6620 lt_cv_file_magic_cmd='/bin/file'
6621 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6622 lt_cv_file_magic_test_file=/lib/libc.so
6623 ;;
6624 siemens)
6625 lt_cv_deplibs_check_method=pass_all
6626 ;;
6627 pc)
6628 lt_cv_deplibs_check_method=pass_all
6629 ;;
6630 esac
6631 ;;
6632
6633 tpf*)
6634 lt_cv_deplibs_check_method=pass_all
6635 ;;
6636 esac
6637
6638 fi
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6640 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6641
6642 file_magic_glob=
6643 want_nocaseglob=no
6644 if test "$build" = "$host"; then
6645 case $host_os in
6646 mingw* | pw32*)
6647 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6648 want_nocaseglob=yes
6649 else
6650 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6651 fi
6652 ;;
6653 esac
6654 fi
6655
6656 file_magic_cmd=$lt_cv_file_magic_cmd
6657 deplibs_check_method=$lt_cv_deplibs_check_method
6658 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681 if test -n "$ac_tool_prefix"; then
6682 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6683 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if ${ac_cv_prog_DLLTOOL+:} false; then :
6687 $as_echo_n "(cached) " >&6
6688 else
6689 if test -n "$DLLTOOL"; then
6690 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6699 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6702 fi
6703 done
6704 done
6705 IFS=$as_save_IFS
6706
6707 fi
6708 fi
6709 DLLTOOL=$ac_cv_prog_DLLTOOL
6710 if test -n "$DLLTOOL"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6712 $as_echo "$DLLTOOL" >&6; }
6713 else
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6716 fi
6717
6718
6719 fi
6720 if test -z "$ac_cv_prog_DLLTOOL"; then
6721 ac_ct_DLLTOOL=$DLLTOOL
6722 # Extract the first word of "dlltool", so it can be a program name with args.
6723 set dummy dlltool; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 if test -n "$ac_ct_DLLTOOL"; then
6730 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6734 do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6739 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743 done
6744 done
6745 IFS=$as_save_IFS
6746
6747 fi
6748 fi
6749 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6750 if test -n "$ac_ct_DLLTOOL"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6752 $as_echo "$ac_ct_DLLTOOL" >&6; }
6753 else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6756 fi
6757
6758 if test "x$ac_ct_DLLTOOL" = x; then
6759 DLLTOOL="false"
6760 else
6761 case $cross_compiling:$ac_tool_warned in
6762 yes:)
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6765 ac_tool_warned=yes ;;
6766 esac
6767 DLLTOOL=$ac_ct_DLLTOOL
6768 fi
6769 else
6770 DLLTOOL="$ac_cv_prog_DLLTOOL"
6771 fi
6772
6773 test -z "$DLLTOOL" && DLLTOOL=dlltool
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6785 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6786 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 lt_cv_sharedlib_from_linklib_cmd='unknown'
6790
6791 case $host_os in
6792 cygwin* | mingw* | pw32* | cegcc*)
6793 # two different shell functions defined in ltmain.sh
6794 # decide which to use based on capabilities of $DLLTOOL
6795 case `$DLLTOOL --help 2>&1` in
6796 *--identify-strict*)
6797 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6798 ;;
6799 *)
6800 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6801 ;;
6802 esac
6803 ;;
6804 *)
6805 # fallback: assume linklib IS sharedlib
6806 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6807 ;;
6808 esac
6809
6810 fi
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6812 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6813 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6814 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6815
6816
6817
6818
6819
6820
6821
6822 if test -n "$ac_tool_prefix"; then
6823 for ac_prog in ar
6824 do
6825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_AR+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 if test -n "$AR"; then
6833 ac_cv_prog_AR="$AR" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 break 2
6845 fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 AR=$ac_cv_prog_AR
6853 if test -n "$AR"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6855 $as_echo "$AR" >&6; }
6856 else
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6859 fi
6860
6861
6862 test -n "$AR" && break
6863 done
6864 fi
6865 if test -z "$AR"; then
6866 ac_ct_AR=$AR
6867 for ac_prog in ar
6868 do
6869 # Extract the first word of "$ac_prog", so it can be a program name with args.
6870 set dummy $ac_prog; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 if test -n "$ac_ct_AR"; then
6877 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6881 do
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6886 ac_cv_prog_ac_ct_AR="$ac_prog"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6889 fi
6890 done
6891 done
6892 IFS=$as_save_IFS
6893
6894 fi
6895 fi
6896 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6897 if test -n "$ac_ct_AR"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6899 $as_echo "$ac_ct_AR" >&6; }
6900 else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6903 fi
6904
6905
6906 test -n "$ac_ct_AR" && break
6907 done
6908
6909 if test "x$ac_ct_AR" = x; then
6910 AR="false"
6911 else
6912 case $cross_compiling:$ac_tool_warned in
6913 yes:)
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6916 ac_tool_warned=yes ;;
6917 esac
6918 AR=$ac_ct_AR
6919 fi
6920 fi
6921
6922 : ${AR=ar}
6923 : ${AR_FLAGS=cru}
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6936 $as_echo_n "checking for archiver @FILE support... " >&6; }
6937 if ${lt_cv_ar_at_file+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 lt_cv_ar_at_file=no
6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h. */
6943
6944 int
6945 main ()
6946 {
6947
6948 ;
6949 return 0;
6950 }
6951 _ACEOF
6952 if ac_fn_c_try_compile "$LINENO"; then :
6953 echo conftest.$ac_objext > conftest.lst
6954 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6956 (eval $lt_ar_try) 2>&5
6957 ac_status=$?
6958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6959 test $ac_status = 0; }
6960 if test "$ac_status" -eq 0; then
6961 # Ensure the archiver fails upon bogus file names.
6962 rm -f conftest.$ac_objext libconftest.a
6963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6964 (eval $lt_ar_try) 2>&5
6965 ac_status=$?
6966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6967 test $ac_status = 0; }
6968 if test "$ac_status" -ne 0; then
6969 lt_cv_ar_at_file=@
6970 fi
6971 fi
6972 rm -f conftest.* libconftest.a
6973
6974 fi
6975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976
6977 fi
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6979 $as_echo "$lt_cv_ar_at_file" >&6; }
6980
6981 if test "x$lt_cv_ar_at_file" = xno; then
6982 archiver_list_spec=
6983 else
6984 archiver_list_spec=$lt_cv_ar_at_file
6985 fi
6986
6987
6988
6989
6990
6991
6992
6993 if test -n "$ac_tool_prefix"; then
6994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6995 set dummy ${ac_tool_prefix}strip; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if ${ac_cv_prog_STRIP+:} false; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 if test -n "$STRIP"; then
7002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7003 else
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7014 fi
7015 done
7016 done
7017 IFS=$as_save_IFS
7018
7019 fi
7020 fi
7021 STRIP=$ac_cv_prog_STRIP
7022 if test -n "$STRIP"; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7024 $as_echo "$STRIP" >&6; }
7025 else
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7028 fi
7029
7030
7031 fi
7032 if test -z "$ac_cv_prog_STRIP"; then
7033 ac_ct_STRIP=$STRIP
7034 # Extract the first word of "strip", so it can be a program name with args.
7035 set dummy strip; ac_word=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 if test -n "$ac_ct_STRIP"; then
7042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7051 ac_cv_prog_ac_ct_STRIP="strip"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7054 fi
7055 done
7056 done
7057 IFS=$as_save_IFS
7058
7059 fi
7060 fi
7061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7062 if test -n "$ac_ct_STRIP"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7064 $as_echo "$ac_ct_STRIP" >&6; }
7065 else
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7068 fi
7069
7070 if test "x$ac_ct_STRIP" = x; then
7071 STRIP=":"
7072 else
7073 case $cross_compiling:$ac_tool_warned in
7074 yes:)
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077 ac_tool_warned=yes ;;
7078 esac
7079 STRIP=$ac_ct_STRIP
7080 fi
7081 else
7082 STRIP="$ac_cv_prog_STRIP"
7083 fi
7084
7085 test -z "$STRIP" && STRIP=:
7086
7087
7088
7089
7090
7091
7092 if test -n "$ac_tool_prefix"; then
7093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if ${ac_cv_prog_RANLIB+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 if test -n "$RANLIB"; then
7101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 break 2
7113 fi
7114 done
7115 done
7116 IFS=$as_save_IFS
7117
7118 fi
7119 fi
7120 RANLIB=$ac_cv_prog_RANLIB
7121 if test -n "$RANLIB"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7123 $as_echo "$RANLIB" >&6; }
7124 else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7127 fi
7128
7129
7130 fi
7131 if test -z "$ac_cv_prog_RANLIB"; then
7132 ac_ct_RANLIB=$RANLIB
7133 # Extract the first word of "ranlib", so it can be a program name with args.
7134 set dummy ranlib; ac_word=$2
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 $as_echo_n "checking for $ac_word... " >&6; }
7137 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 if test -n "$ac_ct_RANLIB"; then
7141 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7142 else
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150 ac_cv_prog_ac_ct_RANLIB="ranlib"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154 done
7155 done
7156 IFS=$as_save_IFS
7157
7158 fi
7159 fi
7160 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7161 if test -n "$ac_ct_RANLIB"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7163 $as_echo "$ac_ct_RANLIB" >&6; }
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7167 fi
7168
7169 if test "x$ac_ct_RANLIB" = x; then
7170 RANLIB=":"
7171 else
7172 case $cross_compiling:$ac_tool_warned in
7173 yes:)
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7176 ac_tool_warned=yes ;;
7177 esac
7178 RANLIB=$ac_ct_RANLIB
7179 fi
7180 else
7181 RANLIB="$ac_cv_prog_RANLIB"
7182 fi
7183
7184 test -z "$RANLIB" && RANLIB=:
7185
7186
7187
7188
7189
7190
7191 # Determine commands to create old-style static archives.
7192 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7193 old_postinstall_cmds='chmod 644 $oldlib'
7194 old_postuninstall_cmds=
7195
7196 if test -n "$RANLIB"; then
7197 case $host_os in
7198 openbsd*)
7199 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7200 ;;
7201 *)
7202 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7203 ;;
7204 esac
7205 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7206 fi
7207
7208 case $host_os in
7209 darwin*)
7210 lock_old_archive_extraction=yes ;;
7211 *)
7212 lock_old_archive_extraction=no ;;
7213 esac
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253 # If no C compiler was specified, use CC.
7254 LTCC=${LTCC-"$CC"}
7255
7256 # If no C compiler flags were specified, use CFLAGS.
7257 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7258
7259 # Allow CC to be a program name with arguments.
7260 compiler=$CC
7261
7262
7263 # Check for command to grab the raw symbol name followed by C symbol from nm.
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7265 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7266 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269
7270 # These are sane defaults that work on at least a few old systems.
7271 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7272
7273 # Character class describing NM global symbol codes.
7274 symcode='[BCDEGRST]'
7275
7276 # Regexp to match symbols that can be accessed directly from C.
7277 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7278
7279 # Define system-specific variables.
7280 case $host_os in
7281 aix*)
7282 symcode='[BCDT]'
7283 ;;
7284 cygwin* | mingw* | pw32* | cegcc*)
7285 symcode='[ABCDGISTW]'
7286 ;;
7287 hpux*)
7288 if test "$host_cpu" = ia64; then
7289 symcode='[ABCDEGRST]'
7290 fi
7291 ;;
7292 irix* | nonstopux*)
7293 symcode='[BCDEGRST]'
7294 ;;
7295 osf*)
7296 symcode='[BCDEGQRST]'
7297 ;;
7298 solaris*)
7299 symcode='[BDRT]'
7300 ;;
7301 sco3.2v5*)
7302 symcode='[DT]'
7303 ;;
7304 sysv4.2uw2*)
7305 symcode='[DT]'
7306 ;;
7307 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7308 symcode='[ABDT]'
7309 ;;
7310 sysv4)
7311 symcode='[DFNSTU]'
7312 ;;
7313 esac
7314
7315 # If we're using GNU nm, then use its standard symbol codes.
7316 case `$NM -V 2>&1` in
7317 *GNU* | *'with BFD'*)
7318 symcode='[ABCDGIRSTW]' ;;
7319 esac
7320
7321 # Transform an extracted symbol line into a proper C declaration.
7322 # Some systems (esp. on ia64) link data and code symbols differently,
7323 # so use this general approach.
7324 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7325
7326 # Transform an extracted symbol line into symbol name and symbol address
7327 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7328 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7329
7330 # Handle CRLF in mingw tool chain
7331 opt_cr=
7332 case $build_os in
7333 mingw*)
7334 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7335 ;;
7336 esac
7337
7338 # Try without a prefix underscore, then with it.
7339 for ac_symprfx in "" "_"; do
7340
7341 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7342 symxfrm="\\1 $ac_symprfx\\2 \\2"
7343
7344 # Write the raw and C identifiers.
7345 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7346 # Fake it for dumpbin and say T for any non-static function
7347 # and D for any global variable.
7348 # Also find C++ and __fastcall symbols from MSVC++,
7349 # which start with @ or ?.
7350 lt_cv_sys_global_symbol_pipe="$AWK '"\
7351 " {last_section=section; section=\$ 3};"\
7352 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7353 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7354 " \$ 0!~/External *\|/{next};"\
7355 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7356 " {if(hide[section]) next};"\
7357 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7358 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7359 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7360 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7361 " ' prfx=^$ac_symprfx"
7362 else
7363 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7364 fi
7365 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7366
7367 # Check to see that the pipe works correctly.
7368 pipe_works=no
7369
7370 rm -f conftest*
7371 cat > conftest.$ac_ext <<_LT_EOF
7372 #ifdef __cplusplus
7373 extern "C" {
7374 #endif
7375 char nm_test_var;
7376 void nm_test_func(void);
7377 void nm_test_func(void){}
7378 #ifdef __cplusplus
7379 }
7380 #endif
7381 int main(){nm_test_var='a';nm_test_func();return(0);}
7382 _LT_EOF
7383
7384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7385 (eval $ac_compile) 2>&5
7386 ac_status=$?
7387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7388 test $ac_status = 0; }; then
7389 # Now try to grab the symbols.
7390 nlist=conftest.nm
7391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7392 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7393 ac_status=$?
7394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395 test $ac_status = 0; } && test -s "$nlist"; then
7396 # Try sorting and uniquifying the output.
7397 if sort "$nlist" | uniq > "$nlist"T; then
7398 mv -f "$nlist"T "$nlist"
7399 else
7400 rm -f "$nlist"T
7401 fi
7402
7403 # Make sure that we snagged all the symbols we need.
7404 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7405 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7406 cat <<_LT_EOF > conftest.$ac_ext
7407 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7408 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7409 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7410 relocations are performed -- see ld's documentation on pseudo-relocs. */
7411 # define LT_DLSYM_CONST
7412 #elif defined(__osf__)
7413 /* This system does not cope well with relocations in const data. */
7414 # define LT_DLSYM_CONST
7415 #else
7416 # define LT_DLSYM_CONST const
7417 #endif
7418
7419 #ifdef __cplusplus
7420 extern "C" {
7421 #endif
7422
7423 _LT_EOF
7424 # Now generate the symbol file.
7425 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7426
7427 cat <<_LT_EOF >> conftest.$ac_ext
7428
7429 /* The mapping between symbol names and symbols. */
7430 LT_DLSYM_CONST struct {
7431 const char *name;
7432 void *address;
7433 }
7434 lt__PROGRAM__LTX_preloaded_symbols[] =
7435 {
7436 { "@PROGRAM@", (void *) 0 },
7437 _LT_EOF
7438 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7439 cat <<\_LT_EOF >> conftest.$ac_ext
7440 {0, (void *) 0}
7441 };
7442
7443 /* This works around a problem in FreeBSD linker */
7444 #ifdef FREEBSD_WORKAROUND
7445 static const void *lt_preloaded_setup() {
7446 return lt__PROGRAM__LTX_preloaded_symbols;
7447 }
7448 #endif
7449
7450 #ifdef __cplusplus
7451 }
7452 #endif
7453 _LT_EOF
7454 # Now try linking the two files.
7455 mv conftest.$ac_objext conftstm.$ac_objext
7456 lt_globsym_save_LIBS=$LIBS
7457 lt_globsym_save_CFLAGS=$CFLAGS
7458 LIBS="conftstm.$ac_objext"
7459 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7461 (eval $ac_link) 2>&5
7462 ac_status=$?
7463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7464 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7465 pipe_works=yes
7466 fi
7467 LIBS=$lt_globsym_save_LIBS
7468 CFLAGS=$lt_globsym_save_CFLAGS
7469 else
7470 echo "cannot find nm_test_func in $nlist" >&5
7471 fi
7472 else
7473 echo "cannot find nm_test_var in $nlist" >&5
7474 fi
7475 else
7476 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7477 fi
7478 else
7479 echo "$progname: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7481 fi
7482 rm -rf conftest* conftst*
7483
7484 # Do not use the global_symbol_pipe unless it works.
7485 if test "$pipe_works" = yes; then
7486 break
7487 else
7488 lt_cv_sys_global_symbol_pipe=
7489 fi
7490 done
7491
7492 fi
7493
7494 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7495 lt_cv_sys_global_symbol_to_cdecl=
7496 fi
7497 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7499 $as_echo "failed" >&6; }
7500 else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7502 $as_echo "ok" >&6; }
7503 fi
7504
7505 # Response file support.
7506 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7507 nm_file_list_spec='@'
7508 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7509 nm_file_list_spec='@'
7510 fi
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7539 $as_echo_n "checking for sysroot... " >&6; }
7540
7541 # Check whether --with-sysroot was given.
7542 if test "${with_sysroot+set}" = set; then :
7543 withval=$with_sysroot;
7544 else
7545 with_sysroot=no
7546 fi
7547
7548
7549 lt_sysroot=
7550 case ${with_sysroot} in #(
7551 yes)
7552 if test "$GCC" = yes; then
7553 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7554 fi
7555 ;; #(
7556 /*)
7557 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7558 ;; #(
7559 no|'')
7560 ;; #(
7561 *)
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7563 $as_echo "${with_sysroot}" >&6; }
7564 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7565 ;;
7566 esac
7567
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7569 $as_echo "${lt_sysroot:-no}" >&6; }
7570
7571
7572
7573
7574
7575 # Check whether --enable-libtool-lock was given.
7576 if test "${enable_libtool_lock+set}" = set; then :
7577 enableval=$enable_libtool_lock;
7578 fi
7579
7580 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7581
7582 # Some flags need to be propagated to the compiler or linker for good
7583 # libtool support.
7584 case $host in
7585 ia64-*-hpux*)
7586 # Find out which ABI we are using.
7587 echo 'int i;' > conftest.$ac_ext
7588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7589 (eval $ac_compile) 2>&5
7590 ac_status=$?
7591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7592 test $ac_status = 0; }; then
7593 case `/usr/bin/file conftest.$ac_objext` in
7594 *ELF-32*)
7595 HPUX_IA64_MODE="32"
7596 ;;
7597 *ELF-64*)
7598 HPUX_IA64_MODE="64"
7599 ;;
7600 esac
7601 fi
7602 rm -rf conftest*
7603 ;;
7604 *-*-irix6*)
7605 # Find out which ABI we are using.
7606 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7608 (eval $ac_compile) 2>&5
7609 ac_status=$?
7610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7611 test $ac_status = 0; }; then
7612 if test "$lt_cv_prog_gnu_ld" = yes; then
7613 case `/usr/bin/file conftest.$ac_objext` in
7614 *32-bit*)
7615 LD="${LD-ld} -melf32bsmip"
7616 ;;
7617 *N32*)
7618 LD="${LD-ld} -melf32bmipn32"
7619 ;;
7620 *64-bit*)
7621 LD="${LD-ld} -melf64bmip"
7622 ;;
7623 esac
7624 else
7625 case `/usr/bin/file conftest.$ac_objext` in
7626 *32-bit*)
7627 LD="${LD-ld} -32"
7628 ;;
7629 *N32*)
7630 LD="${LD-ld} -n32"
7631 ;;
7632 *64-bit*)
7633 LD="${LD-ld} -64"
7634 ;;
7635 esac
7636 fi
7637 fi
7638 rm -rf conftest*
7639 ;;
7640
7641 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7642 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7643 # Find out which ABI we are using.
7644 echo 'int i;' > conftest.$ac_ext
7645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7646 (eval $ac_compile) 2>&5
7647 ac_status=$?
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; }; then
7650 case `/usr/bin/file conftest.o` in
7651 *32-bit*)
7652 case $host in
7653 x86_64-*kfreebsd*-gnu)
7654 LD="${LD-ld} -m elf_i386_fbsd"
7655 ;;
7656 x86_64-*linux*)
7657 LD="${LD-ld} -m elf_i386"
7658 ;;
7659 ppc64-*linux*|powerpc64-*linux*)
7660 LD="${LD-ld} -m elf32ppclinux"
7661 ;;
7662 s390x-*linux*)
7663 LD="${LD-ld} -m elf_s390"
7664 ;;
7665 sparc64-*linux*)
7666 LD="${LD-ld} -m elf32_sparc"
7667 ;;
7668 esac
7669 ;;
7670 *64-bit*)
7671 case $host in
7672 x86_64-*kfreebsd*-gnu)
7673 LD="${LD-ld} -m elf_x86_64_fbsd"
7674 ;;
7675 x86_64-*linux*)
7676 LD="${LD-ld} -m elf_x86_64"
7677 ;;
7678 ppc*-*linux*|powerpc*-*linux*)
7679 LD="${LD-ld} -m elf64ppc"
7680 ;;
7681 s390*-*linux*|s390*-*tpf*)
7682 LD="${LD-ld} -m elf64_s390"
7683 ;;
7684 sparc*-*linux*)
7685 LD="${LD-ld} -m elf64_sparc"
7686 ;;
7687 esac
7688 ;;
7689 esac
7690 fi
7691 rm -rf conftest*
7692 ;;
7693
7694 *-*-sco3.2v5*)
7695 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7696 SAVE_CFLAGS="$CFLAGS"
7697 CFLAGS="$CFLAGS -belf"
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7699 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7700 if ${lt_cv_cc_needs_belf+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 ac_ext=c
7704 ac_cpp='$CPP $CPPFLAGS'
7705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7708
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711
7712 int
7713 main ()
7714 {
7715
7716 ;
7717 return 0;
7718 }
7719 _ACEOF
7720 if ac_fn_c_try_link "$LINENO"; then :
7721 lt_cv_cc_needs_belf=yes
7722 else
7723 lt_cv_cc_needs_belf=no
7724 fi
7725 rm -f core conftest.err conftest.$ac_objext \
7726 conftest$ac_exeext conftest.$ac_ext
7727 ac_ext=c
7728 ac_cpp='$CPP $CPPFLAGS'
7729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732
7733 fi
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7735 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7736 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7737 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7738 CFLAGS="$SAVE_CFLAGS"
7739 fi
7740 ;;
7741 *-*solaris*)
7742 # Find out which ABI we are using.
7743 echo 'int i;' > conftest.$ac_ext
7744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7745 (eval $ac_compile) 2>&5
7746 ac_status=$?
7747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7748 test $ac_status = 0; }; then
7749 case `/usr/bin/file conftest.o` in
7750 *64-bit*)
7751 case $lt_cv_prog_gnu_ld in
7752 yes*)
7753 case $host in
7754 i?86-*-solaris*)
7755 LD="${LD-ld} -m elf_x86_64"
7756 ;;
7757 sparc*-*-solaris*)
7758 LD="${LD-ld} -m elf64_sparc"
7759 ;;
7760 esac
7761 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7762 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7763 LD="${LD-ld}_sol2"
7764 fi
7765 ;;
7766 *)
7767 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7768 LD="${LD-ld} -64"
7769 fi
7770 ;;
7771 esac
7772 ;;
7773 esac
7774 fi
7775 rm -rf conftest*
7776 ;;
7777 esac
7778
7779 need_locks="$enable_libtool_lock"
7780
7781 if test -n "$ac_tool_prefix"; then
7782 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7783 set dummy ${ac_tool_prefix}mt; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 if test -n "$MANIFEST_TOOL"; then
7790 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7791 else
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7794 do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7802 fi
7803 done
7804 done
7805 IFS=$as_save_IFS
7806
7807 fi
7808 fi
7809 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7810 if test -n "$MANIFEST_TOOL"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7812 $as_echo "$MANIFEST_TOOL" >&6; }
7813 else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7816 fi
7817
7818
7819 fi
7820 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7821 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7822 # Extract the first word of "mt", so it can be a program name with args.
7823 set dummy mt; ac_word=$2
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825 $as_echo_n "checking for $ac_word... " >&6; }
7826 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 if test -n "$ac_ct_MANIFEST_TOOL"; then
7830 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7831 else
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7834 do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7839 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843 done
7844 done
7845 IFS=$as_save_IFS
7846
7847 fi
7848 fi
7849 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7850 if test -n "$ac_ct_MANIFEST_TOOL"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7852 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7853 else
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7856 fi
7857
7858 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7859 MANIFEST_TOOL=":"
7860 else
7861 case $cross_compiling:$ac_tool_warned in
7862 yes:)
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7865 ac_tool_warned=yes ;;
7866 esac
7867 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7868 fi
7869 else
7870 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7871 fi
7872
7873 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7875 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7876 if ${lt_cv_path_mainfest_tool+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 lt_cv_path_mainfest_tool=no
7880 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7881 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7882 cat conftest.err >&5
7883 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7884 lt_cv_path_mainfest_tool=yes
7885 fi
7886 rm -f conftest*
7887 fi
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7889 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7890 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7891 MANIFEST_TOOL=:
7892 fi
7893
7894
7895
7896
7897
7898
7899 case $host_os in
7900 rhapsody* | darwin*)
7901 if test -n "$ac_tool_prefix"; then
7902 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7903 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905 $as_echo_n "checking for $ac_word... " >&6; }
7906 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7907 $as_echo_n "(cached) " >&6
7908 else
7909 if test -n "$DSYMUTIL"; then
7910 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7911 else
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in $PATH
7914 do
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 break 2
7922 fi
7923 done
7924 done
7925 IFS=$as_save_IFS
7926
7927 fi
7928 fi
7929 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7930 if test -n "$DSYMUTIL"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7932 $as_echo "$DSYMUTIL" >&6; }
7933 else
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7936 fi
7937
7938
7939 fi
7940 if test -z "$ac_cv_prog_DSYMUTIL"; then
7941 ac_ct_DSYMUTIL=$DSYMUTIL
7942 # Extract the first word of "dsymutil", so it can be a program name with args.
7943 set dummy dsymutil; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 if test -n "$ac_ct_DSYMUTIL"; then
7950 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7951 else
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7954 do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963 done
7964 done
7965 IFS=$as_save_IFS
7966
7967 fi
7968 fi
7969 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7970 if test -n "$ac_ct_DSYMUTIL"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7972 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7973 else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7976 fi
7977
7978 if test "x$ac_ct_DSYMUTIL" = x; then
7979 DSYMUTIL=":"
7980 else
7981 case $cross_compiling:$ac_tool_warned in
7982 yes:)
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7985 ac_tool_warned=yes ;;
7986 esac
7987 DSYMUTIL=$ac_ct_DSYMUTIL
7988 fi
7989 else
7990 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7991 fi
7992
7993 if test -n "$ac_tool_prefix"; then
7994 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7995 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if ${ac_cv_prog_NMEDIT+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 if test -n "$NMEDIT"; then
8002 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8011 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8014 fi
8015 done
8016 done
8017 IFS=$as_save_IFS
8018
8019 fi
8020 fi
8021 NMEDIT=$ac_cv_prog_NMEDIT
8022 if test -n "$NMEDIT"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8024 $as_echo "$NMEDIT" >&6; }
8025 else
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8028 fi
8029
8030
8031 fi
8032 if test -z "$ac_cv_prog_NMEDIT"; then
8033 ac_ct_NMEDIT=$NMEDIT
8034 # Extract the first word of "nmedit", so it can be a program name with args.
8035 set dummy nmedit; ac_word=$2
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 $as_echo_n "checking for $ac_word... " >&6; }
8038 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 if test -n "$ac_ct_NMEDIT"; then
8042 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8043 else
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 for as_dir in $PATH
8046 do
8047 IFS=$as_save_IFS
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8051 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 break 2
8054 fi
8055 done
8056 done
8057 IFS=$as_save_IFS
8058
8059 fi
8060 fi
8061 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8062 if test -n "$ac_ct_NMEDIT"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8064 $as_echo "$ac_ct_NMEDIT" >&6; }
8065 else
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8068 fi
8069
8070 if test "x$ac_ct_NMEDIT" = x; then
8071 NMEDIT=":"
8072 else
8073 case $cross_compiling:$ac_tool_warned in
8074 yes:)
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8077 ac_tool_warned=yes ;;
8078 esac
8079 NMEDIT=$ac_ct_NMEDIT
8080 fi
8081 else
8082 NMEDIT="$ac_cv_prog_NMEDIT"
8083 fi
8084
8085 if test -n "$ac_tool_prefix"; then
8086 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8087 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if ${ac_cv_prog_LIPO+:} false; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 if test -n "$LIPO"; then
8094 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8106 fi
8107 done
8108 done
8109 IFS=$as_save_IFS
8110
8111 fi
8112 fi
8113 LIPO=$ac_cv_prog_LIPO
8114 if test -n "$LIPO"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8116 $as_echo "$LIPO" >&6; }
8117 else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8121
8122
8123 fi
8124 if test -z "$ac_cv_prog_LIPO"; then
8125 ac_ct_LIPO=$LIPO
8126 # Extract the first word of "lipo", so it can be a program name with args.
8127 set dummy lipo; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 if test -n "$ac_ct_LIPO"; then
8134 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8135 else
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8138 do
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8143 ac_cv_prog_ac_ct_LIPO="lipo"
8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8145 break 2
8146 fi
8147 done
8148 done
8149 IFS=$as_save_IFS
8150
8151 fi
8152 fi
8153 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8154 if test -n "$ac_ct_LIPO"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8156 $as_echo "$ac_ct_LIPO" >&6; }
8157 else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8160 fi
8161
8162 if test "x$ac_ct_LIPO" = x; then
8163 LIPO=":"
8164 else
8165 case $cross_compiling:$ac_tool_warned in
8166 yes:)
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8169 ac_tool_warned=yes ;;
8170 esac
8171 LIPO=$ac_ct_LIPO
8172 fi
8173 else
8174 LIPO="$ac_cv_prog_LIPO"
8175 fi
8176
8177 if test -n "$ac_tool_prefix"; then
8178 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8179 set dummy ${ac_tool_prefix}otool; ac_word=$2
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if ${ac_cv_prog_OTOOL+:} false; then :
8183 $as_echo_n "(cached) " >&6
8184 else
8185 if test -n "$OTOOL"; then
8186 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8187 else
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8190 do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8195 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8198 fi
8199 done
8200 done
8201 IFS=$as_save_IFS
8202
8203 fi
8204 fi
8205 OTOOL=$ac_cv_prog_OTOOL
8206 if test -n "$OTOOL"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8208 $as_echo "$OTOOL" >&6; }
8209 else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8212 fi
8213
8214
8215 fi
8216 if test -z "$ac_cv_prog_OTOOL"; then
8217 ac_ct_OTOOL=$OTOOL
8218 # Extract the first word of "otool", so it can be a program name with args.
8219 set dummy otool; ac_word=$2
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221 $as_echo_n "checking for $ac_word... " >&6; }
8222 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 if test -n "$ac_ct_OTOOL"; then
8226 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8227 else
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8235 ac_cv_prog_ac_ct_OTOOL="otool"
8236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 break 2
8238 fi
8239 done
8240 done
8241 IFS=$as_save_IFS
8242
8243 fi
8244 fi
8245 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8246 if test -n "$ac_ct_OTOOL"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8248 $as_echo "$ac_ct_OTOOL" >&6; }
8249 else
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8252 fi
8253
8254 if test "x$ac_ct_OTOOL" = x; then
8255 OTOOL=":"
8256 else
8257 case $cross_compiling:$ac_tool_warned in
8258 yes:)
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8261 ac_tool_warned=yes ;;
8262 esac
8263 OTOOL=$ac_ct_OTOOL
8264 fi
8265 else
8266 OTOOL="$ac_cv_prog_OTOOL"
8267 fi
8268
8269 if test -n "$ac_tool_prefix"; then
8270 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8271 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if ${ac_cv_prog_OTOOL64+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 if test -n "$OTOOL64"; then
8278 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291 done
8292 done
8293 IFS=$as_save_IFS
8294
8295 fi
8296 fi
8297 OTOOL64=$ac_cv_prog_OTOOL64
8298 if test -n "$OTOOL64"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8300 $as_echo "$OTOOL64" >&6; }
8301 else
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8304 fi
8305
8306
8307 fi
8308 if test -z "$ac_cv_prog_OTOOL64"; then
8309 ac_ct_OTOOL64=$OTOOL64
8310 # Extract the first word of "otool64", so it can be a program name with args.
8311 set dummy otool64; ac_word=$2
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 if test -n "$ac_ct_OTOOL64"; then
8318 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8319 else
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 for as_dir in $PATH
8322 do
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8327 ac_cv_prog_ac_ct_OTOOL64="otool64"
8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 break 2
8330 fi
8331 done
8332 done
8333 IFS=$as_save_IFS
8334
8335 fi
8336 fi
8337 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8338 if test -n "$ac_ct_OTOOL64"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8340 $as_echo "$ac_ct_OTOOL64" >&6; }
8341 else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8344 fi
8345
8346 if test "x$ac_ct_OTOOL64" = x; then
8347 OTOOL64=":"
8348 else
8349 case $cross_compiling:$ac_tool_warned in
8350 yes:)
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8353 ac_tool_warned=yes ;;
8354 esac
8355 OTOOL64=$ac_ct_OTOOL64
8356 fi
8357 else
8358 OTOOL64="$ac_cv_prog_OTOOL64"
8359 fi
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8388 $as_echo_n "checking for -single_module linker flag... " >&6; }
8389 if ${lt_cv_apple_cc_single_mod+:} false; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 lt_cv_apple_cc_single_mod=no
8393 if test -z "${LT_MULTI_MODULE}"; then
8394 # By default we will add the -single_module flag. You can override
8395 # by either setting the environment variable LT_MULTI_MODULE
8396 # non-empty at configure time, or by adding -multi_module to the
8397 # link flags.
8398 rm -rf libconftest.dylib*
8399 echo "int foo(void){return 1;}" > conftest.c
8400 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8401 -dynamiclib -Wl,-single_module conftest.c" >&5
8402 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8403 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8404 _lt_result=$?
8405 # If there is a non-empty error log, and "single_module"
8406 # appears in it, assume the flag caused a linker warning
8407 if test -s conftest.err && $GREP single_module conftest.err; then
8408 cat conftest.err >&5
8409 # Otherwise, if the output was created with a 0 exit code from
8410 # the compiler, it worked.
8411 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8412 lt_cv_apple_cc_single_mod=yes
8413 else
8414 cat conftest.err >&5
8415 fi
8416 rm -rf libconftest.dylib*
8417 rm -f conftest.*
8418 fi
8419 fi
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8421 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8422
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8424 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8425 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 lt_cv_ld_exported_symbols_list=no
8429 save_LDFLAGS=$LDFLAGS
8430 echo "_main" > conftest.sym
8431 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8434
8435 int
8436 main ()
8437 {
8438
8439 ;
8440 return 0;
8441 }
8442 _ACEOF
8443 if ac_fn_c_try_link "$LINENO"; then :
8444 lt_cv_ld_exported_symbols_list=yes
8445 else
8446 lt_cv_ld_exported_symbols_list=no
8447 fi
8448 rm -f core conftest.err conftest.$ac_objext \
8449 conftest$ac_exeext conftest.$ac_ext
8450 LDFLAGS="$save_LDFLAGS"
8451
8452 fi
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8454 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8455
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8457 $as_echo_n "checking for -force_load linker flag... " >&6; }
8458 if ${lt_cv_ld_force_load+:} false; then :
8459 $as_echo_n "(cached) " >&6
8460 else
8461 lt_cv_ld_force_load=no
8462 cat > conftest.c << _LT_EOF
8463 int forced_loaded() { return 2;}
8464 _LT_EOF
8465 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8466 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8467 echo "$AR cru libconftest.a conftest.o" >&5
8468 $AR cru libconftest.a conftest.o 2>&5
8469 echo "$RANLIB libconftest.a" >&5
8470 $RANLIB libconftest.a 2>&5
8471 cat > conftest.c << _LT_EOF
8472 int main() { return 0;}
8473 _LT_EOF
8474 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8475 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8476 _lt_result=$?
8477 if test -s conftest.err && $GREP force_load conftest.err; then
8478 cat conftest.err >&5
8479 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8480 lt_cv_ld_force_load=yes
8481 else
8482 cat conftest.err >&5
8483 fi
8484 rm -f conftest.err libconftest.a conftest conftest.c
8485 rm -rf conftest.dSYM
8486
8487 fi
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8489 $as_echo "$lt_cv_ld_force_load" >&6; }
8490 case $host_os in
8491 rhapsody* | darwin1.[012])
8492 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8493 darwin1.*)
8494 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8495 darwin*) # darwin 5.x on
8496 # if running on 10.5 or later, the deployment target defaults
8497 # to the OS version, if on x86, and 10.4, the deployment
8498 # target defaults to 10.4. Don't you love it?
8499 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8500 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8501 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8502 10.[012]*)
8503 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8504 10.*)
8505 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8506 esac
8507 ;;
8508 esac
8509 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8510 _lt_dar_single_mod='$single_module'
8511 fi
8512 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8513 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8514 else
8515 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8516 fi
8517 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8518 _lt_dsymutil='~$DSYMUTIL $lib || :'
8519 else
8520 _lt_dsymutil=
8521 fi
8522 ;;
8523 esac
8524
8525 for ac_header in dlfcn.h
8526 do :
8527 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8528 "
8529 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8530 cat >>confdefs.h <<_ACEOF
8531 #define HAVE_DLFCN_H 1
8532 _ACEOF
8533
8534 fi
8535
8536 done
8537
8538
8539
8540
8541
8542 # Set options
8543 # Check whether --enable-static was given.
8544 if test "${enable_static+set}" = set; then :
8545 enableval=$enable_static; p=${PACKAGE-default}
8546 case $enableval in
8547 yes) enable_static=yes ;;
8548 no) enable_static=no ;;
8549 *)
8550 enable_static=no
8551 # Look at the argument we got. We use all the common list separators.
8552 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8553 for pkg in $enableval; do
8554 IFS="$lt_save_ifs"
8555 if test "X$pkg" = "X$p"; then
8556 enable_static=yes
8557 fi
8558 done
8559 IFS="$lt_save_ifs"
8560 ;;
8561 esac
8562 else
8563 enable_static=no
8564 fi
8565
8566
8567
8568
8569
8570
8571
8572
8573 # Check whether --with-pic was given.
8574 if test "${with_pic+set}" = set; then :
8575 withval=$with_pic; lt_p=${PACKAGE-default}
8576 case $withval in
8577 yes|no) pic_mode=$withval ;;
8578 *)
8579 pic_mode=default
8580 # Look at the argument we got. We use all the common list separators.
8581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8582 for lt_pkg in $withval; do
8583 IFS="$lt_save_ifs"
8584 if test "X$lt_pkg" = "X$lt_p"; then
8585 pic_mode=yes
8586 fi
8587 done
8588 IFS="$lt_save_ifs"
8589 ;;
8590 esac
8591 else
8592 pic_mode=default
8593 fi
8594
8595
8596 test -z "$pic_mode" && pic_mode=yes
8597
8598
8599
8600
8601
8602
8603
8604
8605 enable_dlopen=no
8606
8607
8608 enable_win32_dll=no
8609
8610
8611 # Check whether --enable-shared was given.
8612 if test "${enable_shared+set}" = set; then :
8613 enableval=$enable_shared; p=${PACKAGE-default}
8614 case $enableval in
8615 yes) enable_shared=yes ;;
8616 no) enable_shared=no ;;
8617 *)
8618 enable_shared=no
8619 # Look at the argument we got. We use all the common list separators.
8620 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8621 for pkg in $enableval; do
8622 IFS="$lt_save_ifs"
8623 if test "X$pkg" = "X$p"; then
8624 enable_shared=yes
8625 fi
8626 done
8627 IFS="$lt_save_ifs"
8628 ;;
8629 esac
8630 else
8631 enable_shared=yes
8632 fi
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644 # Check whether --enable-fast-install was given.
8645 if test "${enable_fast_install+set}" = set; then :
8646 enableval=$enable_fast_install; p=${PACKAGE-default}
8647 case $enableval in
8648 yes) enable_fast_install=yes ;;
8649 no) enable_fast_install=no ;;
8650 *)
8651 enable_fast_install=no
8652 # Look at the argument we got. We use all the common list separators.
8653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8654 for pkg in $enableval; do
8655 IFS="$lt_save_ifs"
8656 if test "X$pkg" = "X$p"; then
8657 enable_fast_install=yes
8658 fi
8659 done
8660 IFS="$lt_save_ifs"
8661 ;;
8662 esac
8663 else
8664 enable_fast_install=yes
8665 fi
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677 # This can be used to rebuild libtool when needed
8678 LIBTOOL_DEPS="$ltmain"
8679
8680 # Always use our own libtool.
8681 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712 test -z "$LN_S" && LN_S="ln -s"
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727 if test -n "${ZSH_VERSION+set}" ; then
8728 setopt NO_GLOB_SUBST
8729 fi
8730
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8732 $as_echo_n "checking for objdir... " >&6; }
8733 if ${lt_cv_objdir+:} false; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8736 rm -f .libs 2>/dev/null
8737 mkdir .libs 2>/dev/null
8738 if test -d .libs; then
8739 lt_cv_objdir=.libs
8740 else
8741 # MS-DOS does not allow filenames that begin with a dot.
8742 lt_cv_objdir=_libs
8743 fi
8744 rmdir .libs 2>/dev/null
8745 fi
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8747 $as_echo "$lt_cv_objdir" >&6; }
8748 objdir=$lt_cv_objdir
8749
8750
8751
8752
8753
8754 cat >>confdefs.h <<_ACEOF
8755 #define LT_OBJDIR "$lt_cv_objdir/"
8756 _ACEOF
8757
8758
8759
8760
8761 case $host_os in
8762 aix3*)
8763 # AIX sometimes has problems with the GCC collect2 program. For some
8764 # reason, if we set the COLLECT_NAMES environment variable, the problems
8765 # vanish in a puff of smoke.
8766 if test "X${COLLECT_NAMES+set}" != Xset; then
8767 COLLECT_NAMES=
8768 export COLLECT_NAMES
8769 fi
8770 ;;
8771 esac
8772
8773 # Global variables:
8774 ofile=libtool
8775 can_build_shared=yes
8776
8777 # All known linkers require a `.a' archive for static linking (except MSVC,
8778 # which needs '.lib').
8779 libext=a
8780
8781 with_gnu_ld="$lt_cv_prog_gnu_ld"
8782
8783 old_CC="$CC"
8784 old_CFLAGS="$CFLAGS"
8785
8786 # Set sane defaults for various variables
8787 test -z "$CC" && CC=cc
8788 test -z "$LTCC" && LTCC=$CC
8789 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8790 test -z "$LD" && LD=ld
8791 test -z "$ac_objext" && ac_objext=o
8792
8793 for cc_temp in $compiler""; do
8794 case $cc_temp in
8795 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8796 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8797 \-*) ;;
8798 *) break;;
8799 esac
8800 done
8801 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8802
8803
8804 # Only perform the check for file, if the check method requires it
8805 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8806 case $deplibs_check_method in
8807 file_magic*)
8808 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8810 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8811 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 case $MAGIC_CMD in
8815 [\\/*] | ?:[\\/]*)
8816 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8817 ;;
8818 *)
8819 lt_save_MAGIC_CMD="$MAGIC_CMD"
8820 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8821 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8822 for ac_dir in $ac_dummy; do
8823 IFS="$lt_save_ifs"
8824 test -z "$ac_dir" && ac_dir=.
8825 if test -f $ac_dir/${ac_tool_prefix}file; then
8826 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8827 if test -n "$file_magic_test_file"; then
8828 case $deplibs_check_method in
8829 "file_magic "*)
8830 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8831 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8832 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8833 $EGREP "$file_magic_regex" > /dev/null; then
8834 :
8835 else
8836 cat <<_LT_EOF 1>&2
8837
8838 *** Warning: the command libtool uses to detect shared libraries,
8839 *** $file_magic_cmd, produces output that libtool cannot recognize.
8840 *** The result is that libtool may fail to recognize shared libraries
8841 *** as such. This will affect the creation of libtool libraries that
8842 *** depend on shared libraries, but programs linked with such libtool
8843 *** libraries will work regardless of this problem. Nevertheless, you
8844 *** may want to report the problem to your system manager and/or to
8845 *** bug-libtool@gnu.org
8846
8847 _LT_EOF
8848 fi ;;
8849 esac
8850 fi
8851 break
8852 fi
8853 done
8854 IFS="$lt_save_ifs"
8855 MAGIC_CMD="$lt_save_MAGIC_CMD"
8856 ;;
8857 esac
8858 fi
8859
8860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8861 if test -n "$MAGIC_CMD"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8863 $as_echo "$MAGIC_CMD" >&6; }
8864 else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8867 fi
8868
8869
8870
8871
8872
8873 if test -z "$lt_cv_path_MAGIC_CMD"; then
8874 if test -n "$ac_tool_prefix"; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8876 $as_echo_n "checking for file... " >&6; }
8877 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 case $MAGIC_CMD in
8881 [\\/*] | ?:[\\/]*)
8882 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8883 ;;
8884 *)
8885 lt_save_MAGIC_CMD="$MAGIC_CMD"
8886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8887 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8888 for ac_dir in $ac_dummy; do
8889 IFS="$lt_save_ifs"
8890 test -z "$ac_dir" && ac_dir=.
8891 if test -f $ac_dir/file; then
8892 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8893 if test -n "$file_magic_test_file"; then
8894 case $deplibs_check_method in
8895 "file_magic "*)
8896 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8898 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8899 $EGREP "$file_magic_regex" > /dev/null; then
8900 :
8901 else
8902 cat <<_LT_EOF 1>&2
8903
8904 *** Warning: the command libtool uses to detect shared libraries,
8905 *** $file_magic_cmd, produces output that libtool cannot recognize.
8906 *** The result is that libtool may fail to recognize shared libraries
8907 *** as such. This will affect the creation of libtool libraries that
8908 *** depend on shared libraries, but programs linked with such libtool
8909 *** libraries will work regardless of this problem. Nevertheless, you
8910 *** may want to report the problem to your system manager and/or to
8911 *** bug-libtool@gnu.org
8912
8913 _LT_EOF
8914 fi ;;
8915 esac
8916 fi
8917 break
8918 fi
8919 done
8920 IFS="$lt_save_ifs"
8921 MAGIC_CMD="$lt_save_MAGIC_CMD"
8922 ;;
8923 esac
8924 fi
8925
8926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8927 if test -n "$MAGIC_CMD"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8929 $as_echo "$MAGIC_CMD" >&6; }
8930 else
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8933 fi
8934
8935
8936 else
8937 MAGIC_CMD=:
8938 fi
8939 fi
8940
8941 fi
8942 ;;
8943 esac
8944
8945 # Use C for the default configuration in the libtool script
8946
8947 lt_save_CC="$CC"
8948 ac_ext=c
8949 ac_cpp='$CPP $CPPFLAGS'
8950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8953
8954
8955 # Source file extension for C test sources.
8956 ac_ext=c
8957
8958 # Object file extension for compiled C test sources.
8959 objext=o
8960 objext=$objext
8961
8962 # Code to be used in simple compile tests
8963 lt_simple_compile_test_code="int some_variable = 0;"
8964
8965 # Code to be used in simple link tests
8966 lt_simple_link_test_code='int main(){return(0);}'
8967
8968
8969
8970
8971
8972
8973
8974 # If no C compiler was specified, use CC.
8975 LTCC=${LTCC-"$CC"}
8976
8977 # If no C compiler flags were specified, use CFLAGS.
8978 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8979
8980 # Allow CC to be a program name with arguments.
8981 compiler=$CC
8982
8983 # Save the default compiler, since it gets overwritten when the other
8984 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8985 compiler_DEFAULT=$CC
8986
8987 # save warnings/boilerplate of simple test code
8988 ac_outfile=conftest.$ac_objext
8989 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8990 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8991 _lt_compiler_boilerplate=`cat conftest.err`
8992 $RM conftest*
8993
8994 ac_outfile=conftest.$ac_objext
8995 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8996 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8997 _lt_linker_boilerplate=`cat conftest.err`
8998 $RM -r conftest*
8999
9000
9001 ## CAVEAT EMPTOR:
9002 ## There is no encapsulation within the following macros, do not change
9003 ## the running order or otherwise move them around unless you know exactly
9004 ## what you are doing...
9005 if test -n "$compiler"; then
9006
9007 lt_prog_compiler_no_builtin_flag=
9008
9009 if test "$GCC" = yes; then
9010 case $cc_basename in
9011 nvcc*)
9012 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9013 *)
9014 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9015 esac
9016
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9018 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9019 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 lt_cv_prog_compiler_rtti_exceptions=no
9023 ac_outfile=conftest.$ac_objext
9024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9025 lt_compiler_flag="-fno-rtti -fno-exceptions"
9026 # Insert the option either (1) after the last *FLAGS variable, or
9027 # (2) before a word containing "conftest.", or (3) at the end.
9028 # Note that $ac_compile itself does not contain backslashes and begins
9029 # with a dollar sign (not a hyphen), so the echo should work correctly.
9030 # The option is referenced via a variable to avoid confusing sed.
9031 lt_compile=`echo "$ac_compile" | $SED \
9032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9034 -e 's:$: $lt_compiler_flag:'`
9035 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9036 (eval "$lt_compile" 2>conftest.err)
9037 ac_status=$?
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 if (exit $ac_status) && test -s "$ac_outfile"; then
9041 # The compiler can only warn and ignore the option if not recognized
9042 # So say no if there are warnings other than the usual output.
9043 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9045 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9046 lt_cv_prog_compiler_rtti_exceptions=yes
9047 fi
9048 fi
9049 $RM conftest*
9050
9051 fi
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9053 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9054
9055 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9056 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9057 else
9058 :
9059 fi
9060
9061 fi
9062
9063
9064
9065
9066
9067
9068 lt_prog_compiler_wl=
9069 lt_prog_compiler_pic=
9070 lt_prog_compiler_static=
9071
9072
9073 if test "$GCC" = yes; then
9074 lt_prog_compiler_wl='-Wl,'
9075 lt_prog_compiler_static='-static'
9076
9077 case $host_os in
9078 aix*)
9079 # All AIX code is PIC.
9080 if test "$host_cpu" = ia64; then
9081 # AIX 5 now supports IA64 processor
9082 lt_prog_compiler_static='-Bstatic'
9083 fi
9084 ;;
9085
9086 amigaos*)
9087 case $host_cpu in
9088 powerpc)
9089 # see comment about AmigaOS4 .so support
9090 lt_prog_compiler_pic='-fPIC'
9091 ;;
9092 m68k)
9093 # FIXME: we need at least 68020 code to build shared libraries, but
9094 # adding the `-m68020' flag to GCC prevents building anything better,
9095 # like `-m68040'.
9096 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9097 ;;
9098 esac
9099 ;;
9100
9101 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9102 # PIC is the default for these OSes.
9103 ;;
9104
9105 mingw* | cygwin* | pw32* | os2* | cegcc*)
9106 # This hack is so that the source file can tell whether it is being
9107 # built for inclusion in a dll (and should export symbols for example).
9108 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9109 # (--disable-auto-import) libraries
9110 lt_prog_compiler_pic='-DDLL_EXPORT'
9111 ;;
9112
9113 darwin* | rhapsody*)
9114 # PIC is the default on this platform
9115 # Common symbols not allowed in MH_DYLIB files
9116 lt_prog_compiler_pic='-fno-common'
9117 ;;
9118
9119 haiku*)
9120 # PIC is the default for Haiku.
9121 # The "-static" flag exists, but is broken.
9122 lt_prog_compiler_static=
9123 ;;
9124
9125 hpux*)
9126 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9127 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9128 # sets the default TLS model and affects inlining.
9129 case $host_cpu in
9130 hppa*64*)
9131 # +Z the default
9132 ;;
9133 *)
9134 lt_prog_compiler_pic='-fPIC'
9135 ;;
9136 esac
9137 ;;
9138
9139 interix[3-9]*)
9140 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9141 # Instead, we relocate shared libraries at runtime.
9142 ;;
9143
9144 msdosdjgpp*)
9145 # Just because we use GCC doesn't mean we suddenly get shared libraries
9146 # on systems that don't support them.
9147 lt_prog_compiler_can_build_shared=no
9148 enable_shared=no
9149 ;;
9150
9151 *nto* | *qnx*)
9152 # QNX uses GNU C++, but need to define -shared option too, otherwise
9153 # it will coredump.
9154 lt_prog_compiler_pic='-fPIC -shared'
9155 ;;
9156
9157 sysv4*MP*)
9158 if test -d /usr/nec; then
9159 lt_prog_compiler_pic=-Kconform_pic
9160 fi
9161 ;;
9162
9163 *)
9164 lt_prog_compiler_pic='-fPIC'
9165 ;;
9166 esac
9167
9168 case $cc_basename in
9169 nvcc*) # Cuda Compiler Driver 2.2
9170 lt_prog_compiler_wl='-Xlinker '
9171 if test -n "$lt_prog_compiler_pic"; then
9172 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9173 fi
9174 ;;
9175 esac
9176 else
9177 # PORTME Check for flag to pass linker flags through the system compiler.
9178 case $host_os in
9179 aix*)
9180 lt_prog_compiler_wl='-Wl,'
9181 if test "$host_cpu" = ia64; then
9182 # AIX 5 now supports IA64 processor
9183 lt_prog_compiler_static='-Bstatic'
9184 else
9185 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9186 fi
9187 ;;
9188
9189 mingw* | cygwin* | pw32* | os2* | cegcc*)
9190 # This hack is so that the source file can tell whether it is being
9191 # built for inclusion in a dll (and should export symbols for example).
9192 lt_prog_compiler_pic='-DDLL_EXPORT'
9193 ;;
9194
9195 hpux9* | hpux10* | hpux11*)
9196 lt_prog_compiler_wl='-Wl,'
9197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9198 # not for PA HP-UX.
9199 case $host_cpu in
9200 hppa*64*|ia64*)
9201 # +Z the default
9202 ;;
9203 *)
9204 lt_prog_compiler_pic='+Z'
9205 ;;
9206 esac
9207 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9208 lt_prog_compiler_static='${wl}-a ${wl}archive'
9209 ;;
9210
9211 irix5* | irix6* | nonstopux*)
9212 lt_prog_compiler_wl='-Wl,'
9213 # PIC (with -KPIC) is the default.
9214 lt_prog_compiler_static='-non_shared'
9215 ;;
9216
9217 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9218 case $cc_basename in
9219 # old Intel for x86_64 which still supported -KPIC.
9220 ecc*)
9221 lt_prog_compiler_wl='-Wl,'
9222 lt_prog_compiler_pic='-KPIC'
9223 lt_prog_compiler_static='-static'
9224 ;;
9225 # icc used to be incompatible with GCC.
9226 # ICC 10 doesn't accept -KPIC any more.
9227 icc* | ifort*)
9228 lt_prog_compiler_wl='-Wl,'
9229 lt_prog_compiler_pic='-fPIC'
9230 lt_prog_compiler_static='-static'
9231 ;;
9232 # Lahey Fortran 8.1.
9233 lf95*)
9234 lt_prog_compiler_wl='-Wl,'
9235 lt_prog_compiler_pic='--shared'
9236 lt_prog_compiler_static='--static'
9237 ;;
9238 nagfor*)
9239 # NAG Fortran compiler
9240 lt_prog_compiler_wl='-Wl,-Wl,,'
9241 lt_prog_compiler_pic='-PIC'
9242 lt_prog_compiler_static='-Bstatic'
9243 ;;
9244 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9245 # Portland Group compilers (*not* the Pentium gcc compiler,
9246 # which looks to be a dead project)
9247 lt_prog_compiler_wl='-Wl,'
9248 lt_prog_compiler_pic='-fpic'
9249 lt_prog_compiler_static='-Bstatic'
9250 ;;
9251 ccc*)
9252 lt_prog_compiler_wl='-Wl,'
9253 # All Alpha code is PIC.
9254 lt_prog_compiler_static='-non_shared'
9255 ;;
9256 xl* | bgxl* | bgf* | mpixl*)
9257 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9258 lt_prog_compiler_wl='-Wl,'
9259 lt_prog_compiler_pic='-qpic'
9260 lt_prog_compiler_static='-qstaticlink'
9261 ;;
9262 *)
9263 case `$CC -V 2>&1 | sed 5q` in
9264 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9265 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9266 lt_prog_compiler_pic='-KPIC'
9267 lt_prog_compiler_static='-Bstatic'
9268 lt_prog_compiler_wl=''
9269 ;;
9270 *Sun\ F* | *Sun*Fortran*)
9271 lt_prog_compiler_pic='-KPIC'
9272 lt_prog_compiler_static='-Bstatic'
9273 lt_prog_compiler_wl='-Qoption ld '
9274 ;;
9275 *Sun\ C*)
9276 # Sun C 5.9
9277 lt_prog_compiler_pic='-KPIC'
9278 lt_prog_compiler_static='-Bstatic'
9279 lt_prog_compiler_wl='-Wl,'
9280 ;;
9281 *Intel*\ [CF]*Compiler*)
9282 lt_prog_compiler_wl='-Wl,'
9283 lt_prog_compiler_pic='-fPIC'
9284 lt_prog_compiler_static='-static'
9285 ;;
9286 *Portland\ Group*)
9287 lt_prog_compiler_wl='-Wl,'
9288 lt_prog_compiler_pic='-fpic'
9289 lt_prog_compiler_static='-Bstatic'
9290 ;;
9291 esac
9292 ;;
9293 esac
9294 ;;
9295
9296 newsos6)
9297 lt_prog_compiler_pic='-KPIC'
9298 lt_prog_compiler_static='-Bstatic'
9299 ;;
9300
9301 *nto* | *qnx*)
9302 # QNX uses GNU C++, but need to define -shared option too, otherwise
9303 # it will coredump.
9304 lt_prog_compiler_pic='-fPIC -shared'
9305 ;;
9306
9307 osf3* | osf4* | osf5*)
9308 lt_prog_compiler_wl='-Wl,'
9309 # All OSF/1 code is PIC.
9310 lt_prog_compiler_static='-non_shared'
9311 ;;
9312
9313 rdos*)
9314 lt_prog_compiler_static='-non_shared'
9315 ;;
9316
9317 solaris*)
9318 lt_prog_compiler_pic='-KPIC'
9319 lt_prog_compiler_static='-Bstatic'
9320 case $cc_basename in
9321 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9322 lt_prog_compiler_wl='-Qoption ld ';;
9323 *)
9324 lt_prog_compiler_wl='-Wl,';;
9325 esac
9326 ;;
9327
9328 sunos4*)
9329 lt_prog_compiler_wl='-Qoption ld '
9330 lt_prog_compiler_pic='-PIC'
9331 lt_prog_compiler_static='-Bstatic'
9332 ;;
9333
9334 sysv4 | sysv4.2uw2* | sysv4.3*)
9335 lt_prog_compiler_wl='-Wl,'
9336 lt_prog_compiler_pic='-KPIC'
9337 lt_prog_compiler_static='-Bstatic'
9338 ;;
9339
9340 sysv4*MP*)
9341 if test -d /usr/nec ;then
9342 lt_prog_compiler_pic='-Kconform_pic'
9343 lt_prog_compiler_static='-Bstatic'
9344 fi
9345 ;;
9346
9347 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9348 lt_prog_compiler_wl='-Wl,'
9349 lt_prog_compiler_pic='-KPIC'
9350 lt_prog_compiler_static='-Bstatic'
9351 ;;
9352
9353 unicos*)
9354 lt_prog_compiler_wl='-Wl,'
9355 lt_prog_compiler_can_build_shared=no
9356 ;;
9357
9358 uts4*)
9359 lt_prog_compiler_pic='-pic'
9360 lt_prog_compiler_static='-Bstatic'
9361 ;;
9362
9363 *)
9364 lt_prog_compiler_can_build_shared=no
9365 ;;
9366 esac
9367 fi
9368
9369 case $host_os in
9370 # For platforms which do not support PIC, -DPIC is meaningless:
9371 *djgpp*)
9372 lt_prog_compiler_pic=
9373 ;;
9374 *)
9375 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9376 ;;
9377 esac
9378
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9380 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9381 if ${lt_cv_prog_compiler_pic+:} false; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9385 fi
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9387 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9388 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9389
9390 #
9391 # Check to make sure the PIC flag actually works.
9392 #
9393 if test -n "$lt_prog_compiler_pic"; then
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9395 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9396 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9397 $as_echo_n "(cached) " >&6
9398 else
9399 lt_cv_prog_compiler_pic_works=no
9400 ac_outfile=conftest.$ac_objext
9401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9402 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9403 # Insert the option either (1) after the last *FLAGS variable, or
9404 # (2) before a word containing "conftest.", or (3) at the end.
9405 # Note that $ac_compile itself does not contain backslashes and begins
9406 # with a dollar sign (not a hyphen), so the echo should work correctly.
9407 # The option is referenced via a variable to avoid confusing sed.
9408 lt_compile=`echo "$ac_compile" | $SED \
9409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9411 -e 's:$: $lt_compiler_flag:'`
9412 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9413 (eval "$lt_compile" 2>conftest.err)
9414 ac_status=$?
9415 cat conftest.err >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 if (exit $ac_status) && test -s "$ac_outfile"; then
9418 # The compiler can only warn and ignore the option if not recognized
9419 # So say no if there are warnings other than the usual output.
9420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9422 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9423 lt_cv_prog_compiler_pic_works=yes
9424 fi
9425 fi
9426 $RM conftest*
9427
9428 fi
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9430 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9431
9432 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9433 case $lt_prog_compiler_pic in
9434 "" | " "*) ;;
9435 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9436 esac
9437 else
9438 lt_prog_compiler_pic=
9439 lt_prog_compiler_can_build_shared=no
9440 fi
9441
9442 fi
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454 #
9455 # Check to make sure the static flag actually works.
9456 #
9457 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9459 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9460 if ${lt_cv_prog_compiler_static_works+:} false; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 lt_cv_prog_compiler_static_works=no
9464 save_LDFLAGS="$LDFLAGS"
9465 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9466 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9468 # The linker can only warn and ignore the option if not recognized
9469 # So say no if there are warnings
9470 if test -s conftest.err; then
9471 # Append any errors to the config.log.
9472 cat conftest.err 1>&5
9473 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475 if diff conftest.exp conftest.er2 >/dev/null; then
9476 lt_cv_prog_compiler_static_works=yes
9477 fi
9478 else
9479 lt_cv_prog_compiler_static_works=yes
9480 fi
9481 fi
9482 $RM -r conftest*
9483 LDFLAGS="$save_LDFLAGS"
9484
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9487 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9488
9489 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9490 :
9491 else
9492 lt_prog_compiler_static=
9493 fi
9494
9495
9496
9497
9498
9499
9500
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9502 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9503 if ${lt_cv_prog_compiler_c_o+:} false; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 lt_cv_prog_compiler_c_o=no
9507 $RM -r conftest 2>/dev/null
9508 mkdir conftest
9509 cd conftest
9510 mkdir out
9511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9512
9513 lt_compiler_flag="-o out/conftest2.$ac_objext"
9514 # Insert the option either (1) after the last *FLAGS variable, or
9515 # (2) before a word containing "conftest.", or (3) at the end.
9516 # Note that $ac_compile itself does not contain backslashes and begins
9517 # with a dollar sign (not a hyphen), so the echo should work correctly.
9518 lt_compile=`echo "$ac_compile" | $SED \
9519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9521 -e 's:$: $lt_compiler_flag:'`
9522 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9523 (eval "$lt_compile" 2>out/conftest.err)
9524 ac_status=$?
9525 cat out/conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9528 then
9529 # The compiler can only warn and ignore the option if not recognized
9530 # So say no if there are warnings
9531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9534 lt_cv_prog_compiler_c_o=yes
9535 fi
9536 fi
9537 chmod u+w . 2>&5
9538 $RM conftest*
9539 # SGI C++ compiler will create directory out/ii_files/ for
9540 # template instantiation
9541 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9542 $RM out/* && rmdir out
9543 cd ..
9544 $RM -r conftest
9545 $RM conftest*
9546
9547 fi
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9549 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9550
9551
9552
9553
9554
9555
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9557 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9558 if ${lt_cv_prog_compiler_c_o+:} false; then :
9559 $as_echo_n "(cached) " >&6
9560 else
9561 lt_cv_prog_compiler_c_o=no
9562 $RM -r conftest 2>/dev/null
9563 mkdir conftest
9564 cd conftest
9565 mkdir out
9566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9567
9568 lt_compiler_flag="-o out/conftest2.$ac_objext"
9569 # Insert the option either (1) after the last *FLAGS variable, or
9570 # (2) before a word containing "conftest.", or (3) at the end.
9571 # Note that $ac_compile itself does not contain backslashes and begins
9572 # with a dollar sign (not a hyphen), so the echo should work correctly.
9573 lt_compile=`echo "$ac_compile" | $SED \
9574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9576 -e 's:$: $lt_compiler_flag:'`
9577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9578 (eval "$lt_compile" 2>out/conftest.err)
9579 ac_status=$?
9580 cat out/conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9583 then
9584 # The compiler can only warn and ignore the option if not recognized
9585 # So say no if there are warnings
9586 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9589 lt_cv_prog_compiler_c_o=yes
9590 fi
9591 fi
9592 chmod u+w . 2>&5
9593 $RM conftest*
9594 # SGI C++ compiler will create directory out/ii_files/ for
9595 # template instantiation
9596 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9597 $RM out/* && rmdir out
9598 cd ..
9599 $RM -r conftest
9600 $RM conftest*
9601
9602 fi
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9604 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9605
9606
9607
9608
9609 hard_links="nottested"
9610 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9611 # do not overwrite the value of need_locks provided by the user
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9613 $as_echo_n "checking if we can lock with hard links... " >&6; }
9614 hard_links=yes
9615 $RM conftest*
9616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9617 touch conftest.a
9618 ln conftest.a conftest.b 2>&5 || hard_links=no
9619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9621 $as_echo "$hard_links" >&6; }
9622 if test "$hard_links" = no; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9624 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9625 need_locks=warn
9626 fi
9627 else
9628 need_locks=no
9629 fi
9630
9631
9632
9633
9634
9635
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9637 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9638
9639 runpath_var=
9640 allow_undefined_flag=
9641 always_export_symbols=no
9642 archive_cmds=
9643 archive_expsym_cmds=
9644 compiler_needs_object=no
9645 enable_shared_with_static_runtimes=no
9646 export_dynamic_flag_spec=
9647 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9648 hardcode_automatic=no
9649 hardcode_direct=no
9650 hardcode_direct_absolute=no
9651 hardcode_libdir_flag_spec=
9652 hardcode_libdir_separator=
9653 hardcode_minus_L=no
9654 hardcode_shlibpath_var=unsupported
9655 inherit_rpath=no
9656 link_all_deplibs=unknown
9657 module_cmds=
9658 module_expsym_cmds=
9659 old_archive_from_new_cmds=
9660 old_archive_from_expsyms_cmds=
9661 thread_safe_flag_spec=
9662 whole_archive_flag_spec=
9663 # include_expsyms should be a list of space-separated symbols to be *always*
9664 # included in the symbol list
9665 include_expsyms=
9666 # exclude_expsyms can be an extended regexp of symbols to exclude
9667 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9668 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9669 # as well as any symbol that contains `d'.
9670 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9671 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9672 # platforms (ab)use it in PIC code, but their linkers get confused if
9673 # the symbol is explicitly referenced. Since portable code cannot
9674 # rely on this symbol name, it's probably fine to never include it in
9675 # preloaded symbol tables.
9676 # Exclude shared library initialization/finalization symbols.
9677 extract_expsyms_cmds=
9678
9679 case $host_os in
9680 cygwin* | mingw* | pw32* | cegcc*)
9681 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9682 # When not using gcc, we currently assume that we are using
9683 # Microsoft Visual C++.
9684 if test "$GCC" != yes; then
9685 with_gnu_ld=no
9686 fi
9687 ;;
9688 interix*)
9689 # we just hope/assume this is gcc and not c89 (= MSVC++)
9690 with_gnu_ld=yes
9691 ;;
9692 openbsd*)
9693 with_gnu_ld=no
9694 ;;
9695 esac
9696
9697 ld_shlibs=yes
9698
9699 # On some targets, GNU ld is compatible enough with the native linker
9700 # that we're better off using the native interface for both.
9701 lt_use_gnu_ld_interface=no
9702 if test "$with_gnu_ld" = yes; then
9703 case $host_os in
9704 aix*)
9705 # The AIX port of GNU ld has always aspired to compatibility
9706 # with the native linker. However, as the warning in the GNU ld
9707 # block says, versions before 2.19.5* couldn't really create working
9708 # shared libraries, regardless of the interface used.
9709 case `$LD -v 2>&1` in
9710 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9711 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9712 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9713 *)
9714 lt_use_gnu_ld_interface=yes
9715 ;;
9716 esac
9717 ;;
9718 *)
9719 lt_use_gnu_ld_interface=yes
9720 ;;
9721 esac
9722 fi
9723
9724 if test "$lt_use_gnu_ld_interface" = yes; then
9725 # If archive_cmds runs LD, not CC, wlarc should be empty
9726 wlarc='${wl}'
9727
9728 # Set some defaults for GNU ld with shared library support. These
9729 # are reset later if shared libraries are not supported. Putting them
9730 # here allows them to be overridden if necessary.
9731 runpath_var=LD_RUN_PATH
9732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9733 export_dynamic_flag_spec='${wl}--export-dynamic'
9734 # ancient GNU ld didn't support --whole-archive et. al.
9735 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9736 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9737 else
9738 whole_archive_flag_spec=
9739 fi
9740 supports_anon_versioning=no
9741 case `$LD -v 2>&1` in
9742 *GNU\ gold*) supports_anon_versioning=yes ;;
9743 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9746 *\ 2.11.*) ;; # other 2.11 versions
9747 *) supports_anon_versioning=yes ;;
9748 esac
9749
9750 # See if GNU ld supports shared libraries.
9751 case $host_os in
9752 aix[3-9]*)
9753 # On AIX/PPC, the GNU linker is very broken
9754 if test "$host_cpu" != ia64; then
9755 ld_shlibs=no
9756 cat <<_LT_EOF 1>&2
9757
9758 *** Warning: the GNU linker, at least up to release 2.19, is reported
9759 *** to be unable to reliably create shared libraries on AIX.
9760 *** Therefore, libtool is disabling shared libraries support. If you
9761 *** really care for shared libraries, you may want to install binutils
9762 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9763 *** You will then need to restart the configuration process.
9764
9765 _LT_EOF
9766 fi
9767 ;;
9768
9769 amigaos*)
9770 case $host_cpu in
9771 powerpc)
9772 # see comment about AmigaOS4 .so support
9773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9774 archive_expsym_cmds=''
9775 ;;
9776 m68k)
9777 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)'
9778 hardcode_libdir_flag_spec='-L$libdir'
9779 hardcode_minus_L=yes
9780 ;;
9781 esac
9782 ;;
9783
9784 beos*)
9785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9786 allow_undefined_flag=unsupported
9787 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9788 # support --undefined. This deserves some investigation. FIXME
9789 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790 else
9791 ld_shlibs=no
9792 fi
9793 ;;
9794
9795 cygwin* | mingw* | pw32* | cegcc*)
9796 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9797 # as there is no search path for DLLs.
9798 hardcode_libdir_flag_spec='-L$libdir'
9799 export_dynamic_flag_spec='${wl}--export-all-symbols'
9800 allow_undefined_flag=unsupported
9801 always_export_symbols=no
9802 enable_shared_with_static_runtimes=yes
9803 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'
9804 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9805
9806 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9808 # If the export-symbols file already is a .def file (1st line
9809 # is EXPORTS), use it as is; otherwise, prepend...
9810 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9811 cp $export_symbols $output_objdir/$soname.def;
9812 else
9813 echo EXPORTS > $output_objdir/$soname.def;
9814 cat $export_symbols >> $output_objdir/$soname.def;
9815 fi~
9816 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9817 else
9818 ld_shlibs=no
9819 fi
9820 ;;
9821
9822 haiku*)
9823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9824 link_all_deplibs=yes
9825 ;;
9826
9827 interix[3-9]*)
9828 hardcode_direct=no
9829 hardcode_shlibpath_var=no
9830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9831 export_dynamic_flag_spec='${wl}-E'
9832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9833 # Instead, shared libraries are loaded at an image base (0x10000000 by
9834 # default) and relocated if they conflict, which is a slow very memory
9835 # consuming and fragmenting process. To avoid this, we pick a random,
9836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9837 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9838 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9839 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'
9840 ;;
9841
9842 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9843 tmp_diet=no
9844 if test "$host_os" = linux-dietlibc; then
9845 case $cc_basename in
9846 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9847 esac
9848 fi
9849 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9850 && test "$tmp_diet" = no
9851 then
9852 tmp_addflag=' $pic_flag'
9853 tmp_sharedflag='-shared'
9854 case $cc_basename,$host_cpu in
9855 pgcc*) # Portland Group C compiler
9856 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'
9857 tmp_addflag=' $pic_flag'
9858 ;;
9859 pgf77* | pgf90* | pgf95* | pgfortran*)
9860 # Portland Group f77 and f90 compilers
9861 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'
9862 tmp_addflag=' $pic_flag -Mnomain' ;;
9863 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9864 tmp_addflag=' -i_dynamic' ;;
9865 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9866 tmp_addflag=' -i_dynamic -nofor_main' ;;
9867 ifc* | ifort*) # Intel Fortran compiler
9868 tmp_addflag=' -nofor_main' ;;
9869 lf95*) # Lahey Fortran 8.1
9870 whole_archive_flag_spec=
9871 tmp_sharedflag='--shared' ;;
9872 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9873 tmp_sharedflag='-qmkshrobj'
9874 tmp_addflag= ;;
9875 nvcc*) # Cuda Compiler Driver 2.2
9876 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'
9877 compiler_needs_object=yes
9878 ;;
9879 esac
9880 case `$CC -V 2>&1 | sed 5q` in
9881 *Sun\ C*) # Sun C 5.9
9882 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'
9883 compiler_needs_object=yes
9884 tmp_sharedflag='-G' ;;
9885 *Sun\ F*) # Sun Fortran 8.3
9886 tmp_sharedflag='-G' ;;
9887 esac
9888 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9889
9890 if test "x$supports_anon_versioning" = xyes; then
9891 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9893 echo "local: *; };" >> $output_objdir/$libname.ver~
9894 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9895 fi
9896
9897 case $cc_basename in
9898 xlf* | bgf* | bgxlf* | mpixlf*)
9899 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9900 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9902 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9903 if test "x$supports_anon_versioning" = xyes; then
9904 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9906 echo "local: *; };" >> $output_objdir/$libname.ver~
9907 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9908 fi
9909 ;;
9910 esac
9911 else
9912 ld_shlibs=no
9913 fi
9914 ;;
9915
9916 netbsd*)
9917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9918 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9919 wlarc=
9920 else
9921 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9922 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9923 fi
9924 ;;
9925
9926 solaris*)
9927 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9928 ld_shlibs=no
9929 cat <<_LT_EOF 1>&2
9930
9931 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9932 *** create shared libraries on Solaris systems. Therefore, libtool
9933 *** is disabling shared libraries support. We urge you to upgrade GNU
9934 *** binutils to release 2.9.1 or newer. Another option is to modify
9935 *** your PATH or compiler configuration so that the native linker is
9936 *** used, and then restart.
9937
9938 _LT_EOF
9939 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9940 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9941 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9942 else
9943 ld_shlibs=no
9944 fi
9945 ;;
9946
9947 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9948 case `$LD -v 2>&1` in
9949 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9950 ld_shlibs=no
9951 cat <<_LT_EOF 1>&2
9952
9953 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9954 *** reliably create shared libraries on SCO systems. Therefore, libtool
9955 *** is disabling shared libraries support. We urge you to upgrade GNU
9956 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9957 *** your PATH or compiler configuration so that the native linker is
9958 *** used, and then restart.
9959
9960 _LT_EOF
9961 ;;
9962 *)
9963 # For security reasons, it is highly recommended that you always
9964 # use absolute paths for naming shared libraries, and exclude the
9965 # DT_RUNPATH tag from executables and libraries. But doing so
9966 # requires that you compile everything twice, which is a pain.
9967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9971 else
9972 ld_shlibs=no
9973 fi
9974 ;;
9975 esac
9976 ;;
9977
9978 sunos4*)
9979 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9980 wlarc=
9981 hardcode_direct=yes
9982 hardcode_shlibpath_var=no
9983 ;;
9984
9985 *)
9986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9987 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9988 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9989 else
9990 ld_shlibs=no
9991 fi
9992 ;;
9993 esac
9994
9995 if test "$ld_shlibs" = no; then
9996 runpath_var=
9997 hardcode_libdir_flag_spec=
9998 export_dynamic_flag_spec=
9999 whole_archive_flag_spec=
10000 fi
10001 else
10002 # PORTME fill in a description of your system's linker (not GNU ld)
10003 case $host_os in
10004 aix3*)
10005 allow_undefined_flag=unsupported
10006 always_export_symbols=yes
10007 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'
10008 # Note: this linker hardcodes the directories in LIBPATH if there
10009 # are no directories specified by -L.
10010 hardcode_minus_L=yes
10011 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10012 # Neither direct hardcoding nor static linking is supported with a
10013 # broken collect2.
10014 hardcode_direct=unsupported
10015 fi
10016 ;;
10017
10018 aix[4-9]*)
10019 if test "$host_cpu" = ia64; then
10020 # On IA64, the linker does run time linking by default, so we don't
10021 # have to do anything special.
10022 aix_use_runtimelinking=no
10023 exp_sym_flag='-Bexport'
10024 no_entry_flag=""
10025 else
10026 # If we're using GNU nm, then we don't want the "-C" option.
10027 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10028 # Also, AIX nm treats weak defined symbols like other global
10029 # defined symbols, whereas GNU nm marks them as "W".
10030 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10031 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10032 else
10033 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10034 fi
10035 aix_use_runtimelinking=no
10036
10037 # Test if we are trying to use run time linking or normal
10038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10039 # need to do runtime linking.
10040 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10041 for ld_flag in $LDFLAGS; do
10042 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10043 aix_use_runtimelinking=yes
10044 break
10045 fi
10046 done
10047 ;;
10048 esac
10049
10050 exp_sym_flag='-bexport'
10051 no_entry_flag='-bnoentry'
10052 fi
10053
10054 # When large executables or shared objects are built, AIX ld can
10055 # have problems creating the table of contents. If linking a library
10056 # or program results in "error TOC overflow" add -mminimal-toc to
10057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10059
10060 archive_cmds=''
10061 hardcode_direct=yes
10062 hardcode_direct_absolute=yes
10063 hardcode_libdir_separator=':'
10064 link_all_deplibs=yes
10065 file_list_spec='${wl}-f,'
10066
10067 if test "$GCC" = yes; then
10068 case $host_os in aix4.[012]|aix4.[012].*)
10069 # We only want to do this on AIX 4.2 and lower, the check
10070 # below for broken collect2 doesn't work under 4.3+
10071 collect2name=`${CC} -print-prog-name=collect2`
10072 if test -f "$collect2name" &&
10073 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10074 then
10075 # We have reworked collect2
10076 :
10077 else
10078 # We have old collect2
10079 hardcode_direct=unsupported
10080 # It fails to find uninstalled libraries when the uninstalled
10081 # path is not listed in the libpath. Setting hardcode_minus_L
10082 # to unsupported forces relinking
10083 hardcode_minus_L=yes
10084 hardcode_libdir_flag_spec='-L$libdir'
10085 hardcode_libdir_separator=
10086 fi
10087 ;;
10088 esac
10089 shared_flag='-shared'
10090 if test "$aix_use_runtimelinking" = yes; then
10091 shared_flag="$shared_flag "'${wl}-G'
10092 fi
10093 else
10094 # not using gcc
10095 if test "$host_cpu" = ia64; then
10096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10097 # chokes on -Wl,-G. The following line is correct:
10098 shared_flag='-G'
10099 else
10100 if test "$aix_use_runtimelinking" = yes; then
10101 shared_flag='${wl}-G'
10102 else
10103 shared_flag='${wl}-bM:SRE'
10104 fi
10105 fi
10106 fi
10107
10108 export_dynamic_flag_spec='${wl}-bexpall'
10109 # It seems that -bexpall does not export symbols beginning with
10110 # underscore (_), so it is better to generate a list of symbols to export.
10111 always_export_symbols=yes
10112 if test "$aix_use_runtimelinking" = yes; then
10113 # Warning - without using the other runtime loading flags (-brtl),
10114 # -berok will link without error, but may produce a broken library.
10115 allow_undefined_flag='-berok'
10116 # Determine the default libpath from the value encoded in an
10117 # empty executable.
10118 if test "${lt_cv_aix_libpath+set}" = set; then
10119 aix_libpath=$lt_cv_aix_libpath
10120 else
10121 if ${lt_cv_aix_libpath_+:} false; then :
10122 $as_echo_n "(cached) " >&6
10123 else
10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10126
10127 int
10128 main ()
10129 {
10130
10131 ;
10132 return 0;
10133 }
10134 _ACEOF
10135 if ac_fn_c_try_link "$LINENO"; then :
10136
10137 lt_aix_libpath_sed='
10138 /Import File Strings/,/^$/ {
10139 /^0/ {
10140 s/^0 *\([^ ]*\) *$/\1/
10141 p
10142 }
10143 }'
10144 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10145 # Check for a 64-bit object if we didn't find anything.
10146 if test -z "$lt_cv_aix_libpath_"; then
10147 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10148 fi
10149 fi
10150 rm -f core conftest.err conftest.$ac_objext \
10151 conftest$ac_exeext conftest.$ac_ext
10152 if test -z "$lt_cv_aix_libpath_"; then
10153 lt_cv_aix_libpath_="/usr/lib:/lib"
10154 fi
10155
10156 fi
10157
10158 aix_libpath=$lt_cv_aix_libpath_
10159 fi
10160
10161 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10162 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10163 else
10164 if test "$host_cpu" = ia64; then
10165 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10166 allow_undefined_flag="-z nodefs"
10167 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"
10168 else
10169 # Determine the default libpath from the value encoded in an
10170 # empty executable.
10171 if test "${lt_cv_aix_libpath+set}" = set; then
10172 aix_libpath=$lt_cv_aix_libpath
10173 else
10174 if ${lt_cv_aix_libpath_+:} false; then :
10175 $as_echo_n "(cached) " >&6
10176 else
10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179
10180 int
10181 main ()
10182 {
10183
10184 ;
10185 return 0;
10186 }
10187 _ACEOF
10188 if ac_fn_c_try_link "$LINENO"; then :
10189
10190 lt_aix_libpath_sed='
10191 /Import File Strings/,/^$/ {
10192 /^0/ {
10193 s/^0 *\([^ ]*\) *$/\1/
10194 p
10195 }
10196 }'
10197 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10198 # Check for a 64-bit object if we didn't find anything.
10199 if test -z "$lt_cv_aix_libpath_"; then
10200 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10201 fi
10202 fi
10203 rm -f core conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
10205 if test -z "$lt_cv_aix_libpath_"; then
10206 lt_cv_aix_libpath_="/usr/lib:/lib"
10207 fi
10208
10209 fi
10210
10211 aix_libpath=$lt_cv_aix_libpath_
10212 fi
10213
10214 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10215 # Warning - without using the other run time loading flags,
10216 # -berok will link without error, but may produce a broken library.
10217 no_undefined_flag=' ${wl}-bernotok'
10218 allow_undefined_flag=' ${wl}-berok'
10219 if test "$with_gnu_ld" = yes; then
10220 # We only use this code for GNU lds that support --whole-archive.
10221 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10222 else
10223 # Exported symbols can be pulled into shared objects from archives
10224 whole_archive_flag_spec='$convenience'
10225 fi
10226 archive_cmds_need_lc=yes
10227 # This is similar to how AIX traditionally builds its shared libraries.
10228 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10229 fi
10230 fi
10231 ;;
10232
10233 amigaos*)
10234 case $host_cpu in
10235 powerpc)
10236 # see comment about AmigaOS4 .so support
10237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10238 archive_expsym_cmds=''
10239 ;;
10240 m68k)
10241 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)'
10242 hardcode_libdir_flag_spec='-L$libdir'
10243 hardcode_minus_L=yes
10244 ;;
10245 esac
10246 ;;
10247
10248 bsdi[45]*)
10249 export_dynamic_flag_spec=-rdynamic
10250 ;;
10251
10252 cygwin* | mingw* | pw32* | cegcc*)
10253 # When not using gcc, we currently assume that we are using
10254 # Microsoft Visual C++.
10255 # hardcode_libdir_flag_spec is actually meaningless, as there is
10256 # no search path for DLLs.
10257 case $cc_basename in
10258 cl*)
10259 # Native MSVC
10260 hardcode_libdir_flag_spec=' '
10261 allow_undefined_flag=unsupported
10262 always_export_symbols=yes
10263 file_list_spec='@'
10264 # Tell ltmain to make .lib files, not .a files.
10265 libext=lib
10266 # Tell ltmain to make .dll files, not .so files.
10267 shrext_cmds=".dll"
10268 # FIXME: Setting linknames here is a bad hack.
10269 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10270 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10271 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10272 else
10273 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10274 fi~
10275 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10276 linknames='
10277 # The linker will not automatically build a static lib if we build a DLL.
10278 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10279 enable_shared_with_static_runtimes=yes
10280 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10282 # Don't use ranlib
10283 old_postinstall_cmds='chmod 644 $oldlib'
10284 postlink_cmds='lt_outputfile="@OUTPUT@"~
10285 lt_tool_outputfile="@TOOL_OUTPUT@"~
10286 case $lt_outputfile in
10287 *.exe|*.EXE) ;;
10288 *)
10289 lt_outputfile="$lt_outputfile.exe"
10290 lt_tool_outputfile="$lt_tool_outputfile.exe"
10291 ;;
10292 esac~
10293 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10294 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10295 $RM "$lt_outputfile.manifest";
10296 fi'
10297 ;;
10298 *)
10299 # Assume MSVC wrapper
10300 hardcode_libdir_flag_spec=' '
10301 allow_undefined_flag=unsupported
10302 # Tell ltmain to make .lib files, not .a files.
10303 libext=lib
10304 # Tell ltmain to make .dll files, not .so files.
10305 shrext_cmds=".dll"
10306 # FIXME: Setting linknames here is a bad hack.
10307 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10308 # The linker will automatically build a .lib file if we build a DLL.
10309 old_archive_from_new_cmds='true'
10310 # FIXME: Should let the user specify the lib program.
10311 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10312 enable_shared_with_static_runtimes=yes
10313 ;;
10314 esac
10315 ;;
10316
10317 darwin* | rhapsody*)
10318
10319
10320 archive_cmds_need_lc=no
10321 hardcode_direct=no
10322 hardcode_automatic=yes
10323 hardcode_shlibpath_var=unsupported
10324 if test "$lt_cv_ld_force_load" = "yes"; then
10325 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\"`'
10326
10327 else
10328 whole_archive_flag_spec=''
10329 fi
10330 link_all_deplibs=yes
10331 allow_undefined_flag="$_lt_dar_allow_undefined"
10332 case $cc_basename in
10333 ifort*) _lt_dar_can_shared=yes ;;
10334 *) _lt_dar_can_shared=$GCC ;;
10335 esac
10336 if test "$_lt_dar_can_shared" = "yes"; then
10337 output_verbose_link_cmd=func_echo_all
10338 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10339 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10340 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}"
10341 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}"
10342
10343 else
10344 ld_shlibs=no
10345 fi
10346
10347 ;;
10348
10349 dgux*)
10350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351 hardcode_libdir_flag_spec='-L$libdir'
10352 hardcode_shlibpath_var=no
10353 ;;
10354
10355 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10356 # support. Future versions do this automatically, but an explicit c++rt0.o
10357 # does not break anything, and helps significantly (at the cost of a little
10358 # extra space).
10359 freebsd2.2*)
10360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10361 hardcode_libdir_flag_spec='-R$libdir'
10362 hardcode_direct=yes
10363 hardcode_shlibpath_var=no
10364 ;;
10365
10366 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10367 freebsd2.*)
10368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10369 hardcode_direct=yes
10370 hardcode_minus_L=yes
10371 hardcode_shlibpath_var=no
10372 ;;
10373
10374 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10375 freebsd* | dragonfly*)
10376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10377 hardcode_libdir_flag_spec='-R$libdir'
10378 hardcode_direct=yes
10379 hardcode_shlibpath_var=no
10380 ;;
10381
10382 hpux9*)
10383 if test "$GCC" = yes; then
10384 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10385 else
10386 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10387 fi
10388 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10389 hardcode_libdir_separator=:
10390 hardcode_direct=yes
10391
10392 # hardcode_minus_L: Not really in the search PATH,
10393 # but as the default location of the library.
10394 hardcode_minus_L=yes
10395 export_dynamic_flag_spec='${wl}-E'
10396 ;;
10397
10398 hpux10*)
10399 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10400 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10401 else
10402 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10403 fi
10404 if test "$with_gnu_ld" = no; then
10405 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10406 hardcode_libdir_separator=:
10407 hardcode_direct=yes
10408 hardcode_direct_absolute=yes
10409 export_dynamic_flag_spec='${wl}-E'
10410 # hardcode_minus_L: Not really in the search PATH,
10411 # but as the default location of the library.
10412 hardcode_minus_L=yes
10413 fi
10414 ;;
10415
10416 hpux11*)
10417 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10418 case $host_cpu in
10419 hppa*64*)
10420 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 ;;
10422 ia64*)
10423 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10424 ;;
10425 *)
10426 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10427 ;;
10428 esac
10429 else
10430 case $host_cpu in
10431 hppa*64*)
10432 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10433 ;;
10434 ia64*)
10435 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10436 ;;
10437 *)
10438
10439 # Older versions of the 11.00 compiler do not understand -b yet
10440 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10442 $as_echo_n "checking if $CC understands -b... " >&6; }
10443 if ${lt_cv_prog_compiler__b+:} false; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 lt_cv_prog_compiler__b=no
10447 save_LDFLAGS="$LDFLAGS"
10448 LDFLAGS="$LDFLAGS -b"
10449 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10450 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10451 # The linker can only warn and ignore the option if not recognized
10452 # So say no if there are warnings
10453 if test -s conftest.err; then
10454 # Append any errors to the config.log.
10455 cat conftest.err 1>&5
10456 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10458 if diff conftest.exp conftest.er2 >/dev/null; then
10459 lt_cv_prog_compiler__b=yes
10460 fi
10461 else
10462 lt_cv_prog_compiler__b=yes
10463 fi
10464 fi
10465 $RM -r conftest*
10466 LDFLAGS="$save_LDFLAGS"
10467
10468 fi
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10470 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10471
10472 if test x"$lt_cv_prog_compiler__b" = xyes; then
10473 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10474 else
10475 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10476 fi
10477
10478 ;;
10479 esac
10480 fi
10481 if test "$with_gnu_ld" = no; then
10482 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10483 hardcode_libdir_separator=:
10484
10485 case $host_cpu in
10486 hppa*64*|ia64*)
10487 hardcode_direct=no
10488 hardcode_shlibpath_var=no
10489 ;;
10490 *)
10491 hardcode_direct=yes
10492 hardcode_direct_absolute=yes
10493 export_dynamic_flag_spec='${wl}-E'
10494
10495 # hardcode_minus_L: Not really in the search PATH,
10496 # but as the default location of the library.
10497 hardcode_minus_L=yes
10498 ;;
10499 esac
10500 fi
10501 ;;
10502
10503 irix5* | irix6* | nonstopux*)
10504 if test "$GCC" = yes; then
10505 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'
10506 # Try to use the -exported_symbol ld option, if it does not
10507 # work, assume that -exports_file does not work either and
10508 # implicitly export all symbols.
10509 # This should be the same for all languages, so no per-tag cache variable.
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10511 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10512 if ${lt_cv_irix_exported_symbol+:} false; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 save_LDFLAGS="$LDFLAGS"
10516 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10519 int foo (void) { return 0; }
10520 _ACEOF
10521 if ac_fn_c_try_link "$LINENO"; then :
10522 lt_cv_irix_exported_symbol=yes
10523 else
10524 lt_cv_irix_exported_symbol=no
10525 fi
10526 rm -f core conftest.err conftest.$ac_objext \
10527 conftest$ac_exeext conftest.$ac_ext
10528 LDFLAGS="$save_LDFLAGS"
10529 fi
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10531 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10532 if test "$lt_cv_irix_exported_symbol" = yes; then
10533 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'
10534 fi
10535 else
10536 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'
10537 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'
10538 fi
10539 archive_cmds_need_lc='no'
10540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10541 hardcode_libdir_separator=:
10542 inherit_rpath=yes
10543 link_all_deplibs=yes
10544 ;;
10545
10546 netbsd*)
10547 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10549 else
10550 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10551 fi
10552 hardcode_libdir_flag_spec='-R$libdir'
10553 hardcode_direct=yes
10554 hardcode_shlibpath_var=no
10555 ;;
10556
10557 newsos6)
10558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10559 hardcode_direct=yes
10560 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10561 hardcode_libdir_separator=:
10562 hardcode_shlibpath_var=no
10563 ;;
10564
10565 *nto* | *qnx*)
10566 ;;
10567
10568 openbsd*)
10569 if test -f /usr/libexec/ld.so; then
10570 hardcode_direct=yes
10571 hardcode_shlibpath_var=no
10572 hardcode_direct_absolute=yes
10573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10575 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10576 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10577 export_dynamic_flag_spec='${wl}-E'
10578 else
10579 case $host_os in
10580 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10582 hardcode_libdir_flag_spec='-R$libdir'
10583 ;;
10584 *)
10585 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10586 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10587 ;;
10588 esac
10589 fi
10590 else
10591 ld_shlibs=no
10592 fi
10593 ;;
10594
10595 os2*)
10596 hardcode_libdir_flag_spec='-L$libdir'
10597 hardcode_minus_L=yes
10598 allow_undefined_flag=unsupported
10599 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10600 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10601 ;;
10602
10603 osf3*)
10604 if test "$GCC" = yes; then
10605 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10606 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'
10607 else
10608 allow_undefined_flag=' -expect_unresolved \*'
10609 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'
10610 fi
10611 archive_cmds_need_lc='no'
10612 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10613 hardcode_libdir_separator=:
10614 ;;
10615
10616 osf4* | osf5*) # as osf3* with the addition of -msym flag
10617 if test "$GCC" = yes; then
10618 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10619 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'
10620 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10621 else
10622 allow_undefined_flag=' -expect_unresolved \*'
10623 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'
10624 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~
10625 $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'
10626
10627 # Both c and cxx compiler support -rpath directly
10628 hardcode_libdir_flag_spec='-rpath $libdir'
10629 fi
10630 archive_cmds_need_lc='no'
10631 hardcode_libdir_separator=:
10632 ;;
10633
10634 solaris*)
10635 no_undefined_flag=' -z defs'
10636 if test "$GCC" = yes; then
10637 wlarc='${wl}'
10638 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10639 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10640 $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'
10641 else
10642 case `$CC -V 2>&1` in
10643 *"Compilers 5.0"*)
10644 wlarc=''
10645 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10646 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10647 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10648 ;;
10649 *)
10650 wlarc='${wl}'
10651 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10652 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10653 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10654 ;;
10655 esac
10656 fi
10657 hardcode_libdir_flag_spec='-R$libdir'
10658 hardcode_shlibpath_var=no
10659 case $host_os in
10660 solaris2.[0-5] | solaris2.[0-5].*) ;;
10661 *)
10662 # The compiler driver will combine and reorder linker options,
10663 # but understands `-z linker_flag'. GCC discards it without `$wl',
10664 # but is careful enough not to reorder.
10665 # Supported since Solaris 2.6 (maybe 2.5.1?)
10666 if test "$GCC" = yes; then
10667 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10668 else
10669 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10670 fi
10671 ;;
10672 esac
10673 link_all_deplibs=yes
10674 ;;
10675
10676 sunos4*)
10677 if test "x$host_vendor" = xsequent; then
10678 # Use $CC to link under sequent, because it throws in some extra .o
10679 # files that make .init and .fini sections work.
10680 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10681 else
10682 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10683 fi
10684 hardcode_libdir_flag_spec='-L$libdir'
10685 hardcode_direct=yes
10686 hardcode_minus_L=yes
10687 hardcode_shlibpath_var=no
10688 ;;
10689
10690 sysv4)
10691 case $host_vendor in
10692 sni)
10693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10694 hardcode_direct=yes # is this really true???
10695 ;;
10696 siemens)
10697 ## LD is ld it makes a PLAMLIB
10698 ## CC just makes a GrossModule.
10699 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10700 reload_cmds='$CC -r -o $output$reload_objs'
10701 hardcode_direct=no
10702 ;;
10703 motorola)
10704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10705 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10706 ;;
10707 esac
10708 runpath_var='LD_RUN_PATH'
10709 hardcode_shlibpath_var=no
10710 ;;
10711
10712 sysv4.3*)
10713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10714 hardcode_shlibpath_var=no
10715 export_dynamic_flag_spec='-Bexport'
10716 ;;
10717
10718 sysv4*MP*)
10719 if test -d /usr/nec; then
10720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10721 hardcode_shlibpath_var=no
10722 runpath_var=LD_RUN_PATH
10723 hardcode_runpath_var=yes
10724 ld_shlibs=yes
10725 fi
10726 ;;
10727
10728 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10729 no_undefined_flag='${wl}-z,text'
10730 archive_cmds_need_lc=no
10731 hardcode_shlibpath_var=no
10732 runpath_var='LD_RUN_PATH'
10733
10734 if test "$GCC" = yes; then
10735 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10736 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737 else
10738 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10739 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10740 fi
10741 ;;
10742
10743 sysv5* | sco3.2v5* | sco5v6*)
10744 # Note: We can NOT use -z defs as we might desire, because we do not
10745 # link with -lc, and that would cause any symbols used from libc to
10746 # always be unresolved, which means just about no library would
10747 # ever link correctly. If we're not using GNU ld we use -z text
10748 # though, which does catch some bad symbols but isn't as heavy-handed
10749 # as -z defs.
10750 no_undefined_flag='${wl}-z,text'
10751 allow_undefined_flag='${wl}-z,nodefs'
10752 archive_cmds_need_lc=no
10753 hardcode_shlibpath_var=no
10754 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10755 hardcode_libdir_separator=':'
10756 link_all_deplibs=yes
10757 export_dynamic_flag_spec='${wl}-Bexport'
10758 runpath_var='LD_RUN_PATH'
10759
10760 if test "$GCC" = yes; then
10761 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10762 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763 else
10764 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10765 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10766 fi
10767 ;;
10768
10769 uts4*)
10770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10771 hardcode_libdir_flag_spec='-L$libdir'
10772 hardcode_shlibpath_var=no
10773 ;;
10774
10775 *)
10776 ld_shlibs=no
10777 ;;
10778 esac
10779
10780 if test x$host_vendor = xsni; then
10781 case $host in
10782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10783 export_dynamic_flag_spec='${wl}-Blargedynsym'
10784 ;;
10785 esac
10786 fi
10787 fi
10788
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10790 $as_echo "$ld_shlibs" >&6; }
10791 test "$ld_shlibs" = no && can_build_shared=no
10792
10793 with_gnu_ld=$with_gnu_ld
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809 #
10810 # Do we need to explicitly link libc?
10811 #
10812 case "x$archive_cmds_need_lc" in
10813 x|xyes)
10814 # Assume -lc should be added
10815 archive_cmds_need_lc=yes
10816
10817 if test "$enable_shared" = yes && test "$GCC" = yes; then
10818 case $archive_cmds in
10819 *'~'*)
10820 # FIXME: we may have to deal with multi-command sequences.
10821 ;;
10822 '$CC '*)
10823 # Test whether the compiler implicitly links with -lc since on some
10824 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10825 # to ld, don't add -lc before -lgcc.
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10827 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10828 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10831 $RM conftest*
10832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10833
10834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10835 (eval $ac_compile) 2>&5
10836 ac_status=$?
10837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10838 test $ac_status = 0; } 2>conftest.err; then
10839 soname=conftest
10840 lib=conftest
10841 libobjs=conftest.$ac_objext
10842 deplibs=
10843 wl=$lt_prog_compiler_wl
10844 pic_flag=$lt_prog_compiler_pic
10845 compiler_flags=-v
10846 linker_flags=-v
10847 verstring=
10848 output_objdir=.
10849 libname=conftest
10850 lt_save_allow_undefined_flag=$allow_undefined_flag
10851 allow_undefined_flag=
10852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10853 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10854 ac_status=$?
10855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10856 test $ac_status = 0; }
10857 then
10858 lt_cv_archive_cmds_need_lc=no
10859 else
10860 lt_cv_archive_cmds_need_lc=yes
10861 fi
10862 allow_undefined_flag=$lt_save_allow_undefined_flag
10863 else
10864 cat conftest.err 1>&5
10865 fi
10866 $RM conftest*
10867
10868 fi
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10870 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10871 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10872 ;;
10873 esac
10874 fi
10875 ;;
10876 esac
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11030 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11031
11032 if test "$GCC" = yes; then
11033 case $host_os in
11034 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11035 *) lt_awk_arg="/^libraries:/" ;;
11036 esac
11037 case $host_os in
11038 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11039 *) lt_sed_strip_eq="s,=/,/,g" ;;
11040 esac
11041 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11042 case $lt_search_path_spec in
11043 *\;*)
11044 # if the path contains ";" then we assume it to be the separator
11045 # otherwise default to the standard path separator (i.e. ":") - it is
11046 # assumed that no part of a normal pathname contains ";" but that should
11047 # okay in the real world where ";" in dirpaths is itself problematic.
11048 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11049 ;;
11050 *)
11051 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11052 ;;
11053 esac
11054 # Ok, now we have the path, separated by spaces, we can step through it
11055 # and add multilib dir if necessary.
11056 lt_tmp_lt_search_path_spec=
11057 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11058 for lt_sys_path in $lt_search_path_spec; do
11059 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11060 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11061 else
11062 test -d "$lt_sys_path" && \
11063 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11064 fi
11065 done
11066 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11067 BEGIN {RS=" "; FS="/|\n";} {
11068 lt_foo="";
11069 lt_count=0;
11070 for (lt_i = NF; lt_i > 0; lt_i--) {
11071 if ($lt_i != "" && $lt_i != ".") {
11072 if ($lt_i == "..") {
11073 lt_count++;
11074 } else {
11075 if (lt_count == 0) {
11076 lt_foo="/" $lt_i lt_foo;
11077 } else {
11078 lt_count--;
11079 }
11080 }
11081 }
11082 }
11083 if (lt_foo != "") { lt_freq[lt_foo]++; }
11084 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11085 }'`
11086 # AWK program above erroneously prepends '/' to C:/dos/paths
11087 # for these hosts.
11088 case $host_os in
11089 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11090 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11091 esac
11092 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11093 else
11094 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11095 fi
11096 library_names_spec=
11097 libname_spec='lib$name'
11098 soname_spec=
11099 shrext_cmds=".so"
11100 postinstall_cmds=
11101 postuninstall_cmds=
11102 finish_cmds=
11103 finish_eval=
11104 shlibpath_var=
11105 shlibpath_overrides_runpath=unknown
11106 version_type=none
11107 dynamic_linker="$host_os ld.so"
11108 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11109 need_lib_prefix=unknown
11110 hardcode_into_libs=no
11111
11112 # when you set need_version to no, make sure it does not cause -set_version
11113 # flags to be left without arguments
11114 need_version=unknown
11115
11116 case $host_os in
11117 aix3*)
11118 version_type=linux # correct to gnu/linux during the next big refactor
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11120 shlibpath_var=LIBPATH
11121
11122 # AIX 3 has no versioning support, so we append a major version to the name.
11123 soname_spec='${libname}${release}${shared_ext}$major'
11124 ;;
11125
11126 aix[4-9]*)
11127 version_type=linux # correct to gnu/linux during the next big refactor
11128 need_lib_prefix=no
11129 need_version=no
11130 hardcode_into_libs=yes
11131 if test "$host_cpu" = ia64; then
11132 # AIX 5 supports IA64
11133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 else
11136 # With GCC up to 2.95.x, collect2 would create an import file
11137 # for dependence libraries. The import file would start with
11138 # the line `#! .'. This would cause the generated library to
11139 # depend on `.', always an invalid library. This was fixed in
11140 # development snapshots of GCC prior to 3.0.
11141 case $host_os in
11142 aix4 | aix4.[01] | aix4.[01].*)
11143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11144 echo ' yes '
11145 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11146 :
11147 else
11148 can_build_shared=no
11149 fi
11150 ;;
11151 esac
11152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11153 # soname into executable. Probably we can add versioning support to
11154 # collect2, so additional links can be useful in future.
11155 if test "$aix_use_runtimelinking" = yes; then
11156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11157 # instead of lib<name>.a to let people know that these are not
11158 # typical AIX shared libraries.
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11160 else
11161 # We preserve .a as extension for shared libraries through AIX4.2
11162 # and later when we are not doing run time linking.
11163 library_names_spec='${libname}${release}.a $libname.a'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 fi
11166 shlibpath_var=LIBPATH
11167 fi
11168 ;;
11169
11170 amigaos*)
11171 case $host_cpu in
11172 powerpc)
11173 # Since July 2007 AmigaOS4 officially supports .so libraries.
11174 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 ;;
11177 m68k)
11178 library_names_spec='$libname.ixlibrary $libname.a'
11179 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11180 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
11181 ;;
11182 esac
11183 ;;
11184
11185 beos*)
11186 library_names_spec='${libname}${shared_ext}'
11187 dynamic_linker="$host_os ld.so"
11188 shlibpath_var=LIBRARY_PATH
11189 ;;
11190
11191 bsdi[45]*)
11192 version_type=linux # correct to gnu/linux during the next big refactor
11193 need_version=no
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195 soname_spec='${libname}${release}${shared_ext}$major'
11196 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11199 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11200 # the default ld.so.conf also contains /usr/contrib/lib and
11201 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11202 # libtool to hard-code these into programs
11203 ;;
11204
11205 cygwin* | mingw* | pw32* | cegcc*)
11206 version_type=windows
11207 shrext_cmds=".dll"
11208 need_version=no
11209 need_lib_prefix=no
11210
11211 case $GCC,$cc_basename in
11212 yes,*)
11213 # gcc
11214 library_names_spec='$libname.dll.a'
11215 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11216 postinstall_cmds='base_file=`basename \${file}`~
11217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11218 dldir=$destdir/`dirname \$dlpath`~
11219 test -d \$dldir || mkdir -p \$dldir~
11220 $install_prog $dir/$dlname \$dldir/$dlname~
11221 chmod a+x \$dldir/$dlname~
11222 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11223 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11224 fi'
11225 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11226 dlpath=$dir/\$dldll~
11227 $RM \$dlpath'
11228 shlibpath_overrides_runpath=yes
11229
11230 case $host_os in
11231 cygwin*)
11232 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11233 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11234
11235 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11236 ;;
11237 mingw* | cegcc*)
11238 # MinGW DLLs use traditional 'lib' prefix
11239 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11240 ;;
11241 pw32*)
11242 # pw32 DLLs use 'pw' prefix rather than 'lib'
11243 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11244 ;;
11245 esac
11246 dynamic_linker='Win32 ld.exe'
11247 ;;
11248
11249 *,cl*)
11250 # Native MSVC
11251 libname_spec='$name'
11252 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11253 library_names_spec='${libname}.dll.lib'
11254
11255 case $build_os in
11256 mingw*)
11257 sys_lib_search_path_spec=
11258 lt_save_ifs=$IFS
11259 IFS=';'
11260 for lt_path in $LIB
11261 do
11262 IFS=$lt_save_ifs
11263 # Let DOS variable expansion print the short 8.3 style file name.
11264 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11265 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11266 done
11267 IFS=$lt_save_ifs
11268 # Convert to MSYS style.
11269 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11270 ;;
11271 cygwin*)
11272 # Convert to unix form, then to dos form, then back to unix form
11273 # but this time dos style (no spaces!) so that the unix form looks
11274 # like /cygdrive/c/PROGRA~1:/cygdr...
11275 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11276 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11277 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11278 ;;
11279 *)
11280 sys_lib_search_path_spec="$LIB"
11281 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11282 # It is most probably a Windows format PATH.
11283 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11284 else
11285 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11286 fi
11287 # FIXME: find the short name or the path components, as spaces are
11288 # common. (e.g. "Program Files" -> "PROGRA~1")
11289 ;;
11290 esac
11291
11292 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11293 postinstall_cmds='base_file=`basename \${file}`~
11294 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11295 dldir=$destdir/`dirname \$dlpath`~
11296 test -d \$dldir || mkdir -p \$dldir~
11297 $install_prog $dir/$dlname \$dldir/$dlname'
11298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11299 dlpath=$dir/\$dldll~
11300 $RM \$dlpath'
11301 shlibpath_overrides_runpath=yes
11302 dynamic_linker='Win32 link.exe'
11303 ;;
11304
11305 *)
11306 # Assume MSVC wrapper
11307 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11308 dynamic_linker='Win32 ld.exe'
11309 ;;
11310 esac
11311 # FIXME: first we should search . and the directory the executable is in
11312 shlibpath_var=PATH
11313 ;;
11314
11315 darwin* | rhapsody*)
11316 dynamic_linker="$host_os dyld"
11317 version_type=darwin
11318 need_lib_prefix=no
11319 need_version=no
11320 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11321 soname_spec='${libname}${release}${major}$shared_ext'
11322 shlibpath_overrides_runpath=yes
11323 shlibpath_var=DYLD_LIBRARY_PATH
11324 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11325
11326 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11327 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11328 ;;
11329
11330 dgux*)
11331 version_type=linux # correct to gnu/linux during the next big refactor
11332 need_lib_prefix=no
11333 need_version=no
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11335 soname_spec='${libname}${release}${shared_ext}$major'
11336 shlibpath_var=LD_LIBRARY_PATH
11337 ;;
11338
11339 freebsd* | dragonfly*)
11340 # DragonFly does not have aout. When/if they implement a new
11341 # versioning mechanism, adjust this.
11342 if test -x /usr/bin/objformat; then
11343 objformat=`/usr/bin/objformat`
11344 else
11345 case $host_os in
11346 freebsd[23].*) objformat=aout ;;
11347 *) objformat=elf ;;
11348 esac
11349 fi
11350 version_type=freebsd-$objformat
11351 case $version_type in
11352 freebsd-elf*)
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11354 need_version=no
11355 need_lib_prefix=no
11356 ;;
11357 freebsd-*)
11358 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11359 need_version=yes
11360 ;;
11361 esac
11362 shlibpath_var=LD_LIBRARY_PATH
11363 case $host_os in
11364 freebsd2.*)
11365 shlibpath_overrides_runpath=yes
11366 ;;
11367 freebsd3.[01]* | freebsdelf3.[01]*)
11368 shlibpath_overrides_runpath=yes
11369 hardcode_into_libs=yes
11370 ;;
11371 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11372 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11373 shlibpath_overrides_runpath=no
11374 hardcode_into_libs=yes
11375 ;;
11376 *) # from 4.6 on, and DragonFly
11377 shlibpath_overrides_runpath=yes
11378 hardcode_into_libs=yes
11379 ;;
11380 esac
11381 ;;
11382
11383 gnu*)
11384 version_type=linux # correct to gnu/linux during the next big refactor
11385 need_lib_prefix=no
11386 need_version=no
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 shlibpath_var=LD_LIBRARY_PATH
11390 shlibpath_overrides_runpath=no
11391 hardcode_into_libs=yes
11392 ;;
11393
11394 haiku*)
11395 version_type=linux # correct to gnu/linux during the next big refactor
11396 need_lib_prefix=no
11397 need_version=no
11398 dynamic_linker="$host_os runtime_loader"
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11400 soname_spec='${libname}${release}${shared_ext}$major'
11401 shlibpath_var=LIBRARY_PATH
11402 shlibpath_overrides_runpath=yes
11403 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11404 hardcode_into_libs=yes
11405 ;;
11406
11407 hpux9* | hpux10* | hpux11*)
11408 # Give a soname corresponding to the major version so that dld.sl refuses to
11409 # link against other versions.
11410 version_type=sunos
11411 need_lib_prefix=no
11412 need_version=no
11413 case $host_cpu in
11414 ia64*)
11415 shrext_cmds='.so'
11416 hardcode_into_libs=yes
11417 dynamic_linker="$host_os dld.so"
11418 shlibpath_var=LD_LIBRARY_PATH
11419 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421 soname_spec='${libname}${release}${shared_ext}$major'
11422 if test "X$HPUX_IA64_MODE" = X32; then
11423 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11424 else
11425 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11426 fi
11427 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11428 ;;
11429 hppa*64*)
11430 shrext_cmds='.sl'
11431 hardcode_into_libs=yes
11432 dynamic_linker="$host_os dld.sl"
11433 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436 soname_spec='${libname}${release}${shared_ext}$major'
11437 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11438 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11439 ;;
11440 *)
11441 shrext_cmds='.sl'
11442 dynamic_linker="$host_os dld.sl"
11443 shlibpath_var=SHLIB_PATH
11444 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 ;;
11448 esac
11449 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11450 postinstall_cmds='chmod 555 $lib'
11451 # or fails outright, so override atomically:
11452 install_override_mode=555
11453 ;;
11454
11455 interix[3-9]*)
11456 version_type=linux # correct to gnu/linux during the next big refactor
11457 need_lib_prefix=no
11458 need_version=no
11459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11460 soname_spec='${libname}${release}${shared_ext}$major'
11461 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=no
11464 hardcode_into_libs=yes
11465 ;;
11466
11467 irix5* | irix6* | nonstopux*)
11468 case $host_os in
11469 nonstopux*) version_type=nonstopux ;;
11470 *)
11471 if test "$lt_cv_prog_gnu_ld" = yes; then
11472 version_type=linux # correct to gnu/linux during the next big refactor
11473 else
11474 version_type=irix
11475 fi ;;
11476 esac
11477 need_lib_prefix=no
11478 need_version=no
11479 soname_spec='${libname}${release}${shared_ext}$major'
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11481 case $host_os in
11482 irix5* | nonstopux*)
11483 libsuff= shlibsuff=
11484 ;;
11485 *)
11486 case $LD in # libtool.m4 will add one of these switches to LD
11487 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11488 libsuff= shlibsuff= libmagic=32-bit;;
11489 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11490 libsuff=32 shlibsuff=N32 libmagic=N32;;
11491 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11492 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11493 *) libsuff= shlibsuff= libmagic=never-match;;
11494 esac
11495 ;;
11496 esac
11497 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11498 shlibpath_overrides_runpath=no
11499 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11500 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11501 hardcode_into_libs=yes
11502 ;;
11503
11504 # No shared lib support for Linux oldld, aout, or coff.
11505 linux*oldld* | linux*aout* | linux*coff*)
11506 dynamic_linker=no
11507 ;;
11508
11509 # This must be glibc/ELF.
11510 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11511 version_type=linux # correct to gnu/linux during the next big refactor
11512 need_lib_prefix=no
11513 need_version=no
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515 soname_spec='${libname}${release}${shared_ext}$major'
11516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11517 shlibpath_var=LD_LIBRARY_PATH
11518 shlibpath_overrides_runpath=no
11519
11520 # Some binutils ld are patched to set DT_RUNPATH
11521 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11524 lt_cv_shlibpath_overrides_runpath=no
11525 save_LDFLAGS=$LDFLAGS
11526 save_libdir=$libdir
11527 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11528 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11531
11532 int
11533 main ()
11534 {
11535
11536 ;
11537 return 0;
11538 }
11539 _ACEOF
11540 if ac_fn_c_try_link "$LINENO"; then :
11541 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11542 lt_cv_shlibpath_overrides_runpath=yes
11543 fi
11544 fi
11545 rm -f core conftest.err conftest.$ac_objext \
11546 conftest$ac_exeext conftest.$ac_ext
11547 LDFLAGS=$save_LDFLAGS
11548 libdir=$save_libdir
11549
11550 fi
11551
11552 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11553
11554 # This implies no fast_install, which is unacceptable.
11555 # Some rework will be needed to allow for fast_install
11556 # before this can be enabled.
11557 hardcode_into_libs=yes
11558
11559 # Append ld.so.conf contents to the search path
11560 if test -f /etc/ld.so.conf; then
11561 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' ' '`
11562 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11563 fi
11564
11565 # We used to test for /lib/ld.so.1 and disable shared libraries on
11566 # powerpc, because MkLinux only supported shared libraries with the
11567 # GNU dynamic linker. Since this was broken with cross compilers,
11568 # most powerpc-linux boxes support dynamic linking these days and
11569 # people can always --disable-shared, the test was removed, and we
11570 # assume the GNU/Linux dynamic linker is in use.
11571 dynamic_linker='GNU/Linux ld.so'
11572 ;;
11573
11574 netbsd*)
11575 version_type=sunos
11576 need_lib_prefix=no
11577 need_version=no
11578 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11581 dynamic_linker='NetBSD (a.out) ld.so'
11582 else
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11584 soname_spec='${libname}${release}${shared_ext}$major'
11585 dynamic_linker='NetBSD ld.elf_so'
11586 fi
11587 shlibpath_var=LD_LIBRARY_PATH
11588 shlibpath_overrides_runpath=yes
11589 hardcode_into_libs=yes
11590 ;;
11591
11592 newsos6)
11593 version_type=linux # correct to gnu/linux during the next big refactor
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=yes
11597 ;;
11598
11599 *nto* | *qnx*)
11600 version_type=qnx
11601 need_lib_prefix=no
11602 need_version=no
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604 soname_spec='${libname}${release}${shared_ext}$major'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 shlibpath_overrides_runpath=no
11607 hardcode_into_libs=yes
11608 dynamic_linker='ldqnx.so'
11609 ;;
11610
11611 openbsd*)
11612 version_type=sunos
11613 sys_lib_dlsearch_path_spec="/usr/lib"
11614 need_lib_prefix=no
11615 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11616 case $host_os in
11617 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11618 *) need_version=no ;;
11619 esac
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11622 shlibpath_var=LD_LIBRARY_PATH
11623 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11624 case $host_os in
11625 openbsd2.[89] | openbsd2.[89].*)
11626 shlibpath_overrides_runpath=no
11627 ;;
11628 *)
11629 shlibpath_overrides_runpath=yes
11630 ;;
11631 esac
11632 else
11633 shlibpath_overrides_runpath=yes
11634 fi
11635 ;;
11636
11637 os2*)
11638 libname_spec='$name'
11639 shrext_cmds=".dll"
11640 need_lib_prefix=no
11641 library_names_spec='$libname${shared_ext} $libname.a'
11642 dynamic_linker='OS/2 ld.exe'
11643 shlibpath_var=LIBPATH
11644 ;;
11645
11646 osf3* | osf4* | osf5*)
11647 version_type=osf
11648 need_lib_prefix=no
11649 need_version=no
11650 soname_spec='${libname}${release}${shared_ext}$major'
11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652 shlibpath_var=LD_LIBRARY_PATH
11653 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11654 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11655 ;;
11656
11657 rdos*)
11658 dynamic_linker=no
11659 ;;
11660
11661 solaris*)
11662 version_type=linux # correct to gnu/linux during the next big refactor
11663 need_lib_prefix=no
11664 need_version=no
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11666 soname_spec='${libname}${release}${shared_ext}$major'
11667 shlibpath_var=LD_LIBRARY_PATH
11668 shlibpath_overrides_runpath=yes
11669 hardcode_into_libs=yes
11670 # ldd complains unless libraries are executable
11671 postinstall_cmds='chmod +x $lib'
11672 ;;
11673
11674 sunos4*)
11675 version_type=sunos
11676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11677 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11678 shlibpath_var=LD_LIBRARY_PATH
11679 shlibpath_overrides_runpath=yes
11680 if test "$with_gnu_ld" = yes; then
11681 need_lib_prefix=no
11682 fi
11683 need_version=yes
11684 ;;
11685
11686 sysv4 | sysv4.3*)
11687 version_type=linux # correct to gnu/linux during the next big refactor
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11689 soname_spec='${libname}${release}${shared_ext}$major'
11690 shlibpath_var=LD_LIBRARY_PATH
11691 case $host_vendor in
11692 sni)
11693 shlibpath_overrides_runpath=no
11694 need_lib_prefix=no
11695 runpath_var=LD_RUN_PATH
11696 ;;
11697 siemens)
11698 need_lib_prefix=no
11699 ;;
11700 motorola)
11701 need_lib_prefix=no
11702 need_version=no
11703 shlibpath_overrides_runpath=no
11704 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11705 ;;
11706 esac
11707 ;;
11708
11709 sysv4*MP*)
11710 if test -d /usr/nec ;then
11711 version_type=linux # correct to gnu/linux during the next big refactor
11712 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11713 soname_spec='$libname${shared_ext}.$major'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 fi
11716 ;;
11717
11718 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11719 version_type=freebsd-elf
11720 need_lib_prefix=no
11721 need_version=no
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 shlibpath_overrides_runpath=yes
11726 hardcode_into_libs=yes
11727 if test "$with_gnu_ld" = yes; then
11728 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11729 else
11730 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11731 case $host_os in
11732 sco3.2v5*)
11733 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11734 ;;
11735 esac
11736 fi
11737 sys_lib_dlsearch_path_spec='/usr/lib'
11738 ;;
11739
11740 tpf*)
11741 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11742 version_type=linux # correct to gnu/linux during the next big refactor
11743 need_lib_prefix=no
11744 need_version=no
11745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11746 shlibpath_var=LD_LIBRARY_PATH
11747 shlibpath_overrides_runpath=no
11748 hardcode_into_libs=yes
11749 ;;
11750
11751 uts4*)
11752 version_type=linux # correct to gnu/linux during the next big refactor
11753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11754 soname_spec='${libname}${release}${shared_ext}$major'
11755 shlibpath_var=LD_LIBRARY_PATH
11756 ;;
11757
11758 *)
11759 dynamic_linker=no
11760 ;;
11761 esac
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11763 $as_echo "$dynamic_linker" >&6; }
11764 test "$dynamic_linker" = no && can_build_shared=no
11765
11766 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11767 if test "$GCC" = yes; then
11768 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11769 fi
11770
11771 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11772 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11773 fi
11774 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11775 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11776 fi
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11870 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11871 hardcode_action=
11872 if test -n "$hardcode_libdir_flag_spec" ||
11873 test -n "$runpath_var" ||
11874 test "X$hardcode_automatic" = "Xyes" ; then
11875
11876 # We can hardcode non-existent directories.
11877 if test "$hardcode_direct" != no &&
11878 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11879 # have to relink, otherwise we might link with an installed library
11880 # when we should be linking with a yet-to-be-installed one
11881 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11882 test "$hardcode_minus_L" != no; then
11883 # Linking always hardcodes the temporary library directory.
11884 hardcode_action=relink
11885 else
11886 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11887 hardcode_action=immediate
11888 fi
11889 else
11890 # We cannot hardcode anything, or else we can only hardcode existing
11891 # directories.
11892 hardcode_action=unsupported
11893 fi
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11895 $as_echo "$hardcode_action" >&6; }
11896
11897 if test "$hardcode_action" = relink ||
11898 test "$inherit_rpath" = yes; then
11899 # Fast installation is not supported
11900 enable_fast_install=no
11901 elif test "$shlibpath_overrides_runpath" = yes ||
11902 test "$enable_shared" = no; then
11903 # Fast installation is not necessary
11904 enable_fast_install=needless
11905 fi
11906
11907
11908
11909
11910
11911
11912 if test "x$enable_dlopen" != xyes; then
11913 enable_dlopen=unknown
11914 enable_dlopen_self=unknown
11915 enable_dlopen_self_static=unknown
11916 else
11917 lt_cv_dlopen=no
11918 lt_cv_dlopen_libs=
11919
11920 case $host_os in
11921 beos*)
11922 lt_cv_dlopen="load_add_on"
11923 lt_cv_dlopen_libs=
11924 lt_cv_dlopen_self=yes
11925 ;;
11926
11927 mingw* | pw32* | cegcc*)
11928 lt_cv_dlopen="LoadLibrary"
11929 lt_cv_dlopen_libs=
11930 ;;
11931
11932 cygwin*)
11933 lt_cv_dlopen="dlopen"
11934 lt_cv_dlopen_libs=
11935 ;;
11936
11937 darwin*)
11938 # if libdl is installed we need to link against it
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11940 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11941 if ${ac_cv_lib_dl_dlopen+:} false; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 ac_check_lib_save_LIBS=$LIBS
11945 LIBS="-ldl $LIBS"
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11948
11949 /* Override any GCC internal prototype to avoid an error.
11950 Use char because int might match the return type of a GCC
11951 builtin and then its argument prototype would still apply. */
11952 #ifdef __cplusplus
11953 extern "C"
11954 #endif
11955 char dlopen ();
11956 int
11957 main ()
11958 {
11959 return dlopen ();
11960 ;
11961 return 0;
11962 }
11963 _ACEOF
11964 if ac_fn_c_try_link "$LINENO"; then :
11965 ac_cv_lib_dl_dlopen=yes
11966 else
11967 ac_cv_lib_dl_dlopen=no
11968 fi
11969 rm -f core conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11971 LIBS=$ac_check_lib_save_LIBS
11972 fi
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11974 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11975 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11977 else
11978
11979 lt_cv_dlopen="dyld"
11980 lt_cv_dlopen_libs=
11981 lt_cv_dlopen_self=yes
11982
11983 fi
11984
11985 ;;
11986
11987 *)
11988 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11989 if test "x$ac_cv_func_shl_load" = xyes; then :
11990 lt_cv_dlopen="shl_load"
11991 else
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11993 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11994 if ${ac_cv_lib_dld_shl_load+:} false; then :
11995 $as_echo_n "(cached) " >&6
11996 else
11997 ac_check_lib_save_LIBS=$LIBS
11998 LIBS="-ldld $LIBS"
11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000 /* end confdefs.h. */
12001
12002 /* Override any GCC internal prototype to avoid an error.
12003 Use char because int might match the return type of a GCC
12004 builtin and then its argument prototype would still apply. */
12005 #ifdef __cplusplus
12006 extern "C"
12007 #endif
12008 char shl_load ();
12009 int
12010 main ()
12011 {
12012 return shl_load ();
12013 ;
12014 return 0;
12015 }
12016 _ACEOF
12017 if ac_fn_c_try_link "$LINENO"; then :
12018 ac_cv_lib_dld_shl_load=yes
12019 else
12020 ac_cv_lib_dld_shl_load=no
12021 fi
12022 rm -f core conftest.err conftest.$ac_objext \
12023 conftest$ac_exeext conftest.$ac_ext
12024 LIBS=$ac_check_lib_save_LIBS
12025 fi
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12027 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12028 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12029 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12030 else
12031 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12032 if test "x$ac_cv_func_dlopen" = xyes; then :
12033 lt_cv_dlopen="dlopen"
12034 else
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12036 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12037 if ${ac_cv_lib_dl_dlopen+:} false; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 ac_check_lib_save_LIBS=$LIBS
12041 LIBS="-ldl $LIBS"
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12044
12045 /* Override any GCC internal prototype to avoid an error.
12046 Use char because int might match the return type of a GCC
12047 builtin and then its argument prototype would still apply. */
12048 #ifdef __cplusplus
12049 extern "C"
12050 #endif
12051 char dlopen ();
12052 int
12053 main ()
12054 {
12055 return dlopen ();
12056 ;
12057 return 0;
12058 }
12059 _ACEOF
12060 if ac_fn_c_try_link "$LINENO"; then :
12061 ac_cv_lib_dl_dlopen=yes
12062 else
12063 ac_cv_lib_dl_dlopen=no
12064 fi
12065 rm -f core conftest.err conftest.$ac_objext \
12066 conftest$ac_exeext conftest.$ac_ext
12067 LIBS=$ac_check_lib_save_LIBS
12068 fi
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12070 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12071 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12073 else
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12075 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12076 if ${ac_cv_lib_svld_dlopen+:} false; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 ac_check_lib_save_LIBS=$LIBS
12080 LIBS="-lsvld $LIBS"
12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082 /* end confdefs.h. */
12083
12084 /* Override any GCC internal prototype to avoid an error.
12085 Use char because int might match the return type of a GCC
12086 builtin and then its argument prototype would still apply. */
12087 #ifdef __cplusplus
12088 extern "C"
12089 #endif
12090 char dlopen ();
12091 int
12092 main ()
12093 {
12094 return dlopen ();
12095 ;
12096 return 0;
12097 }
12098 _ACEOF
12099 if ac_fn_c_try_link "$LINENO"; then :
12100 ac_cv_lib_svld_dlopen=yes
12101 else
12102 ac_cv_lib_svld_dlopen=no
12103 fi
12104 rm -f core conftest.err conftest.$ac_objext \
12105 conftest$ac_exeext conftest.$ac_ext
12106 LIBS=$ac_check_lib_save_LIBS
12107 fi
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12109 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12110 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12111 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12112 else
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12114 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12115 if ${ac_cv_lib_dld_dld_link+:} false; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 ac_check_lib_save_LIBS=$LIBS
12119 LIBS="-ldld $LIBS"
12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12122
12123 /* Override any GCC internal prototype to avoid an error.
12124 Use char because int might match the return type of a GCC
12125 builtin and then its argument prototype would still apply. */
12126 #ifdef __cplusplus
12127 extern "C"
12128 #endif
12129 char dld_link ();
12130 int
12131 main ()
12132 {
12133 return dld_link ();
12134 ;
12135 return 0;
12136 }
12137 _ACEOF
12138 if ac_fn_c_try_link "$LINENO"; then :
12139 ac_cv_lib_dld_dld_link=yes
12140 else
12141 ac_cv_lib_dld_dld_link=no
12142 fi
12143 rm -f core conftest.err conftest.$ac_objext \
12144 conftest$ac_exeext conftest.$ac_ext
12145 LIBS=$ac_check_lib_save_LIBS
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12148 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12149 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12150 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12151 fi
12152
12153
12154 fi
12155
12156
12157 fi
12158
12159
12160 fi
12161
12162
12163 fi
12164
12165
12166 fi
12167
12168 ;;
12169 esac
12170
12171 if test "x$lt_cv_dlopen" != xno; then
12172 enable_dlopen=yes
12173 else
12174 enable_dlopen=no
12175 fi
12176
12177 case $lt_cv_dlopen in
12178 dlopen)
12179 save_CPPFLAGS="$CPPFLAGS"
12180 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12181
12182 save_LDFLAGS="$LDFLAGS"
12183 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12184
12185 save_LIBS="$LIBS"
12186 LIBS="$lt_cv_dlopen_libs $LIBS"
12187
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12189 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12190 if ${lt_cv_dlopen_self+:} false; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 if test "$cross_compiling" = yes; then :
12194 lt_cv_dlopen_self=cross
12195 else
12196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12197 lt_status=$lt_dlunknown
12198 cat > conftest.$ac_ext <<_LT_EOF
12199 #line $LINENO "configure"
12200 #include "confdefs.h"
12201
12202 #if HAVE_DLFCN_H
12203 #include <dlfcn.h>
12204 #endif
12205
12206 #include <stdio.h>
12207
12208 #ifdef RTLD_GLOBAL
12209 # define LT_DLGLOBAL RTLD_GLOBAL
12210 #else
12211 # ifdef DL_GLOBAL
12212 # define LT_DLGLOBAL DL_GLOBAL
12213 # else
12214 # define LT_DLGLOBAL 0
12215 # endif
12216 #endif
12217
12218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12219 find out it does not work in some platform. */
12220 #ifndef LT_DLLAZY_OR_NOW
12221 # ifdef RTLD_LAZY
12222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12223 # else
12224 # ifdef DL_LAZY
12225 # define LT_DLLAZY_OR_NOW DL_LAZY
12226 # else
12227 # ifdef RTLD_NOW
12228 # define LT_DLLAZY_OR_NOW RTLD_NOW
12229 # else
12230 # ifdef DL_NOW
12231 # define LT_DLLAZY_OR_NOW DL_NOW
12232 # else
12233 # define LT_DLLAZY_OR_NOW 0
12234 # endif
12235 # endif
12236 # endif
12237 # endif
12238 #endif
12239
12240 /* When -fvisbility=hidden is used, assume the code has been annotated
12241 correspondingly for the symbols needed. */
12242 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12243 int fnord () __attribute__((visibility("default")));
12244 #endif
12245
12246 int fnord () { return 42; }
12247 int main ()
12248 {
12249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12250 int status = $lt_dlunknown;
12251
12252 if (self)
12253 {
12254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12255 else
12256 {
12257 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12258 else puts (dlerror ());
12259 }
12260 /* dlclose (self); */
12261 }
12262 else
12263 puts (dlerror ());
12264
12265 return status;
12266 }
12267 _LT_EOF
12268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12269 (eval $ac_link) 2>&5
12270 ac_status=$?
12271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12272 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12273 (./conftest; exit; ) >&5 2>/dev/null
12274 lt_status=$?
12275 case x$lt_status in
12276 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12277 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12278 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12279 esac
12280 else :
12281 # compilation failed
12282 lt_cv_dlopen_self=no
12283 fi
12284 fi
12285 rm -fr conftest*
12286
12287
12288 fi
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12290 $as_echo "$lt_cv_dlopen_self" >&6; }
12291
12292 if test "x$lt_cv_dlopen_self" = xyes; then
12293 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12295 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12296 if ${lt_cv_dlopen_self_static+:} false; then :
12297 $as_echo_n "(cached) " >&6
12298 else
12299 if test "$cross_compiling" = yes; then :
12300 lt_cv_dlopen_self_static=cross
12301 else
12302 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12303 lt_status=$lt_dlunknown
12304 cat > conftest.$ac_ext <<_LT_EOF
12305 #line $LINENO "configure"
12306 #include "confdefs.h"
12307
12308 #if HAVE_DLFCN_H
12309 #include <dlfcn.h>
12310 #endif
12311
12312 #include <stdio.h>
12313
12314 #ifdef RTLD_GLOBAL
12315 # define LT_DLGLOBAL RTLD_GLOBAL
12316 #else
12317 # ifdef DL_GLOBAL
12318 # define LT_DLGLOBAL DL_GLOBAL
12319 # else
12320 # define LT_DLGLOBAL 0
12321 # endif
12322 #endif
12323
12324 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12325 find out it does not work in some platform. */
12326 #ifndef LT_DLLAZY_OR_NOW
12327 # ifdef RTLD_LAZY
12328 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12329 # else
12330 # ifdef DL_LAZY
12331 # define LT_DLLAZY_OR_NOW DL_LAZY
12332 # else
12333 # ifdef RTLD_NOW
12334 # define LT_DLLAZY_OR_NOW RTLD_NOW
12335 # else
12336 # ifdef DL_NOW
12337 # define LT_DLLAZY_OR_NOW DL_NOW
12338 # else
12339 # define LT_DLLAZY_OR_NOW 0
12340 # endif
12341 # endif
12342 # endif
12343 # endif
12344 #endif
12345
12346 /* When -fvisbility=hidden is used, assume the code has been annotated
12347 correspondingly for the symbols needed. */
12348 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12349 int fnord () __attribute__((visibility("default")));
12350 #endif
12351
12352 int fnord () { return 42; }
12353 int main ()
12354 {
12355 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12356 int status = $lt_dlunknown;
12357
12358 if (self)
12359 {
12360 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12361 else
12362 {
12363 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12364 else puts (dlerror ());
12365 }
12366 /* dlclose (self); */
12367 }
12368 else
12369 puts (dlerror ());
12370
12371 return status;
12372 }
12373 _LT_EOF
12374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12375 (eval $ac_link) 2>&5
12376 ac_status=$?
12377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12378 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12379 (./conftest; exit; ) >&5 2>/dev/null
12380 lt_status=$?
12381 case x$lt_status in
12382 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12383 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12384 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12385 esac
12386 else :
12387 # compilation failed
12388 lt_cv_dlopen_self_static=no
12389 fi
12390 fi
12391 rm -fr conftest*
12392
12393
12394 fi
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12396 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12397 fi
12398
12399 CPPFLAGS="$save_CPPFLAGS"
12400 LDFLAGS="$save_LDFLAGS"
12401 LIBS="$save_LIBS"
12402 ;;
12403 esac
12404
12405 case $lt_cv_dlopen_self in
12406 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12407 *) enable_dlopen_self=unknown ;;
12408 esac
12409
12410 case $lt_cv_dlopen_self_static in
12411 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12412 *) enable_dlopen_self_static=unknown ;;
12413 esac
12414 fi
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432 striplib=
12433 old_striplib=
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12435 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12436 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12437 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12438 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12440 $as_echo "yes" >&6; }
12441 else
12442 # FIXME - insert some real tests, host_os isn't really good enough
12443 case $host_os in
12444 darwin*)
12445 if test -n "$STRIP" ; then
12446 striplib="$STRIP -x"
12447 old_striplib="$STRIP -S"
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12449 $as_echo "yes" >&6; }
12450 else
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12453 fi
12454 ;;
12455 *)
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12458 ;;
12459 esac
12460 fi
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473 # Report which library types will actually be built
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12475 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12477 $as_echo "$can_build_shared" >&6; }
12478
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12480 $as_echo_n "checking whether to build shared libraries... " >&6; }
12481 test "$can_build_shared" = "no" && enable_shared=no
12482
12483 # On AIX, shared libraries and static libraries use the same namespace, and
12484 # are all built from PIC.
12485 case $host_os in
12486 aix3*)
12487 test "$enable_shared" = yes && enable_static=no
12488 if test -n "$RANLIB"; then
12489 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12490 postinstall_cmds='$RANLIB $lib'
12491 fi
12492 ;;
12493
12494 aix[4-9]*)
12495 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12496 test "$enable_shared" = yes && enable_static=no
12497 fi
12498 ;;
12499 esac
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12501 $as_echo "$enable_shared" >&6; }
12502
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12504 $as_echo_n "checking whether to build static libraries... " >&6; }
12505 # Make sure either enable_shared or enable_static is yes.
12506 test "$enable_shared" = yes || enable_static=yes
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12508 $as_echo "$enable_static" >&6; }
12509
12510
12511
12512
12513 fi
12514 ac_ext=c
12515 ac_cpp='$CPP $CPPFLAGS'
12516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12519
12520 CC="$lt_save_CC"
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536 ac_config_commands="$ac_config_commands libtool"
12537
12538
12539
12540
12541 # Only expand once:
12542
12543
12544 gl_VISIBILITY
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12546 $as_echo_n "checking for ANSI C header files... " >&6; }
12547 if ${ac_cv_header_stdc+:} false; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12552 #include <stdlib.h>
12553 #include <stdarg.h>
12554 #include <string.h>
12555 #include <float.h>
12556
12557 int
12558 main ()
12559 {
12560
12561 ;
12562 return 0;
12563 }
12564 _ACEOF
12565 if ac_fn_c_try_compile "$LINENO"; then :
12566 ac_cv_header_stdc=yes
12567 else
12568 ac_cv_header_stdc=no
12569 fi
12570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12571
12572 if test $ac_cv_header_stdc = yes; then
12573 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12576 #include <string.h>
12577
12578 _ACEOF
12579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12580 $EGREP "memchr" >/dev/null 2>&1; then :
12581
12582 else
12583 ac_cv_header_stdc=no
12584 fi
12585 rm -f conftest*
12586
12587 fi
12588
12589 if test $ac_cv_header_stdc = yes; then
12590 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h. */
12593 #include <stdlib.h>
12594
12595 _ACEOF
12596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12597 $EGREP "free" >/dev/null 2>&1; then :
12598
12599 else
12600 ac_cv_header_stdc=no
12601 fi
12602 rm -f conftest*
12603
12604 fi
12605
12606 if test $ac_cv_header_stdc = yes; then
12607 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12608 if test "$cross_compiling" = yes; then :
12609 :
12610 else
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12613 #include <ctype.h>
12614 #include <stdlib.h>
12615 #if ((' ' & 0x0FF) == 0x020)
12616 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12617 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12618 #else
12619 # define ISLOWER(c) \
12620 (('a' <= (c) && (c) <= 'i') \
12621 || ('j' <= (c) && (c) <= 'r') \
12622 || ('s' <= (c) && (c) <= 'z'))
12623 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12624 #endif
12625
12626 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12627 int
12628 main ()
12629 {
12630 int i;
12631 for (i = 0; i < 256; i++)
12632 if (XOR (islower (i), ISLOWER (i))
12633 || toupper (i) != TOUPPER (i))
12634 return 2;
12635 return 0;
12636 }
12637 _ACEOF
12638 if ac_fn_c_try_run "$LINENO"; then :
12639
12640 else
12641 ac_cv_header_stdc=no
12642 fi
12643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12644 conftest.$ac_objext conftest.beam conftest.$ac_ext
12645 fi
12646
12647 fi
12648 fi
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12650 $as_echo "$ac_cv_header_stdc" >&6; }
12651 if test $ac_cv_header_stdc = yes; then
12652
12653 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12654
12655 fi
12656
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
12658 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
12659 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
12660 $as_echo_n "(cached) " >&6
12661 else
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12664 #include <sys/types.h>
12665 int
12666 main ()
12667 {
12668 return makedev(0, 0);
12669 ;
12670 return 0;
12671 }
12672 _ACEOF
12673 if ac_fn_c_try_link "$LINENO"; then :
12674 ac_cv_header_sys_types_h_makedev=yes
12675 else
12676 ac_cv_header_sys_types_h_makedev=no
12677 fi
12678 rm -f core conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12680
12681 fi
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
12683 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
12684
12685 if test $ac_cv_header_sys_types_h_makedev = no; then
12686 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12687 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
12688
12689 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
12690
12691 fi
12692
12693
12694
12695 if test $ac_cv_header_sys_mkdev_h = no; then
12696 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12697 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
12698
12699 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
12700
12701 fi
12702
12703
12704 fi
12705 fi
12706
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12708 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12709 if ${ac_cv_header_sys_wait_h+:} false; then :
12710 $as_echo_n "(cached) " >&6
12711 else
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12714 #include <sys/types.h>
12715 #include <sys/wait.h>
12716 #ifndef WEXITSTATUS
12717 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12718 #endif
12719 #ifndef WIFEXITED
12720 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12721 #endif
12722
12723 int
12724 main ()
12725 {
12726 int s;
12727 wait (&s);
12728 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12729 ;
12730 return 0;
12731 }
12732 _ACEOF
12733 if ac_fn_c_try_compile "$LINENO"; then :
12734 ac_cv_header_sys_wait_h=yes
12735 else
12736 ac_cv_header_sys_wait_h=no
12737 fi
12738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12739 fi
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12741 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12742 if test $ac_cv_header_sys_wait_h = yes; then
12743
12744 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12745
12746 fi
12747
12748 for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
12749 do :
12750 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12751 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12752 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12753 cat >>confdefs.h <<_ACEOF
12754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12755 _ACEOF
12756
12757 fi
12758
12759 done
12760
12761 for ac_header in stddef.h utime.h wchar.h wctype.h limits.h
12762 do :
12763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12764 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12765 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12766 cat >>confdefs.h <<_ACEOF
12767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12768 _ACEOF
12769
12770 fi
12771
12772 done
12773
12774 for ac_header in getopt.h err.h xlocale.h signal.h
12775 do :
12776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12777 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12778 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12779 cat >>confdefs.h <<_ACEOF
12780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12781 _ACEOF
12782
12783 fi
12784
12785 done
12786
12787 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
12788 do :
12789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12790 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12791 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12792 cat >>confdefs.h <<_ACEOF
12793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12794 _ACEOF
12795
12796 fi
12797
12798 done
12799
12800 if test "$enable_zlib" != "no"; then
12801 for ac_header in zlib.h
12802 do :
12803 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12804 if test "x$ac_cv_header_zlib_h" = xyes; then :
12805 cat >>confdefs.h <<_ACEOF
12806 #define HAVE_ZLIB_H 1
12807 _ACEOF
12808
12809 fi
12810
12811 done
12812
12813 fi
12814 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "
12815 #ifdef HAVE_SIGNAL_H
12816 #include <signal.h>
12817 #endif
12818 "
12819 if test "x$ac_cv_type_sig_t" = xyes; then :
12820
12821 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
12822
12823 fi
12824
12825
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12827 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12828 if ${ac_cv_c_const+:} false; then :
12829 $as_echo_n "(cached) " >&6
12830 else
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12833
12834 int
12835 main ()
12836 {
12837
12838 #ifndef __cplusplus
12839 /* Ultrix mips cc rejects this sort of thing. */
12840 typedef int charset[2];
12841 const charset cs = { 0, 0 };
12842 /* SunOS 4.1.1 cc rejects this. */
12843 char const *const *pcpcc;
12844 char **ppc;
12845 /* NEC SVR4.0.2 mips cc rejects this. */
12846 struct point {int x, y;};
12847 static struct point const zero = {0,0};
12848 /* AIX XL C 1.02.0.0 rejects this.
12849 It does not let you subtract one const X* pointer from another in
12850 an arm of an if-expression whose if-part is not a constant
12851 expression */
12852 const char *g = "string";
12853 pcpcc = &g + (g ? g-g : 0);
12854 /* HPUX 7.0 cc rejects these. */
12855 ++pcpcc;
12856 ppc = (char**) pcpcc;
12857 pcpcc = (char const *const *) ppc;
12858 { /* SCO 3.2v4 cc rejects this sort of thing. */
12859 char tx;
12860 char *t = &tx;
12861 char const *s = 0 ? (char *) 0 : (char const *) 0;
12862
12863 *t++ = 0;
12864 if (s) return 0;
12865 }
12866 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12867 int x[] = {25, 17};
12868 const int *foo = &x[0];
12869 ++foo;
12870 }
12871 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12872 typedef const int *iptr;
12873 iptr p = 0;
12874 ++p;
12875 }
12876 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12877 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12878 struct s { int j; const int *ap[3]; } bx;
12879 struct s *b = &bx; b->j = 5;
12880 }
12881 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12882 const int foo = 10;
12883 if (!foo) return 0;
12884 }
12885 return !cs[0] && !zero.x;
12886 #endif
12887
12888 ;
12889 return 0;
12890 }
12891 _ACEOF
12892 if ac_fn_c_try_compile "$LINENO"; then :
12893 ac_cv_c_const=yes
12894 else
12895 ac_cv_c_const=no
12896 fi
12897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12898 fi
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12900 $as_echo "$ac_cv_c_const" >&6; }
12901 if test $ac_cv_c_const = no; then
12902
12903 $as_echo "#define const /**/" >>confdefs.h
12904
12905 fi
12906
12907 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12908 if test "x$ac_cv_type_off_t" = xyes; then :
12909
12910 else
12911
12912 cat >>confdefs.h <<_ACEOF
12913 #define off_t long int
12914 _ACEOF
12915
12916 fi
12917
12918 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12919 if test "x$ac_cv_type_size_t" = xyes; then :
12920
12921 else
12922
12923 cat >>confdefs.h <<_ACEOF
12924 #define size_t unsigned int
12925 _ACEOF
12926
12927 fi
12928
12929 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12930 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12931
12932 cat >>confdefs.h <<_ACEOF
12933 #define HAVE_STRUCT_STAT_ST_RDEV 1
12934 _ACEOF
12935
12936
12937 fi
12938
12939
12940 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
12941 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
12942
12943 cat >>confdefs.h <<_ACEOF
12944 #define HAVE_STRUCT_TM_TM_GMTOFF 1
12945 _ACEOF
12946
12947
12948 fi
12949
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12951 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12952 if ${ac_cv_struct_tm+:} false; then :
12953 $as_echo_n "(cached) " >&6
12954 else
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957 #include <sys/types.h>
12958 #include <time.h>
12959
12960 int
12961 main ()
12962 {
12963 struct tm tm;
12964 int *p = &tm.tm_sec;
12965 return !p;
12966 ;
12967 return 0;
12968 }
12969 _ACEOF
12970 if ac_fn_c_try_compile "$LINENO"; then :
12971 ac_cv_struct_tm=time.h
12972 else
12973 ac_cv_struct_tm=sys/time.h
12974 fi
12975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12976 fi
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12978 $as_echo "$ac_cv_struct_tm" >&6; }
12979 if test $ac_cv_struct_tm = sys/time.h; then
12980
12981 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12982
12983 fi
12984
12985 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12986 #include <$ac_cv_struct_tm>
12987
12988 "
12989 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12990
12991 cat >>confdefs.h <<_ACEOF
12992 #define HAVE_STRUCT_TM_TM_ZONE 1
12993 _ACEOF
12994
12995
12996 fi
12997
12998 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12999
13000 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13001
13002 else
13003 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13004 "
13005 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13006 ac_have_decl=1
13007 else
13008 ac_have_decl=0
13009 fi
13010
13011 cat >>confdefs.h <<_ACEOF
13012 #define HAVE_DECL_TZNAME $ac_have_decl
13013 _ACEOF
13014
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13016 $as_echo_n "checking for tzname... " >&6; }
13017 if ${ac_cv_var_tzname+:} false; then :
13018 $as_echo_n "(cached) " >&6
13019 else
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022 #include <time.h>
13023 #if !HAVE_DECL_TZNAME
13024 extern char *tzname[];
13025 #endif
13026
13027 int
13028 main ()
13029 {
13030 return tzname[0][0];
13031 ;
13032 return 0;
13033 }
13034 _ACEOF
13035 if ac_fn_c_try_link "$LINENO"; then :
13036 ac_cv_var_tzname=yes
13037 else
13038 ac_cv_var_tzname=no
13039 fi
13040 rm -f core conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext conftest.$ac_ext
13042 fi
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13044 $as_echo "$ac_cv_var_tzname" >&6; }
13045 if test $ac_cv_var_tzname = yes; then
13046
13047 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13048
13049 fi
13050 fi
13051
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
13053 $as_echo_n "checking for tm_zone in struct tm... " >&6; }
13054 if ${ac_cv_struct_tm_zone+:} false; then :
13055 $as_echo_n "(cached) " >&6
13056 else
13057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13058 /* end confdefs.h. */
13059 #include <sys/types.h>
13060 #include <$ac_cv_struct_tm>
13061 int
13062 main ()
13063 {
13064 struct tm tm; tm.tm_zone;
13065 ;
13066 return 0;
13067 }
13068 _ACEOF
13069 if ac_fn_c_try_compile "$LINENO"; then :
13070 ac_cv_struct_tm_zone=yes
13071 else
13072 ac_cv_struct_tm_zone=no
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13075 fi
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
13077 $as_echo "$ac_cv_struct_tm_zone" >&6; }
13078 if test "$ac_cv_struct_tm_zone" = yes; then
13079
13080 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13081
13082 fi
13083
13084 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
13085 # consider it declared and we won't give our own extern.
13086 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13087 "
13088 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13089 ac_have_decl=1
13090 else
13091 ac_have_decl=0
13092 fi
13093
13094 cat >>confdefs.h <<_ACEOF
13095 #define HAVE_DECL_TZNAME $ac_have_decl
13096 _ACEOF
13097
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13099 $as_echo_n "checking for tzname... " >&6; }
13100 if ${ac_cv_var_tzname+:} false; then :
13101 $as_echo_n "(cached) " >&6
13102 else
13103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13104 /* end confdefs.h. */
13105 #include <time.h>
13106 #if !HAVE_DECL_TZNAME
13107 extern char *tzname[];
13108 #endif
13109 int
13110 main ()
13111 {
13112 return tzname[0][0];
13113 ;
13114 return 0;
13115 }
13116 _ACEOF
13117 if ac_fn_c_try_link "$LINENO"; then :
13118 ac_cv_var_tzname=yes
13119 else
13120 ac_cv_var_tzname=no
13121 fi
13122 rm -f core conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124 fi
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13126 $as_echo "$ac_cv_var_tzname" >&6; }
13127 if test $ac_cv_var_tzname = yes; then
13128
13129 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13130
13131 fi
13132
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
13134 $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
13135 if ${ac_cv_struct_tm_isdst+:} false; then :
13136 $as_echo_n "(cached) " >&6
13137 else
13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h. */
13140 #include <sys/types.h>
13141 #include <$ac_cv_struct_tm>
13142 int
13143 main ()
13144 {
13145 struct tm tm; tm.tm_isdst;
13146 ;
13147 return 0;
13148 }
13149 _ACEOF
13150 if ac_fn_c_try_compile "$LINENO"; then :
13151 ac_cv_struct_tm_isdst=yes
13152 else
13153 ac_cv_struct_tm_isdst=no
13154 fi
13155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156 fi
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
13158 $as_echo "$ac_cv_struct_tm_isdst" >&6; }
13159 if test "$ac_cv_struct_tm_isdst" = yes; then
13160
13161 $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
13162
13163 fi
13164
13165
13166 ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
13167 "
13168 if test "x$ac_cv_have_decl_daylight" = xyes; then :
13169 ac_have_decl=1
13170 else
13171 ac_have_decl=0
13172 fi
13173
13174 cat >>confdefs.h <<_ACEOF
13175 #define HAVE_DECL_DAYLIGHT $ac_have_decl
13176 _ACEOF
13177
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
13179 $as_echo_n "checking for daylight... " >&6; }
13180 if ${ac_cv_var_daylight+:} false; then :
13181 $as_echo_n "(cached) " >&6
13182 else
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13185 #include <time.h>
13186 #if !HAVE_DECL_DAYLIGHT
13187 extern int daylight;
13188 #endif
13189 int
13190 main ()
13191 {
13192 atoi(daylight);
13193 ;
13194 return 0;
13195 }
13196 _ACEOF
13197 if ac_fn_c_try_link "$LINENO"; then :
13198 ac_cv_var_daylight=yes
13199 else
13200 ac_cv_var_daylight=no
13201 fi
13202 rm -f core conftest.err conftest.$ac_objext \
13203 conftest$ac_exeext conftest.$ac_ext
13204 fi
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
13206 $as_echo "$ac_cv_var_daylight" >&6; }
13207 if test $ac_cv_var_daylight = yes; then
13208
13209 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13210
13211 fi
13212
13213 # Check whether --enable-largefile was given.
13214 if test "${enable_largefile+set}" = set; then :
13215 enableval=$enable_largefile;
13216 fi
13217
13218 if test "$enable_largefile" != no; then
13219
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13221 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13222 if ${ac_cv_sys_largefile_CC+:} false; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225 ac_cv_sys_largefile_CC=no
13226 if test "$GCC" != yes; then
13227 ac_save_CC=$CC
13228 while :; do
13229 # IRIX 6.2 and later do not support large files by default,
13230 # so use the C compiler's -n32 option if that helps.
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13233 #include <sys/types.h>
13234 /* Check that off_t can represent 2**63 - 1 correctly.
13235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13236 since some C++ compilers masquerading as C compilers
13237 incorrectly reject 9223372036854775807. */
13238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13240 && LARGE_OFF_T % 2147483647 == 1)
13241 ? 1 : -1];
13242 int
13243 main ()
13244 {
13245
13246 ;
13247 return 0;
13248 }
13249 _ACEOF
13250 if ac_fn_c_try_compile "$LINENO"; then :
13251 break
13252 fi
13253 rm -f core conftest.err conftest.$ac_objext
13254 CC="$CC -n32"
13255 if ac_fn_c_try_compile "$LINENO"; then :
13256 ac_cv_sys_largefile_CC=' -n32'; break
13257 fi
13258 rm -f core conftest.err conftest.$ac_objext
13259 break
13260 done
13261 CC=$ac_save_CC
13262 rm -f conftest.$ac_ext
13263 fi
13264 fi
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13266 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13267 if test "$ac_cv_sys_largefile_CC" != no; then
13268 CC=$CC$ac_cv_sys_largefile_CC
13269 fi
13270
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13272 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13273 if ${ac_cv_sys_file_offset_bits+:} false; then :
13274 $as_echo_n "(cached) " >&6
13275 else
13276 while :; do
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279 #include <sys/types.h>
13280 /* Check that off_t can represent 2**63 - 1 correctly.
13281 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13282 since some C++ compilers masquerading as C compilers
13283 incorrectly reject 9223372036854775807. */
13284 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13286 && LARGE_OFF_T % 2147483647 == 1)
13287 ? 1 : -1];
13288 int
13289 main ()
13290 {
13291
13292 ;
13293 return 0;
13294 }
13295 _ACEOF
13296 if ac_fn_c_try_compile "$LINENO"; then :
13297 ac_cv_sys_file_offset_bits=no; break
13298 fi
13299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13302 #define _FILE_OFFSET_BITS 64
13303 #include <sys/types.h>
13304 /* Check that off_t can represent 2**63 - 1 correctly.
13305 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13306 since some C++ compilers masquerading as C compilers
13307 incorrectly reject 9223372036854775807. */
13308 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13309 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13310 && LARGE_OFF_T % 2147483647 == 1)
13311 ? 1 : -1];
13312 int
13313 main ()
13314 {
13315
13316 ;
13317 return 0;
13318 }
13319 _ACEOF
13320 if ac_fn_c_try_compile "$LINENO"; then :
13321 ac_cv_sys_file_offset_bits=64; break
13322 fi
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 ac_cv_sys_file_offset_bits=unknown
13325 break
13326 done
13327 fi
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13329 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13330 case $ac_cv_sys_file_offset_bits in #(
13331 no | unknown) ;;
13332 *)
13333 cat >>confdefs.h <<_ACEOF
13334 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13335 _ACEOF
13336 ;;
13337 esac
13338 rm -rf conftest*
13339 if test $ac_cv_sys_file_offset_bits = unknown; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13341 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13342 if ${ac_cv_sys_large_files+:} false; then :
13343 $as_echo_n "(cached) " >&6
13344 else
13345 while :; do
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13348 #include <sys/types.h>
13349 /* Check that off_t can represent 2**63 - 1 correctly.
13350 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13351 since some C++ compilers masquerading as C compilers
13352 incorrectly reject 9223372036854775807. */
13353 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13354 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13355 && LARGE_OFF_T % 2147483647 == 1)
13356 ? 1 : -1];
13357 int
13358 main ()
13359 {
13360
13361 ;
13362 return 0;
13363 }
13364 _ACEOF
13365 if ac_fn_c_try_compile "$LINENO"; then :
13366 ac_cv_sys_large_files=no; break
13367 fi
13368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13371 #define _LARGE_FILES 1
13372 #include <sys/types.h>
13373 /* Check that off_t can represent 2**63 - 1 correctly.
13374 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13375 since some C++ compilers masquerading as C compilers
13376 incorrectly reject 9223372036854775807. */
13377 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13378 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13379 && LARGE_OFF_T % 2147483647 == 1)
13380 ? 1 : -1];
13381 int
13382 main ()
13383 {
13384
13385 ;
13386 return 0;
13387 }
13388 _ACEOF
13389 if ac_fn_c_try_compile "$LINENO"; then :
13390 ac_cv_sys_large_files=1; break
13391 fi
13392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13393 ac_cv_sys_large_files=unknown
13394 break
13395 done
13396 fi
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13398 $as_echo "$ac_cv_sys_large_files" >&6; }
13399 case $ac_cv_sys_large_files in #(
13400 no | unknown) ;;
13401 *)
13402 cat >>confdefs.h <<_ACEOF
13403 #define _LARGE_FILES $ac_cv_sys_large_files
13404 _ACEOF
13405 ;;
13406 esac
13407 rm -rf conftest*
13408 fi
13409
13410
13411 fi
13412
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13414 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13415 if ${ac_cv_sys_largefile_source+:} false; then :
13416 $as_echo_n "(cached) " >&6
13417 else
13418 while :; do
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13421 #include <sys/types.h> /* for off_t */
13422 #include <stdio.h>
13423 int
13424 main ()
13425 {
13426 int (*fp) (FILE *, off_t, int) = fseeko;
13427 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13428 ;
13429 return 0;
13430 }
13431 _ACEOF
13432 if ac_fn_c_try_link "$LINENO"; then :
13433 ac_cv_sys_largefile_source=no; break
13434 fi
13435 rm -f core conftest.err conftest.$ac_objext \
13436 conftest$ac_exeext conftest.$ac_ext
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13439 #define _LARGEFILE_SOURCE 1
13440 #include <sys/types.h> /* for off_t */
13441 #include <stdio.h>
13442 int
13443 main ()
13444 {
13445 int (*fp) (FILE *, off_t, int) = fseeko;
13446 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13447 ;
13448 return 0;
13449 }
13450 _ACEOF
13451 if ac_fn_c_try_link "$LINENO"; then :
13452 ac_cv_sys_largefile_source=1; break
13453 fi
13454 rm -f core conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13456 ac_cv_sys_largefile_source=unknown
13457 break
13458 done
13459 fi
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13461 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13462 case $ac_cv_sys_largefile_source in #(
13463 no | unknown) ;;
13464 *)
13465 cat >>confdefs.h <<_ACEOF
13466 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13467 _ACEOF
13468 ;;
13469 esac
13470 rm -rf conftest*
13471
13472 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13473 # in glibc 2.1.3, but that breaks too many other things.
13474 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13475 if test $ac_cv_sys_largefile_source != unknown; then
13476
13477 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13478
13479 fi
13480
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13482 $as_echo_n "checking for mbstate_t... " >&6; }
13483 if ${ac_cv_type_mbstate_t+:} false; then :
13484 $as_echo_n "(cached) " >&6
13485 else
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 $ac_includes_default
13489 # include <wchar.h>
13490 int
13491 main ()
13492 {
13493 mbstate_t x; return sizeof x;
13494 ;
13495 return 0;
13496 }
13497 _ACEOF
13498 if ac_fn_c_try_compile "$LINENO"; then :
13499 ac_cv_type_mbstate_t=yes
13500 else
13501 ac_cv_type_mbstate_t=no
13502 fi
13503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504 fi
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13506 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13507 if test $ac_cv_type_mbstate_t = yes; then
13508
13509 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13510
13511 else
13512
13513 $as_echo "#define mbstate_t int" >>confdefs.h
13514
13515 fi
13516
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
13518 $as_echo_n "checking for struct option in getopt... " >&6; }
13519 if ${ac_cv_struct_option_getopt_h+:} false; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13524 #include <getopt.h>
13525 int
13526 main ()
13527 {
13528 struct option op; op.name;
13529 ;
13530 return 0;
13531 }
13532 _ACEOF
13533 if ac_fn_c_try_compile "$LINENO"; then :
13534 ac_cv_struct_option_getopt_h=yes
13535 else
13536 ac_cv_struct_option_getopt_h=no
13537 fi
13538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539 fi
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
13541 $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
13542 if test "$ac_cv_struct_option_getopt_h" = yes; then
13543
13544 $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
13545
13546 fi
13547
13548 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13549 if test "x$ac_cv_type_pid_t" = xyes; then :
13550
13551 else
13552
13553 cat >>confdefs.h <<_ACEOF
13554 #define pid_t int
13555 _ACEOF
13556
13557 fi
13558
13559 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13560 case $ac_cv_c_uint8_t in #(
13561 no|yes) ;; #(
13562 *)
13563
13564 $as_echo "#define _UINT8_T 1" >>confdefs.h
13565
13566
13567 cat >>confdefs.h <<_ACEOF
13568 #define uint8_t $ac_cv_c_uint8_t
13569 _ACEOF
13570 ;;
13571 esac
13572
13573 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13574 case $ac_cv_c_uint16_t in #(
13575 no|yes) ;; #(
13576 *)
13577
13578
13579 cat >>confdefs.h <<_ACEOF
13580 #define uint16_t $ac_cv_c_uint16_t
13581 _ACEOF
13582 ;;
13583 esac
13584
13585 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13586 case $ac_cv_c_uint32_t in #(
13587 no|yes) ;; #(
13588 *)
13589
13590 $as_echo "#define _UINT32_T 1" >>confdefs.h
13591
13592
13593 cat >>confdefs.h <<_ACEOF
13594 #define uint32_t $ac_cv_c_uint32_t
13595 _ACEOF
13596 ;;
13597 esac
13598
13599 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
13600 case $ac_cv_c_int32_t in #(
13601 no|yes) ;; #(
13602 *)
13603
13604 cat >>confdefs.h <<_ACEOF
13605 #define int32_t $ac_cv_c_int32_t
13606 _ACEOF
13607 ;;
13608 esac
13609
13610 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13611 case $ac_cv_c_uint64_t in #(
13612 no|yes) ;; #(
13613 *)
13614
13615 $as_echo "#define _UINT64_T 1" >>confdefs.h
13616
13617
13618 cat >>confdefs.h <<_ACEOF
13619 #define uint64_t $ac_cv_c_uint64_t
13620 _ACEOF
13621 ;;
13622 esac
13623
13624 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
13625 case $ac_cv_c_int64_t in #(
13626 no|yes) ;; #(
13627 *)
13628
13629 cat >>confdefs.h <<_ACEOF
13630 #define int64_t $ac_cv_c_int64_t
13631 _ACEOF
13632 ;;
13633 esac
13634
13635
13636 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13637 if test "x$ac_cv_type_intptr_t" = xyes; then :
13638
13639 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
13640
13641 else
13642 for ac_type in 'int' 'long int' 'long long int'; do
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645 $ac_includes_default
13646 int
13647 main ()
13648 {
13649 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13650 test_array [0] = 0;
13651 return test_array [0];
13652
13653 ;
13654 return 0;
13655 }
13656 _ACEOF
13657 if ac_fn_c_try_compile "$LINENO"; then :
13658
13659 cat >>confdefs.h <<_ACEOF
13660 #define intptr_t $ac_type
13661 _ACEOF
13662
13663 ac_type=
13664 fi
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 test -z "$ac_type" && break
13667 done
13668 fi
13669
13670
13671
13672 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13673 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13674
13675 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13676
13677 else
13678 for ac_type in 'unsigned int' 'unsigned long int' \
13679 'unsigned long long int'; do
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682 $ac_includes_default
13683 int
13684 main ()
13685 {
13686 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13687 test_array [0] = 0;
13688 return test_array [0];
13689
13690 ;
13691 return 0;
13692 }
13693 _ACEOF
13694 if ac_fn_c_try_compile "$LINENO"; then :
13695
13696 cat >>confdefs.h <<_ACEOF
13697 #define uintptr_t $ac_type
13698 _ACEOF
13699
13700 ac_type=
13701 fi
13702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13703 test -z "$ac_type" && break
13704 done
13705 fi
13706
13707
13708
13709
13710
13711 for ac_header in $ac_header_list
13712 do :
13713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13714 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13715 "
13716 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13717 cat >>confdefs.h <<_ACEOF
13718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13719 _ACEOF
13720
13721 fi
13722
13723 done
13724
13725
13726
13727
13728
13729
13730
13731
13732 for ac_func in getpagesize
13733 do :
13734 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13735 if test "x$ac_cv_func_getpagesize" = xyes; then :
13736 cat >>confdefs.h <<_ACEOF
13737 #define HAVE_GETPAGESIZE 1
13738 _ACEOF
13739
13740 fi
13741 done
13742
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13744 $as_echo_n "checking for working mmap... " >&6; }
13745 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 if test "$cross_compiling" = yes; then :
13749 ac_cv_func_mmap_fixed_mapped=no
13750 else
13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13752 /* end confdefs.h. */
13753 $ac_includes_default
13754 /* malloc might have been renamed as rpl_malloc. */
13755 #undef malloc
13756
13757 /* Thanks to Mike Haertel and Jim Avera for this test.
13758 Here is a matrix of mmap possibilities:
13759 mmap private not fixed
13760 mmap private fixed at somewhere currently unmapped
13761 mmap private fixed at somewhere already mapped
13762 mmap shared not fixed
13763 mmap shared fixed at somewhere currently unmapped
13764 mmap shared fixed at somewhere already mapped
13765 For private mappings, we should verify that changes cannot be read()
13766 back from the file, nor mmap's back from the file at a different
13767 address. (There have been systems where private was not correctly
13768 implemented like the infamous i386 svr4.0, and systems where the
13769 VM page cache was not coherent with the file system buffer cache
13770 like early versions of FreeBSD and possibly contemporary NetBSD.)
13771 For shared mappings, we should conversely verify that changes get
13772 propagated back to all the places they're supposed to be.
13773
13774 Grep wants private fixed already mapped.
13775 The main things grep needs to know about mmap are:
13776 * does it exist and is it safe to write into the mmap'd area
13777 * how to use it (BSD variants) */
13778
13779 #include <fcntl.h>
13780 #include <sys/mman.h>
13781
13782 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13783 char *malloc ();
13784 #endif
13785
13786 /* This mess was copied from the GNU getpagesize.h. */
13787 #ifndef HAVE_GETPAGESIZE
13788 # ifdef _SC_PAGESIZE
13789 # define getpagesize() sysconf(_SC_PAGESIZE)
13790 # else /* no _SC_PAGESIZE */
13791 # ifdef HAVE_SYS_PARAM_H
13792 # include <sys/param.h>
13793 # ifdef EXEC_PAGESIZE
13794 # define getpagesize() EXEC_PAGESIZE
13795 # else /* no EXEC_PAGESIZE */
13796 # ifdef NBPG
13797 # define getpagesize() NBPG * CLSIZE
13798 # ifndef CLSIZE
13799 # define CLSIZE 1
13800 # endif /* no CLSIZE */
13801 # else /* no NBPG */
13802 # ifdef NBPC
13803 # define getpagesize() NBPC
13804 # else /* no NBPC */
13805 # ifdef PAGESIZE
13806 # define getpagesize() PAGESIZE
13807 # endif /* PAGESIZE */
13808 # endif /* no NBPC */
13809 # endif /* no NBPG */
13810 # endif /* no EXEC_PAGESIZE */
13811 # else /* no HAVE_SYS_PARAM_H */
13812 # define getpagesize() 8192 /* punt totally */
13813 # endif /* no HAVE_SYS_PARAM_H */
13814 # endif /* no _SC_PAGESIZE */
13815
13816 #endif /* no HAVE_GETPAGESIZE */
13817
13818 int
13819 main ()
13820 {
13821 char *data, *data2, *data3;
13822 const char *cdata2;
13823 int i, pagesize;
13824 int fd, fd2;
13825
13826 pagesize = getpagesize ();
13827
13828 /* First, make a file with some known garbage in it. */
13829 data = (char *) malloc (pagesize);
13830 if (!data)
13831 return 1;
13832 for (i = 0; i < pagesize; ++i)
13833 *(data + i) = rand ();
13834 umask (0);
13835 fd = creat ("conftest.mmap", 0600);
13836 if (fd < 0)
13837 return 2;
13838 if (write (fd, data, pagesize) != pagesize)
13839 return 3;
13840 close (fd);
13841
13842 /* Next, check that the tail of a page is zero-filled. File must have
13843 non-zero length, otherwise we risk SIGBUS for entire page. */
13844 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13845 if (fd2 < 0)
13846 return 4;
13847 cdata2 = "";
13848 if (write (fd2, cdata2, 1) != 1)
13849 return 5;
13850 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13851 if (data2 == MAP_FAILED)
13852 return 6;
13853 for (i = 0; i < pagesize; ++i)
13854 if (*(data2 + i))
13855 return 7;
13856 close (fd2);
13857 if (munmap (data2, pagesize))
13858 return 8;
13859
13860 /* Next, try to mmap the file at a fixed address which already has
13861 something else allocated at it. If we can, also make sure that
13862 we see the same garbage. */
13863 fd = open ("conftest.mmap", O_RDWR);
13864 if (fd < 0)
13865 return 9;
13866 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13867 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13868 return 10;
13869 for (i = 0; i < pagesize; ++i)
13870 if (*(data + i) != *(data2 + i))
13871 return 11;
13872
13873 /* Finally, make sure that changes to the mapped area do not
13874 percolate back to the file as seen by read(). (This is a bug on
13875 some variants of i386 svr4.0.) */
13876 for (i = 0; i < pagesize; ++i)
13877 *(data2 + i) = *(data2 + i) + 1;
13878 data3 = (char *) malloc (pagesize);
13879 if (!data3)
13880 return 12;
13881 if (read (fd, data3, pagesize) != pagesize)
13882 return 13;
13883 for (i = 0; i < pagesize; ++i)
13884 if (*(data + i) != *(data3 + i))
13885 return 14;
13886 close (fd);
13887 return 0;
13888 }
13889 _ACEOF
13890 if ac_fn_c_try_run "$LINENO"; then :
13891 ac_cv_func_mmap_fixed_mapped=yes
13892 else
13893 ac_cv_func_mmap_fixed_mapped=no
13894 fi
13895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13896 conftest.$ac_objext conftest.beam conftest.$ac_ext
13897 fi
13898
13899 fi
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13901 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13902 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13903
13904 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13905
13906 fi
13907 rm -f conftest.mmap conftest.txt
13908
13909 for ac_header in vfork.h
13910 do :
13911 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13912 if test "x$ac_cv_header_vfork_h" = xyes; then :
13913 cat >>confdefs.h <<_ACEOF
13914 #define HAVE_VFORK_H 1
13915 _ACEOF
13916
13917 fi
13918
13919 done
13920
13921 for ac_func in fork vfork
13922 do :
13923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13924 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13925 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13926 cat >>confdefs.h <<_ACEOF
13927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13928 _ACEOF
13929
13930 fi
13931 done
13932
13933 if test "x$ac_cv_func_fork" = xyes; then
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13935 $as_echo_n "checking for working fork... " >&6; }
13936 if ${ac_cv_func_fork_works+:} false; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939 if test "$cross_compiling" = yes; then :
13940 ac_cv_func_fork_works=cross
13941 else
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13944 $ac_includes_default
13945 int
13946 main ()
13947 {
13948
13949 /* By Ruediger Kuhlmann. */
13950 return fork () < 0;
13951
13952 ;
13953 return 0;
13954 }
13955 _ACEOF
13956 if ac_fn_c_try_run "$LINENO"; then :
13957 ac_cv_func_fork_works=yes
13958 else
13959 ac_cv_func_fork_works=no
13960 fi
13961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13962 conftest.$ac_objext conftest.beam conftest.$ac_ext
13963 fi
13964
13965 fi
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13967 $as_echo "$ac_cv_func_fork_works" >&6; }
13968
13969 else
13970 ac_cv_func_fork_works=$ac_cv_func_fork
13971 fi
13972 if test "x$ac_cv_func_fork_works" = xcross; then
13973 case $host in
13974 *-*-amigaos* | *-*-msdosdjgpp*)
13975 # Override, as these systems have only a dummy fork() stub
13976 ac_cv_func_fork_works=no
13977 ;;
13978 *)
13979 ac_cv_func_fork_works=yes
13980 ;;
13981 esac
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13983 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13984 fi
13985 ac_cv_func_vfork_works=$ac_cv_func_vfork
13986 if test "x$ac_cv_func_vfork" = xyes; then
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13988 $as_echo_n "checking for working vfork... " >&6; }
13989 if ${ac_cv_func_vfork_works+:} false; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 if test "$cross_compiling" = yes; then :
13993 ac_cv_func_vfork_works=cross
13994 else
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13997 /* Thanks to Paul Eggert for this test. */
13998 $ac_includes_default
13999 #include <sys/wait.h>
14000 #ifdef HAVE_VFORK_H
14001 # include <vfork.h>
14002 #endif
14003 /* On some sparc systems, changes by the child to local and incoming
14004 argument registers are propagated back to the parent. The compiler
14005 is told about this with #include <vfork.h>, but some compilers
14006 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14007 static variable whose address is put into a register that is
14008 clobbered by the vfork. */
14009 static void
14010 #ifdef __cplusplus
14011 sparc_address_test (int arg)
14012 # else
14013 sparc_address_test (arg) int arg;
14014 #endif
14015 {
14016 static pid_t child;
14017 if (!child) {
14018 child = vfork ();
14019 if (child < 0) {
14020 perror ("vfork");
14021 _exit(2);
14022 }
14023 if (!child) {
14024 arg = getpid();
14025 write(-1, "", 0);
14026 _exit (arg);
14027 }
14028 }
14029 }
14030
14031 int
14032 main ()
14033 {
14034 pid_t parent = getpid ();
14035 pid_t child;
14036
14037 sparc_address_test (0);
14038
14039 child = vfork ();
14040
14041 if (child == 0) {
14042 /* Here is another test for sparc vfork register problems. This
14043 test uses lots of local variables, at least as many local
14044 variables as main has allocated so far including compiler
14045 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14046 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14047 reuse the register of parent for one of the local variables,
14048 since it will think that parent can't possibly be used any more
14049 in this routine. Assigning to the local variable will thus
14050 munge parent in the parent process. */
14051 pid_t
14052 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14053 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14054 /* Convince the compiler that p..p7 are live; otherwise, it might
14055 use the same hardware register for all 8 local variables. */
14056 if (p != p1 || p != p2 || p != p3 || p != p4
14057 || p != p5 || p != p6 || p != p7)
14058 _exit(1);
14059
14060 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14061 from child file descriptors. If the child closes a descriptor
14062 before it execs or exits, this munges the parent's descriptor
14063 as well. Test for this by closing stdout in the child. */
14064 _exit(close(fileno(stdout)) != 0);
14065 } else {
14066 int status;
14067 struct stat st;
14068
14069 while (wait(&status) != child)
14070 ;
14071 return (
14072 /* Was there some problem with vforking? */
14073 child < 0
14074
14075 /* Did the child fail? (This shouldn't happen.) */
14076 || status
14077
14078 /* Did the vfork/compiler bug occur? */
14079 || parent != getpid()
14080
14081 /* Did the file descriptor bug occur? */
14082 || fstat(fileno(stdout), &st) != 0
14083 );
14084 }
14085 }
14086 _ACEOF
14087 if ac_fn_c_try_run "$LINENO"; then :
14088 ac_cv_func_vfork_works=yes
14089 else
14090 ac_cv_func_vfork_works=no
14091 fi
14092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14093 conftest.$ac_objext conftest.beam conftest.$ac_ext
14094 fi
14095
14096 fi
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14098 $as_echo "$ac_cv_func_vfork_works" >&6; }
14099
14100 fi;
14101 if test "x$ac_cv_func_fork_works" = xcross; then
14102 ac_cv_func_vfork_works=$ac_cv_func_vfork
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14104 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14105 fi
14106
14107 if test "x$ac_cv_func_vfork_works" = xyes; then
14108
14109 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14110
14111 else
14112
14113 $as_echo "#define vfork fork" >>confdefs.h
14114
14115 fi
14116 if test "x$ac_cv_func_fork_works" = xyes; then
14117
14118 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14119
14120 fi
14121
14122
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
14124 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
14125 if ${ac_cv_func_mbrtowc+:} false; then :
14126 $as_echo_n "(cached) " >&6
14127 else
14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14130 #include <wchar.h>
14131 int
14132 main ()
14133 {
14134 wchar_t wc;
14135 char const s[] = "";
14136 size_t n = 1;
14137 mbstate_t state;
14138 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
14139 ;
14140 return 0;
14141 }
14142 _ACEOF
14143 if ac_fn_c_try_link "$LINENO"; then :
14144 ac_cv_func_mbrtowc=yes
14145 else
14146 ac_cv_func_mbrtowc=no
14147 fi
14148 rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150 fi
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
14152 $as_echo "$ac_cv_func_mbrtowc" >&6; }
14153 if test $ac_cv_func_mbrtowc = yes; then
14154
14155 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
14156
14157 fi
14158
14159
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
14161 $as_echo_n "checking for gcc compiler warnings... " >&6; }
14162 # Check whether --enable-warnings was given.
14163 if test "${enable_warnings+set}" = set; then :
14164 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166 $as_echo "no" >&6; }
14167 WARNINGS=
14168 else
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14170 $as_echo "yes" >&6; }
14171 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14172 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14173 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14174 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14175 fi
14176 else
14177
14178 if test "$GCC" = yes; then
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14180 $as_echo "yes" >&6; }
14181 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14182 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14183 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14184 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14185 else
14186 WARNINGS=
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14188 $as_echo "no" >&6; }
14189 fi
14190 fi
14191
14192
14193 for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale
14194 do :
14195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14196 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14197 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14198 cat >>confdefs.h <<_ACEOF
14199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14200 _ACEOF
14201
14202 fi
14203 done
14204
14205
14206 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
14207 if test "x$ac_cv_func_getopt_long" = xyes; then :
14208 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
14209
14210 else
14211 case " $LIBOBJS " in
14212 *" getopt_long.$ac_objext "* ) ;;
14213 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
14214 ;;
14215 esac
14216
14217 fi
14218
14219 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
14220 if test "x$ac_cv_func_asprintf" = xyes; then :
14221 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
14222
14223 else
14224 case " $LIBOBJS " in
14225 *" asprintf.$ac_objext "* ) ;;
14226 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
14227 ;;
14228 esac
14229
14230 fi
14231
14232 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14233 if test "x$ac_cv_func_vasprintf" = xyes; then :
14234 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
14235
14236 else
14237 case " $LIBOBJS " in
14238 *" vasprintf.$ac_objext "* ) ;;
14239 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
14240 ;;
14241 esac
14242
14243 fi
14244
14245 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
14246 if test "x$ac_cv_func_strlcpy" = xyes; then :
14247 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
14248
14249 else
14250 case " $LIBOBJS " in
14251 *" strlcpy.$ac_objext "* ) ;;
14252 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
14253 ;;
14254 esac
14255
14256 fi
14257
14258 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
14259 if test "x$ac_cv_func_strlcat" = xyes; then :
14260 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
14261
14262 else
14263 case " $LIBOBJS " in
14264 *" strlcat.$ac_objext "* ) ;;
14265 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
14266 ;;
14267 esac
14268
14269 fi
14270
14271 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14272 if test "x$ac_cv_func_getline" = xyes; then :
14273 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
14274
14275 else
14276 case " $LIBOBJS " in
14277 *" getline.$ac_objext "* ) ;;
14278 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
14279 ;;
14280 esac
14281
14282 fi
14283
14284 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
14285 if test "x$ac_cv_func_ctime_r" = xyes; then :
14286 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
14287
14288 else
14289 case " $LIBOBJS " in
14290 *" ctime_r.$ac_objext "* ) ;;
14291 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
14292 ;;
14293 esac
14294
14295 fi
14296
14297 ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
14298 if test "x$ac_cv_func_asctime_r" = xyes; then :
14299 $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
14300
14301 else
14302 case " $LIBOBJS " in
14303 *" asctime_r.$ac_objext "* ) ;;
14304 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
14305 ;;
14306 esac
14307
14308 fi
14309
14310 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
14311 if test "x$ac_cv_func_localtime_r" = xyes; then :
14312 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
14313
14314 else
14315 case " $LIBOBJS " in
14316 *" localtime_r.$ac_objext "* ) ;;
14317 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
14318 ;;
14319 esac
14320
14321 fi
14322
14323 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
14324 if test "x$ac_cv_func_gmtime_r" = xyes; then :
14325 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
14326
14327 else
14328 case " $LIBOBJS " in
14329 *" gmtime_r.$ac_objext "* ) ;;
14330 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
14331 ;;
14332 esac
14333
14334 fi
14335
14336 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
14337 if test "x$ac_cv_func_pread" = xyes; then :
14338 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
14339
14340 else
14341 case " $LIBOBJS " in
14342 *" pread.$ac_objext "* ) ;;
14343 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
14344 ;;
14345 esac
14346
14347 fi
14348
14349 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
14350 if test "x$ac_cv_func_strcasestr" = xyes; then :
14351 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
14352
14353 else
14354 case " $LIBOBJS " in
14355 *" strcasestr.$ac_objext "* ) ;;
14356 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
14357 ;;
14358 esac
14359
14360 fi
14361
14362 ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
14363 if test "x$ac_cv_func_fmtcheck" = xyes; then :
14364 $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
14365
14366 else
14367 case " $LIBOBJS " in
14368 *" fmtcheck.$ac_objext "* ) ;;
14369 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
14370 ;;
14371 esac
14372
14373 fi
14374
14375 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
14376 if test "x$ac_cv_func_dprintf" = xyes; then :
14377 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
14378
14379 else
14380 case " $LIBOBJS " in
14381 *" dprintf.$ac_objext "* ) ;;
14382 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
14383 ;;
14384 esac
14385
14386 fi
14387
14388
14389
14390 if test "$enable_zlib" != "no"; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
14392 $as_echo_n "checking for gzopen in -lz... " >&6; }
14393 if ${ac_cv_lib_z_gzopen+:} false; then :
14394 $as_echo_n "(cached) " >&6
14395 else
14396 ac_check_lib_save_LIBS=$LIBS
14397 LIBS="-lz $LIBS"
14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h. */
14400
14401 /* Override any GCC internal prototype to avoid an error.
14402 Use char because int might match the return type of a GCC
14403 builtin and then its argument prototype would still apply. */
14404 #ifdef __cplusplus
14405 extern "C"
14406 #endif
14407 char gzopen ();
14408 int
14409 main ()
14410 {
14411 return gzopen ();
14412 ;
14413 return 0;
14414 }
14415 _ACEOF
14416 if ac_fn_c_try_link "$LINENO"; then :
14417 ac_cv_lib_z_gzopen=yes
14418 else
14419 ac_cv_lib_z_gzopen=no
14420 fi
14421 rm -f core conftest.err conftest.$ac_objext \
14422 conftest$ac_exeext conftest.$ac_ext
14423 LIBS=$ac_check_lib_save_LIBS
14424 fi
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
14426 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
14427 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
14428 cat >>confdefs.h <<_ACEOF
14429 #define HAVE_LIBZ 1
14430 _ACEOF
14431
14432 LIBS="-lz $LIBS"
14433
14434 fi
14435
14436 fi
14437 if test "$enable_libseccomp" != "no"; then
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
14439 $as_echo_n "checking for seccomp_init in -lseccomp... " >&6; }
14440 if ${ac_cv_lib_seccomp_seccomp_init+:} false; then :
14441 $as_echo_n "(cached) " >&6
14442 else
14443 ac_check_lib_save_LIBS=$LIBS
14444 LIBS="-lseccomp $LIBS"
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14447
14448 /* Override any GCC internal prototype to avoid an error.
14449 Use char because int might match the return type of a GCC
14450 builtin and then its argument prototype would still apply. */
14451 #ifdef __cplusplus
14452 extern "C"
14453 #endif
14454 char seccomp_init ();
14455 int
14456 main ()
14457 {
14458 return seccomp_init ();
14459 ;
14460 return 0;
14461 }
14462 _ACEOF
14463 if ac_fn_c_try_link "$LINENO"; then :
14464 ac_cv_lib_seccomp_seccomp_init=yes
14465 else
14466 ac_cv_lib_seccomp_seccomp_init=no
14467 fi
14468 rm -f core conftest.err conftest.$ac_objext \
14469 conftest$ac_exeext conftest.$ac_ext
14470 LIBS=$ac_check_lib_save_LIBS
14471 fi
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
14473 $as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; }
14474 if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then :
14475 cat >>confdefs.h <<_ACEOF
14476 #define HAVE_LIBSECCOMP 1
14477 _ACEOF
14478
14479 LIBS="-lseccomp $LIBS"
14480
14481 fi
14482
14483 fi
14484 if test "$MINGW" = 1; then
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
14486 $as_echo_n "checking for regexec in -lgnurx... " >&6; }
14487 if ${ac_cv_lib_gnurx_regexec+:} false; then :
14488 $as_echo_n "(cached) " >&6
14489 else
14490 ac_check_lib_save_LIBS=$LIBS
14491 LIBS="-lgnurx $LIBS"
14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h. */
14494
14495 /* Override any GCC internal prototype to avoid an error.
14496 Use char because int might match the return type of a GCC
14497 builtin and then its argument prototype would still apply. */
14498 #ifdef __cplusplus
14499 extern "C"
14500 #endif
14501 char regexec ();
14502 int
14503 main ()
14504 {
14505 return regexec ();
14506 ;
14507 return 0;
14508 }
14509 _ACEOF
14510 if ac_fn_c_try_link "$LINENO"; then :
14511 ac_cv_lib_gnurx_regexec=yes
14512 else
14513 ac_cv_lib_gnurx_regexec=no
14514 fi
14515 rm -f core conftest.err conftest.$ac_objext \
14516 conftest$ac_exeext conftest.$ac_ext
14517 LIBS=$ac_check_lib_save_LIBS
14518 fi
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
14520 $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
14521 if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
14522 cat >>confdefs.h <<_ACEOF
14523 #define HAVE_LIBGNURX 1
14524 _ACEOF
14525
14526 LIBS="-lgnurx $LIBS"
14527
14528 else
14529 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
14530 fi
14531
14532 fi
14533
14534 if test "$cross_compiling" = yes; then
14535 IS_CROSS_COMPILE_TRUE=
14536 IS_CROSS_COMPILE_FALSE='#'
14537 else
14538 IS_CROSS_COMPILE_TRUE='#'
14539 IS_CROSS_COMPILE_FALSE=
14540 fi
14541
14542
14543 if test "$enable_zlib" = "yes"; then
14544 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
14545 as_fn_error $? "zlib support requested but not found" "$LINENO" 5
14546 fi
14547 elif test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
14548
14549 $as_echo "#define ZLIBSUPPORT 1" >>confdefs.h
14550
14551 fi
14552
14553 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
14554
14555 cat >confcache <<\_ACEOF
14556 # This file is a shell script that caches the results of configure
14557 # tests run on this system so they can be shared between configure
14558 # scripts and configure runs, see configure's option --config-cache.
14559 # It is not useful on other systems. If it contains results you don't
14560 # want to keep, you may remove or edit it.
14561 #
14562 # config.status only pays attention to the cache file if you give it
14563 # the --recheck option to rerun configure.
14564 #
14565 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14566 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14567 # following values.
14568
14569 _ACEOF
14570
14571 # The following way of writing the cache mishandles newlines in values,
14572 # but we know of no workaround that is simple, portable, and efficient.
14573 # So, we kill variables containing newlines.
14574 # Ultrix sh set writes to stderr and can't be redirected directly,
14575 # and sets the high bit in the cache file unless we assign to the vars.
14576 (
14577 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14578 eval ac_val=\$$ac_var
14579 case $ac_val in #(
14580 *${as_nl}*)
14581 case $ac_var in #(
14582 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14583 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14584 esac
14585 case $ac_var in #(
14586 _ | IFS | as_nl) ;; #(
14587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14588 *) { eval $ac_var=; unset $ac_var;} ;;
14589 esac ;;
14590 esac
14591 done
14592
14593 (set) 2>&1 |
14594 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14595 *${as_nl}ac_space=\ *)
14596 # `set' does not quote correctly, so add quotes: double-quote
14597 # substitution turns \\\\ into \\, and sed turns \\ into \.
14598 sed -n \
14599 "s/'/'\\\\''/g;
14600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14601 ;; #(
14602 *)
14603 # `set' quotes correctly as required by POSIX, so do not add quotes.
14604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14605 ;;
14606 esac |
14607 sort
14608 ) |
14609 sed '
14610 /^ac_cv_env_/b end
14611 t clear
14612 :clear
14613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14614 t end
14615 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14616 :end' >>confcache
14617 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14618 if test -w "$cache_file"; then
14619 if test "x$cache_file" != "x/dev/null"; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14621 $as_echo "$as_me: updating cache $cache_file" >&6;}
14622 if test ! -f "$cache_file" || test -h "$cache_file"; then
14623 cat confcache >"$cache_file"
14624 else
14625 case $cache_file in #(
14626 */* | ?:*)
14627 mv -f confcache "$cache_file"$$ &&
14628 mv -f "$cache_file"$$ "$cache_file" ;; #(
14629 *)
14630 mv -f confcache "$cache_file" ;;
14631 esac
14632 fi
14633 fi
14634 else
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14636 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14637 fi
14638 fi
14639 rm -f confcache
14640
14641 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14642 # Let make expand exec_prefix.
14643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14644
14645 DEFS=-DHAVE_CONFIG_H
14646
14647 ac_libobjs=
14648 ac_ltlibobjs=
14649 U=
14650 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14651 # 1. Remove the extension, and $U if already installed.
14652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14655 # will be set to the directory where LIBOBJS objects are built.
14656 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14657 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14658 done
14659 LIBOBJS=$ac_libobjs
14660
14661 LTLIBOBJS=$ac_ltlibobjs
14662
14663
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14665 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14666 if test -n "$am_sleep_pid"; then
14667 # Hide warnings about reused PIDs.
14668 wait $am_sleep_pid 2>/dev/null
14669 fi
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14671 $as_echo "done" >&6; }
14672 if test -n "$EXEEXT"; then
14673 am__EXEEXT_TRUE=
14674 am__EXEEXT_FALSE='#'
14675 else
14676 am__EXEEXT_TRUE='#'
14677 am__EXEEXT_FALSE=
14678 fi
14679
14680 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14681 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14683 fi
14684 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
14685 as_fn_error $? "conditional \"MINGW\" was never defined.
14686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14687 fi
14688 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
14689 as_fn_error $? "conditional \"FSECT5\" was never defined.
14690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14691 fi
14692 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14693 as_fn_error $? "conditional \"AMDEP\" was never defined.
14694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14695 fi
14696 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14697 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14699 fi
14700
14701 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
14702 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
14703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14704 fi
14705
14706 : "${CONFIG_STATUS=./config.status}"
14707 ac_write_fail=0
14708 ac_clean_files_save=$ac_clean_files
14709 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14711 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14712 as_write_fail=0
14713 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14714 #! $SHELL
14715 # Generated by $as_me.
14716 # Run this file to recreate the current configuration.
14717 # Compiler output produced by configure, useful for debugging
14718 # configure, is in config.log if it exists.
14719
14720 debug=false
14721 ac_cs_recheck=false
14722 ac_cs_silent=false
14723
14724 SHELL=\${CONFIG_SHELL-$SHELL}
14725 export SHELL
14726 _ASEOF
14727 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14728 ## -------------------- ##
14729 ## M4sh Initialization. ##
14730 ## -------------------- ##
14731
14732 # Be more Bourne compatible
14733 DUALCASE=1; export DUALCASE # for MKS sh
14734 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14735 emulate sh
14736 NULLCMD=:
14737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14738 # is contrary to our usage. Disable this feature.
14739 alias -g '${1+"$@"}'='"$@"'
14740 setopt NO_GLOB_SUBST
14741 else
14742 case `(set -o) 2>/dev/null` in #(
14743 *posix*) :
14744 set -o posix ;; #(
14745 *) :
14746 ;;
14747 esac
14748 fi
14749
14750
14751 as_nl='
14752 '
14753 export as_nl
14754 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14755 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14756 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14757 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14758 # Prefer a ksh shell builtin over an external printf program on Solaris,
14759 # but without wasting forks for bash or zsh.
14760 if test -z "$BASH_VERSION$ZSH_VERSION" \
14761 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14762 as_echo='print -r --'
14763 as_echo_n='print -rn --'
14764 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14765 as_echo='printf %s\n'
14766 as_echo_n='printf %s'
14767 else
14768 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14769 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14770 as_echo_n='/usr/ucb/echo -n'
14771 else
14772 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14773 as_echo_n_body='eval
14774 arg=$1;
14775 case $arg in #(
14776 *"$as_nl"*)
14777 expr "X$arg" : "X\\(.*\\)$as_nl";
14778 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14779 esac;
14780 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14781 '
14782 export as_echo_n_body
14783 as_echo_n='sh -c $as_echo_n_body as_echo'
14784 fi
14785 export as_echo_body
14786 as_echo='sh -c $as_echo_body as_echo'
14787 fi
14788
14789 # The user is always right.
14790 if test "${PATH_SEPARATOR+set}" != set; then
14791 PATH_SEPARATOR=:
14792 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14793 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14794 PATH_SEPARATOR=';'
14795 }
14796 fi
14797
14798
14799 # IFS
14800 # We need space, tab and new line, in precisely that order. Quoting is
14801 # there to prevent editors from complaining about space-tab.
14802 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14803 # splitting by setting IFS to empty value.)
14804 IFS=" "" $as_nl"
14805
14806 # Find who we are. Look in the path if we contain no directory separator.
14807 as_myself=
14808 case $0 in #((
14809 *[\\/]* ) as_myself=$0 ;;
14810 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14811 for as_dir in $PATH
14812 do
14813 IFS=$as_save_IFS
14814 test -z "$as_dir" && as_dir=.
14815 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14816 done
14817 IFS=$as_save_IFS
14818
14819 ;;
14820 esac
14821 # We did not find ourselves, most probably we were run as `sh COMMAND'
14822 # in which case we are not to be found in the path.
14823 if test "x$as_myself" = x; then
14824 as_myself=$0
14825 fi
14826 if test ! -f "$as_myself"; then
14827 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14828 exit 1
14829 fi
14830
14831 # Unset variables that we do not need and which cause bugs (e.g. in
14832 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14833 # suppresses any "Segmentation fault" message there. '((' could
14834 # trigger a bug in pdksh 5.2.14.
14835 for as_var in BASH_ENV ENV MAIL MAILPATH
14836 do eval test x\${$as_var+set} = xset \
14837 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14838 done
14839 PS1='$ '
14840 PS2='> '
14841 PS4='+ '
14842
14843 # NLS nuisances.
14844 LC_ALL=C
14845 export LC_ALL
14846 LANGUAGE=C
14847 export LANGUAGE
14848
14849 # CDPATH.
14850 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14851
14852
14853 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14854 # ----------------------------------------
14855 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14856 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14857 # script with STATUS, using 1 if that was 0.
14858 as_fn_error ()
14859 {
14860 as_status=$1; test $as_status -eq 0 && as_status=1
14861 if test "$4"; then
14862 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14863 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14864 fi
14865 $as_echo "$as_me: error: $2" >&2
14866 as_fn_exit $as_status
14867 } # as_fn_error
14868
14869
14870 # as_fn_set_status STATUS
14871 # -----------------------
14872 # Set $? to STATUS, without forking.
14873 as_fn_set_status ()
14874 {
14875 return $1
14876 } # as_fn_set_status
14877
14878 # as_fn_exit STATUS
14879 # -----------------
14880 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14881 as_fn_exit ()
14882 {
14883 set +e
14884 as_fn_set_status $1
14885 exit $1
14886 } # as_fn_exit
14887
14888 # as_fn_unset VAR
14889 # ---------------
14890 # Portably unset VAR.
14891 as_fn_unset ()
14892 {
14893 { eval $1=; unset $1;}
14894 }
14895 as_unset=as_fn_unset
14896 # as_fn_append VAR VALUE
14897 # ----------------------
14898 # Append the text in VALUE to the end of the definition contained in VAR. Take
14899 # advantage of any shell optimizations that allow amortized linear growth over
14900 # repeated appends, instead of the typical quadratic growth present in naive
14901 # implementations.
14902 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14903 eval 'as_fn_append ()
14904 {
14905 eval $1+=\$2
14906 }'
14907 else
14908 as_fn_append ()
14909 {
14910 eval $1=\$$1\$2
14911 }
14912 fi # as_fn_append
14913
14914 # as_fn_arith ARG...
14915 # ------------------
14916 # Perform arithmetic evaluation on the ARGs, and store the result in the
14917 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14918 # must be portable across $(()) and expr.
14919 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14920 eval 'as_fn_arith ()
14921 {
14922 as_val=$(( $* ))
14923 }'
14924 else
14925 as_fn_arith ()
14926 {
14927 as_val=`expr "$@" || test $? -eq 1`
14928 }
14929 fi # as_fn_arith
14930
14931
14932 if expr a : '\(a\)' >/dev/null 2>&1 &&
14933 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14934 as_expr=expr
14935 else
14936 as_expr=false
14937 fi
14938
14939 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14940 as_basename=basename
14941 else
14942 as_basename=false
14943 fi
14944
14945 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14946 as_dirname=dirname
14947 else
14948 as_dirname=false
14949 fi
14950
14951 as_me=`$as_basename -- "$0" ||
14952 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14953 X"$0" : 'X\(//\)$' \| \
14954 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14955 $as_echo X/"$0" |
14956 sed '/^.*\/\([^/][^/]*\)\/*$/{
14957 s//\1/
14958 q
14959 }
14960 /^X\/\(\/\/\)$/{
14961 s//\1/
14962 q
14963 }
14964 /^X\/\(\/\).*/{
14965 s//\1/
14966 q
14967 }
14968 s/.*/./; q'`
14969
14970 # Avoid depending upon Character Ranges.
14971 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14972 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14973 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14974 as_cr_digits='0123456789'
14975 as_cr_alnum=$as_cr_Letters$as_cr_digits
14976
14977 ECHO_C= ECHO_N= ECHO_T=
14978 case `echo -n x` in #(((((
14979 -n*)
14980 case `echo 'xy\c'` in
14981 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14982 xy) ECHO_C='\c';;
14983 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14984 ECHO_T=' ';;
14985 esac;;
14986 *)
14987 ECHO_N='-n';;
14988 esac
14989
14990 rm -f conf$$ conf$$.exe conf$$.file
14991 if test -d conf$$.dir; then
14992 rm -f conf$$.dir/conf$$.file
14993 else
14994 rm -f conf$$.dir
14995 mkdir conf$$.dir 2>/dev/null
14996 fi
14997 if (echo >conf$$.file) 2>/dev/null; then
14998 if ln -s conf$$.file conf$$ 2>/dev/null; then
14999 as_ln_s='ln -s'
15000 # ... but there are two gotchas:
15001 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15002 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15003 # In both cases, we have to default to `cp -pR'.
15004 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15005 as_ln_s='cp -pR'
15006 elif ln conf$$.file conf$$ 2>/dev/null; then
15007 as_ln_s=ln
15008 else
15009 as_ln_s='cp -pR'
15010 fi
15011 else
15012 as_ln_s='cp -pR'
15013 fi
15014 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15015 rmdir conf$$.dir 2>/dev/null
15016
15017
15018 # as_fn_mkdir_p
15019 # -------------
15020 # Create "$as_dir" as a directory, including parents if necessary.
15021 as_fn_mkdir_p ()
15022 {
15023
15024 case $as_dir in #(
15025 -*) as_dir=./$as_dir;;
15026 esac
15027 test -d "$as_dir" || eval $as_mkdir_p || {
15028 as_dirs=
15029 while :; do
15030 case $as_dir in #(
15031 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15032 *) as_qdir=$as_dir;;
15033 esac
15034 as_dirs="'$as_qdir' $as_dirs"
15035 as_dir=`$as_dirname -- "$as_dir" ||
15036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15037 X"$as_dir" : 'X\(//\)[^/]' \| \
15038 X"$as_dir" : 'X\(//\)$' \| \
15039 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15040 $as_echo X"$as_dir" |
15041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15042 s//\1/
15043 q
15044 }
15045 /^X\(\/\/\)[^/].*/{
15046 s//\1/
15047 q
15048 }
15049 /^X\(\/\/\)$/{
15050 s//\1/
15051 q
15052 }
15053 /^X\(\/\).*/{
15054 s//\1/
15055 q
15056 }
15057 s/.*/./; q'`
15058 test -d "$as_dir" && break
15059 done
15060 test -z "$as_dirs" || eval "mkdir $as_dirs"
15061 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15062
15063
15064 } # as_fn_mkdir_p
15065 if mkdir -p . 2>/dev/null; then
15066 as_mkdir_p='mkdir -p "$as_dir"'
15067 else
15068 test -d ./-p && rmdir ./-p
15069 as_mkdir_p=false
15070 fi
15071
15072
15073 # as_fn_executable_p FILE
15074 # -----------------------
15075 # Test if FILE is an executable regular file.
15076 as_fn_executable_p ()
15077 {
15078 test -f "$1" && test -x "$1"
15079 } # as_fn_executable_p
15080 as_test_x='test -x'
15081 as_executable_p=as_fn_executable_p
15082
15083 # Sed expression to map a string onto a valid CPP name.
15084 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15085
15086 # Sed expression to map a string onto a valid variable name.
15087 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15088
15089
15090 exec 6>&1
15091 ## ----------------------------------- ##
15092 ## Main body of $CONFIG_STATUS script. ##
15093 ## ----------------------------------- ##
15094 _ASEOF
15095 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15096
15097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15098 # Save the log message, to keep $0 and so on meaningful, and to
15099 # report actual input values of CONFIG_FILES etc. instead of their
15100 # values after options handling.
15101 ac_log="
15102 This file was extended by file $as_me 5.33, which was
15103 generated by GNU Autoconf 2.69. Invocation command line was
15104
15105 CONFIG_FILES = $CONFIG_FILES
15106 CONFIG_HEADERS = $CONFIG_HEADERS
15107 CONFIG_LINKS = $CONFIG_LINKS
15108 CONFIG_COMMANDS = $CONFIG_COMMANDS
15109 $ $0 $@
15110
15111 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15112 "
15113
15114 _ACEOF
15115
15116 case $ac_config_files in *"
15117 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15118 esac
15119
15120 case $ac_config_headers in *"
15121 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15122 esac
15123
15124
15125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15126 # Files that config.status was made for.
15127 config_files="$ac_config_files"
15128 config_headers="$ac_config_headers"
15129 config_commands="$ac_config_commands"
15130
15131 _ACEOF
15132
15133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15134 ac_cs_usage="\
15135 \`$as_me' instantiates files and other configuration actions
15136 from templates according to the current configuration. Unless the files
15137 and actions are specified as TAGs, all are instantiated by default.
15138
15139 Usage: $0 [OPTION]... [TAG]...
15140
15141 -h, --help print this help, then exit
15142 -V, --version print version number and configuration settings, then exit
15143 --config print configuration, then exit
15144 -q, --quiet, --silent
15145 do not print progress messages
15146 -d, --debug don't remove temporary files
15147 --recheck update $as_me by reconfiguring in the same conditions
15148 --file=FILE[:TEMPLATE]
15149 instantiate the configuration file FILE
15150 --header=FILE[:TEMPLATE]
15151 instantiate the configuration header FILE
15152
15153 Configuration files:
15154 $config_files
15155
15156 Configuration headers:
15157 $config_headers
15158
15159 Configuration commands:
15160 $config_commands
15161
15162 Report bugs to <christos@astron.com>."
15163
15164 _ACEOF
15165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15166 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15167 ac_cs_version="\\
15168 file config.status 5.33
15169 configured by $0, generated by GNU Autoconf 2.69,
15170 with options \\"\$ac_cs_config\\"
15171
15172 Copyright (C) 2012 Free Software Foundation, Inc.
15173 This config.status script is free software; the Free Software Foundation
15174 gives unlimited permission to copy, distribute and modify it."
15175
15176 ac_pwd='$ac_pwd'
15177 srcdir='$srcdir'
15178 INSTALL='$INSTALL'
15179 MKDIR_P='$MKDIR_P'
15180 AWK='$AWK'
15181 test -n "\$AWK" || AWK=awk
15182 _ACEOF
15183
15184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15185 # The default lists apply if the user does not specify any file.
15186 ac_need_defaults=:
15187 while test $# != 0
15188 do
15189 case $1 in
15190 --*=?*)
15191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15192 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15193 ac_shift=:
15194 ;;
15195 --*=)
15196 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15197 ac_optarg=
15198 ac_shift=:
15199 ;;
15200 *)
15201 ac_option=$1
15202 ac_optarg=$2
15203 ac_shift=shift
15204 ;;
15205 esac
15206
15207 case $ac_option in
15208 # Handling of the options.
15209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15210 ac_cs_recheck=: ;;
15211 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15212 $as_echo "$ac_cs_version"; exit ;;
15213 --config | --confi | --conf | --con | --co | --c )
15214 $as_echo "$ac_cs_config"; exit ;;
15215 --debug | --debu | --deb | --de | --d | -d )
15216 debug=: ;;
15217 --file | --fil | --fi | --f )
15218 $ac_shift
15219 case $ac_optarg in
15220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15221 '') as_fn_error $? "missing file argument" ;;
15222 esac
15223 as_fn_append CONFIG_FILES " '$ac_optarg'"
15224 ac_need_defaults=false;;
15225 --header | --heade | --head | --hea )
15226 $ac_shift
15227 case $ac_optarg in
15228 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15229 esac
15230 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15231 ac_need_defaults=false;;
15232 --he | --h)
15233 # Conflict between --help and --header
15234 as_fn_error $? "ambiguous option: \`$1'
15235 Try \`$0 --help' for more information.";;
15236 --help | --hel | -h )
15237 $as_echo "$ac_cs_usage"; exit ;;
15238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15239 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15240 ac_cs_silent=: ;;
15241
15242 # This is an error.
15243 -*) as_fn_error $? "unrecognized option: \`$1'
15244 Try \`$0 --help' for more information." ;;
15245
15246 *) as_fn_append ac_config_targets " $1"
15247 ac_need_defaults=false ;;
15248
15249 esac
15250 shift
15251 done
15252
15253 ac_configure_extra_args=
15254
15255 if $ac_cs_silent; then
15256 exec 6>/dev/null
15257 ac_configure_extra_args="$ac_configure_extra_args --silent"
15258 fi
15259
15260 _ACEOF
15261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15262 if \$ac_cs_recheck; then
15263 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15264 shift
15265 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15266 CONFIG_SHELL='$SHELL'
15267 export CONFIG_SHELL
15268 exec "\$@"
15269 fi
15270
15271 _ACEOF
15272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15273 exec 5>>config.log
15274 {
15275 echo
15276 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15277 ## Running $as_me. ##
15278 _ASBOX
15279 $as_echo "$ac_log"
15280 } >&5
15281
15282 _ACEOF
15283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15284 #
15285 # INIT-COMMANDS
15286 #
15287 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15288
15289
15290 # The HP-UX ksh and POSIX shell print the target directory to stdout
15291 # if CDPATH is set.
15292 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15293
15294 sed_quote_subst='$sed_quote_subst'
15295 double_quote_subst='$double_quote_subst'
15296 delay_variable_subst='$delay_variable_subst'
15297 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15298 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15299 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15300 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15301 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15302 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15303 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15304 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15305 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15306 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15307 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15308 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15309 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15310 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15311 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15312 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15313 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15314 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15315 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15316 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15317 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15318 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15319 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15320 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15321 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15322 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15323 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15324 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15325 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15326 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15327 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15328 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15329 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15330 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15331 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15332 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15333 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15334 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15335 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15336 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15337 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15338 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15339 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15340 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15341 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15342 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15343 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15344 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15345 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15346 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15347 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15348 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15349 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15350 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15351 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15352 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15353 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"`'
15354 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15355 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15356 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15357 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15358 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15359 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15360 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15361 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15362 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15363 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15364 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15365 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15366 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15367 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15368 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15369 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15370 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15371 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15372 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15373 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15374 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15375 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15376 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15377 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15378 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15379 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15380 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15381 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15382 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15383 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15384 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15385 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15386 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15387 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15388 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15389 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15390 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15391 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15392 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15393 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15394 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15395 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15396 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15397 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15398 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15399 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15400 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15401 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15402 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15403 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15404 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15405 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15406 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15407 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15408 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15409 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15410 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15411 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15412 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15413 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15414 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15415 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15416 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15417 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15418 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15419 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15420 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15421 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15422 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15423 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15424 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15425 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15426 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15427
15428 LTCC='$LTCC'
15429 LTCFLAGS='$LTCFLAGS'
15430 compiler='$compiler_DEFAULT'
15431
15432 # A function that is used when there is no print builtin or printf.
15433 func_fallback_echo ()
15434 {
15435 eval 'cat <<_LTECHO_EOF
15436 \$1
15437 _LTECHO_EOF'
15438 }
15439
15440 # Quote evaled strings.
15441 for var in SHELL \
15442 ECHO \
15443 PATH_SEPARATOR \
15444 SED \
15445 GREP \
15446 EGREP \
15447 FGREP \
15448 LD \
15449 NM \
15450 LN_S \
15451 lt_SP2NL \
15452 lt_NL2SP \
15453 reload_flag \
15454 OBJDUMP \
15455 deplibs_check_method \
15456 file_magic_cmd \
15457 file_magic_glob \
15458 want_nocaseglob \
15459 DLLTOOL \
15460 sharedlib_from_linklib_cmd \
15461 AR \
15462 AR_FLAGS \
15463 archiver_list_spec \
15464 STRIP \
15465 RANLIB \
15466 CC \
15467 CFLAGS \
15468 compiler \
15469 lt_cv_sys_global_symbol_pipe \
15470 lt_cv_sys_global_symbol_to_cdecl \
15471 lt_cv_sys_global_symbol_to_c_name_address \
15472 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15473 nm_file_list_spec \
15474 lt_prog_compiler_no_builtin_flag \
15475 lt_prog_compiler_pic \
15476 lt_prog_compiler_wl \
15477 lt_prog_compiler_static \
15478 lt_cv_prog_compiler_c_o \
15479 need_locks \
15480 MANIFEST_TOOL \
15481 DSYMUTIL \
15482 NMEDIT \
15483 LIPO \
15484 OTOOL \
15485 OTOOL64 \
15486 shrext_cmds \
15487 export_dynamic_flag_spec \
15488 whole_archive_flag_spec \
15489 compiler_needs_object \
15490 with_gnu_ld \
15491 allow_undefined_flag \
15492 no_undefined_flag \
15493 hardcode_libdir_flag_spec \
15494 hardcode_libdir_separator \
15495 exclude_expsyms \
15496 include_expsyms \
15497 file_list_spec \
15498 variables_saved_for_relink \
15499 libname_spec \
15500 library_names_spec \
15501 soname_spec \
15502 install_override_mode \
15503 finish_eval \
15504 old_striplib \
15505 striplib; do
15506 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15507 *[\\\\\\\`\\"\\\$]*)
15508 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15509 ;;
15510 *)
15511 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15512 ;;
15513 esac
15514 done
15515
15516 # Double-quote double-evaled strings.
15517 for var in reload_cmds \
15518 old_postinstall_cmds \
15519 old_postuninstall_cmds \
15520 old_archive_cmds \
15521 extract_expsyms_cmds \
15522 old_archive_from_new_cmds \
15523 old_archive_from_expsyms_cmds \
15524 archive_cmds \
15525 archive_expsym_cmds \
15526 module_cmds \
15527 module_expsym_cmds \
15528 export_symbols_cmds \
15529 prelink_cmds \
15530 postlink_cmds \
15531 postinstall_cmds \
15532 postuninstall_cmds \
15533 finish_cmds \
15534 sys_lib_search_path_spec \
15535 sys_lib_dlsearch_path_spec; do
15536 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15537 *[\\\\\\\`\\"\\\$]*)
15538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15539 ;;
15540 *)
15541 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15542 ;;
15543 esac
15544 done
15545
15546 ac_aux_dir='$ac_aux_dir'
15547 xsi_shell='$xsi_shell'
15548 lt_shell_append='$lt_shell_append'
15549
15550 # See if we are running on zsh, and set the options which allow our
15551 # commands through without removal of \ escapes INIT.
15552 if test -n "\${ZSH_VERSION+set}" ; then
15553 setopt NO_GLOB_SUBST
15554 fi
15555
15556
15557 PACKAGE='$PACKAGE'
15558 VERSION='$VERSION'
15559 TIMESTAMP='$TIMESTAMP'
15560 RM='$RM'
15561 ofile='$ofile'
15562
15563
15564
15565
15566 _ACEOF
15567
15568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15569
15570 # Handling of arguments.
15571 for ac_config_target in $ac_config_targets
15572 do
15573 case $ac_config_target in
15574 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15575 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15576 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15577 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15578 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15579 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
15580 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15581 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15582 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
15583
15584 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15585 esac
15586 done
15587
15588
15589 # If the user did not use the arguments to specify the items to instantiate,
15590 # then the envvar interface is used. Set only those that are not.
15591 # We use the long form for the default assignment because of an extremely
15592 # bizarre bug on SunOS 4.1.3.
15593 if $ac_need_defaults; then
15594 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15595 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15596 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15597 fi
15598
15599 # Have a temporary directory for convenience. Make it in the build tree
15600 # simply because there is no reason against having it here, and in addition,
15601 # creating and moving files from /tmp can sometimes cause problems.
15602 # Hook for its removal unless debugging.
15603 # Note that there is a small window in which the directory will not be cleaned:
15604 # after its creation but before its name has been assigned to `$tmp'.
15605 $debug ||
15606 {
15607 tmp= ac_tmp=
15608 trap 'exit_status=$?
15609 : "${ac_tmp:=$tmp}"
15610 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15611 ' 0
15612 trap 'as_fn_exit 1' 1 2 13 15
15613 }
15614 # Create a (secure) tmp directory for tmp files.
15615
15616 {
15617 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15618 test -d "$tmp"
15619 } ||
15620 {
15621 tmp=./conf$$-$RANDOM
15622 (umask 077 && mkdir "$tmp")
15623 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15624 ac_tmp=$tmp
15625
15626 # Set up the scripts for CONFIG_FILES section.
15627 # No need to generate them if there are no CONFIG_FILES.
15628 # This happens for instance with `./config.status config.h'.
15629 if test -n "$CONFIG_FILES"; then
15630
15631
15632 ac_cr=`echo X | tr X '\015'`
15633 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15634 # But we know of no other shell where ac_cr would be empty at this
15635 # point, so we can use a bashism as a fallback.
15636 if test "x$ac_cr" = x; then
15637 eval ac_cr=\$\'\\r\'
15638 fi
15639 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15640 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15641 ac_cs_awk_cr='\\r'
15642 else
15643 ac_cs_awk_cr=$ac_cr
15644 fi
15645
15646 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15647 _ACEOF
15648
15649
15650 {
15651 echo "cat >conf$$subs.awk <<_ACEOF" &&
15652 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15653 echo "_ACEOF"
15654 } >conf$$subs.sh ||
15655 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15656 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15657 ac_delim='%!_!# '
15658 for ac_last_try in false false false false false :; do
15659 . ./conf$$subs.sh ||
15660 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15661
15662 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15663 if test $ac_delim_n = $ac_delim_num; then
15664 break
15665 elif $ac_last_try; then
15666 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15667 else
15668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15669 fi
15670 done
15671 rm -f conf$$subs.sh
15672
15673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15674 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15675 _ACEOF
15676 sed -n '
15677 h
15678 s/^/S["/; s/!.*/"]=/
15679 p
15680 g
15681 s/^[^!]*!//
15682 :repl
15683 t repl
15684 s/'"$ac_delim"'$//
15685 t delim
15686 :nl
15687 h
15688 s/\(.\{148\}\)..*/\1/
15689 t more1
15690 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15691 p
15692 n
15693 b repl
15694 :more1
15695 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15696 p
15697 g
15698 s/.\{148\}//
15699 t nl
15700 :delim
15701 h
15702 s/\(.\{148\}\)..*/\1/
15703 t more2
15704 s/["\\]/\\&/g; s/^/"/; s/$/"/
15705 p
15706 b
15707 :more2
15708 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15709 p
15710 g
15711 s/.\{148\}//
15712 t delim
15713 ' <conf$$subs.awk | sed '
15714 /^[^""]/{
15715 N
15716 s/\n//
15717 }
15718 ' >>$CONFIG_STATUS || ac_write_fail=1
15719 rm -f conf$$subs.awk
15720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15721 _ACAWK
15722 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15723 for (key in S) S_is_set[key] = 1
15724 FS = ""
15725
15726 }
15727 {
15728 line = $ 0
15729 nfields = split(line, field, "@")
15730 substed = 0
15731 len = length(field[1])
15732 for (i = 2; i < nfields; i++) {
15733 key = field[i]
15734 keylen = length(key)
15735 if (S_is_set[key]) {
15736 value = S[key]
15737 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15738 len += length(value) + length(field[++i])
15739 substed = 1
15740 } else
15741 len += 1 + keylen
15742 }
15743
15744 print line
15745 }
15746
15747 _ACAWK
15748 _ACEOF
15749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15750 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15751 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15752 else
15753 cat
15754 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15755 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15756 _ACEOF
15757
15758 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15759 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15760 # trailing colons and then remove the whole line if VPATH becomes empty
15761 # (actually we leave an empty line to preserve line numbers).
15762 if test "x$srcdir" = x.; then
15763 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15764 h
15765 s///
15766 s/^/:/
15767 s/[ ]*$/:/
15768 s/:\$(srcdir):/:/g
15769 s/:\${srcdir}:/:/g
15770 s/:@srcdir@:/:/g
15771 s/^:*//
15772 s/:*$//
15773 x
15774 s/\(=[ ]*\).*/\1/
15775 G
15776 s/\n//
15777 s/^[^=]*=[ ]*$//
15778 }'
15779 fi
15780
15781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15782 fi # test -n "$CONFIG_FILES"
15783
15784 # Set up the scripts for CONFIG_HEADERS section.
15785 # No need to generate them if there are no CONFIG_HEADERS.
15786 # This happens for instance with `./config.status Makefile'.
15787 if test -n "$CONFIG_HEADERS"; then
15788 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15789 BEGIN {
15790 _ACEOF
15791
15792 # Transform confdefs.h into an awk script `defines.awk', embedded as
15793 # here-document in config.status, that substitutes the proper values into
15794 # config.h.in to produce config.h.
15795
15796 # Create a delimiter string that does not exist in confdefs.h, to ease
15797 # handling of long lines.
15798 ac_delim='%!_!# '
15799 for ac_last_try in false false :; do
15800 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15801 if test -z "$ac_tt"; then
15802 break
15803 elif $ac_last_try; then
15804 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15805 else
15806 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15807 fi
15808 done
15809
15810 # For the awk script, D is an array of macro values keyed by name,
15811 # likewise P contains macro parameters if any. Preserve backslash
15812 # newline sequences.
15813
15814 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15815 sed -n '
15816 s/.\{148\}/&'"$ac_delim"'/g
15817 t rset
15818 :rset
15819 s/^[ ]*#[ ]*define[ ][ ]*/ /
15820 t def
15821 d
15822 :def
15823 s/\\$//
15824 t bsnl
15825 s/["\\]/\\&/g
15826 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15827 D["\1"]=" \3"/p
15828 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15829 d
15830 :bsnl
15831 s/["\\]/\\&/g
15832 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15833 D["\1"]=" \3\\\\\\n"\\/p
15834 t cont
15835 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15836 t cont
15837 d
15838 :cont
15839 n
15840 s/.\{148\}/&'"$ac_delim"'/g
15841 t clear
15842 :clear
15843 s/\\$//
15844 t bsnlc
15845 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15846 d
15847 :bsnlc
15848 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15849 b cont
15850 ' <confdefs.h | sed '
15851 s/'"$ac_delim"'/"\\\
15852 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15853
15854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15855 for (key in D) D_is_set[key] = 1
15856 FS = ""
15857 }
15858 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15859 line = \$ 0
15860 split(line, arg, " ")
15861 if (arg[1] == "#") {
15862 defundef = arg[2]
15863 mac1 = arg[3]
15864 } else {
15865 defundef = substr(arg[1], 2)
15866 mac1 = arg[2]
15867 }
15868 split(mac1, mac2, "(") #)
15869 macro = mac2[1]
15870 prefix = substr(line, 1, index(line, defundef) - 1)
15871 if (D_is_set[macro]) {
15872 # Preserve the white space surrounding the "#".
15873 print prefix "define", macro P[macro] D[macro]
15874 next
15875 } else {
15876 # Replace #undef with comments. This is necessary, for example,
15877 # in the case of _POSIX_SOURCE, which is predefined and required
15878 # on some systems where configure will not decide to define it.
15879 if (defundef == "undef") {
15880 print "/*", prefix defundef, macro, "*/"
15881 next
15882 }
15883 }
15884 }
15885 { print }
15886 _ACAWK
15887 _ACEOF
15888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15889 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15890 fi # test -n "$CONFIG_HEADERS"
15891
15892
15893 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15894 shift
15895 for ac_tag
15896 do
15897 case $ac_tag in
15898 :[FHLC]) ac_mode=$ac_tag; continue;;
15899 esac
15900 case $ac_mode$ac_tag in
15901 :[FHL]*:*);;
15902 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15903 :[FH]-) ac_tag=-:-;;
15904 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15905 esac
15906 ac_save_IFS=$IFS
15907 IFS=:
15908 set x $ac_tag
15909 IFS=$ac_save_IFS
15910 shift
15911 ac_file=$1
15912 shift
15913
15914 case $ac_mode in
15915 :L) ac_source=$1;;
15916 :[FH])
15917 ac_file_inputs=
15918 for ac_f
15919 do
15920 case $ac_f in
15921 -) ac_f="$ac_tmp/stdin";;
15922 *) # Look for the file first in the build tree, then in the source tree
15923 # (if the path is not absolute). The absolute path cannot be DOS-style,
15924 # because $ac_f cannot contain `:'.
15925 test -f "$ac_f" ||
15926 case $ac_f in
15927 [\\/$]*) false;;
15928 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15929 esac ||
15930 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15931 esac
15932 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15933 as_fn_append ac_file_inputs " '$ac_f'"
15934 done
15935
15936 # Let's still pretend it is `configure' which instantiates (i.e., don't
15937 # use $as_me), people would be surprised to read:
15938 # /* config.h. Generated by config.status. */
15939 configure_input='Generated from '`
15940 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15941 `' by configure.'
15942 if test x"$ac_file" != x-; then
15943 configure_input="$ac_file. $configure_input"
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15945 $as_echo "$as_me: creating $ac_file" >&6;}
15946 fi
15947 # Neutralize special characters interpreted by sed in replacement strings.
15948 case $configure_input in #(
15949 *\&* | *\|* | *\\* )
15950 ac_sed_conf_input=`$as_echo "$configure_input" |
15951 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15952 *) ac_sed_conf_input=$configure_input;;
15953 esac
15954
15955 case $ac_tag in
15956 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15958 esac
15959 ;;
15960 esac
15961
15962 ac_dir=`$as_dirname -- "$ac_file" ||
15963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15964 X"$ac_file" : 'X\(//\)[^/]' \| \
15965 X"$ac_file" : 'X\(//\)$' \| \
15966 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15967 $as_echo X"$ac_file" |
15968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15969 s//\1/
15970 q
15971 }
15972 /^X\(\/\/\)[^/].*/{
15973 s//\1/
15974 q
15975 }
15976 /^X\(\/\/\)$/{
15977 s//\1/
15978 q
15979 }
15980 /^X\(\/\).*/{
15981 s//\1/
15982 q
15983 }
15984 s/.*/./; q'`
15985 as_dir="$ac_dir"; as_fn_mkdir_p
15986 ac_builddir=.
15987
15988 case "$ac_dir" in
15989 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15990 *)
15991 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15992 # A ".." for each directory in $ac_dir_suffix.
15993 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15994 case $ac_top_builddir_sub in
15995 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15996 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15997 esac ;;
15998 esac
15999 ac_abs_top_builddir=$ac_pwd
16000 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16001 # for backward compatibility:
16002 ac_top_builddir=$ac_top_build_prefix
16003
16004 case $srcdir in
16005 .) # We are building in place.
16006 ac_srcdir=.
16007 ac_top_srcdir=$ac_top_builddir_sub
16008 ac_abs_top_srcdir=$ac_pwd ;;
16009 [\\/]* | ?:[\\/]* ) # Absolute name.
16010 ac_srcdir=$srcdir$ac_dir_suffix;
16011 ac_top_srcdir=$srcdir
16012 ac_abs_top_srcdir=$srcdir ;;
16013 *) # Relative name.
16014 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16015 ac_top_srcdir=$ac_top_build_prefix$srcdir
16016 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16017 esac
16018 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16019
16020
16021 case $ac_mode in
16022 :F)
16023 #
16024 # CONFIG_FILE
16025 #
16026
16027 case $INSTALL in
16028 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16029 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16030 esac
16031 ac_MKDIR_P=$MKDIR_P
16032 case $MKDIR_P in
16033 [\\/$]* | ?:[\\/]* ) ;;
16034 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16035 esac
16036 _ACEOF
16037
16038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16039 # If the template does not know about datarootdir, expand it.
16040 # FIXME: This hack should be removed a few years after 2.60.
16041 ac_datarootdir_hack=; ac_datarootdir_seen=
16042 ac_sed_dataroot='
16043 /datarootdir/ {
16044 p
16045 q
16046 }
16047 /@datadir@/p
16048 /@docdir@/p
16049 /@infodir@/p
16050 /@localedir@/p
16051 /@mandir@/p'
16052 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16053 *datarootdir*) ac_datarootdir_seen=yes;;
16054 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16056 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16057 _ACEOF
16058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16059 ac_datarootdir_hack='
16060 s&@datadir@&$datadir&g
16061 s&@docdir@&$docdir&g
16062 s&@infodir@&$infodir&g
16063 s&@localedir@&$localedir&g
16064 s&@mandir@&$mandir&g
16065 s&\\\${datarootdir}&$datarootdir&g' ;;
16066 esac
16067 _ACEOF
16068
16069 # Neutralize VPATH when `$srcdir' = `.'.
16070 # Shell code in configure.ac might set extrasub.
16071 # FIXME: do we really want to maintain this feature?
16072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16073 ac_sed_extra="$ac_vpsub
16074 $extrasub
16075 _ACEOF
16076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16077 :t
16078 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16079 s|@configure_input@|$ac_sed_conf_input|;t t
16080 s&@top_builddir@&$ac_top_builddir_sub&;t t
16081 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16082 s&@srcdir@&$ac_srcdir&;t t
16083 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16084 s&@top_srcdir@&$ac_top_srcdir&;t t
16085 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16086 s&@builddir@&$ac_builddir&;t t
16087 s&@abs_builddir@&$ac_abs_builddir&;t t
16088 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16089 s&@INSTALL@&$ac_INSTALL&;t t
16090 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16091 $ac_datarootdir_hack
16092 "
16093 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16094 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16095
16096 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16097 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16098 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16099 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16101 which seems to be undefined. Please make sure it is defined" >&5
16102 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16103 which seems to be undefined. Please make sure it is defined" >&2;}
16104
16105 rm -f "$ac_tmp/stdin"
16106 case $ac_file in
16107 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16108 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16109 esac \
16110 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16111 ;;
16112 :H)
16113 #
16114 # CONFIG_HEADER
16115 #
16116 if test x"$ac_file" != x-; then
16117 {
16118 $as_echo "/* $configure_input */" \
16119 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16120 } >"$ac_tmp/config.h" \
16121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16122 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16124 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16125 else
16126 rm -f "$ac_file"
16127 mv "$ac_tmp/config.h" "$ac_file" \
16128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16129 fi
16130 else
16131 $as_echo "/* $configure_input */" \
16132 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16133 || as_fn_error $? "could not create -" "$LINENO" 5
16134 fi
16135 # Compute "$ac_file"'s index in $config_headers.
16136 _am_arg="$ac_file"
16137 _am_stamp_count=1
16138 for _am_header in $config_headers :; do
16139 case $_am_header in
16140 $_am_arg | $_am_arg:* )
16141 break ;;
16142 * )
16143 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16144 esac
16145 done
16146 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16147 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16148 X"$_am_arg" : 'X\(//\)[^/]' \| \
16149 X"$_am_arg" : 'X\(//\)$' \| \
16150 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16151 $as_echo X"$_am_arg" |
16152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16153 s//\1/
16154 q
16155 }
16156 /^X\(\/\/\)[^/].*/{
16157 s//\1/
16158 q
16159 }
16160 /^X\(\/\/\)$/{
16161 s//\1/
16162 q
16163 }
16164 /^X\(\/\).*/{
16165 s//\1/
16166 q
16167 }
16168 s/.*/./; q'`/stamp-h$_am_stamp_count
16169 ;;
16170
16171 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16172 $as_echo "$as_me: executing $ac_file commands" >&6;}
16173 ;;
16174 esac
16175
16176
16177 case $ac_file$ac_mode in
16178 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16179 # Older Autoconf quotes --file arguments for eval, but not when files
16180 # are listed without --file. Let's play safe and only enable the eval
16181 # if we detect the quoting.
16182 case $CONFIG_FILES in
16183 *\'*) eval set x "$CONFIG_FILES" ;;
16184 *) set x $CONFIG_FILES ;;
16185 esac
16186 shift
16187 for mf
16188 do
16189 # Strip MF so we end up with the name of the file.
16190 mf=`echo "$mf" | sed -e 's/:.*$//'`
16191 # Check whether this is an Automake generated Makefile or not.
16192 # We used to match only the files named 'Makefile.in', but
16193 # some people rename them; so instead we look at the file content.
16194 # Grep'ing the first line is not enough: some people post-process
16195 # each Makefile.in and add a new line on top of each file to say so.
16196 # Grep'ing the whole file is not good either: AIX grep has a line
16197 # limit of 2048, but all sed's we know have understand at least 4000.
16198 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16199 dirpart=`$as_dirname -- "$mf" ||
16200 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16201 X"$mf" : 'X\(//\)[^/]' \| \
16202 X"$mf" : 'X\(//\)$' \| \
16203 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16204 $as_echo X"$mf" |
16205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16206 s//\1/
16207 q
16208 }
16209 /^X\(\/\/\)[^/].*/{
16210 s//\1/
16211 q
16212 }
16213 /^X\(\/\/\)$/{
16214 s//\1/
16215 q
16216 }
16217 /^X\(\/\).*/{
16218 s//\1/
16219 q
16220 }
16221 s/.*/./; q'`
16222 else
16223 continue
16224 fi
16225 # Extract the definition of DEPDIR, am__include, and am__quote
16226 # from the Makefile without running 'make'.
16227 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16228 test -z "$DEPDIR" && continue
16229 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16230 test -z "am__include" && continue
16231 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16232 # Find all dependency output files, they are included files with
16233 # $(DEPDIR) in their names. We invoke sed twice because it is the
16234 # simplest approach to changing $(DEPDIR) to its actual value in the
16235 # expansion.
16236 for file in `sed -n "
16237 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16238 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16239 # Make sure the directory exists.
16240 test -f "$dirpart/$file" && continue
16241 fdir=`$as_dirname -- "$file" ||
16242 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16243 X"$file" : 'X\(//\)[^/]' \| \
16244 X"$file" : 'X\(//\)$' \| \
16245 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16246 $as_echo X"$file" |
16247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16248 s//\1/
16249 q
16250 }
16251 /^X\(\/\/\)[^/].*/{
16252 s//\1/
16253 q
16254 }
16255 /^X\(\/\/\)$/{
16256 s//\1/
16257 q
16258 }
16259 /^X\(\/\).*/{
16260 s//\1/
16261 q
16262 }
16263 s/.*/./; q'`
16264 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16265 # echo "creating $dirpart/$file"
16266 echo '# dummy' > "$dirpart/$file"
16267 done
16268 done
16269 }
16270 ;;
16271 "libtool":C)
16272
16273 # See if we are running on zsh, and set the options which allow our
16274 # commands through without removal of \ escapes.
16275 if test -n "${ZSH_VERSION+set}" ; then
16276 setopt NO_GLOB_SUBST
16277 fi
16278
16279 cfgfile="${ofile}T"
16280 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16281 $RM "$cfgfile"
16282
16283 cat <<_LT_EOF >> "$cfgfile"
16284 #! $SHELL
16285
16286 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16287 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16288 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16289 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16290 #
16291 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16292 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16293 # Foundation, Inc.
16294 # Written by Gordon Matzigkeit, 1996
16295 #
16296 # This file is part of GNU Libtool.
16297 #
16298 # GNU Libtool is free software; you can redistribute it and/or
16299 # modify it under the terms of the GNU General Public License as
16300 # published by the Free Software Foundation; either version 2 of
16301 # the License, or (at your option) any later version.
16302 #
16303 # As a special exception to the GNU General Public License,
16304 # if you distribute this file as part of a program or library that
16305 # is built using GNU Libtool, you may include this file under the
16306 # same distribution terms that you use for the rest of that program.
16307 #
16308 # GNU Libtool is distributed in the hope that it will be useful,
16309 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16310 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16311 # GNU General Public License for more details.
16312 #
16313 # You should have received a copy of the GNU General Public License
16314 # along with GNU Libtool; see the file COPYING. If not, a copy
16315 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16316 # obtained by writing to the Free Software Foundation, Inc.,
16317 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16318
16319
16320 # The names of the tagged configurations supported by this script.
16321 available_tags=""
16322
16323 # ### BEGIN LIBTOOL CONFIG
16324
16325 # Which release of libtool.m4 was used?
16326 macro_version=$macro_version
16327 macro_revision=$macro_revision
16328
16329 # Whether or not to build static libraries.
16330 build_old_libs=$enable_static
16331
16332 # What type of objects to build.
16333 pic_mode=$pic_mode
16334
16335 # Whether or not to build shared libraries.
16336 build_libtool_libs=$enable_shared
16337
16338 # Whether or not to optimize for fast installation.
16339 fast_install=$enable_fast_install
16340
16341 # Shell to use when invoking shell scripts.
16342 SHELL=$lt_SHELL
16343
16344 # An echo program that protects backslashes.
16345 ECHO=$lt_ECHO
16346
16347 # The PATH separator for the build system.
16348 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16349
16350 # The host system.
16351 host_alias=$host_alias
16352 host=$host
16353 host_os=$host_os
16354
16355 # The build system.
16356 build_alias=$build_alias
16357 build=$build
16358 build_os=$build_os
16359
16360 # A sed program that does not truncate output.
16361 SED=$lt_SED
16362
16363 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16364 Xsed="\$SED -e 1s/^X//"
16365
16366 # A grep program that handles long lines.
16367 GREP=$lt_GREP
16368
16369 # An ERE matcher.
16370 EGREP=$lt_EGREP
16371
16372 # A literal string matcher.
16373 FGREP=$lt_FGREP
16374
16375 # A BSD- or MS-compatible name lister.
16376 NM=$lt_NM
16377
16378 # Whether we need soft or hard links.
16379 LN_S=$lt_LN_S
16380
16381 # What is the maximum length of a command?
16382 max_cmd_len=$max_cmd_len
16383
16384 # Object file suffix (normally "o").
16385 objext=$ac_objext
16386
16387 # Executable file suffix (normally "").
16388 exeext=$exeext
16389
16390 # whether the shell understands "unset".
16391 lt_unset=$lt_unset
16392
16393 # turn spaces into newlines.
16394 SP2NL=$lt_lt_SP2NL
16395
16396 # turn newlines into spaces.
16397 NL2SP=$lt_lt_NL2SP
16398
16399 # convert \$build file names to \$host format.
16400 to_host_file_cmd=$lt_cv_to_host_file_cmd
16401
16402 # convert \$build files to toolchain format.
16403 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16404
16405 # An object symbol dumper.
16406 OBJDUMP=$lt_OBJDUMP
16407
16408 # Method to check whether dependent libraries are shared objects.
16409 deplibs_check_method=$lt_deplibs_check_method
16410
16411 # Command to use when deplibs_check_method = "file_magic".
16412 file_magic_cmd=$lt_file_magic_cmd
16413
16414 # How to find potential files when deplibs_check_method = "file_magic".
16415 file_magic_glob=$lt_file_magic_glob
16416
16417 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16418 want_nocaseglob=$lt_want_nocaseglob
16419
16420 # DLL creation program.
16421 DLLTOOL=$lt_DLLTOOL
16422
16423 # Command to associate shared and link libraries.
16424 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16425
16426 # The archiver.
16427 AR=$lt_AR
16428
16429 # Flags to create an archive.
16430 AR_FLAGS=$lt_AR_FLAGS
16431
16432 # How to feed a file listing to the archiver.
16433 archiver_list_spec=$lt_archiver_list_spec
16434
16435 # A symbol stripping program.
16436 STRIP=$lt_STRIP
16437
16438 # Commands used to install an old-style archive.
16439 RANLIB=$lt_RANLIB
16440 old_postinstall_cmds=$lt_old_postinstall_cmds
16441 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16442
16443 # Whether to use a lock for old archive extraction.
16444 lock_old_archive_extraction=$lock_old_archive_extraction
16445
16446 # A C compiler.
16447 LTCC=$lt_CC
16448
16449 # LTCC compiler flags.
16450 LTCFLAGS=$lt_CFLAGS
16451
16452 # Take the output of nm and produce a listing of raw symbols and C names.
16453 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16454
16455 # Transform the output of nm in a proper C declaration.
16456 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16457
16458 # Transform the output of nm in a C name address pair.
16459 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16460
16461 # Transform the output of nm in a C name address pair when lib prefix is needed.
16462 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16463
16464 # Specify filename containing input files for \$NM.
16465 nm_file_list_spec=$lt_nm_file_list_spec
16466
16467 # The root where to search for dependent libraries,and in which our libraries should be installed.
16468 lt_sysroot=$lt_sysroot
16469
16470 # The name of the directory that contains temporary libtool files.
16471 objdir=$objdir
16472
16473 # Used to examine libraries when file_magic_cmd begins with "file".
16474 MAGIC_CMD=$MAGIC_CMD
16475
16476 # Must we lock files when doing compilation?
16477 need_locks=$lt_need_locks
16478
16479 # Manifest tool.
16480 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16481
16482 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16483 DSYMUTIL=$lt_DSYMUTIL
16484
16485 # Tool to change global to local symbols on Mac OS X.
16486 NMEDIT=$lt_NMEDIT
16487
16488 # Tool to manipulate fat objects and archives on Mac OS X.
16489 LIPO=$lt_LIPO
16490
16491 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16492 OTOOL=$lt_OTOOL
16493
16494 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16495 OTOOL64=$lt_OTOOL64
16496
16497 # Old archive suffix (normally "a").
16498 libext=$libext
16499
16500 # Shared library suffix (normally ".so").
16501 shrext_cmds=$lt_shrext_cmds
16502
16503 # The commands to extract the exported symbol list from a shared archive.
16504 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16505
16506 # Variables whose values should be saved in libtool wrapper scripts and
16507 # restored at link time.
16508 variables_saved_for_relink=$lt_variables_saved_for_relink
16509
16510 # Do we need the "lib" prefix for modules?
16511 need_lib_prefix=$need_lib_prefix
16512
16513 # Do we need a version for libraries?
16514 need_version=$need_version
16515
16516 # Library versioning type.
16517 version_type=$version_type
16518
16519 # Shared library runtime path variable.
16520 runpath_var=$runpath_var
16521
16522 # Shared library path variable.
16523 shlibpath_var=$shlibpath_var
16524
16525 # Is shlibpath searched before the hard-coded library search path?
16526 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16527
16528 # Format of library name prefix.
16529 libname_spec=$lt_libname_spec
16530
16531 # List of archive names. First name is the real one, the rest are links.
16532 # The last name is the one that the linker finds with -lNAME
16533 library_names_spec=$lt_library_names_spec
16534
16535 # The coded name of the library, if different from the real name.
16536 soname_spec=$lt_soname_spec
16537
16538 # Permission mode override for installation of shared libraries.
16539 install_override_mode=$lt_install_override_mode
16540
16541 # Command to use after installation of a shared archive.
16542 postinstall_cmds=$lt_postinstall_cmds
16543
16544 # Command to use after uninstallation of a shared archive.
16545 postuninstall_cmds=$lt_postuninstall_cmds
16546
16547 # Commands used to finish a libtool library installation in a directory.
16548 finish_cmds=$lt_finish_cmds
16549
16550 # As "finish_cmds", except a single script fragment to be evaled but
16551 # not shown.
16552 finish_eval=$lt_finish_eval
16553
16554 # Whether we should hardcode library paths into libraries.
16555 hardcode_into_libs=$hardcode_into_libs
16556
16557 # Compile-time system search path for libraries.
16558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16559
16560 # Run-time system search path for libraries.
16561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16562
16563 # Whether dlopen is supported.
16564 dlopen_support=$enable_dlopen
16565
16566 # Whether dlopen of programs is supported.
16567 dlopen_self=$enable_dlopen_self
16568
16569 # Whether dlopen of statically linked programs is supported.
16570 dlopen_self_static=$enable_dlopen_self_static
16571
16572 # Commands to strip libraries.
16573 old_striplib=$lt_old_striplib
16574 striplib=$lt_striplib
16575
16576
16577 # The linker used to build libraries.
16578 LD=$lt_LD
16579
16580 # How to create reloadable object files.
16581 reload_flag=$lt_reload_flag
16582 reload_cmds=$lt_reload_cmds
16583
16584 # Commands used to build an old-style archive.
16585 old_archive_cmds=$lt_old_archive_cmds
16586
16587 # A language specific compiler.
16588 CC=$lt_compiler
16589
16590 # Is the compiler the GNU compiler?
16591 with_gcc=$GCC
16592
16593 # Compiler flag to turn off builtin functions.
16594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16595
16596 # Additional compiler flags for building library objects.
16597 pic_flag=$lt_lt_prog_compiler_pic
16598
16599 # How to pass a linker flag through the compiler.
16600 wl=$lt_lt_prog_compiler_wl
16601
16602 # Compiler flag to prevent dynamic linking.
16603 link_static_flag=$lt_lt_prog_compiler_static
16604
16605 # Does compiler simultaneously support -c and -o options?
16606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16607
16608 # Whether or not to add -lc for building shared libraries.
16609 build_libtool_need_lc=$archive_cmds_need_lc
16610
16611 # Whether or not to disallow shared libs when runtime libs are static.
16612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16613
16614 # Compiler flag to allow reflexive dlopens.
16615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16616
16617 # Compiler flag to generate shared objects directly from archives.
16618 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16619
16620 # Whether the compiler copes with passing no objects directly.
16621 compiler_needs_object=$lt_compiler_needs_object
16622
16623 # Create an old-style archive from a shared archive.
16624 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16625
16626 # Create a temporary old-style archive to link instead of a shared archive.
16627 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16628
16629 # Commands used to build a shared archive.
16630 archive_cmds=$lt_archive_cmds
16631 archive_expsym_cmds=$lt_archive_expsym_cmds
16632
16633 # Commands used to build a loadable module if different from building
16634 # a shared archive.
16635 module_cmds=$lt_module_cmds
16636 module_expsym_cmds=$lt_module_expsym_cmds
16637
16638 # Whether we are building with GNU ld or not.
16639 with_gnu_ld=$lt_with_gnu_ld
16640
16641 # Flag that allows shared libraries with undefined symbols to be built.
16642 allow_undefined_flag=$lt_allow_undefined_flag
16643
16644 # Flag that enforces no undefined symbols.
16645 no_undefined_flag=$lt_no_undefined_flag
16646
16647 # Flag to hardcode \$libdir into a binary during linking.
16648 # This must work even if \$libdir does not exist
16649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16650
16651 # Whether we need a single "-rpath" flag with a separated argument.
16652 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16653
16654 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16655 # DIR into the resulting binary.
16656 hardcode_direct=$hardcode_direct
16657
16658 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16659 # DIR into the resulting binary and the resulting library dependency is
16660 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16661 # library is relocated.
16662 hardcode_direct_absolute=$hardcode_direct_absolute
16663
16664 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16665 # into the resulting binary.
16666 hardcode_minus_L=$hardcode_minus_L
16667
16668 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16669 # into the resulting binary.
16670 hardcode_shlibpath_var=$hardcode_shlibpath_var
16671
16672 # Set to "yes" if building a shared library automatically hardcodes DIR
16673 # into the library and all subsequent libraries and executables linked
16674 # against it.
16675 hardcode_automatic=$hardcode_automatic
16676
16677 # Set to yes if linker adds runtime paths of dependent libraries
16678 # to runtime path list.
16679 inherit_rpath=$inherit_rpath
16680
16681 # Whether libtool must link a program against all its dependency libraries.
16682 link_all_deplibs=$link_all_deplibs
16683
16684 # Set to "yes" if exported symbols are required.
16685 always_export_symbols=$always_export_symbols
16686
16687 # The commands to list exported symbols.
16688 export_symbols_cmds=$lt_export_symbols_cmds
16689
16690 # Symbols that should not be listed in the preloaded symbols.
16691 exclude_expsyms=$lt_exclude_expsyms
16692
16693 # Symbols that must always be exported.
16694 include_expsyms=$lt_include_expsyms
16695
16696 # Commands necessary for linking programs (against libraries) with templates.
16697 prelink_cmds=$lt_prelink_cmds
16698
16699 # Commands necessary for finishing linking programs.
16700 postlink_cmds=$lt_postlink_cmds
16701
16702 # Specify filename containing input files.
16703 file_list_spec=$lt_file_list_spec
16704
16705 # How to hardcode a shared library path into an executable.
16706 hardcode_action=$hardcode_action
16707
16708 # ### END LIBTOOL CONFIG
16709
16710 _LT_EOF
16711
16712 case $host_os in
16713 aix3*)
16714 cat <<\_LT_EOF >> "$cfgfile"
16715 # AIX sometimes has problems with the GCC collect2 program. For some
16716 # reason, if we set the COLLECT_NAMES environment variable, the problems
16717 # vanish in a puff of smoke.
16718 if test "X${COLLECT_NAMES+set}" != Xset; then
16719 COLLECT_NAMES=
16720 export COLLECT_NAMES
16721 fi
16722 _LT_EOF
16723 ;;
16724 esac
16725
16726
16727 ltmain="$ac_aux_dir/ltmain.sh"
16728
16729
16730 # We use sed instead of cat because bash on DJGPP gets confused if
16731 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16732 # text mode, it properly converts lines to CR/LF. This bash problem
16733 # is reportedly fixed, but why not run on old versions too?
16734 sed '$q' "$ltmain" >> "$cfgfile" \
16735 || (rm -f "$cfgfile"; exit 1)
16736
16737 if test x"$xsi_shell" = xyes; then
16738 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16739 func_dirname ()\
16740 {\
16741 \ case ${1} in\
16742 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16743 \ * ) func_dirname_result="${3}" ;;\
16744 \ esac\
16745 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16746 && mv -f "$cfgfile.tmp" "$cfgfile" \
16747 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16748 test 0 -eq $? || _lt_function_replace_fail=:
16749
16750
16751 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16752 func_basename ()\
16753 {\
16754 \ func_basename_result="${1##*/}"\
16755 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16756 && mv -f "$cfgfile.tmp" "$cfgfile" \
16757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16758 test 0 -eq $? || _lt_function_replace_fail=:
16759
16760
16761 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16762 func_dirname_and_basename ()\
16763 {\
16764 \ case ${1} in\
16765 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16766 \ * ) func_dirname_result="${3}" ;;\
16767 \ esac\
16768 \ func_basename_result="${1##*/}"\
16769 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16770 && mv -f "$cfgfile.tmp" "$cfgfile" \
16771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16772 test 0 -eq $? || _lt_function_replace_fail=:
16773
16774
16775 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16776 func_stripname ()\
16777 {\
16778 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16779 \ # positional parameters, so assign one to ordinary parameter first.\
16780 \ func_stripname_result=${3}\
16781 \ func_stripname_result=${func_stripname_result#"${1}"}\
16782 \ func_stripname_result=${func_stripname_result%"${2}"}\
16783 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16784 && mv -f "$cfgfile.tmp" "$cfgfile" \
16785 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16786 test 0 -eq $? || _lt_function_replace_fail=:
16787
16788
16789 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16790 func_split_long_opt ()\
16791 {\
16792 \ func_split_long_opt_name=${1%%=*}\
16793 \ func_split_long_opt_arg=${1#*=}\
16794 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16795 && mv -f "$cfgfile.tmp" "$cfgfile" \
16796 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16797 test 0 -eq $? || _lt_function_replace_fail=:
16798
16799
16800 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16801 func_split_short_opt ()\
16802 {\
16803 \ func_split_short_opt_arg=${1#??}\
16804 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16805 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16806 && mv -f "$cfgfile.tmp" "$cfgfile" \
16807 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16808 test 0 -eq $? || _lt_function_replace_fail=:
16809
16810
16811 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16812 func_lo2o ()\
16813 {\
16814 \ case ${1} in\
16815 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16816 \ *) func_lo2o_result=${1} ;;\
16817 \ esac\
16818 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16819 && mv -f "$cfgfile.tmp" "$cfgfile" \
16820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16821 test 0 -eq $? || _lt_function_replace_fail=:
16822
16823
16824 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16825 func_xform ()\
16826 {\
16827 func_xform_result=${1%.*}.lo\
16828 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16829 && mv -f "$cfgfile.tmp" "$cfgfile" \
16830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16831 test 0 -eq $? || _lt_function_replace_fail=:
16832
16833
16834 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16835 func_arith ()\
16836 {\
16837 func_arith_result=$(( $* ))\
16838 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16839 && mv -f "$cfgfile.tmp" "$cfgfile" \
16840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16841 test 0 -eq $? || _lt_function_replace_fail=:
16842
16843
16844 sed -e '/^func_len ()$/,/^} # func_len /c\
16845 func_len ()\
16846 {\
16847 func_len_result=${#1}\
16848 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16849 && mv -f "$cfgfile.tmp" "$cfgfile" \
16850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16851 test 0 -eq $? || _lt_function_replace_fail=:
16852
16853 fi
16854
16855 if test x"$lt_shell_append" = xyes; then
16856 sed -e '/^func_append ()$/,/^} # func_append /c\
16857 func_append ()\
16858 {\
16859 eval "${1}+=\\${2}"\
16860 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16861 && mv -f "$cfgfile.tmp" "$cfgfile" \
16862 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16863 test 0 -eq $? || _lt_function_replace_fail=:
16864
16865
16866 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16867 func_append_quoted ()\
16868 {\
16869 \ func_quote_for_eval "${2}"\
16870 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16871 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16872 && mv -f "$cfgfile.tmp" "$cfgfile" \
16873 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16874 test 0 -eq $? || _lt_function_replace_fail=:
16875
16876
16877 # Save a `func_append' function call where possible by direct use of '+='
16878 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16879 && mv -f "$cfgfile.tmp" "$cfgfile" \
16880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16881 test 0 -eq $? || _lt_function_replace_fail=:
16882 else
16883 # Save a `func_append' function call even when '+=' is not available
16884 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16885 && mv -f "$cfgfile.tmp" "$cfgfile" \
16886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16887 test 0 -eq $? || _lt_function_replace_fail=:
16888 fi
16889
16890 if test x"$_lt_function_replace_fail" = x":"; then
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16892 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16893 fi
16894
16895
16896 mv -f "$cfgfile" "$ofile" ||
16897 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16898 chmod +x "$ofile"
16899
16900 ;;
16901
16902 esac
16903 done # for ac_tag
16904
16905
16906 as_fn_exit 0
16907 _ACEOF
16908 ac_clean_files=$ac_clean_files_save
16909
16910 test $ac_write_fail = 0 ||
16911 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16912
16913
16914 # configure is writing to config.log, and then calls config.status.
16915 # config.status does its own redirection, appending to config.log.
16916 # Unfortunately, on DOS this fails, as config.log is still kept open
16917 # by configure, so config.status won't be able to write to it; its
16918 # output is simply discarded. So we exec the FD to /dev/null,
16919 # effectively closing config.log, so it can be properly (re)opened and
16920 # appended to by config.status. When coming back to configure, we
16921 # need to make the FD available again.
16922 if test "$no_create" != yes; then
16923 ac_cs_success=:
16924 ac_config_status_args=
16925 test "$silent" = yes &&
16926 ac_config_status_args="$ac_config_status_args --quiet"
16927 exec 5>/dev/null
16928 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16929 exec 5>>config.log
16930 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16931 # would make configure fail if this is the last instruction.
16932 $ac_cs_success || as_fn_exit 1
16933 fi
16934 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16936 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16937 fi
16938
16939