configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for file 5.19.
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.19'
594 PACKAGE_STRING='file 5.19'
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 HAVE_VISIBILITY
642 CFLAG_VISIBILITY
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 MANIFEST_TOOL
649 RANLIB
650 ac_ct_AR
651 AR
652 DLLTOOL
653 OBJDUMP
654 NM
655 ac_ct_DUMPBIN
656 DUMPBIN
657 LD
658 FGREP
659 SED
660 LIBTOOL
661 LN_S
662 EGREP
663 GREP
664 CPP
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 am__nodep
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 WARNINGS
683 FSECT5_FALSE
684 FSECT5_TRUE
685 fsect
686 pkgdatadir
687 MINGW_FALSE
688 MINGW_TRUE
689 MINGW
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 AWK
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files=''
764 ac_user_opts='
765 enable_option_checking
766 enable_silent_rules
767 enable_elf
768 enable_elf_core
769 enable_fsect_man5
770 enable_dependency_tracking
771 enable_static
772 with_pic
773 enable_shared
774 enable_fast_install
775 with_gnu_ld
776 with_sysroot
777 enable_libtool_lock
778 enable_largefile
779 enable_warnings
780 '
781 ac_precious_vars='build_alias
782 host_alias
783 target_alias
784 CC
785 CFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 CPP'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 ;;
1196
1197 esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1203 fi
1204
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211 fi
1212
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218 do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295 else
1296 ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures file 5.19 to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/file]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1384
1385 cat <<\_ACEOF
1386
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of file 5.19:";;
1401 esac
1402 cat <<\_ACEOF
1403
1404 Optional Features:
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-silent-rules less verbose build output (undo: "make V=1")
1409 --disable-silent-rules verbose build output (undo: "make V=0")
1410 --disable-elf disable builtin ELF support
1411 --disable-elf-core disable ELF core file support
1412 --enable-fsect-man5 enable file formats in man section 5
1413 --enable-dependency-tracking
1414 do not reject slow dependency extractors
1415 --disable-dependency-tracking
1416 speeds up one-time build
1417 --enable-static[=PKGS] build static libraries [default=no]
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-fast-install[=PKGS]
1420 optimize for fast installation [default=yes]
1421 --disable-libtool-lock avoid locking (might break parallel builds)
1422 --disable-largefile omit support for large files
1423 --disable-warnings disable compiler warnings
1424
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1429 both]
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 --with-sysroot=DIR Search for dependent libraries within DIR
1432 (or the compiler's sysroot if not specified).
1433
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CPP C preprocessor
1443
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1446
1447 Report bugs to <christos (at] astron.com>.
1448 _ACEOF
1449 ac_status=$?
1450 fi
1451
1452 if test "$ac_init_help" = "recursive"; then
1453 # If there are subdirs, report their specific --help.
1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455 test -d "$ac_dir" ||
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457 continue
1458 ac_builddir=.
1459
1460 case "$ac_dir" in
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *)
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 esac ;;
1470 esac
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1475
1476 case $srcdir in
1477 .) # We are building in place.
1478 ac_srcdir=.
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
1482 ac_srcdir=$srcdir$ac_dir_suffix;
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1485 *) # Relative name.
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 esac
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure" --help=recursive
1500 else
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 fi || ac_status=$?
1503 cd "$ac_pwd" || { ac_status=$?; break; }
1504 done
1505 fi
1506
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1509 cat <<\_ACEOF
1510 file configure 5.19
1511 generated by GNU Autoconf 2.69
1512
1513 Copyright (C) 2012 Free Software Foundation, Inc.
1514 This configure script is free software; the Free Software Foundation
1515 gives unlimited permission to copy, distribute and modify it.
1516 _ACEOF
1517 exit
1518 fi
1519
1520 ## ------------------------ ##
1521 ## Autoconf initialization. ##
1522 ## ------------------------ ##
1523
1524 # ac_fn_c_try_compile LINENO
1525 # --------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_compile ()
1528 {
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1532 case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1544 fi
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1550 ac_retval=0
1551 else
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=1
1556 fi
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1559
1560 } # ac_fn_c_try_compile
1561
1562 # ac_fn_c_try_cpp LINENO
1563 # ----------------------
1564 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_cpp ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 if { { ac_try="$ac_cpp conftest.$ac_ext"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } > conftest.i && {
1584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 }; then :
1587 ac_retval=0
1588 else
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1591
1592 ac_retval=1
1593 fi
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1596
1597 } # ac_fn_c_try_cpp
1598
1599 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1600 # -------------------------------------------------------
1601 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1602 # the include files in INCLUDES and setting the cache variable VAR
1603 # accordingly.
1604 ac_fn_c_check_header_mongrel ()
1605 {
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 if eval \${$3+:} false; then :
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609 $as_echo_n "checking for $2... " >&6; }
1610 if eval \${$3+:} false; then :
1611 $as_echo_n "(cached) " >&6
1612 fi
1613 eval ac_res=\$$3
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1615 $as_echo "$ac_res" >&6; }
1616 else
1617 # Is the header compilable?
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1619 $as_echo_n "checking $2 usability... " >&6; }
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h. */
1622 $4
1623 #include <$2>
1624 _ACEOF
1625 if ac_fn_c_try_compile "$LINENO"; then :
1626 ac_header_compiler=yes
1627 else
1628 ac_header_compiler=no
1629 fi
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1632 $as_echo "$ac_header_compiler" >&6; }
1633
1634 # Is the header present?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1636 $as_echo_n "checking $2 presence... " >&6; }
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1639 #include <$2>
1640 _ACEOF
1641 if ac_fn_c_try_cpp "$LINENO"; then :
1642 ac_header_preproc=yes
1643 else
1644 ac_header_preproc=no
1645 fi
1646 rm -f conftest.err conftest.i conftest.$ac_ext
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1648 $as_echo "$ac_header_preproc" >&6; }
1649
1650 # So? What about this header?
1651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1652 yes:no: )
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1654 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1656 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1657 ;;
1658 no:yes:* )
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1660 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1662 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1664 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1666 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1668 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669 ( $as_echo "## ---------------------------------- ##
1670 ## Report this to christos (at] astron.com ##
1671 ## ---------------------------------- ##"
1672 ) | sed "s/^/$as_me: WARNING: /" >&2
1673 ;;
1674 esac
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \${$3+:} false; then :
1678 $as_echo_n "(cached) " >&6
1679 else
1680 eval "$3=\$ac_header_compiler"
1681 fi
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 fi
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
1688 } # ac_fn_c_check_header_mongrel
1689
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1694 ac_fn_c_try_run ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708 { { case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_try") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: program exited with status $ac_status" >&5
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=$ac_status
1725 fi
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_run
1731
1732 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists and can be compiled using the include files in
1735 # INCLUDES, setting the cache variable VAR accordingly.
1736 ac_fn_c_check_header_compile ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 $4
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"; then :
1750 eval "$3=yes"
1751 else
1752 eval "$3=no"
1753 fi
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 fi
1756 eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
1761 } # ac_fn_c_check_header_compile
1762
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_link ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 test -x conftest$ac_exeext
1791 }; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798 fi
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_link
1808
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1819 else
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1824 #define $2 innocuous_$2
1825
1826 /* System header to define __stub macros and hopefully few prototypes,
1827 which can conflict with char $2 (); below.
1828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829 <limits.h> exists even on freestanding compilers. */
1830
1831 #ifdef __STDC__
1832 # include <limits.h>
1833 #else
1834 # include <assert.h>
1835 #endif
1836
1837 #undef $2
1838
1839 /* Override any GCC internal prototype to avoid an error.
1840 Use char because int might match the return type of a GCC
1841 builtin and then its argument prototype would still apply. */
1842 #ifdef __cplusplus
1843 extern "C"
1844 #endif
1845 char $2 ();
1846 /* The GNU C library defines this for functions which it implements
1847 to always fail with ENOSYS. Some functions are actually named
1848 something starting with __ and the normal name is an alias. */
1849 #if defined __stub_$2 || defined __stub___$2
1850 choke me
1851 #endif
1852
1853 int
1854 main ()
1855 {
1856 return $2 ();
1857 ;
1858 return 0;
1859 }
1860 _ACEOF
1861 if ac_fn_c_try_link "$LINENO"; then :
1862 eval "$3=yes"
1863 else
1864 eval "$3=no"
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext \
1867 conftest$ac_exeext conftest.$ac_ext
1868 fi
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_func
1875
1876 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1877 # -------------------------------------------
1878 # Tests whether TYPE exists after having included INCLUDES, setting cache
1879 # variable VAR accordingly.
1880 ac_fn_c_check_type ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1887 else
1888 eval "$3=no"
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 $4
1892 int
1893 main ()
1894 {
1895 if (sizeof ($2))
1896 return 0;
1897 ;
1898 return 0;
1899 }
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $4
1905 int
1906 main ()
1907 {
1908 if (sizeof (($2)))
1909 return 0;
1910 ;
1911 return 0;
1912 }
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915
1916 else
1917 eval "$3=yes"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_type
1929
1930 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1931 # ----------------------------------------------------
1932 # Tries to find if the field MEMBER exists in type AGGR, after including
1933 # INCLUDES, setting cache variable VAR accordingly.
1934 ac_fn_c_check_member ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1938 $as_echo_n "checking for $2.$3... " >&6; }
1939 if eval \${$4+:} false; then :
1940 $as_echo_n "(cached) " >&6
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 $5
1945 int
1946 main ()
1947 {
1948 static $2 ac_aggr;
1949 if (ac_aggr.$3)
1950 return 0;
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 eval "$4=yes"
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $5
1961 int
1962 main ()
1963 {
1964 static $2 ac_aggr;
1965 if (sizeof ac_aggr.$3)
1966 return 0;
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$4=yes"
1973 else
1974 eval "$4=no"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 eval ac_res=\$$4
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985 } # ac_fn_c_check_member
1986
1987 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1988 # ---------------------------------------------
1989 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1990 # accordingly.
1991 ac_fn_c_check_decl ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 as_decl_name=`echo $2|sed 's/ *(.*//'`
1995 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1997 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $4
2004 int
2005 main ()
2006 {
2007 #ifndef $as_decl_name
2008 #ifdef __cplusplus
2009 (void) $as_decl_use;
2010 #else
2011 (void) $as_decl_name;
2012 #endif
2013 #endif
2014
2015 ;
2016 return 0;
2017 }
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 eval "$3=yes"
2021 else
2022 eval "$3=no"
2023 fi
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 fi
2026 eval ac_res=\$$3
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030
2031 } # ac_fn_c_check_decl
2032
2033 # ac_fn_c_find_uintX_t LINENO BITS VAR
2034 # ------------------------------------
2035 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2036 # accordingly.
2037 ac_fn_c_find_uintX_t ()
2038 {
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2041 $as_echo_n "checking for uint$2_t... " >&6; }
2042 if eval \${$3+:} false; then :
2043 $as_echo_n "(cached) " >&6
2044 else
2045 eval "$3=no"
2046 # Order is important - never check a type that is potentially smaller
2047 # than half of the expected target width.
2048 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2049 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 $ac_includes_default
2053 int
2054 main ()
2055 {
2056 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2057 test_array [0] = 0;
2058 return test_array [0];
2059
2060 ;
2061 return 0;
2062 }
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065 case $ac_type in #(
2066 uint$2_t) :
2067 eval "$3=yes" ;; #(
2068 *) :
2069 eval "$3=\$ac_type" ;;
2070 esac
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 if eval test \"x\$"$3"\" = x"no"; then :
2074
2075 else
2076 break
2077 fi
2078 done
2079 fi
2080 eval ac_res=\$$3
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084
2085 } # ac_fn_c_find_uintX_t
2086
2087 # ac_fn_c_find_intX_t LINENO BITS VAR
2088 # -----------------------------------
2089 # Finds a signed integer type with width BITS, setting cache variable VAR
2090 # accordingly.
2091 ac_fn_c_find_intX_t ()
2092 {
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2095 $as_echo_n "checking for int$2_t... " >&6; }
2096 if eval \${$3+:} false; then :
2097 $as_echo_n "(cached) " >&6
2098 else
2099 eval "$3=no"
2100 # Order is important - never check a type that is potentially smaller
2101 # than half of the expected target width.
2102 for ac_type in int$2_t 'int' 'long int' \
2103 'long long int' 'short int' 'signed char'; do
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2106 $ac_includes_default
2107 enum { N = $2 / 2 - 1 };
2108 int
2109 main ()
2110 {
2111 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2112 test_array [0] = 0;
2113 return test_array [0];
2114
2115 ;
2116 return 0;
2117 }
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 $ac_includes_default
2123 enum { N = $2 / 2 - 1 };
2124 int
2125 main ()
2126 {
2127 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2128 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2129 test_array [0] = 0;
2130 return test_array [0];
2131
2132 ;
2133 return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137
2138 else
2139 case $ac_type in #(
2140 int$2_t) :
2141 eval "$3=yes" ;; #(
2142 *) :
2143 eval "$3=\$ac_type" ;;
2144 esac
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 if eval test \"x\$"$3"\" = x"no"; then :
2150
2151 else
2152 break
2153 fi
2154 done
2155 fi
2156 eval ac_res=\$$3
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160
2161 } # ac_fn_c_find_intX_t
2162 cat >config.log <<_ACEOF
2163 This file contains any messages produced by compilers while
2164 running configure, to aid debugging if configure makes a mistake.
2165
2166 It was created by file $as_me 5.19, which was
2167 generated by GNU Autoconf 2.69. Invocation command line was
2168
2169 $ $0 $@
2170
2171 _ACEOF
2172 exec 5>>config.log
2173 {
2174 cat <<_ASUNAME
2175 ## --------- ##
2176 ## Platform. ##
2177 ## --------- ##
2178
2179 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2180 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2181 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2182 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2183 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2184
2185 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2186 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2187
2188 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2189 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2190 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2191 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2192 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2193 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2194 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2195
2196 _ASUNAME
2197
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2200 do
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 $as_echo "PATH: $as_dir"
2204 done
2205 IFS=$as_save_IFS
2206
2207 } >&5
2208
2209 cat >&5 <<_ACEOF
2210
2211
2212 ## ----------- ##
2213 ## Core tests. ##
2214 ## ----------- ##
2215
2216 _ACEOF
2217
2218
2219 # Keep a trace of the command line.
2220 # Strip out --no-create and --no-recursion so they do not pile up.
2221 # Strip out --silent because we don't want to record it for future runs.
2222 # Also quote any args containing shell meta-characters.
2223 # Make two passes to allow for proper duplicate-argument suppression.
2224 ac_configure_args=
2225 ac_configure_args0=
2226 ac_configure_args1=
2227 ac_must_keep_next=false
2228 for ac_pass in 1 2
2229 do
2230 for ac_arg
2231 do
2232 case $ac_arg in
2233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235 | -silent | --silent | --silen | --sile | --sil)
2236 continue ;;
2237 *\'*)
2238 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239 esac
2240 case $ac_pass in
2241 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2242 2)
2243 as_fn_append ac_configure_args1 " '$ac_arg'"
2244 if test $ac_must_keep_next = true; then
2245 ac_must_keep_next=false # Got value, back to normal.
2246 else
2247 case $ac_arg in
2248 *=* | --config-cache | -C | -disable-* | --disable-* \
2249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251 | -with-* | --with-* | -without-* | --without-* | --x)
2252 case "$ac_configure_args0 " in
2253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254 esac
2255 ;;
2256 -* ) ac_must_keep_next=true ;;
2257 esac
2258 fi
2259 as_fn_append ac_configure_args " '$ac_arg'"
2260 ;;
2261 esac
2262 done
2263 done
2264 { ac_configure_args0=; unset ac_configure_args0;}
2265 { ac_configure_args1=; unset ac_configure_args1;}
2266
2267 # When interrupted or exit'd, cleanup temporary files, and complete
2268 # config.log. We remove comments because anyway the quotes in there
2269 # would cause problems or look ugly.
2270 # WARNING: Use '\'' to represent an apostrophe within the trap.
2271 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272 trap 'exit_status=$?
2273 # Save into config.log some information that might help in debugging.
2274 {
2275 echo
2276
2277 $as_echo "## ---------------- ##
2278 ## Cache variables. ##
2279 ## ---------------- ##"
2280 echo
2281 # The following way of writing the cache mishandles newlines in values,
2282 (
2283 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2284 eval ac_val=\$$ac_var
2285 case $ac_val in #(
2286 *${as_nl}*)
2287 case $ac_var in #(
2288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2290 esac
2291 case $ac_var in #(
2292 _ | IFS | as_nl) ;; #(
2293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294 *) { eval $ac_var=; unset $ac_var;} ;;
2295 esac ;;
2296 esac
2297 done
2298 (set) 2>&1 |
2299 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300 *${as_nl}ac_space=\ *)
2301 sed -n \
2302 "s/'\''/'\''\\\\'\'''\''/g;
2303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304 ;; #(
2305 *)
2306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2307 ;;
2308 esac |
2309 sort
2310 )
2311 echo
2312
2313 $as_echo "## ----------------- ##
2314 ## Output variables. ##
2315 ## ----------------- ##"
2316 echo
2317 for ac_var in $ac_subst_vars
2318 do
2319 eval ac_val=\$$ac_var
2320 case $ac_val in
2321 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 esac
2323 $as_echo "$ac_var='\''$ac_val'\''"
2324 done | sort
2325 echo
2326
2327 if test -n "$ac_subst_files"; then
2328 $as_echo "## ------------------- ##
2329 ## File substitutions. ##
2330 ## ------------------- ##"
2331 echo
2332 for ac_var in $ac_subst_files
2333 do
2334 eval ac_val=\$$ac_var
2335 case $ac_val in
2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 esac
2338 $as_echo "$ac_var='\''$ac_val'\''"
2339 done | sort
2340 echo
2341 fi
2342
2343 if test -s confdefs.h; then
2344 $as_echo "## ----------- ##
2345 ## confdefs.h. ##
2346 ## ----------- ##"
2347 echo
2348 cat confdefs.h
2349 echo
2350 fi
2351 test "$ac_signal" != 0 &&
2352 $as_echo "$as_me: caught signal $ac_signal"
2353 $as_echo "$as_me: exit $exit_status"
2354 } >&5
2355 rm -f core *.core core.conftest.* &&
2356 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2357 exit $exit_status
2358 ' 0
2359 for ac_signal in 1 2 13 15; do
2360 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2361 done
2362 ac_signal=0
2363
2364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2365 rm -f -r conftest* confdefs.h
2366
2367 $as_echo "/* confdefs.h */" > confdefs.h
2368
2369 # Predefined preprocessor variables.
2370
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_NAME "$PACKAGE_NAME"
2373 _ACEOF
2374
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2377 _ACEOF
2378
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2381 _ACEOF
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_STRING "$PACKAGE_STRING"
2385 _ACEOF
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_URL "$PACKAGE_URL"
2393 _ACEOF
2394
2395
2396 # Let the site file select an alternate cache file if it wants to.
2397 # Prefer an explicitly selected file to automatically selected ones.
2398 ac_site_file1=NONE
2399 ac_site_file2=NONE
2400 if test -n "$CONFIG_SITE"; then
2401 # We do not want a PATH search for config.site.
2402 case $CONFIG_SITE in #((
2403 -*) ac_site_file1=./$CONFIG_SITE;;
2404 */*) ac_site_file1=$CONFIG_SITE;;
2405 *) ac_site_file1=./$CONFIG_SITE;;
2406 esac
2407 elif test "x$prefix" != xNONE; then
2408 ac_site_file1=$prefix/share/config.site
2409 ac_site_file2=$prefix/etc/config.site
2410 else
2411 ac_site_file1=$ac_default_prefix/share/config.site
2412 ac_site_file2=$ac_default_prefix/etc/config.site
2413 fi
2414 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2415 do
2416 test "x$ac_site_file" = xNONE && continue
2417 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420 sed 's/^/| /' "$ac_site_file" >&5
2421 . "$ac_site_file" \
2422 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 as_fn_error $? "failed to load site script $ac_site_file
2425 See \`config.log' for more details" "$LINENO" 5; }
2426 fi
2427 done
2428
2429 if test -r "$cache_file"; then
2430 # Some versions of bash will fail to source /dev/null (special files
2431 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2432 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434 $as_echo "$as_me: loading cache $cache_file" >&6;}
2435 case $cache_file in
2436 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2437 *) . "./$cache_file";;
2438 esac
2439 fi
2440 else
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2442 $as_echo "$as_me: creating cache $cache_file" >&6;}
2443 >$cache_file
2444 fi
2445
2446 as_fn_append ac_header_list " stdlib.h"
2447 as_fn_append ac_header_list " unistd.h"
2448 as_fn_append ac_header_list " sys/param.h"
2449 # Check that the precious variables saved in the cache have kept the same
2450 # value.
2451 ac_cache_corrupted=false
2452 for ac_var in $ac_precious_vars; do
2453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2454 eval ac_new_set=\$ac_env_${ac_var}_set
2455 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2456 eval ac_new_val=\$ac_env_${ac_var}_value
2457 case $ac_old_set,$ac_new_set in
2458 set,)
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2460 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2461 ac_cache_corrupted=: ;;
2462 ,set)
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2464 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2465 ac_cache_corrupted=: ;;
2466 ,);;
2467 *)
2468 if test "x$ac_old_val" != "x$ac_new_val"; then
2469 # differences in whitespace do not lead to failure.
2470 ac_old_val_w=`echo x $ac_old_val`
2471 ac_new_val_w=`echo x $ac_new_val`
2472 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2474 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2475 ac_cache_corrupted=:
2476 else
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2478 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2479 eval $ac_var=\$ac_old_val
2480 fi
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2482 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2484 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2485 fi;;
2486 esac
2487 # Pass precious variables to config.status.
2488 if test "$ac_new_set" = set; then
2489 case $ac_new_val in
2490 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2491 *) ac_arg=$ac_var=$ac_new_val ;;
2492 esac
2493 case " $ac_configure_args " in
2494 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2495 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2496 esac
2497 fi
2498 done
2499 if $ac_cache_corrupted; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2503 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2504 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2505 fi
2506 ## -------------------- ##
2507 ## Main body of script. ##
2508 ## -------------------- ##
2509
2510 ac_ext=c
2511 ac_cpp='$CPP $CPPFLAGS'
2512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515
2516
2517 am__api_version='1.14'
2518
2519 ac_aux_dir=
2520 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2521 if test -f "$ac_dir/install-sh"; then
2522 ac_aux_dir=$ac_dir
2523 ac_install_sh="$ac_aux_dir/install-sh -c"
2524 break
2525 elif test -f "$ac_dir/install.sh"; then
2526 ac_aux_dir=$ac_dir
2527 ac_install_sh="$ac_aux_dir/install.sh -c"
2528 break
2529 elif test -f "$ac_dir/shtool"; then
2530 ac_aux_dir=$ac_dir
2531 ac_install_sh="$ac_aux_dir/shtool install -c"
2532 break
2533 fi
2534 done
2535 if test -z "$ac_aux_dir"; then
2536 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2537 fi
2538
2539 # These three variables are undocumented and unsupported,
2540 # and are intended to be withdrawn in a future Autoconf release.
2541 # They can cause serious problems if a builder's source tree is in a directory
2542 # whose full name contains unusual characters.
2543 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2544 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2545 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2546
2547
2548 # Find a good install program. We prefer a C program (faster),
2549 # so one script is as good as another. But avoid the broken or
2550 # incompatible versions:
2551 # SysV /etc/install, /usr/sbin/install
2552 # SunOS /usr/etc/install
2553 # IRIX /sbin/install
2554 # AIX /bin/install
2555 # AmigaOS /C/install, which installs bootblocks on floppy discs
2556 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2557 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2558 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2559 # OS/2's system install, which has a completely different semantic
2560 # ./install, which can be erroneously created by make from ./install.sh.
2561 # Reject install programs that cannot install multiple files.
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2563 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2564 if test -z "$INSTALL"; then
2565 if ${ac_cv_path_install+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 # Account for people who put trailing slashes in PATH elements.
2574 case $as_dir/ in #((
2575 ./ | .// | /[cC]/* | \
2576 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2577 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2578 /usr/ucb/* ) ;;
2579 *)
2580 # OSF1 and SCO ODT 3.0 have their own names for install.
2581 # Don't use installbsd from OSF since it installs stuff as root
2582 # by default.
2583 for ac_prog in ginstall scoinst install; do
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2586 if test $ac_prog = install &&
2587 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2588 # AIX install. It has an incompatible calling convention.
2589 :
2590 elif test $ac_prog = install &&
2591 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2592 # program-specific install script used by HP pwplus--don't use.
2593 :
2594 else
2595 rm -rf conftest.one conftest.two conftest.dir
2596 echo one > conftest.one
2597 echo two > conftest.two
2598 mkdir conftest.dir
2599 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2600 test -s conftest.one && test -s conftest.two &&
2601 test -s conftest.dir/conftest.one &&
2602 test -s conftest.dir/conftest.two
2603 then
2604 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2605 break 3
2606 fi
2607 fi
2608 fi
2609 done
2610 done
2611 ;;
2612 esac
2613
2614 done
2615 IFS=$as_save_IFS
2616
2617 rm -rf conftest.one conftest.two conftest.dir
2618
2619 fi
2620 if test "${ac_cv_path_install+set}" = set; then
2621 INSTALL=$ac_cv_path_install
2622 else
2623 # As a last resort, use the slow shell script. Don't cache a
2624 # value for INSTALL within a source directory, because that will
2625 # break other packages using the cache if that directory is
2626 # removed, or if the value is a relative name.
2627 INSTALL=$ac_install_sh
2628 fi
2629 fi
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2631 $as_echo "$INSTALL" >&6; }
2632
2633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2634 # It thinks the first close brace ends the variable substitution.
2635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2636
2637 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2638
2639 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2640
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2642 $as_echo_n "checking whether build environment is sane... " >&6; }
2643 # Reject unsafe characters in $srcdir or the absolute working directory
2644 # name. Accept space and tab only in the latter.
2645 am_lf='
2646 '
2647 case `pwd` in
2648 *[\\\"\#\$\&\'\`$am_lf]*)
2649 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2650 esac
2651 case $srcdir in
2652 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2653 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2654 esac
2655
2656 # Do 'set' in a subshell so we don't clobber the current shell's
2657 # arguments. Must try -L first in case configure is actually a
2658 # symlink; some systems play weird games with the mod time of symlinks
2659 # (eg FreeBSD returns the mod time of the symlink's containing
2660 # directory).
2661 if (
2662 am_has_slept=no
2663 for am_try in 1 2; do
2664 echo "timestamp, slept: $am_has_slept" > conftest.file
2665 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2666 if test "$*" = "X"; then
2667 # -L didn't work.
2668 set X `ls -t "$srcdir/configure" conftest.file`
2669 fi
2670 if test "$*" != "X $srcdir/configure conftest.file" \
2671 && test "$*" != "X conftest.file $srcdir/configure"; then
2672
2673 # If neither matched, then we have a broken ls. This can happen
2674 # if, for instance, CONFIG_SHELL is bash and it inherits a
2675 # broken ls alias from the environment. This has actually
2676 # happened. Such a system could not be considered "sane".
2677 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2678 alias in your environment" "$LINENO" 5
2679 fi
2680 if test "$2" = conftest.file || test $am_try -eq 2; then
2681 break
2682 fi
2683 # Just in case.
2684 sleep 1
2685 am_has_slept=yes
2686 done
2687 test "$2" = conftest.file
2688 )
2689 then
2690 # Ok.
2691 :
2692 else
2693 as_fn_error $? "newly created file is older than distributed files!
2694 Check your system clock" "$LINENO" 5
2695 fi
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2697 $as_echo "yes" >&6; }
2698 # If we didn't sleep, we still need to ensure time stamps of config.status and
2699 # generated files are strictly newer.
2700 am_sleep_pid=
2701 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2702 ( sleep 1 ) &
2703 am_sleep_pid=$!
2704 fi
2705
2706 rm -f conftest.file
2707
2708 test "$program_prefix" != NONE &&
2709 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2710 # Use a double $ so make ignores it.
2711 test "$program_suffix" != NONE &&
2712 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2713 # Double any \ or $.
2714 # By default was `s,x,x', remove it if useless.
2715 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2716 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2717
2718 # expand $ac_aux_dir to an absolute path
2719 am_aux_dir=`cd $ac_aux_dir && pwd`
2720
2721 if test x"${MISSING+set}" != xset; then
2722 case $am_aux_dir in
2723 *\ * | *\ *)
2724 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2725 *)
2726 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2727 esac
2728 fi
2729 # Use eval to expand $SHELL
2730 if eval "$MISSING --is-lightweight"; then
2731 am_missing_run="$MISSING "
2732 else
2733 am_missing_run=
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2735 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2736 fi
2737
2738 if test x"${install_sh}" != xset; then
2739 case $am_aux_dir in
2740 *\ * | *\ *)
2741 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2742 *)
2743 install_sh="\${SHELL} $am_aux_dir/install-sh"
2744 esac
2745 fi
2746
2747 # Installed binaries are usually stripped using 'strip' when the user
2748 # run "make install-strip". However 'strip' might not be the right
2749 # tool to use in cross-compilation environments, therefore Automake
2750 # will honor the 'STRIP' environment variable to overrule this program.
2751 if test "$cross_compiling" != no; then
2752 if test -n "$ac_tool_prefix"; then
2753 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2754 set dummy ${ac_tool_prefix}strip; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if ${ac_cv_prog_STRIP+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 if test -n "$STRIP"; then
2761 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774 done
2775 done
2776 IFS=$as_save_IFS
2777
2778 fi
2779 fi
2780 STRIP=$ac_cv_prog_STRIP
2781 if test -n "$STRIP"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2783 $as_echo "$STRIP" >&6; }
2784 else
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2787 fi
2788
2789
2790 fi
2791 if test -z "$ac_cv_prog_STRIP"; then
2792 ac_ct_STRIP=$STRIP
2793 # Extract the first word of "strip", so it can be a program name with args.
2794 set dummy strip; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2798 $as_echo_n "(cached) " >&6
2799 else
2800 if test -n "$ac_ct_STRIP"; then
2801 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_ac_ct_STRIP="strip"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814 done
2815 done
2816 IFS=$as_save_IFS
2817
2818 fi
2819 fi
2820 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2821 if test -n "$ac_ct_STRIP"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2823 $as_echo "$ac_ct_STRIP" >&6; }
2824 else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 fi
2828
2829 if test "x$ac_ct_STRIP" = x; then
2830 STRIP=":"
2831 else
2832 case $cross_compiling:$ac_tool_warned in
2833 yes:)
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2836 ac_tool_warned=yes ;;
2837 esac
2838 STRIP=$ac_ct_STRIP
2839 fi
2840 else
2841 STRIP="$ac_cv_prog_STRIP"
2842 fi
2843
2844 fi
2845 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2846
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2848 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2849 if test -z "$MKDIR_P"; then
2850 if ${ac_cv_path_mkdir+:} false; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2855 do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_prog in mkdir gmkdir; do
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2861 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2862 'mkdir (GNU coreutils) '* | \
2863 'mkdir (coreutils) '* | \
2864 'mkdir (fileutils) '4.1*)
2865 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2866 break 3;;
2867 esac
2868 done
2869 done
2870 done
2871 IFS=$as_save_IFS
2872
2873 fi
2874
2875 test -d ./--version && rmdir ./--version
2876 if test "${ac_cv_path_mkdir+set}" = set; then
2877 MKDIR_P="$ac_cv_path_mkdir -p"
2878 else
2879 # As a last resort, use the slow shell script. Don't cache a
2880 # value for MKDIR_P within a source directory, because that will
2881 # break other packages using the cache if that directory is
2882 # removed, or if the value is a relative name.
2883 MKDIR_P="$ac_install_sh -d"
2884 fi
2885 fi
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2887 $as_echo "$MKDIR_P" >&6; }
2888
2889 for ac_prog in gawk mawk nawk awk
2890 do
2891 # Extract the first word of "$ac_prog", so it can be a program name with args.
2892 set dummy $ac_prog; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_prog_AWK+:} false; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 if test -n "$AWK"; then
2899 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908 ac_cv_prog_AWK="$ac_prog"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2911 fi
2912 done
2913 done
2914 IFS=$as_save_IFS
2915
2916 fi
2917 fi
2918 AWK=$ac_cv_prog_AWK
2919 if test -n "$AWK"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2921 $as_echo "$AWK" >&6; }
2922 else
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2925 fi
2926
2927
2928 test -n "$AWK" && break
2929 done
2930
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2932 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2933 set x ${MAKE-make}
2934 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2935 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 cat >conftest.make <<\_ACEOF
2939 SHELL = /bin/sh
2940 all:
2941 @echo '@@@%%%=$(MAKE)=@@@%%%'
2942 _ACEOF
2943 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2944 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2945 *@@@%%%=?*=@@@%%%*)
2946 eval ac_cv_prog_make_${ac_make}_set=yes;;
2947 *)
2948 eval ac_cv_prog_make_${ac_make}_set=no;;
2949 esac
2950 rm -f conftest.make
2951 fi
2952 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2954 $as_echo "yes" >&6; }
2955 SET_MAKE=
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2959 SET_MAKE="MAKE=${MAKE-make}"
2960 fi
2961
2962 rm -rf .tst 2>/dev/null
2963 mkdir .tst 2>/dev/null
2964 if test -d .tst; then
2965 am__leading_dot=.
2966 else
2967 am__leading_dot=_
2968 fi
2969 rmdir .tst 2>/dev/null
2970
2971 # Check whether --enable-silent-rules was given.
2972 if test "${enable_silent_rules+set}" = set; then :
2973 enableval=$enable_silent_rules;
2974 fi
2975
2976 case $enable_silent_rules in # (((
2977 yes) AM_DEFAULT_VERBOSITY=0;;
2978 no) AM_DEFAULT_VERBOSITY=1;;
2979 *) AM_DEFAULT_VERBOSITY=1;;
2980 esac
2981 am_make=${MAKE-make}
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2983 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2984 if ${am_cv_make_support_nested_variables+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 if $as_echo 'TRUE=$(BAR$(V))
2988 BAR0=false
2989 BAR1=true
2990 V=1
2991 am__doit:
2992 @$(TRUE)
2993 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2994 am_cv_make_support_nested_variables=yes
2995 else
2996 am_cv_make_support_nested_variables=no
2997 fi
2998 fi
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3000 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3001 if test $am_cv_make_support_nested_variables = yes; then
3002 AM_V='$(V)'
3003 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3004 else
3005 AM_V=$AM_DEFAULT_VERBOSITY
3006 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3007 fi
3008 AM_BACKSLASH='\'
3009
3010 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3011 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3012 # is not polluted with repeated "-I."
3013 am__isrc=' -I$(srcdir)'
3014 # test to see if srcdir already configured
3015 if test -f $srcdir/config.status; then
3016 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3017 fi
3018 fi
3019
3020 # test whether we have cygpath
3021 if test -z "$CYGPATH_W"; then
3022 if (cygpath --version) >/dev/null 2>/dev/null; then
3023 CYGPATH_W='cygpath -w'
3024 else
3025 CYGPATH_W=echo
3026 fi
3027 fi
3028
3029
3030 # Define the identity of the package.
3031 PACKAGE='file'
3032 VERSION='5.19'
3033
3034
3035 cat >>confdefs.h <<_ACEOF
3036 #define PACKAGE "$PACKAGE"
3037 _ACEOF
3038
3039
3040 cat >>confdefs.h <<_ACEOF
3041 #define VERSION "$VERSION"
3042 _ACEOF
3043
3044 # Some tools Automake needs.
3045
3046 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3047
3048
3049 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3050
3051
3052 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3053
3054
3055 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3056
3057
3058 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3059
3060 # For better backward compatibility. To be removed once Automake 1.9.x
3061 # dies out for good. For more background, see:
3062 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3063 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3064 mkdir_p='$(MKDIR_P)'
3065
3066 # We need awk for the "check" target. The system "awk" is bad on
3067 # some platforms.
3068 # Always define AMTAR for backward compatibility. Yes, it's still used
3069 # in the wild :-( We should find a proper way to deprecate it ...
3070 AMTAR='$${TAR-tar}'
3071
3072
3073 # We'll loop over all known methods to create a tar archive until one works.
3074 _am_tools='gnutar pax cpio none'
3075
3076 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3077
3078
3079
3080
3081
3082
3083 # POSIX will say in a future version that running "rm -f" with no argument
3084 # is OK; and we want to be able to make that assumption in our Makefile
3085 # recipes. So use an aggressive probe to check that the usage we want is
3086 # actually supported "in the wild" to an acceptable degree.
3087 # See automake bug#10828.
3088 # To make any issue more visible, cause the running configure to be aborted
3089 # by default if the 'rm' program in use doesn't match our expectations; the
3090 # user can still override this though.
3091 if rm -f && rm -fr && rm -rf; then : OK; else
3092 cat >&2 <<'END'
3093 Oops!
3094
3095 Your 'rm' program seems unable to run without file operands specified
3096 on the command line, even when the '-f' option is present. This is contrary
3097 to the behaviour of most rm programs out there, and not conforming with
3098 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3099
3100 Please tell bug-automake@gnu.org about your system, including the value
3101 of your $PATH and any error possibly output before this message. This
3102 can help us improve future automake versions.
3103
3104 END
3105 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3106 echo 'Configuration will proceed anyway, since you have set the' >&2
3107 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3108 echo >&2
3109 else
3110 cat >&2 <<'END'
3111 Aborting the configuration process, to ensure you take notice of the issue.
3112
3113 You can download and install GNU coreutils to get an 'rm' implementation
3114 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3115
3116 If you want to complete the configuration process using your problematic
3117 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3118 to "yes", and re-run configure.
3119
3120 END
3121 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3122 fi
3123 fi
3124 # Check whether --enable-silent-rules was given.
3125 if test "${enable_silent_rules+set}" = set; then :
3126 enableval=$enable_silent_rules;
3127 fi
3128
3129 case $enable_silent_rules in # (((
3130 yes) AM_DEFAULT_VERBOSITY=0;;
3131 no) AM_DEFAULT_VERBOSITY=1;;
3132 *) AM_DEFAULT_VERBOSITY=0;;
3133 esac
3134 am_make=${MAKE-make}
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3136 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3137 if ${am_cv_make_support_nested_variables+:} false; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if $as_echo 'TRUE=$(BAR$(V))
3141 BAR0=false
3142 BAR1=true
3143 V=1
3144 am__doit:
3145 @$(TRUE)
3146 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3147 am_cv_make_support_nested_variables=yes
3148 else
3149 am_cv_make_support_nested_variables=no
3150 fi
3151 fi
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3153 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3154 if test $am_cv_make_support_nested_variables = yes; then
3155 AM_V='$(V)'
3156 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3157 else
3158 AM_V=$AM_DEFAULT_VERBOSITY
3159 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3160 fi
3161 AM_BACKSLASH='\'
3162
3163
3164 ac_config_headers="$ac_config_headers config.h"
3165
3166
3167
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3169 $as_echo_n "checking for builtin ELF support... " >&6; }
3170 # Check whether --enable-elf was given.
3171 if test "${enable_elf+set}" = set; then :
3172 enableval=$enable_elf; if test "${enableval}" = yes; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174 $as_echo "yes" >&6; }
3175
3176 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3177
3178 else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182 else
3183
3184 # enable by default
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3186 $as_echo "yes" >&6; }
3187
3188 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3189
3190
3191 fi
3192
3193
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3195 $as_echo_n "checking for ELF core file support... " >&6; }
3196 # Check whether --enable-elf-core was given.
3197 if test "${enable_elf_core+set}" = set; then :
3198 enableval=$enable_elf_core; if test "${enableval}" = yes; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3201
3202 $as_echo "#define ELFCORE 1" >>confdefs.h
3203
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208 else
3209
3210 # enable by default
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3212 $as_echo "yes" >&6; }
3213
3214 $as_echo "#define ELFCORE 1" >>confdefs.h
3215
3216
3217 fi
3218
3219
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3221 $as_echo_n "checking for file formats in man section 5... " >&6; }
3222 # Check whether --enable-fsect-man5 was given.
3223 if test "${enable_fsect_man5+set}" = set; then :
3224 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3227 fsect=5
3228 else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 fsect=4
3232 fi
3233 else
3234
3235 # disable by default
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 fsect=4
3239
3240 fi
3241
3242
3243 # Make sure we can run config.sub.
3244 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3245 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3246
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3248 $as_echo_n "checking build system type... " >&6; }
3249 if ${ac_cv_build+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 ac_build_alias=$build_alias
3253 test "x$ac_build_alias" = x &&
3254 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3255 test "x$ac_build_alias" = x &&
3256 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3257 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3258 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3259
3260 fi
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3262 $as_echo "$ac_cv_build" >&6; }
3263 case $ac_cv_build in
3264 *-*-*) ;;
3265 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3266 esac
3267 build=$ac_cv_build
3268 ac_save_IFS=$IFS; IFS='-'
3269 set x $ac_cv_build
3270 shift
3271 build_cpu=$1
3272 build_vendor=$2
3273 shift; shift
3274 # Remember, the first character of IFS is used to create $*,
3275 # except with old shells:
3276 build_os=$*
3277 IFS=$ac_save_IFS
3278 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3279
3280
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3282 $as_echo_n "checking host system type... " >&6; }
3283 if ${ac_cv_host+:} false; then :
3284 $as_echo_n "(cached) " >&6
3285 else
3286 if test "x$host_alias" = x; then
3287 ac_cv_host=$ac_cv_build
3288 else
3289 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3290 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3291 fi
3292
3293 fi
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3295 $as_echo "$ac_cv_host" >&6; }
3296 case $ac_cv_host in
3297 *-*-*) ;;
3298 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3299 esac
3300 host=$ac_cv_host
3301 ac_save_IFS=$IFS; IFS='-'
3302 set x $ac_cv_host
3303 shift
3304 host_cpu=$1
3305 host_vendor=$2
3306 shift; shift
3307 # Remember, the first character of IFS is used to create $*,
3308 # except with old shells:
3309 host_os=$*
3310 IFS=$ac_save_IFS
3311 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3312
3313
3314 case "$host_os" in
3315 mingw32*)
3316 MINGW=1
3317 ;;
3318 *)
3319 MINGW=0
3320 ;;
3321 esac
3322
3323 if test "$MINGW" = 1; then
3324 MINGW_TRUE=
3325 MINGW_FALSE='#'
3326 else
3327 MINGW_TRUE='#'
3328 MINGW_FALSE=
3329 fi
3330
3331
3332 pkgdatadir='$(datadir)/misc'
3333
3334
3335 if test x$fsect = x5; then
3336 FSECT5_TRUE=
3337 FSECT5_FALSE='#'
3338 else
3339 FSECT5_TRUE='#'
3340 FSECT5_FALSE=
3341 fi
3342
3343
3344
3345
3346 DEPDIR="${am__leading_dot}deps"
3347
3348 ac_config_commands="$ac_config_commands depfiles"
3349
3350
3351 am_make=${MAKE-make}
3352 cat > confinc << 'END'
3353 am__doit:
3354 @echo this is the am__doit target
3355 .PHONY: am__doit
3356 END
3357 # If we don't find an include directive, just comment out the code.
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3359 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3360 am__include="#"
3361 am__quote=
3362 _am_result=none
3363 # First try GNU make style include.
3364 echo "include confinc" > confmf
3365 # Ignore all kinds of additional output from 'make'.
3366 case `$am_make -s -f confmf 2> /dev/null` in #(
3367 *the\ am__doit\ target*)
3368 am__include=include
3369 am__quote=
3370 _am_result=GNU
3371 ;;
3372 esac
3373 # Now try BSD make style include.
3374 if test "$am__include" = "#"; then
3375 echo '.include "confinc"' > confmf
3376 case `$am_make -s -f confmf 2> /dev/null` in #(
3377 *the\ am__doit\ target*)
3378 am__include=.include
3379 am__quote="\""
3380 _am_result=BSD
3381 ;;
3382 esac
3383 fi
3384
3385
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3387 $as_echo "$_am_result" >&6; }
3388 rm -f confinc confmf
3389
3390 # Check whether --enable-dependency-tracking was given.
3391 if test "${enable_dependency_tracking+set}" = set; then :
3392 enableval=$enable_dependency_tracking;
3393 fi
3394
3395 if test "x$enable_dependency_tracking" != xno; then
3396 am_depcomp="$ac_aux_dir/depcomp"
3397 AMDEPBACKSLASH='\'
3398 am__nodep='_no'
3399 fi
3400 if test "x$enable_dependency_tracking" != xno; then
3401 AMDEP_TRUE=
3402 AMDEP_FALSE='#'
3403 else
3404 AMDEP_TRUE='#'
3405 AMDEP_FALSE=
3406 fi
3407
3408
3409 ac_ext=c
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414 if test -n "$ac_tool_prefix"; then
3415 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3416 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if ${ac_cv_prog_CC+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3427 do
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3435 fi
3436 done
3437 done
3438 IFS=$as_save_IFS
3439
3440 fi
3441 fi
3442 CC=$ac_cv_prog_CC
3443 if test -n "$CC"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445 $as_echo "$CC" >&6; }
3446 else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3449 fi
3450
3451
3452 fi
3453 if test -z "$ac_cv_prog_CC"; then
3454 ac_ct_CC=$CC
3455 # Extract the first word of "gcc", so it can be a program name with args.
3456 set dummy gcc; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 if test -n "$ac_ct_CC"; then
3463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_ac_ct_CC="gcc"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3475 fi
3476 done
3477 done
3478 IFS=$as_save_IFS
3479
3480 fi
3481 fi
3482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3483 if test -n "$ac_ct_CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3485 $as_echo "$ac_ct_CC" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3489 fi
3490
3491 if test "x$ac_ct_CC" = x; then
3492 CC=""
3493 else
3494 case $cross_compiling:$ac_tool_warned in
3495 yes:)
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3498 ac_tool_warned=yes ;;
3499 esac
3500 CC=$ac_ct_CC
3501 fi
3502 else
3503 CC="$ac_cv_prog_CC"
3504 fi
3505
3506 if test -z "$CC"; then
3507 if test -n "$ac_tool_prefix"; then
3508 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3509 set dummy ${ac_tool_prefix}cc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if ${ac_cv_prog_CC+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_prog_CC="${ac_tool_prefix}cc"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529 done
3530 done
3531 IFS=$as_save_IFS
3532
3533 fi
3534 fi
3535 CC=$ac_cv_prog_CC
3536 if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 $as_echo "$CC" >&6; }
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 fi
3543
3544
3545 fi
3546 fi
3547 if test -z "$CC"; then
3548 # Extract the first word of "cc", so it can be a program name with args.
3549 set dummy cc; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if ${ac_cv_prog_CC+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 if test -n "$CC"; then
3556 ac_cv_prog_CC="$CC" # Let the user override the test.
3557 else
3558 ac_prog_rejected=no
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3561 do
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3567 ac_prog_rejected=yes
3568 continue
3569 fi
3570 ac_cv_prog_CC="cc"
3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3573 fi
3574 done
3575 done
3576 IFS=$as_save_IFS
3577
3578 if test $ac_prog_rejected = yes; then
3579 # We found a bogon in the path, so make sure we never use it.
3580 set dummy $ac_cv_prog_CC
3581 shift
3582 if test $# != 0; then
3583 # We chose a different compiler from the bogus one.
3584 # However, it has the same basename, so the bogon will be chosen
3585 # first if we set CC to just the basename; use the full file name.
3586 shift
3587 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3588 fi
3589 fi
3590 fi
3591 fi
3592 CC=$ac_cv_prog_CC
3593 if test -n "$CC"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3595 $as_echo "$CC" >&6; }
3596 else
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3599 fi
3600
3601
3602 fi
3603 if test -z "$CC"; then
3604 if test -n "$ac_tool_prefix"; then
3605 for ac_prog in cl.exe
3606 do
3607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 $as_echo_n "checking for $ac_word... " >&6; }
3611 if ${ac_cv_prog_CC+:} false; then :
3612 $as_echo_n "(cached) " >&6
3613 else
3614 if test -n "$CC"; then
3615 ac_cv_prog_CC="$CC" # Let the user override the test.
3616 else
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3619 do
3620 IFS=$as_save_IFS
3621 test -z "$as_dir" && as_dir=.
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3626 break 2
3627 fi
3628 done
3629 done
3630 IFS=$as_save_IFS
3631
3632 fi
3633 fi
3634 CC=$ac_cv_prog_CC
3635 if test -n "$CC"; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 $as_echo "$CC" >&6; }
3638 else
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3641 fi
3642
3643
3644 test -n "$CC" && break
3645 done
3646 fi
3647 if test -z "$CC"; then
3648 ac_ct_CC=$CC
3649 for ac_prog in cl.exe
3650 do
3651 # Extract the first word of "$ac_prog", so it can be a program name with args.
3652 set dummy $ac_prog; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -n "$ac_ct_CC"; then
3659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_ac_ct_CC="$ac_prog"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
3672 done
3673 done
3674 IFS=$as_save_IFS
3675
3676 fi
3677 fi
3678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3679 if test -n "$ac_ct_CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3681 $as_echo "$ac_ct_CC" >&6; }
3682 else
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3685 fi
3686
3687
3688 test -n "$ac_ct_CC" && break
3689 done
3690
3691 if test "x$ac_ct_CC" = x; then
3692 CC=""
3693 else
3694 case $cross_compiling:$ac_tool_warned in
3695 yes:)
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3698 ac_tool_warned=yes ;;
3699 esac
3700 CC=$ac_ct_CC
3701 fi
3702 fi
3703
3704 fi
3705
3706
3707 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error $? "no acceptable C compiler found in \$PATH
3710 See \`config.log' for more details" "$LINENO" 5; }
3711
3712 # Provide some information about the compiler.
3713 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3714 set X $ac_compile
3715 ac_compiler=$2
3716 for ac_option in --version -v -V -qversion; do
3717 { { ac_try="$ac_compiler $ac_option >&5"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
3724 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3725 ac_status=$?
3726 if test -s conftest.err; then
3727 sed '10a\
3728 ... rest of stderr output deleted ...
3729 10q' conftest.err >conftest.er1
3730 cat conftest.er1 >&5
3731 fi
3732 rm -f conftest.er1 conftest.err
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }
3735 done
3736
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739
3740 int
3741 main ()
3742 {
3743
3744 ;
3745 return 0;
3746 }
3747 _ACEOF
3748 ac_clean_files_save=$ac_clean_files
3749 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3750 # Try to create an executable without -o first, disregard a.out.
3751 # It will help us diagnose broken compilers, and finding out an intuition
3752 # of exeext.
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3754 $as_echo_n "checking whether the C compiler works... " >&6; }
3755 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3756
3757 # The possible output files:
3758 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3759
3760 ac_rmfiles=
3761 for ac_file in $ac_files
3762 do
3763 case $ac_file in
3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3765 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3766 esac
3767 done
3768 rm -f $ac_rmfiles
3769
3770 if { { ac_try="$ac_link_default"
3771 case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774 esac
3775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777 (eval "$ac_link_default") 2>&5
3778 ac_status=$?
3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780 test $ac_status = 0; }; then :
3781 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3782 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3783 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3784 # so that the user can short-circuit this test for compilers unknown to
3785 # Autoconf.
3786 for ac_file in $ac_files ''
3787 do
3788 test -f "$ac_file" || continue
3789 case $ac_file in
3790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3791 ;;
3792 [ab].out )
3793 # We found the default executable, but exeext='' is most
3794 # certainly right.
3795 break;;
3796 *.* )
3797 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3798 then :; else
3799 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3800 fi
3801 # We set ac_cv_exeext here because the later test for it is not
3802 # safe: cross compilers may not add the suffix if given an `-o'
3803 # argument, so we may need to know it at that point already.
3804 # Even if this section looks crufty: it has the advantage of
3805 # actually working.
3806 break;;
3807 * )
3808 break;;
3809 esac
3810 done
3811 test "$ac_cv_exeext" = no && ac_cv_exeext=
3812
3813 else
3814 ac_file=''
3815 fi
3816 if test -z "$ac_file"; then :
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3819 $as_echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3821
3822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3824 as_fn_error 77 "C compiler cannot create executables
3825 See \`config.log' for more details" "$LINENO" 5; }
3826 else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3828 $as_echo "yes" >&6; }
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3831 $as_echo_n "checking for C compiler default output file name... " >&6; }
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3833 $as_echo "$ac_file" >&6; }
3834 ac_exeext=$ac_cv_exeext
3835
3836 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3837 ac_clean_files=$ac_clean_files_save
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3839 $as_echo_n "checking for suffix of executables... " >&6; }
3840 if { { ac_try="$ac_link"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_link") 2>&5
3848 ac_status=$?
3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }; then :
3851 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3852 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3853 # work properly (i.e., refer to `conftest.exe'), while it won't with
3854 # `rm'.
3855 for ac_file in conftest.exe conftest conftest.*; do
3856 test -f "$ac_file" || continue
3857 case $ac_file in
3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3859 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3860 break;;
3861 * ) break;;
3862 esac
3863 done
3864 else
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3868 See \`config.log' for more details" "$LINENO" 5; }
3869 fi
3870 rm -f conftest conftest$ac_cv_exeext
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3872 $as_echo "$ac_cv_exeext" >&6; }
3873
3874 rm -f conftest.$ac_ext
3875 EXEEXT=$ac_cv_exeext
3876 ac_exeext=$EXEEXT
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3879 #include <stdio.h>
3880 int
3881 main ()
3882 {
3883 FILE *f = fopen ("conftest.out", "w");
3884 return ferror (f) || fclose (f) != 0;
3885
3886 ;
3887 return 0;
3888 }
3889 _ACEOF
3890 ac_clean_files="$ac_clean_files conftest.out"
3891 # Check that the compiler produces executables we can run. If not, either
3892 # the compiler is broken, or we cross compile.
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3894 $as_echo_n "checking whether we are cross compiling... " >&6; }
3895 if test "$cross_compiling" != yes; then
3896 { { ac_try="$ac_link"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902 $as_echo "$ac_try_echo"; } >&5
3903 (eval "$ac_link") 2>&5
3904 ac_status=$?
3905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906 test $ac_status = 0; }
3907 if { ac_try='./conftest$ac_cv_exeext'
3908 { { case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 $as_echo "$ac_try_echo"; } >&5
3914 (eval "$ac_try") 2>&5
3915 ac_status=$?
3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917 test $ac_status = 0; }; }; then
3918 cross_compiling=no
3919 else
3920 if test "$cross_compiling" = maybe; then
3921 cross_compiling=yes
3922 else
3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error $? "cannot run C compiled programs.
3926 If you meant to cross compile, use \`--host'.
3927 See \`config.log' for more details" "$LINENO" 5; }
3928 fi
3929 fi
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3932 $as_echo "$cross_compiling" >&6; }
3933
3934 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3935 ac_clean_files=$ac_clean_files_save
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3937 $as_echo_n "checking for suffix of object files... " >&6; }
3938 if ${ac_cv_objext+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943
3944 int
3945 main ()
3946 {
3947
3948 ;
3949 return 0;
3950 }
3951 _ACEOF
3952 rm -f conftest.o conftest.obj
3953 if { { ac_try="$ac_compile"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_compile") 2>&5
3961 ac_status=$?
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 for ac_file in conftest.o conftest.obj conftest.*; do
3965 test -f "$ac_file" || continue;
3966 case $ac_file in
3967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3968 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3969 break;;
3970 esac
3971 done
3972 else
3973 $as_echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3975
3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error $? "cannot compute suffix of object files: cannot compile
3979 See \`config.log' for more details" "$LINENO" 5; }
3980 fi
3981 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3984 $as_echo "$ac_cv_objext" >&6; }
3985 OBJEXT=$ac_cv_objext
3986 ac_objext=$OBJEXT
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3988 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3989 if ${ac_cv_c_compiler_gnu+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994
3995 int
3996 main ()
3997 {
3998 #ifndef __GNUC__
3999 choke me
4000 #endif
4001
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007 ac_compiler_gnu=yes
4008 else
4009 ac_compiler_gnu=no
4010 fi
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4013
4014 fi
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4016 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4017 if test $ac_compiler_gnu = yes; then
4018 GCC=yes
4019 else
4020 GCC=
4021 fi
4022 ac_test_CFLAGS=${CFLAGS+set}
4023 ac_save_CFLAGS=$CFLAGS
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4025 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4026 if ${ac_cv_prog_cc_g+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 ac_save_c_werror_flag=$ac_c_werror_flag
4030 ac_c_werror_flag=yes
4031 ac_cv_prog_cc_g=no
4032 CFLAGS="-g"
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035
4036 int
4037 main ()
4038 {
4039
4040 ;
4041 return 0;
4042 }
4043 _ACEOF
4044 if ac_fn_c_try_compile "$LINENO"; then :
4045 ac_cv_prog_cc_g=yes
4046 else
4047 CFLAGS=""
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4050
4051 int
4052 main ()
4053 {
4054
4055 ;
4056 return 0;
4057 }
4058 _ACEOF
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060
4061 else
4062 ac_c_werror_flag=$ac_save_c_werror_flag
4063 CFLAGS="-g"
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066
4067 int
4068 main ()
4069 {
4070
4071 ;
4072 return 0;
4073 }
4074 _ACEOF
4075 if ac_fn_c_try_compile "$LINENO"; then :
4076 ac_cv_prog_cc_g=yes
4077 fi
4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079 fi
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 fi
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 ac_c_werror_flag=$ac_save_c_werror_flag
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4086 $as_echo "$ac_cv_prog_cc_g" >&6; }
4087 if test "$ac_test_CFLAGS" = set; then
4088 CFLAGS=$ac_save_CFLAGS
4089 elif test $ac_cv_prog_cc_g = yes; then
4090 if test "$GCC" = yes; then
4091 CFLAGS="-g -O2"
4092 else
4093 CFLAGS="-g"
4094 fi
4095 else
4096 if test "$GCC" = yes; then
4097 CFLAGS="-O2"
4098 else
4099 CFLAGS=
4100 fi
4101 fi
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4103 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4104 if ${ac_cv_prog_cc_c89+:} false; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 ac_cv_prog_cc_c89=no
4108 ac_save_CC=$CC
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4111 #include <stdarg.h>
4112 #include <stdio.h>
4113 struct stat;
4114 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4115 struct buf { int x; };
4116 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4117 static char *e (p, i)
4118 char **p;
4119 int i;
4120 {
4121 return p[i];
4122 }
4123 static char *f (char * (*g) (char **, int), char **p, ...)
4124 {
4125 char *s;
4126 va_list v;
4127 va_start (v,p);
4128 s = g (p, va_arg (v,int));
4129 va_end (v);
4130 return s;
4131 }
4132
4133 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4134 function prototypes and stuff, but not '\xHH' hex character constants.
4135 These don't provoke an error unfortunately, instead are silently treated
4136 as 'x'. The following induces an error, until -std is added to get
4137 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4138 array size at least. It's necessary to write '\x00'==0 to get something
4139 that's true only with -std. */
4140 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4141
4142 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4143 inside strings and character constants. */
4144 #define FOO(x) 'x'
4145 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4146
4147 int test (int i, double x);
4148 struct s1 {int (*f) (int a);};
4149 struct s2 {int (*f) (double a);};
4150 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4151 int argc;
4152 char **argv;
4153 int
4154 main ()
4155 {
4156 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4157 ;
4158 return 0;
4159 }
4160 _ACEOF
4161 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4162 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4163 do
4164 CC="$ac_save_CC $ac_arg"
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166 ac_cv_prog_cc_c89=$ac_arg
4167 fi
4168 rm -f core conftest.err conftest.$ac_objext
4169 test "x$ac_cv_prog_cc_c89" != "xno" && break
4170 done
4171 rm -f conftest.$ac_ext
4172 CC=$ac_save_CC
4173
4174 fi
4175 # AC_CACHE_VAL
4176 case "x$ac_cv_prog_cc_c89" in
4177 x)
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4179 $as_echo "none needed" >&6; } ;;
4180 xno)
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4182 $as_echo "unsupported" >&6; } ;;
4183 *)
4184 CC="$CC $ac_cv_prog_cc_c89"
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4186 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4187 esac
4188 if test "x$ac_cv_prog_cc_c89" != xno; then :
4189
4190 fi
4191
4192 ac_ext=c
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4204 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4205 if ${am_cv_prog_cc_c_o+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210
4211 int
4212 main ()
4213 {
4214
4215 ;
4216 return 0;
4217 }
4218 _ACEOF
4219 # Make sure it works both with $CC and with simple cc.
4220 # Following AC_PROG_CC_C_O, we do the test twice because some
4221 # compilers refuse to overwrite an existing .o file with -o,
4222 # though they will create one.
4223 am_cv_prog_cc_c_o=yes
4224 for am_i in 1 2; do
4225 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4226 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } \
4230 && test -f conftest2.$ac_objext; then
4231 : OK
4232 else
4233 am_cv_prog_cc_c_o=no
4234 break
4235 fi
4236 done
4237 rm -f core conftest*
4238 unset am_i
4239 fi
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4241 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4242 if test "$am_cv_prog_cc_c_o" != yes; then
4243 # Losing compiler, so override with the script.
4244 # FIXME: It is wrong to rewrite CC.
4245 # But if we don't then we get into trouble of one sort or another.
4246 # A longer-term fix would be to have automake use am__CC in this case,
4247 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4248 CC="$am_aux_dir/compile $CC"
4249 fi
4250 ac_ext=c
4251 ac_cpp='$CPP $CPPFLAGS'
4252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255
4256
4257 depcc="$CC" am_compiler_list=
4258
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4260 $as_echo_n "checking dependency style of $depcc... " >&6; }
4261 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4265 # We make a subdir and do the tests there. Otherwise we can end up
4266 # making bogus files that we don't know about and never remove. For
4267 # instance it was reported that on HP-UX the gcc test will end up
4268 # making a dummy file named 'D' -- because '-MD' means "put the output
4269 # in D".
4270 rm -rf conftest.dir
4271 mkdir conftest.dir
4272 # Copy depcomp to subdir because otherwise we won't find it if we're
4273 # using a relative directory.
4274 cp "$am_depcomp" conftest.dir
4275 cd conftest.dir
4276 # We will build objects and dependencies in a subdirectory because
4277 # it helps to detect inapplicable dependency modes. For instance
4278 # both Tru64's cc and ICC support -MD to output dependencies as a
4279 # side effect of compilation, but ICC will put the dependencies in
4280 # the current directory while Tru64 will put them in the object
4281 # directory.
4282 mkdir sub
4283
4284 am_cv_CC_dependencies_compiler_type=none
4285 if test "$am_compiler_list" = ""; then
4286 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4287 fi
4288 am__universal=false
4289 case " $depcc " in #(
4290 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4291 esac
4292
4293 for depmode in $am_compiler_list; do
4294 # Setup a source with many dependencies, because some compilers
4295 # like to wrap large dependency lists on column 80 (with \), and
4296 # we should not choose a depcomp mode which is confused by this.
4297 #
4298 # We need to recreate these files for each test, as the compiler may
4299 # overwrite some of them when testing with obscure command lines.
4300 # This happens at least with the AIX C compiler.
4301 : > sub/conftest.c
4302 for i in 1 2 3 4 5 6; do
4303 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4304 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4305 # Solaris 10 /bin/sh.
4306 echo '/* dummy */' > sub/conftst$i.h
4307 done
4308 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4309
4310 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4311 # mode. It turns out that the SunPro C++ compiler does not properly
4312 # handle '-M -o', and we need to detect this. Also, some Intel
4313 # versions had trouble with output in subdirs.
4314 am__obj=sub/conftest.${OBJEXT-o}
4315 am__minus_obj="-o $am__obj"
4316 case $depmode in
4317 gcc)
4318 # This depmode causes a compiler race in universal mode.
4319 test "$am__universal" = false || continue
4320 ;;
4321 nosideeffect)
4322 # After this tag, mechanisms are not by side-effect, so they'll
4323 # only be used when explicitly requested.
4324 if test "x$enable_dependency_tracking" = xyes; then
4325 continue
4326 else
4327 break
4328 fi
4329 ;;
4330 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4331 # This compiler won't grok '-c -o', but also, the minuso test has
4332 # not run yet. These depmodes are late enough in the game, and
4333 # so weak that their functioning should not be impacted.
4334 am__obj=conftest.${OBJEXT-o}
4335 am__minus_obj=
4336 ;;
4337 none) break ;;
4338 esac
4339 if depmode=$depmode \
4340 source=sub/conftest.c object=$am__obj \
4341 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4342 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4343 >/dev/null 2>conftest.err &&
4344 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4345 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4346 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4347 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4348 # icc doesn't choke on unknown options, it will just issue warnings
4349 # or remarks (even with -Werror). So we grep stderr for any message
4350 # that says an option was ignored or not supported.
4351 # When given -MP, icc 7.0 and 7.1 complain thusly:
4352 # icc: Command line warning: ignoring option '-M'; no argument required
4353 # The diagnosis changed in icc 8.0:
4354 # icc: Command line remark: option '-MP' not supported
4355 if (grep 'ignoring option' conftest.err ||
4356 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4357 am_cv_CC_dependencies_compiler_type=$depmode
4358 break
4359 fi
4360 fi
4361 done
4362
4363 cd ..
4364 rm -rf conftest.dir
4365 else
4366 am_cv_CC_dependencies_compiler_type=none
4367 fi
4368
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4371 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4372 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4373
4374 if
4375 test "x$enable_dependency_tracking" != xno \
4376 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4377 am__fastdepCC_TRUE=
4378 am__fastdepCC_FALSE='#'
4379 else
4380 am__fastdepCC_TRUE='#'
4381 am__fastdepCC_FALSE=
4382 fi
4383
4384
4385 case $ac_cv_prog_cc_stdc in #(
4386 no) :
4387 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4388 *) :
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4390 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4391 if ${ac_cv_prog_cc_c99+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 ac_cv_prog_cc_c99=no
4395 ac_save_CC=$CC
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 #include <stdarg.h>
4399 #include <stdbool.h>
4400 #include <stdlib.h>
4401 #include <wchar.h>
4402 #include <stdio.h>
4403
4404 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4405 #define debug(...) fprintf (stderr, __VA_ARGS__)
4406 #define showlist(...) puts (#__VA_ARGS__)
4407 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4408 static void
4409 test_varargs_macros (void)
4410 {
4411 int x = 1234;
4412 int y = 5678;
4413 debug ("Flag");
4414 debug ("X = %d\n", x);
4415 showlist (The first, second, and third items.);
4416 report (x>y, "x is %d but y is %d", x, y);
4417 }
4418
4419 // Check long long types.
4420 #define BIG64 18446744073709551615ull
4421 #define BIG32 4294967295ul
4422 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4423 #if !BIG_OK
4424 your preprocessor is broken;
4425 #endif
4426 #if BIG_OK
4427 #else
4428 your preprocessor is broken;
4429 #endif
4430 static long long int bignum = -9223372036854775807LL;
4431 static unsigned long long int ubignum = BIG64;
4432
4433 struct incomplete_array
4434 {
4435 int datasize;
4436 double data[];
4437 };
4438
4439 struct named_init {
4440 int number;
4441 const wchar_t *name;
4442 double average;
4443 };
4444
4445 typedef const char *ccp;
4446
4447 static inline int
4448 test_restrict (ccp restrict text)
4449 {
4450 // See if C++-style comments work.
4451 // Iterate through items via the restricted pointer.
4452 // Also check for declarations in for loops.
4453 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4454 continue;
4455 return 0;
4456 }
4457
4458 // Check varargs and va_copy.
4459 static void
4460 test_varargs (const char *format, ...)
4461 {
4462 va_list args;
4463 va_start (args, format);
4464 va_list args_copy;
4465 va_copy (args_copy, args);
4466
4467 const char *str;
4468 int number;
4469 float fnumber;
4470
4471 while (*format)
4472 {
4473 switch (*format++)
4474 {
4475 case 's': // string
4476 str = va_arg (args_copy, const char *);
4477 break;
4478 case 'd': // int
4479 number = va_arg (args_copy, int);
4480 break;
4481 case 'f': // float
4482 fnumber = va_arg (args_copy, double);
4483 break;
4484 default:
4485 break;
4486 }
4487 }
4488 va_end (args_copy);
4489 va_end (args);
4490 }
4491
4492 int
4493 main ()
4494 {
4495
4496 // Check bool.
4497 _Bool success = false;
4498
4499 // Check restrict.
4500 if (test_restrict ("String literal") == 0)
4501 success = true;
4502 char *restrict newvar = "Another string";
4503
4504 // Check varargs.
4505 test_varargs ("s, d' f .", "string", 65, 34.234);
4506 test_varargs_macros ();
4507
4508 // Check flexible array members.
4509 struct incomplete_array *ia =
4510 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4511 ia->datasize = 10;
4512 for (int i = 0; i < ia->datasize; ++i)
4513 ia->data[i] = i * 1.234;
4514
4515 // Check named initializers.
4516 struct named_init ni = {
4517 .number = 34,
4518 .name = L"Test wide string",
4519 .average = 543.34343,
4520 };
4521
4522 ni.number = 58;
4523
4524 int dynamic_array[ni.number];
4525 dynamic_array[ni.number - 1] = 543;
4526
4527 // work around unused variable warnings
4528 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4529 || dynamic_array[ni.number - 1] != 543);
4530
4531 ;
4532 return 0;
4533 }
4534 _ACEOF
4535 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4536 do
4537 CC="$ac_save_CC $ac_arg"
4538 if ac_fn_c_try_compile "$LINENO"; then :
4539 ac_cv_prog_cc_c99=$ac_arg
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext
4542 test "x$ac_cv_prog_cc_c99" != "xno" && break
4543 done
4544 rm -f conftest.$ac_ext
4545 CC=$ac_save_CC
4546
4547 fi
4548 # AC_CACHE_VAL
4549 case "x$ac_cv_prog_cc_c99" in
4550 x)
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4552 $as_echo "none needed" >&6; } ;;
4553 xno)
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4555 $as_echo "unsupported" >&6; } ;;
4556 *)
4557 CC="$CC $ac_cv_prog_cc_c99"
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4559 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4560 esac
4561 if test "x$ac_cv_prog_cc_c99" != xno; then :
4562 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4563 else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4565 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4566 if ${ac_cv_prog_cc_c89+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_cv_prog_cc_c89=no
4570 ac_save_CC=$CC
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4573 #include <stdarg.h>
4574 #include <stdio.h>
4575 struct stat;
4576 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4577 struct buf { int x; };
4578 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4579 static char *e (p, i)
4580 char **p;
4581 int i;
4582 {
4583 return p[i];
4584 }
4585 static char *f (char * (*g) (char **, int), char **p, ...)
4586 {
4587 char *s;
4588 va_list v;
4589 va_start (v,p);
4590 s = g (p, va_arg (v,int));
4591 va_end (v);
4592 return s;
4593 }
4594
4595 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4596 function prototypes and stuff, but not '\xHH' hex character constants.
4597 These don't provoke an error unfortunately, instead are silently treated
4598 as 'x'. The following induces an error, until -std is added to get
4599 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4600 array size at least. It's necessary to write '\x00'==0 to get something
4601 that's true only with -std. */
4602 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4603
4604 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4605 inside strings and character constants. */
4606 #define FOO(x) 'x'
4607 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4608
4609 int test (int i, double x);
4610 struct s1 {int (*f) (int a);};
4611 struct s2 {int (*f) (double a);};
4612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4613 int argc;
4614 char **argv;
4615 int
4616 main ()
4617 {
4618 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4619 ;
4620 return 0;
4621 }
4622 _ACEOF
4623 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4624 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4625 do
4626 CC="$ac_save_CC $ac_arg"
4627 if ac_fn_c_try_compile "$LINENO"; then :
4628 ac_cv_prog_cc_c89=$ac_arg
4629 fi
4630 rm -f core conftest.err conftest.$ac_objext
4631 test "x$ac_cv_prog_cc_c89" != "xno" && break
4632 done
4633 rm -f conftest.$ac_ext
4634 CC=$ac_save_CC
4635
4636 fi
4637 # AC_CACHE_VAL
4638 case "x$ac_cv_prog_cc_c89" in
4639 x)
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4641 $as_echo "none needed" >&6; } ;;
4642 xno)
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4644 $as_echo "unsupported" >&6; } ;;
4645 *)
4646 CC="$CC $ac_cv_prog_cc_c89"
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4648 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4649 esac
4650 if test "x$ac_cv_prog_cc_c89" != xno; then :
4651 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4652 else
4653 ac_cv_prog_cc_stdc=no
4654 fi
4655
4656 fi
4657 ;;
4658 esac
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4660 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4661 if ${ac_cv_prog_cc_stdc+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 fi
4664
4665 case $ac_cv_prog_cc_stdc in #(
4666 no) :
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4668 $as_echo "unsupported" >&6; } ;; #(
4669 '') :
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4671 $as_echo "none needed" >&6; } ;; #(
4672 *) :
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4674 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4675 esac
4676
4677
4678 ac_ext=c
4679 ac_cpp='$CPP $CPPFLAGS'
4680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4684 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4685 # On Suns, sometimes $CPP names a directory.
4686 if test -n "$CPP" && test -d "$CPP"; then
4687 CPP=
4688 fi
4689 if test -z "$CPP"; then
4690 if ${ac_cv_prog_CPP+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 # Double quotes because CPP needs to be expanded
4694 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4695 do
4696 ac_preproc_ok=false
4697 for ac_c_preproc_warn_flag in '' yes
4698 do
4699 # Use a header file that comes with gcc, so configuring glibc
4700 # with a fresh cross-compiler works.
4701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4702 # <limits.h> exists even on freestanding compilers.
4703 # On the NeXT, cc -E runs the code through the compiler's parser,
4704 # not just through cpp. "Syntax error" is here to catch this case.
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707 #ifdef __STDC__
4708 # include <limits.h>
4709 #else
4710 # include <assert.h>
4711 #endif
4712 Syntax error
4713 _ACEOF
4714 if ac_fn_c_try_cpp "$LINENO"; then :
4715
4716 else
4717 # Broken: fails on valid input.
4718 continue
4719 fi
4720 rm -f conftest.err conftest.i conftest.$ac_ext
4721
4722 # OK, works on sane cases. Now check whether nonexistent headers
4723 # can be detected and how.
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4726 #include <ac_nonexistent.h>
4727 _ACEOF
4728 if ac_fn_c_try_cpp "$LINENO"; then :
4729 # Broken: success on invalid input.
4730 continue
4731 else
4732 # Passes both tests.
4733 ac_preproc_ok=:
4734 break
4735 fi
4736 rm -f conftest.err conftest.i conftest.$ac_ext
4737
4738 done
4739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4740 rm -f conftest.i conftest.err conftest.$ac_ext
4741 if $ac_preproc_ok; then :
4742 break
4743 fi
4744
4745 done
4746 ac_cv_prog_CPP=$CPP
4747
4748 fi
4749 CPP=$ac_cv_prog_CPP
4750 else
4751 ac_cv_prog_CPP=$CPP
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4754 $as_echo "$CPP" >&6; }
4755 ac_preproc_ok=false
4756 for ac_c_preproc_warn_flag in '' yes
4757 do
4758 # Use a header file that comes with gcc, so configuring glibc
4759 # with a fresh cross-compiler works.
4760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4761 # <limits.h> exists even on freestanding compilers.
4762 # On the NeXT, cc -E runs the code through the compiler's parser,
4763 # not just through cpp. "Syntax error" is here to catch this case.
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766 #ifdef __STDC__
4767 # include <limits.h>
4768 #else
4769 # include <assert.h>
4770 #endif
4771 Syntax error
4772 _ACEOF
4773 if ac_fn_c_try_cpp "$LINENO"; then :
4774
4775 else
4776 # Broken: fails on valid input.
4777 continue
4778 fi
4779 rm -f conftest.err conftest.i conftest.$ac_ext
4780
4781 # OK, works on sane cases. Now check whether nonexistent headers
4782 # can be detected and how.
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4785 #include <ac_nonexistent.h>
4786 _ACEOF
4787 if ac_fn_c_try_cpp "$LINENO"; then :
4788 # Broken: success on invalid input.
4789 continue
4790 else
4791 # Passes both tests.
4792 ac_preproc_ok=:
4793 break
4794 fi
4795 rm -f conftest.err conftest.i conftest.$ac_ext
4796
4797 done
4798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4799 rm -f conftest.i conftest.err conftest.$ac_ext
4800 if $ac_preproc_ok; then :
4801
4802 else
4803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4805 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4806 See \`config.log' for more details" "$LINENO" 5; }
4807 fi
4808
4809 ac_ext=c
4810 ac_cpp='$CPP $CPPFLAGS'
4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814
4815
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4817 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4818 if ${ac_cv_path_GREP+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -z "$GREP"; then
4822 ac_path_GREP_found=false
4823 # Loop through the user's path and test for each of PROGNAME-LIST
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_prog in grep ggrep; do
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4832 as_fn_executable_p "$ac_path_GREP" || continue
4833 # Check for GNU ac_path_GREP and select it if it is found.
4834 # Check for GNU $ac_path_GREP
4835 case `"$ac_path_GREP" --version 2>&1` in
4836 *GNU*)
4837 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4838 *)
4839 ac_count=0
4840 $as_echo_n 0123456789 >"conftest.in"
4841 while :
4842 do
4843 cat "conftest.in" "conftest.in" >"conftest.tmp"
4844 mv "conftest.tmp" "conftest.in"
4845 cp "conftest.in" "conftest.nl"
4846 $as_echo 'GREP' >> "conftest.nl"
4847 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4849 as_fn_arith $ac_count + 1 && ac_count=$as_val
4850 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4851 # Best one so far, save it but keep looking for a better one
4852 ac_cv_path_GREP="$ac_path_GREP"
4853 ac_path_GREP_max=$ac_count
4854 fi
4855 # 10*(2^10) chars as input seems more than enough
4856 test $ac_count -gt 10 && break
4857 done
4858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4859 esac
4860
4861 $ac_path_GREP_found && break 3
4862 done
4863 done
4864 done
4865 IFS=$as_save_IFS
4866 if test -z "$ac_cv_path_GREP"; then
4867 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4868 fi
4869 else
4870 ac_cv_path_GREP=$GREP
4871 fi
4872
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4875 $as_echo "$ac_cv_path_GREP" >&6; }
4876 GREP="$ac_cv_path_GREP"
4877
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4880 $as_echo_n "checking for egrep... " >&6; }
4881 if ${ac_cv_path_EGREP+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4885 then ac_cv_path_EGREP="$GREP -E"
4886 else
4887 if test -z "$EGREP"; then
4888 ac_path_EGREP_found=false
4889 # Loop through the user's path and test for each of PROGNAME-LIST
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4892 do
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
4895 for ac_prog in egrep; do
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4898 as_fn_executable_p "$ac_path_EGREP" || continue
4899 # Check for GNU ac_path_EGREP and select it if it is found.
4900 # Check for GNU $ac_path_EGREP
4901 case `"$ac_path_EGREP" --version 2>&1` in
4902 *GNU*)
4903 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4904 *)
4905 ac_count=0
4906 $as_echo_n 0123456789 >"conftest.in"
4907 while :
4908 do
4909 cat "conftest.in" "conftest.in" >"conftest.tmp"
4910 mv "conftest.tmp" "conftest.in"
4911 cp "conftest.in" "conftest.nl"
4912 $as_echo 'EGREP' >> "conftest.nl"
4913 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4915 as_fn_arith $ac_count + 1 && ac_count=$as_val
4916 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4917 # Best one so far, save it but keep looking for a better one
4918 ac_cv_path_EGREP="$ac_path_EGREP"
4919 ac_path_EGREP_max=$ac_count
4920 fi
4921 # 10*(2^10) chars as input seems more than enough
4922 test $ac_count -gt 10 && break
4923 done
4924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4925 esac
4926
4927 $ac_path_EGREP_found && break 3
4928 done
4929 done
4930 done
4931 IFS=$as_save_IFS
4932 if test -z "$ac_cv_path_EGREP"; then
4933 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4934 fi
4935 else
4936 ac_cv_path_EGREP=$EGREP
4937 fi
4938
4939 fi
4940 fi
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4942 $as_echo "$ac_cv_path_EGREP" >&6; }
4943 EGREP="$ac_cv_path_EGREP"
4944
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4947 $as_echo_n "checking for ANSI C header files... " >&6; }
4948 if ${ac_cv_header_stdc+:} false; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4953 #include <stdlib.h>
4954 #include <stdarg.h>
4955 #include <string.h>
4956 #include <float.h>
4957
4958 int
4959 main ()
4960 {
4961
4962 ;
4963 return 0;
4964 }
4965 _ACEOF
4966 if ac_fn_c_try_compile "$LINENO"; then :
4967 ac_cv_header_stdc=yes
4968 else
4969 ac_cv_header_stdc=no
4970 fi
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972
4973 if test $ac_cv_header_stdc = yes; then
4974 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 #include <string.h>
4978
4979 _ACEOF
4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4981 $EGREP "memchr" >/dev/null 2>&1; then :
4982
4983 else
4984 ac_cv_header_stdc=no
4985 fi
4986 rm -f conftest*
4987
4988 fi
4989
4990 if test $ac_cv_header_stdc = yes; then
4991 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994 #include <stdlib.h>
4995
4996 _ACEOF
4997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4998 $EGREP "free" >/dev/null 2>&1; then :
4999
5000 else
5001 ac_cv_header_stdc=no
5002 fi
5003 rm -f conftest*
5004
5005 fi
5006
5007 if test $ac_cv_header_stdc = yes; then
5008 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5009 if test "$cross_compiling" = yes; then :
5010 :
5011 else
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5014 #include <ctype.h>
5015 #include <stdlib.h>
5016 #if ((' ' & 0x0FF) == 0x020)
5017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5019 #else
5020 # define ISLOWER(c) \
5021 (('a' <= (c) && (c) <= 'i') \
5022 || ('j' <= (c) && (c) <= 'r') \
5023 || ('s' <= (c) && (c) <= 'z'))
5024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5025 #endif
5026
5027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5028 int
5029 main ()
5030 {
5031 int i;
5032 for (i = 0; i < 256; i++)
5033 if (XOR (islower (i), ISLOWER (i))
5034 || toupper (i) != TOUPPER (i))
5035 return 2;
5036 return 0;
5037 }
5038 _ACEOF
5039 if ac_fn_c_try_run "$LINENO"; then :
5040
5041 else
5042 ac_cv_header_stdc=no
5043 fi
5044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5045 conftest.$ac_objext conftest.beam conftest.$ac_ext
5046 fi
5047
5048 fi
5049 fi
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5051 $as_echo "$ac_cv_header_stdc" >&6; }
5052 if test $ac_cv_header_stdc = yes; then
5053
5054 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5055
5056 fi
5057
5058 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5059 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5060 inttypes.h stdint.h unistd.h
5061 do :
5062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5063 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5064 "
5065 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5066 cat >>confdefs.h <<_ACEOF
5067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5068 _ACEOF
5069
5070 fi
5071
5072 done
5073
5074
5075
5076 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5077 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5078 MINIX=yes
5079 else
5080 MINIX=
5081 fi
5082
5083
5084 if test "$MINIX" = yes; then
5085
5086 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5087
5088
5089 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5090
5091
5092 $as_echo "#define _MINIX 1" >>confdefs.h
5093
5094 fi
5095
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5098 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5099 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5104
5105 # define __EXTENSIONS__ 1
5106 $ac_includes_default
5107 int
5108 main ()
5109 {
5110
5111 ;
5112 return 0;
5113 }
5114 _ACEOF
5115 if ac_fn_c_try_compile "$LINENO"; then :
5116 ac_cv_safe_to_define___extensions__=yes
5117 else
5118 ac_cv_safe_to_define___extensions__=no
5119 fi
5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121 fi
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5123 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5124 test $ac_cv_safe_to_define___extensions__ = yes &&
5125 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5126
5127 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5128
5129 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5130
5131 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5132
5133 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5134
5135
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5138 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5139 if ${ac_cv_c_bigendian+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 ac_cv_c_bigendian=unknown
5143 # See if we're dealing with a universal compiler.
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146 #ifndef __APPLE_CC__
5147 not a universal capable compiler
5148 #endif
5149 typedef int dummy;
5150
5151 _ACEOF
5152 if ac_fn_c_try_compile "$LINENO"; then :
5153
5154 # Check for potential -arch flags. It is not universal unless
5155 # there are at least two -arch flags with different values.
5156 ac_arch=
5157 ac_prev=
5158 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5159 if test -n "$ac_prev"; then
5160 case $ac_word in
5161 i?86 | x86_64 | ppc | ppc64)
5162 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5163 ac_arch=$ac_word
5164 else
5165 ac_cv_c_bigendian=universal
5166 break
5167 fi
5168 ;;
5169 esac
5170 ac_prev=
5171 elif test "x$ac_word" = "x-arch"; then
5172 ac_prev=arch
5173 fi
5174 done
5175 fi
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 if test $ac_cv_c_bigendian = unknown; then
5178 # See if sys/param.h defines the BYTE_ORDER macro.
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 #include <sys/types.h>
5182 #include <sys/param.h>
5183
5184 int
5185 main ()
5186 {
5187 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5188 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5189 && LITTLE_ENDIAN)
5190 bogus endian macros
5191 #endif
5192
5193 ;
5194 return 0;
5195 }
5196 _ACEOF
5197 if ac_fn_c_try_compile "$LINENO"; then :
5198 # It does; now see whether it defined to BIG_ENDIAN or not.
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201 #include <sys/types.h>
5202 #include <sys/param.h>
5203
5204 int
5205 main ()
5206 {
5207 #if BYTE_ORDER != BIG_ENDIAN
5208 not big endian
5209 #endif
5210
5211 ;
5212 return 0;
5213 }
5214 _ACEOF
5215 if ac_fn_c_try_compile "$LINENO"; then :
5216 ac_cv_c_bigendian=yes
5217 else
5218 ac_cv_c_bigendian=no
5219 fi
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 fi
5222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 fi
5224 if test $ac_cv_c_bigendian = unknown; then
5225 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228 #include <limits.h>
5229
5230 int
5231 main ()
5232 {
5233 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5234 bogus endian macros
5235 #endif
5236
5237 ;
5238 return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_c_try_compile "$LINENO"; then :
5242 # It does; now see whether it defined to _BIG_ENDIAN or not.
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245 #include <limits.h>
5246
5247 int
5248 main ()
5249 {
5250 #ifndef _BIG_ENDIAN
5251 not big endian
5252 #endif
5253
5254 ;
5255 return 0;
5256 }
5257 _ACEOF
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259 ac_cv_c_bigendian=yes
5260 else
5261 ac_cv_c_bigendian=no
5262 fi
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 fi
5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 fi
5267 if test $ac_cv_c_bigendian = unknown; then
5268 # Compile a test program.
5269 if test "$cross_compiling" = yes; then :
5270 # Try to guess by grepping values from an object file.
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273 short int ascii_mm[] =
5274 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5275 short int ascii_ii[] =
5276 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5277 int use_ascii (int i) {
5278 return ascii_mm[i] + ascii_ii[i];
5279 }
5280 short int ebcdic_ii[] =
5281 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5282 short int ebcdic_mm[] =
5283 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5284 int use_ebcdic (int i) {
5285 return ebcdic_mm[i] + ebcdic_ii[i];
5286 }
5287 extern int foo;
5288
5289 int
5290 main ()
5291 {
5292 return use_ascii (foo) == use_ebcdic (foo);
5293 ;
5294 return 0;
5295 }
5296 _ACEOF
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5299 ac_cv_c_bigendian=yes
5300 fi
5301 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5302 if test "$ac_cv_c_bigendian" = unknown; then
5303 ac_cv_c_bigendian=no
5304 else
5305 # finding both strings is unlikely to happen, but who knows?
5306 ac_cv_c_bigendian=unknown
5307 fi
5308 fi
5309 fi
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 else
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5314 $ac_includes_default
5315 int
5316 main ()
5317 {
5318
5319 /* Are we little or big endian? From Harbison&Steele. */
5320 union
5321 {
5322 long int l;
5323 char c[sizeof (long int)];
5324 } u;
5325 u.l = 1;
5326 return u.c[sizeof (long int) - 1] == 1;
5327
5328 ;
5329 return 0;
5330 }
5331 _ACEOF
5332 if ac_fn_c_try_run "$LINENO"; then :
5333 ac_cv_c_bigendian=no
5334 else
5335 ac_cv_c_bigendian=yes
5336 fi
5337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5338 conftest.$ac_objext conftest.beam conftest.$ac_ext
5339 fi
5340
5341 fi
5342 fi
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5344 $as_echo "$ac_cv_c_bigendian" >&6; }
5345 case $ac_cv_c_bigendian in #(
5346 yes)
5347 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5348 ;; #(
5349 no)
5350 ;; #(
5351 universal)
5352
5353 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5354
5355 ;; #(
5356 *)
5357 as_fn_error $? "unknown endianness
5358 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5359 esac
5360
5361
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5363 $as_echo_n "checking whether ln -s works... " >&6; }
5364 LN_S=$as_ln_s
5365 if test "$LN_S" = "ln -s"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5367 $as_echo "yes" >&6; }
5368 else
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5370 $as_echo "no, using $LN_S" >&6; }
5371 fi
5372
5373 case `pwd` in
5374 *\ * | *\ *)
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5376 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5377 esac
5378
5379
5380
5381 macro_version='2.4.2'
5382 macro_revision='1.3337'
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396 ltmain="$ac_aux_dir/ltmain.sh"
5397
5398 # Backslashify metacharacters that are still active within
5399 # double-quoted strings.
5400 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5401
5402 # Same as above, but do not quote variable references.
5403 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5404
5405 # Sed substitution to delay expansion of an escaped shell variable in a
5406 # double_quote_subst'ed string.
5407 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5408
5409 # Sed substitution to delay expansion of an escaped single quote.
5410 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5411
5412 # Sed substitution to avoid accidental globbing in evaled expressions
5413 no_glob_subst='s/\*/\\\*/g'
5414
5415 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5416 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5417 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5418
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5420 $as_echo_n "checking how to print strings... " >&6; }
5421 # Test print first, because it will be a builtin if present.
5422 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5423 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5424 ECHO='print -r --'
5425 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5426 ECHO='printf %s\n'
5427 else
5428 # Use this function as a fallback that always works.
5429 func_fallback_echo ()
5430 {
5431 eval 'cat <<_LTECHO_EOF
5432 $1
5433 _LTECHO_EOF'
5434 }
5435 ECHO='func_fallback_echo'
5436 fi
5437
5438 # func_echo_all arg...
5439 # Invoke $ECHO with all args, space-separated.
5440 func_echo_all ()
5441 {
5442 $ECHO ""
5443 }
5444
5445 case "$ECHO" in
5446 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5447 $as_echo "printf" >&6; } ;;
5448 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5449 $as_echo "print -r" >&6; } ;;
5450 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5451 $as_echo "cat" >&6; } ;;
5452 esac
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5468 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5469 if ${ac_cv_path_SED+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5473 for ac_i in 1 2 3 4 5 6 7; do
5474 ac_script="$ac_script$as_nl$ac_script"
5475 done
5476 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5477 { ac_script=; unset ac_script;}
5478 if test -z "$SED"; then
5479 ac_path_SED_found=false
5480 # Loop through the user's path and test for each of PROGNAME-LIST
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_prog in sed gsed; do
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5489 as_fn_executable_p "$ac_path_SED" || continue
5490 # Check for GNU ac_path_SED and select it if it is found.
5491 # Check for GNU $ac_path_SED
5492 case `"$ac_path_SED" --version 2>&1` in
5493 *GNU*)
5494 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5495 *)
5496 ac_count=0
5497 $as_echo_n 0123456789 >"conftest.in"
5498 while :
5499 do
5500 cat "conftest.in" "conftest.in" >"conftest.tmp"
5501 mv "conftest.tmp" "conftest.in"
5502 cp "conftest.in" "conftest.nl"
5503 $as_echo '' >> "conftest.nl"
5504 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5506 as_fn_arith $ac_count + 1 && ac_count=$as_val
5507 if test $ac_count -gt ${ac_path_SED_max-0}; then
5508 # Best one so far, save it but keep looking for a better one
5509 ac_cv_path_SED="$ac_path_SED"
5510 ac_path_SED_max=$ac_count
5511 fi
5512 # 10*(2^10) chars as input seems more than enough
5513 test $ac_count -gt 10 && break
5514 done
5515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5516 esac
5517
5518 $ac_path_SED_found && break 3
5519 done
5520 done
5521 done
5522 IFS=$as_save_IFS
5523 if test -z "$ac_cv_path_SED"; then
5524 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5525 fi
5526 else
5527 ac_cv_path_SED=$SED
5528 fi
5529
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5532 $as_echo "$ac_cv_path_SED" >&6; }
5533 SED="$ac_cv_path_SED"
5534 rm -f conftest.sed
5535
5536 test -z "$SED" && SED=sed
5537 Xsed="$SED -e 1s/^X//"
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5550 $as_echo_n "checking for fgrep... " >&6; }
5551 if ${ac_cv_path_FGREP+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5555 then ac_cv_path_FGREP="$GREP -F"
5556 else
5557 if test -z "$FGREP"; then
5558 ac_path_FGREP_found=false
5559 # Loop through the user's path and test for each of PROGNAME-LIST
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562 do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_prog in fgrep; do
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5568 as_fn_executable_p "$ac_path_FGREP" || continue
5569 # Check for GNU ac_path_FGREP and select it if it is found.
5570 # Check for GNU $ac_path_FGREP
5571 case `"$ac_path_FGREP" --version 2>&1` in
5572 *GNU*)
5573 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5574 *)
5575 ac_count=0
5576 $as_echo_n 0123456789 >"conftest.in"
5577 while :
5578 do
5579 cat "conftest.in" "conftest.in" >"conftest.tmp"
5580 mv "conftest.tmp" "conftest.in"
5581 cp "conftest.in" "conftest.nl"
5582 $as_echo 'FGREP' >> "conftest.nl"
5583 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5585 as_fn_arith $ac_count + 1 && ac_count=$as_val
5586 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5587 # Best one so far, save it but keep looking for a better one
5588 ac_cv_path_FGREP="$ac_path_FGREP"
5589 ac_path_FGREP_max=$ac_count
5590 fi
5591 # 10*(2^10) chars as input seems more than enough
5592 test $ac_count -gt 10 && break
5593 done
5594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5595 esac
5596
5597 $ac_path_FGREP_found && break 3
5598 done
5599 done
5600 done
5601 IFS=$as_save_IFS
5602 if test -z "$ac_cv_path_FGREP"; then
5603 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5604 fi
5605 else
5606 ac_cv_path_FGREP=$FGREP
5607 fi
5608
5609 fi
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5612 $as_echo "$ac_cv_path_FGREP" >&6; }
5613 FGREP="$ac_cv_path_FGREP"
5614
5615
5616 test -z "$GREP" && GREP=grep
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636 # Check whether --with-gnu-ld was given.
5637 if test "${with_gnu_ld+set}" = set; then :
5638 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5639 else
5640 with_gnu_ld=no
5641 fi
5642
5643 ac_prog=ld
5644 if test "$GCC" = yes; then
5645 # Check if gcc -print-prog-name=ld gives a path.
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5647 $as_echo_n "checking for ld used by $CC... " >&6; }
5648 case $host in
5649 *-*-mingw*)
5650 # gcc leaves a trailing carriage return which upsets mingw
5651 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5652 *)
5653 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5654 esac
5655 case $ac_prog in
5656 # Accept absolute paths.
5657 [\\/]* | ?:[\\/]*)
5658 re_direlt='/[^/][^/]*/\.\./'
5659 # Canonicalize the pathname of ld
5660 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5661 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5662 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5663 done
5664 test -z "$LD" && LD="$ac_prog"
5665 ;;
5666 "")
5667 # If it fails, then pretend we aren't using GCC.
5668 ac_prog=ld
5669 ;;
5670 *)
5671 # If it is relative, then search for the first ld in PATH.
5672 with_gnu_ld=unknown
5673 ;;
5674 esac
5675 elif test "$with_gnu_ld" = yes; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5677 $as_echo_n "checking for GNU ld... " >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5680 $as_echo_n "checking for non-GNU ld... " >&6; }
5681 fi
5682 if ${lt_cv_path_LD+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 if test -z "$LD"; then
5686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5687 for ac_dir in $PATH; do
5688 IFS="$lt_save_ifs"
5689 test -z "$ac_dir" && ac_dir=.
5690 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5691 lt_cv_path_LD="$ac_dir/$ac_prog"
5692 # Check to see if the program is GNU ld. I'd rather use --version,
5693 # but apparently some variants of GNU ld only accept -v.
5694 # Break only if it was the GNU/non-GNU ld that we prefer.
5695 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5696 *GNU* | *'with BFD'*)
5697 test "$with_gnu_ld" != no && break
5698 ;;
5699 *)
5700 test "$with_gnu_ld" != yes && break
5701 ;;
5702 esac
5703 fi
5704 done
5705 IFS="$lt_save_ifs"
5706 else
5707 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5708 fi
5709 fi
5710
5711 LD="$lt_cv_path_LD"
5712 if test -n "$LD"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5714 $as_echo "$LD" >&6; }
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5718 fi
5719 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5721 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5722 if ${lt_cv_prog_gnu_ld+:} false; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5726 case `$LD -v 2>&1 </dev/null` in
5727 *GNU* | *'with BFD'*)
5728 lt_cv_prog_gnu_ld=yes
5729 ;;
5730 *)
5731 lt_cv_prog_gnu_ld=no
5732 ;;
5733 esac
5734 fi
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5736 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5737 with_gnu_ld=$lt_cv_prog_gnu_ld
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5748 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5749 if ${lt_cv_path_NM+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if test -n "$NM"; then
5753 # Let the user override the test.
5754 lt_cv_path_NM="$NM"
5755 else
5756 lt_nm_to_check="${ac_tool_prefix}nm"
5757 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5758 lt_nm_to_check="$lt_nm_to_check nm"
5759 fi
5760 for lt_tmp_nm in $lt_nm_to_check; do
5761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5762 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5763 IFS="$lt_save_ifs"
5764 test -z "$ac_dir" && ac_dir=.
5765 tmp_nm="$ac_dir/$lt_tmp_nm"
5766 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5767 # Check to see if the nm accepts a BSD-compat flag.
5768 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5769 # nm: unknown option "B" ignored
5770 # Tru64's nm complains that /dev/null is an invalid object file
5771 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5772 */dev/null* | *'Invalid file or object type'*)
5773 lt_cv_path_NM="$tmp_nm -B"
5774 break
5775 ;;
5776 *)
5777 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5778 */dev/null*)
5779 lt_cv_path_NM="$tmp_nm -p"
5780 break
5781 ;;
5782 *)
5783 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5784 continue # so that we can try to find one that supports BSD flags
5785 ;;
5786 esac
5787 ;;
5788 esac
5789 fi
5790 done
5791 IFS="$lt_save_ifs"
5792 done
5793 : ${lt_cv_path_NM=no}
5794 fi
5795 fi
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5797 $as_echo "$lt_cv_path_NM" >&6; }
5798 if test "$lt_cv_path_NM" != "no"; then
5799 NM="$lt_cv_path_NM"
5800 else
5801 # Didn't find any BSD compatible name lister, look for dumpbin.
5802 if test -n "$DUMPBIN"; then :
5803 # Let the user override the test.
5804 else
5805 if test -n "$ac_tool_prefix"; then
5806 for ac_prog in dumpbin "link -dump"
5807 do
5808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if ${ac_cv_prog_DUMPBIN+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 if test -n "$DUMPBIN"; then
5816 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5828 fi
5829 done
5830 done
5831 IFS=$as_save_IFS
5832
5833 fi
5834 fi
5835 DUMPBIN=$ac_cv_prog_DUMPBIN
5836 if test -n "$DUMPBIN"; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5838 $as_echo "$DUMPBIN" >&6; }
5839 else
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 fi
5843
5844
5845 test -n "$DUMPBIN" && break
5846 done
5847 fi
5848 if test -z "$DUMPBIN"; then
5849 ac_ct_DUMPBIN=$DUMPBIN
5850 for ac_prog in dumpbin "link -dump"
5851 do
5852 # Extract the first word of "$ac_prog", so it can be a program name with args.
5853 set dummy $ac_prog; ac_word=$2
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855 $as_echo_n "checking for $ac_word... " >&6; }
5856 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 if test -n "$ac_ct_DUMPBIN"; then
5860 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5864 do
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873 done
5874 done
5875 IFS=$as_save_IFS
5876
5877 fi
5878 fi
5879 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5880 if test -n "$ac_ct_DUMPBIN"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5882 $as_echo "$ac_ct_DUMPBIN" >&6; }
5883 else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5886 fi
5887
5888
5889 test -n "$ac_ct_DUMPBIN" && break
5890 done
5891
5892 if test "x$ac_ct_DUMPBIN" = x; then
5893 DUMPBIN=":"
5894 else
5895 case $cross_compiling:$ac_tool_warned in
5896 yes:)
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5899 ac_tool_warned=yes ;;
5900 esac
5901 DUMPBIN=$ac_ct_DUMPBIN
5902 fi
5903 fi
5904
5905 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5906 *COFF*)
5907 DUMPBIN="$DUMPBIN -symbols"
5908 ;;
5909 *)
5910 DUMPBIN=:
5911 ;;
5912 esac
5913 fi
5914
5915 if test "$DUMPBIN" != ":"; then
5916 NM="$DUMPBIN"
5917 fi
5918 fi
5919 test -z "$NM" && NM=nm
5920
5921
5922
5923
5924
5925
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5927 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5928 if ${lt_cv_nm_interface+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 lt_cv_nm_interface="BSD nm"
5932 echo "int some_variable = 0;" > conftest.$ac_ext
5933 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5934 (eval "$ac_compile" 2>conftest.err)
5935 cat conftest.err >&5
5936 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5937 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5938 cat conftest.err >&5
5939 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5940 cat conftest.out >&5
5941 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5942 lt_cv_nm_interface="MS dumpbin"
5943 fi
5944 rm -f conftest*
5945 fi
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5947 $as_echo "$lt_cv_nm_interface" >&6; }
5948
5949 # find the maximum length of command line arguments
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5951 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5952 if ${lt_cv_sys_max_cmd_len+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 i=0
5956 teststring="ABCD"
5957
5958 case $build_os in
5959 msdosdjgpp*)
5960 # On DJGPP, this test can blow up pretty badly due to problems in libc
5961 # (any single argument exceeding 2000 bytes causes a buffer overrun
5962 # during glob expansion). Even if it were fixed, the result of this
5963 # check would be larger than it should be.
5964 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5965 ;;
5966
5967 gnu*)
5968 # Under GNU Hurd, this test is not required because there is
5969 # no limit to the length of command line arguments.
5970 # Libtool will interpret -1 as no limit whatsoever
5971 lt_cv_sys_max_cmd_len=-1;
5972 ;;
5973
5974 cygwin* | mingw* | cegcc*)
5975 # On Win9x/ME, this test blows up -- it succeeds, but takes
5976 # about 5 minutes as the teststring grows exponentially.
5977 # Worse, since 9x/ME are not pre-emptively multitasking,
5978 # you end up with a "frozen" computer, even though with patience
5979 # the test eventually succeeds (with a max line length of 256k).
5980 # Instead, let's just punt: use the minimum linelength reported by
5981 # all of the supported platforms: 8192 (on NT/2K/XP).
5982 lt_cv_sys_max_cmd_len=8192;
5983 ;;
5984
5985 mint*)
5986 # On MiNT this can take a long time and run out of memory.
5987 lt_cv_sys_max_cmd_len=8192;
5988 ;;
5989
5990 amigaos*)
5991 # On AmigaOS with pdksh, this test takes hours, literally.
5992 # So we just punt and use a minimum line length of 8192.
5993 lt_cv_sys_max_cmd_len=8192;
5994 ;;
5995
5996 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5997 # This has been around since 386BSD, at least. Likely further.
5998 if test -x /sbin/sysctl; then
5999 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6000 elif test -x /usr/sbin/sysctl; then
6001 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6002 else
6003 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6004 fi
6005 # And add a safety zone
6006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6008 ;;
6009
6010 interix*)
6011 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6012 lt_cv_sys_max_cmd_len=196608
6013 ;;
6014
6015 os2*)
6016 # The test takes a long time on OS/2.
6017 lt_cv_sys_max_cmd_len=8192
6018 ;;
6019
6020 osf*)
6021 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6022 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6023 # nice to cause kernel panics so lets avoid the loop below.
6024 # First set a reasonable default.
6025 lt_cv_sys_max_cmd_len=16384
6026 #
6027 if test -x /sbin/sysconfig; then
6028 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6029 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6030 esac
6031 fi
6032 ;;
6033 sco3.2v5*)
6034 lt_cv_sys_max_cmd_len=102400
6035 ;;
6036 sysv5* | sco5v6* | sysv4.2uw2*)
6037 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6038 if test -n "$kargmax"; then
6039 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6040 else
6041 lt_cv_sys_max_cmd_len=32768
6042 fi
6043 ;;
6044 *)
6045 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6046 if test -n "$lt_cv_sys_max_cmd_len"; then
6047 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6048 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6049 else
6050 # Make teststring a little bigger before we do anything with it.
6051 # a 1K string should be a reasonable start.
6052 for i in 1 2 3 4 5 6 7 8 ; do
6053 teststring=$teststring$teststring
6054 done
6055 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6056 # If test is not a shell built-in, we'll probably end up computing a
6057 # maximum length that is only half of the actual maximum length, but
6058 # we can't tell.
6059 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6060 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6061 test $i != 17 # 1/2 MB should be enough
6062 do
6063 i=`expr $i + 1`
6064 teststring=$teststring$teststring
6065 done
6066 # Only check the string length outside the loop.
6067 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6068 teststring=
6069 # Add a significant safety factor because C++ compilers can tack on
6070 # massive amounts of additional arguments before passing them to the
6071 # linker. It appears as though 1/2 is a usable value.
6072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6073 fi
6074 ;;
6075 esac
6076
6077 fi
6078
6079 if test -n $lt_cv_sys_max_cmd_len ; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6081 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6082 else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6084 $as_echo "none" >&6; }
6085 fi
6086 max_cmd_len=$lt_cv_sys_max_cmd_len
6087
6088
6089
6090
6091
6092
6093 : ${CP="cp -f"}
6094 : ${MV="mv -f"}
6095 : ${RM="rm -f"}
6096
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6098 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6099 # Try some XSI features
6100 xsi_shell=no
6101 ( _lt_dummy="a/b/c"
6102 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6103 = c,a/b,b/c, \
6104 && eval 'test $(( 1 + 1 )) -eq 2 \
6105 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6106 && xsi_shell=yes
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6108 $as_echo "$xsi_shell" >&6; }
6109
6110
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6112 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6113 lt_shell_append=no
6114 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6115 >/dev/null 2>&1 \
6116 && lt_shell_append=yes
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6118 $as_echo "$lt_shell_append" >&6; }
6119
6120
6121 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6122 lt_unset=unset
6123 else
6124 lt_unset=false
6125 fi
6126
6127
6128
6129
6130
6131 # test EBCDIC or ASCII
6132 case `echo X|tr X '\101'` in
6133 A) # ASCII based system
6134 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6135 lt_SP2NL='tr \040 \012'
6136 lt_NL2SP='tr \015\012 \040\040'
6137 ;;
6138 *) # EBCDIC based system
6139 lt_SP2NL='tr \100 \n'
6140 lt_NL2SP='tr \r\n \100\100'
6141 ;;
6142 esac
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6153 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6154 if ${lt_cv_to_host_file_cmd+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 case $host in
6158 *-*-mingw* )
6159 case $build in
6160 *-*-mingw* ) # actually msys
6161 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6162 ;;
6163 *-*-cygwin* )
6164 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6165 ;;
6166 * ) # otherwise, assume *nix
6167 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6168 ;;
6169 esac
6170 ;;
6171 *-*-cygwin* )
6172 case $build in
6173 *-*-mingw* ) # actually msys
6174 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6175 ;;
6176 *-*-cygwin* )
6177 lt_cv_to_host_file_cmd=func_convert_file_noop
6178 ;;
6179 * ) # otherwise, assume *nix
6180 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6181 ;;
6182 esac
6183 ;;
6184 * ) # unhandled hosts (and "normal" native builds)
6185 lt_cv_to_host_file_cmd=func_convert_file_noop
6186 ;;
6187 esac
6188
6189 fi
6190
6191 to_host_file_cmd=$lt_cv_to_host_file_cmd
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6193 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6194
6195
6196
6197
6198
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6200 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6201 if ${lt_cv_to_tool_file_cmd+:} false; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 #assume ordinary cross tools, or native build.
6205 lt_cv_to_tool_file_cmd=func_convert_file_noop
6206 case $host in
6207 *-*-mingw* )
6208 case $build in
6209 *-*-mingw* ) # actually msys
6210 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6211 ;;
6212 esac
6213 ;;
6214 esac
6215
6216 fi
6217
6218 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6220 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6221
6222
6223
6224
6225
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6227 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6228 if ${lt_cv_ld_reload_flag+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 lt_cv_ld_reload_flag='-r'
6232 fi
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6234 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6235 reload_flag=$lt_cv_ld_reload_flag
6236 case $reload_flag in
6237 "" | " "*) ;;
6238 *) reload_flag=" $reload_flag" ;;
6239 esac
6240 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6241 case $host_os in
6242 cygwin* | mingw* | pw32* | cegcc*)
6243 if test "$GCC" != yes; then
6244 reload_cmds=false
6245 fi
6246 ;;
6247 darwin*)
6248 if test "$GCC" = yes; then
6249 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6250 else
6251 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6252 fi
6253 ;;
6254 esac
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264 if test -n "$ac_tool_prefix"; then
6265 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6266 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268 $as_echo_n "checking for $ac_word... " >&6; }
6269 if ${ac_cv_prog_OBJDUMP+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 if test -n "$OBJDUMP"; then
6273 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6274 else
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6277 do
6278 IFS=$as_save_IFS
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6282 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 break 2
6285 fi
6286 done
6287 done
6288 IFS=$as_save_IFS
6289
6290 fi
6291 fi
6292 OBJDUMP=$ac_cv_prog_OBJDUMP
6293 if test -n "$OBJDUMP"; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6295 $as_echo "$OBJDUMP" >&6; }
6296 else
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6299 fi
6300
6301
6302 fi
6303 if test -z "$ac_cv_prog_OBJDUMP"; then
6304 ac_ct_OBJDUMP=$OBJDUMP
6305 # Extract the first word of "objdump", so it can be a program name with args.
6306 set dummy objdump; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 if test -n "$ac_ct_OBJDUMP"; then
6313 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326 done
6327 done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6333 if test -n "$ac_ct_OBJDUMP"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6335 $as_echo "$ac_ct_OBJDUMP" >&6; }
6336 else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340
6341 if test "x$ac_ct_OBJDUMP" = x; then
6342 OBJDUMP="false"
6343 else
6344 case $cross_compiling:$ac_tool_warned in
6345 yes:)
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6348 ac_tool_warned=yes ;;
6349 esac
6350 OBJDUMP=$ac_ct_OBJDUMP
6351 fi
6352 else
6353 OBJDUMP="$ac_cv_prog_OBJDUMP"
6354 fi
6355
6356 test -z "$OBJDUMP" && OBJDUMP=objdump
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6367 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6368 if ${lt_cv_deplibs_check_method+:} false; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 lt_cv_file_magic_cmd='$MAGIC_CMD'
6372 lt_cv_file_magic_test_file=
6373 lt_cv_deplibs_check_method='unknown'
6374 # Need to set the preceding variable on all platforms that support
6375 # interlibrary dependencies.
6376 # 'none' -- dependencies not supported.
6377 # `unknown' -- same as none, but documents that we really don't know.
6378 # 'pass_all' -- all dependencies passed with no checks.
6379 # 'test_compile' -- check by making test program.
6380 # 'file_magic [[regex]]' -- check by looking for files in library path
6381 # which responds to the $file_magic_cmd with a given extended regex.
6382 # If you have `file' or equivalent on your system and you're not sure
6383 # whether `pass_all' will *always* work, you probably want this one.
6384
6385 case $host_os in
6386 aix[4-9]*)
6387 lt_cv_deplibs_check_method=pass_all
6388 ;;
6389
6390 beos*)
6391 lt_cv_deplibs_check_method=pass_all
6392 ;;
6393
6394 bsdi[45]*)
6395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6396 lt_cv_file_magic_cmd='/usr/bin/file -L'
6397 lt_cv_file_magic_test_file=/shlib/libc.so
6398 ;;
6399
6400 cygwin*)
6401 # func_win32_libid is a shell function defined in ltmain.sh
6402 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6403 lt_cv_file_magic_cmd='func_win32_libid'
6404 ;;
6405
6406 mingw* | pw32*)
6407 # Base MSYS/MinGW do not provide the 'file' command needed by
6408 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6409 # unless we find 'file', for example because we are cross-compiling.
6410 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6411 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6413 lt_cv_file_magic_cmd='func_win32_libid'
6414 else
6415 # Keep this pattern in sync with the one in func_win32_libid.
6416 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6417 lt_cv_file_magic_cmd='$OBJDUMP -f'
6418 fi
6419 ;;
6420
6421 cegcc*)
6422 # use the weaker test based on 'objdump'. See mingw*.
6423 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6424 lt_cv_file_magic_cmd='$OBJDUMP -f'
6425 ;;
6426
6427 darwin* | rhapsody*)
6428 lt_cv_deplibs_check_method=pass_all
6429 ;;
6430
6431 freebsd* | dragonfly*)
6432 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6433 case $host_cpu in
6434 i*86 )
6435 # Not sure whether the presence of OpenBSD here was a mistake.
6436 # Let's accept both of them until this is cleared up.
6437 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6438 lt_cv_file_magic_cmd=/usr/bin/file
6439 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6440 ;;
6441 esac
6442 else
6443 lt_cv_deplibs_check_method=pass_all
6444 fi
6445 ;;
6446
6447 gnu*)
6448 lt_cv_deplibs_check_method=pass_all
6449 ;;
6450
6451 haiku*)
6452 lt_cv_deplibs_check_method=pass_all
6453 ;;
6454
6455 hpux10.20* | hpux11*)
6456 lt_cv_file_magic_cmd=/usr/bin/file
6457 case $host_cpu in
6458 ia64*)
6459 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6460 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6461 ;;
6462 hppa*64*)
6463 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]'
6464 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6465 ;;
6466 *)
6467 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6468 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6469 ;;
6470 esac
6471 ;;
6472
6473 interix[3-9]*)
6474 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6476 ;;
6477
6478 irix5* | irix6* | nonstopux*)
6479 case $LD in
6480 *-32|*"-32 ") libmagic=32-bit;;
6481 *-n32|*"-n32 ") libmagic=N32;;
6482 *-64|*"-64 ") libmagic=64-bit;;
6483 *) libmagic=never-match;;
6484 esac
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487
6488 # This must be glibc/ELF.
6489 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6490 lt_cv_deplibs_check_method=pass_all
6491 ;;
6492
6493 netbsd*)
6494 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6496 else
6497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6498 fi
6499 ;;
6500
6501 newos6*)
6502 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6503 lt_cv_file_magic_cmd=/usr/bin/file
6504 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6505 ;;
6506
6507 *nto* | *qnx*)
6508 lt_cv_deplibs_check_method=pass_all
6509 ;;
6510
6511 openbsd*)
6512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6514 else
6515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6516 fi
6517 ;;
6518
6519 osf3* | osf4* | osf5*)
6520 lt_cv_deplibs_check_method=pass_all
6521 ;;
6522
6523 rdos*)
6524 lt_cv_deplibs_check_method=pass_all
6525 ;;
6526
6527 solaris*)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
6530
6531 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6532 lt_cv_deplibs_check_method=pass_all
6533 ;;
6534
6535 sysv4 | sysv4.3*)
6536 case $host_vendor in
6537 motorola)
6538 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]'
6539 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6540 ;;
6541 ncr)
6542 lt_cv_deplibs_check_method=pass_all
6543 ;;
6544 sequent)
6545 lt_cv_file_magic_cmd='/bin/file'
6546 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6547 ;;
6548 sni)
6549 lt_cv_file_magic_cmd='/bin/file'
6550 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6551 lt_cv_file_magic_test_file=/lib/libc.so
6552 ;;
6553 siemens)
6554 lt_cv_deplibs_check_method=pass_all
6555 ;;
6556 pc)
6557 lt_cv_deplibs_check_method=pass_all
6558 ;;
6559 esac
6560 ;;
6561
6562 tpf*)
6563 lt_cv_deplibs_check_method=pass_all
6564 ;;
6565 esac
6566
6567 fi
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6569 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6570
6571 file_magic_glob=
6572 want_nocaseglob=no
6573 if test "$build" = "$host"; then
6574 case $host_os in
6575 mingw* | pw32*)
6576 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6577 want_nocaseglob=yes
6578 else
6579 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6580 fi
6581 ;;
6582 esac
6583 fi
6584
6585 file_magic_cmd=$lt_cv_file_magic_cmd
6586 deplibs_check_method=$lt_cv_deplibs_check_method
6587 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610 if test -n "$ac_tool_prefix"; then
6611 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6612 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if ${ac_cv_prog_DLLTOOL+:} false; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 if test -n "$DLLTOOL"; then
6619 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 break 2
6631 fi
6632 done
6633 done
6634 IFS=$as_save_IFS
6635
6636 fi
6637 fi
6638 DLLTOOL=$ac_cv_prog_DLLTOOL
6639 if test -n "$DLLTOOL"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6641 $as_echo "$DLLTOOL" >&6; }
6642 else
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6645 fi
6646
6647
6648 fi
6649 if test -z "$ac_cv_prog_DLLTOOL"; then
6650 ac_ct_DLLTOOL=$DLLTOOL
6651 # Extract the first word of "dlltool", so it can be a program name with args.
6652 set dummy dlltool; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 if test -n "$ac_ct_DLLTOOL"; then
6659 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6660 else
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664 IFS=$as_save_IFS
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 break 2
6671 fi
6672 done
6673 done
6674 IFS=$as_save_IFS
6675
6676 fi
6677 fi
6678 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6679 if test -n "$ac_ct_DLLTOOL"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6681 $as_echo "$ac_ct_DLLTOOL" >&6; }
6682 else
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6685 fi
6686
6687 if test "x$ac_ct_DLLTOOL" = x; then
6688 DLLTOOL="false"
6689 else
6690 case $cross_compiling:$ac_tool_warned in
6691 yes:)
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6694 ac_tool_warned=yes ;;
6695 esac
6696 DLLTOOL=$ac_ct_DLLTOOL
6697 fi
6698 else
6699 DLLTOOL="$ac_cv_prog_DLLTOOL"
6700 fi
6701
6702 test -z "$DLLTOOL" && DLLTOOL=dlltool
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6714 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6715 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 lt_cv_sharedlib_from_linklib_cmd='unknown'
6719
6720 case $host_os in
6721 cygwin* | mingw* | pw32* | cegcc*)
6722 # two different shell functions defined in ltmain.sh
6723 # decide which to use based on capabilities of $DLLTOOL
6724 case `$DLLTOOL --help 2>&1` in
6725 *--identify-strict*)
6726 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6727 ;;
6728 *)
6729 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6730 ;;
6731 esac
6732 ;;
6733 *)
6734 # fallback: assume linklib IS sharedlib
6735 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6736 ;;
6737 esac
6738
6739 fi
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6741 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6742 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6743 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6744
6745
6746
6747
6748
6749
6750
6751 if test -n "$ac_tool_prefix"; then
6752 for ac_prog in ar
6753 do
6754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if ${ac_cv_prog_AR+:} false; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 if test -n "$AR"; then
6762 ac_cv_prog_AR="$AR" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 AR=$ac_cv_prog_AR
6782 if test -n "$AR"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6784 $as_echo "$AR" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790
6791 test -n "$AR" && break
6792 done
6793 fi
6794 if test -z "$AR"; then
6795 ac_ct_AR=$AR
6796 for ac_prog in ar
6797 do
6798 # Extract the first word of "$ac_prog", so it can be a program name with args.
6799 set dummy $ac_prog; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$ac_ct_AR"; then
6806 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815 ac_cv_prog_ac_ct_AR="$ac_prog"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6826 if test -n "$ac_ct_AR"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6828 $as_echo "$ac_ct_AR" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834
6835 test -n "$ac_ct_AR" && break
6836 done
6837
6838 if test "x$ac_ct_AR" = x; then
6839 AR="false"
6840 else
6841 case $cross_compiling:$ac_tool_warned in
6842 yes:)
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847 AR=$ac_ct_AR
6848 fi
6849 fi
6850
6851 : ${AR=ar}
6852 : ${AR_FLAGS=cru}
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6865 $as_echo_n "checking for archiver @FILE support... " >&6; }
6866 if ${lt_cv_ar_at_file+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 lt_cv_ar_at_file=no
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872
6873 int
6874 main ()
6875 {
6876
6877 ;
6878 return 0;
6879 }
6880 _ACEOF
6881 if ac_fn_c_try_compile "$LINENO"; then :
6882 echo conftest.$ac_objext > conftest.lst
6883 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6885 (eval $lt_ar_try) 2>&5
6886 ac_status=$?
6887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6888 test $ac_status = 0; }
6889 if test "$ac_status" -eq 0; then
6890 # Ensure the archiver fails upon bogus file names.
6891 rm -f conftest.$ac_objext libconftest.a
6892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6893 (eval $lt_ar_try) 2>&5
6894 ac_status=$?
6895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6896 test $ac_status = 0; }
6897 if test "$ac_status" -ne 0; then
6898 lt_cv_ar_at_file=@
6899 fi
6900 fi
6901 rm -f conftest.* libconftest.a
6902
6903 fi
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905
6906 fi
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6908 $as_echo "$lt_cv_ar_at_file" >&6; }
6909
6910 if test "x$lt_cv_ar_at_file" = xno; then
6911 archiver_list_spec=
6912 else
6913 archiver_list_spec=$lt_cv_ar_at_file
6914 fi
6915
6916
6917
6918
6919
6920
6921
6922 if test -n "$ac_tool_prefix"; then
6923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6924 set dummy ${ac_tool_prefix}strip; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_STRIP+:} false; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 if test -n "$STRIP"; then
6931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 STRIP=$ac_cv_prog_STRIP
6951 if test -n "$STRIP"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6953 $as_echo "$STRIP" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959
6960 fi
6961 if test -z "$ac_cv_prog_STRIP"; then
6962 ac_ct_STRIP=$STRIP
6963 # Extract the first word of "strip", so it can be a program name with args.
6964 set dummy strip; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 if test -n "$ac_ct_STRIP"; then
6971 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6972 else
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6975 do
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980 ac_cv_prog_ac_ct_STRIP="strip"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 break 2
6983 fi
6984 done
6985 done
6986 IFS=$as_save_IFS
6987
6988 fi
6989 fi
6990 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6991 if test -n "$ac_ct_STRIP"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6993 $as_echo "$ac_ct_STRIP" >&6; }
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 fi
6998
6999 if test "x$ac_ct_STRIP" = x; then
7000 STRIP=":"
7001 else
7002 case $cross_compiling:$ac_tool_warned in
7003 yes:)
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7006 ac_tool_warned=yes ;;
7007 esac
7008 STRIP=$ac_ct_STRIP
7009 fi
7010 else
7011 STRIP="$ac_cv_prog_STRIP"
7012 fi
7013
7014 test -z "$STRIP" && STRIP=:
7015
7016
7017
7018
7019
7020
7021 if test -n "$ac_tool_prefix"; then
7022 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7023 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_prog_RANLIB+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 if test -n "$RANLIB"; then
7030 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7042 fi
7043 done
7044 done
7045 IFS=$as_save_IFS
7046
7047 fi
7048 fi
7049 RANLIB=$ac_cv_prog_RANLIB
7050 if test -n "$RANLIB"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7052 $as_echo "$RANLIB" >&6; }
7053 else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7056 fi
7057
7058
7059 fi
7060 if test -z "$ac_cv_prog_RANLIB"; then
7061 ac_ct_RANLIB=$RANLIB
7062 # Extract the first word of "ranlib", so it can be a program name with args.
7063 set dummy ranlib; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 if test -n "$ac_ct_RANLIB"; then
7070 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_ac_ct_RANLIB="ranlib"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7082 fi
7083 done
7084 done
7085 IFS=$as_save_IFS
7086
7087 fi
7088 fi
7089 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7090 if test -n "$ac_ct_RANLIB"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7092 $as_echo "$ac_ct_RANLIB" >&6; }
7093 else
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7096 fi
7097
7098 if test "x$ac_ct_RANLIB" = x; then
7099 RANLIB=":"
7100 else
7101 case $cross_compiling:$ac_tool_warned in
7102 yes:)
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7105 ac_tool_warned=yes ;;
7106 esac
7107 RANLIB=$ac_ct_RANLIB
7108 fi
7109 else
7110 RANLIB="$ac_cv_prog_RANLIB"
7111 fi
7112
7113 test -z "$RANLIB" && RANLIB=:
7114
7115
7116
7117
7118
7119
7120 # Determine commands to create old-style static archives.
7121 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7122 old_postinstall_cmds='chmod 644 $oldlib'
7123 old_postuninstall_cmds=
7124
7125 if test -n "$RANLIB"; then
7126 case $host_os in
7127 openbsd*)
7128 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7129 ;;
7130 *)
7131 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7132 ;;
7133 esac
7134 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7135 fi
7136
7137 case $host_os in
7138 darwin*)
7139 lock_old_archive_extraction=yes ;;
7140 *)
7141 lock_old_archive_extraction=no ;;
7142 esac
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182 # If no C compiler was specified, use CC.
7183 LTCC=${LTCC-"$CC"}
7184
7185 # If no C compiler flags were specified, use CFLAGS.
7186 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7187
7188 # Allow CC to be a program name with arguments.
7189 compiler=$CC
7190
7191
7192 # Check for command to grab the raw symbol name followed by C symbol from nm.
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7194 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7195 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198
7199 # These are sane defaults that work on at least a few old systems.
7200 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7201
7202 # Character class describing NM global symbol codes.
7203 symcode='[BCDEGRST]'
7204
7205 # Regexp to match symbols that can be accessed directly from C.
7206 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7207
7208 # Define system-specific variables.
7209 case $host_os in
7210 aix*)
7211 symcode='[BCDT]'
7212 ;;
7213 cygwin* | mingw* | pw32* | cegcc*)
7214 symcode='[ABCDGISTW]'
7215 ;;
7216 hpux*)
7217 if test "$host_cpu" = ia64; then
7218 symcode='[ABCDEGRST]'
7219 fi
7220 ;;
7221 irix* | nonstopux*)
7222 symcode='[BCDEGRST]'
7223 ;;
7224 osf*)
7225 symcode='[BCDEGQRST]'
7226 ;;
7227 solaris*)
7228 symcode='[BDRT]'
7229 ;;
7230 sco3.2v5*)
7231 symcode='[DT]'
7232 ;;
7233 sysv4.2uw2*)
7234 symcode='[DT]'
7235 ;;
7236 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7237 symcode='[ABDT]'
7238 ;;
7239 sysv4)
7240 symcode='[DFNSTU]'
7241 ;;
7242 esac
7243
7244 # If we're using GNU nm, then use its standard symbol codes.
7245 case `$NM -V 2>&1` in
7246 *GNU* | *'with BFD'*)
7247 symcode='[ABCDGIRSTW]' ;;
7248 esac
7249
7250 # Transform an extracted symbol line into a proper C declaration.
7251 # Some systems (esp. on ia64) link data and code symbols differently,
7252 # so use this general approach.
7253 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7254
7255 # Transform an extracted symbol line into symbol name and symbol address
7256 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7257 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'"
7258
7259 # Handle CRLF in mingw tool chain
7260 opt_cr=
7261 case $build_os in
7262 mingw*)
7263 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7264 ;;
7265 esac
7266
7267 # Try without a prefix underscore, then with it.
7268 for ac_symprfx in "" "_"; do
7269
7270 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7271 symxfrm="\\1 $ac_symprfx\\2 \\2"
7272
7273 # Write the raw and C identifiers.
7274 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7275 # Fake it for dumpbin and say T for any non-static function
7276 # and D for any global variable.
7277 # Also find C++ and __fastcall symbols from MSVC++,
7278 # which start with @ or ?.
7279 lt_cv_sys_global_symbol_pipe="$AWK '"\
7280 " {last_section=section; section=\$ 3};"\
7281 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7282 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7283 " \$ 0!~/External *\|/{next};"\
7284 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7285 " {if(hide[section]) next};"\
7286 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7287 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7288 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7289 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7290 " ' prfx=^$ac_symprfx"
7291 else
7292 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7293 fi
7294 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7295
7296 # Check to see that the pipe works correctly.
7297 pipe_works=no
7298
7299 rm -f conftest*
7300 cat > conftest.$ac_ext <<_LT_EOF
7301 #ifdef __cplusplus
7302 extern "C" {
7303 #endif
7304 char nm_test_var;
7305 void nm_test_func(void);
7306 void nm_test_func(void){}
7307 #ifdef __cplusplus
7308 }
7309 #endif
7310 int main(){nm_test_var='a';nm_test_func();return(0);}
7311 _LT_EOF
7312
7313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7314 (eval $ac_compile) 2>&5
7315 ac_status=$?
7316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7317 test $ac_status = 0; }; then
7318 # Now try to grab the symbols.
7319 nlist=conftest.nm
7320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7321 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7322 ac_status=$?
7323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7324 test $ac_status = 0; } && test -s "$nlist"; then
7325 # Try sorting and uniquifying the output.
7326 if sort "$nlist" | uniq > "$nlist"T; then
7327 mv -f "$nlist"T "$nlist"
7328 else
7329 rm -f "$nlist"T
7330 fi
7331
7332 # Make sure that we snagged all the symbols we need.
7333 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7334 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7335 cat <<_LT_EOF > conftest.$ac_ext
7336 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7337 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7338 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7339 relocations are performed -- see ld's documentation on pseudo-relocs. */
7340 # define LT_DLSYM_CONST
7341 #elif defined(__osf__)
7342 /* This system does not cope well with relocations in const data. */
7343 # define LT_DLSYM_CONST
7344 #else
7345 # define LT_DLSYM_CONST const
7346 #endif
7347
7348 #ifdef __cplusplus
7349 extern "C" {
7350 #endif
7351
7352 _LT_EOF
7353 # Now generate the symbol file.
7354 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7355
7356 cat <<_LT_EOF >> conftest.$ac_ext
7357
7358 /* The mapping between symbol names and symbols. */
7359 LT_DLSYM_CONST struct {
7360 const char *name;
7361 void *address;
7362 }
7363 lt__PROGRAM__LTX_preloaded_symbols[] =
7364 {
7365 { "@PROGRAM@", (void *) 0 },
7366 _LT_EOF
7367 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7368 cat <<\_LT_EOF >> conftest.$ac_ext
7369 {0, (void *) 0}
7370 };
7371
7372 /* This works around a problem in FreeBSD linker */
7373 #ifdef FREEBSD_WORKAROUND
7374 static const void *lt_preloaded_setup() {
7375 return lt__PROGRAM__LTX_preloaded_symbols;
7376 }
7377 #endif
7378
7379 #ifdef __cplusplus
7380 }
7381 #endif
7382 _LT_EOF
7383 # Now try linking the two files.
7384 mv conftest.$ac_objext conftstm.$ac_objext
7385 lt_globsym_save_LIBS=$LIBS
7386 lt_globsym_save_CFLAGS=$CFLAGS
7387 LIBS="conftstm.$ac_objext"
7388 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7390 (eval $ac_link) 2>&5
7391 ac_status=$?
7392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7394 pipe_works=yes
7395 fi
7396 LIBS=$lt_globsym_save_LIBS
7397 CFLAGS=$lt_globsym_save_CFLAGS
7398 else
7399 echo "cannot find nm_test_func in $nlist" >&5
7400 fi
7401 else
7402 echo "cannot find nm_test_var in $nlist" >&5
7403 fi
7404 else
7405 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7406 fi
7407 else
7408 echo "$progname: failed program was:" >&5
7409 cat conftest.$ac_ext >&5
7410 fi
7411 rm -rf conftest* conftst*
7412
7413 # Do not use the global_symbol_pipe unless it works.
7414 if test "$pipe_works" = yes; then
7415 break
7416 else
7417 lt_cv_sys_global_symbol_pipe=
7418 fi
7419 done
7420
7421 fi
7422
7423 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7424 lt_cv_sys_global_symbol_to_cdecl=
7425 fi
7426 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7428 $as_echo "failed" >&6; }
7429 else
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7431 $as_echo "ok" >&6; }
7432 fi
7433
7434 # Response file support.
7435 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7436 nm_file_list_spec='@'
7437 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7438 nm_file_list_spec='@'
7439 fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7468 $as_echo_n "checking for sysroot... " >&6; }
7469
7470 # Check whether --with-sysroot was given.
7471 if test "${with_sysroot+set}" = set; then :
7472 withval=$with_sysroot;
7473 else
7474 with_sysroot=no
7475 fi
7476
7477
7478 lt_sysroot=
7479 case ${with_sysroot} in #(
7480 yes)
7481 if test "$GCC" = yes; then
7482 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7483 fi
7484 ;; #(
7485 /*)
7486 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7487 ;; #(
7488 no|'')
7489 ;; #(
7490 *)
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7492 $as_echo "${with_sysroot}" >&6; }
7493 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7494 ;;
7495 esac
7496
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7498 $as_echo "${lt_sysroot:-no}" >&6; }
7499
7500
7501
7502
7503
7504 # Check whether --enable-libtool-lock was given.
7505 if test "${enable_libtool_lock+set}" = set; then :
7506 enableval=$enable_libtool_lock;
7507 fi
7508
7509 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7510
7511 # Some flags need to be propagated to the compiler or linker for good
7512 # libtool support.
7513 case $host in
7514 ia64-*-hpux*)
7515 # Find out which ABI we are using.
7516 echo 'int i;' > conftest.$ac_ext
7517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7518 (eval $ac_compile) 2>&5
7519 ac_status=$?
7520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7521 test $ac_status = 0; }; then
7522 case `/usr/bin/file conftest.$ac_objext` in
7523 *ELF-32*)
7524 HPUX_IA64_MODE="32"
7525 ;;
7526 *ELF-64*)
7527 HPUX_IA64_MODE="64"
7528 ;;
7529 esac
7530 fi
7531 rm -rf conftest*
7532 ;;
7533 *-*-irix6*)
7534 # Find out which ABI we are using.
7535 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7537 (eval $ac_compile) 2>&5
7538 ac_status=$?
7539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540 test $ac_status = 0; }; then
7541 if test "$lt_cv_prog_gnu_ld" = yes; then
7542 case `/usr/bin/file conftest.$ac_objext` in
7543 *32-bit*)
7544 LD="${LD-ld} -melf32bsmip"
7545 ;;
7546 *N32*)
7547 LD="${LD-ld} -melf32bmipn32"
7548 ;;
7549 *64-bit*)
7550 LD="${LD-ld} -melf64bmip"
7551 ;;
7552 esac
7553 else
7554 case `/usr/bin/file conftest.$ac_objext` in
7555 *32-bit*)
7556 LD="${LD-ld} -32"
7557 ;;
7558 *N32*)
7559 LD="${LD-ld} -n32"
7560 ;;
7561 *64-bit*)
7562 LD="${LD-ld} -64"
7563 ;;
7564 esac
7565 fi
7566 fi
7567 rm -rf conftest*
7568 ;;
7569
7570 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7571 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7572 # Find out which ABI we are using.
7573 echo 'int i;' > conftest.$ac_ext
7574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7575 (eval $ac_compile) 2>&5
7576 ac_status=$?
7577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7578 test $ac_status = 0; }; then
7579 case `/usr/bin/file conftest.o` in
7580 *32-bit*)
7581 case $host in
7582 x86_64-*kfreebsd*-gnu)
7583 LD="${LD-ld} -m elf_i386_fbsd"
7584 ;;
7585 x86_64-*linux*)
7586 LD="${LD-ld} -m elf_i386"
7587 ;;
7588 ppc64-*linux*|powerpc64-*linux*)
7589 LD="${LD-ld} -m elf32ppclinux"
7590 ;;
7591 s390x-*linux*)
7592 LD="${LD-ld} -m elf_s390"
7593 ;;
7594 sparc64-*linux*)
7595 LD="${LD-ld} -m elf32_sparc"
7596 ;;
7597 esac
7598 ;;
7599 *64-bit*)
7600 case $host in
7601 x86_64-*kfreebsd*-gnu)
7602 LD="${LD-ld} -m elf_x86_64_fbsd"
7603 ;;
7604 x86_64-*linux*)
7605 LD="${LD-ld} -m elf_x86_64"
7606 ;;
7607 ppc*-*linux*|powerpc*-*linux*)
7608 LD="${LD-ld} -m elf64ppc"
7609 ;;
7610 s390*-*linux*|s390*-*tpf*)
7611 LD="${LD-ld} -m elf64_s390"
7612 ;;
7613 sparc*-*linux*)
7614 LD="${LD-ld} -m elf64_sparc"
7615 ;;
7616 esac
7617 ;;
7618 esac
7619 fi
7620 rm -rf conftest*
7621 ;;
7622
7623 *-*-sco3.2v5*)
7624 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7625 SAVE_CFLAGS="$CFLAGS"
7626 CFLAGS="$CFLAGS -belf"
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7628 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7629 if ${lt_cv_cc_needs_belf+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 ac_ext=c
7633 ac_cpp='$CPP $CPPFLAGS'
7634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7637
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640
7641 int
7642 main ()
7643 {
7644
7645 ;
7646 return 0;
7647 }
7648 _ACEOF
7649 if ac_fn_c_try_link "$LINENO"; then :
7650 lt_cv_cc_needs_belf=yes
7651 else
7652 lt_cv_cc_needs_belf=no
7653 fi
7654 rm -f core conftest.err conftest.$ac_objext \
7655 conftest$ac_exeext conftest.$ac_ext
7656 ac_ext=c
7657 ac_cpp='$CPP $CPPFLAGS'
7658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7661
7662 fi
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7664 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7665 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7666 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7667 CFLAGS="$SAVE_CFLAGS"
7668 fi
7669 ;;
7670 *-*solaris*)
7671 # Find out which ABI we are using.
7672 echo 'int i;' > conftest.$ac_ext
7673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7674 (eval $ac_compile) 2>&5
7675 ac_status=$?
7676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7677 test $ac_status = 0; }; then
7678 case `/usr/bin/file conftest.o` in
7679 *64-bit*)
7680 case $lt_cv_prog_gnu_ld in
7681 yes*)
7682 case $host in
7683 i?86-*-solaris*)
7684 LD="${LD-ld} -m elf_x86_64"
7685 ;;
7686 sparc*-*-solaris*)
7687 LD="${LD-ld} -m elf64_sparc"
7688 ;;
7689 esac
7690 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7691 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7692 LD="${LD-ld}_sol2"
7693 fi
7694 ;;
7695 *)
7696 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7697 LD="${LD-ld} -64"
7698 fi
7699 ;;
7700 esac
7701 ;;
7702 esac
7703 fi
7704 rm -rf conftest*
7705 ;;
7706 esac
7707
7708 need_locks="$enable_libtool_lock"
7709
7710 if test -n "$ac_tool_prefix"; then
7711 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7712 set dummy ${ac_tool_prefix}mt; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 if test -n "$MANIFEST_TOOL"; then
7719 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732 done
7733 done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7739 if test -n "$MANIFEST_TOOL"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7741 $as_echo "$MANIFEST_TOOL" >&6; }
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747
7748 fi
7749 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7750 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7751 # Extract the first word of "mt", so it can be a program name with args.
7752 set dummy mt; ac_word=$2
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754 $as_echo_n "checking for $ac_word... " >&6; }
7755 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 if test -n "$ac_ct_MANIFEST_TOOL"; then
7759 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7771 fi
7772 done
7773 done
7774 IFS=$as_save_IFS
7775
7776 fi
7777 fi
7778 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7779 if test -n "$ac_ct_MANIFEST_TOOL"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7781 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7782 else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7785 fi
7786
7787 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7788 MANIFEST_TOOL=":"
7789 else
7790 case $cross_compiling:$ac_tool_warned in
7791 yes:)
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7794 ac_tool_warned=yes ;;
7795 esac
7796 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7797 fi
7798 else
7799 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7800 fi
7801
7802 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7804 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7805 if ${lt_cv_path_mainfest_tool+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 lt_cv_path_mainfest_tool=no
7809 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7810 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7811 cat conftest.err >&5
7812 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7813 lt_cv_path_mainfest_tool=yes
7814 fi
7815 rm -f conftest*
7816 fi
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7818 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7819 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7820 MANIFEST_TOOL=:
7821 fi
7822
7823
7824
7825
7826
7827
7828 case $host_os in
7829 rhapsody* | darwin*)
7830 if test -n "$ac_tool_prefix"; then
7831 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7832 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 if test -n "$DSYMUTIL"; then
7839 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7840 else
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7843 do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7851 fi
7852 done
7853 done
7854 IFS=$as_save_IFS
7855
7856 fi
7857 fi
7858 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7859 if test -n "$DSYMUTIL"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7861 $as_echo "$DSYMUTIL" >&6; }
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7865 fi
7866
7867
7868 fi
7869 if test -z "$ac_cv_prog_DSYMUTIL"; then
7870 ac_ct_DSYMUTIL=$DSYMUTIL
7871 # Extract the first word of "dsymutil", so it can be a program name with args.
7872 set dummy dsymutil; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 if test -n "$ac_ct_DSYMUTIL"; then
7879 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7880 else
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7883 do
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7888 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 break 2
7891 fi
7892 done
7893 done
7894 IFS=$as_save_IFS
7895
7896 fi
7897 fi
7898 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7899 if test -n "$ac_ct_DSYMUTIL"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7901 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7905 fi
7906
7907 if test "x$ac_ct_DSYMUTIL" = x; then
7908 DSYMUTIL=":"
7909 else
7910 case $cross_compiling:$ac_tool_warned in
7911 yes:)
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7914 ac_tool_warned=yes ;;
7915 esac
7916 DSYMUTIL=$ac_ct_DSYMUTIL
7917 fi
7918 else
7919 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7920 fi
7921
7922 if test -n "$ac_tool_prefix"; then
7923 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7924 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if ${ac_cv_prog_NMEDIT+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 if test -n "$NMEDIT"; then
7931 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7932 else
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 for as_dir in $PATH
7935 do
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7940 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 break 2
7943 fi
7944 done
7945 done
7946 IFS=$as_save_IFS
7947
7948 fi
7949 fi
7950 NMEDIT=$ac_cv_prog_NMEDIT
7951 if test -n "$NMEDIT"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7953 $as_echo "$NMEDIT" >&6; }
7954 else
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7957 fi
7958
7959
7960 fi
7961 if test -z "$ac_cv_prog_NMEDIT"; then
7962 ac_ct_NMEDIT=$NMEDIT
7963 # Extract the first word of "nmedit", so it can be a program name with args.
7964 set dummy nmedit; ac_word=$2
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966 $as_echo_n "checking for $ac_word... " >&6; }
7967 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 if test -n "$ac_ct_NMEDIT"; then
7971 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7972 else
7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 for as_dir in $PATH
7975 do
7976 IFS=$as_save_IFS
7977 test -z "$as_dir" && as_dir=.
7978 for ac_exec_ext in '' $ac_executable_extensions; do
7979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7980 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7982 break 2
7983 fi
7984 done
7985 done
7986 IFS=$as_save_IFS
7987
7988 fi
7989 fi
7990 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7991 if test -n "$ac_ct_NMEDIT"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7993 $as_echo "$ac_ct_NMEDIT" >&6; }
7994 else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997 fi
7998
7999 if test "x$ac_ct_NMEDIT" = x; then
8000 NMEDIT=":"
8001 else
8002 case $cross_compiling:$ac_tool_warned in
8003 yes:)
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8006 ac_tool_warned=yes ;;
8007 esac
8008 NMEDIT=$ac_ct_NMEDIT
8009 fi
8010 else
8011 NMEDIT="$ac_cv_prog_NMEDIT"
8012 fi
8013
8014 if test -n "$ac_tool_prefix"; then
8015 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8016 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if ${ac_cv_prog_LIPO+:} false; then :
8020 $as_echo_n "(cached) " >&6
8021 else
8022 if test -n "$LIPO"; then
8023 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036 done
8037 done
8038 IFS=$as_save_IFS
8039
8040 fi
8041 fi
8042 LIPO=$ac_cv_prog_LIPO
8043 if test -n "$LIPO"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8045 $as_echo "$LIPO" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8049 fi
8050
8051
8052 fi
8053 if test -z "$ac_cv_prog_LIPO"; then
8054 ac_ct_LIPO=$LIPO
8055 # Extract the first word of "lipo", so it can be a program name with args.
8056 set dummy lipo; ac_word=$2
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058 $as_echo_n "checking for $ac_word... " >&6; }
8059 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 if test -n "$ac_ct_LIPO"; then
8063 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8064 else
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH
8067 do
8068 IFS=$as_save_IFS
8069 test -z "$as_dir" && as_dir=.
8070 for ac_exec_ext in '' $ac_executable_extensions; do
8071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072 ac_cv_prog_ac_ct_LIPO="lipo"
8073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 break 2
8075 fi
8076 done
8077 done
8078 IFS=$as_save_IFS
8079
8080 fi
8081 fi
8082 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8083 if test -n "$ac_ct_LIPO"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8085 $as_echo "$ac_ct_LIPO" >&6; }
8086 else
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8089 fi
8090
8091 if test "x$ac_ct_LIPO" = x; then
8092 LIPO=":"
8093 else
8094 case $cross_compiling:$ac_tool_warned in
8095 yes:)
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8098 ac_tool_warned=yes ;;
8099 esac
8100 LIPO=$ac_ct_LIPO
8101 fi
8102 else
8103 LIPO="$ac_cv_prog_LIPO"
8104 fi
8105
8106 if test -n "$ac_tool_prefix"; then
8107 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8108 set dummy ${ac_tool_prefix}otool; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_prog_OTOOL+:} false; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 if test -n "$OTOOL"; then
8115 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8119 do
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8127 fi
8128 done
8129 done
8130 IFS=$as_save_IFS
8131
8132 fi
8133 fi
8134 OTOOL=$ac_cv_prog_OTOOL
8135 if test -n "$OTOOL"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8137 $as_echo "$OTOOL" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8141 fi
8142
8143
8144 fi
8145 if test -z "$ac_cv_prog_OTOOL"; then
8146 ac_ct_OTOOL=$OTOOL
8147 # Extract the first word of "otool", so it can be a program name with args.
8148 set dummy otool; ac_word=$2
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150 $as_echo_n "checking for $ac_word... " >&6; }
8151 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8152 $as_echo_n "(cached) " >&6
8153 else
8154 if test -n "$ac_ct_OTOOL"; then
8155 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8156 else
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 for as_dir in $PATH
8159 do
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8164 ac_cv_prog_ac_ct_OTOOL="otool"
8165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 break 2
8167 fi
8168 done
8169 done
8170 IFS=$as_save_IFS
8171
8172 fi
8173 fi
8174 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8175 if test -n "$ac_ct_OTOOL"; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8177 $as_echo "$ac_ct_OTOOL" >&6; }
8178 else
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8181 fi
8182
8183 if test "x$ac_ct_OTOOL" = x; then
8184 OTOOL=":"
8185 else
8186 case $cross_compiling:$ac_tool_warned in
8187 yes:)
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8190 ac_tool_warned=yes ;;
8191 esac
8192 OTOOL=$ac_ct_OTOOL
8193 fi
8194 else
8195 OTOOL="$ac_cv_prog_OTOOL"
8196 fi
8197
8198 if test -n "$ac_tool_prefix"; then
8199 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8200 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if ${ac_cv_prog_OTOOL64+:} false; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 if test -n "$OTOOL64"; then
8207 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8211 do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8216 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220 done
8221 done
8222 IFS=$as_save_IFS
8223
8224 fi
8225 fi
8226 OTOOL64=$ac_cv_prog_OTOOL64
8227 if test -n "$OTOOL64"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8229 $as_echo "$OTOOL64" >&6; }
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 fi
8234
8235
8236 fi
8237 if test -z "$ac_cv_prog_OTOOL64"; then
8238 ac_ct_OTOOL64=$OTOOL64
8239 # Extract the first word of "otool64", so it can be a program name with args.
8240 set dummy otool64; ac_word=$2
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242 $as_echo_n "checking for $ac_word... " >&6; }
8243 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8244 $as_echo_n "(cached) " >&6
8245 else
8246 if test -n "$ac_ct_OTOOL64"; then
8247 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8248 else
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 for as_dir in $PATH
8251 do
8252 IFS=$as_save_IFS
8253 test -z "$as_dir" && as_dir=.
8254 for ac_exec_ext in '' $ac_executable_extensions; do
8255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8256 ac_cv_prog_ac_ct_OTOOL64="otool64"
8257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8258 break 2
8259 fi
8260 done
8261 done
8262 IFS=$as_save_IFS
8263
8264 fi
8265 fi
8266 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8267 if test -n "$ac_ct_OTOOL64"; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8269 $as_echo "$ac_ct_OTOOL64" >&6; }
8270 else
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8273 fi
8274
8275 if test "x$ac_ct_OTOOL64" = x; then
8276 OTOOL64=":"
8277 else
8278 case $cross_compiling:$ac_tool_warned in
8279 yes:)
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8282 ac_tool_warned=yes ;;
8283 esac
8284 OTOOL64=$ac_ct_OTOOL64
8285 fi
8286 else
8287 OTOOL64="$ac_cv_prog_OTOOL64"
8288 fi
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8317 $as_echo_n "checking for -single_module linker flag... " >&6; }
8318 if ${lt_cv_apple_cc_single_mod+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 lt_cv_apple_cc_single_mod=no
8322 if test -z "${LT_MULTI_MODULE}"; then
8323 # By default we will add the -single_module flag. You can override
8324 # by either setting the environment variable LT_MULTI_MODULE
8325 # non-empty at configure time, or by adding -multi_module to the
8326 # link flags.
8327 rm -rf libconftest.dylib*
8328 echo "int foo(void){return 1;}" > conftest.c
8329 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8330 -dynamiclib -Wl,-single_module conftest.c" >&5
8331 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8332 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8333 _lt_result=$?
8334 # If there is a non-empty error log, and "single_module"
8335 # appears in it, assume the flag caused a linker warning
8336 if test -s conftest.err && $GREP single_module conftest.err; then
8337 cat conftest.err >&5
8338 # Otherwise, if the output was created with a 0 exit code from
8339 # the compiler, it worked.
8340 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8341 lt_cv_apple_cc_single_mod=yes
8342 else
8343 cat conftest.err >&5
8344 fi
8345 rm -rf libconftest.dylib*
8346 rm -f conftest.*
8347 fi
8348 fi
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8350 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8351
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8353 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8354 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 lt_cv_ld_exported_symbols_list=no
8358 save_LDFLAGS=$LDFLAGS
8359 echo "_main" > conftest.sym
8360 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363
8364 int
8365 main ()
8366 {
8367
8368 ;
8369 return 0;
8370 }
8371 _ACEOF
8372 if ac_fn_c_try_link "$LINENO"; then :
8373 lt_cv_ld_exported_symbols_list=yes
8374 else
8375 lt_cv_ld_exported_symbols_list=no
8376 fi
8377 rm -f core conftest.err conftest.$ac_objext \
8378 conftest$ac_exeext conftest.$ac_ext
8379 LDFLAGS="$save_LDFLAGS"
8380
8381 fi
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8383 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8384
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8386 $as_echo_n "checking for -force_load linker flag... " >&6; }
8387 if ${lt_cv_ld_force_load+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 lt_cv_ld_force_load=no
8391 cat > conftest.c << _LT_EOF
8392 int forced_loaded() { return 2;}
8393 _LT_EOF
8394 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8395 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8396 echo "$AR cru libconftest.a conftest.o" >&5
8397 $AR cru libconftest.a conftest.o 2>&5
8398 echo "$RANLIB libconftest.a" >&5
8399 $RANLIB libconftest.a 2>&5
8400 cat > conftest.c << _LT_EOF
8401 int main() { return 0;}
8402 _LT_EOF
8403 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8404 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8405 _lt_result=$?
8406 if test -s conftest.err && $GREP force_load conftest.err; then
8407 cat conftest.err >&5
8408 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8409 lt_cv_ld_force_load=yes
8410 else
8411 cat conftest.err >&5
8412 fi
8413 rm -f conftest.err libconftest.a conftest conftest.c
8414 rm -rf conftest.dSYM
8415
8416 fi
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8418 $as_echo "$lt_cv_ld_force_load" >&6; }
8419 case $host_os in
8420 rhapsody* | darwin1.[012])
8421 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8422 darwin1.*)
8423 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8424 darwin*) # darwin 5.x on
8425 # if running on 10.5 or later, the deployment target defaults
8426 # to the OS version, if on x86, and 10.4, the deployment
8427 # target defaults to 10.4. Don't you love it?
8428 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8429 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8430 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8431 10.[012]*)
8432 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8433 10.*)
8434 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8435 esac
8436 ;;
8437 esac
8438 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8439 _lt_dar_single_mod='$single_module'
8440 fi
8441 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8442 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8443 else
8444 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8445 fi
8446 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8447 _lt_dsymutil='~$DSYMUTIL $lib || :'
8448 else
8449 _lt_dsymutil=
8450 fi
8451 ;;
8452 esac
8453
8454 for ac_header in dlfcn.h
8455 do :
8456 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8457 "
8458 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8459 cat >>confdefs.h <<_ACEOF
8460 #define HAVE_DLFCN_H 1
8461 _ACEOF
8462
8463 fi
8464
8465 done
8466
8467
8468
8469
8470
8471 # Set options
8472 # Check whether --enable-static was given.
8473 if test "${enable_static+set}" = set; then :
8474 enableval=$enable_static; p=${PACKAGE-default}
8475 case $enableval in
8476 yes) enable_static=yes ;;
8477 no) enable_static=no ;;
8478 *)
8479 enable_static=no
8480 # Look at the argument we got. We use all the common list separators.
8481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8482 for pkg in $enableval; do
8483 IFS="$lt_save_ifs"
8484 if test "X$pkg" = "X$p"; then
8485 enable_static=yes
8486 fi
8487 done
8488 IFS="$lt_save_ifs"
8489 ;;
8490 esac
8491 else
8492 enable_static=no
8493 fi
8494
8495
8496
8497
8498
8499
8500
8501
8502 # Check whether --with-pic was given.
8503 if test "${with_pic+set}" = set; then :
8504 withval=$with_pic; lt_p=${PACKAGE-default}
8505 case $withval in
8506 yes|no) pic_mode=$withval ;;
8507 *)
8508 pic_mode=default
8509 # Look at the argument we got. We use all the common list separators.
8510 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8511 for lt_pkg in $withval; do
8512 IFS="$lt_save_ifs"
8513 if test "X$lt_pkg" = "X$lt_p"; then
8514 pic_mode=yes
8515 fi
8516 done
8517 IFS="$lt_save_ifs"
8518 ;;
8519 esac
8520 else
8521 pic_mode=default
8522 fi
8523
8524
8525 test -z "$pic_mode" && pic_mode=yes
8526
8527
8528
8529
8530
8531
8532
8533
8534 enable_dlopen=no
8535
8536
8537 enable_win32_dll=no
8538
8539
8540 # Check whether --enable-shared was given.
8541 if test "${enable_shared+set}" = set; then :
8542 enableval=$enable_shared; p=${PACKAGE-default}
8543 case $enableval in
8544 yes) enable_shared=yes ;;
8545 no) enable_shared=no ;;
8546 *)
8547 enable_shared=no
8548 # Look at the argument we got. We use all the common list separators.
8549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8550 for pkg in $enableval; do
8551 IFS="$lt_save_ifs"
8552 if test "X$pkg" = "X$p"; then
8553 enable_shared=yes
8554 fi
8555 done
8556 IFS="$lt_save_ifs"
8557 ;;
8558 esac
8559 else
8560 enable_shared=yes
8561 fi
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573 # Check whether --enable-fast-install was given.
8574 if test "${enable_fast_install+set}" = set; then :
8575 enableval=$enable_fast_install; p=${PACKAGE-default}
8576 case $enableval in
8577 yes) enable_fast_install=yes ;;
8578 no) enable_fast_install=no ;;
8579 *)
8580 enable_fast_install=no
8581 # Look at the argument we got. We use all the common list separators.
8582 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8583 for pkg in $enableval; do
8584 IFS="$lt_save_ifs"
8585 if test "X$pkg" = "X$p"; then
8586 enable_fast_install=yes
8587 fi
8588 done
8589 IFS="$lt_save_ifs"
8590 ;;
8591 esac
8592 else
8593 enable_fast_install=yes
8594 fi
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606 # This can be used to rebuild libtool when needed
8607 LIBTOOL_DEPS="$ltmain"
8608
8609 # Always use our own libtool.
8610 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641 test -z "$LN_S" && LN_S="ln -s"
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656 if test -n "${ZSH_VERSION+set}" ; then
8657 setopt NO_GLOB_SUBST
8658 fi
8659
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8661 $as_echo_n "checking for objdir... " >&6; }
8662 if ${lt_cv_objdir+:} false; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 rm -f .libs 2>/dev/null
8666 mkdir .libs 2>/dev/null
8667 if test -d .libs; then
8668 lt_cv_objdir=.libs
8669 else
8670 # MS-DOS does not allow filenames that begin with a dot.
8671 lt_cv_objdir=_libs
8672 fi
8673 rmdir .libs 2>/dev/null
8674 fi
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8676 $as_echo "$lt_cv_objdir" >&6; }
8677 objdir=$lt_cv_objdir
8678
8679
8680
8681
8682
8683 cat >>confdefs.h <<_ACEOF
8684 #define LT_OBJDIR "$lt_cv_objdir/"
8685 _ACEOF
8686
8687
8688
8689
8690 case $host_os in
8691 aix3*)
8692 # AIX sometimes has problems with the GCC collect2 program. For some
8693 # reason, if we set the COLLECT_NAMES environment variable, the problems
8694 # vanish in a puff of smoke.
8695 if test "X${COLLECT_NAMES+set}" != Xset; then
8696 COLLECT_NAMES=
8697 export COLLECT_NAMES
8698 fi
8699 ;;
8700 esac
8701
8702 # Global variables:
8703 ofile=libtool
8704 can_build_shared=yes
8705
8706 # All known linkers require a `.a' archive for static linking (except MSVC,
8707 # which needs '.lib').
8708 libext=a
8709
8710 with_gnu_ld="$lt_cv_prog_gnu_ld"
8711
8712 old_CC="$CC"
8713 old_CFLAGS="$CFLAGS"
8714
8715 # Set sane defaults for various variables
8716 test -z "$CC" && CC=cc
8717 test -z "$LTCC" && LTCC=$CC
8718 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8719 test -z "$LD" && LD=ld
8720 test -z "$ac_objext" && ac_objext=o
8721
8722 for cc_temp in $compiler""; do
8723 case $cc_temp in
8724 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8725 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8726 \-*) ;;
8727 *) break;;
8728 esac
8729 done
8730 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8731
8732
8733 # Only perform the check for file, if the check method requires it
8734 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8735 case $deplibs_check_method in
8736 file_magic*)
8737 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8739 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8740 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 case $MAGIC_CMD in
8744 [\\/*] | ?:[\\/]*)
8745 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8746 ;;
8747 *)
8748 lt_save_MAGIC_CMD="$MAGIC_CMD"
8749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8750 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8751 for ac_dir in $ac_dummy; do
8752 IFS="$lt_save_ifs"
8753 test -z "$ac_dir" && ac_dir=.
8754 if test -f $ac_dir/${ac_tool_prefix}file; then
8755 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8756 if test -n "$file_magic_test_file"; then
8757 case $deplibs_check_method in
8758 "file_magic "*)
8759 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8761 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8762 $EGREP "$file_magic_regex" > /dev/null; then
8763 :
8764 else
8765 cat <<_LT_EOF 1>&2
8766
8767 *** Warning: the command libtool uses to detect shared libraries,
8768 *** $file_magic_cmd, produces output that libtool cannot recognize.
8769 *** The result is that libtool may fail to recognize shared libraries
8770 *** as such. This will affect the creation of libtool libraries that
8771 *** depend on shared libraries, but programs linked with such libtool
8772 *** libraries will work regardless of this problem. Nevertheless, you
8773 *** may want to report the problem to your system manager and/or to
8774 *** bug-libtool@gnu.org
8775
8776 _LT_EOF
8777 fi ;;
8778 esac
8779 fi
8780 break
8781 fi
8782 done
8783 IFS="$lt_save_ifs"
8784 MAGIC_CMD="$lt_save_MAGIC_CMD"
8785 ;;
8786 esac
8787 fi
8788
8789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8790 if test -n "$MAGIC_CMD"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8792 $as_echo "$MAGIC_CMD" >&6; }
8793 else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8796 fi
8797
8798
8799
8800
8801
8802 if test -z "$lt_cv_path_MAGIC_CMD"; then
8803 if test -n "$ac_tool_prefix"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8805 $as_echo_n "checking for file... " >&6; }
8806 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 case $MAGIC_CMD in
8810 [\\/*] | ?:[\\/]*)
8811 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8812 ;;
8813 *)
8814 lt_save_MAGIC_CMD="$MAGIC_CMD"
8815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8816 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8817 for ac_dir in $ac_dummy; do
8818 IFS="$lt_save_ifs"
8819 test -z "$ac_dir" && ac_dir=.
8820 if test -f $ac_dir/file; then
8821 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8822 if test -n "$file_magic_test_file"; then
8823 case $deplibs_check_method in
8824 "file_magic "*)
8825 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8826 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8827 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8828 $EGREP "$file_magic_regex" > /dev/null; then
8829 :
8830 else
8831 cat <<_LT_EOF 1>&2
8832
8833 *** Warning: the command libtool uses to detect shared libraries,
8834 *** $file_magic_cmd, produces output that libtool cannot recognize.
8835 *** The result is that libtool may fail to recognize shared libraries
8836 *** as such. This will affect the creation of libtool libraries that
8837 *** depend on shared libraries, but programs linked with such libtool
8838 *** libraries will work regardless of this problem. Nevertheless, you
8839 *** may want to report the problem to your system manager and/or to
8840 *** bug-libtool@gnu.org
8841
8842 _LT_EOF
8843 fi ;;
8844 esac
8845 fi
8846 break
8847 fi
8848 done
8849 IFS="$lt_save_ifs"
8850 MAGIC_CMD="$lt_save_MAGIC_CMD"
8851 ;;
8852 esac
8853 fi
8854
8855 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8856 if test -n "$MAGIC_CMD"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8858 $as_echo "$MAGIC_CMD" >&6; }
8859 else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8862 fi
8863
8864
8865 else
8866 MAGIC_CMD=:
8867 fi
8868 fi
8869
8870 fi
8871 ;;
8872 esac
8873
8874 # Use C for the default configuration in the libtool script
8875
8876 lt_save_CC="$CC"
8877 ac_ext=c
8878 ac_cpp='$CPP $CPPFLAGS'
8879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8882
8883
8884 # Source file extension for C test sources.
8885 ac_ext=c
8886
8887 # Object file extension for compiled C test sources.
8888 objext=o
8889 objext=$objext
8890
8891 # Code to be used in simple compile tests
8892 lt_simple_compile_test_code="int some_variable = 0;"
8893
8894 # Code to be used in simple link tests
8895 lt_simple_link_test_code='int main(){return(0);}'
8896
8897
8898
8899
8900
8901
8902
8903 # If no C compiler was specified, use CC.
8904 LTCC=${LTCC-"$CC"}
8905
8906 # If no C compiler flags were specified, use CFLAGS.
8907 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8908
8909 # Allow CC to be a program name with arguments.
8910 compiler=$CC
8911
8912 # Save the default compiler, since it gets overwritten when the other
8913 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8914 compiler_DEFAULT=$CC
8915
8916 # save warnings/boilerplate of simple test code
8917 ac_outfile=conftest.$ac_objext
8918 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8919 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8920 _lt_compiler_boilerplate=`cat conftest.err`
8921 $RM conftest*
8922
8923 ac_outfile=conftest.$ac_objext
8924 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8925 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8926 _lt_linker_boilerplate=`cat conftest.err`
8927 $RM -r conftest*
8928
8929
8930 ## CAVEAT EMPTOR:
8931 ## There is no encapsulation within the following macros, do not change
8932 ## the running order or otherwise move them around unless you know exactly
8933 ## what you are doing...
8934 if test -n "$compiler"; then
8935
8936 lt_prog_compiler_no_builtin_flag=
8937
8938 if test "$GCC" = yes; then
8939 case $cc_basename in
8940 nvcc*)
8941 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8942 *)
8943 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8944 esac
8945
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8947 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8948 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951 lt_cv_prog_compiler_rtti_exceptions=no
8952 ac_outfile=conftest.$ac_objext
8953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8954 lt_compiler_flag="-fno-rtti -fno-exceptions"
8955 # Insert the option either (1) after the last *FLAGS variable, or
8956 # (2) before a word containing "conftest.", or (3) at the end.
8957 # Note that $ac_compile itself does not contain backslashes and begins
8958 # with a dollar sign (not a hyphen), so the echo should work correctly.
8959 # The option is referenced via a variable to avoid confusing sed.
8960 lt_compile=`echo "$ac_compile" | $SED \
8961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8963 -e 's:$: $lt_compiler_flag:'`
8964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8965 (eval "$lt_compile" 2>conftest.err)
8966 ac_status=$?
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 if (exit $ac_status) && test -s "$ac_outfile"; then
8970 # The compiler can only warn and ignore the option if not recognized
8971 # So say no if there are warnings other than the usual output.
8972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8974 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8975 lt_cv_prog_compiler_rtti_exceptions=yes
8976 fi
8977 fi
8978 $RM conftest*
8979
8980 fi
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8982 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8983
8984 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8985 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8986 else
8987 :
8988 fi
8989
8990 fi
8991
8992
8993
8994
8995
8996
8997 lt_prog_compiler_wl=
8998 lt_prog_compiler_pic=
8999 lt_prog_compiler_static=
9000
9001
9002 if test "$GCC" = yes; then
9003 lt_prog_compiler_wl='-Wl,'
9004 lt_prog_compiler_static='-static'
9005
9006 case $host_os in
9007 aix*)
9008 # All AIX code is PIC.
9009 if test "$host_cpu" = ia64; then
9010 # AIX 5 now supports IA64 processor
9011 lt_prog_compiler_static='-Bstatic'
9012 fi
9013 ;;
9014
9015 amigaos*)
9016 case $host_cpu in
9017 powerpc)
9018 # see comment about AmigaOS4 .so support
9019 lt_prog_compiler_pic='-fPIC'
9020 ;;
9021 m68k)
9022 # FIXME: we need at least 68020 code to build shared libraries, but
9023 # adding the `-m68020' flag to GCC prevents building anything better,
9024 # like `-m68040'.
9025 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9026 ;;
9027 esac
9028 ;;
9029
9030 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9031 # PIC is the default for these OSes.
9032 ;;
9033
9034 mingw* | cygwin* | pw32* | os2* | cegcc*)
9035 # This hack is so that the source file can tell whether it is being
9036 # built for inclusion in a dll (and should export symbols for example).
9037 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9038 # (--disable-auto-import) libraries
9039 lt_prog_compiler_pic='-DDLL_EXPORT'
9040 ;;
9041
9042 darwin* | rhapsody*)
9043 # PIC is the default on this platform
9044 # Common symbols not allowed in MH_DYLIB files
9045 lt_prog_compiler_pic='-fno-common'
9046 ;;
9047
9048 haiku*)
9049 # PIC is the default for Haiku.
9050 # The "-static" flag exists, but is broken.
9051 lt_prog_compiler_static=
9052 ;;
9053
9054 hpux*)
9055 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9056 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9057 # sets the default TLS model and affects inlining.
9058 case $host_cpu in
9059 hppa*64*)
9060 # +Z the default
9061 ;;
9062 *)
9063 lt_prog_compiler_pic='-fPIC'
9064 ;;
9065 esac
9066 ;;
9067
9068 interix[3-9]*)
9069 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9070 # Instead, we relocate shared libraries at runtime.
9071 ;;
9072
9073 msdosdjgpp*)
9074 # Just because we use GCC doesn't mean we suddenly get shared libraries
9075 # on systems that don't support them.
9076 lt_prog_compiler_can_build_shared=no
9077 enable_shared=no
9078 ;;
9079
9080 *nto* | *qnx*)
9081 # QNX uses GNU C++, but need to define -shared option too, otherwise
9082 # it will coredump.
9083 lt_prog_compiler_pic='-fPIC -shared'
9084 ;;
9085
9086 sysv4*MP*)
9087 if test -d /usr/nec; then
9088 lt_prog_compiler_pic=-Kconform_pic
9089 fi
9090 ;;
9091
9092 *)
9093 lt_prog_compiler_pic='-fPIC'
9094 ;;
9095 esac
9096
9097 case $cc_basename in
9098 nvcc*) # Cuda Compiler Driver 2.2
9099 lt_prog_compiler_wl='-Xlinker '
9100 if test -n "$lt_prog_compiler_pic"; then
9101 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9102 fi
9103 ;;
9104 esac
9105 else
9106 # PORTME Check for flag to pass linker flags through the system compiler.
9107 case $host_os in
9108 aix*)
9109 lt_prog_compiler_wl='-Wl,'
9110 if test "$host_cpu" = ia64; then
9111 # AIX 5 now supports IA64 processor
9112 lt_prog_compiler_static='-Bstatic'
9113 else
9114 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9115 fi
9116 ;;
9117
9118 mingw* | cygwin* | pw32* | os2* | cegcc*)
9119 # This hack is so that the source file can tell whether it is being
9120 # built for inclusion in a dll (and should export symbols for example).
9121 lt_prog_compiler_pic='-DDLL_EXPORT'
9122 ;;
9123
9124 hpux9* | hpux10* | hpux11*)
9125 lt_prog_compiler_wl='-Wl,'
9126 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9127 # not for PA HP-UX.
9128 case $host_cpu in
9129 hppa*64*|ia64*)
9130 # +Z the default
9131 ;;
9132 *)
9133 lt_prog_compiler_pic='+Z'
9134 ;;
9135 esac
9136 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9137 lt_prog_compiler_static='${wl}-a ${wl}archive'
9138 ;;
9139
9140 irix5* | irix6* | nonstopux*)
9141 lt_prog_compiler_wl='-Wl,'
9142 # PIC (with -KPIC) is the default.
9143 lt_prog_compiler_static='-non_shared'
9144 ;;
9145
9146 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9147 case $cc_basename in
9148 # old Intel for x86_64 which still supported -KPIC.
9149 ecc*)
9150 lt_prog_compiler_wl='-Wl,'
9151 lt_prog_compiler_pic='-KPIC'
9152 lt_prog_compiler_static='-static'
9153 ;;
9154 # icc used to be incompatible with GCC.
9155 # ICC 10 doesn't accept -KPIC any more.
9156 icc* | ifort*)
9157 lt_prog_compiler_wl='-Wl,'
9158 lt_prog_compiler_pic='-fPIC'
9159 lt_prog_compiler_static='-static'
9160 ;;
9161 # Lahey Fortran 8.1.
9162 lf95*)
9163 lt_prog_compiler_wl='-Wl,'
9164 lt_prog_compiler_pic='--shared'
9165 lt_prog_compiler_static='--static'
9166 ;;
9167 nagfor*)
9168 # NAG Fortran compiler
9169 lt_prog_compiler_wl='-Wl,-Wl,,'
9170 lt_prog_compiler_pic='-PIC'
9171 lt_prog_compiler_static='-Bstatic'
9172 ;;
9173 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9174 # Portland Group compilers (*not* the Pentium gcc compiler,
9175 # which looks to be a dead project)
9176 lt_prog_compiler_wl='-Wl,'
9177 lt_prog_compiler_pic='-fpic'
9178 lt_prog_compiler_static='-Bstatic'
9179 ;;
9180 ccc*)
9181 lt_prog_compiler_wl='-Wl,'
9182 # All Alpha code is PIC.
9183 lt_prog_compiler_static='-non_shared'
9184 ;;
9185 xl* | bgxl* | bgf* | mpixl*)
9186 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9187 lt_prog_compiler_wl='-Wl,'
9188 lt_prog_compiler_pic='-qpic'
9189 lt_prog_compiler_static='-qstaticlink'
9190 ;;
9191 *)
9192 case `$CC -V 2>&1 | sed 5q` in
9193 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9194 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9195 lt_prog_compiler_pic='-KPIC'
9196 lt_prog_compiler_static='-Bstatic'
9197 lt_prog_compiler_wl=''
9198 ;;
9199 *Sun\ F* | *Sun*Fortran*)
9200 lt_prog_compiler_pic='-KPIC'
9201 lt_prog_compiler_static='-Bstatic'
9202 lt_prog_compiler_wl='-Qoption ld '
9203 ;;
9204 *Sun\ C*)
9205 # Sun C 5.9
9206 lt_prog_compiler_pic='-KPIC'
9207 lt_prog_compiler_static='-Bstatic'
9208 lt_prog_compiler_wl='-Wl,'
9209 ;;
9210 *Intel*\ [CF]*Compiler*)
9211 lt_prog_compiler_wl='-Wl,'
9212 lt_prog_compiler_pic='-fPIC'
9213 lt_prog_compiler_static='-static'
9214 ;;
9215 *Portland\ Group*)
9216 lt_prog_compiler_wl='-Wl,'
9217 lt_prog_compiler_pic='-fpic'
9218 lt_prog_compiler_static='-Bstatic'
9219 ;;
9220 esac
9221 ;;
9222 esac
9223 ;;
9224
9225 newsos6)
9226 lt_prog_compiler_pic='-KPIC'
9227 lt_prog_compiler_static='-Bstatic'
9228 ;;
9229
9230 *nto* | *qnx*)
9231 # QNX uses GNU C++, but need to define -shared option too, otherwise
9232 # it will coredump.
9233 lt_prog_compiler_pic='-fPIC -shared'
9234 ;;
9235
9236 osf3* | osf4* | osf5*)
9237 lt_prog_compiler_wl='-Wl,'
9238 # All OSF/1 code is PIC.
9239 lt_prog_compiler_static='-non_shared'
9240 ;;
9241
9242 rdos*)
9243 lt_prog_compiler_static='-non_shared'
9244 ;;
9245
9246 solaris*)
9247 lt_prog_compiler_pic='-KPIC'
9248 lt_prog_compiler_static='-Bstatic'
9249 case $cc_basename in
9250 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9251 lt_prog_compiler_wl='-Qoption ld ';;
9252 *)
9253 lt_prog_compiler_wl='-Wl,';;
9254 esac
9255 ;;
9256
9257 sunos4*)
9258 lt_prog_compiler_wl='-Qoption ld '
9259 lt_prog_compiler_pic='-PIC'
9260 lt_prog_compiler_static='-Bstatic'
9261 ;;
9262
9263 sysv4 | sysv4.2uw2* | sysv4.3*)
9264 lt_prog_compiler_wl='-Wl,'
9265 lt_prog_compiler_pic='-KPIC'
9266 lt_prog_compiler_static='-Bstatic'
9267 ;;
9268
9269 sysv4*MP*)
9270 if test -d /usr/nec ;then
9271 lt_prog_compiler_pic='-Kconform_pic'
9272 lt_prog_compiler_static='-Bstatic'
9273 fi
9274 ;;
9275
9276 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9277 lt_prog_compiler_wl='-Wl,'
9278 lt_prog_compiler_pic='-KPIC'
9279 lt_prog_compiler_static='-Bstatic'
9280 ;;
9281
9282 unicos*)
9283 lt_prog_compiler_wl='-Wl,'
9284 lt_prog_compiler_can_build_shared=no
9285 ;;
9286
9287 uts4*)
9288 lt_prog_compiler_pic='-pic'
9289 lt_prog_compiler_static='-Bstatic'
9290 ;;
9291
9292 *)
9293 lt_prog_compiler_can_build_shared=no
9294 ;;
9295 esac
9296 fi
9297
9298 case $host_os in
9299 # For platforms which do not support PIC, -DPIC is meaningless:
9300 *djgpp*)
9301 lt_prog_compiler_pic=
9302 ;;
9303 *)
9304 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9305 ;;
9306 esac
9307
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9309 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9310 if ${lt_cv_prog_compiler_pic+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9314 fi
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9316 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9317 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9318
9319 #
9320 # Check to make sure the PIC flag actually works.
9321 #
9322 if test -n "$lt_prog_compiler_pic"; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9324 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9325 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9326 $as_echo_n "(cached) " >&6
9327 else
9328 lt_cv_prog_compiler_pic_works=no
9329 ac_outfile=conftest.$ac_objext
9330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9331 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9332 # Insert the option either (1) after the last *FLAGS variable, or
9333 # (2) before a word containing "conftest.", or (3) at the end.
9334 # Note that $ac_compile itself does not contain backslashes and begins
9335 # with a dollar sign (not a hyphen), so the echo should work correctly.
9336 # The option is referenced via a variable to avoid confusing sed.
9337 lt_compile=`echo "$ac_compile" | $SED \
9338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9340 -e 's:$: $lt_compiler_flag:'`
9341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9342 (eval "$lt_compile" 2>conftest.err)
9343 ac_status=$?
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 if (exit $ac_status) && test -s "$ac_outfile"; then
9347 # The compiler can only warn and ignore the option if not recognized
9348 # So say no if there are warnings other than the usual output.
9349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9352 lt_cv_prog_compiler_pic_works=yes
9353 fi
9354 fi
9355 $RM conftest*
9356
9357 fi
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9359 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9360
9361 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9362 case $lt_prog_compiler_pic in
9363 "" | " "*) ;;
9364 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9365 esac
9366 else
9367 lt_prog_compiler_pic=
9368 lt_prog_compiler_can_build_shared=no
9369 fi
9370
9371 fi
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383 #
9384 # Check to make sure the static flag actually works.
9385 #
9386 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9388 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9389 if ${lt_cv_prog_compiler_static_works+:} false; then :
9390 $as_echo_n "(cached) " >&6
9391 else
9392 lt_cv_prog_compiler_static_works=no
9393 save_LDFLAGS="$LDFLAGS"
9394 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9395 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9396 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9397 # The linker can only warn and ignore the option if not recognized
9398 # So say no if there are warnings
9399 if test -s conftest.err; then
9400 # Append any errors to the config.log.
9401 cat conftest.err 1>&5
9402 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9404 if diff conftest.exp conftest.er2 >/dev/null; then
9405 lt_cv_prog_compiler_static_works=yes
9406 fi
9407 else
9408 lt_cv_prog_compiler_static_works=yes
9409 fi
9410 fi
9411 $RM -r conftest*
9412 LDFLAGS="$save_LDFLAGS"
9413
9414 fi
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9416 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9417
9418 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9419 :
9420 else
9421 lt_prog_compiler_static=
9422 fi
9423
9424
9425
9426
9427
9428
9429
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9431 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9432 if ${lt_cv_prog_compiler_c_o+:} false; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 lt_cv_prog_compiler_c_o=no
9436 $RM -r conftest 2>/dev/null
9437 mkdir conftest
9438 cd conftest
9439 mkdir out
9440 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9441
9442 lt_compiler_flag="-o out/conftest2.$ac_objext"
9443 # Insert the option either (1) after the last *FLAGS variable, or
9444 # (2) before a word containing "conftest.", or (3) at the end.
9445 # Note that $ac_compile itself does not contain backslashes and begins
9446 # with a dollar sign (not a hyphen), so the echo should work correctly.
9447 lt_compile=`echo "$ac_compile" | $SED \
9448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9450 -e 's:$: $lt_compiler_flag:'`
9451 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9452 (eval "$lt_compile" 2>out/conftest.err)
9453 ac_status=$?
9454 cat out/conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9457 then
9458 # The compiler can only warn and ignore the option if not recognized
9459 # So say no if there are warnings
9460 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9461 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9462 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9463 lt_cv_prog_compiler_c_o=yes
9464 fi
9465 fi
9466 chmod u+w . 2>&5
9467 $RM conftest*
9468 # SGI C++ compiler will create directory out/ii_files/ for
9469 # template instantiation
9470 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9471 $RM out/* && rmdir out
9472 cd ..
9473 $RM -r conftest
9474 $RM conftest*
9475
9476 fi
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9478 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9479
9480
9481
9482
9483
9484
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9486 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9487 if ${lt_cv_prog_compiler_c_o+:} false; then :
9488 $as_echo_n "(cached) " >&6
9489 else
9490 lt_cv_prog_compiler_c_o=no
9491 $RM -r conftest 2>/dev/null
9492 mkdir conftest
9493 cd conftest
9494 mkdir out
9495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9496
9497 lt_compiler_flag="-o out/conftest2.$ac_objext"
9498 # Insert the option either (1) after the last *FLAGS variable, or
9499 # (2) before a word containing "conftest.", or (3) at the end.
9500 # Note that $ac_compile itself does not contain backslashes and begins
9501 # with a dollar sign (not a hyphen), so the echo should work correctly.
9502 lt_compile=`echo "$ac_compile" | $SED \
9503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9505 -e 's:$: $lt_compiler_flag:'`
9506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9507 (eval "$lt_compile" 2>out/conftest.err)
9508 ac_status=$?
9509 cat out/conftest.err >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9512 then
9513 # The compiler can only warn and ignore the option if not recognized
9514 # So say no if there are warnings
9515 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9518 lt_cv_prog_compiler_c_o=yes
9519 fi
9520 fi
9521 chmod u+w . 2>&5
9522 $RM conftest*
9523 # SGI C++ compiler will create directory out/ii_files/ for
9524 # template instantiation
9525 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9526 $RM out/* && rmdir out
9527 cd ..
9528 $RM -r conftest
9529 $RM conftest*
9530
9531 fi
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9533 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9534
9535
9536
9537
9538 hard_links="nottested"
9539 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9540 # do not overwrite the value of need_locks provided by the user
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9542 $as_echo_n "checking if we can lock with hard links... " >&6; }
9543 hard_links=yes
9544 $RM conftest*
9545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9546 touch conftest.a
9547 ln conftest.a conftest.b 2>&5 || hard_links=no
9548 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9550 $as_echo "$hard_links" >&6; }
9551 if test "$hard_links" = no; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9553 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9554 need_locks=warn
9555 fi
9556 else
9557 need_locks=no
9558 fi
9559
9560
9561
9562
9563
9564
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9566 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9567
9568 runpath_var=
9569 allow_undefined_flag=
9570 always_export_symbols=no
9571 archive_cmds=
9572 archive_expsym_cmds=
9573 compiler_needs_object=no
9574 enable_shared_with_static_runtimes=no
9575 export_dynamic_flag_spec=
9576 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9577 hardcode_automatic=no
9578 hardcode_direct=no
9579 hardcode_direct_absolute=no
9580 hardcode_libdir_flag_spec=
9581 hardcode_libdir_separator=
9582 hardcode_minus_L=no
9583 hardcode_shlibpath_var=unsupported
9584 inherit_rpath=no
9585 link_all_deplibs=unknown
9586 module_cmds=
9587 module_expsym_cmds=
9588 old_archive_from_new_cmds=
9589 old_archive_from_expsyms_cmds=
9590 thread_safe_flag_spec=
9591 whole_archive_flag_spec=
9592 # include_expsyms should be a list of space-separated symbols to be *always*
9593 # included in the symbol list
9594 include_expsyms=
9595 # exclude_expsyms can be an extended regexp of symbols to exclude
9596 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9597 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9598 # as well as any symbol that contains `d'.
9599 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9600 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9601 # platforms (ab)use it in PIC code, but their linkers get confused if
9602 # the symbol is explicitly referenced. Since portable code cannot
9603 # rely on this symbol name, it's probably fine to never include it in
9604 # preloaded symbol tables.
9605 # Exclude shared library initialization/finalization symbols.
9606 extract_expsyms_cmds=
9607
9608 case $host_os in
9609 cygwin* | mingw* | pw32* | cegcc*)
9610 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9611 # When not using gcc, we currently assume that we are using
9612 # Microsoft Visual C++.
9613 if test "$GCC" != yes; then
9614 with_gnu_ld=no
9615 fi
9616 ;;
9617 interix*)
9618 # we just hope/assume this is gcc and not c89 (= MSVC++)
9619 with_gnu_ld=yes
9620 ;;
9621 openbsd*)
9622 with_gnu_ld=no
9623 ;;
9624 esac
9625
9626 ld_shlibs=yes
9627
9628 # On some targets, GNU ld is compatible enough with the native linker
9629 # that we're better off using the native interface for both.
9630 lt_use_gnu_ld_interface=no
9631 if test "$with_gnu_ld" = yes; then
9632 case $host_os in
9633 aix*)
9634 # The AIX port of GNU ld has always aspired to compatibility
9635 # with the native linker. However, as the warning in the GNU ld
9636 # block says, versions before 2.19.5* couldn't really create working
9637 # shared libraries, regardless of the interface used.
9638 case `$LD -v 2>&1` in
9639 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9640 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9641 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9642 *)
9643 lt_use_gnu_ld_interface=yes
9644 ;;
9645 esac
9646 ;;
9647 *)
9648 lt_use_gnu_ld_interface=yes
9649 ;;
9650 esac
9651 fi
9652
9653 if test "$lt_use_gnu_ld_interface" = yes; then
9654 # If archive_cmds runs LD, not CC, wlarc should be empty
9655 wlarc='${wl}'
9656
9657 # Set some defaults for GNU ld with shared library support. These
9658 # are reset later if shared libraries are not supported. Putting them
9659 # here allows them to be overridden if necessary.
9660 runpath_var=LD_RUN_PATH
9661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9662 export_dynamic_flag_spec='${wl}--export-dynamic'
9663 # ancient GNU ld didn't support --whole-archive et. al.
9664 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9665 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9666 else
9667 whole_archive_flag_spec=
9668 fi
9669 supports_anon_versioning=no
9670 case `$LD -v 2>&1` in
9671 *GNU\ gold*) supports_anon_versioning=yes ;;
9672 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9673 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9674 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9675 *\ 2.11.*) ;; # other 2.11 versions
9676 *) supports_anon_versioning=yes ;;
9677 esac
9678
9679 # See if GNU ld supports shared libraries.
9680 case $host_os in
9681 aix[3-9]*)
9682 # On AIX/PPC, the GNU linker is very broken
9683 if test "$host_cpu" != ia64; then
9684 ld_shlibs=no
9685 cat <<_LT_EOF 1>&2
9686
9687 *** Warning: the GNU linker, at least up to release 2.19, is reported
9688 *** to be unable to reliably create shared libraries on AIX.
9689 *** Therefore, libtool is disabling shared libraries support. If you
9690 *** really care for shared libraries, you may want to install binutils
9691 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9692 *** You will then need to restart the configuration process.
9693
9694 _LT_EOF
9695 fi
9696 ;;
9697
9698 amigaos*)
9699 case $host_cpu in
9700 powerpc)
9701 # see comment about AmigaOS4 .so support
9702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9703 archive_expsym_cmds=''
9704 ;;
9705 m68k)
9706 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)'
9707 hardcode_libdir_flag_spec='-L$libdir'
9708 hardcode_minus_L=yes
9709 ;;
9710 esac
9711 ;;
9712
9713 beos*)
9714 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9715 allow_undefined_flag=unsupported
9716 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9717 # support --undefined. This deserves some investigation. FIXME
9718 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9719 else
9720 ld_shlibs=no
9721 fi
9722 ;;
9723
9724 cygwin* | mingw* | pw32* | cegcc*)
9725 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9726 # as there is no search path for DLLs.
9727 hardcode_libdir_flag_spec='-L$libdir'
9728 export_dynamic_flag_spec='${wl}--export-all-symbols'
9729 allow_undefined_flag=unsupported
9730 always_export_symbols=no
9731 enable_shared_with_static_runtimes=yes
9732 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'
9733 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9734
9735 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9737 # If the export-symbols file already is a .def file (1st line
9738 # is EXPORTS), use it as is; otherwise, prepend...
9739 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9740 cp $export_symbols $output_objdir/$soname.def;
9741 else
9742 echo EXPORTS > $output_objdir/$soname.def;
9743 cat $export_symbols >> $output_objdir/$soname.def;
9744 fi~
9745 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9746 else
9747 ld_shlibs=no
9748 fi
9749 ;;
9750
9751 haiku*)
9752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9753 link_all_deplibs=yes
9754 ;;
9755
9756 interix[3-9]*)
9757 hardcode_direct=no
9758 hardcode_shlibpath_var=no
9759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9760 export_dynamic_flag_spec='${wl}-E'
9761 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9762 # Instead, shared libraries are loaded at an image base (0x10000000 by
9763 # default) and relocated if they conflict, which is a slow very memory
9764 # consuming and fragmenting process. To avoid this, we pick a random,
9765 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9766 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9767 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9768 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'
9769 ;;
9770
9771 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9772 tmp_diet=no
9773 if test "$host_os" = linux-dietlibc; then
9774 case $cc_basename in
9775 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9776 esac
9777 fi
9778 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9779 && test "$tmp_diet" = no
9780 then
9781 tmp_addflag=' $pic_flag'
9782 tmp_sharedflag='-shared'
9783 case $cc_basename,$host_cpu in
9784 pgcc*) # Portland Group C compiler
9785 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'
9786 tmp_addflag=' $pic_flag'
9787 ;;
9788 pgf77* | pgf90* | pgf95* | pgfortran*)
9789 # Portland Group f77 and f90 compilers
9790 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'
9791 tmp_addflag=' $pic_flag -Mnomain' ;;
9792 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9793 tmp_addflag=' -i_dynamic' ;;
9794 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9795 tmp_addflag=' -i_dynamic -nofor_main' ;;
9796 ifc* | ifort*) # Intel Fortran compiler
9797 tmp_addflag=' -nofor_main' ;;
9798 lf95*) # Lahey Fortran 8.1
9799 whole_archive_flag_spec=
9800 tmp_sharedflag='--shared' ;;
9801 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9802 tmp_sharedflag='-qmkshrobj'
9803 tmp_addflag= ;;
9804 nvcc*) # Cuda Compiler Driver 2.2
9805 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'
9806 compiler_needs_object=yes
9807 ;;
9808 esac
9809 case `$CC -V 2>&1 | sed 5q` in
9810 *Sun\ C*) # Sun C 5.9
9811 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'
9812 compiler_needs_object=yes
9813 tmp_sharedflag='-G' ;;
9814 *Sun\ F*) # Sun Fortran 8.3
9815 tmp_sharedflag='-G' ;;
9816 esac
9817 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9818
9819 if test "x$supports_anon_versioning" = xyes; then
9820 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9821 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9822 echo "local: *; };" >> $output_objdir/$libname.ver~
9823 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9824 fi
9825
9826 case $cc_basename in
9827 xlf* | bgf* | bgxlf* | mpixlf*)
9828 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9829 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9831 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9832 if test "x$supports_anon_versioning" = xyes; then
9833 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9835 echo "local: *; };" >> $output_objdir/$libname.ver~
9836 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9837 fi
9838 ;;
9839 esac
9840 else
9841 ld_shlibs=no
9842 fi
9843 ;;
9844
9845 netbsd*)
9846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9847 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9848 wlarc=
9849 else
9850 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9852 fi
9853 ;;
9854
9855 solaris*)
9856 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9857 ld_shlibs=no
9858 cat <<_LT_EOF 1>&2
9859
9860 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9861 *** create shared libraries on Solaris systems. Therefore, libtool
9862 *** is disabling shared libraries support. We urge you to upgrade GNU
9863 *** binutils to release 2.9.1 or newer. Another option is to modify
9864 *** your PATH or compiler configuration so that the native linker is
9865 *** used, and then restart.
9866
9867 _LT_EOF
9868 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9869 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9871 else
9872 ld_shlibs=no
9873 fi
9874 ;;
9875
9876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9877 case `$LD -v 2>&1` in
9878 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9879 ld_shlibs=no
9880 cat <<_LT_EOF 1>&2
9881
9882 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9883 *** reliably create shared libraries on SCO systems. Therefore, libtool
9884 *** is disabling shared libraries support. We urge you to upgrade GNU
9885 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9886 *** your PATH or compiler configuration so that the native linker is
9887 *** used, and then restart.
9888
9889 _LT_EOF
9890 ;;
9891 *)
9892 # For security reasons, it is highly recommended that you always
9893 # use absolute paths for naming shared libraries, and exclude the
9894 # DT_RUNPATH tag from executables and libraries. But doing so
9895 # requires that you compile everything twice, which is a pain.
9896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9900 else
9901 ld_shlibs=no
9902 fi
9903 ;;
9904 esac
9905 ;;
9906
9907 sunos4*)
9908 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9909 wlarc=
9910 hardcode_direct=yes
9911 hardcode_shlibpath_var=no
9912 ;;
9913
9914 *)
9915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9916 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9917 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9918 else
9919 ld_shlibs=no
9920 fi
9921 ;;
9922 esac
9923
9924 if test "$ld_shlibs" = no; then
9925 runpath_var=
9926 hardcode_libdir_flag_spec=
9927 export_dynamic_flag_spec=
9928 whole_archive_flag_spec=
9929 fi
9930 else
9931 # PORTME fill in a description of your system's linker (not GNU ld)
9932 case $host_os in
9933 aix3*)
9934 allow_undefined_flag=unsupported
9935 always_export_symbols=yes
9936 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'
9937 # Note: this linker hardcodes the directories in LIBPATH if there
9938 # are no directories specified by -L.
9939 hardcode_minus_L=yes
9940 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9941 # Neither direct hardcoding nor static linking is supported with a
9942 # broken collect2.
9943 hardcode_direct=unsupported
9944 fi
9945 ;;
9946
9947 aix[4-9]*)
9948 if test "$host_cpu" = ia64; then
9949 # On IA64, the linker does run time linking by default, so we don't
9950 # have to do anything special.
9951 aix_use_runtimelinking=no
9952 exp_sym_flag='-Bexport'
9953 no_entry_flag=""
9954 else
9955 # If we're using GNU nm, then we don't want the "-C" option.
9956 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9957 # Also, AIX nm treats weak defined symbols like other global
9958 # defined symbols, whereas GNU nm marks them as "W".
9959 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9960 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'
9961 else
9962 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'
9963 fi
9964 aix_use_runtimelinking=no
9965
9966 # Test if we are trying to use run time linking or normal
9967 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9968 # need to do runtime linking.
9969 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9970 for ld_flag in $LDFLAGS; do
9971 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9972 aix_use_runtimelinking=yes
9973 break
9974 fi
9975 done
9976 ;;
9977 esac
9978
9979 exp_sym_flag='-bexport'
9980 no_entry_flag='-bnoentry'
9981 fi
9982
9983 # When large executables or shared objects are built, AIX ld can
9984 # have problems creating the table of contents. If linking a library
9985 # or program results in "error TOC overflow" add -mminimal-toc to
9986 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9987 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9988
9989 archive_cmds=''
9990 hardcode_direct=yes
9991 hardcode_direct_absolute=yes
9992 hardcode_libdir_separator=':'
9993 link_all_deplibs=yes
9994 file_list_spec='${wl}-f,'
9995
9996 if test "$GCC" = yes; then
9997 case $host_os in aix4.[012]|aix4.[012].*)
9998 # We only want to do this on AIX 4.2 and lower, the check
9999 # below for broken collect2 doesn't work under 4.3+
10000 collect2name=`${CC} -print-prog-name=collect2`
10001 if test -f "$collect2name" &&
10002 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10003 then
10004 # We have reworked collect2
10005 :
10006 else
10007 # We have old collect2
10008 hardcode_direct=unsupported
10009 # It fails to find uninstalled libraries when the uninstalled
10010 # path is not listed in the libpath. Setting hardcode_minus_L
10011 # to unsupported forces relinking
10012 hardcode_minus_L=yes
10013 hardcode_libdir_flag_spec='-L$libdir'
10014 hardcode_libdir_separator=
10015 fi
10016 ;;
10017 esac
10018 shared_flag='-shared'
10019 if test "$aix_use_runtimelinking" = yes; then
10020 shared_flag="$shared_flag "'${wl}-G'
10021 fi
10022 else
10023 # not using gcc
10024 if test "$host_cpu" = ia64; then
10025 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10026 # chokes on -Wl,-G. The following line is correct:
10027 shared_flag='-G'
10028 else
10029 if test "$aix_use_runtimelinking" = yes; then
10030 shared_flag='${wl}-G'
10031 else
10032 shared_flag='${wl}-bM:SRE'
10033 fi
10034 fi
10035 fi
10036
10037 export_dynamic_flag_spec='${wl}-bexpall'
10038 # It seems that -bexpall does not export symbols beginning with
10039 # underscore (_), so it is better to generate a list of symbols to export.
10040 always_export_symbols=yes
10041 if test "$aix_use_runtimelinking" = yes; then
10042 # Warning - without using the other runtime loading flags (-brtl),
10043 # -berok will link without error, but may produce a broken library.
10044 allow_undefined_flag='-berok'
10045 # Determine the default libpath from the value encoded in an
10046 # empty executable.
10047 if test "${lt_cv_aix_libpath+set}" = set; then
10048 aix_libpath=$lt_cv_aix_libpath
10049 else
10050 if ${lt_cv_aix_libpath_+:} false; then :
10051 $as_echo_n "(cached) " >&6
10052 else
10053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054 /* end confdefs.h. */
10055
10056 int
10057 main ()
10058 {
10059
10060 ;
10061 return 0;
10062 }
10063 _ACEOF
10064 if ac_fn_c_try_link "$LINENO"; then :
10065
10066 lt_aix_libpath_sed='
10067 /Import File Strings/,/^$/ {
10068 /^0/ {
10069 s/^0 *\([^ ]*\) *$/\1/
10070 p
10071 }
10072 }'
10073 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10074 # Check for a 64-bit object if we didn't find anything.
10075 if test -z "$lt_cv_aix_libpath_"; then
10076 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10077 fi
10078 fi
10079 rm -f core conftest.err conftest.$ac_objext \
10080 conftest$ac_exeext conftest.$ac_ext
10081 if test -z "$lt_cv_aix_libpath_"; then
10082 lt_cv_aix_libpath_="/usr/lib:/lib"
10083 fi
10084
10085 fi
10086
10087 aix_libpath=$lt_cv_aix_libpath_
10088 fi
10089
10090 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10091 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"
10092 else
10093 if test "$host_cpu" = ia64; then
10094 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10095 allow_undefined_flag="-z nodefs"
10096 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"
10097 else
10098 # Determine the default libpath from the value encoded in an
10099 # empty executable.
10100 if test "${lt_cv_aix_libpath+set}" = set; then
10101 aix_libpath=$lt_cv_aix_libpath
10102 else
10103 if ${lt_cv_aix_libpath_+:} false; then :
10104 $as_echo_n "(cached) " >&6
10105 else
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10108
10109 int
10110 main ()
10111 {
10112
10113 ;
10114 return 0;
10115 }
10116 _ACEOF
10117 if ac_fn_c_try_link "$LINENO"; then :
10118
10119 lt_aix_libpath_sed='
10120 /Import File Strings/,/^$/ {
10121 /^0/ {
10122 s/^0 *\([^ ]*\) *$/\1/
10123 p
10124 }
10125 }'
10126 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10127 # Check for a 64-bit object if we didn't find anything.
10128 if test -z "$lt_cv_aix_libpath_"; then
10129 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10130 fi
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 if test -z "$lt_cv_aix_libpath_"; then
10135 lt_cv_aix_libpath_="/usr/lib:/lib"
10136 fi
10137
10138 fi
10139
10140 aix_libpath=$lt_cv_aix_libpath_
10141 fi
10142
10143 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10144 # Warning - without using the other run time loading flags,
10145 # -berok will link without error, but may produce a broken library.
10146 no_undefined_flag=' ${wl}-bernotok'
10147 allow_undefined_flag=' ${wl}-berok'
10148 if test "$with_gnu_ld" = yes; then
10149 # We only use this code for GNU lds that support --whole-archive.
10150 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10151 else
10152 # Exported symbols can be pulled into shared objects from archives
10153 whole_archive_flag_spec='$convenience'
10154 fi
10155 archive_cmds_need_lc=yes
10156 # This is similar to how AIX traditionally builds its shared libraries.
10157 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'
10158 fi
10159 fi
10160 ;;
10161
10162 amigaos*)
10163 case $host_cpu in
10164 powerpc)
10165 # see comment about AmigaOS4 .so support
10166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10167 archive_expsym_cmds=''
10168 ;;
10169 m68k)
10170 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)'
10171 hardcode_libdir_flag_spec='-L$libdir'
10172 hardcode_minus_L=yes
10173 ;;
10174 esac
10175 ;;
10176
10177 bsdi[45]*)
10178 export_dynamic_flag_spec=-rdynamic
10179 ;;
10180
10181 cygwin* | mingw* | pw32* | cegcc*)
10182 # When not using gcc, we currently assume that we are using
10183 # Microsoft Visual C++.
10184 # hardcode_libdir_flag_spec is actually meaningless, as there is
10185 # no search path for DLLs.
10186 case $cc_basename in
10187 cl*)
10188 # Native MSVC
10189 hardcode_libdir_flag_spec=' '
10190 allow_undefined_flag=unsupported
10191 always_export_symbols=yes
10192 file_list_spec='@'
10193 # Tell ltmain to make .lib files, not .a files.
10194 libext=lib
10195 # Tell ltmain to make .dll files, not .so files.
10196 shrext_cmds=".dll"
10197 # FIXME: Setting linknames here is a bad hack.
10198 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10199 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10200 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10201 else
10202 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10203 fi~
10204 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10205 linknames='
10206 # The linker will not automatically build a static lib if we build a DLL.
10207 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10208 enable_shared_with_static_runtimes=yes
10209 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10210 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10211 # Don't use ranlib
10212 old_postinstall_cmds='chmod 644 $oldlib'
10213 postlink_cmds='lt_outputfile="@OUTPUT@"~
10214 lt_tool_outputfile="@TOOL_OUTPUT@"~
10215 case $lt_outputfile in
10216 *.exe|*.EXE) ;;
10217 *)
10218 lt_outputfile="$lt_outputfile.exe"
10219 lt_tool_outputfile="$lt_tool_outputfile.exe"
10220 ;;
10221 esac~
10222 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10223 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10224 $RM "$lt_outputfile.manifest";
10225 fi'
10226 ;;
10227 *)
10228 # Assume MSVC wrapper
10229 hardcode_libdir_flag_spec=' '
10230 allow_undefined_flag=unsupported
10231 # Tell ltmain to make .lib files, not .a files.
10232 libext=lib
10233 # Tell ltmain to make .dll files, not .so files.
10234 shrext_cmds=".dll"
10235 # FIXME: Setting linknames here is a bad hack.
10236 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10237 # The linker will automatically build a .lib file if we build a DLL.
10238 old_archive_from_new_cmds='true'
10239 # FIXME: Should let the user specify the lib program.
10240 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10241 enable_shared_with_static_runtimes=yes
10242 ;;
10243 esac
10244 ;;
10245
10246 darwin* | rhapsody*)
10247
10248
10249 archive_cmds_need_lc=no
10250 hardcode_direct=no
10251 hardcode_automatic=yes
10252 hardcode_shlibpath_var=unsupported
10253 if test "$lt_cv_ld_force_load" = "yes"; then
10254 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\"`'
10255
10256 else
10257 whole_archive_flag_spec=''
10258 fi
10259 link_all_deplibs=yes
10260 allow_undefined_flag="$_lt_dar_allow_undefined"
10261 case $cc_basename in
10262 ifort*) _lt_dar_can_shared=yes ;;
10263 *) _lt_dar_can_shared=$GCC ;;
10264 esac
10265 if test "$_lt_dar_can_shared" = "yes"; then
10266 output_verbose_link_cmd=func_echo_all
10267 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10268 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10269 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}"
10270 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}"
10271
10272 else
10273 ld_shlibs=no
10274 fi
10275
10276 ;;
10277
10278 dgux*)
10279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280 hardcode_libdir_flag_spec='-L$libdir'
10281 hardcode_shlibpath_var=no
10282 ;;
10283
10284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10285 # support. Future versions do this automatically, but an explicit c++rt0.o
10286 # does not break anything, and helps significantly (at the cost of a little
10287 # extra space).
10288 freebsd2.2*)
10289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10290 hardcode_libdir_flag_spec='-R$libdir'
10291 hardcode_direct=yes
10292 hardcode_shlibpath_var=no
10293 ;;
10294
10295 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10296 freebsd2.*)
10297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10298 hardcode_direct=yes
10299 hardcode_minus_L=yes
10300 hardcode_shlibpath_var=no
10301 ;;
10302
10303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10304 freebsd* | dragonfly*)
10305 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10306 hardcode_libdir_flag_spec='-R$libdir'
10307 hardcode_direct=yes
10308 hardcode_shlibpath_var=no
10309 ;;
10310
10311 hpux9*)
10312 if test "$GCC" = yes; then
10313 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'
10314 else
10315 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'
10316 fi
10317 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10318 hardcode_libdir_separator=:
10319 hardcode_direct=yes
10320
10321 # hardcode_minus_L: Not really in the search PATH,
10322 # but as the default location of the library.
10323 hardcode_minus_L=yes
10324 export_dynamic_flag_spec='${wl}-E'
10325 ;;
10326
10327 hpux10*)
10328 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10329 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10330 else
10331 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10332 fi
10333 if test "$with_gnu_ld" = no; then
10334 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10335 hardcode_libdir_separator=:
10336 hardcode_direct=yes
10337 hardcode_direct_absolute=yes
10338 export_dynamic_flag_spec='${wl}-E'
10339 # hardcode_minus_L: Not really in the search PATH,
10340 # but as the default location of the library.
10341 hardcode_minus_L=yes
10342 fi
10343 ;;
10344
10345 hpux11*)
10346 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10347 case $host_cpu in
10348 hppa*64*)
10349 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10350 ;;
10351 ia64*)
10352 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10353 ;;
10354 *)
10355 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10356 ;;
10357 esac
10358 else
10359 case $host_cpu in
10360 hppa*64*)
10361 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10362 ;;
10363 ia64*)
10364 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10365 ;;
10366 *)
10367
10368 # Older versions of the 11.00 compiler do not understand -b yet
10369 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10371 $as_echo_n "checking if $CC understands -b... " >&6; }
10372 if ${lt_cv_prog_compiler__b+:} false; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 lt_cv_prog_compiler__b=no
10376 save_LDFLAGS="$LDFLAGS"
10377 LDFLAGS="$LDFLAGS -b"
10378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10380 # The linker can only warn and ignore the option if not recognized
10381 # So say no if there are warnings
10382 if test -s conftest.err; then
10383 # Append any errors to the config.log.
10384 cat conftest.err 1>&5
10385 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10387 if diff conftest.exp conftest.er2 >/dev/null; then
10388 lt_cv_prog_compiler__b=yes
10389 fi
10390 else
10391 lt_cv_prog_compiler__b=yes
10392 fi
10393 fi
10394 $RM -r conftest*
10395 LDFLAGS="$save_LDFLAGS"
10396
10397 fi
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10399 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10400
10401 if test x"$lt_cv_prog_compiler__b" = xyes; then
10402 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10403 else
10404 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10405 fi
10406
10407 ;;
10408 esac
10409 fi
10410 if test "$with_gnu_ld" = no; then
10411 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10412 hardcode_libdir_separator=:
10413
10414 case $host_cpu in
10415 hppa*64*|ia64*)
10416 hardcode_direct=no
10417 hardcode_shlibpath_var=no
10418 ;;
10419 *)
10420 hardcode_direct=yes
10421 hardcode_direct_absolute=yes
10422 export_dynamic_flag_spec='${wl}-E'
10423
10424 # hardcode_minus_L: Not really in the search PATH,
10425 # but as the default location of the library.
10426 hardcode_minus_L=yes
10427 ;;
10428 esac
10429 fi
10430 ;;
10431
10432 irix5* | irix6* | nonstopux*)
10433 if test "$GCC" = yes; then
10434 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'
10435 # Try to use the -exported_symbol ld option, if it does not
10436 # work, assume that -exports_file does not work either and
10437 # implicitly export all symbols.
10438 # This should be the same for all languages, so no per-tag cache variable.
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10440 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10441 if ${lt_cv_irix_exported_symbol+:} false; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 save_LDFLAGS="$LDFLAGS"
10445 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448 int foo (void) { return 0; }
10449 _ACEOF
10450 if ac_fn_c_try_link "$LINENO"; then :
10451 lt_cv_irix_exported_symbol=yes
10452 else
10453 lt_cv_irix_exported_symbol=no
10454 fi
10455 rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 LDFLAGS="$save_LDFLAGS"
10458 fi
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10460 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10461 if test "$lt_cv_irix_exported_symbol" = yes; then
10462 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'
10463 fi
10464 else
10465 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'
10466 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'
10467 fi
10468 archive_cmds_need_lc='no'
10469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10470 hardcode_libdir_separator=:
10471 inherit_rpath=yes
10472 link_all_deplibs=yes
10473 ;;
10474
10475 netbsd*)
10476 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10478 else
10479 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10480 fi
10481 hardcode_libdir_flag_spec='-R$libdir'
10482 hardcode_direct=yes
10483 hardcode_shlibpath_var=no
10484 ;;
10485
10486 newsos6)
10487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10488 hardcode_direct=yes
10489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10490 hardcode_libdir_separator=:
10491 hardcode_shlibpath_var=no
10492 ;;
10493
10494 *nto* | *qnx*)
10495 ;;
10496
10497 openbsd*)
10498 if test -f /usr/libexec/ld.so; then
10499 hardcode_direct=yes
10500 hardcode_shlibpath_var=no
10501 hardcode_direct_absolute=yes
10502 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10503 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10504 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10505 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10506 export_dynamic_flag_spec='${wl}-E'
10507 else
10508 case $host_os in
10509 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10511 hardcode_libdir_flag_spec='-R$libdir'
10512 ;;
10513 *)
10514 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10515 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10516 ;;
10517 esac
10518 fi
10519 else
10520 ld_shlibs=no
10521 fi
10522 ;;
10523
10524 os2*)
10525 hardcode_libdir_flag_spec='-L$libdir'
10526 hardcode_minus_L=yes
10527 allow_undefined_flag=unsupported
10528 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'
10529 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10530 ;;
10531
10532 osf3*)
10533 if test "$GCC" = yes; then
10534 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10535 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'
10536 else
10537 allow_undefined_flag=' -expect_unresolved \*'
10538 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'
10539 fi
10540 archive_cmds_need_lc='no'
10541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10542 hardcode_libdir_separator=:
10543 ;;
10544
10545 osf4* | osf5*) # as osf3* with the addition of -msym flag
10546 if test "$GCC" = yes; then
10547 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10548 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'
10549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10550 else
10551 allow_undefined_flag=' -expect_unresolved \*'
10552 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'
10553 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~
10554 $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'
10555
10556 # Both c and cxx compiler support -rpath directly
10557 hardcode_libdir_flag_spec='-rpath $libdir'
10558 fi
10559 archive_cmds_need_lc='no'
10560 hardcode_libdir_separator=:
10561 ;;
10562
10563 solaris*)
10564 no_undefined_flag=' -z defs'
10565 if test "$GCC" = yes; then
10566 wlarc='${wl}'
10567 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10568 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10569 $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'
10570 else
10571 case `$CC -V 2>&1` in
10572 *"Compilers 5.0"*)
10573 wlarc=''
10574 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10575 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10576 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10577 ;;
10578 *)
10579 wlarc='${wl}'
10580 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10581 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10582 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10583 ;;
10584 esac
10585 fi
10586 hardcode_libdir_flag_spec='-R$libdir'
10587 hardcode_shlibpath_var=no
10588 case $host_os in
10589 solaris2.[0-5] | solaris2.[0-5].*) ;;
10590 *)
10591 # The compiler driver will combine and reorder linker options,
10592 # but understands `-z linker_flag'. GCC discards it without `$wl',
10593 # but is careful enough not to reorder.
10594 # Supported since Solaris 2.6 (maybe 2.5.1?)
10595 if test "$GCC" = yes; then
10596 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10597 else
10598 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10599 fi
10600 ;;
10601 esac
10602 link_all_deplibs=yes
10603 ;;
10604
10605 sunos4*)
10606 if test "x$host_vendor" = xsequent; then
10607 # Use $CC to link under sequent, because it throws in some extra .o
10608 # files that make .init and .fini sections work.
10609 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10610 else
10611 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10612 fi
10613 hardcode_libdir_flag_spec='-L$libdir'
10614 hardcode_direct=yes
10615 hardcode_minus_L=yes
10616 hardcode_shlibpath_var=no
10617 ;;
10618
10619 sysv4)
10620 case $host_vendor in
10621 sni)
10622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10623 hardcode_direct=yes # is this really true???
10624 ;;
10625 siemens)
10626 ## LD is ld it makes a PLAMLIB
10627 ## CC just makes a GrossModule.
10628 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10629 reload_cmds='$CC -r -o $output$reload_objs'
10630 hardcode_direct=no
10631 ;;
10632 motorola)
10633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10634 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10635 ;;
10636 esac
10637 runpath_var='LD_RUN_PATH'
10638 hardcode_shlibpath_var=no
10639 ;;
10640
10641 sysv4.3*)
10642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643 hardcode_shlibpath_var=no
10644 export_dynamic_flag_spec='-Bexport'
10645 ;;
10646
10647 sysv4*MP*)
10648 if test -d /usr/nec; then
10649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650 hardcode_shlibpath_var=no
10651 runpath_var=LD_RUN_PATH
10652 hardcode_runpath_var=yes
10653 ld_shlibs=yes
10654 fi
10655 ;;
10656
10657 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10658 no_undefined_flag='${wl}-z,text'
10659 archive_cmds_need_lc=no
10660 hardcode_shlibpath_var=no
10661 runpath_var='LD_RUN_PATH'
10662
10663 if test "$GCC" = yes; then
10664 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10665 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10666 else
10667 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10668 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10669 fi
10670 ;;
10671
10672 sysv5* | sco3.2v5* | sco5v6*)
10673 # Note: We can NOT use -z defs as we might desire, because we do not
10674 # link with -lc, and that would cause any symbols used from libc to
10675 # always be unresolved, which means just about no library would
10676 # ever link correctly. If we're not using GNU ld we use -z text
10677 # though, which does catch some bad symbols but isn't as heavy-handed
10678 # as -z defs.
10679 no_undefined_flag='${wl}-z,text'
10680 allow_undefined_flag='${wl}-z,nodefs'
10681 archive_cmds_need_lc=no
10682 hardcode_shlibpath_var=no
10683 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10684 hardcode_libdir_separator=':'
10685 link_all_deplibs=yes
10686 export_dynamic_flag_spec='${wl}-Bexport'
10687 runpath_var='LD_RUN_PATH'
10688
10689 if test "$GCC" = yes; then
10690 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10691 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10692 else
10693 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10695 fi
10696 ;;
10697
10698 uts4*)
10699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10700 hardcode_libdir_flag_spec='-L$libdir'
10701 hardcode_shlibpath_var=no
10702 ;;
10703
10704 *)
10705 ld_shlibs=no
10706 ;;
10707 esac
10708
10709 if test x$host_vendor = xsni; then
10710 case $host in
10711 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10712 export_dynamic_flag_spec='${wl}-Blargedynsym'
10713 ;;
10714 esac
10715 fi
10716 fi
10717
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10719 $as_echo "$ld_shlibs" >&6; }
10720 test "$ld_shlibs" = no && can_build_shared=no
10721
10722 with_gnu_ld=$with_gnu_ld
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738 #
10739 # Do we need to explicitly link libc?
10740 #
10741 case "x$archive_cmds_need_lc" in
10742 x|xyes)
10743 # Assume -lc should be added
10744 archive_cmds_need_lc=yes
10745
10746 if test "$enable_shared" = yes && test "$GCC" = yes; then
10747 case $archive_cmds in
10748 *'~'*)
10749 # FIXME: we may have to deal with multi-command sequences.
10750 ;;
10751 '$CC '*)
10752 # Test whether the compiler implicitly links with -lc since on some
10753 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10754 # to ld, don't add -lc before -lgcc.
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10756 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10757 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 $RM conftest*
10761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10762
10763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10764 (eval $ac_compile) 2>&5
10765 ac_status=$?
10766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10767 test $ac_status = 0; } 2>conftest.err; then
10768 soname=conftest
10769 lib=conftest
10770 libobjs=conftest.$ac_objext
10771 deplibs=
10772 wl=$lt_prog_compiler_wl
10773 pic_flag=$lt_prog_compiler_pic
10774 compiler_flags=-v
10775 linker_flags=-v
10776 verstring=
10777 output_objdir=.
10778 libname=conftest
10779 lt_save_allow_undefined_flag=$allow_undefined_flag
10780 allow_undefined_flag=
10781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10782 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10783 ac_status=$?
10784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10785 test $ac_status = 0; }
10786 then
10787 lt_cv_archive_cmds_need_lc=no
10788 else
10789 lt_cv_archive_cmds_need_lc=yes
10790 fi
10791 allow_undefined_flag=$lt_save_allow_undefined_flag
10792 else
10793 cat conftest.err 1>&5
10794 fi
10795 $RM conftest*
10796
10797 fi
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10799 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10800 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10801 ;;
10802 esac
10803 fi
10804 ;;
10805 esac
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10959 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10960
10961 if test "$GCC" = yes; then
10962 case $host_os in
10963 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10964 *) lt_awk_arg="/^libraries:/" ;;
10965 esac
10966 case $host_os in
10967 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10968 *) lt_sed_strip_eq="s,=/,/,g" ;;
10969 esac
10970 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10971 case $lt_search_path_spec in
10972 *\;*)
10973 # if the path contains ";" then we assume it to be the separator
10974 # otherwise default to the standard path separator (i.e. ":") - it is
10975 # assumed that no part of a normal pathname contains ";" but that should
10976 # okay in the real world where ";" in dirpaths is itself problematic.
10977 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10978 ;;
10979 *)
10980 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10981 ;;
10982 esac
10983 # Ok, now we have the path, separated by spaces, we can step through it
10984 # and add multilib dir if necessary.
10985 lt_tmp_lt_search_path_spec=
10986 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10987 for lt_sys_path in $lt_search_path_spec; do
10988 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10989 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10990 else
10991 test -d "$lt_sys_path" && \
10992 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10993 fi
10994 done
10995 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10996 BEGIN {RS=" "; FS="/|\n";} {
10997 lt_foo="";
10998 lt_count=0;
10999 for (lt_i = NF; lt_i > 0; lt_i--) {
11000 if ($lt_i != "" && $lt_i != ".") {
11001 if ($lt_i == "..") {
11002 lt_count++;
11003 } else {
11004 if (lt_count == 0) {
11005 lt_foo="/" $lt_i lt_foo;
11006 } else {
11007 lt_count--;
11008 }
11009 }
11010 }
11011 }
11012 if (lt_foo != "") { lt_freq[lt_foo]++; }
11013 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11014 }'`
11015 # AWK program above erroneously prepends '/' to C:/dos/paths
11016 # for these hosts.
11017 case $host_os in
11018 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11019 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11020 esac
11021 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11022 else
11023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11024 fi
11025 library_names_spec=
11026 libname_spec='lib$name'
11027 soname_spec=
11028 shrext_cmds=".so"
11029 postinstall_cmds=
11030 postuninstall_cmds=
11031 finish_cmds=
11032 finish_eval=
11033 shlibpath_var=
11034 shlibpath_overrides_runpath=unknown
11035 version_type=none
11036 dynamic_linker="$host_os ld.so"
11037 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11038 need_lib_prefix=unknown
11039 hardcode_into_libs=no
11040
11041 # when you set need_version to no, make sure it does not cause -set_version
11042 # flags to be left without arguments
11043 need_version=unknown
11044
11045 case $host_os in
11046 aix3*)
11047 version_type=linux # correct to gnu/linux during the next big refactor
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11049 shlibpath_var=LIBPATH
11050
11051 # AIX 3 has no versioning support, so we append a major version to the name.
11052 soname_spec='${libname}${release}${shared_ext}$major'
11053 ;;
11054
11055 aix[4-9]*)
11056 version_type=linux # correct to gnu/linux during the next big refactor
11057 need_lib_prefix=no
11058 need_version=no
11059 hardcode_into_libs=yes
11060 if test "$host_cpu" = ia64; then
11061 # AIX 5 supports IA64
11062 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 else
11065 # With GCC up to 2.95.x, collect2 would create an import file
11066 # for dependence libraries. The import file would start with
11067 # the line `#! .'. This would cause the generated library to
11068 # depend on `.', always an invalid library. This was fixed in
11069 # development snapshots of GCC prior to 3.0.
11070 case $host_os in
11071 aix4 | aix4.[01] | aix4.[01].*)
11072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11073 echo ' yes '
11074 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11075 :
11076 else
11077 can_build_shared=no
11078 fi
11079 ;;
11080 esac
11081 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11082 # soname into executable. Probably we can add versioning support to
11083 # collect2, so additional links can be useful in future.
11084 if test "$aix_use_runtimelinking" = yes; then
11085 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11086 # instead of lib<name>.a to let people know that these are not
11087 # typical AIX shared libraries.
11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089 else
11090 # We preserve .a as extension for shared libraries through AIX4.2
11091 # and later when we are not doing run time linking.
11092 library_names_spec='${libname}${release}.a $libname.a'
11093 soname_spec='${libname}${release}${shared_ext}$major'
11094 fi
11095 shlibpath_var=LIBPATH
11096 fi
11097 ;;
11098
11099 amigaos*)
11100 case $host_cpu in
11101 powerpc)
11102 # Since July 2007 AmigaOS4 officially supports .so libraries.
11103 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 ;;
11106 m68k)
11107 library_names_spec='$libname.ixlibrary $libname.a'
11108 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11109 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'
11110 ;;
11111 esac
11112 ;;
11113
11114 beos*)
11115 library_names_spec='${libname}${shared_ext}'
11116 dynamic_linker="$host_os ld.so"
11117 shlibpath_var=LIBRARY_PATH
11118 ;;
11119
11120 bsdi[45]*)
11121 version_type=linux # correct to gnu/linux during the next big refactor
11122 need_version=no
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 soname_spec='${libname}${release}${shared_ext}$major'
11125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11129 # the default ld.so.conf also contains /usr/contrib/lib and
11130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11131 # libtool to hard-code these into programs
11132 ;;
11133
11134 cygwin* | mingw* | pw32* | cegcc*)
11135 version_type=windows
11136 shrext_cmds=".dll"
11137 need_version=no
11138 need_lib_prefix=no
11139
11140 case $GCC,$cc_basename in
11141 yes,*)
11142 # gcc
11143 library_names_spec='$libname.dll.a'
11144 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11145 postinstall_cmds='base_file=`basename \${file}`~
11146 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11147 dldir=$destdir/`dirname \$dlpath`~
11148 test -d \$dldir || mkdir -p \$dldir~
11149 $install_prog $dir/$dlname \$dldir/$dlname~
11150 chmod a+x \$dldir/$dlname~
11151 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11152 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11153 fi'
11154 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11155 dlpath=$dir/\$dldll~
11156 $RM \$dlpath'
11157 shlibpath_overrides_runpath=yes
11158
11159 case $host_os in
11160 cygwin*)
11161 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11162 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11163
11164 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11165 ;;
11166 mingw* | cegcc*)
11167 # MinGW DLLs use traditional 'lib' prefix
11168 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11169 ;;
11170 pw32*)
11171 # pw32 DLLs use 'pw' prefix rather than 'lib'
11172 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11173 ;;
11174 esac
11175 dynamic_linker='Win32 ld.exe'
11176 ;;
11177
11178 *,cl*)
11179 # Native MSVC
11180 libname_spec='$name'
11181 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11182 library_names_spec='${libname}.dll.lib'
11183
11184 case $build_os in
11185 mingw*)
11186 sys_lib_search_path_spec=
11187 lt_save_ifs=$IFS
11188 IFS=';'
11189 for lt_path in $LIB
11190 do
11191 IFS=$lt_save_ifs
11192 # Let DOS variable expansion print the short 8.3 style file name.
11193 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11194 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11195 done
11196 IFS=$lt_save_ifs
11197 # Convert to MSYS style.
11198 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11199 ;;
11200 cygwin*)
11201 # Convert to unix form, then to dos form, then back to unix form
11202 # but this time dos style (no spaces!) so that the unix form looks
11203 # like /cygdrive/c/PROGRA~1:/cygdr...
11204 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11205 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11206 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11207 ;;
11208 *)
11209 sys_lib_search_path_spec="$LIB"
11210 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11211 # It is most probably a Windows format PATH.
11212 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11213 else
11214 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11215 fi
11216 # FIXME: find the short name or the path components, as spaces are
11217 # common. (e.g. "Program Files" -> "PROGRA~1")
11218 ;;
11219 esac
11220
11221 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11222 postinstall_cmds='base_file=`basename \${file}`~
11223 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11224 dldir=$destdir/`dirname \$dlpath`~
11225 test -d \$dldir || mkdir -p \$dldir~
11226 $install_prog $dir/$dlname \$dldir/$dlname'
11227 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11228 dlpath=$dir/\$dldll~
11229 $RM \$dlpath'
11230 shlibpath_overrides_runpath=yes
11231 dynamic_linker='Win32 link.exe'
11232 ;;
11233
11234 *)
11235 # Assume MSVC wrapper
11236 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11237 dynamic_linker='Win32 ld.exe'
11238 ;;
11239 esac
11240 # FIXME: first we should search . and the directory the executable is in
11241 shlibpath_var=PATH
11242 ;;
11243
11244 darwin* | rhapsody*)
11245 dynamic_linker="$host_os dyld"
11246 version_type=darwin
11247 need_lib_prefix=no
11248 need_version=no
11249 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11250 soname_spec='${libname}${release}${major}$shared_ext'
11251 shlibpath_overrides_runpath=yes
11252 shlibpath_var=DYLD_LIBRARY_PATH
11253 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11254
11255 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11256 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11257 ;;
11258
11259 dgux*)
11260 version_type=linux # correct to gnu/linux during the next big refactor
11261 need_lib_prefix=no
11262 need_version=no
11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11264 soname_spec='${libname}${release}${shared_ext}$major'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 ;;
11267
11268 freebsd* | dragonfly*)
11269 # DragonFly does not have aout. When/if they implement a new
11270 # versioning mechanism, adjust this.
11271 if test -x /usr/bin/objformat; then
11272 objformat=`/usr/bin/objformat`
11273 else
11274 case $host_os in
11275 freebsd[23].*) objformat=aout ;;
11276 *) objformat=elf ;;
11277 esac
11278 fi
11279 version_type=freebsd-$objformat
11280 case $version_type in
11281 freebsd-elf*)
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11283 need_version=no
11284 need_lib_prefix=no
11285 ;;
11286 freebsd-*)
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11288 need_version=yes
11289 ;;
11290 esac
11291 shlibpath_var=LD_LIBRARY_PATH
11292 case $host_os in
11293 freebsd2.*)
11294 shlibpath_overrides_runpath=yes
11295 ;;
11296 freebsd3.[01]* | freebsdelf3.[01]*)
11297 shlibpath_overrides_runpath=yes
11298 hardcode_into_libs=yes
11299 ;;
11300 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11301 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11302 shlibpath_overrides_runpath=no
11303 hardcode_into_libs=yes
11304 ;;
11305 *) # from 4.6 on, and DragonFly
11306 shlibpath_overrides_runpath=yes
11307 hardcode_into_libs=yes
11308 ;;
11309 esac
11310 ;;
11311
11312 gnu*)
11313 version_type=linux # correct to gnu/linux during the next big refactor
11314 need_lib_prefix=no
11315 need_version=no
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11317 soname_spec='${libname}${release}${shared_ext}$major'
11318 shlibpath_var=LD_LIBRARY_PATH
11319 shlibpath_overrides_runpath=no
11320 hardcode_into_libs=yes
11321 ;;
11322
11323 haiku*)
11324 version_type=linux # correct to gnu/linux during the next big refactor
11325 need_lib_prefix=no
11326 need_version=no
11327 dynamic_linker="$host_os runtime_loader"
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11329 soname_spec='${libname}${release}${shared_ext}$major'
11330 shlibpath_var=LIBRARY_PATH
11331 shlibpath_overrides_runpath=yes
11332 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11333 hardcode_into_libs=yes
11334 ;;
11335
11336 hpux9* | hpux10* | hpux11*)
11337 # Give a soname corresponding to the major version so that dld.sl refuses to
11338 # link against other versions.
11339 version_type=sunos
11340 need_lib_prefix=no
11341 need_version=no
11342 case $host_cpu in
11343 ia64*)
11344 shrext_cmds='.so'
11345 hardcode_into_libs=yes
11346 dynamic_linker="$host_os dld.so"
11347 shlibpath_var=LD_LIBRARY_PATH
11348 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 if test "X$HPUX_IA64_MODE" = X32; then
11352 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11353 else
11354 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11355 fi
11356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11357 ;;
11358 hppa*64*)
11359 shrext_cmds='.sl'
11360 hardcode_into_libs=yes
11361 dynamic_linker="$host_os dld.sl"
11362 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11363 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11365 soname_spec='${libname}${release}${shared_ext}$major'
11366 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11368 ;;
11369 *)
11370 shrext_cmds='.sl'
11371 dynamic_linker="$host_os dld.sl"
11372 shlibpath_var=SHLIB_PATH
11373 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 soname_spec='${libname}${release}${shared_ext}$major'
11376 ;;
11377 esac
11378 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11379 postinstall_cmds='chmod 555 $lib'
11380 # or fails outright, so override atomically:
11381 install_override_mode=555
11382 ;;
11383
11384 interix[3-9]*)
11385 version_type=linux # correct to gnu/linux during the next big refactor
11386 need_lib_prefix=no
11387 need_version=no
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11391 shlibpath_var=LD_LIBRARY_PATH
11392 shlibpath_overrides_runpath=no
11393 hardcode_into_libs=yes
11394 ;;
11395
11396 irix5* | irix6* | nonstopux*)
11397 case $host_os in
11398 nonstopux*) version_type=nonstopux ;;
11399 *)
11400 if test "$lt_cv_prog_gnu_ld" = yes; then
11401 version_type=linux # correct to gnu/linux during the next big refactor
11402 else
11403 version_type=irix
11404 fi ;;
11405 esac
11406 need_lib_prefix=no
11407 need_version=no
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11410 case $host_os in
11411 irix5* | nonstopux*)
11412 libsuff= shlibsuff=
11413 ;;
11414 *)
11415 case $LD in # libtool.m4 will add one of these switches to LD
11416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11417 libsuff= shlibsuff= libmagic=32-bit;;
11418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11419 libsuff=32 shlibsuff=N32 libmagic=N32;;
11420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11422 *) libsuff= shlibsuff= libmagic=never-match;;
11423 esac
11424 ;;
11425 esac
11426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11427 shlibpath_overrides_runpath=no
11428 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11429 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11430 hardcode_into_libs=yes
11431 ;;
11432
11433 # No shared lib support for Linux oldld, aout, or coff.
11434 linux*oldld* | linux*aout* | linux*coff*)
11435 dynamic_linker=no
11436 ;;
11437
11438 # This must be glibc/ELF.
11439 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11440 version_type=linux # correct to gnu/linux during the next big refactor
11441 need_lib_prefix=no
11442 need_version=no
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 shlibpath_overrides_runpath=no
11448
11449 # Some binutils ld are patched to set DT_RUNPATH
11450 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11451 $as_echo_n "(cached) " >&6
11452 else
11453 lt_cv_shlibpath_overrides_runpath=no
11454 save_LDFLAGS=$LDFLAGS
11455 save_libdir=$libdir
11456 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11457 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460
11461 int
11462 main ()
11463 {
11464
11465 ;
11466 return 0;
11467 }
11468 _ACEOF
11469 if ac_fn_c_try_link "$LINENO"; then :
11470 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11471 lt_cv_shlibpath_overrides_runpath=yes
11472 fi
11473 fi
11474 rm -f core conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11476 LDFLAGS=$save_LDFLAGS
11477 libdir=$save_libdir
11478
11479 fi
11480
11481 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11482
11483 # This implies no fast_install, which is unacceptable.
11484 # Some rework will be needed to allow for fast_install
11485 # before this can be enabled.
11486 hardcode_into_libs=yes
11487
11488 # Append ld.so.conf contents to the search path
11489 if test -f /etc/ld.so.conf; then
11490 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' ' '`
11491 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11492 fi
11493
11494 # We used to test for /lib/ld.so.1 and disable shared libraries on
11495 # powerpc, because MkLinux only supported shared libraries with the
11496 # GNU dynamic linker. Since this was broken with cross compilers,
11497 # most powerpc-linux boxes support dynamic linking these days and
11498 # people can always --disable-shared, the test was removed, and we
11499 # assume the GNU/Linux dynamic linker is in use.
11500 dynamic_linker='GNU/Linux ld.so'
11501 ;;
11502
11503 netbsd*)
11504 version_type=sunos
11505 need_lib_prefix=no
11506 need_version=no
11507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11510 dynamic_linker='NetBSD (a.out) ld.so'
11511 else
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 dynamic_linker='NetBSD ld.elf_so'
11515 fi
11516 shlibpath_var=LD_LIBRARY_PATH
11517 shlibpath_overrides_runpath=yes
11518 hardcode_into_libs=yes
11519 ;;
11520
11521 newsos6)
11522 version_type=linux # correct to gnu/linux during the next big refactor
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 shlibpath_var=LD_LIBRARY_PATH
11525 shlibpath_overrides_runpath=yes
11526 ;;
11527
11528 *nto* | *qnx*)
11529 version_type=qnx
11530 need_lib_prefix=no
11531 need_version=no
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 shlibpath_overrides_runpath=no
11536 hardcode_into_libs=yes
11537 dynamic_linker='ldqnx.so'
11538 ;;
11539
11540 openbsd*)
11541 version_type=sunos
11542 sys_lib_dlsearch_path_spec="/usr/lib"
11543 need_lib_prefix=no
11544 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11545 case $host_os in
11546 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11547 *) need_version=no ;;
11548 esac
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11553 case $host_os in
11554 openbsd2.[89] | openbsd2.[89].*)
11555 shlibpath_overrides_runpath=no
11556 ;;
11557 *)
11558 shlibpath_overrides_runpath=yes
11559 ;;
11560 esac
11561 else
11562 shlibpath_overrides_runpath=yes
11563 fi
11564 ;;
11565
11566 os2*)
11567 libname_spec='$name'
11568 shrext_cmds=".dll"
11569 need_lib_prefix=no
11570 library_names_spec='$libname${shared_ext} $libname.a'
11571 dynamic_linker='OS/2 ld.exe'
11572 shlibpath_var=LIBPATH
11573 ;;
11574
11575 osf3* | osf4* | osf5*)
11576 version_type=osf
11577 need_lib_prefix=no
11578 need_version=no
11579 soname_spec='${libname}${release}${shared_ext}$major'
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 shlibpath_var=LD_LIBRARY_PATH
11582 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11583 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11584 ;;
11585
11586 rdos*)
11587 dynamic_linker=no
11588 ;;
11589
11590 solaris*)
11591 version_type=linux # correct to gnu/linux during the next big refactor
11592 need_lib_prefix=no
11593 need_version=no
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11595 soname_spec='${libname}${release}${shared_ext}$major'
11596 shlibpath_var=LD_LIBRARY_PATH
11597 shlibpath_overrides_runpath=yes
11598 hardcode_into_libs=yes
11599 # ldd complains unless libraries are executable
11600 postinstall_cmds='chmod +x $lib'
11601 ;;
11602
11603 sunos4*)
11604 version_type=sunos
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11606 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 shlibpath_overrides_runpath=yes
11609 if test "$with_gnu_ld" = yes; then
11610 need_lib_prefix=no
11611 fi
11612 need_version=yes
11613 ;;
11614
11615 sysv4 | sysv4.3*)
11616 version_type=linux # correct to gnu/linux during the next big refactor
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618 soname_spec='${libname}${release}${shared_ext}$major'
11619 shlibpath_var=LD_LIBRARY_PATH
11620 case $host_vendor in
11621 sni)
11622 shlibpath_overrides_runpath=no
11623 need_lib_prefix=no
11624 runpath_var=LD_RUN_PATH
11625 ;;
11626 siemens)
11627 need_lib_prefix=no
11628 ;;
11629 motorola)
11630 need_lib_prefix=no
11631 need_version=no
11632 shlibpath_overrides_runpath=no
11633 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11634 ;;
11635 esac
11636 ;;
11637
11638 sysv4*MP*)
11639 if test -d /usr/nec ;then
11640 version_type=linux # correct to gnu/linux during the next big refactor
11641 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11642 soname_spec='$libname${shared_ext}.$major'
11643 shlibpath_var=LD_LIBRARY_PATH
11644 fi
11645 ;;
11646
11647 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11648 version_type=freebsd-elf
11649 need_lib_prefix=no
11650 need_version=no
11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11652 soname_spec='${libname}${release}${shared_ext}$major'
11653 shlibpath_var=LD_LIBRARY_PATH
11654 shlibpath_overrides_runpath=yes
11655 hardcode_into_libs=yes
11656 if test "$with_gnu_ld" = yes; then
11657 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11658 else
11659 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11660 case $host_os in
11661 sco3.2v5*)
11662 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11663 ;;
11664 esac
11665 fi
11666 sys_lib_dlsearch_path_spec='/usr/lib'
11667 ;;
11668
11669 tpf*)
11670 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11671 version_type=linux # correct to gnu/linux during the next big refactor
11672 need_lib_prefix=no
11673 need_version=no
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675 shlibpath_var=LD_LIBRARY_PATH
11676 shlibpath_overrides_runpath=no
11677 hardcode_into_libs=yes
11678 ;;
11679
11680 uts4*)
11681 version_type=linux # correct to gnu/linux during the next big refactor
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11683 soname_spec='${libname}${release}${shared_ext}$major'
11684 shlibpath_var=LD_LIBRARY_PATH
11685 ;;
11686
11687 *)
11688 dynamic_linker=no
11689 ;;
11690 esac
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11692 $as_echo "$dynamic_linker" >&6; }
11693 test "$dynamic_linker" = no && can_build_shared=no
11694
11695 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11696 if test "$GCC" = yes; then
11697 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11698 fi
11699
11700 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11701 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11702 fi
11703 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11704 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11705 fi
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11799 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11800 hardcode_action=
11801 if test -n "$hardcode_libdir_flag_spec" ||
11802 test -n "$runpath_var" ||
11803 test "X$hardcode_automatic" = "Xyes" ; then
11804
11805 # We can hardcode non-existent directories.
11806 if test "$hardcode_direct" != no &&
11807 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11808 # have to relink, otherwise we might link with an installed library
11809 # when we should be linking with a yet-to-be-installed one
11810 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11811 test "$hardcode_minus_L" != no; then
11812 # Linking always hardcodes the temporary library directory.
11813 hardcode_action=relink
11814 else
11815 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11816 hardcode_action=immediate
11817 fi
11818 else
11819 # We cannot hardcode anything, or else we can only hardcode existing
11820 # directories.
11821 hardcode_action=unsupported
11822 fi
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11824 $as_echo "$hardcode_action" >&6; }
11825
11826 if test "$hardcode_action" = relink ||
11827 test "$inherit_rpath" = yes; then
11828 # Fast installation is not supported
11829 enable_fast_install=no
11830 elif test "$shlibpath_overrides_runpath" = yes ||
11831 test "$enable_shared" = no; then
11832 # Fast installation is not necessary
11833 enable_fast_install=needless
11834 fi
11835
11836
11837
11838
11839
11840
11841 if test "x$enable_dlopen" != xyes; then
11842 enable_dlopen=unknown
11843 enable_dlopen_self=unknown
11844 enable_dlopen_self_static=unknown
11845 else
11846 lt_cv_dlopen=no
11847 lt_cv_dlopen_libs=
11848
11849 case $host_os in
11850 beos*)
11851 lt_cv_dlopen="load_add_on"
11852 lt_cv_dlopen_libs=
11853 lt_cv_dlopen_self=yes
11854 ;;
11855
11856 mingw* | pw32* | cegcc*)
11857 lt_cv_dlopen="LoadLibrary"
11858 lt_cv_dlopen_libs=
11859 ;;
11860
11861 cygwin*)
11862 lt_cv_dlopen="dlopen"
11863 lt_cv_dlopen_libs=
11864 ;;
11865
11866 darwin*)
11867 # if libdl is installed we need to link against it
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11869 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11870 if ${ac_cv_lib_dl_dlopen+:} false; then :
11871 $as_echo_n "(cached) " >&6
11872 else
11873 ac_check_lib_save_LIBS=$LIBS
11874 LIBS="-ldl $LIBS"
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11877
11878 /* Override any GCC internal prototype to avoid an error.
11879 Use char because int might match the return type of a GCC
11880 builtin and then its argument prototype would still apply. */
11881 #ifdef __cplusplus
11882 extern "C"
11883 #endif
11884 char dlopen ();
11885 int
11886 main ()
11887 {
11888 return dlopen ();
11889 ;
11890 return 0;
11891 }
11892 _ACEOF
11893 if ac_fn_c_try_link "$LINENO"; then :
11894 ac_cv_lib_dl_dlopen=yes
11895 else
11896 ac_cv_lib_dl_dlopen=no
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
11900 LIBS=$ac_check_lib_save_LIBS
11901 fi
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11903 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11904 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11906 else
11907
11908 lt_cv_dlopen="dyld"
11909 lt_cv_dlopen_libs=
11910 lt_cv_dlopen_self=yes
11911
11912 fi
11913
11914 ;;
11915
11916 *)
11917 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11918 if test "x$ac_cv_func_shl_load" = xyes; then :
11919 lt_cv_dlopen="shl_load"
11920 else
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11922 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11923 if ${ac_cv_lib_dld_shl_load+:} false; then :
11924 $as_echo_n "(cached) " >&6
11925 else
11926 ac_check_lib_save_LIBS=$LIBS
11927 LIBS="-ldld $LIBS"
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11930
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11934 #ifdef __cplusplus
11935 extern "C"
11936 #endif
11937 char shl_load ();
11938 int
11939 main ()
11940 {
11941 return shl_load ();
11942 ;
11943 return 0;
11944 }
11945 _ACEOF
11946 if ac_fn_c_try_link "$LINENO"; then :
11947 ac_cv_lib_dld_shl_load=yes
11948 else
11949 ac_cv_lib_dld_shl_load=no
11950 fi
11951 rm -f core conftest.err conftest.$ac_objext \
11952 conftest$ac_exeext conftest.$ac_ext
11953 LIBS=$ac_check_lib_save_LIBS
11954 fi
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11956 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11957 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11958 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11959 else
11960 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11961 if test "x$ac_cv_func_dlopen" = xyes; then :
11962 lt_cv_dlopen="dlopen"
11963 else
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11965 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11966 if ${ac_cv_lib_dl_dlopen+:} false; then :
11967 $as_echo_n "(cached) " >&6
11968 else
11969 ac_check_lib_save_LIBS=$LIBS
11970 LIBS="-ldl $LIBS"
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h. */
11973
11974 /* Override any GCC internal prototype to avoid an error.
11975 Use char because int might match the return type of a GCC
11976 builtin and then its argument prototype would still apply. */
11977 #ifdef __cplusplus
11978 extern "C"
11979 #endif
11980 char dlopen ();
11981 int
11982 main ()
11983 {
11984 return dlopen ();
11985 ;
11986 return 0;
11987 }
11988 _ACEOF
11989 if ac_fn_c_try_link "$LINENO"; then :
11990 ac_cv_lib_dl_dlopen=yes
11991 else
11992 ac_cv_lib_dl_dlopen=no
11993 fi
11994 rm -f core conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext conftest.$ac_ext
11996 LIBS=$ac_check_lib_save_LIBS
11997 fi
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11999 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12000 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12001 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12002 else
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12004 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12005 if ${ac_cv_lib_svld_dlopen+:} false; then :
12006 $as_echo_n "(cached) " >&6
12007 else
12008 ac_check_lib_save_LIBS=$LIBS
12009 LIBS="-lsvld $LIBS"
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12012
12013 /* Override any GCC internal prototype to avoid an error.
12014 Use char because int might match the return type of a GCC
12015 builtin and then its argument prototype would still apply. */
12016 #ifdef __cplusplus
12017 extern "C"
12018 #endif
12019 char dlopen ();
12020 int
12021 main ()
12022 {
12023 return dlopen ();
12024 ;
12025 return 0;
12026 }
12027 _ACEOF
12028 if ac_fn_c_try_link "$LINENO"; then :
12029 ac_cv_lib_svld_dlopen=yes
12030 else
12031 ac_cv_lib_svld_dlopen=no
12032 fi
12033 rm -f core conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12035 LIBS=$ac_check_lib_save_LIBS
12036 fi
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12038 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12039 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12040 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12041 else
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12043 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12044 if ${ac_cv_lib_dld_dld_link+:} false; then :
12045 $as_echo_n "(cached) " >&6
12046 else
12047 ac_check_lib_save_LIBS=$LIBS
12048 LIBS="-ldld $LIBS"
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051
12052 /* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12055 #ifdef __cplusplus
12056 extern "C"
12057 #endif
12058 char dld_link ();
12059 int
12060 main ()
12061 {
12062 return dld_link ();
12063 ;
12064 return 0;
12065 }
12066 _ACEOF
12067 if ac_fn_c_try_link "$LINENO"; then :
12068 ac_cv_lib_dld_dld_link=yes
12069 else
12070 ac_cv_lib_dld_dld_link=no
12071 fi
12072 rm -f core conftest.err conftest.$ac_objext \
12073 conftest$ac_exeext conftest.$ac_ext
12074 LIBS=$ac_check_lib_save_LIBS
12075 fi
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12077 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12078 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12079 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12080 fi
12081
12082
12083 fi
12084
12085
12086 fi
12087
12088
12089 fi
12090
12091
12092 fi
12093
12094
12095 fi
12096
12097 ;;
12098 esac
12099
12100 if test "x$lt_cv_dlopen" != xno; then
12101 enable_dlopen=yes
12102 else
12103 enable_dlopen=no
12104 fi
12105
12106 case $lt_cv_dlopen in
12107 dlopen)
12108 save_CPPFLAGS="$CPPFLAGS"
12109 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12110
12111 save_LDFLAGS="$LDFLAGS"
12112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12113
12114 save_LIBS="$LIBS"
12115 LIBS="$lt_cv_dlopen_libs $LIBS"
12116
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12118 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12119 if ${lt_cv_dlopen_self+:} false; then :
12120 $as_echo_n "(cached) " >&6
12121 else
12122 if test "$cross_compiling" = yes; then :
12123 lt_cv_dlopen_self=cross
12124 else
12125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12126 lt_status=$lt_dlunknown
12127 cat > conftest.$ac_ext <<_LT_EOF
12128 #line $LINENO "configure"
12129 #include "confdefs.h"
12130
12131 #if HAVE_DLFCN_H
12132 #include <dlfcn.h>
12133 #endif
12134
12135 #include <stdio.h>
12136
12137 #ifdef RTLD_GLOBAL
12138 # define LT_DLGLOBAL RTLD_GLOBAL
12139 #else
12140 # ifdef DL_GLOBAL
12141 # define LT_DLGLOBAL DL_GLOBAL
12142 # else
12143 # define LT_DLGLOBAL 0
12144 # endif
12145 #endif
12146
12147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12148 find out it does not work in some platform. */
12149 #ifndef LT_DLLAZY_OR_NOW
12150 # ifdef RTLD_LAZY
12151 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12152 # else
12153 # ifdef DL_LAZY
12154 # define LT_DLLAZY_OR_NOW DL_LAZY
12155 # else
12156 # ifdef RTLD_NOW
12157 # define LT_DLLAZY_OR_NOW RTLD_NOW
12158 # else
12159 # ifdef DL_NOW
12160 # define LT_DLLAZY_OR_NOW DL_NOW
12161 # else
12162 # define LT_DLLAZY_OR_NOW 0
12163 # endif
12164 # endif
12165 # endif
12166 # endif
12167 #endif
12168
12169 /* When -fvisbility=hidden is used, assume the code has been annotated
12170 correspondingly for the symbols needed. */
12171 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12172 int fnord () __attribute__((visibility("default")));
12173 #endif
12174
12175 int fnord () { return 42; }
12176 int main ()
12177 {
12178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12179 int status = $lt_dlunknown;
12180
12181 if (self)
12182 {
12183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12184 else
12185 {
12186 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12187 else puts (dlerror ());
12188 }
12189 /* dlclose (self); */
12190 }
12191 else
12192 puts (dlerror ());
12193
12194 return status;
12195 }
12196 _LT_EOF
12197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12198 (eval $ac_link) 2>&5
12199 ac_status=$?
12200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12201 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12202 (./conftest; exit; ) >&5 2>/dev/null
12203 lt_status=$?
12204 case x$lt_status in
12205 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12206 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12207 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12208 esac
12209 else :
12210 # compilation failed
12211 lt_cv_dlopen_self=no
12212 fi
12213 fi
12214 rm -fr conftest*
12215
12216
12217 fi
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12219 $as_echo "$lt_cv_dlopen_self" >&6; }
12220
12221 if test "x$lt_cv_dlopen_self" = xyes; then
12222 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12224 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12225 if ${lt_cv_dlopen_self_static+:} false; then :
12226 $as_echo_n "(cached) " >&6
12227 else
12228 if test "$cross_compiling" = yes; then :
12229 lt_cv_dlopen_self_static=cross
12230 else
12231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12232 lt_status=$lt_dlunknown
12233 cat > conftest.$ac_ext <<_LT_EOF
12234 #line $LINENO "configure"
12235 #include "confdefs.h"
12236
12237 #if HAVE_DLFCN_H
12238 #include <dlfcn.h>
12239 #endif
12240
12241 #include <stdio.h>
12242
12243 #ifdef RTLD_GLOBAL
12244 # define LT_DLGLOBAL RTLD_GLOBAL
12245 #else
12246 # ifdef DL_GLOBAL
12247 # define LT_DLGLOBAL DL_GLOBAL
12248 # else
12249 # define LT_DLGLOBAL 0
12250 # endif
12251 #endif
12252
12253 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12254 find out it does not work in some platform. */
12255 #ifndef LT_DLLAZY_OR_NOW
12256 # ifdef RTLD_LAZY
12257 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12258 # else
12259 # ifdef DL_LAZY
12260 # define LT_DLLAZY_OR_NOW DL_LAZY
12261 # else
12262 # ifdef RTLD_NOW
12263 # define LT_DLLAZY_OR_NOW RTLD_NOW
12264 # else
12265 # ifdef DL_NOW
12266 # define LT_DLLAZY_OR_NOW DL_NOW
12267 # else
12268 # define LT_DLLAZY_OR_NOW 0
12269 # endif
12270 # endif
12271 # endif
12272 # endif
12273 #endif
12274
12275 /* When -fvisbility=hidden is used, assume the code has been annotated
12276 correspondingly for the symbols needed. */
12277 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12278 int fnord () __attribute__((visibility("default")));
12279 #endif
12280
12281 int fnord () { return 42; }
12282 int main ()
12283 {
12284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12285 int status = $lt_dlunknown;
12286
12287 if (self)
12288 {
12289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12290 else
12291 {
12292 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12293 else puts (dlerror ());
12294 }
12295 /* dlclose (self); */
12296 }
12297 else
12298 puts (dlerror ());
12299
12300 return status;
12301 }
12302 _LT_EOF
12303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12304 (eval $ac_link) 2>&5
12305 ac_status=$?
12306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12307 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12308 (./conftest; exit; ) >&5 2>/dev/null
12309 lt_status=$?
12310 case x$lt_status in
12311 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12312 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12313 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12314 esac
12315 else :
12316 # compilation failed
12317 lt_cv_dlopen_self_static=no
12318 fi
12319 fi
12320 rm -fr conftest*
12321
12322
12323 fi
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12325 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12326 fi
12327
12328 CPPFLAGS="$save_CPPFLAGS"
12329 LDFLAGS="$save_LDFLAGS"
12330 LIBS="$save_LIBS"
12331 ;;
12332 esac
12333
12334 case $lt_cv_dlopen_self in
12335 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12336 *) enable_dlopen_self=unknown ;;
12337 esac
12338
12339 case $lt_cv_dlopen_self_static in
12340 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12341 *) enable_dlopen_self_static=unknown ;;
12342 esac
12343 fi
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361 striplib=
12362 old_striplib=
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12364 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12365 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12366 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12367 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12369 $as_echo "yes" >&6; }
12370 else
12371 # FIXME - insert some real tests, host_os isn't really good enough
12372 case $host_os in
12373 darwin*)
12374 if test -n "$STRIP" ; then
12375 striplib="$STRIP -x"
12376 old_striplib="$STRIP -S"
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12378 $as_echo "yes" >&6; }
12379 else
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12382 fi
12383 ;;
12384 *)
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; }
12387 ;;
12388 esac
12389 fi
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402 # Report which library types will actually be built
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12404 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12406 $as_echo "$can_build_shared" >&6; }
12407
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12409 $as_echo_n "checking whether to build shared libraries... " >&6; }
12410 test "$can_build_shared" = "no" && enable_shared=no
12411
12412 # On AIX, shared libraries and static libraries use the same namespace, and
12413 # are all built from PIC.
12414 case $host_os in
12415 aix3*)
12416 test "$enable_shared" = yes && enable_static=no
12417 if test -n "$RANLIB"; then
12418 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12419 postinstall_cmds='$RANLIB $lib'
12420 fi
12421 ;;
12422
12423 aix[4-9]*)
12424 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12425 test "$enable_shared" = yes && enable_static=no
12426 fi
12427 ;;
12428 esac
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12430 $as_echo "$enable_shared" >&6; }
12431
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12433 $as_echo_n "checking whether to build static libraries... " >&6; }
12434 # Make sure either enable_shared or enable_static is yes.
12435 test "$enable_shared" = yes || enable_static=yes
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12437 $as_echo "$enable_static" >&6; }
12438
12439
12440
12441
12442 fi
12443 ac_ext=c
12444 ac_cpp='$CPP $CPPFLAGS'
12445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12448
12449 CC="$lt_save_CC"
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465 ac_config_commands="$ac_config_commands libtool"
12466
12467
12468
12469
12470 # Only expand once:
12471
12472
12473
12474
12475 CFLAG_VISIBILITY=
12476 HAVE_VISIBILITY=0
12477 if test -n "$GCC"; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
12479 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
12480 if ${gl_cv_cc_vis_werror+:} false; then :
12481 $as_echo_n "(cached) " >&6
12482 else
12483
12484 gl_save_CFLAGS="$CFLAGS"
12485 CFLAGS="$CFLAGS -Werror"
12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h. */
12488
12489 int
12490 main ()
12491 {
12492
12493 ;
12494 return 0;
12495 }
12496 _ACEOF
12497 if ac_fn_c_try_compile "$LINENO"; then :
12498 gl_cv_cc_vis_werror=yes
12499 else
12500 gl_cv_cc_vis_werror=no
12501 fi
12502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12503 CFLAGS="$gl_save_CFLAGS"
12504 fi
12505
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
12507 $as_echo "$gl_cv_cc_vis_werror" >&6; }
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
12509 $as_echo_n "checking for simple visibility declarations... " >&6; }
12510 if ${gl_cv_cc_visibility+:} false; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513
12514 gl_save_CFLAGS="$CFLAGS"
12515 CFLAGS="$CFLAGS -fvisibility=hidden"
12516 if test $gl_cv_cc_vis_werror = yes; then
12517 CFLAGS="$CFLAGS -Werror"
12518 fi
12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h. */
12521 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
12522 extern __attribute__((__visibility__("default"))) int exportedvar;
12523 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
12524 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
12525 void dummyfunc (void) {}
12526
12527 int
12528 main ()
12529 {
12530
12531 ;
12532 return 0;
12533 }
12534 _ACEOF
12535 if ac_fn_c_try_compile "$LINENO"; then :
12536 gl_cv_cc_visibility=yes
12537 else
12538 gl_cv_cc_visibility=no
12539 fi
12540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12541 CFLAGS="$gl_save_CFLAGS"
12542 fi
12543
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
12545 $as_echo "$gl_cv_cc_visibility" >&6; }
12546 if test $gl_cv_cc_visibility = yes; then
12547 CFLAG_VISIBILITY="-fvisibility=hidden"
12548 HAVE_VISIBILITY=1
12549 fi
12550 fi
12551
12552
12553
12554 cat >>confdefs.h <<_ACEOF
12555 #define HAVE_VISIBILITY $HAVE_VISIBILITY
12556 _ACEOF
12557
12558
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12560 $as_echo_n "checking for ANSI C header files... " >&6; }
12561 if ${ac_cv_header_stdc+:} false; then :
12562 $as_echo_n "(cached) " >&6
12563 else
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12566 #include <stdlib.h>
12567 #include <stdarg.h>
12568 #include <string.h>
12569 #include <float.h>
12570
12571 int
12572 main ()
12573 {
12574
12575 ;
12576 return 0;
12577 }
12578 _ACEOF
12579 if ac_fn_c_try_compile "$LINENO"; then :
12580 ac_cv_header_stdc=yes
12581 else
12582 ac_cv_header_stdc=no
12583 fi
12584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12585
12586 if test $ac_cv_header_stdc = yes; then
12587 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h. */
12590 #include <string.h>
12591
12592 _ACEOF
12593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12594 $EGREP "memchr" >/dev/null 2>&1; then :
12595
12596 else
12597 ac_cv_header_stdc=no
12598 fi
12599 rm -f conftest*
12600
12601 fi
12602
12603 if test $ac_cv_header_stdc = yes; then
12604 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607 #include <stdlib.h>
12608
12609 _ACEOF
12610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12611 $EGREP "free" >/dev/null 2>&1; then :
12612
12613 else
12614 ac_cv_header_stdc=no
12615 fi
12616 rm -f conftest*
12617
12618 fi
12619
12620 if test $ac_cv_header_stdc = yes; then
12621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12622 if test "$cross_compiling" = yes; then :
12623 :
12624 else
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12627 #include <ctype.h>
12628 #include <stdlib.h>
12629 #if ((' ' & 0x0FF) == 0x020)
12630 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12631 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12632 #else
12633 # define ISLOWER(c) \
12634 (('a' <= (c) && (c) <= 'i') \
12635 || ('j' <= (c) && (c) <= 'r') \
12636 || ('s' <= (c) && (c) <= 'z'))
12637 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12638 #endif
12639
12640 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12641 int
12642 main ()
12643 {
12644 int i;
12645 for (i = 0; i < 256; i++)
12646 if (XOR (islower (i), ISLOWER (i))
12647 || toupper (i) != TOUPPER (i))
12648 return 2;
12649 return 0;
12650 }
12651 _ACEOF
12652 if ac_fn_c_try_run "$LINENO"; then :
12653
12654 else
12655 ac_cv_header_stdc=no
12656 fi
12657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12658 conftest.$ac_objext conftest.beam conftest.$ac_ext
12659 fi
12660
12661 fi
12662 fi
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12664 $as_echo "$ac_cv_header_stdc" >&6; }
12665 if test $ac_cv_header_stdc = yes; then
12666
12667 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12668
12669 fi
12670
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
12672 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
12673 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678 #include <sys/types.h>
12679 int
12680 main ()
12681 {
12682 return makedev(0, 0);
12683 ;
12684 return 0;
12685 }
12686 _ACEOF
12687 if ac_fn_c_try_link "$LINENO"; then :
12688 ac_cv_header_sys_types_h_makedev=yes
12689 else
12690 ac_cv_header_sys_types_h_makedev=no
12691 fi
12692 rm -f core conftest.err conftest.$ac_objext \
12693 conftest$ac_exeext conftest.$ac_ext
12694
12695 fi
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
12697 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
12698
12699 if test $ac_cv_header_sys_types_h_makedev = no; then
12700 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12701 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
12702
12703 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
12704
12705 fi
12706
12707
12708
12709 if test $ac_cv_header_sys_mkdev_h = no; then
12710 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12711 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
12712
12713 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
12714
12715 fi
12716
12717
12718 fi
12719 fi
12720
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12722 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12723 if ${ac_cv_header_sys_wait_h+:} false; then :
12724 $as_echo_n "(cached) " >&6
12725 else
12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12728 #include <sys/types.h>
12729 #include <sys/wait.h>
12730 #ifndef WEXITSTATUS
12731 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12732 #endif
12733 #ifndef WIFEXITED
12734 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12735 #endif
12736
12737 int
12738 main ()
12739 {
12740 int s;
12741 wait (&s);
12742 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12743 ;
12744 return 0;
12745 }
12746 _ACEOF
12747 if ac_fn_c_try_compile "$LINENO"; then :
12748 ac_cv_header_sys_wait_h=yes
12749 else
12750 ac_cv_header_sys_wait_h=no
12751 fi
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 fi
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12755 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12756 if test $ac_cv_header_sys_wait_h = yes; then
12757
12758 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12759
12760 fi
12761
12762 for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
12763 do :
12764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12765 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12766 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12767 cat >>confdefs.h <<_ACEOF
12768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12769 _ACEOF
12770
12771 fi
12772
12773 done
12774
12775 for ac_header in stddef.h utime.h wchar.h wctype.h limits.h
12776 do :
12777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12778 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12779 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12780 cat >>confdefs.h <<_ACEOF
12781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12782 _ACEOF
12783
12784 fi
12785
12786 done
12787
12788 for ac_header in getopt.h err.h
12789 do :
12790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12791 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12792 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12793 cat >>confdefs.h <<_ACEOF
12794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12795 _ACEOF
12796
12797 fi
12798
12799 done
12800
12801 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
12802 do :
12803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12804 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12805 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12806 cat >>confdefs.h <<_ACEOF
12807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12808 _ACEOF
12809
12810 fi
12811
12812 done
12813
12814 for ac_header in zlib.h
12815 do :
12816 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12817 if test "x$ac_cv_header_zlib_h" = xyes; then :
12818 cat >>confdefs.h <<_ACEOF
12819 #define HAVE_ZLIB_H 1
12820 _ACEOF
12821
12822 fi
12823
12824 done
12825
12826
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12828 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12829 if ${ac_cv_c_const+:} false; then :
12830 $as_echo_n "(cached) " >&6
12831 else
12832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h. */
12834
12835 int
12836 main ()
12837 {
12838
12839 #ifndef __cplusplus
12840 /* Ultrix mips cc rejects this sort of thing. */
12841 typedef int charset[2];
12842 const charset cs = { 0, 0 };
12843 /* SunOS 4.1.1 cc rejects this. */
12844 char const *const *pcpcc;
12845 char **ppc;
12846 /* NEC SVR4.0.2 mips cc rejects this. */
12847 struct point {int x, y;};
12848 static struct point const zero = {0,0};
12849 /* AIX XL C 1.02.0.0 rejects this.
12850 It does not let you subtract one const X* pointer from another in
12851 an arm of an if-expression whose if-part is not a constant
12852 expression */
12853 const char *g = "string";
12854 pcpcc = &g + (g ? g-g : 0);
12855 /* HPUX 7.0 cc rejects these. */
12856 ++pcpcc;
12857 ppc = (char**) pcpcc;
12858 pcpcc = (char const *const *) ppc;
12859 { /* SCO 3.2v4 cc rejects this sort of thing. */
12860 char tx;
12861 char *t = &tx;
12862 char const *s = 0 ? (char *) 0 : (char const *) 0;
12863
12864 *t++ = 0;
12865 if (s) return 0;
12866 }
12867 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12868 int x[] = {25, 17};
12869 const int *foo = &x[0];
12870 ++foo;
12871 }
12872 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12873 typedef const int *iptr;
12874 iptr p = 0;
12875 ++p;
12876 }
12877 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12878 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12879 struct s { int j; const int *ap[3]; } bx;
12880 struct s *b = &bx; b->j = 5;
12881 }
12882 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12883 const int foo = 10;
12884 if (!foo) return 0;
12885 }
12886 return !cs[0] && !zero.x;
12887 #endif
12888
12889 ;
12890 return 0;
12891 }
12892 _ACEOF
12893 if ac_fn_c_try_compile "$LINENO"; then :
12894 ac_cv_c_const=yes
12895 else
12896 ac_cv_c_const=no
12897 fi
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 fi
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12901 $as_echo "$ac_cv_c_const" >&6; }
12902 if test $ac_cv_c_const = no; then
12903
12904 $as_echo "#define const /**/" >>confdefs.h
12905
12906 fi
12907
12908 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12909 if test "x$ac_cv_type_off_t" = xyes; then :
12910
12911 else
12912
12913 cat >>confdefs.h <<_ACEOF
12914 #define off_t long int
12915 _ACEOF
12916
12917 fi
12918
12919 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12920 if test "x$ac_cv_type_size_t" = xyes; then :
12921
12922 else
12923
12924 cat >>confdefs.h <<_ACEOF
12925 #define size_t unsigned int
12926 _ACEOF
12927
12928 fi
12929
12930 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12931 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12932
12933 cat >>confdefs.h <<_ACEOF
12934 #define HAVE_STRUCT_STAT_ST_RDEV 1
12935 _ACEOF
12936
12937
12938 fi
12939
12940
12941 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
12942 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
12943
12944 cat >>confdefs.h <<_ACEOF
12945 #define HAVE_STRUCT_TM_TM_GMTOFF 1
12946 _ACEOF
12947
12948
12949 fi
12950
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12952 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12953 if ${ac_cv_struct_tm+:} false; then :
12954 $as_echo_n "(cached) " >&6
12955 else
12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12958 #include <sys/types.h>
12959 #include <time.h>
12960
12961 int
12962 main ()
12963 {
12964 struct tm tm;
12965 int *p = &tm.tm_sec;
12966 return !p;
12967 ;
12968 return 0;
12969 }
12970 _ACEOF
12971 if ac_fn_c_try_compile "$LINENO"; then :
12972 ac_cv_struct_tm=time.h
12973 else
12974 ac_cv_struct_tm=sys/time.h
12975 fi
12976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12977 fi
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12979 $as_echo "$ac_cv_struct_tm" >&6; }
12980 if test $ac_cv_struct_tm = sys/time.h; then
12981
12982 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12983
12984 fi
12985
12986 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12987 #include <$ac_cv_struct_tm>
12988
12989 "
12990 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12991
12992 cat >>confdefs.h <<_ACEOF
12993 #define HAVE_STRUCT_TM_TM_ZONE 1
12994 _ACEOF
12995
12996
12997 fi
12998
12999 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13000
13001 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13002
13003 else
13004 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13005 "
13006 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13007 ac_have_decl=1
13008 else
13009 ac_have_decl=0
13010 fi
13011
13012 cat >>confdefs.h <<_ACEOF
13013 #define HAVE_DECL_TZNAME $ac_have_decl
13014 _ACEOF
13015
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13017 $as_echo_n "checking for tzname... " >&6; }
13018 if ${ac_cv_var_tzname+:} false; then :
13019 $as_echo_n "(cached) " >&6
13020 else
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13023 #include <time.h>
13024 #if !HAVE_DECL_TZNAME
13025 extern char *tzname[];
13026 #endif
13027
13028 int
13029 main ()
13030 {
13031 return tzname[0][0];
13032 ;
13033 return 0;
13034 }
13035 _ACEOF
13036 if ac_fn_c_try_link "$LINENO"; then :
13037 ac_cv_var_tzname=yes
13038 else
13039 ac_cv_var_tzname=no
13040 fi
13041 rm -f core conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext conftest.$ac_ext
13043 fi
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13045 $as_echo "$ac_cv_var_tzname" >&6; }
13046 if test $ac_cv_var_tzname = yes; then
13047
13048 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13049
13050 fi
13051 fi
13052
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
13054 $as_echo_n "checking for tm_zone in struct tm... " >&6; }
13055 if ${ac_cv_struct_tm_zone+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060 #include <sys/types.h>
13061 #include <$ac_cv_struct_tm>
13062 int
13063 main ()
13064 {
13065 struct tm tm; tm.tm_zone;
13066 ;
13067 return 0;
13068 }
13069 _ACEOF
13070 if ac_fn_c_try_compile "$LINENO"; then :
13071 ac_cv_struct_tm_zone=yes
13072 else
13073 ac_cv_struct_tm_zone=no
13074 fi
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076 fi
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
13078 $as_echo "$ac_cv_struct_tm_zone" >&6; }
13079 if test "$ac_cv_struct_tm_zone" = yes; then
13080
13081 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13082
13083 fi
13084
13085 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
13086 # consider it declared and we won't give our own extern.
13087 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13088 "
13089 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13090 ac_have_decl=1
13091 else
13092 ac_have_decl=0
13093 fi
13094
13095 cat >>confdefs.h <<_ACEOF
13096 #define HAVE_DECL_TZNAME $ac_have_decl
13097 _ACEOF
13098
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13100 $as_echo_n "checking for tzname... " >&6; }
13101 if ${ac_cv_var_tzname+:} false; then :
13102 $as_echo_n "(cached) " >&6
13103 else
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106 #include <time.h>
13107 #if !HAVE_DECL_TZNAME
13108 extern char *tzname[];
13109 #endif
13110 int
13111 main ()
13112 {
13113 return tzname[0][0];
13114 ;
13115 return 0;
13116 }
13117 _ACEOF
13118 if ac_fn_c_try_link "$LINENO"; then :
13119 ac_cv_var_tzname=yes
13120 else
13121 ac_cv_var_tzname=no
13122 fi
13123 rm -f core conftest.err conftest.$ac_objext \
13124 conftest$ac_exeext conftest.$ac_ext
13125 fi
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13127 $as_echo "$ac_cv_var_tzname" >&6; }
13128 if test $ac_cv_var_tzname = yes; then
13129
13130 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13131
13132 fi
13133
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
13135 $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
13136 if ${ac_cv_struct_tm_isdst+:} false; then :
13137 $as_echo_n "(cached) " >&6
13138 else
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141 #include <sys/types.h>
13142 #include <$ac_cv_struct_tm>
13143 int
13144 main ()
13145 {
13146 struct tm tm; tm.tm_isdst;
13147 ;
13148 return 0;
13149 }
13150 _ACEOF
13151 if ac_fn_c_try_compile "$LINENO"; then :
13152 ac_cv_struct_tm_isdst=yes
13153 else
13154 ac_cv_struct_tm_isdst=no
13155 fi
13156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157 fi
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
13159 $as_echo "$ac_cv_struct_tm_isdst" >&6; }
13160 if test "$ac_cv_struct_tm_isdst" = yes; then
13161
13162 $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
13163
13164 fi
13165
13166
13167 ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
13168 "
13169 if test "x$ac_cv_have_decl_daylight" = xyes; then :
13170 ac_have_decl=1
13171 else
13172 ac_have_decl=0
13173 fi
13174
13175 cat >>confdefs.h <<_ACEOF
13176 #define HAVE_DECL_DAYLIGHT $ac_have_decl
13177 _ACEOF
13178
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
13180 $as_echo_n "checking for daylight... " >&6; }
13181 if ${ac_cv_var_daylight+:} false; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13186 #include <time.h>
13187 #if !HAVE_DECL_DAYLIGHT
13188 extern int daylight;
13189 #endif
13190 int
13191 main ()
13192 {
13193 atoi(daylight);
13194 ;
13195 return 0;
13196 }
13197 _ACEOF
13198 if ac_fn_c_try_link "$LINENO"; then :
13199 ac_cv_var_daylight=yes
13200 else
13201 ac_cv_var_daylight=no
13202 fi
13203 rm -f core conftest.err conftest.$ac_objext \
13204 conftest$ac_exeext conftest.$ac_ext
13205 fi
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
13207 $as_echo "$ac_cv_var_daylight" >&6; }
13208 if test $ac_cv_var_daylight = yes; then
13209
13210 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13211
13212 fi
13213
13214 # Check whether --enable-largefile was given.
13215 if test "${enable_largefile+set}" = set; then :
13216 enableval=$enable_largefile;
13217 fi
13218
13219 if test "$enable_largefile" != no; then
13220
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13222 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13223 if ${ac_cv_sys_largefile_CC+:} false; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 ac_cv_sys_largefile_CC=no
13227 if test "$GCC" != yes; then
13228 ac_save_CC=$CC
13229 while :; do
13230 # IRIX 6.2 and later do not support large files by default,
13231 # so use the C compiler's -n32 option if that helps.
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234 #include <sys/types.h>
13235 /* Check that off_t can represent 2**63 - 1 correctly.
13236 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13237 since some C++ compilers masquerading as C compilers
13238 incorrectly reject 9223372036854775807. */
13239 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13240 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13241 && LARGE_OFF_T % 2147483647 == 1)
13242 ? 1 : -1];
13243 int
13244 main ()
13245 {
13246
13247 ;
13248 return 0;
13249 }
13250 _ACEOF
13251 if ac_fn_c_try_compile "$LINENO"; then :
13252 break
13253 fi
13254 rm -f core conftest.err conftest.$ac_objext
13255 CC="$CC -n32"
13256 if ac_fn_c_try_compile "$LINENO"; then :
13257 ac_cv_sys_largefile_CC=' -n32'; break
13258 fi
13259 rm -f core conftest.err conftest.$ac_objext
13260 break
13261 done
13262 CC=$ac_save_CC
13263 rm -f conftest.$ac_ext
13264 fi
13265 fi
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13267 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13268 if test "$ac_cv_sys_largefile_CC" != no; then
13269 CC=$CC$ac_cv_sys_largefile_CC
13270 fi
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13273 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13274 if ${ac_cv_sys_file_offset_bits+:} false; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277 while :; do
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280 #include <sys/types.h>
13281 /* Check that off_t can represent 2**63 - 1 correctly.
13282 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13283 since some C++ compilers masquerading as C compilers
13284 incorrectly reject 9223372036854775807. */
13285 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13286 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13287 && LARGE_OFF_T % 2147483647 == 1)
13288 ? 1 : -1];
13289 int
13290 main ()
13291 {
13292
13293 ;
13294 return 0;
13295 }
13296 _ACEOF
13297 if ac_fn_c_try_compile "$LINENO"; then :
13298 ac_cv_sys_file_offset_bits=no; break
13299 fi
13300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303 #define _FILE_OFFSET_BITS 64
13304 #include <sys/types.h>
13305 /* Check that off_t can represent 2**63 - 1 correctly.
13306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13307 since some C++ compilers masquerading as C compilers
13308 incorrectly reject 9223372036854775807. */
13309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13311 && LARGE_OFF_T % 2147483647 == 1)
13312 ? 1 : -1];
13313 int
13314 main ()
13315 {
13316
13317 ;
13318 return 0;
13319 }
13320 _ACEOF
13321 if ac_fn_c_try_compile "$LINENO"; then :
13322 ac_cv_sys_file_offset_bits=64; break
13323 fi
13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 ac_cv_sys_file_offset_bits=unknown
13326 break
13327 done
13328 fi
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13330 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13331 case $ac_cv_sys_file_offset_bits in #(
13332 no | unknown) ;;
13333 *)
13334 cat >>confdefs.h <<_ACEOF
13335 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13336 _ACEOF
13337 ;;
13338 esac
13339 rm -rf conftest*
13340 if test $ac_cv_sys_file_offset_bits = unknown; then
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13342 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13343 if ${ac_cv_sys_large_files+:} false; then :
13344 $as_echo_n "(cached) " >&6
13345 else
13346 while :; do
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13349 #include <sys/types.h>
13350 /* Check that off_t can represent 2**63 - 1 correctly.
13351 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13352 since some C++ compilers masquerading as C compilers
13353 incorrectly reject 9223372036854775807. */
13354 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13356 && LARGE_OFF_T % 2147483647 == 1)
13357 ? 1 : -1];
13358 int
13359 main ()
13360 {
13361
13362 ;
13363 return 0;
13364 }
13365 _ACEOF
13366 if ac_fn_c_try_compile "$LINENO"; then :
13367 ac_cv_sys_large_files=no; break
13368 fi
13369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h. */
13372 #define _LARGE_FILES 1
13373 #include <sys/types.h>
13374 /* Check that off_t can represent 2**63 - 1 correctly.
13375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13376 since some C++ compilers masquerading as C compilers
13377 incorrectly reject 9223372036854775807. */
13378 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13380 && LARGE_OFF_T % 2147483647 == 1)
13381 ? 1 : -1];
13382 int
13383 main ()
13384 {
13385
13386 ;
13387 return 0;
13388 }
13389 _ACEOF
13390 if ac_fn_c_try_compile "$LINENO"; then :
13391 ac_cv_sys_large_files=1; break
13392 fi
13393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13394 ac_cv_sys_large_files=unknown
13395 break
13396 done
13397 fi
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13399 $as_echo "$ac_cv_sys_large_files" >&6; }
13400 case $ac_cv_sys_large_files in #(
13401 no | unknown) ;;
13402 *)
13403 cat >>confdefs.h <<_ACEOF
13404 #define _LARGE_FILES $ac_cv_sys_large_files
13405 _ACEOF
13406 ;;
13407 esac
13408 rm -rf conftest*
13409 fi
13410
13411
13412 fi
13413
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13415 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13416 if ${ac_cv_sys_largefile_source+:} false; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 while :; do
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13422 #include <sys/types.h> /* for off_t */
13423 #include <stdio.h>
13424 int
13425 main ()
13426 {
13427 int (*fp) (FILE *, off_t, int) = fseeko;
13428 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13429 ;
13430 return 0;
13431 }
13432 _ACEOF
13433 if ac_fn_c_try_link "$LINENO"; then :
13434 ac_cv_sys_largefile_source=no; break
13435 fi
13436 rm -f core conftest.err conftest.$ac_objext \
13437 conftest$ac_exeext conftest.$ac_ext
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13440 #define _LARGEFILE_SOURCE 1
13441 #include <sys/types.h> /* for off_t */
13442 #include <stdio.h>
13443 int
13444 main ()
13445 {
13446 int (*fp) (FILE *, off_t, int) = fseeko;
13447 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13448 ;
13449 return 0;
13450 }
13451 _ACEOF
13452 if ac_fn_c_try_link "$LINENO"; then :
13453 ac_cv_sys_largefile_source=1; break
13454 fi
13455 rm -f core conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13457 ac_cv_sys_largefile_source=unknown
13458 break
13459 done
13460 fi
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13462 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13463 case $ac_cv_sys_largefile_source in #(
13464 no | unknown) ;;
13465 *)
13466 cat >>confdefs.h <<_ACEOF
13467 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13468 _ACEOF
13469 ;;
13470 esac
13471 rm -rf conftest*
13472
13473 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13474 # in glibc 2.1.3, but that breaks too many other things.
13475 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13476 if test $ac_cv_sys_largefile_source != unknown; then
13477
13478 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13479
13480 fi
13481
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13483 $as_echo_n "checking for mbstate_t... " >&6; }
13484 if ${ac_cv_type_mbstate_t+:} false; then :
13485 $as_echo_n "(cached) " >&6
13486 else
13487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13489 $ac_includes_default
13490 # include <wchar.h>
13491 int
13492 main ()
13493 {
13494 mbstate_t x; return sizeof x;
13495 ;
13496 return 0;
13497 }
13498 _ACEOF
13499 if ac_fn_c_try_compile "$LINENO"; then :
13500 ac_cv_type_mbstate_t=yes
13501 else
13502 ac_cv_type_mbstate_t=no
13503 fi
13504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13505 fi
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13507 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13508 if test $ac_cv_type_mbstate_t = yes; then
13509
13510 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13511
13512 else
13513
13514 $as_echo "#define mbstate_t int" >>confdefs.h
13515
13516 fi
13517
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
13519 $as_echo_n "checking for struct option in getopt... " >&6; }
13520 if ${ac_cv_struct_option_getopt_h+:} false; then :
13521 $as_echo_n "(cached) " >&6
13522 else
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13525 #include <getopt.h>
13526 int
13527 main ()
13528 {
13529 struct option op; op.name;
13530 ;
13531 return 0;
13532 }
13533 _ACEOF
13534 if ac_fn_c_try_compile "$LINENO"; then :
13535 ac_cv_struct_option_getopt_h=yes
13536 else
13537 ac_cv_struct_option_getopt_h=no
13538 fi
13539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540 fi
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
13542 $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
13543 if test "$ac_cv_struct_option_getopt_h" = yes; then
13544
13545 $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
13546
13547 fi
13548
13549 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13550 if test "x$ac_cv_type_pid_t" = xyes; then :
13551
13552 else
13553
13554 cat >>confdefs.h <<_ACEOF
13555 #define pid_t int
13556 _ACEOF
13557
13558 fi
13559
13560 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13561 case $ac_cv_c_uint8_t in #(
13562 no|yes) ;; #(
13563 *)
13564
13565 $as_echo "#define _UINT8_T 1" >>confdefs.h
13566
13567
13568 cat >>confdefs.h <<_ACEOF
13569 #define uint8_t $ac_cv_c_uint8_t
13570 _ACEOF
13571 ;;
13572 esac
13573
13574 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13575 case $ac_cv_c_uint16_t in #(
13576 no|yes) ;; #(
13577 *)
13578
13579
13580 cat >>confdefs.h <<_ACEOF
13581 #define uint16_t $ac_cv_c_uint16_t
13582 _ACEOF
13583 ;;
13584 esac
13585
13586 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13587 case $ac_cv_c_uint32_t in #(
13588 no|yes) ;; #(
13589 *)
13590
13591 $as_echo "#define _UINT32_T 1" >>confdefs.h
13592
13593
13594 cat >>confdefs.h <<_ACEOF
13595 #define uint32_t $ac_cv_c_uint32_t
13596 _ACEOF
13597 ;;
13598 esac
13599
13600 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
13601 case $ac_cv_c_int32_t in #(
13602 no|yes) ;; #(
13603 *)
13604
13605 cat >>confdefs.h <<_ACEOF
13606 #define int32_t $ac_cv_c_int32_t
13607 _ACEOF
13608 ;;
13609 esac
13610
13611 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13612 case $ac_cv_c_uint64_t in #(
13613 no|yes) ;; #(
13614 *)
13615
13616 $as_echo "#define _UINT64_T 1" >>confdefs.h
13617
13618
13619 cat >>confdefs.h <<_ACEOF
13620 #define uint64_t $ac_cv_c_uint64_t
13621 _ACEOF
13622 ;;
13623 esac
13624
13625 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
13626 case $ac_cv_c_int64_t in #(
13627 no|yes) ;; #(
13628 *)
13629
13630 cat >>confdefs.h <<_ACEOF
13631 #define int64_t $ac_cv_c_int64_t
13632 _ACEOF
13633 ;;
13634 esac
13635
13636
13637 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13638 if test "x$ac_cv_type_intptr_t" = xyes; then :
13639
13640 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
13641
13642 else
13643 for ac_type in 'int' 'long int' 'long long int'; do
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646 $ac_includes_default
13647 int
13648 main ()
13649 {
13650 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13651 test_array [0] = 0;
13652 return test_array [0];
13653
13654 ;
13655 return 0;
13656 }
13657 _ACEOF
13658 if ac_fn_c_try_compile "$LINENO"; then :
13659
13660 cat >>confdefs.h <<_ACEOF
13661 #define intptr_t $ac_type
13662 _ACEOF
13663
13664 ac_type=
13665 fi
13666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 test -z "$ac_type" && break
13668 done
13669 fi
13670
13671
13672
13673 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13674 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13675
13676 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13677
13678 else
13679 for ac_type in 'unsigned int' 'unsigned long int' \
13680 'unsigned long long int'; do
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 $ac_includes_default
13684 int
13685 main ()
13686 {
13687 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13688 test_array [0] = 0;
13689 return test_array [0];
13690
13691 ;
13692 return 0;
13693 }
13694 _ACEOF
13695 if ac_fn_c_try_compile "$LINENO"; then :
13696
13697 cat >>confdefs.h <<_ACEOF
13698 #define uintptr_t $ac_type
13699 _ACEOF
13700
13701 ac_type=
13702 fi
13703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13704 test -z "$ac_type" && break
13705 done
13706 fi
13707
13708
13709
13710
13711
13712 for ac_header in $ac_header_list
13713 do :
13714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13715 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13716 "
13717 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13718 cat >>confdefs.h <<_ACEOF
13719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13720 _ACEOF
13721
13722 fi
13723
13724 done
13725
13726
13727
13728
13729
13730
13731
13732
13733 for ac_func in getpagesize
13734 do :
13735 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13736 if test "x$ac_cv_func_getpagesize" = xyes; then :
13737 cat >>confdefs.h <<_ACEOF
13738 #define HAVE_GETPAGESIZE 1
13739 _ACEOF
13740
13741 fi
13742 done
13743
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13745 $as_echo_n "checking for working mmap... " >&6; }
13746 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13747 $as_echo_n "(cached) " >&6
13748 else
13749 if test "$cross_compiling" = yes; then :
13750 ac_cv_func_mmap_fixed_mapped=no
13751 else
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13754 $ac_includes_default
13755 /* malloc might have been renamed as rpl_malloc. */
13756 #undef malloc
13757
13758 /* Thanks to Mike Haertel and Jim Avera for this test.
13759 Here is a matrix of mmap possibilities:
13760 mmap private not fixed
13761 mmap private fixed at somewhere currently unmapped
13762 mmap private fixed at somewhere already mapped
13763 mmap shared not fixed
13764 mmap shared fixed at somewhere currently unmapped
13765 mmap shared fixed at somewhere already mapped
13766 For private mappings, we should verify that changes cannot be read()
13767 back from the file, nor mmap's back from the file at a different
13768 address. (There have been systems where private was not correctly
13769 implemented like the infamous i386 svr4.0, and systems where the
13770 VM page cache was not coherent with the file system buffer cache
13771 like early versions of FreeBSD and possibly contemporary NetBSD.)
13772 For shared mappings, we should conversely verify that changes get
13773 propagated back to all the places they're supposed to be.
13774
13775 Grep wants private fixed already mapped.
13776 The main things grep needs to know about mmap are:
13777 * does it exist and is it safe to write into the mmap'd area
13778 * how to use it (BSD variants) */
13779
13780 #include <fcntl.h>
13781 #include <sys/mman.h>
13782
13783 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13784 char *malloc ();
13785 #endif
13786
13787 /* This mess was copied from the GNU getpagesize.h. */
13788 #ifndef HAVE_GETPAGESIZE
13789 # ifdef _SC_PAGESIZE
13790 # define getpagesize() sysconf(_SC_PAGESIZE)
13791 # else /* no _SC_PAGESIZE */
13792 # ifdef HAVE_SYS_PARAM_H
13793 # include <sys/param.h>
13794 # ifdef EXEC_PAGESIZE
13795 # define getpagesize() EXEC_PAGESIZE
13796 # else /* no EXEC_PAGESIZE */
13797 # ifdef NBPG
13798 # define getpagesize() NBPG * CLSIZE
13799 # ifndef CLSIZE
13800 # define CLSIZE 1
13801 # endif /* no CLSIZE */
13802 # else /* no NBPG */
13803 # ifdef NBPC
13804 # define getpagesize() NBPC
13805 # else /* no NBPC */
13806 # ifdef PAGESIZE
13807 # define getpagesize() PAGESIZE
13808 # endif /* PAGESIZE */
13809 # endif /* no NBPC */
13810 # endif /* no NBPG */
13811 # endif /* no EXEC_PAGESIZE */
13812 # else /* no HAVE_SYS_PARAM_H */
13813 # define getpagesize() 8192 /* punt totally */
13814 # endif /* no HAVE_SYS_PARAM_H */
13815 # endif /* no _SC_PAGESIZE */
13816
13817 #endif /* no HAVE_GETPAGESIZE */
13818
13819 int
13820 main ()
13821 {
13822 char *data, *data2, *data3;
13823 const char *cdata2;
13824 int i, pagesize;
13825 int fd, fd2;
13826
13827 pagesize = getpagesize ();
13828
13829 /* First, make a file with some known garbage in it. */
13830 data = (char *) malloc (pagesize);
13831 if (!data)
13832 return 1;
13833 for (i = 0; i < pagesize; ++i)
13834 *(data + i) = rand ();
13835 umask (0);
13836 fd = creat ("conftest.mmap", 0600);
13837 if (fd < 0)
13838 return 2;
13839 if (write (fd, data, pagesize) != pagesize)
13840 return 3;
13841 close (fd);
13842
13843 /* Next, check that the tail of a page is zero-filled. File must have
13844 non-zero length, otherwise we risk SIGBUS for entire page. */
13845 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13846 if (fd2 < 0)
13847 return 4;
13848 cdata2 = "";
13849 if (write (fd2, cdata2, 1) != 1)
13850 return 5;
13851 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13852 if (data2 == MAP_FAILED)
13853 return 6;
13854 for (i = 0; i < pagesize; ++i)
13855 if (*(data2 + i))
13856 return 7;
13857 close (fd2);
13858 if (munmap (data2, pagesize))
13859 return 8;
13860
13861 /* Next, try to mmap the file at a fixed address which already has
13862 something else allocated at it. If we can, also make sure that
13863 we see the same garbage. */
13864 fd = open ("conftest.mmap", O_RDWR);
13865 if (fd < 0)
13866 return 9;
13867 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13868 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13869 return 10;
13870 for (i = 0; i < pagesize; ++i)
13871 if (*(data + i) != *(data2 + i))
13872 return 11;
13873
13874 /* Finally, make sure that changes to the mapped area do not
13875 percolate back to the file as seen by read(). (This is a bug on
13876 some variants of i386 svr4.0.) */
13877 for (i = 0; i < pagesize; ++i)
13878 *(data2 + i) = *(data2 + i) + 1;
13879 data3 = (char *) malloc (pagesize);
13880 if (!data3)
13881 return 12;
13882 if (read (fd, data3, pagesize) != pagesize)
13883 return 13;
13884 for (i = 0; i < pagesize; ++i)
13885 if (*(data + i) != *(data3 + i))
13886 return 14;
13887 close (fd);
13888 return 0;
13889 }
13890 _ACEOF
13891 if ac_fn_c_try_run "$LINENO"; then :
13892 ac_cv_func_mmap_fixed_mapped=yes
13893 else
13894 ac_cv_func_mmap_fixed_mapped=no
13895 fi
13896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13897 conftest.$ac_objext conftest.beam conftest.$ac_ext
13898 fi
13899
13900 fi
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13902 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13903 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13904
13905 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13906
13907 fi
13908 rm -f conftest.mmap conftest.txt
13909
13910 for ac_header in vfork.h
13911 do :
13912 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13913 if test "x$ac_cv_header_vfork_h" = xyes; then :
13914 cat >>confdefs.h <<_ACEOF
13915 #define HAVE_VFORK_H 1
13916 _ACEOF
13917
13918 fi
13919
13920 done
13921
13922 for ac_func in fork vfork
13923 do :
13924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13925 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13926 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13927 cat >>confdefs.h <<_ACEOF
13928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13929 _ACEOF
13930
13931 fi
13932 done
13933
13934 if test "x$ac_cv_func_fork" = xyes; then
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13936 $as_echo_n "checking for working fork... " >&6; }
13937 if ${ac_cv_func_fork_works+:} false; then :
13938 $as_echo_n "(cached) " >&6
13939 else
13940 if test "$cross_compiling" = yes; then :
13941 ac_cv_func_fork_works=cross
13942 else
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13945 $ac_includes_default
13946 int
13947 main ()
13948 {
13949
13950 /* By Ruediger Kuhlmann. */
13951 return fork () < 0;
13952
13953 ;
13954 return 0;
13955 }
13956 _ACEOF
13957 if ac_fn_c_try_run "$LINENO"; then :
13958 ac_cv_func_fork_works=yes
13959 else
13960 ac_cv_func_fork_works=no
13961 fi
13962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13963 conftest.$ac_objext conftest.beam conftest.$ac_ext
13964 fi
13965
13966 fi
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13968 $as_echo "$ac_cv_func_fork_works" >&6; }
13969
13970 else
13971 ac_cv_func_fork_works=$ac_cv_func_fork
13972 fi
13973 if test "x$ac_cv_func_fork_works" = xcross; then
13974 case $host in
13975 *-*-amigaos* | *-*-msdosdjgpp*)
13976 # Override, as these systems have only a dummy fork() stub
13977 ac_cv_func_fork_works=no
13978 ;;
13979 *)
13980 ac_cv_func_fork_works=yes
13981 ;;
13982 esac
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13984 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13985 fi
13986 ac_cv_func_vfork_works=$ac_cv_func_vfork
13987 if test "x$ac_cv_func_vfork" = xyes; then
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13989 $as_echo_n "checking for working vfork... " >&6; }
13990 if ${ac_cv_func_vfork_works+:} false; then :
13991 $as_echo_n "(cached) " >&6
13992 else
13993 if test "$cross_compiling" = yes; then :
13994 ac_cv_func_vfork_works=cross
13995 else
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13998 /* Thanks to Paul Eggert for this test. */
13999 $ac_includes_default
14000 #include <sys/wait.h>
14001 #ifdef HAVE_VFORK_H
14002 # include <vfork.h>
14003 #endif
14004 /* On some sparc systems, changes by the child to local and incoming
14005 argument registers are propagated back to the parent. The compiler
14006 is told about this with #include <vfork.h>, but some compilers
14007 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14008 static variable whose address is put into a register that is
14009 clobbered by the vfork. */
14010 static void
14011 #ifdef __cplusplus
14012 sparc_address_test (int arg)
14013 # else
14014 sparc_address_test (arg) int arg;
14015 #endif
14016 {
14017 static pid_t child;
14018 if (!child) {
14019 child = vfork ();
14020 if (child < 0) {
14021 perror ("vfork");
14022 _exit(2);
14023 }
14024 if (!child) {
14025 arg = getpid();
14026 write(-1, "", 0);
14027 _exit (arg);
14028 }
14029 }
14030 }
14031
14032 int
14033 main ()
14034 {
14035 pid_t parent = getpid ();
14036 pid_t child;
14037
14038 sparc_address_test (0);
14039
14040 child = vfork ();
14041
14042 if (child == 0) {
14043 /* Here is another test for sparc vfork register problems. This
14044 test uses lots of local variables, at least as many local
14045 variables as main has allocated so far including compiler
14046 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14047 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14048 reuse the register of parent for one of the local variables,
14049 since it will think that parent can't possibly be used any more
14050 in this routine. Assigning to the local variable will thus
14051 munge parent in the parent process. */
14052 pid_t
14053 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14054 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14055 /* Convince the compiler that p..p7 are live; otherwise, it might
14056 use the same hardware register for all 8 local variables. */
14057 if (p != p1 || p != p2 || p != p3 || p != p4
14058 || p != p5 || p != p6 || p != p7)
14059 _exit(1);
14060
14061 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14062 from child file descriptors. If the child closes a descriptor
14063 before it execs or exits, this munges the parent's descriptor
14064 as well. Test for this by closing stdout in the child. */
14065 _exit(close(fileno(stdout)) != 0);
14066 } else {
14067 int status;
14068 struct stat st;
14069
14070 while (wait(&status) != child)
14071 ;
14072 return (
14073 /* Was there some problem with vforking? */
14074 child < 0
14075
14076 /* Did the child fail? (This shouldn't happen.) */
14077 || status
14078
14079 /* Did the vfork/compiler bug occur? */
14080 || parent != getpid()
14081
14082 /* Did the file descriptor bug occur? */
14083 || fstat(fileno(stdout), &st) != 0
14084 );
14085 }
14086 }
14087 _ACEOF
14088 if ac_fn_c_try_run "$LINENO"; then :
14089 ac_cv_func_vfork_works=yes
14090 else
14091 ac_cv_func_vfork_works=no
14092 fi
14093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14094 conftest.$ac_objext conftest.beam conftest.$ac_ext
14095 fi
14096
14097 fi
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14099 $as_echo "$ac_cv_func_vfork_works" >&6; }
14100
14101 fi;
14102 if test "x$ac_cv_func_fork_works" = xcross; then
14103 ac_cv_func_vfork_works=$ac_cv_func_vfork
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14105 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14106 fi
14107
14108 if test "x$ac_cv_func_vfork_works" = xyes; then
14109
14110 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14111
14112 else
14113
14114 $as_echo "#define vfork fork" >>confdefs.h
14115
14116 fi
14117 if test "x$ac_cv_func_fork_works" = xyes; then
14118
14119 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14120
14121 fi
14122
14123
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
14125 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
14126 if ${ac_cv_func_mbrtowc+:} false; then :
14127 $as_echo_n "(cached) " >&6
14128 else
14129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h. */
14131 #include <wchar.h>
14132 int
14133 main ()
14134 {
14135 wchar_t wc;
14136 char const s[] = "";
14137 size_t n = 1;
14138 mbstate_t state;
14139 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
14140 ;
14141 return 0;
14142 }
14143 _ACEOF
14144 if ac_fn_c_try_link "$LINENO"; then :
14145 ac_cv_func_mbrtowc=yes
14146 else
14147 ac_cv_func_mbrtowc=no
14148 fi
14149 rm -f core conftest.err conftest.$ac_objext \
14150 conftest$ac_exeext conftest.$ac_ext
14151 fi
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
14153 $as_echo "$ac_cv_func_mbrtowc" >&6; }
14154 if test $ac_cv_func_mbrtowc = yes; then
14155
14156 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
14157
14158 fi
14159
14160
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
14162 $as_echo_n "checking for gcc compiler warnings... " >&6; }
14163 # Check whether --enable-warnings was given.
14164 if test "${enable_warnings+set}" = set; then :
14165 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14167 $as_echo "no" >&6; }
14168 WARNINGS=
14169 else
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14171 $as_echo "yes" >&6; }
14172 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14173 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14174 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14175 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14176 fi
14177 else
14178
14179 if test "$GCC" = yes; then
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14181 $as_echo "yes" >&6; }
14182 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14183 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14184 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14185 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14186 else
14187 WARNINGS=
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14189 $as_echo "no" >&6; }
14190 fi
14191 fi
14192
14193
14194 for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof
14195 do :
14196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14197 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14198 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14199 cat >>confdefs.h <<_ACEOF
14200 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14201 _ACEOF
14202
14203 fi
14204 done
14205
14206
14207 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
14208 if test "x$ac_cv_func_getopt_long" = xyes; then :
14209 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
14210
14211 else
14212 case " $LIBOBJS " in
14213 *" getopt_long.$ac_objext "* ) ;;
14214 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
14215 ;;
14216 esac
14217
14218 fi
14219
14220 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
14221 if test "x$ac_cv_func_asprintf" = xyes; then :
14222 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
14223
14224 else
14225 case " $LIBOBJS " in
14226 *" asprintf.$ac_objext "* ) ;;
14227 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
14228 ;;
14229 esac
14230
14231 fi
14232
14233 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14234 if test "x$ac_cv_func_vasprintf" = xyes; then :
14235 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
14236
14237 else
14238 case " $LIBOBJS " in
14239 *" vasprintf.$ac_objext "* ) ;;
14240 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
14241 ;;
14242 esac
14243
14244 fi
14245
14246 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
14247 if test "x$ac_cv_func_strlcpy" = xyes; then :
14248 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
14249
14250 else
14251 case " $LIBOBJS " in
14252 *" strlcpy.$ac_objext "* ) ;;
14253 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
14254 ;;
14255 esac
14256
14257 fi
14258
14259 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
14260 if test "x$ac_cv_func_strlcat" = xyes; then :
14261 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
14262
14263 else
14264 case " $LIBOBJS " in
14265 *" strlcat.$ac_objext "* ) ;;
14266 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
14267 ;;
14268 esac
14269
14270 fi
14271
14272 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14273 if test "x$ac_cv_func_getline" = xyes; then :
14274 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
14275
14276 else
14277 case " $LIBOBJS " in
14278 *" getline.$ac_objext "* ) ;;
14279 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
14280 ;;
14281 esac
14282
14283 fi
14284
14285 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
14286 if test "x$ac_cv_func_ctime_r" = xyes; then :
14287 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
14288
14289 else
14290 case " $LIBOBJS " in
14291 *" ctime_r.$ac_objext "* ) ;;
14292 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
14293 ;;
14294 esac
14295
14296 fi
14297
14298 ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
14299 if test "x$ac_cv_func_asctime_r" = xyes; then :
14300 $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
14301
14302 else
14303 case " $LIBOBJS " in
14304 *" asctime_r.$ac_objext "* ) ;;
14305 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
14306 ;;
14307 esac
14308
14309 fi
14310
14311 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
14312 if test "x$ac_cv_func_pread" = xyes; then :
14313 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
14314
14315 else
14316 case " $LIBOBJS " in
14317 *" pread.$ac_objext "* ) ;;
14318 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
14319 ;;
14320 esac
14321
14322 fi
14323
14324 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
14325 if test "x$ac_cv_func_strcasestr" = xyes; then :
14326 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
14327
14328 else
14329 case " $LIBOBJS " in
14330 *" strcasestr.$ac_objext "* ) ;;
14331 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
14332 ;;
14333 esac
14334
14335 fi
14336
14337 ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
14338 if test "x$ac_cv_func_fmtcheck" = xyes; then :
14339 $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
14340
14341 else
14342 case " $LIBOBJS " in
14343 *" fmtcheck.$ac_objext "* ) ;;
14344 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
14345 ;;
14346 esac
14347
14348 fi
14349
14350
14351
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
14353 $as_echo_n "checking for gzopen in -lz... " >&6; }
14354 if ${ac_cv_lib_z_gzopen+:} false; then :
14355 $as_echo_n "(cached) " >&6
14356 else
14357 ac_check_lib_save_LIBS=$LIBS
14358 LIBS="-lz $LIBS"
14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14361
14362 /* Override any GCC internal prototype to avoid an error.
14363 Use char because int might match the return type of a GCC
14364 builtin and then its argument prototype would still apply. */
14365 #ifdef __cplusplus
14366 extern "C"
14367 #endif
14368 char gzopen ();
14369 int
14370 main ()
14371 {
14372 return gzopen ();
14373 ;
14374 return 0;
14375 }
14376 _ACEOF
14377 if ac_fn_c_try_link "$LINENO"; then :
14378 ac_cv_lib_z_gzopen=yes
14379 else
14380 ac_cv_lib_z_gzopen=no
14381 fi
14382 rm -f core conftest.err conftest.$ac_objext \
14383 conftest$ac_exeext conftest.$ac_ext
14384 LIBS=$ac_check_lib_save_LIBS
14385 fi
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
14387 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
14388 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
14389 cat >>confdefs.h <<_ACEOF
14390 #define HAVE_LIBZ 1
14391 _ACEOF
14392
14393 LIBS="-lz $LIBS"
14394
14395 fi
14396
14397 if test "$MINGW" = 1; then
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
14399 $as_echo_n "checking for regexec in -lgnurx... " >&6; }
14400 if ${ac_cv_lib_gnurx_regexec+:} false; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 ac_check_lib_save_LIBS=$LIBS
14404 LIBS="-lgnurx $LIBS"
14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14406 /* end confdefs.h. */
14407
14408 /* Override any GCC internal prototype to avoid an error.
14409 Use char because int might match the return type of a GCC
14410 builtin and then its argument prototype would still apply. */
14411 #ifdef __cplusplus
14412 extern "C"
14413 #endif
14414 char regexec ();
14415 int
14416 main ()
14417 {
14418 return regexec ();
14419 ;
14420 return 0;
14421 }
14422 _ACEOF
14423 if ac_fn_c_try_link "$LINENO"; then :
14424 ac_cv_lib_gnurx_regexec=yes
14425 else
14426 ac_cv_lib_gnurx_regexec=no
14427 fi
14428 rm -f core conftest.err conftest.$ac_objext \
14429 conftest$ac_exeext conftest.$ac_ext
14430 LIBS=$ac_check_lib_save_LIBS
14431 fi
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
14433 $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
14434 if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
14435 cat >>confdefs.h <<_ACEOF
14436 #define HAVE_LIBGNURX 1
14437 _ACEOF
14438
14439 LIBS="-lgnurx $LIBS"
14440
14441 else
14442 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
14443 fi
14444
14445 fi
14446
14447 if test "$cross_compiling" = yes; then
14448 IS_CROSS_COMPILE_TRUE=
14449 IS_CROSS_COMPILE_FALSE='#'
14450 else
14451 IS_CROSS_COMPILE_TRUE='#'
14452 IS_CROSS_COMPILE_FALSE=
14453 fi
14454
14455
14456 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
14457
14458 cat >confcache <<\_ACEOF
14459 # This file is a shell script that caches the results of configure
14460 # tests run on this system so they can be shared between configure
14461 # scripts and configure runs, see configure's option --config-cache.
14462 # It is not useful on other systems. If it contains results you don't
14463 # want to keep, you may remove or edit it.
14464 #
14465 # config.status only pays attention to the cache file if you give it
14466 # the --recheck option to rerun configure.
14467 #
14468 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14470 # following values.
14471
14472 _ACEOF
14473
14474 # The following way of writing the cache mishandles newlines in values,
14475 # but we know of no workaround that is simple, portable, and efficient.
14476 # So, we kill variables containing newlines.
14477 # Ultrix sh set writes to stderr and can't be redirected directly,
14478 # and sets the high bit in the cache file unless we assign to the vars.
14479 (
14480 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14481 eval ac_val=\$$ac_var
14482 case $ac_val in #(
14483 *${as_nl}*)
14484 case $ac_var in #(
14485 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14486 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14487 esac
14488 case $ac_var in #(
14489 _ | IFS | as_nl) ;; #(
14490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14491 *) { eval $ac_var=; unset $ac_var;} ;;
14492 esac ;;
14493 esac
14494 done
14495
14496 (set) 2>&1 |
14497 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14498 *${as_nl}ac_space=\ *)
14499 # `set' does not quote correctly, so add quotes: double-quote
14500 # substitution turns \\\\ into \\, and sed turns \\ into \.
14501 sed -n \
14502 "s/'/'\\\\''/g;
14503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14504 ;; #(
14505 *)
14506 # `set' quotes correctly as required by POSIX, so do not add quotes.
14507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14508 ;;
14509 esac |
14510 sort
14511 ) |
14512 sed '
14513 /^ac_cv_env_/b end
14514 t clear
14515 :clear
14516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14517 t end
14518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14519 :end' >>confcache
14520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14521 if test -w "$cache_file"; then
14522 if test "x$cache_file" != "x/dev/null"; then
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14524 $as_echo "$as_me: updating cache $cache_file" >&6;}
14525 if test ! -f "$cache_file" || test -h "$cache_file"; then
14526 cat confcache >"$cache_file"
14527 else
14528 case $cache_file in #(
14529 */* | ?:*)
14530 mv -f confcache "$cache_file"$$ &&
14531 mv -f "$cache_file"$$ "$cache_file" ;; #(
14532 *)
14533 mv -f confcache "$cache_file" ;;
14534 esac
14535 fi
14536 fi
14537 else
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14539 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14540 fi
14541 fi
14542 rm -f confcache
14543
14544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14545 # Let make expand exec_prefix.
14546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14547
14548 DEFS=-DHAVE_CONFIG_H
14549
14550 ac_libobjs=
14551 ac_ltlibobjs=
14552 U=
14553 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14554 # 1. Remove the extension, and $U if already installed.
14555 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14556 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14557 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14558 # will be set to the directory where LIBOBJS objects are built.
14559 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14560 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14561 done
14562 LIBOBJS=$ac_libobjs
14563
14564 LTLIBOBJS=$ac_ltlibobjs
14565
14566
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14568 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14569 if test -n "$am_sleep_pid"; then
14570 # Hide warnings about reused PIDs.
14571 wait $am_sleep_pid 2>/dev/null
14572 fi
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14574 $as_echo "done" >&6; }
14575 if test -n "$EXEEXT"; then
14576 am__EXEEXT_TRUE=
14577 am__EXEEXT_FALSE='#'
14578 else
14579 am__EXEEXT_TRUE='#'
14580 am__EXEEXT_FALSE=
14581 fi
14582
14583 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
14584 as_fn_error $? "conditional \"MINGW\" was never defined.
14585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14586 fi
14587 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
14588 as_fn_error $? "conditional \"FSECT5\" was never defined.
14589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14590 fi
14591 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14592 as_fn_error $? "conditional \"AMDEP\" was never defined.
14593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14594 fi
14595 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14596 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14598 fi
14599
14600 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
14601 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
14602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14603 fi
14604
14605 : "${CONFIG_STATUS=./config.status}"
14606 ac_write_fail=0
14607 ac_clean_files_save=$ac_clean_files
14608 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14610 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14611 as_write_fail=0
14612 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14613 #! $SHELL
14614 # Generated by $as_me.
14615 # Run this file to recreate the current configuration.
14616 # Compiler output produced by configure, useful for debugging
14617 # configure, is in config.log if it exists.
14618
14619 debug=false
14620 ac_cs_recheck=false
14621 ac_cs_silent=false
14622
14623 SHELL=\${CONFIG_SHELL-$SHELL}
14624 export SHELL
14625 _ASEOF
14626 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14627 ## -------------------- ##
14628 ## M4sh Initialization. ##
14629 ## -------------------- ##
14630
14631 # Be more Bourne compatible
14632 DUALCASE=1; export DUALCASE # for MKS sh
14633 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14634 emulate sh
14635 NULLCMD=:
14636 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14637 # is contrary to our usage. Disable this feature.
14638 alias -g '${1+"$@"}'='"$@"'
14639 setopt NO_GLOB_SUBST
14640 else
14641 case `(set -o) 2>/dev/null` in #(
14642 *posix*) :
14643 set -o posix ;; #(
14644 *) :
14645 ;;
14646 esac
14647 fi
14648
14649
14650 as_nl='
14651 '
14652 export as_nl
14653 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14654 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14655 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14656 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14657 # Prefer a ksh shell builtin over an external printf program on Solaris,
14658 # but without wasting forks for bash or zsh.
14659 if test -z "$BASH_VERSION$ZSH_VERSION" \
14660 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14661 as_echo='print -r --'
14662 as_echo_n='print -rn --'
14663 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14664 as_echo='printf %s\n'
14665 as_echo_n='printf %s'
14666 else
14667 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14668 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14669 as_echo_n='/usr/ucb/echo -n'
14670 else
14671 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14672 as_echo_n_body='eval
14673 arg=$1;
14674 case $arg in #(
14675 *"$as_nl"*)
14676 expr "X$arg" : "X\\(.*\\)$as_nl";
14677 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14678 esac;
14679 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14680 '
14681 export as_echo_n_body
14682 as_echo_n='sh -c $as_echo_n_body as_echo'
14683 fi
14684 export as_echo_body
14685 as_echo='sh -c $as_echo_body as_echo'
14686 fi
14687
14688 # The user is always right.
14689 if test "${PATH_SEPARATOR+set}" != set; then
14690 PATH_SEPARATOR=:
14691 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14692 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14693 PATH_SEPARATOR=';'
14694 }
14695 fi
14696
14697
14698 # IFS
14699 # We need space, tab and new line, in precisely that order. Quoting is
14700 # there to prevent editors from complaining about space-tab.
14701 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14702 # splitting by setting IFS to empty value.)
14703 IFS=" "" $as_nl"
14704
14705 # Find who we are. Look in the path if we contain no directory separator.
14706 as_myself=
14707 case $0 in #((
14708 *[\\/]* ) as_myself=$0 ;;
14709 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14710 for as_dir in $PATH
14711 do
14712 IFS=$as_save_IFS
14713 test -z "$as_dir" && as_dir=.
14714 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14715 done
14716 IFS=$as_save_IFS
14717
14718 ;;
14719 esac
14720 # We did not find ourselves, most probably we were run as `sh COMMAND'
14721 # in which case we are not to be found in the path.
14722 if test "x$as_myself" = x; then
14723 as_myself=$0
14724 fi
14725 if test ! -f "$as_myself"; then
14726 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14727 exit 1
14728 fi
14729
14730 # Unset variables that we do not need and which cause bugs (e.g. in
14731 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14732 # suppresses any "Segmentation fault" message there. '((' could
14733 # trigger a bug in pdksh 5.2.14.
14734 for as_var in BASH_ENV ENV MAIL MAILPATH
14735 do eval test x\${$as_var+set} = xset \
14736 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14737 done
14738 PS1='$ '
14739 PS2='> '
14740 PS4='+ '
14741
14742 # NLS nuisances.
14743 LC_ALL=C
14744 export LC_ALL
14745 LANGUAGE=C
14746 export LANGUAGE
14747
14748 # CDPATH.
14749 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14750
14751
14752 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14753 # ----------------------------------------
14754 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14755 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14756 # script with STATUS, using 1 if that was 0.
14757 as_fn_error ()
14758 {
14759 as_status=$1; test $as_status -eq 0 && as_status=1
14760 if test "$4"; then
14761 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14762 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14763 fi
14764 $as_echo "$as_me: error: $2" >&2
14765 as_fn_exit $as_status
14766 } # as_fn_error
14767
14768
14769 # as_fn_set_status STATUS
14770 # -----------------------
14771 # Set $? to STATUS, without forking.
14772 as_fn_set_status ()
14773 {
14774 return $1
14775 } # as_fn_set_status
14776
14777 # as_fn_exit STATUS
14778 # -----------------
14779 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14780 as_fn_exit ()
14781 {
14782 set +e
14783 as_fn_set_status $1
14784 exit $1
14785 } # as_fn_exit
14786
14787 # as_fn_unset VAR
14788 # ---------------
14789 # Portably unset VAR.
14790 as_fn_unset ()
14791 {
14792 { eval $1=; unset $1;}
14793 }
14794 as_unset=as_fn_unset
14795 # as_fn_append VAR VALUE
14796 # ----------------------
14797 # Append the text in VALUE to the end of the definition contained in VAR. Take
14798 # advantage of any shell optimizations that allow amortized linear growth over
14799 # repeated appends, instead of the typical quadratic growth present in naive
14800 # implementations.
14801 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14802 eval 'as_fn_append ()
14803 {
14804 eval $1+=\$2
14805 }'
14806 else
14807 as_fn_append ()
14808 {
14809 eval $1=\$$1\$2
14810 }
14811 fi # as_fn_append
14812
14813 # as_fn_arith ARG...
14814 # ------------------
14815 # Perform arithmetic evaluation on the ARGs, and store the result in the
14816 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14817 # must be portable across $(()) and expr.
14818 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14819 eval 'as_fn_arith ()
14820 {
14821 as_val=$(( $* ))
14822 }'
14823 else
14824 as_fn_arith ()
14825 {
14826 as_val=`expr "$@" || test $? -eq 1`
14827 }
14828 fi # as_fn_arith
14829
14830
14831 if expr a : '\(a\)' >/dev/null 2>&1 &&
14832 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14833 as_expr=expr
14834 else
14835 as_expr=false
14836 fi
14837
14838 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14839 as_basename=basename
14840 else
14841 as_basename=false
14842 fi
14843
14844 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14845 as_dirname=dirname
14846 else
14847 as_dirname=false
14848 fi
14849
14850 as_me=`$as_basename -- "$0" ||
14851 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14852 X"$0" : 'X\(//\)$' \| \
14853 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14854 $as_echo X/"$0" |
14855 sed '/^.*\/\([^/][^/]*\)\/*$/{
14856 s//\1/
14857 q
14858 }
14859 /^X\/\(\/\/\)$/{
14860 s//\1/
14861 q
14862 }
14863 /^X\/\(\/\).*/{
14864 s//\1/
14865 q
14866 }
14867 s/.*/./; q'`
14868
14869 # Avoid depending upon Character Ranges.
14870 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14871 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14872 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14873 as_cr_digits='0123456789'
14874 as_cr_alnum=$as_cr_Letters$as_cr_digits
14875
14876 ECHO_C= ECHO_N= ECHO_T=
14877 case `echo -n x` in #(((((
14878 -n*)
14879 case `echo 'xy\c'` in
14880 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14881 xy) ECHO_C='\c';;
14882 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14883 ECHO_T=' ';;
14884 esac;;
14885 *)
14886 ECHO_N='-n';;
14887 esac
14888
14889 rm -f conf$$ conf$$.exe conf$$.file
14890 if test -d conf$$.dir; then
14891 rm -f conf$$.dir/conf$$.file
14892 else
14893 rm -f conf$$.dir
14894 mkdir conf$$.dir 2>/dev/null
14895 fi
14896 if (echo >conf$$.file) 2>/dev/null; then
14897 if ln -s conf$$.file conf$$ 2>/dev/null; then
14898 as_ln_s='ln -s'
14899 # ... but there are two gotchas:
14900 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14901 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14902 # In both cases, we have to default to `cp -pR'.
14903 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14904 as_ln_s='cp -pR'
14905 elif ln conf$$.file conf$$ 2>/dev/null; then
14906 as_ln_s=ln
14907 else
14908 as_ln_s='cp -pR'
14909 fi
14910 else
14911 as_ln_s='cp -pR'
14912 fi
14913 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14914 rmdir conf$$.dir 2>/dev/null
14915
14916
14917 # as_fn_mkdir_p
14918 # -------------
14919 # Create "$as_dir" as a directory, including parents if necessary.
14920 as_fn_mkdir_p ()
14921 {
14922
14923 case $as_dir in #(
14924 -*) as_dir=./$as_dir;;
14925 esac
14926 test -d "$as_dir" || eval $as_mkdir_p || {
14927 as_dirs=
14928 while :; do
14929 case $as_dir in #(
14930 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14931 *) as_qdir=$as_dir;;
14932 esac
14933 as_dirs="'$as_qdir' $as_dirs"
14934 as_dir=`$as_dirname -- "$as_dir" ||
14935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14936 X"$as_dir" : 'X\(//\)[^/]' \| \
14937 X"$as_dir" : 'X\(//\)$' \| \
14938 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14939 $as_echo X"$as_dir" |
14940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14941 s//\1/
14942 q
14943 }
14944 /^X\(\/\/\)[^/].*/{
14945 s//\1/
14946 q
14947 }
14948 /^X\(\/\/\)$/{
14949 s//\1/
14950 q
14951 }
14952 /^X\(\/\).*/{
14953 s//\1/
14954 q
14955 }
14956 s/.*/./; q'`
14957 test -d "$as_dir" && break
14958 done
14959 test -z "$as_dirs" || eval "mkdir $as_dirs"
14960 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14961
14962
14963 } # as_fn_mkdir_p
14964 if mkdir -p . 2>/dev/null; then
14965 as_mkdir_p='mkdir -p "$as_dir"'
14966 else
14967 test -d ./-p && rmdir ./-p
14968 as_mkdir_p=false
14969 fi
14970
14971
14972 # as_fn_executable_p FILE
14973 # -----------------------
14974 # Test if FILE is an executable regular file.
14975 as_fn_executable_p ()
14976 {
14977 test -f "$1" && test -x "$1"
14978 } # as_fn_executable_p
14979 as_test_x='test -x'
14980 as_executable_p=as_fn_executable_p
14981
14982 # Sed expression to map a string onto a valid CPP name.
14983 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14984
14985 # Sed expression to map a string onto a valid variable name.
14986 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14987
14988
14989 exec 6>&1
14990 ## ----------------------------------- ##
14991 ## Main body of $CONFIG_STATUS script. ##
14992 ## ----------------------------------- ##
14993 _ASEOF
14994 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14995
14996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14997 # Save the log message, to keep $0 and so on meaningful, and to
14998 # report actual input values of CONFIG_FILES etc. instead of their
14999 # values after options handling.
15000 ac_log="
15001 This file was extended by file $as_me 5.19, which was
15002 generated by GNU Autoconf 2.69. Invocation command line was
15003
15004 CONFIG_FILES = $CONFIG_FILES
15005 CONFIG_HEADERS = $CONFIG_HEADERS
15006 CONFIG_LINKS = $CONFIG_LINKS
15007 CONFIG_COMMANDS = $CONFIG_COMMANDS
15008 $ $0 $@
15009
15010 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15011 "
15012
15013 _ACEOF
15014
15015 case $ac_config_files in *"
15016 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15017 esac
15018
15019 case $ac_config_headers in *"
15020 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15021 esac
15022
15023
15024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15025 # Files that config.status was made for.
15026 config_files="$ac_config_files"
15027 config_headers="$ac_config_headers"
15028 config_commands="$ac_config_commands"
15029
15030 _ACEOF
15031
15032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15033 ac_cs_usage="\
15034 \`$as_me' instantiates files and other configuration actions
15035 from templates according to the current configuration. Unless the files
15036 and actions are specified as TAGs, all are instantiated by default.
15037
15038 Usage: $0 [OPTION]... [TAG]...
15039
15040 -h, --help print this help, then exit
15041 -V, --version print version number and configuration settings, then exit
15042 --config print configuration, then exit
15043 -q, --quiet, --silent
15044 do not print progress messages
15045 -d, --debug don't remove temporary files
15046 --recheck update $as_me by reconfiguring in the same conditions
15047 --file=FILE[:TEMPLATE]
15048 instantiate the configuration file FILE
15049 --header=FILE[:TEMPLATE]
15050 instantiate the configuration header FILE
15051
15052 Configuration files:
15053 $config_files
15054
15055 Configuration headers:
15056 $config_headers
15057
15058 Configuration commands:
15059 $config_commands
15060
15061 Report bugs to <christos@astron.com>."
15062
15063 _ACEOF
15064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15065 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15066 ac_cs_version="\\
15067 file config.status 5.19
15068 configured by $0, generated by GNU Autoconf 2.69,
15069 with options \\"\$ac_cs_config\\"
15070
15071 Copyright (C) 2012 Free Software Foundation, Inc.
15072 This config.status script is free software; the Free Software Foundation
15073 gives unlimited permission to copy, distribute and modify it."
15074
15075 ac_pwd='$ac_pwd'
15076 srcdir='$srcdir'
15077 INSTALL='$INSTALL'
15078 MKDIR_P='$MKDIR_P'
15079 AWK='$AWK'
15080 test -n "\$AWK" || AWK=awk
15081 _ACEOF
15082
15083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15084 # The default lists apply if the user does not specify any file.
15085 ac_need_defaults=:
15086 while test $# != 0
15087 do
15088 case $1 in
15089 --*=?*)
15090 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15091 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15092 ac_shift=:
15093 ;;
15094 --*=)
15095 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15096 ac_optarg=
15097 ac_shift=:
15098 ;;
15099 *)
15100 ac_option=$1
15101 ac_optarg=$2
15102 ac_shift=shift
15103 ;;
15104 esac
15105
15106 case $ac_option in
15107 # Handling of the options.
15108 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15109 ac_cs_recheck=: ;;
15110 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15111 $as_echo "$ac_cs_version"; exit ;;
15112 --config | --confi | --conf | --con | --co | --c )
15113 $as_echo "$ac_cs_config"; exit ;;
15114 --debug | --debu | --deb | --de | --d | -d )
15115 debug=: ;;
15116 --file | --fil | --fi | --f )
15117 $ac_shift
15118 case $ac_optarg in
15119 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15120 '') as_fn_error $? "missing file argument" ;;
15121 esac
15122 as_fn_append CONFIG_FILES " '$ac_optarg'"
15123 ac_need_defaults=false;;
15124 --header | --heade | --head | --hea )
15125 $ac_shift
15126 case $ac_optarg in
15127 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15128 esac
15129 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15130 ac_need_defaults=false;;
15131 --he | --h)
15132 # Conflict between --help and --header
15133 as_fn_error $? "ambiguous option: \`$1'
15134 Try \`$0 --help' for more information.";;
15135 --help | --hel | -h )
15136 $as_echo "$ac_cs_usage"; exit ;;
15137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15138 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15139 ac_cs_silent=: ;;
15140
15141 # This is an error.
15142 -*) as_fn_error $? "unrecognized option: \`$1'
15143 Try \`$0 --help' for more information." ;;
15144
15145 *) as_fn_append ac_config_targets " $1"
15146 ac_need_defaults=false ;;
15147
15148 esac
15149 shift
15150 done
15151
15152 ac_configure_extra_args=
15153
15154 if $ac_cs_silent; then
15155 exec 6>/dev/null
15156 ac_configure_extra_args="$ac_configure_extra_args --silent"
15157 fi
15158
15159 _ACEOF
15160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161 if \$ac_cs_recheck; then
15162 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15163 shift
15164 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15165 CONFIG_SHELL='$SHELL'
15166 export CONFIG_SHELL
15167 exec "\$@"
15168 fi
15169
15170 _ACEOF
15171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15172 exec 5>>config.log
15173 {
15174 echo
15175 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15176 ## Running $as_me. ##
15177 _ASBOX
15178 $as_echo "$ac_log"
15179 } >&5
15180
15181 _ACEOF
15182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15183 #
15184 # INIT-COMMANDS
15185 #
15186 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15187
15188
15189 # The HP-UX ksh and POSIX shell print the target directory to stdout
15190 # if CDPATH is set.
15191 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15192
15193 sed_quote_subst='$sed_quote_subst'
15194 double_quote_subst='$double_quote_subst'
15195 delay_variable_subst='$delay_variable_subst'
15196 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15197 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15198 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15199 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15200 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15201 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15202 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15203 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15204 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15205 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15206 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15207 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15208 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15209 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15210 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15211 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15212 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15213 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15214 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15215 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15216 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15217 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15218 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15219 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15220 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15221 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15222 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15223 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15224 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15225 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15226 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15227 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15228 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15229 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15230 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15231 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15232 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15233 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15234 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15235 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15236 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15237 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15238 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15239 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15240 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15241 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15242 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15243 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15244 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15245 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15246 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15247 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15248 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15249 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15250 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15251 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15252 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"`'
15253 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15254 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15255 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15256 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15257 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15258 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15259 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15260 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15261 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15262 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15263 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15264 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15265 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15266 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15267 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15268 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15269 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15270 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15271 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15272 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15273 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15274 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15275 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15276 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15277 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15278 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15279 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15280 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15281 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15282 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15283 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15284 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15285 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15286 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15287 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15288 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15289 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15290 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15291 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15292 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15293 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15294 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15295 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15296 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15297 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15298 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15299 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15300 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15301 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15302 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15303 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15304 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15305 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15306 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15307 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15308 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15309 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15310 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15311 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15312 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15313 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15314 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15315 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15316 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15317 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15318 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15319 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15320 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15321 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15322 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15323 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15324 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15325 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15326
15327 LTCC='$LTCC'
15328 LTCFLAGS='$LTCFLAGS'
15329 compiler='$compiler_DEFAULT'
15330
15331 # A function that is used when there is no print builtin or printf.
15332 func_fallback_echo ()
15333 {
15334 eval 'cat <<_LTECHO_EOF
15335 \$1
15336 _LTECHO_EOF'
15337 }
15338
15339 # Quote evaled strings.
15340 for var in SHELL \
15341 ECHO \
15342 PATH_SEPARATOR \
15343 SED \
15344 GREP \
15345 EGREP \
15346 FGREP \
15347 LD \
15348 NM \
15349 LN_S \
15350 lt_SP2NL \
15351 lt_NL2SP \
15352 reload_flag \
15353 OBJDUMP \
15354 deplibs_check_method \
15355 file_magic_cmd \
15356 file_magic_glob \
15357 want_nocaseglob \
15358 DLLTOOL \
15359 sharedlib_from_linklib_cmd \
15360 AR \
15361 AR_FLAGS \
15362 archiver_list_spec \
15363 STRIP \
15364 RANLIB \
15365 CC \
15366 CFLAGS \
15367 compiler \
15368 lt_cv_sys_global_symbol_pipe \
15369 lt_cv_sys_global_symbol_to_cdecl \
15370 lt_cv_sys_global_symbol_to_c_name_address \
15371 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15372 nm_file_list_spec \
15373 lt_prog_compiler_no_builtin_flag \
15374 lt_prog_compiler_pic \
15375 lt_prog_compiler_wl \
15376 lt_prog_compiler_static \
15377 lt_cv_prog_compiler_c_o \
15378 need_locks \
15379 MANIFEST_TOOL \
15380 DSYMUTIL \
15381 NMEDIT \
15382 LIPO \
15383 OTOOL \
15384 OTOOL64 \
15385 shrext_cmds \
15386 export_dynamic_flag_spec \
15387 whole_archive_flag_spec \
15388 compiler_needs_object \
15389 with_gnu_ld \
15390 allow_undefined_flag \
15391 no_undefined_flag \
15392 hardcode_libdir_flag_spec \
15393 hardcode_libdir_separator \
15394 exclude_expsyms \
15395 include_expsyms \
15396 file_list_spec \
15397 variables_saved_for_relink \
15398 libname_spec \
15399 library_names_spec \
15400 soname_spec \
15401 install_override_mode \
15402 finish_eval \
15403 old_striplib \
15404 striplib; do
15405 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15406 *[\\\\\\\`\\"\\\$]*)
15407 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15408 ;;
15409 *)
15410 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15411 ;;
15412 esac
15413 done
15414
15415 # Double-quote double-evaled strings.
15416 for var in reload_cmds \
15417 old_postinstall_cmds \
15418 old_postuninstall_cmds \
15419 old_archive_cmds \
15420 extract_expsyms_cmds \
15421 old_archive_from_new_cmds \
15422 old_archive_from_expsyms_cmds \
15423 archive_cmds \
15424 archive_expsym_cmds \
15425 module_cmds \
15426 module_expsym_cmds \
15427 export_symbols_cmds \
15428 prelink_cmds \
15429 postlink_cmds \
15430 postinstall_cmds \
15431 postuninstall_cmds \
15432 finish_cmds \
15433 sys_lib_search_path_spec \
15434 sys_lib_dlsearch_path_spec; do
15435 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15436 *[\\\\\\\`\\"\\\$]*)
15437 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15438 ;;
15439 *)
15440 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15441 ;;
15442 esac
15443 done
15444
15445 ac_aux_dir='$ac_aux_dir'
15446 xsi_shell='$xsi_shell'
15447 lt_shell_append='$lt_shell_append'
15448
15449 # See if we are running on zsh, and set the options which allow our
15450 # commands through without removal of \ escapes INIT.
15451 if test -n "\${ZSH_VERSION+set}" ; then
15452 setopt NO_GLOB_SUBST
15453 fi
15454
15455
15456 PACKAGE='$PACKAGE'
15457 VERSION='$VERSION'
15458 TIMESTAMP='$TIMESTAMP'
15459 RM='$RM'
15460 ofile='$ofile'
15461
15462
15463
15464
15465 _ACEOF
15466
15467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15468
15469 # Handling of arguments.
15470 for ac_config_target in $ac_config_targets
15471 do
15472 case $ac_config_target in
15473 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15474 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15475 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15476 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15477 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15478 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
15479 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15480 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15481 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
15482
15483 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15484 esac
15485 done
15486
15487
15488 # If the user did not use the arguments to specify the items to instantiate,
15489 # then the envvar interface is used. Set only those that are not.
15490 # We use the long form for the default assignment because of an extremely
15491 # bizarre bug on SunOS 4.1.3.
15492 if $ac_need_defaults; then
15493 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15494 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15495 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15496 fi
15497
15498 # Have a temporary directory for convenience. Make it in the build tree
15499 # simply because there is no reason against having it here, and in addition,
15500 # creating and moving files from /tmp can sometimes cause problems.
15501 # Hook for its removal unless debugging.
15502 # Note that there is a small window in which the directory will not be cleaned:
15503 # after its creation but before its name has been assigned to `$tmp'.
15504 $debug ||
15505 {
15506 tmp= ac_tmp=
15507 trap 'exit_status=$?
15508 : "${ac_tmp:=$tmp}"
15509 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15510 ' 0
15511 trap 'as_fn_exit 1' 1 2 13 15
15512 }
15513 # Create a (secure) tmp directory for tmp files.
15514
15515 {
15516 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15517 test -d "$tmp"
15518 } ||
15519 {
15520 tmp=./conf$$-$RANDOM
15521 (umask 077 && mkdir "$tmp")
15522 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15523 ac_tmp=$tmp
15524
15525 # Set up the scripts for CONFIG_FILES section.
15526 # No need to generate them if there are no CONFIG_FILES.
15527 # This happens for instance with `./config.status config.h'.
15528 if test -n "$CONFIG_FILES"; then
15529
15530
15531 ac_cr=`echo X | tr X '\015'`
15532 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15533 # But we know of no other shell where ac_cr would be empty at this
15534 # point, so we can use a bashism as a fallback.
15535 if test "x$ac_cr" = x; then
15536 eval ac_cr=\$\'\\r\'
15537 fi
15538 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15539 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15540 ac_cs_awk_cr='\\r'
15541 else
15542 ac_cs_awk_cr=$ac_cr
15543 fi
15544
15545 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15546 _ACEOF
15547
15548
15549 {
15550 echo "cat >conf$$subs.awk <<_ACEOF" &&
15551 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15552 echo "_ACEOF"
15553 } >conf$$subs.sh ||
15554 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15555 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15556 ac_delim='%!_!# '
15557 for ac_last_try in false false false false false :; do
15558 . ./conf$$subs.sh ||
15559 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15560
15561 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15562 if test $ac_delim_n = $ac_delim_num; then
15563 break
15564 elif $ac_last_try; then
15565 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15566 else
15567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15568 fi
15569 done
15570 rm -f conf$$subs.sh
15571
15572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15573 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15574 _ACEOF
15575 sed -n '
15576 h
15577 s/^/S["/; s/!.*/"]=/
15578 p
15579 g
15580 s/^[^!]*!//
15581 :repl
15582 t repl
15583 s/'"$ac_delim"'$//
15584 t delim
15585 :nl
15586 h
15587 s/\(.\{148\}\)..*/\1/
15588 t more1
15589 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15590 p
15591 n
15592 b repl
15593 :more1
15594 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15595 p
15596 g
15597 s/.\{148\}//
15598 t nl
15599 :delim
15600 h
15601 s/\(.\{148\}\)..*/\1/
15602 t more2
15603 s/["\\]/\\&/g; s/^/"/; s/$/"/
15604 p
15605 b
15606 :more2
15607 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15608 p
15609 g
15610 s/.\{148\}//
15611 t delim
15612 ' <conf$$subs.awk | sed '
15613 /^[^""]/{
15614 N
15615 s/\n//
15616 }
15617 ' >>$CONFIG_STATUS || ac_write_fail=1
15618 rm -f conf$$subs.awk
15619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15620 _ACAWK
15621 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15622 for (key in S) S_is_set[key] = 1
15623 FS = ""
15624
15625 }
15626 {
15627 line = $ 0
15628 nfields = split(line, field, "@")
15629 substed = 0
15630 len = length(field[1])
15631 for (i = 2; i < nfields; i++) {
15632 key = field[i]
15633 keylen = length(key)
15634 if (S_is_set[key]) {
15635 value = S[key]
15636 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15637 len += length(value) + length(field[++i])
15638 substed = 1
15639 } else
15640 len += 1 + keylen
15641 }
15642
15643 print line
15644 }
15645
15646 _ACAWK
15647 _ACEOF
15648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15649 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15650 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15651 else
15652 cat
15653 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15654 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15655 _ACEOF
15656
15657 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15658 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15659 # trailing colons and then remove the whole line if VPATH becomes empty
15660 # (actually we leave an empty line to preserve line numbers).
15661 if test "x$srcdir" = x.; then
15662 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15663 h
15664 s///
15665 s/^/:/
15666 s/[ ]*$/:/
15667 s/:\$(srcdir):/:/g
15668 s/:\${srcdir}:/:/g
15669 s/:@srcdir@:/:/g
15670 s/^:*//
15671 s/:*$//
15672 x
15673 s/\(=[ ]*\).*/\1/
15674 G
15675 s/\n//
15676 s/^[^=]*=[ ]*$//
15677 }'
15678 fi
15679
15680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15681 fi # test -n "$CONFIG_FILES"
15682
15683 # Set up the scripts for CONFIG_HEADERS section.
15684 # No need to generate them if there are no CONFIG_HEADERS.
15685 # This happens for instance with `./config.status Makefile'.
15686 if test -n "$CONFIG_HEADERS"; then
15687 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15688 BEGIN {
15689 _ACEOF
15690
15691 # Transform confdefs.h into an awk script `defines.awk', embedded as
15692 # here-document in config.status, that substitutes the proper values into
15693 # config.h.in to produce config.h.
15694
15695 # Create a delimiter string that does not exist in confdefs.h, to ease
15696 # handling of long lines.
15697 ac_delim='%!_!# '
15698 for ac_last_try in false false :; do
15699 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15700 if test -z "$ac_tt"; then
15701 break
15702 elif $ac_last_try; then
15703 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15704 else
15705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15706 fi
15707 done
15708
15709 # For the awk script, D is an array of macro values keyed by name,
15710 # likewise P contains macro parameters if any. Preserve backslash
15711 # newline sequences.
15712
15713 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15714 sed -n '
15715 s/.\{148\}/&'"$ac_delim"'/g
15716 t rset
15717 :rset
15718 s/^[ ]*#[ ]*define[ ][ ]*/ /
15719 t def
15720 d
15721 :def
15722 s/\\$//
15723 t bsnl
15724 s/["\\]/\\&/g
15725 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15726 D["\1"]=" \3"/p
15727 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15728 d
15729 :bsnl
15730 s/["\\]/\\&/g
15731 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15732 D["\1"]=" \3\\\\\\n"\\/p
15733 t cont
15734 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15735 t cont
15736 d
15737 :cont
15738 n
15739 s/.\{148\}/&'"$ac_delim"'/g
15740 t clear
15741 :clear
15742 s/\\$//
15743 t bsnlc
15744 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15745 d
15746 :bsnlc
15747 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15748 b cont
15749 ' <confdefs.h | sed '
15750 s/'"$ac_delim"'/"\\\
15751 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15752
15753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15754 for (key in D) D_is_set[key] = 1
15755 FS = ""
15756 }
15757 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15758 line = \$ 0
15759 split(line, arg, " ")
15760 if (arg[1] == "#") {
15761 defundef = arg[2]
15762 mac1 = arg[3]
15763 } else {
15764 defundef = substr(arg[1], 2)
15765 mac1 = arg[2]
15766 }
15767 split(mac1, mac2, "(") #)
15768 macro = mac2[1]
15769 prefix = substr(line, 1, index(line, defundef) - 1)
15770 if (D_is_set[macro]) {
15771 # Preserve the white space surrounding the "#".
15772 print prefix "define", macro P[macro] D[macro]
15773 next
15774 } else {
15775 # Replace #undef with comments. This is necessary, for example,
15776 # in the case of _POSIX_SOURCE, which is predefined and required
15777 # on some systems where configure will not decide to define it.
15778 if (defundef == "undef") {
15779 print "/*", prefix defundef, macro, "*/"
15780 next
15781 }
15782 }
15783 }
15784 { print }
15785 _ACAWK
15786 _ACEOF
15787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15788 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15789 fi # test -n "$CONFIG_HEADERS"
15790
15791
15792 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15793 shift
15794 for ac_tag
15795 do
15796 case $ac_tag in
15797 :[FHLC]) ac_mode=$ac_tag; continue;;
15798 esac
15799 case $ac_mode$ac_tag in
15800 :[FHL]*:*);;
15801 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15802 :[FH]-) ac_tag=-:-;;
15803 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15804 esac
15805 ac_save_IFS=$IFS
15806 IFS=:
15807 set x $ac_tag
15808 IFS=$ac_save_IFS
15809 shift
15810 ac_file=$1
15811 shift
15812
15813 case $ac_mode in
15814 :L) ac_source=$1;;
15815 :[FH])
15816 ac_file_inputs=
15817 for ac_f
15818 do
15819 case $ac_f in
15820 -) ac_f="$ac_tmp/stdin";;
15821 *) # Look for the file first in the build tree, then in the source tree
15822 # (if the path is not absolute). The absolute path cannot be DOS-style,
15823 # because $ac_f cannot contain `:'.
15824 test -f "$ac_f" ||
15825 case $ac_f in
15826 [\\/$]*) false;;
15827 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15828 esac ||
15829 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15830 esac
15831 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15832 as_fn_append ac_file_inputs " '$ac_f'"
15833 done
15834
15835 # Let's still pretend it is `configure' which instantiates (i.e., don't
15836 # use $as_me), people would be surprised to read:
15837 # /* config.h. Generated by config.status. */
15838 configure_input='Generated from '`
15839 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15840 `' by configure.'
15841 if test x"$ac_file" != x-; then
15842 configure_input="$ac_file. $configure_input"
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15844 $as_echo "$as_me: creating $ac_file" >&6;}
15845 fi
15846 # Neutralize special characters interpreted by sed in replacement strings.
15847 case $configure_input in #(
15848 *\&* | *\|* | *\\* )
15849 ac_sed_conf_input=`$as_echo "$configure_input" |
15850 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15851 *) ac_sed_conf_input=$configure_input;;
15852 esac
15853
15854 case $ac_tag in
15855 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15857 esac
15858 ;;
15859 esac
15860
15861 ac_dir=`$as_dirname -- "$ac_file" ||
15862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15863 X"$ac_file" : 'X\(//\)[^/]' \| \
15864 X"$ac_file" : 'X\(//\)$' \| \
15865 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15866 $as_echo X"$ac_file" |
15867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15868 s//\1/
15869 q
15870 }
15871 /^X\(\/\/\)[^/].*/{
15872 s//\1/
15873 q
15874 }
15875 /^X\(\/\/\)$/{
15876 s//\1/
15877 q
15878 }
15879 /^X\(\/\).*/{
15880 s//\1/
15881 q
15882 }
15883 s/.*/./; q'`
15884 as_dir="$ac_dir"; as_fn_mkdir_p
15885 ac_builddir=.
15886
15887 case "$ac_dir" in
15888 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15889 *)
15890 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15891 # A ".." for each directory in $ac_dir_suffix.
15892 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15893 case $ac_top_builddir_sub in
15894 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15895 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15896 esac ;;
15897 esac
15898 ac_abs_top_builddir=$ac_pwd
15899 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15900 # for backward compatibility:
15901 ac_top_builddir=$ac_top_build_prefix
15902
15903 case $srcdir in
15904 .) # We are building in place.
15905 ac_srcdir=.
15906 ac_top_srcdir=$ac_top_builddir_sub
15907 ac_abs_top_srcdir=$ac_pwd ;;
15908 [\\/]* | ?:[\\/]* ) # Absolute name.
15909 ac_srcdir=$srcdir$ac_dir_suffix;
15910 ac_top_srcdir=$srcdir
15911 ac_abs_top_srcdir=$srcdir ;;
15912 *) # Relative name.
15913 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15914 ac_top_srcdir=$ac_top_build_prefix$srcdir
15915 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15916 esac
15917 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15918
15919
15920 case $ac_mode in
15921 :F)
15922 #
15923 # CONFIG_FILE
15924 #
15925
15926 case $INSTALL in
15927 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15928 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15929 esac
15930 ac_MKDIR_P=$MKDIR_P
15931 case $MKDIR_P in
15932 [\\/$]* | ?:[\\/]* ) ;;
15933 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15934 esac
15935 _ACEOF
15936
15937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15938 # If the template does not know about datarootdir, expand it.
15939 # FIXME: This hack should be removed a few years after 2.60.
15940 ac_datarootdir_hack=; ac_datarootdir_seen=
15941 ac_sed_dataroot='
15942 /datarootdir/ {
15943 p
15944 q
15945 }
15946 /@datadir@/p
15947 /@docdir@/p
15948 /@infodir@/p
15949 /@localedir@/p
15950 /@mandir@/p'
15951 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15952 *datarootdir*) ac_datarootdir_seen=yes;;
15953 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15955 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15956 _ACEOF
15957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15958 ac_datarootdir_hack='
15959 s&@datadir@&$datadir&g
15960 s&@docdir@&$docdir&g
15961 s&@infodir@&$infodir&g
15962 s&@localedir@&$localedir&g
15963 s&@mandir@&$mandir&g
15964 s&\\\${datarootdir}&$datarootdir&g' ;;
15965 esac
15966 _ACEOF
15967
15968 # Neutralize VPATH when `$srcdir' = `.'.
15969 # Shell code in configure.ac might set extrasub.
15970 # FIXME: do we really want to maintain this feature?
15971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15972 ac_sed_extra="$ac_vpsub
15973 $extrasub
15974 _ACEOF
15975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15976 :t
15977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15978 s|@configure_input@|$ac_sed_conf_input|;t t
15979 s&@top_builddir@&$ac_top_builddir_sub&;t t
15980 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15981 s&@srcdir@&$ac_srcdir&;t t
15982 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15983 s&@top_srcdir@&$ac_top_srcdir&;t t
15984 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15985 s&@builddir@&$ac_builddir&;t t
15986 s&@abs_builddir@&$ac_abs_builddir&;t t
15987 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15988 s&@INSTALL@&$ac_INSTALL&;t t
15989 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15990 $ac_datarootdir_hack
15991 "
15992 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15993 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15994
15995 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15996 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15997 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15998 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16000 which seems to be undefined. Please make sure it is defined" >&5
16001 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16002 which seems to be undefined. Please make sure it is defined" >&2;}
16003
16004 rm -f "$ac_tmp/stdin"
16005 case $ac_file in
16006 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16007 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16008 esac \
16009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16010 ;;
16011 :H)
16012 #
16013 # CONFIG_HEADER
16014 #
16015 if test x"$ac_file" != x-; then
16016 {
16017 $as_echo "/* $configure_input */" \
16018 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16019 } >"$ac_tmp/config.h" \
16020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16021 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16023 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16024 else
16025 rm -f "$ac_file"
16026 mv "$ac_tmp/config.h" "$ac_file" \
16027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16028 fi
16029 else
16030 $as_echo "/* $configure_input */" \
16031 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16032 || as_fn_error $? "could not create -" "$LINENO" 5
16033 fi
16034 # Compute "$ac_file"'s index in $config_headers.
16035 _am_arg="$ac_file"
16036 _am_stamp_count=1
16037 for _am_header in $config_headers :; do
16038 case $_am_header in
16039 $_am_arg | $_am_arg:* )
16040 break ;;
16041 * )
16042 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16043 esac
16044 done
16045 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16046 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16047 X"$_am_arg" : 'X\(//\)[^/]' \| \
16048 X"$_am_arg" : 'X\(//\)$' \| \
16049 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16050 $as_echo X"$_am_arg" |
16051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16052 s//\1/
16053 q
16054 }
16055 /^X\(\/\/\)[^/].*/{
16056 s//\1/
16057 q
16058 }
16059 /^X\(\/\/\)$/{
16060 s//\1/
16061 q
16062 }
16063 /^X\(\/\).*/{
16064 s//\1/
16065 q
16066 }
16067 s/.*/./; q'`/stamp-h$_am_stamp_count
16068 ;;
16069
16070 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16071 $as_echo "$as_me: executing $ac_file commands" >&6;}
16072 ;;
16073 esac
16074
16075
16076 case $ac_file$ac_mode in
16077 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16078 # Older Autoconf quotes --file arguments for eval, but not when files
16079 # are listed without --file. Let's play safe and only enable the eval
16080 # if we detect the quoting.
16081 case $CONFIG_FILES in
16082 *\'*) eval set x "$CONFIG_FILES" ;;
16083 *) set x $CONFIG_FILES ;;
16084 esac
16085 shift
16086 for mf
16087 do
16088 # Strip MF so we end up with the name of the file.
16089 mf=`echo "$mf" | sed -e 's/:.*$//'`
16090 # Check whether this is an Automake generated Makefile or not.
16091 # We used to match only the files named 'Makefile.in', but
16092 # some people rename them; so instead we look at the file content.
16093 # Grep'ing the first line is not enough: some people post-process
16094 # each Makefile.in and add a new line on top of each file to say so.
16095 # Grep'ing the whole file is not good either: AIX grep has a line
16096 # limit of 2048, but all sed's we know have understand at least 4000.
16097 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16098 dirpart=`$as_dirname -- "$mf" ||
16099 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16100 X"$mf" : 'X\(//\)[^/]' \| \
16101 X"$mf" : 'X\(//\)$' \| \
16102 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16103 $as_echo X"$mf" |
16104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16105 s//\1/
16106 q
16107 }
16108 /^X\(\/\/\)[^/].*/{
16109 s//\1/
16110 q
16111 }
16112 /^X\(\/\/\)$/{
16113 s//\1/
16114 q
16115 }
16116 /^X\(\/\).*/{
16117 s//\1/
16118 q
16119 }
16120 s/.*/./; q'`
16121 else
16122 continue
16123 fi
16124 # Extract the definition of DEPDIR, am__include, and am__quote
16125 # from the Makefile without running 'make'.
16126 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16127 test -z "$DEPDIR" && continue
16128 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16129 test -z "$am__include" && continue
16130 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16131 # Find all dependency output files, they are included files with
16132 # $(DEPDIR) in their names. We invoke sed twice because it is the
16133 # simplest approach to changing $(DEPDIR) to its actual value in the
16134 # expansion.
16135 for file in `sed -n "
16136 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16137 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16138 # Make sure the directory exists.
16139 test -f "$dirpart/$file" && continue
16140 fdir=`$as_dirname -- "$file" ||
16141 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16142 X"$file" : 'X\(//\)[^/]' \| \
16143 X"$file" : 'X\(//\)$' \| \
16144 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16145 $as_echo X"$file" |
16146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16147 s//\1/
16148 q
16149 }
16150 /^X\(\/\/\)[^/].*/{
16151 s//\1/
16152 q
16153 }
16154 /^X\(\/\/\)$/{
16155 s//\1/
16156 q
16157 }
16158 /^X\(\/\).*/{
16159 s//\1/
16160 q
16161 }
16162 s/.*/./; q'`
16163 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16164 # echo "creating $dirpart/$file"
16165 echo '# dummy' > "$dirpart/$file"
16166 done
16167 done
16168 }
16169 ;;
16170 "libtool":C)
16171
16172 # See if we are running on zsh, and set the options which allow our
16173 # commands through without removal of \ escapes.
16174 if test -n "${ZSH_VERSION+set}" ; then
16175 setopt NO_GLOB_SUBST
16176 fi
16177
16178 cfgfile="${ofile}T"
16179 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16180 $RM "$cfgfile"
16181
16182 cat <<_LT_EOF >> "$cfgfile"
16183 #! $SHELL
16184
16185 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16186 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16187 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16188 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16189 #
16190 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16191 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16192 # Foundation, Inc.
16193 # Written by Gordon Matzigkeit, 1996
16194 #
16195 # This file is part of GNU Libtool.
16196 #
16197 # GNU Libtool is free software; you can redistribute it and/or
16198 # modify it under the terms of the GNU General Public License as
16199 # published by the Free Software Foundation; either version 2 of
16200 # the License, or (at your option) any later version.
16201 #
16202 # As a special exception to the GNU General Public License,
16203 # if you distribute this file as part of a program or library that
16204 # is built using GNU Libtool, you may include this file under the
16205 # same distribution terms that you use for the rest of that program.
16206 #
16207 # GNU Libtool is distributed in the hope that it will be useful,
16208 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16209 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16210 # GNU General Public License for more details.
16211 #
16212 # You should have received a copy of the GNU General Public License
16213 # along with GNU Libtool; see the file COPYING. If not, a copy
16214 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16215 # obtained by writing to the Free Software Foundation, Inc.,
16216 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16217
16218
16219 # The names of the tagged configurations supported by this script.
16220 available_tags=""
16221
16222 # ### BEGIN LIBTOOL CONFIG
16223
16224 # Which release of libtool.m4 was used?
16225 macro_version=$macro_version
16226 macro_revision=$macro_revision
16227
16228 # Whether or not to build static libraries.
16229 build_old_libs=$enable_static
16230
16231 # What type of objects to build.
16232 pic_mode=$pic_mode
16233
16234 # Whether or not to build shared libraries.
16235 build_libtool_libs=$enable_shared
16236
16237 # Whether or not to optimize for fast installation.
16238 fast_install=$enable_fast_install
16239
16240 # Shell to use when invoking shell scripts.
16241 SHELL=$lt_SHELL
16242
16243 # An echo program that protects backslashes.
16244 ECHO=$lt_ECHO
16245
16246 # The PATH separator for the build system.
16247 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16248
16249 # The host system.
16250 host_alias=$host_alias
16251 host=$host
16252 host_os=$host_os
16253
16254 # The build system.
16255 build_alias=$build_alias
16256 build=$build
16257 build_os=$build_os
16258
16259 # A sed program that does not truncate output.
16260 SED=$lt_SED
16261
16262 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16263 Xsed="\$SED -e 1s/^X//"
16264
16265 # A grep program that handles long lines.
16266 GREP=$lt_GREP
16267
16268 # An ERE matcher.
16269 EGREP=$lt_EGREP
16270
16271 # A literal string matcher.
16272 FGREP=$lt_FGREP
16273
16274 # A BSD- or MS-compatible name lister.
16275 NM=$lt_NM
16276
16277 # Whether we need soft or hard links.
16278 LN_S=$lt_LN_S
16279
16280 # What is the maximum length of a command?
16281 max_cmd_len=$max_cmd_len
16282
16283 # Object file suffix (normally "o").
16284 objext=$ac_objext
16285
16286 # Executable file suffix (normally "").
16287 exeext=$exeext
16288
16289 # whether the shell understands "unset".
16290 lt_unset=$lt_unset
16291
16292 # turn spaces into newlines.
16293 SP2NL=$lt_lt_SP2NL
16294
16295 # turn newlines into spaces.
16296 NL2SP=$lt_lt_NL2SP
16297
16298 # convert \$build file names to \$host format.
16299 to_host_file_cmd=$lt_cv_to_host_file_cmd
16300
16301 # convert \$build files to toolchain format.
16302 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16303
16304 # An object symbol dumper.
16305 OBJDUMP=$lt_OBJDUMP
16306
16307 # Method to check whether dependent libraries are shared objects.
16308 deplibs_check_method=$lt_deplibs_check_method
16309
16310 # Command to use when deplibs_check_method = "file_magic".
16311 file_magic_cmd=$lt_file_magic_cmd
16312
16313 # How to find potential files when deplibs_check_method = "file_magic".
16314 file_magic_glob=$lt_file_magic_glob
16315
16316 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16317 want_nocaseglob=$lt_want_nocaseglob
16318
16319 # DLL creation program.
16320 DLLTOOL=$lt_DLLTOOL
16321
16322 # Command to associate shared and link libraries.
16323 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16324
16325 # The archiver.
16326 AR=$lt_AR
16327
16328 # Flags to create an archive.
16329 AR_FLAGS=$lt_AR_FLAGS
16330
16331 # How to feed a file listing to the archiver.
16332 archiver_list_spec=$lt_archiver_list_spec
16333
16334 # A symbol stripping program.
16335 STRIP=$lt_STRIP
16336
16337 # Commands used to install an old-style archive.
16338 RANLIB=$lt_RANLIB
16339 old_postinstall_cmds=$lt_old_postinstall_cmds
16340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16341
16342 # Whether to use a lock for old archive extraction.
16343 lock_old_archive_extraction=$lock_old_archive_extraction
16344
16345 # A C compiler.
16346 LTCC=$lt_CC
16347
16348 # LTCC compiler flags.
16349 LTCFLAGS=$lt_CFLAGS
16350
16351 # Take the output of nm and produce a listing of raw symbols and C names.
16352 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16353
16354 # Transform the output of nm in a proper C declaration.
16355 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16356
16357 # Transform the output of nm in a C name address pair.
16358 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16359
16360 # Transform the output of nm in a C name address pair when lib prefix is needed.
16361 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16362
16363 # Specify filename containing input files for \$NM.
16364 nm_file_list_spec=$lt_nm_file_list_spec
16365
16366 # The root where to search for dependent libraries,and in which our libraries should be installed.
16367 lt_sysroot=$lt_sysroot
16368
16369 # The name of the directory that contains temporary libtool files.
16370 objdir=$objdir
16371
16372 # Used to examine libraries when file_magic_cmd begins with "file".
16373 MAGIC_CMD=$MAGIC_CMD
16374
16375 # Must we lock files when doing compilation?
16376 need_locks=$lt_need_locks
16377
16378 # Manifest tool.
16379 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16380
16381 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16382 DSYMUTIL=$lt_DSYMUTIL
16383
16384 # Tool to change global to local symbols on Mac OS X.
16385 NMEDIT=$lt_NMEDIT
16386
16387 # Tool to manipulate fat objects and archives on Mac OS X.
16388 LIPO=$lt_LIPO
16389
16390 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16391 OTOOL=$lt_OTOOL
16392
16393 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16394 OTOOL64=$lt_OTOOL64
16395
16396 # Old archive suffix (normally "a").
16397 libext=$libext
16398
16399 # Shared library suffix (normally ".so").
16400 shrext_cmds=$lt_shrext_cmds
16401
16402 # The commands to extract the exported symbol list from a shared archive.
16403 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16404
16405 # Variables whose values should be saved in libtool wrapper scripts and
16406 # restored at link time.
16407 variables_saved_for_relink=$lt_variables_saved_for_relink
16408
16409 # Do we need the "lib" prefix for modules?
16410 need_lib_prefix=$need_lib_prefix
16411
16412 # Do we need a version for libraries?
16413 need_version=$need_version
16414
16415 # Library versioning type.
16416 version_type=$version_type
16417
16418 # Shared library runtime path variable.
16419 runpath_var=$runpath_var
16420
16421 # Shared library path variable.
16422 shlibpath_var=$shlibpath_var
16423
16424 # Is shlibpath searched before the hard-coded library search path?
16425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16426
16427 # Format of library name prefix.
16428 libname_spec=$lt_libname_spec
16429
16430 # List of archive names. First name is the real one, the rest are links.
16431 # The last name is the one that the linker finds with -lNAME
16432 library_names_spec=$lt_library_names_spec
16433
16434 # The coded name of the library, if different from the real name.
16435 soname_spec=$lt_soname_spec
16436
16437 # Permission mode override for installation of shared libraries.
16438 install_override_mode=$lt_install_override_mode
16439
16440 # Command to use after installation of a shared archive.
16441 postinstall_cmds=$lt_postinstall_cmds
16442
16443 # Command to use after uninstallation of a shared archive.
16444 postuninstall_cmds=$lt_postuninstall_cmds
16445
16446 # Commands used to finish a libtool library installation in a directory.
16447 finish_cmds=$lt_finish_cmds
16448
16449 # As "finish_cmds", except a single script fragment to be evaled but
16450 # not shown.
16451 finish_eval=$lt_finish_eval
16452
16453 # Whether we should hardcode library paths into libraries.
16454 hardcode_into_libs=$hardcode_into_libs
16455
16456 # Compile-time system search path for libraries.
16457 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16458
16459 # Run-time system search path for libraries.
16460 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16461
16462 # Whether dlopen is supported.
16463 dlopen_support=$enable_dlopen
16464
16465 # Whether dlopen of programs is supported.
16466 dlopen_self=$enable_dlopen_self
16467
16468 # Whether dlopen of statically linked programs is supported.
16469 dlopen_self_static=$enable_dlopen_self_static
16470
16471 # Commands to strip libraries.
16472 old_striplib=$lt_old_striplib
16473 striplib=$lt_striplib
16474
16475
16476 # The linker used to build libraries.
16477 LD=$lt_LD
16478
16479 # How to create reloadable object files.
16480 reload_flag=$lt_reload_flag
16481 reload_cmds=$lt_reload_cmds
16482
16483 # Commands used to build an old-style archive.
16484 old_archive_cmds=$lt_old_archive_cmds
16485
16486 # A language specific compiler.
16487 CC=$lt_compiler
16488
16489 # Is the compiler the GNU compiler?
16490 with_gcc=$GCC
16491
16492 # Compiler flag to turn off builtin functions.
16493 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16494
16495 # Additional compiler flags for building library objects.
16496 pic_flag=$lt_lt_prog_compiler_pic
16497
16498 # How to pass a linker flag through the compiler.
16499 wl=$lt_lt_prog_compiler_wl
16500
16501 # Compiler flag to prevent dynamic linking.
16502 link_static_flag=$lt_lt_prog_compiler_static
16503
16504 # Does compiler simultaneously support -c and -o options?
16505 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16506
16507 # Whether or not to add -lc for building shared libraries.
16508 build_libtool_need_lc=$archive_cmds_need_lc
16509
16510 # Whether or not to disallow shared libs when runtime libs are static.
16511 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16512
16513 # Compiler flag to allow reflexive dlopens.
16514 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16515
16516 # Compiler flag to generate shared objects directly from archives.
16517 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16518
16519 # Whether the compiler copes with passing no objects directly.
16520 compiler_needs_object=$lt_compiler_needs_object
16521
16522 # Create an old-style archive from a shared archive.
16523 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16524
16525 # Create a temporary old-style archive to link instead of a shared archive.
16526 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16527
16528 # Commands used to build a shared archive.
16529 archive_cmds=$lt_archive_cmds
16530 archive_expsym_cmds=$lt_archive_expsym_cmds
16531
16532 # Commands used to build a loadable module if different from building
16533 # a shared archive.
16534 module_cmds=$lt_module_cmds
16535 module_expsym_cmds=$lt_module_expsym_cmds
16536
16537 # Whether we are building with GNU ld or not.
16538 with_gnu_ld=$lt_with_gnu_ld
16539
16540 # Flag that allows shared libraries with undefined symbols to be built.
16541 allow_undefined_flag=$lt_allow_undefined_flag
16542
16543 # Flag that enforces no undefined symbols.
16544 no_undefined_flag=$lt_no_undefined_flag
16545
16546 # Flag to hardcode \$libdir into a binary during linking.
16547 # This must work even if \$libdir does not exist
16548 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16549
16550 # Whether we need a single "-rpath" flag with a separated argument.
16551 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16552
16553 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16554 # DIR into the resulting binary.
16555 hardcode_direct=$hardcode_direct
16556
16557 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16558 # DIR into the resulting binary and the resulting library dependency is
16559 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16560 # library is relocated.
16561 hardcode_direct_absolute=$hardcode_direct_absolute
16562
16563 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16564 # into the resulting binary.
16565 hardcode_minus_L=$hardcode_minus_L
16566
16567 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16568 # into the resulting binary.
16569 hardcode_shlibpath_var=$hardcode_shlibpath_var
16570
16571 # Set to "yes" if building a shared library automatically hardcodes DIR
16572 # into the library and all subsequent libraries and executables linked
16573 # against it.
16574 hardcode_automatic=$hardcode_automatic
16575
16576 # Set to yes if linker adds runtime paths of dependent libraries
16577 # to runtime path list.
16578 inherit_rpath=$inherit_rpath
16579
16580 # Whether libtool must link a program against all its dependency libraries.
16581 link_all_deplibs=$link_all_deplibs
16582
16583 # Set to "yes" if exported symbols are required.
16584 always_export_symbols=$always_export_symbols
16585
16586 # The commands to list exported symbols.
16587 export_symbols_cmds=$lt_export_symbols_cmds
16588
16589 # Symbols that should not be listed in the preloaded symbols.
16590 exclude_expsyms=$lt_exclude_expsyms
16591
16592 # Symbols that must always be exported.
16593 include_expsyms=$lt_include_expsyms
16594
16595 # Commands necessary for linking programs (against libraries) with templates.
16596 prelink_cmds=$lt_prelink_cmds
16597
16598 # Commands necessary for finishing linking programs.
16599 postlink_cmds=$lt_postlink_cmds
16600
16601 # Specify filename containing input files.
16602 file_list_spec=$lt_file_list_spec
16603
16604 # How to hardcode a shared library path into an executable.
16605 hardcode_action=$hardcode_action
16606
16607 # ### END LIBTOOL CONFIG
16608
16609 _LT_EOF
16610
16611 case $host_os in
16612 aix3*)
16613 cat <<\_LT_EOF >> "$cfgfile"
16614 # AIX sometimes has problems with the GCC collect2 program. For some
16615 # reason, if we set the COLLECT_NAMES environment variable, the problems
16616 # vanish in a puff of smoke.
16617 if test "X${COLLECT_NAMES+set}" != Xset; then
16618 COLLECT_NAMES=
16619 export COLLECT_NAMES
16620 fi
16621 _LT_EOF
16622 ;;
16623 esac
16624
16625
16626 ltmain="$ac_aux_dir/ltmain.sh"
16627
16628
16629 # We use sed instead of cat because bash on DJGPP gets confused if
16630 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16631 # text mode, it properly converts lines to CR/LF. This bash problem
16632 # is reportedly fixed, but why not run on old versions too?
16633 sed '$q' "$ltmain" >> "$cfgfile" \
16634 || (rm -f "$cfgfile"; exit 1)
16635
16636 if test x"$xsi_shell" = xyes; then
16637 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16638 func_dirname ()\
16639 {\
16640 \ case ${1} in\
16641 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16642 \ * ) func_dirname_result="${3}" ;;\
16643 \ esac\
16644 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16645 && mv -f "$cfgfile.tmp" "$cfgfile" \
16646 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16647 test 0 -eq $? || _lt_function_replace_fail=:
16648
16649
16650 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16651 func_basename ()\
16652 {\
16653 \ func_basename_result="${1##*/}"\
16654 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16655 && mv -f "$cfgfile.tmp" "$cfgfile" \
16656 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16657 test 0 -eq $? || _lt_function_replace_fail=:
16658
16659
16660 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16661 func_dirname_and_basename ()\
16662 {\
16663 \ case ${1} in\
16664 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16665 \ * ) func_dirname_result="${3}" ;;\
16666 \ esac\
16667 \ func_basename_result="${1##*/}"\
16668 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16669 && mv -f "$cfgfile.tmp" "$cfgfile" \
16670 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16671 test 0 -eq $? || _lt_function_replace_fail=:
16672
16673
16674 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16675 func_stripname ()\
16676 {\
16677 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16678 \ # positional parameters, so assign one to ordinary parameter first.\
16679 \ func_stripname_result=${3}\
16680 \ func_stripname_result=${func_stripname_result#"${1}"}\
16681 \ func_stripname_result=${func_stripname_result%"${2}"}\
16682 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16683 && mv -f "$cfgfile.tmp" "$cfgfile" \
16684 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16685 test 0 -eq $? || _lt_function_replace_fail=:
16686
16687
16688 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16689 func_split_long_opt ()\
16690 {\
16691 \ func_split_long_opt_name=${1%%=*}\
16692 \ func_split_long_opt_arg=${1#*=}\
16693 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16694 && mv -f "$cfgfile.tmp" "$cfgfile" \
16695 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16696 test 0 -eq $? || _lt_function_replace_fail=:
16697
16698
16699 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16700 func_split_short_opt ()\
16701 {\
16702 \ func_split_short_opt_arg=${1#??}\
16703 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16704 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16705 && mv -f "$cfgfile.tmp" "$cfgfile" \
16706 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16707 test 0 -eq $? || _lt_function_replace_fail=:
16708
16709
16710 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16711 func_lo2o ()\
16712 {\
16713 \ case ${1} in\
16714 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16715 \ *) func_lo2o_result=${1} ;;\
16716 \ esac\
16717 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16718 && mv -f "$cfgfile.tmp" "$cfgfile" \
16719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16720 test 0 -eq $? || _lt_function_replace_fail=:
16721
16722
16723 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16724 func_xform ()\
16725 {\
16726 func_xform_result=${1%.*}.lo\
16727 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16728 && mv -f "$cfgfile.tmp" "$cfgfile" \
16729 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16730 test 0 -eq $? || _lt_function_replace_fail=:
16731
16732
16733 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16734 func_arith ()\
16735 {\
16736 func_arith_result=$(( $* ))\
16737 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16738 && mv -f "$cfgfile.tmp" "$cfgfile" \
16739 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16740 test 0 -eq $? || _lt_function_replace_fail=:
16741
16742
16743 sed -e '/^func_len ()$/,/^} # func_len /c\
16744 func_len ()\
16745 {\
16746 func_len_result=${#1}\
16747 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16748 && mv -f "$cfgfile.tmp" "$cfgfile" \
16749 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16750 test 0 -eq $? || _lt_function_replace_fail=:
16751
16752 fi
16753
16754 if test x"$lt_shell_append" = xyes; then
16755 sed -e '/^func_append ()$/,/^} # func_append /c\
16756 func_append ()\
16757 {\
16758 eval "${1}+=\\${2}"\
16759 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16760 && mv -f "$cfgfile.tmp" "$cfgfile" \
16761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16762 test 0 -eq $? || _lt_function_replace_fail=:
16763
16764
16765 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16766 func_append_quoted ()\
16767 {\
16768 \ func_quote_for_eval "${2}"\
16769 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16770 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16771 && mv -f "$cfgfile.tmp" "$cfgfile" \
16772 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16773 test 0 -eq $? || _lt_function_replace_fail=:
16774
16775
16776 # Save a `func_append' function call where possible by direct use of '+='
16777 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16778 && mv -f "$cfgfile.tmp" "$cfgfile" \
16779 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16780 test 0 -eq $? || _lt_function_replace_fail=:
16781 else
16782 # Save a `func_append' function call even when '+=' is not available
16783 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $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 fi
16788
16789 if test x"$_lt_function_replace_fail" = x":"; then
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16791 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16792 fi
16793
16794
16795 mv -f "$cfgfile" "$ofile" ||
16796 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16797 chmod +x "$ofile"
16798
16799 ;;
16800
16801 esac
16802 done # for ac_tag
16803
16804
16805 as_fn_exit 0
16806 _ACEOF
16807 ac_clean_files=$ac_clean_files_save
16808
16809 test $ac_write_fail = 0 ||
16810 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16811
16812
16813 # configure is writing to config.log, and then calls config.status.
16814 # config.status does its own redirection, appending to config.log.
16815 # Unfortunately, on DOS this fails, as config.log is still kept open
16816 # by configure, so config.status won't be able to write to it; its
16817 # output is simply discarded. So we exec the FD to /dev/null,
16818 # effectively closing config.log, so it can be properly (re)opened and
16819 # appended to by config.status. When coming back to configure, we
16820 # need to make the FD available again.
16821 if test "$no_create" != yes; then
16822 ac_cs_success=:
16823 ac_config_status_args=
16824 test "$silent" = yes &&
16825 ac_config_status_args="$ac_config_status_args --quiet"
16826 exec 5>/dev/null
16827 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16828 exec 5>>config.log
16829 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16830 # would make configure fail if this is the last instruction.
16831 $ac_cs_success || as_fn_exit 1
16832 fi
16833 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16835 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16836 fi
16837
16838