configure revision 1.19.2.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for file 5.37.
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.37'
594 PACKAGE_STRING='file 5.37'
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 MAINT
699 MAINTAINER_MODE_FALSE
700 MAINTAINER_MODE_TRUE
701 AM_BACKSLASH
702 AM_DEFAULT_VERBOSITY
703 AM_DEFAULT_V
704 AM_V
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
710 AWK
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL'
766 ac_subst_files=''
767 ac_user_opts='
768 enable_option_checking
769 enable_silent_rules
770 enable_maintainer_mode
771 enable_elf
772 enable_elf_core
773 enable_zlib
774 enable_libseccomp
775 enable_fsect_man5
776 enable_dependency_tracking
777 enable_static
778 with_pic
779 enable_shared
780 enable_fast_install
781 with_gnu_ld
782 with_sysroot
783 enable_libtool_lock
784 enable_largefile
785 enable_warnings
786 '
787 ac_precious_vars='build_alias
788 host_alias
789 target_alias
790 CC
791 CFLAGS
792 LDFLAGS
793 LIBS
794 CPPFLAGS
795 CPP'
796
797
798 # Initialize some variables set by options.
799 ac_init_help=
800 ac_init_version=false
801 ac_unrecognized_opts=
802 ac_unrecognized_sep=
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
805 cache_file=/dev/null
806 exec_prefix=NONE
807 no_create=
808 no_recursion=
809 prefix=NONE
810 program_prefix=NONE
811 program_suffix=NONE
812 program_transform_name=s,x,x,
813 silent=
814 site=
815 srcdir=
816 verbose=
817 x_includes=NONE
818 x_libraries=NONE
819
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
838 htmldir='${docdir}'
839 dvidir='${docdir}'
840 pdfdir='${docdir}'
841 psdir='${docdir}'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
845
846 ac_prev=
847 ac_dashdash=
848 for ac_option
849 do
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
853 ac_prev=
854 continue
855 fi
856
857 case $ac_option in
858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 *=) ac_optarg= ;;
860 *) ac_optarg=yes ;;
861 esac
862
863 # Accept the important Cygnus configure options, so we can diagnose typos.
864
865 case $ac_dashdash$ac_option in
866 --)
867 ac_dashdash=yes ;;
868
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 bindir=$ac_optarg ;;
873
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
878
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
885
886 --config-cache | -C)
887 cache_file=config.cache ;;
888
889 -datadir | --datadir | --datadi | --datad)
890 ac_prev=datadir ;;
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
893
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
900
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=no ;;
916
917 -docdir | --docdir | --docdi | --doc | --do)
918 ac_prev=docdir ;;
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 docdir=$ac_optarg ;;
921
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923 ac_prev=dvidir ;;
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 dvidir=$ac_optarg ;;
926
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=\$ac_optarg ;;
942
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
951
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
954 with_gas=yes ;;
955
956 -help | --help | --hel | --he | -h)
957 ac_init_help=long ;;
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
962
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
967
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 ac_prev=htmldir ;;
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 | --ht=*)
972 htmldir=$ac_optarg ;;
973
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
980
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 ac_prev=infodir ;;
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
985
986 -libdir | --libdir | --libdi | --libd)
987 ac_prev=libdir ;;
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 libdir=$ac_optarg ;;
990
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
997
998 -localedir | --localedir | --localedi | --localed | --locale)
999 ac_prev=localedir ;;
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1002
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1009
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 ac_prev=mandir ;;
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1014
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1017 with_fp=no ;;
1018
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1021 no_create=yes ;;
1022
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 no_recursion=yes ;;
1026
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1035
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 ac_prev=prefix ;;
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1040
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1047
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1054
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1071
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 ac_prev=pdfdir ;;
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1076
1077 -psdir | --psdir | --psdi | --psd | --ps)
1078 ac_prev=psdir ;;
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 psdir=$ac_optarg ;;
1081
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 silent=yes ;;
1085
1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087 ac_prev=sbindir ;;
1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089 | --sbi=* | --sb=*)
1090 sbindir=$ac_optarg ;;
1091
1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094 | --sharedst | --shareds | --shared | --share | --shar \
1095 | --sha | --sh)
1096 ac_prev=sharedstatedir ;;
1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100 | --sha=* | --sh=*)
1101 sharedstatedir=$ac_optarg ;;
1102
1103 -site | --site | --sit)
1104 ac_prev=site ;;
1105 -site=* | --site=* | --sit=*)
1106 site=$ac_optarg ;;
1107
1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109 ac_prev=srcdir ;;
1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111 srcdir=$ac_optarg ;;
1112
1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114 | --syscon | --sysco | --sysc | --sys | --sy)
1115 ac_prev=sysconfdir ;;
1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118 sysconfdir=$ac_optarg ;;
1119
1120 -target | --target | --targe | --targ | --tar | --ta | --t)
1121 ac_prev=target_alias ;;
1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123 target_alias=$ac_optarg ;;
1124
1125 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 verbose=yes ;;
1127
1128 -version | --version | --versio | --versi | --vers | -V)
1129 ac_init_version=: ;;
1130
1131 -with-* | --with-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=\$ac_optarg ;;
1146
1147 -without-* | --without-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=no ;;
1162
1163 --x)
1164 # Obsolete; use --with-x.
1165 with_x=yes ;;
1166
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1173
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1180
1181 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182 Try \`$0 --help' for more information"
1183 ;;
1184
1185 *=*)
1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187 # Reject names that are not valid shell variable names.
1188 case $ac_envvar in #(
1189 '' | [0-9]* | *[!_$as_cr_alnum]* )
1190 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191 esac
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1194
1195 *)
1196 # FIXME: should be removed in autoconf 3.0.
1197 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201 ;;
1202
1203 esac
1204 done
1205
1206 if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 as_fn_error $? "missing argument to $ac_option"
1209 fi
1210
1211 if test -n "$ac_unrecognized_opts"; then
1212 case $enable_option_checking in
1213 no) ;;
1214 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 esac
1217 fi
1218
1219 # Check all directory arguments for consistency.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1224 do
1225 eval ac_val=\$$ac_var
1226 # Remove trailing slashes.
1227 case $ac_val in
1228 */ )
1229 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230 eval $ac_var=\$ac_val;;
1231 esac
1232 # Be sure to have absolute directory names.
1233 case $ac_val in
1234 [\\/$]* | ?:[\\/]* ) continue;;
1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236 esac
1237 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238 done
1239
1240 # There might be people who depend on the old broken behavior: `$host'
1241 # used to hold the argument of --host etc.
1242 # FIXME: To remove some day.
1243 build=$build_alias
1244 host=$host_alias
1245 target=$target_alias
1246
1247 # FIXME: To remove some day.
1248 if test "x$host_alias" != x; then
1249 if test "x$build_alias" = x; then
1250 cross_compiling=maybe
1251 elif test "x$build_alias" != "x$host_alias"; then
1252 cross_compiling=yes
1253 fi
1254 fi
1255
1256 ac_tool_prefix=
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259 test "$silent" = yes && exec 6>/dev/null
1260
1261
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265 as_fn_error $? "working directory cannot be determined"
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267 as_fn_error $? "pwd does not report name of working directory"
1268
1269
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$as_myself" ||
1275 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$as_myself" : 'X\(//\)[^/]' \| \
1277 X"$as_myself" : 'X\(//\)$' \| \
1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279 $as_echo X"$as_myself" |
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)[^/].*/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\).*/{
1293 s//\1/
1294 q
1295 }
1296 s/.*/./; q'`
1297 srcdir=$ac_confdir
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 srcdir=..
1300 fi
1301 else
1302 ac_srcdir_defaulted=no
1303 fi
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307 fi
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 ac_abs_confdir=`(
1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311 pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 srcdir=.
1315 fi
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1328
1329 #
1330 # Report the --help message.
1331 #
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1335 cat <<_ACEOF
1336 \`configure' configures file 5.37 to adapt to many kinds of systems.
1337
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1342
1343 Defaults for the options are specified in brackets.
1344
1345 Configuration:
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking ...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 [PREFIX]
1361
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1366
1367 For better control, use the options below.
1368
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/file]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1389 _ACEOF
1390
1391 cat <<\_ACEOF
1392
1393 Program names:
1394 --program-prefix=PREFIX prepend PREFIX to installed program names
1395 --program-suffix=SUFFIX append SUFFIX to installed program names
1396 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1397
1398 System types:
1399 --build=BUILD configure for building on BUILD [guessed]
1400 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1401 _ACEOF
1402 fi
1403
1404 if test -n "$ac_init_help"; then
1405 case $ac_init_help in
1406 short | recursive ) echo "Configuration of file 5.37:";;
1407 esac
1408 cat <<\_ACEOF
1409
1410 Optional Features:
1411 --disable-option-checking ignore unrecognized --enable/--with options
1412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1414 --enable-silent-rules less verbose build output (undo: "make V=1")
1415 --disable-silent-rules verbose build output (undo: "make V=0")
1416 --enable-maintainer-mode
1417 enable make rules and dependencies not useful (and
1418 sometimes confusing) to the casual installer
1419 --disable-elf disable builtin ELF support
1420 --disable-elf-core disable ELF core file support
1421 --disable-zlib disable zlib compression support [default=auto]
1422 --disable-libseccomp disable libseccomp sandboxing [default=auto]
1423 --enable-fsect-man5 enable file formats in man section 5
1424 --enable-dependency-tracking
1425 do not reject slow dependency extractors
1426 --disable-dependency-tracking
1427 speeds up one-time build
1428 --enable-static[=PKGS] build static libraries [default=no]
1429 --enable-shared[=PKGS] build shared libraries [default=yes]
1430 --enable-fast-install[=PKGS]
1431 optimize for fast installation [default=yes]
1432 --disable-libtool-lock avoid locking (might break parallel builds)
1433 --disable-largefile omit support for large files
1434 --disable-warnings disable compiler warnings
1435
1436 Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1440 both]
1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1442 --with-sysroot=DIR Search for dependent libraries within DIR
1443 (or the compiler's sysroot if not specified).
1444
1445 Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 LIBS libraries to pass to the linker, e.g. -l<library>
1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1453 CPP C preprocessor
1454
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1457
1458 Report bugs to <christos (at] astron.com>.
1459 _ACEOF
1460 ac_status=$?
1461 fi
1462
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468 continue
1469 ac_builddir=.
1470
1471 case "$ac_dir" in
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *)
1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 esac ;;
1481 esac
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1486
1487 case $srcdir in
1488 .) # We are building in place.
1489 ac_srcdir=.
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
1493 ac_srcdir=$srcdir$ac_dir_suffix;
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1496 *) # Relative name.
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 esac
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1511 else
1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 fi || ac_status=$?
1514 cd "$ac_pwd" || { ac_status=$?; break; }
1515 done
1516 fi
1517
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1520 cat <<\_ACEOF
1521 file configure 5.37
1522 generated by GNU Autoconf 2.69
1523
1524 Copyright (C) 2012 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1527 _ACEOF
1528 exit
1529 fi
1530
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1534
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile ()
1539 {
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext
1542 if { { ac_try="$ac_compile"
1543 case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546 esac
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1555 fi
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext; then :
1561 ac_retval=0
1562 else
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1565
1566 ac_retval=1
1567 fi
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569 as_fn_set_status $ac_retval
1570
1571 } # ac_fn_c_try_compile
1572
1573 # ac_fn_c_try_cpp LINENO
1574 # ----------------------
1575 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_cpp ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if { { ac_try="$ac_cpp conftest.$ac_ext"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } > conftest.i && {
1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 }; then :
1598 ac_retval=0
1599 else
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=1
1604 fi
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_cpp
1609
1610 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1611 # -------------------------------------------------------
1612 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1613 # the include files in INCLUDES and setting the cache variable VAR
1614 # accordingly.
1615 ac_fn_c_check_header_mongrel ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if eval \${$3+:} false; then :
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if eval \${$3+:} false; then :
1622 $as_echo_n "(cached) " >&6
1623 fi
1624 eval ac_res=\$$3
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1626 $as_echo "$ac_res" >&6; }
1627 else
1628 # Is the header compilable?
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1630 $as_echo_n "checking $2 usability... " >&6; }
1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632 /* end confdefs.h. */
1633 $4
1634 #include <$2>
1635 _ACEOF
1636 if ac_fn_c_try_compile "$LINENO"; then :
1637 ac_header_compiler=yes
1638 else
1639 ac_header_compiler=no
1640 fi
1641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1643 $as_echo "$ac_header_compiler" >&6; }
1644
1645 # Is the header present?
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1647 $as_echo_n "checking $2 presence... " >&6; }
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_cpp "$LINENO"; then :
1653 ac_header_preproc=yes
1654 else
1655 ac_header_preproc=no
1656 fi
1657 rm -f conftest.err conftest.i conftest.$ac_ext
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1659 $as_echo "$ac_header_preproc" >&6; }
1660
1661 # So? What about this header?
1662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1663 yes:no: )
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1665 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668 ;;
1669 no:yes:* )
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1671 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1673 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1675 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1677 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1679 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1680 ( $as_echo "## ---------------------------------- ##
1681 ## Report this to christos (at] astron.com ##
1682 ## ---------------------------------- ##"
1683 ) | sed "s/^/$as_me: WARNING: /" >&2
1684 ;;
1685 esac
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689 $as_echo_n "(cached) " >&6
1690 else
1691 eval "$3=\$ac_header_compiler"
1692 fi
1693 eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696 fi
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698
1699 } # ac_fn_c_check_header_mongrel
1700
1701 # ac_fn_c_try_run LINENO
1702 # ----------------------
1703 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704 # that executables *can* be run.
1705 ac_fn_c_try_run ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: program exited with status $ac_status" >&5
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=$ac_status
1736 fi
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1740
1741 } # ac_fn_c_try_run
1742
1743 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1744 # -------------------------------------------------------
1745 # Tests whether HEADER exists and can be compiled using the include files in
1746 # INCLUDES, setting the cache variable VAR accordingly.
1747 ac_fn_c_check_header_compile ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if eval \${$3+:} false; then :
1753 $as_echo_n "(cached) " >&6
1754 else
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 $4
1758 #include <$2>
1759 _ACEOF
1760 if ac_fn_c_try_compile "$LINENO"; then :
1761 eval "$3=yes"
1762 else
1763 eval "$3=no"
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766 fi
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772 } # ac_fn_c_check_header_compile
1773
1774 # ac_fn_c_try_link LINENO
1775 # -----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_link ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext conftest$ac_exeext
1781 if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest$ac_exeext && {
1800 test "$cross_compiling" = yes ||
1801 test -x conftest$ac_exeext
1802 }; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809 fi
1810 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1811 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1812 # interfere with the next link command; also delete a directory that is
1813 # left behind by Apple's compiler. We do this before executing the actions.
1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 as_fn_set_status $ac_retval
1817
1818 } # ac_fn_c_try_link
1819
1820 # ac_fn_c_check_func LINENO FUNC VAR
1821 # ----------------------------------
1822 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1823 ac_fn_c_check_func ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if eval \${$3+:} false; then :
1829 $as_echo_n "(cached) " >&6
1830 else
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1833 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1835 #define $2 innocuous_$2
1836
1837 /* System header to define __stub macros and hopefully few prototypes,
1838 which can conflict with char $2 (); below.
1839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1840 <limits.h> exists even on freestanding compilers. */
1841
1842 #ifdef __STDC__
1843 # include <limits.h>
1844 #else
1845 # include <assert.h>
1846 #endif
1847
1848 #undef $2
1849
1850 /* Override any GCC internal prototype to avoid an error.
1851 Use char because int might match the return type of a GCC
1852 builtin and then its argument prototype would still apply. */
1853 #ifdef __cplusplus
1854 extern "C"
1855 #endif
1856 char $2 ();
1857 /* The GNU C library defines this for functions which it implements
1858 to always fail with ENOSYS. Some functions are actually named
1859 something starting with __ and the normal name is an alias. */
1860 #if defined __stub_$2 || defined __stub___$2
1861 choke me
1862 #endif
1863
1864 int
1865 main ()
1866 {
1867 return $2 ();
1868 ;
1869 return 0;
1870 }
1871 _ACEOF
1872 if ac_fn_c_try_link "$LINENO"; then :
1873 eval "$3=yes"
1874 else
1875 eval "$3=no"
1876 fi
1877 rm -f core conftest.err conftest.$ac_objext \
1878 conftest$ac_exeext conftest.$ac_ext
1879 fi
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885 } # ac_fn_c_check_func
1886
1887 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1888 # -------------------------------------------
1889 # Tests whether TYPE exists after having included INCLUDES, setting cache
1890 # variable VAR accordingly.
1891 ac_fn_c_check_type ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1898 else
1899 eval "$3=no"
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 $4
1903 int
1904 main ()
1905 {
1906 if (sizeof ($2))
1907 return 0;
1908 ;
1909 return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 $4
1916 int
1917 main ()
1918 {
1919 if (sizeof (($2)))
1920 return 0;
1921 ;
1922 return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926
1927 else
1928 eval "$3=yes"
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 fi
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939 } # ac_fn_c_check_type
1940
1941 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1942 # ----------------------------------------------------
1943 # Tries to find if the field MEMBER exists in type AGGR, after including
1944 # INCLUDES, setting cache variable VAR accordingly.
1945 ac_fn_c_check_member ()
1946 {
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1949 $as_echo_n "checking for $2.$3... " >&6; }
1950 if eval \${$4+:} false; then :
1951 $as_echo_n "(cached) " >&6
1952 else
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 $5
1956 int
1957 main ()
1958 {
1959 static $2 ac_aggr;
1960 if (ac_aggr.$3)
1961 return 0;
1962 ;
1963 return 0;
1964 }
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967 eval "$4=yes"
1968 else
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1971 $5
1972 int
1973 main ()
1974 {
1975 static $2 ac_aggr;
1976 if (sizeof ac_aggr.$3)
1977 return 0;
1978 ;
1979 return 0;
1980 }
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983 eval "$4=yes"
1984 else
1985 eval "$4=no"
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 fi
1991 eval ac_res=\$$4
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996 } # ac_fn_c_check_member
1997
1998 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1999 # ---------------------------------------------
2000 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2001 # accordingly.
2002 ac_fn_c_check_decl ()
2003 {
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 as_decl_name=`echo $2|sed 's/ *(.*//'`
2006 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2008 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2009 if eval \${$3+:} false; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2014 $4
2015 int
2016 main ()
2017 {
2018 #ifndef $as_decl_name
2019 #ifdef __cplusplus
2020 (void) $as_decl_use;
2021 #else
2022 (void) $as_decl_name;
2023 #endif
2024 #endif
2025
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$3=yes"
2032 else
2033 eval "$3=no"
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 fi
2037 eval ac_res=\$$3
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042 } # ac_fn_c_check_decl
2043
2044 # ac_fn_c_find_uintX_t LINENO BITS VAR
2045 # ------------------------------------
2046 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2047 # accordingly.
2048 ac_fn_c_find_uintX_t ()
2049 {
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2052 $as_echo_n "checking for uint$2_t... " >&6; }
2053 if eval \${$3+:} false; then :
2054 $as_echo_n "(cached) " >&6
2055 else
2056 eval "$3=no"
2057 # Order is important - never check a type that is potentially smaller
2058 # than half of the expected target width.
2059 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2060 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 $ac_includes_default
2064 int
2065 main ()
2066 {
2067 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2068 test_array [0] = 0;
2069 return test_array [0];
2070
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 case $ac_type in #(
2077 uint$2_t) :
2078 eval "$3=yes" ;; #(
2079 *) :
2080 eval "$3=\$ac_type" ;;
2081 esac
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 if eval test \"x\$"$3"\" = x"no"; then :
2085
2086 else
2087 break
2088 fi
2089 done
2090 fi
2091 eval ac_res=\$$3
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093 $as_echo "$ac_res" >&6; }
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095
2096 } # ac_fn_c_find_uintX_t
2097
2098 # ac_fn_c_find_intX_t LINENO BITS VAR
2099 # -----------------------------------
2100 # Finds a signed integer type with width BITS, setting cache variable VAR
2101 # accordingly.
2102 ac_fn_c_find_intX_t ()
2103 {
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2106 $as_echo_n "checking for int$2_t... " >&6; }
2107 if eval \${$3+:} false; then :
2108 $as_echo_n "(cached) " >&6
2109 else
2110 eval "$3=no"
2111 # Order is important - never check a type that is potentially smaller
2112 # than half of the expected target width.
2113 for ac_type in int$2_t 'int' 'long int' \
2114 'long long int' 'short int' 'signed char'; do
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 $ac_includes_default
2118 enum { N = $2 / 2 - 1 };
2119 int
2120 main ()
2121 {
2122 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2123 test_array [0] = 0;
2124 return test_array [0];
2125
2126 ;
2127 return 0;
2128 }
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2133 $ac_includes_default
2134 enum { N = $2 / 2 - 1 };
2135 int
2136 main ()
2137 {
2138 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2139 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2140 test_array [0] = 0;
2141 return test_array [0];
2142
2143 ;
2144 return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148
2149 else
2150 case $ac_type in #(
2151 int$2_t) :
2152 eval "$3=yes" ;; #(
2153 *) :
2154 eval "$3=\$ac_type" ;;
2155 esac
2156 fi
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 if eval test \"x\$"$3"\" = x"no"; then :
2161
2162 else
2163 break
2164 fi
2165 done
2166 fi
2167 eval ac_res=\$$3
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171
2172 } # ac_fn_c_find_intX_t
2173 cat >config.log <<_ACEOF
2174 This file contains any messages produced by compilers while
2175 running configure, to aid debugging if configure makes a mistake.
2176
2177 It was created by file $as_me 5.37, which was
2178 generated by GNU Autoconf 2.69. Invocation command line was
2179
2180 $ $0 $@
2181
2182 _ACEOF
2183 exec 5>>config.log
2184 {
2185 cat <<_ASUNAME
2186 ## --------- ##
2187 ## Platform. ##
2188 ## --------- ##
2189
2190 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2191 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2192 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2193 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2194 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2195
2196 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2197 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2198
2199 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2200 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2201 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2202 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2203 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2204 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2205 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2206
2207 _ASUNAME
2208
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2211 do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 $as_echo "PATH: $as_dir"
2215 done
2216 IFS=$as_save_IFS
2217
2218 } >&5
2219
2220 cat >&5 <<_ACEOF
2221
2222
2223 ## ----------- ##
2224 ## Core tests. ##
2225 ## ----------- ##
2226
2227 _ACEOF
2228
2229
2230 # Keep a trace of the command line.
2231 # Strip out --no-create and --no-recursion so they do not pile up.
2232 # Strip out --silent because we don't want to record it for future runs.
2233 # Also quote any args containing shell meta-characters.
2234 # Make two passes to allow for proper duplicate-argument suppression.
2235 ac_configure_args=
2236 ac_configure_args0=
2237 ac_configure_args1=
2238 ac_must_keep_next=false
2239 for ac_pass in 1 2
2240 do
2241 for ac_arg
2242 do
2243 case $ac_arg in
2244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2246 | -silent | --silent | --silen | --sile | --sil)
2247 continue ;;
2248 *\'*)
2249 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2250 esac
2251 case $ac_pass in
2252 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2253 2)
2254 as_fn_append ac_configure_args1 " '$ac_arg'"
2255 if test $ac_must_keep_next = true; then
2256 ac_must_keep_next=false # Got value, back to normal.
2257 else
2258 case $ac_arg in
2259 *=* | --config-cache | -C | -disable-* | --disable-* \
2260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2262 | -with-* | --with-* | -without-* | --without-* | --x)
2263 case "$ac_configure_args0 " in
2264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2265 esac
2266 ;;
2267 -* ) ac_must_keep_next=true ;;
2268 esac
2269 fi
2270 as_fn_append ac_configure_args " '$ac_arg'"
2271 ;;
2272 esac
2273 done
2274 done
2275 { ac_configure_args0=; unset ac_configure_args0;}
2276 { ac_configure_args1=; unset ac_configure_args1;}
2277
2278 # When interrupted or exit'd, cleanup temporary files, and complete
2279 # config.log. We remove comments because anyway the quotes in there
2280 # would cause problems or look ugly.
2281 # WARNING: Use '\'' to represent an apostrophe within the trap.
2282 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2283 trap 'exit_status=$?
2284 # Save into config.log some information that might help in debugging.
2285 {
2286 echo
2287
2288 $as_echo "## ---------------- ##
2289 ## Cache variables. ##
2290 ## ---------------- ##"
2291 echo
2292 # The following way of writing the cache mishandles newlines in values,
2293 (
2294 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2295 eval ac_val=\$$ac_var
2296 case $ac_val in #(
2297 *${as_nl}*)
2298 case $ac_var in #(
2299 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2300 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2301 esac
2302 case $ac_var in #(
2303 _ | IFS | as_nl) ;; #(
2304 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2305 *) { eval $ac_var=; unset $ac_var;} ;;
2306 esac ;;
2307 esac
2308 done
2309 (set) 2>&1 |
2310 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2311 *${as_nl}ac_space=\ *)
2312 sed -n \
2313 "s/'\''/'\''\\\\'\'''\''/g;
2314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2315 ;; #(
2316 *)
2317 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2318 ;;
2319 esac |
2320 sort
2321 )
2322 echo
2323
2324 $as_echo "## ----------------- ##
2325 ## Output variables. ##
2326 ## ----------------- ##"
2327 echo
2328 for ac_var in $ac_subst_vars
2329 do
2330 eval ac_val=\$$ac_var
2331 case $ac_val in
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 esac
2334 $as_echo "$ac_var='\''$ac_val'\''"
2335 done | sort
2336 echo
2337
2338 if test -n "$ac_subst_files"; then
2339 $as_echo "## ------------------- ##
2340 ## File substitutions. ##
2341 ## ------------------- ##"
2342 echo
2343 for ac_var in $ac_subst_files
2344 do
2345 eval ac_val=\$$ac_var
2346 case $ac_val in
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348 esac
2349 $as_echo "$ac_var='\''$ac_val'\''"
2350 done | sort
2351 echo
2352 fi
2353
2354 if test -s confdefs.h; then
2355 $as_echo "## ----------- ##
2356 ## confdefs.h. ##
2357 ## ----------- ##"
2358 echo
2359 cat confdefs.h
2360 echo
2361 fi
2362 test "$ac_signal" != 0 &&
2363 $as_echo "$as_me: caught signal $ac_signal"
2364 $as_echo "$as_me: exit $exit_status"
2365 } >&5
2366 rm -f core *.core core.conftest.* &&
2367 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2368 exit $exit_status
2369 ' 0
2370 for ac_signal in 1 2 13 15; do
2371 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2372 done
2373 ac_signal=0
2374
2375 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2376 rm -f -r conftest* confdefs.h
2377
2378 $as_echo "/* confdefs.h */" > confdefs.h
2379
2380 # Predefined preprocessor variables.
2381
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_NAME "$PACKAGE_NAME"
2384 _ACEOF
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2388 _ACEOF
2389
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2392 _ACEOF
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_STRING "$PACKAGE_STRING"
2396 _ACEOF
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2400 _ACEOF
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_URL "$PACKAGE_URL"
2404 _ACEOF
2405
2406
2407 # Let the site file select an alternate cache file if it wants to.
2408 # Prefer an explicitly selected file to automatically selected ones.
2409 ac_site_file1=NONE
2410 ac_site_file2=NONE
2411 if test -n "$CONFIG_SITE"; then
2412 # We do not want a PATH search for config.site.
2413 case $CONFIG_SITE in #((
2414 -*) ac_site_file1=./$CONFIG_SITE;;
2415 */*) ac_site_file1=$CONFIG_SITE;;
2416 *) ac_site_file1=./$CONFIG_SITE;;
2417 esac
2418 elif test "x$prefix" != xNONE; then
2419 ac_site_file1=$prefix/share/config.site
2420 ac_site_file2=$prefix/etc/config.site
2421 else
2422 ac_site_file1=$ac_default_prefix/share/config.site
2423 ac_site_file2=$ac_default_prefix/etc/config.site
2424 fi
2425 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2426 do
2427 test "x$ac_site_file" = xNONE && continue
2428 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2430 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2431 sed 's/^/| /' "$ac_site_file" >&5
2432 . "$ac_site_file" \
2433 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435 as_fn_error $? "failed to load site script $ac_site_file
2436 See \`config.log' for more details" "$LINENO" 5; }
2437 fi
2438 done
2439
2440 if test -r "$cache_file"; then
2441 # Some versions of bash will fail to source /dev/null (special files
2442 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2443 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2445 $as_echo "$as_me: loading cache $cache_file" >&6;}
2446 case $cache_file in
2447 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2448 *) . "./$cache_file";;
2449 esac
2450 fi
2451 else
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2453 $as_echo "$as_me: creating cache $cache_file" >&6;}
2454 >$cache_file
2455 fi
2456
2457 as_fn_append ac_header_list " stdlib.h"
2458 as_fn_append ac_header_list " unistd.h"
2459 as_fn_append ac_header_list " sys/param.h"
2460 # Check that the precious variables saved in the cache have kept the same
2461 # value.
2462 ac_cache_corrupted=false
2463 for ac_var in $ac_precious_vars; do
2464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2465 eval ac_new_set=\$ac_env_${ac_var}_set
2466 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2467 eval ac_new_val=\$ac_env_${ac_var}_value
2468 case $ac_old_set,$ac_new_set in
2469 set,)
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2471 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2472 ac_cache_corrupted=: ;;
2473 ,set)
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2475 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2476 ac_cache_corrupted=: ;;
2477 ,);;
2478 *)
2479 if test "x$ac_old_val" != "x$ac_new_val"; then
2480 # differences in whitespace do not lead to failure.
2481 ac_old_val_w=`echo x $ac_old_val`
2482 ac_new_val_w=`echo x $ac_new_val`
2483 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2485 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2486 ac_cache_corrupted=:
2487 else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2489 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2490 eval $ac_var=\$ac_old_val
2491 fi
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2493 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2495 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2496 fi;;
2497 esac
2498 # Pass precious variables to config.status.
2499 if test "$ac_new_set" = set; then
2500 case $ac_new_val in
2501 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2502 *) ac_arg=$ac_var=$ac_new_val ;;
2503 esac
2504 case " $ac_configure_args " in
2505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2506 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2507 esac
2508 fi
2509 done
2510 if $ac_cache_corrupted; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2514 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2515 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2516 fi
2517 ## -------------------- ##
2518 ## Main body of script. ##
2519 ## -------------------- ##
2520
2521 ac_ext=c
2522 ac_cpp='$CPP $CPPFLAGS'
2523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2526
2527
2528 am__api_version='1.15'
2529
2530 ac_aux_dir=
2531 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2532 if test -f "$ac_dir/install-sh"; then
2533 ac_aux_dir=$ac_dir
2534 ac_install_sh="$ac_aux_dir/install-sh -c"
2535 break
2536 elif test -f "$ac_dir/install.sh"; then
2537 ac_aux_dir=$ac_dir
2538 ac_install_sh="$ac_aux_dir/install.sh -c"
2539 break
2540 elif test -f "$ac_dir/shtool"; then
2541 ac_aux_dir=$ac_dir
2542 ac_install_sh="$ac_aux_dir/shtool install -c"
2543 break
2544 fi
2545 done
2546 if test -z "$ac_aux_dir"; then
2547 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2548 fi
2549
2550 # These three variables are undocumented and unsupported,
2551 # and are intended to be withdrawn in a future Autoconf release.
2552 # They can cause serious problems if a builder's source tree is in a directory
2553 # whose full name contains unusual characters.
2554 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2555 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2556 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2557
2558
2559 # Find a good install program. We prefer a C program (faster),
2560 # so one script is as good as another. But avoid the broken or
2561 # incompatible versions:
2562 # SysV /etc/install, /usr/sbin/install
2563 # SunOS /usr/etc/install
2564 # IRIX /sbin/install
2565 # AIX /bin/install
2566 # AmigaOS /C/install, which installs bootblocks on floppy discs
2567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2570 # OS/2's system install, which has a completely different semantic
2571 # ./install, which can be erroneously created by make from ./install.sh.
2572 # Reject install programs that cannot install multiple files.
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2574 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2575 if test -z "$INSTALL"; then
2576 if ${ac_cv_path_install+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 # Account for people who put trailing slashes in PATH elements.
2585 case $as_dir/ in #((
2586 ./ | .// | /[cC]/* | \
2587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2588 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2589 /usr/ucb/* ) ;;
2590 *)
2591 # OSF1 and SCO ODT 3.0 have their own names for install.
2592 # Don't use installbsd from OSF since it installs stuff as root
2593 # by default.
2594 for ac_prog in ginstall scoinst install; do
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2597 if test $ac_prog = install &&
2598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599 # AIX install. It has an incompatible calling convention.
2600 :
2601 elif test $ac_prog = install &&
2602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # program-specific install script used by HP pwplus--don't use.
2604 :
2605 else
2606 rm -rf conftest.one conftest.two conftest.dir
2607 echo one > conftest.one
2608 echo two > conftest.two
2609 mkdir conftest.dir
2610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2611 test -s conftest.one && test -s conftest.two &&
2612 test -s conftest.dir/conftest.one &&
2613 test -s conftest.dir/conftest.two
2614 then
2615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2616 break 3
2617 fi
2618 fi
2619 fi
2620 done
2621 done
2622 ;;
2623 esac
2624
2625 done
2626 IFS=$as_save_IFS
2627
2628 rm -rf conftest.one conftest.two conftest.dir
2629
2630 fi
2631 if test "${ac_cv_path_install+set}" = set; then
2632 INSTALL=$ac_cv_path_install
2633 else
2634 # As a last resort, use the slow shell script. Don't cache a
2635 # value for INSTALL within a source directory, because that will
2636 # break other packages using the cache if that directory is
2637 # removed, or if the value is a relative name.
2638 INSTALL=$ac_install_sh
2639 fi
2640 fi
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2642 $as_echo "$INSTALL" >&6; }
2643
2644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2645 # It thinks the first close brace ends the variable substitution.
2646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2647
2648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2649
2650 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2651
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2653 $as_echo_n "checking whether build environment is sane... " >&6; }
2654 # Reject unsafe characters in $srcdir or the absolute working directory
2655 # name. Accept space and tab only in the latter.
2656 am_lf='
2657 '
2658 case `pwd` in
2659 *[\\\"\#\$\&\'\`$am_lf]*)
2660 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2661 esac
2662 case $srcdir in
2663 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2664 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2665 esac
2666
2667 # Do 'set' in a subshell so we don't clobber the current shell's
2668 # arguments. Must try -L first in case configure is actually a
2669 # symlink; some systems play weird games with the mod time of symlinks
2670 # (eg FreeBSD returns the mod time of the symlink's containing
2671 # directory).
2672 if (
2673 am_has_slept=no
2674 for am_try in 1 2; do
2675 echo "timestamp, slept: $am_has_slept" > conftest.file
2676 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2677 if test "$*" = "X"; then
2678 # -L didn't work.
2679 set X `ls -t "$srcdir/configure" conftest.file`
2680 fi
2681 if test "$*" != "X $srcdir/configure conftest.file" \
2682 && test "$*" != "X conftest.file $srcdir/configure"; then
2683
2684 # If neither matched, then we have a broken ls. This can happen
2685 # if, for instance, CONFIG_SHELL is bash and it inherits a
2686 # broken ls alias from the environment. This has actually
2687 # happened. Such a system could not be considered "sane".
2688 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2689 alias in your environment" "$LINENO" 5
2690 fi
2691 if test "$2" = conftest.file || test $am_try -eq 2; then
2692 break
2693 fi
2694 # Just in case.
2695 sleep 1
2696 am_has_slept=yes
2697 done
2698 test "$2" = conftest.file
2699 )
2700 then
2701 # Ok.
2702 :
2703 else
2704 as_fn_error $? "newly created file is older than distributed files!
2705 Check your system clock" "$LINENO" 5
2706 fi
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708 $as_echo "yes" >&6; }
2709 # If we didn't sleep, we still need to ensure time stamps of config.status and
2710 # generated files are strictly newer.
2711 am_sleep_pid=
2712 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2713 ( sleep 1 ) &
2714 am_sleep_pid=$!
2715 fi
2716
2717 rm -f conftest.file
2718
2719 test "$program_prefix" != NONE &&
2720 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2721 # Use a double $ so make ignores it.
2722 test "$program_suffix" != NONE &&
2723 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2724 # Double any \ or $.
2725 # By default was `s,x,x', remove it if useless.
2726 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2727 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2728
2729 # Expand $ac_aux_dir to an absolute path.
2730 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2731
2732 if test x"${MISSING+set}" != xset; then
2733 case $am_aux_dir in
2734 *\ * | *\ *)
2735 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2736 *)
2737 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2738 esac
2739 fi
2740 # Use eval to expand $SHELL
2741 if eval "$MISSING --is-lightweight"; then
2742 am_missing_run="$MISSING "
2743 else
2744 am_missing_run=
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2746 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2747 fi
2748
2749 if test x"${install_sh+set}" != xset; then
2750 case $am_aux_dir in
2751 *\ * | *\ *)
2752 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2753 *)
2754 install_sh="\${SHELL} $am_aux_dir/install-sh"
2755 esac
2756 fi
2757
2758 # Installed binaries are usually stripped using 'strip' when the user
2759 # run "make install-strip". However 'strip' might not be the right
2760 # tool to use in cross-compilation environments, therefore Automake
2761 # will honor the 'STRIP' environment variable to overrule this program.
2762 if test "$cross_compiling" != no; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}strip; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_STRIP+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test -n "$STRIP"; then
2772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785 done
2786 done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 STRIP=$ac_cv_prog_STRIP
2792 if test -n "$STRIP"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2794 $as_echo "$STRIP" >&6; }
2795 else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800
2801 fi
2802 if test -z "$ac_cv_prog_STRIP"; then
2803 ac_ct_STRIP=$STRIP
2804 # Extract the first word of "strip", so it can be a program name with args.
2805 set dummy strip; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if test -n "$ac_ct_STRIP"; then
2812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_ac_ct_STRIP="strip"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825 done
2826 done
2827 IFS=$as_save_IFS
2828
2829 fi
2830 fi
2831 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2832 if test -n "$ac_ct_STRIP"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2834 $as_echo "$ac_ct_STRIP" >&6; }
2835 else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 fi
2839
2840 if test "x$ac_ct_STRIP" = x; then
2841 STRIP=":"
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844 yes:)
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2848 esac
2849 STRIP=$ac_ct_STRIP
2850 fi
2851 else
2852 STRIP="$ac_cv_prog_STRIP"
2853 fi
2854
2855 fi
2856 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2857
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2859 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2860 if test -z "$MKDIR_P"; then
2861 if ${ac_cv_path_mkdir+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2866 do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_prog in mkdir gmkdir; do
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2872 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2873 'mkdir (GNU coreutils) '* | \
2874 'mkdir (coreutils) '* | \
2875 'mkdir (fileutils) '4.1*)
2876 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2877 break 3;;
2878 esac
2879 done
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885
2886 test -d ./--version && rmdir ./--version
2887 if test "${ac_cv_path_mkdir+set}" = set; then
2888 MKDIR_P="$ac_cv_path_mkdir -p"
2889 else
2890 # As a last resort, use the slow shell script. Don't cache a
2891 # value for MKDIR_P within a source directory, because that will
2892 # break other packages using the cache if that directory is
2893 # removed, or if the value is a relative name.
2894 MKDIR_P="$ac_install_sh -d"
2895 fi
2896 fi
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2898 $as_echo "$MKDIR_P" >&6; }
2899
2900 for ac_prog in gawk mawk nawk awk
2901 do
2902 # Extract the first word of "$ac_prog", so it can be a program name with args.
2903 set dummy $ac_prog; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_AWK+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$AWK"; then
2910 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919 ac_cv_prog_AWK="$ac_prog"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923 done
2924 done
2925 IFS=$as_save_IFS
2926
2927 fi
2928 fi
2929 AWK=$ac_cv_prog_AWK
2930 if test -n "$AWK"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2932 $as_echo "$AWK" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 fi
2937
2938
2939 test -n "$AWK" && break
2940 done
2941
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2944 set x ${MAKE-make}
2945 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2946 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 cat >conftest.make <<\_ACEOF
2950 SHELL = /bin/sh
2951 all:
2952 @echo '@@@%%%=$(MAKE)=@@@%%%'
2953 _ACEOF
2954 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2955 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2956 *@@@%%%=?*=@@@%%%*)
2957 eval ac_cv_prog_make_${ac_make}_set=yes;;
2958 *)
2959 eval ac_cv_prog_make_${ac_make}_set=no;;
2960 esac
2961 rm -f conftest.make
2962 fi
2963 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965 $as_echo "yes" >&6; }
2966 SET_MAKE=
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2970 SET_MAKE="MAKE=${MAKE-make}"
2971 fi
2972
2973 rm -rf .tst 2>/dev/null
2974 mkdir .tst 2>/dev/null
2975 if test -d .tst; then
2976 am__leading_dot=.
2977 else
2978 am__leading_dot=_
2979 fi
2980 rmdir .tst 2>/dev/null
2981
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2983 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2984 # Check whether --enable-maintainer-mode was given.
2985 if test "${enable_maintainer_mode+set}" = set; then :
2986 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2987 else
2988 USE_MAINTAINER_MODE=no
2989 fi
2990
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2992 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2993 if test $USE_MAINTAINER_MODE = yes; then
2994 MAINTAINER_MODE_TRUE=
2995 MAINTAINER_MODE_FALSE='#'
2996 else
2997 MAINTAINER_MODE_TRUE='#'
2998 MAINTAINER_MODE_FALSE=
2999 fi
3000
3001 MAINT=$MAINTAINER_MODE_TRUE
3002
3003
3004 # Check whether --enable-silent-rules was given.
3005 if test "${enable_silent_rules+set}" = set; then :
3006 enableval=$enable_silent_rules;
3007 fi
3008
3009 case $enable_silent_rules in # (((
3010 yes) AM_DEFAULT_VERBOSITY=0;;
3011 no) AM_DEFAULT_VERBOSITY=1;;
3012 *) AM_DEFAULT_VERBOSITY=1;;
3013 esac
3014 am_make=${MAKE-make}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3016 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3017 if ${am_cv_make_support_nested_variables+:} false; then :
3018 $as_echo_n "(cached) " >&6
3019 else
3020 if $as_echo 'TRUE=$(BAR$(V))
3021 BAR0=false
3022 BAR1=true
3023 V=1
3024 am__doit:
3025 @$(TRUE)
3026 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3027 am_cv_make_support_nested_variables=yes
3028 else
3029 am_cv_make_support_nested_variables=no
3030 fi
3031 fi
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3033 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3034 if test $am_cv_make_support_nested_variables = yes; then
3035 AM_V='$(V)'
3036 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3037 else
3038 AM_V=$AM_DEFAULT_VERBOSITY
3039 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3040 fi
3041 AM_BACKSLASH='\'
3042
3043 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3044 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3045 # is not polluted with repeated "-I."
3046 am__isrc=' -I$(srcdir)'
3047 # test to see if srcdir already configured
3048 if test -f $srcdir/config.status; then
3049 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3050 fi
3051 fi
3052
3053 # test whether we have cygpath
3054 if test -z "$CYGPATH_W"; then
3055 if (cygpath --version) >/dev/null 2>/dev/null; then
3056 CYGPATH_W='cygpath -w'
3057 else
3058 CYGPATH_W=echo
3059 fi
3060 fi
3061
3062
3063 # Define the identity of the package.
3064 PACKAGE='file'
3065 VERSION='5.37'
3066
3067
3068 cat >>confdefs.h <<_ACEOF
3069 #define PACKAGE "$PACKAGE"
3070 _ACEOF
3071
3072
3073 cat >>confdefs.h <<_ACEOF
3074 #define VERSION "$VERSION"
3075 _ACEOF
3076
3077 # Some tools Automake needs.
3078
3079 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3080
3081
3082 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3083
3084
3085 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3086
3087
3088 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3089
3090
3091 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3092
3093 # For better backward compatibility. To be removed once Automake 1.9.x
3094 # dies out for good. For more background, see:
3095 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3096 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3097 mkdir_p='$(MKDIR_P)'
3098
3099 # We need awk for the "check" target (and possibly the TAP driver). The
3100 # system "awk" is bad on some platforms.
3101 # Always define AMTAR for backward compatibility. Yes, it's still used
3102 # in the wild :-( We should find a proper way to deprecate it ...
3103 AMTAR='$${TAR-tar}'
3104
3105
3106 # We'll loop over all known methods to create a tar archive until one works.
3107 _am_tools='gnutar pax cpio none'
3108
3109 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3110
3111
3112
3113
3114
3115
3116 # POSIX will say in a future version that running "rm -f" with no argument
3117 # is OK; and we want to be able to make that assumption in our Makefile
3118 # recipes. So use an aggressive probe to check that the usage we want is
3119 # actually supported "in the wild" to an acceptable degree.
3120 # See automake bug#10828.
3121 # To make any issue more visible, cause the running configure to be aborted
3122 # by default if the 'rm' program in use doesn't match our expectations; the
3123 # user can still override this though.
3124 if rm -f && rm -fr && rm -rf; then : OK; else
3125 cat >&2 <<'END'
3126 Oops!
3127
3128 Your 'rm' program seems unable to run without file operands specified
3129 on the command line, even when the '-f' option is present. This is contrary
3130 to the behaviour of most rm programs out there, and not conforming with
3131 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3132
3133 Please tell bug-automake@gnu.org about your system, including the value
3134 of your $PATH and any error possibly output before this message. This
3135 can help us improve future automake versions.
3136
3137 END
3138 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3139 echo 'Configuration will proceed anyway, since you have set the' >&2
3140 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3141 echo >&2
3142 else
3143 cat >&2 <<'END'
3144 Aborting the configuration process, to ensure you take notice of the issue.
3145
3146 You can download and install GNU coreutils to get an 'rm' implementation
3147 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3148
3149 If you want to complete the configuration process using your problematic
3150 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3151 to "yes", and re-run configure.
3152
3153 END
3154 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3155 fi
3156 fi
3157
3158 # Check whether --enable-silent-rules was given.
3159 if test "${enable_silent_rules+set}" = set; then :
3160 enableval=$enable_silent_rules;
3161 fi
3162
3163 case $enable_silent_rules in # (((
3164 yes) AM_DEFAULT_VERBOSITY=0;;
3165 no) AM_DEFAULT_VERBOSITY=1;;
3166 *) AM_DEFAULT_VERBOSITY=0;;
3167 esac
3168 am_make=${MAKE-make}
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3170 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3171 if ${am_cv_make_support_nested_variables+:} false; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 if $as_echo 'TRUE=$(BAR$(V))
3175 BAR0=false
3176 BAR1=true
3177 V=1
3178 am__doit:
3179 @$(TRUE)
3180 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3181 am_cv_make_support_nested_variables=yes
3182 else
3183 am_cv_make_support_nested_variables=no
3184 fi
3185 fi
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3187 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3188 if test $am_cv_make_support_nested_variables = yes; then
3189 AM_V='$(V)'
3190 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3191 else
3192 AM_V=$AM_DEFAULT_VERBOSITY
3193 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3194 fi
3195 AM_BACKSLASH='\'
3196
3197
3198 ac_config_headers="$ac_config_headers config.h"
3199
3200
3201
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3203 $as_echo_n "checking for builtin ELF support... " >&6; }
3204 # Check whether --enable-elf was given.
3205 if test "${enable_elf+set}" = set; then :
3206 enableval=$enable_elf; if test "${enableval}" = yes; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208 $as_echo "yes" >&6; }
3209
3210 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3211
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216 else
3217
3218 # enable by default
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220 $as_echo "yes" >&6; }
3221
3222 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3223
3224
3225 fi
3226
3227
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3229 $as_echo_n "checking for ELF core file support... " >&6; }
3230 # Check whether --enable-elf-core was given.
3231 if test "${enable_elf_core+set}" = set; then :
3232 enableval=$enable_elf_core; if test "${enableval}" = yes; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3234 $as_echo "yes" >&6; }
3235
3236 $as_echo "#define ELFCORE 1" >>confdefs.h
3237
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 fi
3242 else
3243
3244 # enable by default
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246 $as_echo "yes" >&6; }
3247
3248 $as_echo "#define ELFCORE 1" >>confdefs.h
3249
3250
3251 fi
3252
3253
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
3255 $as_echo_n "checking for zlib support... " >&6; }
3256 # Check whether --enable-zlib was given.
3257 if test "${enable_zlib+set}" = set; then :
3258 enableval=$enable_zlib;
3259 fi
3260
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
3262 $as_echo "$enable_zlib" >&6; }
3263
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
3265 $as_echo_n "checking for libseccomp support... " >&6; }
3266 # Check whether --enable-libseccomp was given.
3267 if test "${enable_libseccomp+set}" = set; then :
3268 enableval=$enable_libseccomp;
3269 fi
3270
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
3272 $as_echo "$enable_libseccomp" >&6; }
3273
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3275 $as_echo_n "checking for file formats in man section 5... " >&6; }
3276 # Check whether --enable-fsect-man5 was given.
3277 if test "${enable_fsect_man5+set}" = set; then :
3278 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3280 $as_echo "yes" >&6; }
3281 fsect=5
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fsect=4
3286 fi
3287 else
3288
3289 # disable by default
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 fsect=4
3293
3294 fi
3295
3296
3297 # Make sure we can run config.sub.
3298 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3299 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3300
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3302 $as_echo_n "checking build system type... " >&6; }
3303 if ${ac_cv_build+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 ac_build_alias=$build_alias
3307 test "x$ac_build_alias" = x &&
3308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3309 test "x$ac_build_alias" = x &&
3310 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3311 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3312 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3313
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3316 $as_echo "$ac_cv_build" >&6; }
3317 case $ac_cv_build in
3318 *-*-*) ;;
3319 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3320 esac
3321 build=$ac_cv_build
3322 ac_save_IFS=$IFS; IFS='-'
3323 set x $ac_cv_build
3324 shift
3325 build_cpu=$1
3326 build_vendor=$2
3327 shift; shift
3328 # Remember, the first character of IFS is used to create $*,
3329 # except with old shells:
3330 build_os=$*
3331 IFS=$ac_save_IFS
3332 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3333
3334
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3336 $as_echo_n "checking host system type... " >&6; }
3337 if ${ac_cv_host+:} false; then :
3338 $as_echo_n "(cached) " >&6
3339 else
3340 if test "x$host_alias" = x; then
3341 ac_cv_host=$ac_cv_build
3342 else
3343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3345 fi
3346
3347 fi
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3349 $as_echo "$ac_cv_host" >&6; }
3350 case $ac_cv_host in
3351 *-*-*) ;;
3352 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3353 esac
3354 host=$ac_cv_host
3355 ac_save_IFS=$IFS; IFS='-'
3356 set x $ac_cv_host
3357 shift
3358 host_cpu=$1
3359 host_vendor=$2
3360 shift; shift
3361 # Remember, the first character of IFS is used to create $*,
3362 # except with old shells:
3363 host_os=$*
3364 IFS=$ac_save_IFS
3365 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3366
3367
3368 case "$host_os" in
3369 mingw32*)
3370 MINGW=1
3371 ;;
3372 *)
3373 MINGW=0
3374 ;;
3375 esac
3376
3377 if test "$MINGW" = 1; then
3378 MINGW_TRUE=
3379 MINGW_FALSE='#'
3380 else
3381 MINGW_TRUE='#'
3382 MINGW_FALSE=
3383 fi
3384
3385
3386 pkgdatadir='$(datadir)/misc'
3387
3388
3389 if test x$fsect = x5; then
3390 FSECT5_TRUE=
3391 FSECT5_FALSE='#'
3392 else
3393 FSECT5_TRUE='#'
3394 FSECT5_FALSE=
3395 fi
3396
3397
3398
3399
3400 DEPDIR="${am__leading_dot}deps"
3401
3402 ac_config_commands="$ac_config_commands depfiles"
3403
3404
3405 am_make=${MAKE-make}
3406 cat > confinc << 'END'
3407 am__doit:
3408 @echo this is the am__doit target
3409 .PHONY: am__doit
3410 END
3411 # If we don't find an include directive, just comment out the code.
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3413 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3414 am__include="#"
3415 am__quote=
3416 _am_result=none
3417 # First try GNU make style include.
3418 echo "include confinc" > confmf
3419 # Ignore all kinds of additional output from 'make'.
3420 case `$am_make -s -f confmf 2> /dev/null` in #(
3421 *the\ am__doit\ target*)
3422 am__include=include
3423 am__quote=
3424 _am_result=GNU
3425 ;;
3426 esac
3427 # Now try BSD make style include.
3428 if test "$am__include" = "#"; then
3429 echo '.include "confinc"' > confmf
3430 case `$am_make -s -f confmf 2> /dev/null` in #(
3431 *the\ am__doit\ target*)
3432 am__include=.include
3433 am__quote="\""
3434 _am_result=BSD
3435 ;;
3436 esac
3437 fi
3438
3439
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3441 $as_echo "$_am_result" >&6; }
3442 rm -f confinc confmf
3443
3444 # Check whether --enable-dependency-tracking was given.
3445 if test "${enable_dependency_tracking+set}" = set; then :
3446 enableval=$enable_dependency_tracking;
3447 fi
3448
3449 if test "x$enable_dependency_tracking" != xno; then
3450 am_depcomp="$ac_aux_dir/depcomp"
3451 AMDEPBACKSLASH='\'
3452 am__nodep='_no'
3453 fi
3454 if test "x$enable_dependency_tracking" != xno; then
3455 AMDEP_TRUE=
3456 AMDEP_FALSE='#'
3457 else
3458 AMDEP_TRUE='#'
3459 AMDEP_FALSE=
3460 fi
3461
3462
3463 ac_ext=c
3464 ac_cpp='$CPP $CPPFLAGS'
3465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468 if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3470 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_prog_CC+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490 done
3491 done
3492 IFS=$as_save_IFS
3493
3494 fi
3495 fi
3496 CC=$ac_cv_prog_CC
3497 if test -n "$CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499 $as_echo "$CC" >&6; }
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3503 fi
3504
3505
3506 fi
3507 if test -z "$ac_cv_prog_CC"; then
3508 ac_ct_CC=$CC
3509 # Extract the first word of "gcc", so it can be a program name with args.
3510 set dummy gcc; ac_word=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 if test -n "$ac_ct_CC"; then
3517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3521 do
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526 ac_cv_prog_ac_ct_CC="gcc"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 break 2
3529 fi
3530 done
3531 done
3532 IFS=$as_save_IFS
3533
3534 fi
3535 fi
3536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3537 if test -n "$ac_ct_CC"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3539 $as_echo "$ac_ct_CC" >&6; }
3540 else
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3543 fi
3544
3545 if test "x$ac_ct_CC" = x; then
3546 CC=""
3547 else
3548 case $cross_compiling:$ac_tool_warned in
3549 yes:)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552 ac_tool_warned=yes ;;
3553 esac
3554 CC=$ac_ct_CC
3555 fi
3556 else
3557 CC="$ac_cv_prog_CC"
3558 fi
3559
3560 if test -z "$CC"; then
3561 if test -n "$ac_tool_prefix"; then
3562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3563 set dummy ${ac_tool_prefix}cc; ac_word=$2
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if ${ac_cv_prog_CC+:} false; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 if test -n "$CC"; then
3570 ac_cv_prog_CC="$CC" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579 ac_cv_prog_CC="${ac_tool_prefix}cc"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2
3582 fi
3583 done
3584 done
3585 IFS=$as_save_IFS
3586
3587 fi
3588 fi
3589 CC=$ac_cv_prog_CC
3590 if test -n "$CC"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592 $as_echo "$CC" >&6; }
3593 else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 fi
3597
3598
3599 fi
3600 fi
3601 if test -z "$CC"; then
3602 # Extract the first word of "cc", so it can be a program name with args.
3603 set dummy cc; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_CC+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 ac_prog_rejected=no
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3621 ac_prog_rejected=yes
3622 continue
3623 fi
3624 ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
3633 # We found a bogon in the path, so make sure we never use it.
3634 set dummy $ac_cv_prog_CC
3635 shift
3636 if test $# != 0; then
3637 # We chose a different compiler from the bogus one.
3638 # However, it has the same basename, so the bogon will be chosen
3639 # first if we set CC to just the basename; use the full file name.
3640 shift
3641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3642 fi
3643 fi
3644 fi
3645 fi
3646 CC=$ac_cv_prog_CC
3647 if test -n "$CC"; then
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3649 $as_echo "$CC" >&6; }
3650 else
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 $as_echo "no" >&6; }
3653 fi
3654
3655
3656 fi
3657 if test -z "$CC"; then
3658 if test -n "$ac_tool_prefix"; then
3659 for ac_prog in cl.exe
3660 do
3661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if ${ac_cv_prog_CC+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 if test -n "$CC"; then
3669 ac_cv_prog_CC="$CC" # Let the user override the test.
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 break 2
3681 fi
3682 done
3683 done
3684 IFS=$as_save_IFS
3685
3686 fi
3687 fi
3688 CC=$ac_cv_prog_CC
3689 if test -n "$CC"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691 $as_echo "$CC" >&6; }
3692 else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3695 fi
3696
3697
3698 test -n "$CC" && break
3699 done
3700 fi
3701 if test -z "$CC"; then
3702 ac_ct_CC=$CC
3703 for ac_prog in cl.exe
3704 do
3705 # Extract the first word of "$ac_prog", so it can be a program name with args.
3706 set dummy $ac_prog; ac_word=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 if test -n "$ac_ct_CC"; then
3713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3714 else
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3717 do
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722 ac_cv_prog_ac_ct_CC="$ac_prog"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 break 2
3725 fi
3726 done
3727 done
3728 IFS=$as_save_IFS
3729
3730 fi
3731 fi
3732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3733 if test -n "$ac_ct_CC"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3735 $as_echo "$ac_ct_CC" >&6; }
3736 else
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3739 fi
3740
3741
3742 test -n "$ac_ct_CC" && break
3743 done
3744
3745 if test "x$ac_ct_CC" = x; then
3746 CC=""
3747 else
3748 case $cross_compiling:$ac_tool_warned in
3749 yes:)
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3752 ac_tool_warned=yes ;;
3753 esac
3754 CC=$ac_ct_CC
3755 fi
3756 fi
3757
3758 fi
3759
3760
3761 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763 as_fn_error $? "no acceptable C compiler found in \$PATH
3764 See \`config.log' for more details" "$LINENO" 5; }
3765
3766 # Provide some information about the compiler.
3767 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3768 set X $ac_compile
3769 ac_compiler=$2
3770 for ac_option in --version -v -V -qversion; do
3771 { { ac_try="$ac_compiler $ac_option >&5"
3772 case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3779 ac_status=$?
3780 if test -s conftest.err; then
3781 sed '10a\
3782 ... rest of stderr output deleted ...
3783 10q' conftest.err >conftest.er1
3784 cat conftest.er1 >&5
3785 fi
3786 rm -f conftest.er1 conftest.err
3787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788 test $ac_status = 0; }
3789 done
3790
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793
3794 int
3795 main ()
3796 {
3797
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 ac_clean_files_save=$ac_clean_files
3803 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3804 # Try to create an executable without -o first, disregard a.out.
3805 # It will help us diagnose broken compilers, and finding out an intuition
3806 # of exeext.
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3808 $as_echo_n "checking whether the C compiler works... " >&6; }
3809 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3810
3811 # The possible output files:
3812 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3813
3814 ac_rmfiles=
3815 for ac_file in $ac_files
3816 do
3817 case $ac_file in
3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3819 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3820 esac
3821 done
3822 rm -f $ac_rmfiles
3823
3824 if { { ac_try="$ac_link_default"
3825 case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828 esac
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 $as_echo "$ac_try_echo"; } >&5
3831 (eval "$ac_link_default") 2>&5
3832 ac_status=$?
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }; then :
3835 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3836 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3837 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3838 # so that the user can short-circuit this test for compilers unknown to
3839 # Autoconf.
3840 for ac_file in $ac_files ''
3841 do
3842 test -f "$ac_file" || continue
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3845 ;;
3846 [ab].out )
3847 # We found the default executable, but exeext='' is most
3848 # certainly right.
3849 break;;
3850 *.* )
3851 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3852 then :; else
3853 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3854 fi
3855 # We set ac_cv_exeext here because the later test for it is not
3856 # safe: cross compilers may not add the suffix if given an `-o'
3857 # argument, so we may need to know it at that point already.
3858 # Even if this section looks crufty: it has the advantage of
3859 # actually working.
3860 break;;
3861 * )
3862 break;;
3863 esac
3864 done
3865 test "$ac_cv_exeext" = no && ac_cv_exeext=
3866
3867 else
3868 ac_file=''
3869 fi
3870 if test -z "$ac_file"; then :
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3873 $as_echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3875
3876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error 77 "C compiler cannot create executables
3879 See \`config.log' for more details" "$LINENO" 5; }
3880 else
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3882 $as_echo "yes" >&6; }
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3885 $as_echo_n "checking for C compiler default output file name... " >&6; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3887 $as_echo "$ac_file" >&6; }
3888 ac_exeext=$ac_cv_exeext
3889
3890 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3891 ac_clean_files=$ac_clean_files_save
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3893 $as_echo_n "checking for suffix of executables... " >&6; }
3894 if { { ac_try="$ac_link"
3895 case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898 esac
3899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3900 $as_echo "$ac_try_echo"; } >&5
3901 (eval "$ac_link") 2>&5
3902 ac_status=$?
3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904 test $ac_status = 0; }; then :
3905 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3906 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3907 # work properly (i.e., refer to `conftest.exe'), while it won't with
3908 # `rm'.
3909 for ac_file in conftest.exe conftest conftest.*; do
3910 test -f "$ac_file" || continue
3911 case $ac_file in
3912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3913 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3914 break;;
3915 * ) break;;
3916 esac
3917 done
3918 else
3919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3922 See \`config.log' for more details" "$LINENO" 5; }
3923 fi
3924 rm -f conftest conftest$ac_cv_exeext
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3926 $as_echo "$ac_cv_exeext" >&6; }
3927
3928 rm -f conftest.$ac_ext
3929 EXEEXT=$ac_cv_exeext
3930 ac_exeext=$EXEEXT
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933 #include <stdio.h>
3934 int
3935 main ()
3936 {
3937 FILE *f = fopen ("conftest.out", "w");
3938 return ferror (f) || fclose (f) != 0;
3939
3940 ;
3941 return 0;
3942 }
3943 _ACEOF
3944 ac_clean_files="$ac_clean_files conftest.out"
3945 # Check that the compiler produces executables we can run. If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 if test "$cross_compiling" != yes; then
3950 { { ac_try="$ac_link"
3951 case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954 esac
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957 (eval "$ac_link") 2>&5
3958 ac_status=$?
3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960 test $ac_status = 0; }
3961 if { ac_try='./conftest$ac_cv_exeext'
3962 { { case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_try") 2>&5
3969 ac_status=$?
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; }; then
3972 cross_compiling=no
3973 else
3974 if test "$cross_compiling" = maybe; then
3975 cross_compiling=yes
3976 else
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error $? "cannot run C compiled programs.
3980 If you meant to cross compile, use \`--host'.
3981 See \`config.log' for more details" "$LINENO" 5; }
3982 fi
3983 fi
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3986 $as_echo "$cross_compiling" >&6; }
3987
3988 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3989 ac_clean_files=$ac_clean_files_save
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991 $as_echo_n "checking for suffix of object files... " >&6; }
3992 if ${ac_cv_objext+:} false; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997
3998 int
3999 main ()
4000 {
4001
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest.o conftest.obj
4007 if { { ac_try="$ac_compile"
4008 case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_compile") 2>&5
4015 ac_status=$?
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; then :
4018 for ac_file in conftest.o conftest.obj conftest.*; do
4019 test -f "$ac_file" || continue;
4020 case $ac_file in
4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4023 break;;
4024 esac
4025 done
4026 else
4027 $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error $? "cannot compute suffix of object files: cannot compile
4033 See \`config.log' for more details" "$LINENO" 5; }
4034 fi
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 $as_echo "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4040 ac_objext=$OBJEXT
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043 if ${ac_cv_c_compiler_gnu+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048
4049 int
4050 main ()
4051 {
4052 #ifndef __GNUC__
4053 choke me
4054 #endif
4055
4056 ;
4057 return 0;
4058 }
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061 ac_compiler_gnu=yes
4062 else
4063 ac_compiler_gnu=no
4064 fi
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4067
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4072 GCC=yes
4073 else
4074 GCC=
4075 fi
4076 ac_test_CFLAGS=${CFLAGS+set}
4077 ac_save_CFLAGS=$CFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080 if ${ac_cv_prog_cc_g+:} false; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 ac_save_c_werror_flag=$ac_c_werror_flag
4084 ac_c_werror_flag=yes
4085 ac_cv_prog_cc_g=no
4086 CFLAGS="-g"
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089
4090 int
4091 main ()
4092 {
4093
4094 ;
4095 return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_cv_prog_cc_g=yes
4100 else
4101 CFLAGS=""
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104
4105 int
4106 main ()
4107 {
4108
4109 ;
4110 return 0;
4111 }
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114
4115 else
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4117 CFLAGS="-g"
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120
4121 int
4122 main ()
4123 {
4124
4125 ;
4126 return 0;
4127 }
4128 _ACEOF
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_cv_prog_cc_g=yes
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140 $as_echo "$ac_cv_prog_cc_g" >&6; }
4141 if test "$ac_test_CFLAGS" = set; then
4142 CFLAGS=$ac_save_CFLAGS
4143 elif test $ac_cv_prog_cc_g = yes; then
4144 if test "$GCC" = yes; then
4145 CFLAGS="-g -O2"
4146 else
4147 CFLAGS="-g"
4148 fi
4149 else
4150 if test "$GCC" = yes; then
4151 CFLAGS="-O2"
4152 else
4153 CFLAGS=
4154 fi
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158 if ${ac_cv_prog_cc_c89+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 ac_cv_prog_cc_c89=no
4162 ac_save_CC=$CC
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #include <stdarg.h>
4166 #include <stdio.h>
4167 struct stat;
4168 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4169 struct buf { int x; };
4170 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4171 static char *e (p, i)
4172 char **p;
4173 int i;
4174 {
4175 return p[i];
4176 }
4177 static char *f (char * (*g) (char **, int), char **p, ...)
4178 {
4179 char *s;
4180 va_list v;
4181 va_start (v,p);
4182 s = g (p, va_arg (v,int));
4183 va_end (v);
4184 return s;
4185 }
4186
4187 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4188 function prototypes and stuff, but not '\xHH' hex character constants.
4189 These don't provoke an error unfortunately, instead are silently treated
4190 as 'x'. The following induces an error, until -std is added to get
4191 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4192 array size at least. It's necessary to write '\x00'==0 to get something
4193 that's true only with -std. */
4194 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4195
4196 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4197 inside strings and character constants. */
4198 #define FOO(x) 'x'
4199 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4200
4201 int test (int i, double x);
4202 struct s1 {int (*f) (int a);};
4203 struct s2 {int (*f) (double a);};
4204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4205 int argc;
4206 char **argv;
4207 int
4208 main ()
4209 {
4210 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4211 ;
4212 return 0;
4213 }
4214 _ACEOF
4215 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4216 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4217 do
4218 CC="$ac_save_CC $ac_arg"
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_cv_prog_cc_c89=$ac_arg
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext
4223 test "x$ac_cv_prog_cc_c89" != "xno" && break
4224 done
4225 rm -f conftest.$ac_ext
4226 CC=$ac_save_CC
4227
4228 fi
4229 # AC_CACHE_VAL
4230 case "x$ac_cv_prog_cc_c89" in
4231 x)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4233 $as_echo "none needed" >&6; } ;;
4234 xno)
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236 $as_echo "unsupported" >&6; } ;;
4237 *)
4238 CC="$CC $ac_cv_prog_cc_c89"
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4240 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4241 esac
4242 if test "x$ac_cv_prog_cc_c89" != xno; then :
4243
4244 fi
4245
4246 ac_ext=c
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251
4252 ac_ext=c
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4258 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4259 if ${am_cv_prog_cc_c_o+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264
4265 int
4266 main ()
4267 {
4268
4269 ;
4270 return 0;
4271 }
4272 _ACEOF
4273 # Make sure it works both with $CC and with simple cc.
4274 # Following AC_PROG_CC_C_O, we do the test twice because some
4275 # compilers refuse to overwrite an existing .o file with -o,
4276 # though they will create one.
4277 am_cv_prog_cc_c_o=yes
4278 for am_i in 1 2; do
4279 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4280 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } \
4284 && test -f conftest2.$ac_objext; then
4285 : OK
4286 else
4287 am_cv_prog_cc_c_o=no
4288 break
4289 fi
4290 done
4291 rm -f core conftest*
4292 unset am_i
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4295 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4296 if test "$am_cv_prog_cc_c_o" != yes; then
4297 # Losing compiler, so override with the script.
4298 # FIXME: It is wrong to rewrite CC.
4299 # But if we don't then we get into trouble of one sort or another.
4300 # A longer-term fix would be to have automake use am__CC in this case,
4301 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4302 CC="$am_aux_dir/compile $CC"
4303 fi
4304 ac_ext=c
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309
4310
4311 depcc="$CC" am_compiler_list=
4312
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4314 $as_echo_n "checking dependency style of $depcc... " >&6; }
4315 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4319 # We make a subdir and do the tests there. Otherwise we can end up
4320 # making bogus files that we don't know about and never remove. For
4321 # instance it was reported that on HP-UX the gcc test will end up
4322 # making a dummy file named 'D' -- because '-MD' means "put the output
4323 # in D".
4324 rm -rf conftest.dir
4325 mkdir conftest.dir
4326 # Copy depcomp to subdir because otherwise we won't find it if we're
4327 # using a relative directory.
4328 cp "$am_depcomp" conftest.dir
4329 cd conftest.dir
4330 # We will build objects and dependencies in a subdirectory because
4331 # it helps to detect inapplicable dependency modes. For instance
4332 # both Tru64's cc and ICC support -MD to output dependencies as a
4333 # side effect of compilation, but ICC will put the dependencies in
4334 # the current directory while Tru64 will put them in the object
4335 # directory.
4336 mkdir sub
4337
4338 am_cv_CC_dependencies_compiler_type=none
4339 if test "$am_compiler_list" = ""; then
4340 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4341 fi
4342 am__universal=false
4343 case " $depcc " in #(
4344 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4345 esac
4346
4347 for depmode in $am_compiler_list; do
4348 # Setup a source with many dependencies, because some compilers
4349 # like to wrap large dependency lists on column 80 (with \), and
4350 # we should not choose a depcomp mode which is confused by this.
4351 #
4352 # We need to recreate these files for each test, as the compiler may
4353 # overwrite some of them when testing with obscure command lines.
4354 # This happens at least with the AIX C compiler.
4355 : > sub/conftest.c
4356 for i in 1 2 3 4 5 6; do
4357 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4358 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4359 # Solaris 10 /bin/sh.
4360 echo '/* dummy */' > sub/conftst$i.h
4361 done
4362 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4363
4364 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4365 # mode. It turns out that the SunPro C++ compiler does not properly
4366 # handle '-M -o', and we need to detect this. Also, some Intel
4367 # versions had trouble with output in subdirs.
4368 am__obj=sub/conftest.${OBJEXT-o}
4369 am__minus_obj="-o $am__obj"
4370 case $depmode in
4371 gcc)
4372 # This depmode causes a compiler race in universal mode.
4373 test "$am__universal" = false || continue
4374 ;;
4375 nosideeffect)
4376 # After this tag, mechanisms are not by side-effect, so they'll
4377 # only be used when explicitly requested.
4378 if test "x$enable_dependency_tracking" = xyes; then
4379 continue
4380 else
4381 break
4382 fi
4383 ;;
4384 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4385 # This compiler won't grok '-c -o', but also, the minuso test has
4386 # not run yet. These depmodes are late enough in the game, and
4387 # so weak that their functioning should not be impacted.
4388 am__obj=conftest.${OBJEXT-o}
4389 am__minus_obj=
4390 ;;
4391 none) break ;;
4392 esac
4393 if depmode=$depmode \
4394 source=sub/conftest.c object=$am__obj \
4395 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4396 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4397 >/dev/null 2>conftest.err &&
4398 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4399 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4400 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4401 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4402 # icc doesn't choke on unknown options, it will just issue warnings
4403 # or remarks (even with -Werror). So we grep stderr for any message
4404 # that says an option was ignored or not supported.
4405 # When given -MP, icc 7.0 and 7.1 complain thusly:
4406 # icc: Command line warning: ignoring option '-M'; no argument required
4407 # The diagnosis changed in icc 8.0:
4408 # icc: Command line remark: option '-MP' not supported
4409 if (grep 'ignoring option' conftest.err ||
4410 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4411 am_cv_CC_dependencies_compiler_type=$depmode
4412 break
4413 fi
4414 fi
4415 done
4416
4417 cd ..
4418 rm -rf conftest.dir
4419 else
4420 am_cv_CC_dependencies_compiler_type=none
4421 fi
4422
4423 fi
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4425 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4426 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4427
4428 if
4429 test "x$enable_dependency_tracking" != xno \
4430 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4431 am__fastdepCC_TRUE=
4432 am__fastdepCC_FALSE='#'
4433 else
4434 am__fastdepCC_TRUE='#'
4435 am__fastdepCC_FALSE=
4436 fi
4437
4438
4439 case $ac_cv_prog_cc_stdc in #(
4440 no) :
4441 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4442 *) :
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4444 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4445 if ${ac_cv_prog_cc_c99+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 ac_cv_prog_cc_c99=no
4449 ac_save_CC=$CC
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452 #include <stdarg.h>
4453 #include <stdbool.h>
4454 #include <stdlib.h>
4455 #include <wchar.h>
4456 #include <stdio.h>
4457
4458 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4459 #define debug(...) fprintf (stderr, __VA_ARGS__)
4460 #define showlist(...) puts (#__VA_ARGS__)
4461 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4462 static void
4463 test_varargs_macros (void)
4464 {
4465 int x = 1234;
4466 int y = 5678;
4467 debug ("Flag");
4468 debug ("X = %d\n", x);
4469 showlist (The first, second, and third items.);
4470 report (x>y, "x is %d but y is %d", x, y);
4471 }
4472
4473 // Check long long types.
4474 #define BIG64 18446744073709551615ull
4475 #define BIG32 4294967295ul
4476 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4477 #if !BIG_OK
4478 your preprocessor is broken;
4479 #endif
4480 #if BIG_OK
4481 #else
4482 your preprocessor is broken;
4483 #endif
4484 static long long int bignum = -9223372036854775807LL;
4485 static unsigned long long int ubignum = BIG64;
4486
4487 struct incomplete_array
4488 {
4489 int datasize;
4490 double data[];
4491 };
4492
4493 struct named_init {
4494 int number;
4495 const wchar_t *name;
4496 double average;
4497 };
4498
4499 typedef const char *ccp;
4500
4501 static inline int
4502 test_restrict (ccp restrict text)
4503 {
4504 // See if C++-style comments work.
4505 // Iterate through items via the restricted pointer.
4506 // Also check for declarations in for loops.
4507 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4508 continue;
4509 return 0;
4510 }
4511
4512 // Check varargs and va_copy.
4513 static void
4514 test_varargs (const char *format, ...)
4515 {
4516 va_list args;
4517 va_start (args, format);
4518 va_list args_copy;
4519 va_copy (args_copy, args);
4520
4521 const char *str;
4522 int number;
4523 float fnumber;
4524
4525 while (*format)
4526 {
4527 switch (*format++)
4528 {
4529 case 's': // string
4530 str = va_arg (args_copy, const char *);
4531 break;
4532 case 'd': // int
4533 number = va_arg (args_copy, int);
4534 break;
4535 case 'f': // float
4536 fnumber = va_arg (args_copy, double);
4537 break;
4538 default:
4539 break;
4540 }
4541 }
4542 va_end (args_copy);
4543 va_end (args);
4544 }
4545
4546 int
4547 main ()
4548 {
4549
4550 // Check bool.
4551 _Bool success = false;
4552
4553 // Check restrict.
4554 if (test_restrict ("String literal") == 0)
4555 success = true;
4556 char *restrict newvar = "Another string";
4557
4558 // Check varargs.
4559 test_varargs ("s, d' f .", "string", 65, 34.234);
4560 test_varargs_macros ();
4561
4562 // Check flexible array members.
4563 struct incomplete_array *ia =
4564 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4565 ia->datasize = 10;
4566 for (int i = 0; i < ia->datasize; ++i)
4567 ia->data[i] = i * 1.234;
4568
4569 // Check named initializers.
4570 struct named_init ni = {
4571 .number = 34,
4572 .name = L"Test wide string",
4573 .average = 543.34343,
4574 };
4575
4576 ni.number = 58;
4577
4578 int dynamic_array[ni.number];
4579 dynamic_array[ni.number - 1] = 543;
4580
4581 // work around unused variable warnings
4582 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4583 || dynamic_array[ni.number - 1] != 543);
4584
4585 ;
4586 return 0;
4587 }
4588 _ACEOF
4589 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4590 do
4591 CC="$ac_save_CC $ac_arg"
4592 if ac_fn_c_try_compile "$LINENO"; then :
4593 ac_cv_prog_cc_c99=$ac_arg
4594 fi
4595 rm -f core conftest.err conftest.$ac_objext
4596 test "x$ac_cv_prog_cc_c99" != "xno" && break
4597 done
4598 rm -f conftest.$ac_ext
4599 CC=$ac_save_CC
4600
4601 fi
4602 # AC_CACHE_VAL
4603 case "x$ac_cv_prog_cc_c99" in
4604 x)
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4606 $as_echo "none needed" >&6; } ;;
4607 xno)
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4609 $as_echo "unsupported" >&6; } ;;
4610 *)
4611 CC="$CC $ac_cv_prog_cc_c99"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4613 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4614 esac
4615 if test "x$ac_cv_prog_cc_c99" != xno; then :
4616 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4617 else
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4619 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4620 if ${ac_cv_prog_cc_c89+:} false; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 ac_cv_prog_cc_c89=no
4624 ac_save_CC=$CC
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627 #include <stdarg.h>
4628 #include <stdio.h>
4629 struct stat;
4630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4631 struct buf { int x; };
4632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4633 static char *e (p, i)
4634 char **p;
4635 int i;
4636 {
4637 return p[i];
4638 }
4639 static char *f (char * (*g) (char **, int), char **p, ...)
4640 {
4641 char *s;
4642 va_list v;
4643 va_start (v,p);
4644 s = g (p, va_arg (v,int));
4645 va_end (v);
4646 return s;
4647 }
4648
4649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4650 function prototypes and stuff, but not '\xHH' hex character constants.
4651 These don't provoke an error unfortunately, instead are silently treated
4652 as 'x'. The following induces an error, until -std is added to get
4653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4654 array size at least. It's necessary to write '\x00'==0 to get something
4655 that's true only with -std. */
4656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4657
4658 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4659 inside strings and character constants. */
4660 #define FOO(x) 'x'
4661 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4662
4663 int test (int i, double x);
4664 struct s1 {int (*f) (int a);};
4665 struct s2 {int (*f) (double a);};
4666 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4667 int argc;
4668 char **argv;
4669 int
4670 main ()
4671 {
4672 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4673 ;
4674 return 0;
4675 }
4676 _ACEOF
4677 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4678 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4679 do
4680 CC="$ac_save_CC $ac_arg"
4681 if ac_fn_c_try_compile "$LINENO"; then :
4682 ac_cv_prog_cc_c89=$ac_arg
4683 fi
4684 rm -f core conftest.err conftest.$ac_objext
4685 test "x$ac_cv_prog_cc_c89" != "xno" && break
4686 done
4687 rm -f conftest.$ac_ext
4688 CC=$ac_save_CC
4689
4690 fi
4691 # AC_CACHE_VAL
4692 case "x$ac_cv_prog_cc_c89" in
4693 x)
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4695 $as_echo "none needed" >&6; } ;;
4696 xno)
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4698 $as_echo "unsupported" >&6; } ;;
4699 *)
4700 CC="$CC $ac_cv_prog_cc_c89"
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4702 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4703 esac
4704 if test "x$ac_cv_prog_cc_c89" != xno; then :
4705 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4706 else
4707 ac_cv_prog_cc_stdc=no
4708 fi
4709
4710 fi
4711 ;;
4712 esac
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4714 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4715 if ${ac_cv_prog_cc_stdc+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 fi
4718
4719 case $ac_cv_prog_cc_stdc in #(
4720 no) :
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4722 $as_echo "unsupported" >&6; } ;; #(
4723 '') :
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4725 $as_echo "none needed" >&6; } ;; #(
4726 *) :
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4728 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4729 esac
4730
4731
4732 ac_ext=c
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4738 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4739 # On Suns, sometimes $CPP names a directory.
4740 if test -n "$CPP" && test -d "$CPP"; then
4741 CPP=
4742 fi
4743 if test -z "$CPP"; then
4744 if ${ac_cv_prog_CPP+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 # Double quotes because CPP needs to be expanded
4748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4749 do
4750 ac_preproc_ok=false
4751 for ac_c_preproc_warn_flag in '' yes
4752 do
4753 # Use a header file that comes with gcc, so configuring glibc
4754 # with a fresh cross-compiler works.
4755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4756 # <limits.h> exists even on freestanding compilers.
4757 # On the NeXT, cc -E runs the code through the compiler's parser,
4758 # not just through cpp. "Syntax error" is here to catch this case.
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 #ifdef __STDC__
4762 # include <limits.h>
4763 #else
4764 # include <assert.h>
4765 #endif
4766 Syntax error
4767 _ACEOF
4768 if ac_fn_c_try_cpp "$LINENO"; then :
4769
4770 else
4771 # Broken: fails on valid input.
4772 continue
4773 fi
4774 rm -f conftest.err conftest.i conftest.$ac_ext
4775
4776 # OK, works on sane cases. Now check whether nonexistent headers
4777 # can be detected and how.
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780 #include <ac_nonexistent.h>
4781 _ACEOF
4782 if ac_fn_c_try_cpp "$LINENO"; then :
4783 # Broken: success on invalid input.
4784 continue
4785 else
4786 # Passes both tests.
4787 ac_preproc_ok=:
4788 break
4789 fi
4790 rm -f conftest.err conftest.i conftest.$ac_ext
4791
4792 done
4793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4794 rm -f conftest.i conftest.err conftest.$ac_ext
4795 if $ac_preproc_ok; then :
4796 break
4797 fi
4798
4799 done
4800 ac_cv_prog_CPP=$CPP
4801
4802 fi
4803 CPP=$ac_cv_prog_CPP
4804 else
4805 ac_cv_prog_CPP=$CPP
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4808 $as_echo "$CPP" >&6; }
4809 ac_preproc_ok=false
4810 for ac_c_preproc_warn_flag in '' yes
4811 do
4812 # Use a header file that comes with gcc, so configuring glibc
4813 # with a fresh cross-compiler works.
4814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815 # <limits.h> exists even on freestanding compilers.
4816 # On the NeXT, cc -E runs the code through the compiler's parser,
4817 # not just through cpp. "Syntax error" is here to catch this case.
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820 #ifdef __STDC__
4821 # include <limits.h>
4822 #else
4823 # include <assert.h>
4824 #endif
4825 Syntax error
4826 _ACEOF
4827 if ac_fn_c_try_cpp "$LINENO"; then :
4828
4829 else
4830 # Broken: fails on valid input.
4831 continue
4832 fi
4833 rm -f conftest.err conftest.i conftest.$ac_ext
4834
4835 # OK, works on sane cases. Now check whether nonexistent headers
4836 # can be detected and how.
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4839 #include <ac_nonexistent.h>
4840 _ACEOF
4841 if ac_fn_c_try_cpp "$LINENO"; then :
4842 # Broken: success on invalid input.
4843 continue
4844 else
4845 # Passes both tests.
4846 ac_preproc_ok=:
4847 break
4848 fi
4849 rm -f conftest.err conftest.i conftest.$ac_ext
4850
4851 done
4852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4853 rm -f conftest.i conftest.err conftest.$ac_ext
4854 if $ac_preproc_ok; then :
4855
4856 else
4857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4859 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4860 See \`config.log' for more details" "$LINENO" 5; }
4861 fi
4862
4863 ac_ext=c
4864 ac_cpp='$CPP $CPPFLAGS'
4865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4868
4869
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4871 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4872 if ${ac_cv_path_GREP+:} false; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -z "$GREP"; then
4876 ac_path_GREP_found=false
4877 # Loop through the user's path and test for each of PROGNAME-LIST
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4880 do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_prog in grep ggrep; do
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4886 as_fn_executable_p "$ac_path_GREP" || continue
4887 # Check for GNU ac_path_GREP and select it if it is found.
4888 # Check for GNU $ac_path_GREP
4889 case `"$ac_path_GREP" --version 2>&1` in
4890 *GNU*)
4891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4892 *)
4893 ac_count=0
4894 $as_echo_n 0123456789 >"conftest.in"
4895 while :
4896 do
4897 cat "conftest.in" "conftest.in" >"conftest.tmp"
4898 mv "conftest.tmp" "conftest.in"
4899 cp "conftest.in" "conftest.nl"
4900 $as_echo 'GREP' >> "conftest.nl"
4901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4903 as_fn_arith $ac_count + 1 && ac_count=$as_val
4904 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4905 # Best one so far, save it but keep looking for a better one
4906 ac_cv_path_GREP="$ac_path_GREP"
4907 ac_path_GREP_max=$ac_count
4908 fi
4909 # 10*(2^10) chars as input seems more than enough
4910 test $ac_count -gt 10 && break
4911 done
4912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4913 esac
4914
4915 $ac_path_GREP_found && break 3
4916 done
4917 done
4918 done
4919 IFS=$as_save_IFS
4920 if test -z "$ac_cv_path_GREP"; then
4921 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4922 fi
4923 else
4924 ac_cv_path_GREP=$GREP
4925 fi
4926
4927 fi
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4929 $as_echo "$ac_cv_path_GREP" >&6; }
4930 GREP="$ac_cv_path_GREP"
4931
4932
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4934 $as_echo_n "checking for egrep... " >&6; }
4935 if ${ac_cv_path_EGREP+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4939 then ac_cv_path_EGREP="$GREP -E"
4940 else
4941 if test -z "$EGREP"; then
4942 ac_path_EGREP_found=false
4943 # Loop through the user's path and test for each of PROGNAME-LIST
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4946 do
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_prog in egrep; do
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4952 as_fn_executable_p "$ac_path_EGREP" || continue
4953 # Check for GNU ac_path_EGREP and select it if it is found.
4954 # Check for GNU $ac_path_EGREP
4955 case `"$ac_path_EGREP" --version 2>&1` in
4956 *GNU*)
4957 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4958 *)
4959 ac_count=0
4960 $as_echo_n 0123456789 >"conftest.in"
4961 while :
4962 do
4963 cat "conftest.in" "conftest.in" >"conftest.tmp"
4964 mv "conftest.tmp" "conftest.in"
4965 cp "conftest.in" "conftest.nl"
4966 $as_echo 'EGREP' >> "conftest.nl"
4967 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4969 as_fn_arith $ac_count + 1 && ac_count=$as_val
4970 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4971 # Best one so far, save it but keep looking for a better one
4972 ac_cv_path_EGREP="$ac_path_EGREP"
4973 ac_path_EGREP_max=$ac_count
4974 fi
4975 # 10*(2^10) chars as input seems more than enough
4976 test $ac_count -gt 10 && break
4977 done
4978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4979 esac
4980
4981 $ac_path_EGREP_found && break 3
4982 done
4983 done
4984 done
4985 IFS=$as_save_IFS
4986 if test -z "$ac_cv_path_EGREP"; then
4987 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4988 fi
4989 else
4990 ac_cv_path_EGREP=$EGREP
4991 fi
4992
4993 fi
4994 fi
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4996 $as_echo "$ac_cv_path_EGREP" >&6; }
4997 EGREP="$ac_cv_path_EGREP"
4998
4999
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5001 $as_echo_n "checking for ANSI C header files... " >&6; }
5002 if ${ac_cv_header_stdc+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5007 #include <stdlib.h>
5008 #include <stdarg.h>
5009 #include <string.h>
5010 #include <float.h>
5011
5012 int
5013 main ()
5014 {
5015
5016 ;
5017 return 0;
5018 }
5019 _ACEOF
5020 if ac_fn_c_try_compile "$LINENO"; then :
5021 ac_cv_header_stdc=yes
5022 else
5023 ac_cv_header_stdc=no
5024 fi
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026
5027 if test $ac_cv_header_stdc = yes; then
5028 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5031 #include <string.h>
5032
5033 _ACEOF
5034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5035 $EGREP "memchr" >/dev/null 2>&1; then :
5036
5037 else
5038 ac_cv_header_stdc=no
5039 fi
5040 rm -f conftest*
5041
5042 fi
5043
5044 if test $ac_cv_header_stdc = yes; then
5045 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 #include <stdlib.h>
5049
5050 _ACEOF
5051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5052 $EGREP "free" >/dev/null 2>&1; then :
5053
5054 else
5055 ac_cv_header_stdc=no
5056 fi
5057 rm -f conftest*
5058
5059 fi
5060
5061 if test $ac_cv_header_stdc = yes; then
5062 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5063 if test "$cross_compiling" = yes; then :
5064 :
5065 else
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068 #include <ctype.h>
5069 #include <stdlib.h>
5070 #if ((' ' & 0x0FF) == 0x020)
5071 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5072 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5073 #else
5074 # define ISLOWER(c) \
5075 (('a' <= (c) && (c) <= 'i') \
5076 || ('j' <= (c) && (c) <= 'r') \
5077 || ('s' <= (c) && (c) <= 'z'))
5078 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5079 #endif
5080
5081 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5082 int
5083 main ()
5084 {
5085 int i;
5086 for (i = 0; i < 256; i++)
5087 if (XOR (islower (i), ISLOWER (i))
5088 || toupper (i) != TOUPPER (i))
5089 return 2;
5090 return 0;
5091 }
5092 _ACEOF
5093 if ac_fn_c_try_run "$LINENO"; then :
5094
5095 else
5096 ac_cv_header_stdc=no
5097 fi
5098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5099 conftest.$ac_objext conftest.beam conftest.$ac_ext
5100 fi
5101
5102 fi
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5105 $as_echo "$ac_cv_header_stdc" >&6; }
5106 if test $ac_cv_header_stdc = yes; then
5107
5108 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5109
5110 fi
5111
5112 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5113 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5114 inttypes.h stdint.h unistd.h
5115 do :
5116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5117 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5118 "
5119 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5120 cat >>confdefs.h <<_ACEOF
5121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5122 _ACEOF
5123
5124 fi
5125
5126 done
5127
5128
5129
5130 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5131 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5132 MINIX=yes
5133 else
5134 MINIX=
5135 fi
5136
5137
5138 if test "$MINIX" = yes; then
5139
5140 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5141
5142
5143 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5144
5145
5146 $as_echo "#define _MINIX 1" >>confdefs.h
5147
5148 fi
5149
5150
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5152 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5153 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5158
5159 # define __EXTENSIONS__ 1
5160 $ac_includes_default
5161 int
5162 main ()
5163 {
5164
5165 ;
5166 return 0;
5167 }
5168 _ACEOF
5169 if ac_fn_c_try_compile "$LINENO"; then :
5170 ac_cv_safe_to_define___extensions__=yes
5171 else
5172 ac_cv_safe_to_define___extensions__=no
5173 fi
5174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175 fi
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5177 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5178 test $ac_cv_safe_to_define___extensions__ = yes &&
5179 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5180
5181 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5182
5183 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5184
5185 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5186
5187 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5188
5189
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5192 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5193 if ${ac_cv_c_bigendian+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 ac_cv_c_bigendian=unknown
5197 # See if we're dealing with a universal compiler.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #ifndef __APPLE_CC__
5201 not a universal capable compiler
5202 #endif
5203 typedef int dummy;
5204
5205 _ACEOF
5206 if ac_fn_c_try_compile "$LINENO"; then :
5207
5208 # Check for potential -arch flags. It is not universal unless
5209 # there are at least two -arch flags with different values.
5210 ac_arch=
5211 ac_prev=
5212 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5213 if test -n "$ac_prev"; then
5214 case $ac_word in
5215 i?86 | x86_64 | ppc | ppc64)
5216 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5217 ac_arch=$ac_word
5218 else
5219 ac_cv_c_bigendian=universal
5220 break
5221 fi
5222 ;;
5223 esac
5224 ac_prev=
5225 elif test "x$ac_word" = "x-arch"; then
5226 ac_prev=arch
5227 fi
5228 done
5229 fi
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 if test $ac_cv_c_bigendian = unknown; then
5232 # See if sys/param.h defines the BYTE_ORDER macro.
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 #include <sys/types.h>
5236 #include <sys/param.h>
5237
5238 int
5239 main ()
5240 {
5241 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5242 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5243 && LITTLE_ENDIAN)
5244 bogus endian macros
5245 #endif
5246
5247 ;
5248 return 0;
5249 }
5250 _ACEOF
5251 if ac_fn_c_try_compile "$LINENO"; then :
5252 # It does; now see whether it defined to BIG_ENDIAN or not.
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 #include <sys/types.h>
5256 #include <sys/param.h>
5257
5258 int
5259 main ()
5260 {
5261 #if BYTE_ORDER != BIG_ENDIAN
5262 not big endian
5263 #endif
5264
5265 ;
5266 return 0;
5267 }
5268 _ACEOF
5269 if ac_fn_c_try_compile "$LINENO"; then :
5270 ac_cv_c_bigendian=yes
5271 else
5272 ac_cv_c_bigendian=no
5273 fi
5274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 fi
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 fi
5278 if test $ac_cv_c_bigendian = unknown; then
5279 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5282 #include <limits.h>
5283
5284 int
5285 main ()
5286 {
5287 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5288 bogus endian macros
5289 #endif
5290
5291 ;
5292 return 0;
5293 }
5294 _ACEOF
5295 if ac_fn_c_try_compile "$LINENO"; then :
5296 # It does; now see whether it defined to _BIG_ENDIAN or not.
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #include <limits.h>
5300
5301 int
5302 main ()
5303 {
5304 #ifndef _BIG_ENDIAN
5305 not big endian
5306 #endif
5307
5308 ;
5309 return 0;
5310 }
5311 _ACEOF
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313 ac_cv_c_bigendian=yes
5314 else
5315 ac_cv_c_bigendian=no
5316 fi
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 fi
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320 fi
5321 if test $ac_cv_c_bigendian = unknown; then
5322 # Compile a test program.
5323 if test "$cross_compiling" = yes; then :
5324 # Try to guess by grepping values from an object file.
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 short int ascii_mm[] =
5328 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5329 short int ascii_ii[] =
5330 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5331 int use_ascii (int i) {
5332 return ascii_mm[i] + ascii_ii[i];
5333 }
5334 short int ebcdic_ii[] =
5335 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5336 short int ebcdic_mm[] =
5337 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5338 int use_ebcdic (int i) {
5339 return ebcdic_mm[i] + ebcdic_ii[i];
5340 }
5341 extern int foo;
5342
5343 int
5344 main ()
5345 {
5346 return use_ascii (foo) == use_ebcdic (foo);
5347 ;
5348 return 0;
5349 }
5350 _ACEOF
5351 if ac_fn_c_try_compile "$LINENO"; then :
5352 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5353 ac_cv_c_bigendian=yes
5354 fi
5355 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5356 if test "$ac_cv_c_bigendian" = unknown; then
5357 ac_cv_c_bigendian=no
5358 else
5359 # finding both strings is unlikely to happen, but who knows?
5360 ac_cv_c_bigendian=unknown
5361 fi
5362 fi
5363 fi
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 else
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 $ac_includes_default
5369 int
5370 main ()
5371 {
5372
5373 /* Are we little or big endian? From Harbison&Steele. */
5374 union
5375 {
5376 long int l;
5377 char c[sizeof (long int)];
5378 } u;
5379 u.l = 1;
5380 return u.c[sizeof (long int) - 1] == 1;
5381
5382 ;
5383 return 0;
5384 }
5385 _ACEOF
5386 if ac_fn_c_try_run "$LINENO"; then :
5387 ac_cv_c_bigendian=no
5388 else
5389 ac_cv_c_bigendian=yes
5390 fi
5391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5392 conftest.$ac_objext conftest.beam conftest.$ac_ext
5393 fi
5394
5395 fi
5396 fi
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5398 $as_echo "$ac_cv_c_bigendian" >&6; }
5399 case $ac_cv_c_bigendian in #(
5400 yes)
5401 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5402 ;; #(
5403 no)
5404 ;; #(
5405 universal)
5406
5407 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5408
5409 ;; #(
5410 *)
5411 as_fn_error $? "unknown endianness
5412 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5413 esac
5414
5415
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5417 $as_echo_n "checking whether ln -s works... " >&6; }
5418 LN_S=$as_ln_s
5419 if test "$LN_S" = "ln -s"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5421 $as_echo "yes" >&6; }
5422 else
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5424 $as_echo "no, using $LN_S" >&6; }
5425 fi
5426
5427 case `pwd` in
5428 *\ * | *\ *)
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5430 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5431 esac
5432
5433
5434
5435 macro_version='2.4.2'
5436 macro_revision='1.3337'
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450 ltmain="$ac_aux_dir/ltmain.sh"
5451
5452 # Backslashify metacharacters that are still active within
5453 # double-quoted strings.
5454 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5455
5456 # Same as above, but do not quote variable references.
5457 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5458
5459 # Sed substitution to delay expansion of an escaped shell variable in a
5460 # double_quote_subst'ed string.
5461 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5462
5463 # Sed substitution to delay expansion of an escaped single quote.
5464 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5465
5466 # Sed substitution to avoid accidental globbing in evaled expressions
5467 no_glob_subst='s/\*/\\\*/g'
5468
5469 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5470 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5471 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5472
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5474 $as_echo_n "checking how to print strings... " >&6; }
5475 # Test print first, because it will be a builtin if present.
5476 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5477 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5478 ECHO='print -r --'
5479 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5480 ECHO='printf %s\n'
5481 else
5482 # Use this function as a fallback that always works.
5483 func_fallback_echo ()
5484 {
5485 eval 'cat <<_LTECHO_EOF
5486 $1
5487 _LTECHO_EOF'
5488 }
5489 ECHO='func_fallback_echo'
5490 fi
5491
5492 # func_echo_all arg...
5493 # Invoke $ECHO with all args, space-separated.
5494 func_echo_all ()
5495 {
5496 $ECHO ""
5497 }
5498
5499 case "$ECHO" in
5500 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5501 $as_echo "printf" >&6; } ;;
5502 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5503 $as_echo "print -r" >&6; } ;;
5504 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5505 $as_echo "cat" >&6; } ;;
5506 esac
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5522 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5523 if ${ac_cv_path_SED+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5527 for ac_i in 1 2 3 4 5 6 7; do
5528 ac_script="$ac_script$as_nl$ac_script"
5529 done
5530 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5531 { ac_script=; unset ac_script;}
5532 if test -z "$SED"; then
5533 ac_path_SED_found=false
5534 # Loop through the user's path and test for each of PROGNAME-LIST
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_prog in sed gsed; do
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5543 as_fn_executable_p "$ac_path_SED" || continue
5544 # Check for GNU ac_path_SED and select it if it is found.
5545 # Check for GNU $ac_path_SED
5546 case `"$ac_path_SED" --version 2>&1` in
5547 *GNU*)
5548 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5549 *)
5550 ac_count=0
5551 $as_echo_n 0123456789 >"conftest.in"
5552 while :
5553 do
5554 cat "conftest.in" "conftest.in" >"conftest.tmp"
5555 mv "conftest.tmp" "conftest.in"
5556 cp "conftest.in" "conftest.nl"
5557 $as_echo '' >> "conftest.nl"
5558 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5559 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5560 as_fn_arith $ac_count + 1 && ac_count=$as_val
5561 if test $ac_count -gt ${ac_path_SED_max-0}; then
5562 # Best one so far, save it but keep looking for a better one
5563 ac_cv_path_SED="$ac_path_SED"
5564 ac_path_SED_max=$ac_count
5565 fi
5566 # 10*(2^10) chars as input seems more than enough
5567 test $ac_count -gt 10 && break
5568 done
5569 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5570 esac
5571
5572 $ac_path_SED_found && break 3
5573 done
5574 done
5575 done
5576 IFS=$as_save_IFS
5577 if test -z "$ac_cv_path_SED"; then
5578 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5579 fi
5580 else
5581 ac_cv_path_SED=$SED
5582 fi
5583
5584 fi
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5586 $as_echo "$ac_cv_path_SED" >&6; }
5587 SED="$ac_cv_path_SED"
5588 rm -f conftest.sed
5589
5590 test -z "$SED" && SED=sed
5591 Xsed="$SED -e 1s/^X//"
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5604 $as_echo_n "checking for fgrep... " >&6; }
5605 if ${ac_cv_path_FGREP+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5609 then ac_cv_path_FGREP="$GREP -F"
5610 else
5611 if test -z "$FGREP"; then
5612 ac_path_FGREP_found=false
5613 # Loop through the user's path and test for each of PROGNAME-LIST
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5616 do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_prog in fgrep; do
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5622 as_fn_executable_p "$ac_path_FGREP" || continue
5623 # Check for GNU ac_path_FGREP and select it if it is found.
5624 # Check for GNU $ac_path_FGREP
5625 case `"$ac_path_FGREP" --version 2>&1` in
5626 *GNU*)
5627 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5628 *)
5629 ac_count=0
5630 $as_echo_n 0123456789 >"conftest.in"
5631 while :
5632 do
5633 cat "conftest.in" "conftest.in" >"conftest.tmp"
5634 mv "conftest.tmp" "conftest.in"
5635 cp "conftest.in" "conftest.nl"
5636 $as_echo 'FGREP' >> "conftest.nl"
5637 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5639 as_fn_arith $ac_count + 1 && ac_count=$as_val
5640 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5641 # Best one so far, save it but keep looking for a better one
5642 ac_cv_path_FGREP="$ac_path_FGREP"
5643 ac_path_FGREP_max=$ac_count
5644 fi
5645 # 10*(2^10) chars as input seems more than enough
5646 test $ac_count -gt 10 && break
5647 done
5648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5649 esac
5650
5651 $ac_path_FGREP_found && break 3
5652 done
5653 done
5654 done
5655 IFS=$as_save_IFS
5656 if test -z "$ac_cv_path_FGREP"; then
5657 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5658 fi
5659 else
5660 ac_cv_path_FGREP=$FGREP
5661 fi
5662
5663 fi
5664 fi
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5666 $as_echo "$ac_cv_path_FGREP" >&6; }
5667 FGREP="$ac_cv_path_FGREP"
5668
5669
5670 test -z "$GREP" && GREP=grep
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690 # Check whether --with-gnu-ld was given.
5691 if test "${with_gnu_ld+set}" = set; then :
5692 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5693 else
5694 with_gnu_ld=no
5695 fi
5696
5697 ac_prog=ld
5698 if test "$GCC" = yes; then
5699 # Check if gcc -print-prog-name=ld gives a path.
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5701 $as_echo_n "checking for ld used by $CC... " >&6; }
5702 case $host in
5703 *-*-mingw*)
5704 # gcc leaves a trailing carriage return which upsets mingw
5705 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5706 *)
5707 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5708 esac
5709 case $ac_prog in
5710 # Accept absolute paths.
5711 [\\/]* | ?:[\\/]*)
5712 re_direlt='/[^/][^/]*/\.\./'
5713 # Canonicalize the pathname of ld
5714 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5715 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5716 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5717 done
5718 test -z "$LD" && LD="$ac_prog"
5719 ;;
5720 "")
5721 # If it fails, then pretend we aren't using GCC.
5722 ac_prog=ld
5723 ;;
5724 *)
5725 # If it is relative, then search for the first ld in PATH.
5726 with_gnu_ld=unknown
5727 ;;
5728 esac
5729 elif test "$with_gnu_ld" = yes; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5731 $as_echo_n "checking for GNU ld... " >&6; }
5732 else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5734 $as_echo_n "checking for non-GNU ld... " >&6; }
5735 fi
5736 if ${lt_cv_path_LD+:} false; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 if test -z "$LD"; then
5740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5741 for ac_dir in $PATH; do
5742 IFS="$lt_save_ifs"
5743 test -z "$ac_dir" && ac_dir=.
5744 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5745 lt_cv_path_LD="$ac_dir/$ac_prog"
5746 # Check to see if the program is GNU ld. I'd rather use --version,
5747 # but apparently some variants of GNU ld only accept -v.
5748 # Break only if it was the GNU/non-GNU ld that we prefer.
5749 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5750 *GNU* | *'with BFD'*)
5751 test "$with_gnu_ld" != no && break
5752 ;;
5753 *)
5754 test "$with_gnu_ld" != yes && break
5755 ;;
5756 esac
5757 fi
5758 done
5759 IFS="$lt_save_ifs"
5760 else
5761 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5762 fi
5763 fi
5764
5765 LD="$lt_cv_path_LD"
5766 if test -n "$LD"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5768 $as_echo "$LD" >&6; }
5769 else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5772 fi
5773 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5775 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5776 if ${lt_cv_prog_gnu_ld+:} false; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5780 case `$LD -v 2>&1 </dev/null` in
5781 *GNU* | *'with BFD'*)
5782 lt_cv_prog_gnu_ld=yes
5783 ;;
5784 *)
5785 lt_cv_prog_gnu_ld=no
5786 ;;
5787 esac
5788 fi
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5790 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5791 with_gnu_ld=$lt_cv_prog_gnu_ld
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5802 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5803 if ${lt_cv_path_NM+:} false; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 if test -n "$NM"; then
5807 # Let the user override the test.
5808 lt_cv_path_NM="$NM"
5809 else
5810 lt_nm_to_check="${ac_tool_prefix}nm"
5811 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5812 lt_nm_to_check="$lt_nm_to_check nm"
5813 fi
5814 for lt_tmp_nm in $lt_nm_to_check; do
5815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5816 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5817 IFS="$lt_save_ifs"
5818 test -z "$ac_dir" && ac_dir=.
5819 tmp_nm="$ac_dir/$lt_tmp_nm"
5820 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5821 # Check to see if the nm accepts a BSD-compat flag.
5822 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5823 # nm: unknown option "B" ignored
5824 # Tru64's nm complains that /dev/null is an invalid object file
5825 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5826 */dev/null* | *'Invalid file or object type'*)
5827 lt_cv_path_NM="$tmp_nm -B"
5828 break
5829 ;;
5830 *)
5831 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5832 */dev/null*)
5833 lt_cv_path_NM="$tmp_nm -p"
5834 break
5835 ;;
5836 *)
5837 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5838 continue # so that we can try to find one that supports BSD flags
5839 ;;
5840 esac
5841 ;;
5842 esac
5843 fi
5844 done
5845 IFS="$lt_save_ifs"
5846 done
5847 : ${lt_cv_path_NM=no}
5848 fi
5849 fi
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5851 $as_echo "$lt_cv_path_NM" >&6; }
5852 if test "$lt_cv_path_NM" != "no"; then
5853 NM="$lt_cv_path_NM"
5854 else
5855 # Didn't find any BSD compatible name lister, look for dumpbin.
5856 if test -n "$DUMPBIN"; then :
5857 # Let the user override the test.
5858 else
5859 if test -n "$ac_tool_prefix"; then
5860 for ac_prog in dumpbin "link -dump"
5861 do
5862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if ${ac_cv_prog_DUMPBIN+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 if test -n "$DUMPBIN"; then
5870 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5882 fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 DUMPBIN=$ac_cv_prog_DUMPBIN
5890 if test -n "$DUMPBIN"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5892 $as_echo "$DUMPBIN" >&6; }
5893 else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898
5899 test -n "$DUMPBIN" && break
5900 done
5901 fi
5902 if test -z "$DUMPBIN"; then
5903 ac_ct_DUMPBIN=$DUMPBIN
5904 for ac_prog in dumpbin "link -dump"
5905 do
5906 # Extract the first word of "$ac_prog", so it can be a program name with args.
5907 set dummy $ac_prog; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 if test -n "$ac_ct_DUMPBIN"; then
5914 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5926 fi
5927 done
5928 done
5929 IFS=$as_save_IFS
5930
5931 fi
5932 fi
5933 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5934 if test -n "$ac_ct_DUMPBIN"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5936 $as_echo "$ac_ct_DUMPBIN" >&6; }
5937 else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5940 fi
5941
5942
5943 test -n "$ac_ct_DUMPBIN" && break
5944 done
5945
5946 if test "x$ac_ct_DUMPBIN" = x; then
5947 DUMPBIN=":"
5948 else
5949 case $cross_compiling:$ac_tool_warned in
5950 yes:)
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5953 ac_tool_warned=yes ;;
5954 esac
5955 DUMPBIN=$ac_ct_DUMPBIN
5956 fi
5957 fi
5958
5959 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5960 *COFF*)
5961 DUMPBIN="$DUMPBIN -symbols"
5962 ;;
5963 *)
5964 DUMPBIN=:
5965 ;;
5966 esac
5967 fi
5968
5969 if test "$DUMPBIN" != ":"; then
5970 NM="$DUMPBIN"
5971 fi
5972 fi
5973 test -z "$NM" && NM=nm
5974
5975
5976
5977
5978
5979
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5981 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5982 if ${lt_cv_nm_interface+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 lt_cv_nm_interface="BSD nm"
5986 echo "int some_variable = 0;" > conftest.$ac_ext
5987 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5988 (eval "$ac_compile" 2>conftest.err)
5989 cat conftest.err >&5
5990 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5991 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5992 cat conftest.err >&5
5993 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5994 cat conftest.out >&5
5995 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5996 lt_cv_nm_interface="MS dumpbin"
5997 fi
5998 rm -f conftest*
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6001 $as_echo "$lt_cv_nm_interface" >&6; }
6002
6003 # find the maximum length of command line arguments
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6005 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6006 if ${lt_cv_sys_max_cmd_len+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 i=0
6010 teststring="ABCD"
6011
6012 case $build_os in
6013 msdosdjgpp*)
6014 # On DJGPP, this test can blow up pretty badly due to problems in libc
6015 # (any single argument exceeding 2000 bytes causes a buffer overrun
6016 # during glob expansion). Even if it were fixed, the result of this
6017 # check would be larger than it should be.
6018 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6019 ;;
6020
6021 gnu*)
6022 # Under GNU Hurd, this test is not required because there is
6023 # no limit to the length of command line arguments.
6024 # Libtool will interpret -1 as no limit whatsoever
6025 lt_cv_sys_max_cmd_len=-1;
6026 ;;
6027
6028 cygwin* | mingw* | cegcc*)
6029 # On Win9x/ME, this test blows up -- it succeeds, but takes
6030 # about 5 minutes as the teststring grows exponentially.
6031 # Worse, since 9x/ME are not pre-emptively multitasking,
6032 # you end up with a "frozen" computer, even though with patience
6033 # the test eventually succeeds (with a max line length of 256k).
6034 # Instead, let's just punt: use the minimum linelength reported by
6035 # all of the supported platforms: 8192 (on NT/2K/XP).
6036 lt_cv_sys_max_cmd_len=8192;
6037 ;;
6038
6039 mint*)
6040 # On MiNT this can take a long time and run out of memory.
6041 lt_cv_sys_max_cmd_len=8192;
6042 ;;
6043
6044 amigaos*)
6045 # On AmigaOS with pdksh, this test takes hours, literally.
6046 # So we just punt and use a minimum line length of 8192.
6047 lt_cv_sys_max_cmd_len=8192;
6048 ;;
6049
6050 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6051 # This has been around since 386BSD, at least. Likely further.
6052 if test -x /sbin/sysctl; then
6053 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6054 elif test -x /usr/sbin/sysctl; then
6055 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6056 else
6057 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6058 fi
6059 # And add a safety zone
6060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6062 ;;
6063
6064 interix*)
6065 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6066 lt_cv_sys_max_cmd_len=196608
6067 ;;
6068
6069 os2*)
6070 # The test takes a long time on OS/2.
6071 lt_cv_sys_max_cmd_len=8192
6072 ;;
6073
6074 osf*)
6075 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6076 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6077 # nice to cause kernel panics so lets avoid the loop below.
6078 # First set a reasonable default.
6079 lt_cv_sys_max_cmd_len=16384
6080 #
6081 if test -x /sbin/sysconfig; then
6082 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6083 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6084 esac
6085 fi
6086 ;;
6087 sco3.2v5*)
6088 lt_cv_sys_max_cmd_len=102400
6089 ;;
6090 sysv5* | sco5v6* | sysv4.2uw2*)
6091 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6092 if test -n "$kargmax"; then
6093 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6094 else
6095 lt_cv_sys_max_cmd_len=32768
6096 fi
6097 ;;
6098 *)
6099 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6100 if test -n "$lt_cv_sys_max_cmd_len"; then
6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6103 else
6104 # Make teststring a little bigger before we do anything with it.
6105 # a 1K string should be a reasonable start.
6106 for i in 1 2 3 4 5 6 7 8 ; do
6107 teststring=$teststring$teststring
6108 done
6109 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6110 # If test is not a shell built-in, we'll probably end up computing a
6111 # maximum length that is only half of the actual maximum length, but
6112 # we can't tell.
6113 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6114 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6115 test $i != 17 # 1/2 MB should be enough
6116 do
6117 i=`expr $i + 1`
6118 teststring=$teststring$teststring
6119 done
6120 # Only check the string length outside the loop.
6121 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6122 teststring=
6123 # Add a significant safety factor because C++ compilers can tack on
6124 # massive amounts of additional arguments before passing them to the
6125 # linker. It appears as though 1/2 is a usable value.
6126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6127 fi
6128 ;;
6129 esac
6130
6131 fi
6132
6133 if test -n $lt_cv_sys_max_cmd_len ; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6135 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6136 else
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6138 $as_echo "none" >&6; }
6139 fi
6140 max_cmd_len=$lt_cv_sys_max_cmd_len
6141
6142
6143
6144
6145
6146
6147 : ${CP="cp -f"}
6148 : ${MV="mv -f"}
6149 : ${RM="rm -f"}
6150
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6152 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6153 # Try some XSI features
6154 xsi_shell=no
6155 ( _lt_dummy="a/b/c"
6156 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6157 = c,a/b,b/c, \
6158 && eval 'test $(( 1 + 1 )) -eq 2 \
6159 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6160 && xsi_shell=yes
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6162 $as_echo "$xsi_shell" >&6; }
6163
6164
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6166 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6167 lt_shell_append=no
6168 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6169 >/dev/null 2>&1 \
6170 && lt_shell_append=yes
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6172 $as_echo "$lt_shell_append" >&6; }
6173
6174
6175 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6176 lt_unset=unset
6177 else
6178 lt_unset=false
6179 fi
6180
6181
6182
6183
6184
6185 # test EBCDIC or ASCII
6186 case `echo X|tr X '\101'` in
6187 A) # ASCII based system
6188 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6189 lt_SP2NL='tr \040 \012'
6190 lt_NL2SP='tr \015\012 \040\040'
6191 ;;
6192 *) # EBCDIC based system
6193 lt_SP2NL='tr \100 \n'
6194 lt_NL2SP='tr \r\n \100\100'
6195 ;;
6196 esac
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6207 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6208 if ${lt_cv_to_host_file_cmd+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 case $host in
6212 *-*-mingw* )
6213 case $build in
6214 *-*-mingw* ) # actually msys
6215 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6216 ;;
6217 *-*-cygwin* )
6218 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6219 ;;
6220 * ) # otherwise, assume *nix
6221 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6222 ;;
6223 esac
6224 ;;
6225 *-*-cygwin* )
6226 case $build in
6227 *-*-mingw* ) # actually msys
6228 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6229 ;;
6230 *-*-cygwin* )
6231 lt_cv_to_host_file_cmd=func_convert_file_noop
6232 ;;
6233 * ) # otherwise, assume *nix
6234 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6235 ;;
6236 esac
6237 ;;
6238 * ) # unhandled hosts (and "normal" native builds)
6239 lt_cv_to_host_file_cmd=func_convert_file_noop
6240 ;;
6241 esac
6242
6243 fi
6244
6245 to_host_file_cmd=$lt_cv_to_host_file_cmd
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6247 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6248
6249
6250
6251
6252
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6254 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6255 if ${lt_cv_to_tool_file_cmd+:} false; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 #assume ordinary cross tools, or native build.
6259 lt_cv_to_tool_file_cmd=func_convert_file_noop
6260 case $host in
6261 *-*-mingw* )
6262 case $build in
6263 *-*-mingw* ) # actually msys
6264 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6265 ;;
6266 esac
6267 ;;
6268 esac
6269
6270 fi
6271
6272 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6274 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6275
6276
6277
6278
6279
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6281 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6282 if ${lt_cv_ld_reload_flag+:} false; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 lt_cv_ld_reload_flag='-r'
6286 fi
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6288 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6289 reload_flag=$lt_cv_ld_reload_flag
6290 case $reload_flag in
6291 "" | " "*) ;;
6292 *) reload_flag=" $reload_flag" ;;
6293 esac
6294 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6295 case $host_os in
6296 cygwin* | mingw* | pw32* | cegcc*)
6297 if test "$GCC" != yes; then
6298 reload_cmds=false
6299 fi
6300 ;;
6301 darwin*)
6302 if test "$GCC" = yes; then
6303 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6304 else
6305 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6306 fi
6307 ;;
6308 esac
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318 if test -n "$ac_tool_prefix"; then
6319 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6320 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if ${ac_cv_prog_OBJDUMP+:} false; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 if test -n "$OBJDUMP"; then
6327 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340 done
6341 done
6342 IFS=$as_save_IFS
6343
6344 fi
6345 fi
6346 OBJDUMP=$ac_cv_prog_OBJDUMP
6347 if test -n "$OBJDUMP"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6349 $as_echo "$OBJDUMP" >&6; }
6350 else
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6353 fi
6354
6355
6356 fi
6357 if test -z "$ac_cv_prog_OBJDUMP"; then
6358 ac_ct_OBJDUMP=$OBJDUMP
6359 # Extract the first word of "objdump", so it can be a program name with args.
6360 set dummy objdump; ac_word=$2
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 $as_echo_n "checking for $ac_word... " >&6; }
6363 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 if test -n "$ac_ct_OBJDUMP"; then
6367 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6368 else
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6371 do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6379 fi
6380 done
6381 done
6382 IFS=$as_save_IFS
6383
6384 fi
6385 fi
6386 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6387 if test -n "$ac_ct_OBJDUMP"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6389 $as_echo "$ac_ct_OBJDUMP" >&6; }
6390 else
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6393 fi
6394
6395 if test "x$ac_ct_OBJDUMP" = x; then
6396 OBJDUMP="false"
6397 else
6398 case $cross_compiling:$ac_tool_warned in
6399 yes:)
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6402 ac_tool_warned=yes ;;
6403 esac
6404 OBJDUMP=$ac_ct_OBJDUMP
6405 fi
6406 else
6407 OBJDUMP="$ac_cv_prog_OBJDUMP"
6408 fi
6409
6410 test -z "$OBJDUMP" && OBJDUMP=objdump
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6421 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6422 if ${lt_cv_deplibs_check_method+:} false; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 lt_cv_file_magic_cmd='$MAGIC_CMD'
6426 lt_cv_file_magic_test_file=
6427 lt_cv_deplibs_check_method='unknown'
6428 # Need to set the preceding variable on all platforms that support
6429 # interlibrary dependencies.
6430 # 'none' -- dependencies not supported.
6431 # `unknown' -- same as none, but documents that we really don't know.
6432 # 'pass_all' -- all dependencies passed with no checks.
6433 # 'test_compile' -- check by making test program.
6434 # 'file_magic [[regex]]' -- check by looking for files in library path
6435 # which responds to the $file_magic_cmd with a given extended regex.
6436 # If you have `file' or equivalent on your system and you're not sure
6437 # whether `pass_all' will *always* work, you probably want this one.
6438
6439 case $host_os in
6440 aix[4-9]*)
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
6443
6444 beos*)
6445 lt_cv_deplibs_check_method=pass_all
6446 ;;
6447
6448 bsdi[45]*)
6449 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6450 lt_cv_file_magic_cmd='/usr/bin/file -L'
6451 lt_cv_file_magic_test_file=/shlib/libc.so
6452 ;;
6453
6454 cygwin*)
6455 # func_win32_libid is a shell function defined in ltmain.sh
6456 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6457 lt_cv_file_magic_cmd='func_win32_libid'
6458 ;;
6459
6460 mingw* | pw32*)
6461 # Base MSYS/MinGW do not provide the 'file' command needed by
6462 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6463 # unless we find 'file', for example because we are cross-compiling.
6464 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6465 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6466 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6467 lt_cv_file_magic_cmd='func_win32_libid'
6468 else
6469 # Keep this pattern in sync with the one in func_win32_libid.
6470 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6471 lt_cv_file_magic_cmd='$OBJDUMP -f'
6472 fi
6473 ;;
6474
6475 cegcc*)
6476 # use the weaker test based on 'objdump'. See mingw*.
6477 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6478 lt_cv_file_magic_cmd='$OBJDUMP -f'
6479 ;;
6480
6481 darwin* | rhapsody*)
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
6484
6485 freebsd* | dragonfly*)
6486 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6487 case $host_cpu in
6488 i*86 )
6489 # Not sure whether the presence of OpenBSD here was a mistake.
6490 # Let's accept both of them until this is cleared up.
6491 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6492 lt_cv_file_magic_cmd=/usr/bin/file
6493 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6494 ;;
6495 esac
6496 else
6497 lt_cv_deplibs_check_method=pass_all
6498 fi
6499 ;;
6500
6501 gnu*)
6502 lt_cv_deplibs_check_method=pass_all
6503 ;;
6504
6505 haiku*)
6506 lt_cv_deplibs_check_method=pass_all
6507 ;;
6508
6509 hpux10.20* | hpux11*)
6510 lt_cv_file_magic_cmd=/usr/bin/file
6511 case $host_cpu in
6512 ia64*)
6513 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6514 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6515 ;;
6516 hppa*64*)
6517 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]'
6518 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6519 ;;
6520 *)
6521 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6522 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6523 ;;
6524 esac
6525 ;;
6526
6527 interix[3-9]*)
6528 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6530 ;;
6531
6532 irix5* | irix6* | nonstopux*)
6533 case $LD in
6534 *-32|*"-32 ") libmagic=32-bit;;
6535 *-n32|*"-n32 ") libmagic=N32;;
6536 *-64|*"-64 ") libmagic=64-bit;;
6537 *) libmagic=never-match;;
6538 esac
6539 lt_cv_deplibs_check_method=pass_all
6540 ;;
6541
6542 # This must be glibc/ELF.
6543 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6544 lt_cv_deplibs_check_method=pass_all
6545 ;;
6546
6547 netbsd*)
6548 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6550 else
6551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6552 fi
6553 ;;
6554
6555 newos6*)
6556 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6557 lt_cv_file_magic_cmd=/usr/bin/file
6558 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6559 ;;
6560
6561 *nto* | *qnx*)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564
6565 openbsd*)
6566 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6568 else
6569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6570 fi
6571 ;;
6572
6573 osf3* | osf4* | osf5*)
6574 lt_cv_deplibs_check_method=pass_all
6575 ;;
6576
6577 rdos*)
6578 lt_cv_deplibs_check_method=pass_all
6579 ;;
6580
6581 solaris*)
6582 lt_cv_deplibs_check_method=pass_all
6583 ;;
6584
6585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6586 lt_cv_deplibs_check_method=pass_all
6587 ;;
6588
6589 sysv4 | sysv4.3*)
6590 case $host_vendor in
6591 motorola)
6592 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]'
6593 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6594 ;;
6595 ncr)
6596 lt_cv_deplibs_check_method=pass_all
6597 ;;
6598 sequent)
6599 lt_cv_file_magic_cmd='/bin/file'
6600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6601 ;;
6602 sni)
6603 lt_cv_file_magic_cmd='/bin/file'
6604 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6605 lt_cv_file_magic_test_file=/lib/libc.so
6606 ;;
6607 siemens)
6608 lt_cv_deplibs_check_method=pass_all
6609 ;;
6610 pc)
6611 lt_cv_deplibs_check_method=pass_all
6612 ;;
6613 esac
6614 ;;
6615
6616 tpf*)
6617 lt_cv_deplibs_check_method=pass_all
6618 ;;
6619 esac
6620
6621 fi
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6623 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6624
6625 file_magic_glob=
6626 want_nocaseglob=no
6627 if test "$build" = "$host"; then
6628 case $host_os in
6629 mingw* | pw32*)
6630 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6631 want_nocaseglob=yes
6632 else
6633 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6634 fi
6635 ;;
6636 esac
6637 fi
6638
6639 file_magic_cmd=$lt_cv_file_magic_cmd
6640 deplibs_check_method=$lt_cv_deplibs_check_method
6641 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664 if test -n "$ac_tool_prefix"; then
6665 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6666 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_DLLTOOL+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 if test -n "$DLLTOOL"; then
6673 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6682 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690 fi
6691 fi
6692 DLLTOOL=$ac_cv_prog_DLLTOOL
6693 if test -n "$DLLTOOL"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6695 $as_echo "$DLLTOOL" >&6; }
6696 else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6699 fi
6700
6701
6702 fi
6703 if test -z "$ac_cv_prog_DLLTOOL"; then
6704 ac_ct_DLLTOOL=$DLLTOOL
6705 # Extract the first word of "dlltool", so it can be a program name with args.
6706 set dummy dlltool; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 if test -n "$ac_ct_DLLTOOL"; then
6713 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6722 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6725 fi
6726 done
6727 done
6728 IFS=$as_save_IFS
6729
6730 fi
6731 fi
6732 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6733 if test -n "$ac_ct_DLLTOOL"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6735 $as_echo "$ac_ct_DLLTOOL" >&6; }
6736 else
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6739 fi
6740
6741 if test "x$ac_ct_DLLTOOL" = x; then
6742 DLLTOOL="false"
6743 else
6744 case $cross_compiling:$ac_tool_warned in
6745 yes:)
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6748 ac_tool_warned=yes ;;
6749 esac
6750 DLLTOOL=$ac_ct_DLLTOOL
6751 fi
6752 else
6753 DLLTOOL="$ac_cv_prog_DLLTOOL"
6754 fi
6755
6756 test -z "$DLLTOOL" && DLLTOOL=dlltool
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6768 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6769 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 lt_cv_sharedlib_from_linklib_cmd='unknown'
6773
6774 case $host_os in
6775 cygwin* | mingw* | pw32* | cegcc*)
6776 # two different shell functions defined in ltmain.sh
6777 # decide which to use based on capabilities of $DLLTOOL
6778 case `$DLLTOOL --help 2>&1` in
6779 *--identify-strict*)
6780 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6781 ;;
6782 *)
6783 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6784 ;;
6785 esac
6786 ;;
6787 *)
6788 # fallback: assume linklib IS sharedlib
6789 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6790 ;;
6791 esac
6792
6793 fi
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6795 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6796 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6797 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6798
6799
6800
6801
6802
6803
6804
6805 if test -n "$ac_tool_prefix"; then
6806 for ac_prog in ar
6807 do
6808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_AR+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 if test -n "$AR"; then
6816 ac_cv_prog_AR="$AR" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 AR=$ac_cv_prog_AR
6836 if test -n "$AR"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6838 $as_echo "$AR" >&6; }
6839 else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844
6845 test -n "$AR" && break
6846 done
6847 fi
6848 if test -z "$AR"; then
6849 ac_ct_AR=$AR
6850 for ac_prog in ar
6851 do
6852 # Extract the first word of "$ac_prog", so it can be a program name with args.
6853 set dummy $ac_prog; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 if test -n "$ac_ct_AR"; then
6860 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_ac_ct_AR="$ac_prog"
6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6880 if test -n "$ac_ct_AR"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6882 $as_echo "$ac_ct_AR" >&6; }
6883 else
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6886 fi
6887
6888
6889 test -n "$ac_ct_AR" && break
6890 done
6891
6892 if test "x$ac_ct_AR" = x; then
6893 AR="false"
6894 else
6895 case $cross_compiling:$ac_tool_warned in
6896 yes:)
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899 ac_tool_warned=yes ;;
6900 esac
6901 AR=$ac_ct_AR
6902 fi
6903 fi
6904
6905 : ${AR=ar}
6906 : ${AR_FLAGS=cru}
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6919 $as_echo_n "checking for archiver @FILE support... " >&6; }
6920 if ${lt_cv_ar_at_file+:} false; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 lt_cv_ar_at_file=no
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6926
6927 int
6928 main ()
6929 {
6930
6931 ;
6932 return 0;
6933 }
6934 _ACEOF
6935 if ac_fn_c_try_compile "$LINENO"; then :
6936 echo conftest.$ac_objext > conftest.lst
6937 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6939 (eval $lt_ar_try) 2>&5
6940 ac_status=$?
6941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942 test $ac_status = 0; }
6943 if test "$ac_status" -eq 0; then
6944 # Ensure the archiver fails upon bogus file names.
6945 rm -f conftest.$ac_objext libconftest.a
6946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6947 (eval $lt_ar_try) 2>&5
6948 ac_status=$?
6949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6950 test $ac_status = 0; }
6951 if test "$ac_status" -ne 0; then
6952 lt_cv_ar_at_file=@
6953 fi
6954 fi
6955 rm -f conftest.* libconftest.a
6956
6957 fi
6958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959
6960 fi
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6962 $as_echo "$lt_cv_ar_at_file" >&6; }
6963
6964 if test "x$lt_cv_ar_at_file" = xno; then
6965 archiver_list_spec=
6966 else
6967 archiver_list_spec=$lt_cv_ar_at_file
6968 fi
6969
6970
6971
6972
6973
6974
6975
6976 if test -n "$ac_tool_prefix"; then
6977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}strip; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if ${ac_cv_prog_STRIP+:} false; then :
6982 $as_echo_n "(cached) " >&6
6983 else
6984 if test -n "$STRIP"; then
6985 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 break 2
6997 fi
6998 done
6999 done
7000 IFS=$as_save_IFS
7001
7002 fi
7003 fi
7004 STRIP=$ac_cv_prog_STRIP
7005 if test -n "$STRIP"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7007 $as_echo "$STRIP" >&6; }
7008 else
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7011 fi
7012
7013
7014 fi
7015 if test -z "$ac_cv_prog_STRIP"; then
7016 ac_ct_STRIP=$STRIP
7017 # Extract the first word of "strip", so it can be a program name with args.
7018 set dummy strip; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 if test -n "$ac_ct_STRIP"; then
7025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034 ac_cv_prog_ac_ct_STRIP="strip"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 break 2
7037 fi
7038 done
7039 done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7045 if test -n "$ac_ct_STRIP"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7047 $as_echo "$ac_ct_STRIP" >&6; }
7048 else
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7051 fi
7052
7053 if test "x$ac_ct_STRIP" = x; then
7054 STRIP=":"
7055 else
7056 case $cross_compiling:$ac_tool_warned in
7057 yes:)
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060 ac_tool_warned=yes ;;
7061 esac
7062 STRIP=$ac_ct_STRIP
7063 fi
7064 else
7065 STRIP="$ac_cv_prog_STRIP"
7066 fi
7067
7068 test -z "$STRIP" && STRIP=:
7069
7070
7071
7072
7073
7074
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7077 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_RANLIB+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 if test -n "$RANLIB"; then
7084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101 fi
7102 fi
7103 RANLIB=$ac_cv_prog_RANLIB
7104 if test -n "$RANLIB"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7106 $as_echo "$RANLIB" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112
7113 fi
7114 if test -z "$ac_cv_prog_RANLIB"; then
7115 ac_ct_RANLIB=$RANLIB
7116 # Extract the first word of "ranlib", so it can be a program name with args.
7117 set dummy ranlib; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 if test -n "$ac_ct_RANLIB"; then
7124 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_ac_ct_RANLIB="ranlib"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7144 if test -n "$ac_ct_RANLIB"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7146 $as_echo "$ac_ct_RANLIB" >&6; }
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7150 fi
7151
7152 if test "x$ac_ct_RANLIB" = x; then
7153 RANLIB=":"
7154 else
7155 case $cross_compiling:$ac_tool_warned in
7156 yes:)
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159 ac_tool_warned=yes ;;
7160 esac
7161 RANLIB=$ac_ct_RANLIB
7162 fi
7163 else
7164 RANLIB="$ac_cv_prog_RANLIB"
7165 fi
7166
7167 test -z "$RANLIB" && RANLIB=:
7168
7169
7170
7171
7172
7173
7174 # Determine commands to create old-style static archives.
7175 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7176 old_postinstall_cmds='chmod 644 $oldlib'
7177 old_postuninstall_cmds=
7178
7179 if test -n "$RANLIB"; then
7180 case $host_os in
7181 openbsd*)
7182 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7183 ;;
7184 *)
7185 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7186 ;;
7187 esac
7188 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7189 fi
7190
7191 case $host_os in
7192 darwin*)
7193 lock_old_archive_extraction=yes ;;
7194 *)
7195 lock_old_archive_extraction=no ;;
7196 esac
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236 # If no C compiler was specified, use CC.
7237 LTCC=${LTCC-"$CC"}
7238
7239 # If no C compiler flags were specified, use CFLAGS.
7240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7241
7242 # Allow CC to be a program name with arguments.
7243 compiler=$CC
7244
7245
7246 # Check for command to grab the raw symbol name followed by C symbol from nm.
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7248 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7249 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252
7253 # These are sane defaults that work on at least a few old systems.
7254 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7255
7256 # Character class describing NM global symbol codes.
7257 symcode='[BCDEGRST]'
7258
7259 # Regexp to match symbols that can be accessed directly from C.
7260 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7261
7262 # Define system-specific variables.
7263 case $host_os in
7264 aix*)
7265 symcode='[BCDT]'
7266 ;;
7267 cygwin* | mingw* | pw32* | cegcc*)
7268 symcode='[ABCDGISTW]'
7269 ;;
7270 hpux*)
7271 if test "$host_cpu" = ia64; then
7272 symcode='[ABCDEGRST]'
7273 fi
7274 ;;
7275 irix* | nonstopux*)
7276 symcode='[BCDEGRST]'
7277 ;;
7278 osf*)
7279 symcode='[BCDEGQRST]'
7280 ;;
7281 solaris*)
7282 symcode='[BDRT]'
7283 ;;
7284 sco3.2v5*)
7285 symcode='[DT]'
7286 ;;
7287 sysv4.2uw2*)
7288 symcode='[DT]'
7289 ;;
7290 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7291 symcode='[ABDT]'
7292 ;;
7293 sysv4)
7294 symcode='[DFNSTU]'
7295 ;;
7296 esac
7297
7298 # If we're using GNU nm, then use its standard symbol codes.
7299 case `$NM -V 2>&1` in
7300 *GNU* | *'with BFD'*)
7301 symcode='[ABCDGIRSTW]' ;;
7302 esac
7303
7304 # Transform an extracted symbol line into a proper C declaration.
7305 # Some systems (esp. on ia64) link data and code symbols differently,
7306 # so use this general approach.
7307 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7308
7309 # Transform an extracted symbol line into symbol name and symbol address
7310 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7311 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'"
7312
7313 # Handle CRLF in mingw tool chain
7314 opt_cr=
7315 case $build_os in
7316 mingw*)
7317 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7318 ;;
7319 esac
7320
7321 # Try without a prefix underscore, then with it.
7322 for ac_symprfx in "" "_"; do
7323
7324 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7325 symxfrm="\\1 $ac_symprfx\\2 \\2"
7326
7327 # Write the raw and C identifiers.
7328 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7329 # Fake it for dumpbin and say T for any non-static function
7330 # and D for any global variable.
7331 # Also find C++ and __fastcall symbols from MSVC++,
7332 # which start with @ or ?.
7333 lt_cv_sys_global_symbol_pipe="$AWK '"\
7334 " {last_section=section; section=\$ 3};"\
7335 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7336 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7337 " \$ 0!~/External *\|/{next};"\
7338 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7339 " {if(hide[section]) next};"\
7340 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7341 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7342 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7343 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7344 " ' prfx=^$ac_symprfx"
7345 else
7346 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7347 fi
7348 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7349
7350 # Check to see that the pipe works correctly.
7351 pipe_works=no
7352
7353 rm -f conftest*
7354 cat > conftest.$ac_ext <<_LT_EOF
7355 #ifdef __cplusplus
7356 extern "C" {
7357 #endif
7358 char nm_test_var;
7359 void nm_test_func(void);
7360 void nm_test_func(void){}
7361 #ifdef __cplusplus
7362 }
7363 #endif
7364 int main(){nm_test_var='a';nm_test_func();return(0);}
7365 _LT_EOF
7366
7367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7368 (eval $ac_compile) 2>&5
7369 ac_status=$?
7370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7371 test $ac_status = 0; }; then
7372 # Now try to grab the symbols.
7373 nlist=conftest.nm
7374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7375 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7376 ac_status=$?
7377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7378 test $ac_status = 0; } && test -s "$nlist"; then
7379 # Try sorting and uniquifying the output.
7380 if sort "$nlist" | uniq > "$nlist"T; then
7381 mv -f "$nlist"T "$nlist"
7382 else
7383 rm -f "$nlist"T
7384 fi
7385
7386 # Make sure that we snagged all the symbols we need.
7387 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7388 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7389 cat <<_LT_EOF > conftest.$ac_ext
7390 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7391 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7392 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7393 relocations are performed -- see ld's documentation on pseudo-relocs. */
7394 # define LT_DLSYM_CONST
7395 #elif defined(__osf__)
7396 /* This system does not cope well with relocations in const data. */
7397 # define LT_DLSYM_CONST
7398 #else
7399 # define LT_DLSYM_CONST const
7400 #endif
7401
7402 #ifdef __cplusplus
7403 extern "C" {
7404 #endif
7405
7406 _LT_EOF
7407 # Now generate the symbol file.
7408 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7409
7410 cat <<_LT_EOF >> conftest.$ac_ext
7411
7412 /* The mapping between symbol names and symbols. */
7413 LT_DLSYM_CONST struct {
7414 const char *name;
7415 void *address;
7416 }
7417 lt__PROGRAM__LTX_preloaded_symbols[] =
7418 {
7419 { "@PROGRAM@", (void *) 0 },
7420 _LT_EOF
7421 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7422 cat <<\_LT_EOF >> conftest.$ac_ext
7423 {0, (void *) 0}
7424 };
7425
7426 /* This works around a problem in FreeBSD linker */
7427 #ifdef FREEBSD_WORKAROUND
7428 static const void *lt_preloaded_setup() {
7429 return lt__PROGRAM__LTX_preloaded_symbols;
7430 }
7431 #endif
7432
7433 #ifdef __cplusplus
7434 }
7435 #endif
7436 _LT_EOF
7437 # Now try linking the two files.
7438 mv conftest.$ac_objext conftstm.$ac_objext
7439 lt_globsym_save_LIBS=$LIBS
7440 lt_globsym_save_CFLAGS=$CFLAGS
7441 LIBS="conftstm.$ac_objext"
7442 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7444 (eval $ac_link) 2>&5
7445 ac_status=$?
7446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7447 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7448 pipe_works=yes
7449 fi
7450 LIBS=$lt_globsym_save_LIBS
7451 CFLAGS=$lt_globsym_save_CFLAGS
7452 else
7453 echo "cannot find nm_test_func in $nlist" >&5
7454 fi
7455 else
7456 echo "cannot find nm_test_var in $nlist" >&5
7457 fi
7458 else
7459 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7460 fi
7461 else
7462 echo "$progname: failed program was:" >&5
7463 cat conftest.$ac_ext >&5
7464 fi
7465 rm -rf conftest* conftst*
7466
7467 # Do not use the global_symbol_pipe unless it works.
7468 if test "$pipe_works" = yes; then
7469 break
7470 else
7471 lt_cv_sys_global_symbol_pipe=
7472 fi
7473 done
7474
7475 fi
7476
7477 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7478 lt_cv_sys_global_symbol_to_cdecl=
7479 fi
7480 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7482 $as_echo "failed" >&6; }
7483 else
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7485 $as_echo "ok" >&6; }
7486 fi
7487
7488 # Response file support.
7489 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7490 nm_file_list_spec='@'
7491 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7492 nm_file_list_spec='@'
7493 fi
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7522 $as_echo_n "checking for sysroot... " >&6; }
7523
7524 # Check whether --with-sysroot was given.
7525 if test "${with_sysroot+set}" = set; then :
7526 withval=$with_sysroot;
7527 else
7528 with_sysroot=no
7529 fi
7530
7531
7532 lt_sysroot=
7533 case ${with_sysroot} in #(
7534 yes)
7535 if test "$GCC" = yes; then
7536 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7537 fi
7538 ;; #(
7539 /*)
7540 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7541 ;; #(
7542 no|'')
7543 ;; #(
7544 *)
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7546 $as_echo "${with_sysroot}" >&6; }
7547 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7548 ;;
7549 esac
7550
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7552 $as_echo "${lt_sysroot:-no}" >&6; }
7553
7554
7555
7556
7557
7558 # Check whether --enable-libtool-lock was given.
7559 if test "${enable_libtool_lock+set}" = set; then :
7560 enableval=$enable_libtool_lock;
7561 fi
7562
7563 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7564
7565 # Some flags need to be propagated to the compiler or linker for good
7566 # libtool support.
7567 case $host in
7568 ia64-*-hpux*)
7569 # Find out which ABI we are using.
7570 echo 'int i;' > conftest.$ac_ext
7571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7572 (eval $ac_compile) 2>&5
7573 ac_status=$?
7574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7575 test $ac_status = 0; }; then
7576 case `/usr/bin/file conftest.$ac_objext` in
7577 *ELF-32*)
7578 HPUX_IA64_MODE="32"
7579 ;;
7580 *ELF-64*)
7581 HPUX_IA64_MODE="64"
7582 ;;
7583 esac
7584 fi
7585 rm -rf conftest*
7586 ;;
7587 *-*-irix6*)
7588 # Find out which ABI we are using.
7589 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7591 (eval $ac_compile) 2>&5
7592 ac_status=$?
7593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7594 test $ac_status = 0; }; then
7595 if test "$lt_cv_prog_gnu_ld" = yes; then
7596 case `/usr/bin/file conftest.$ac_objext` in
7597 *32-bit*)
7598 LD="${LD-ld} -melf32bsmip"
7599 ;;
7600 *N32*)
7601 LD="${LD-ld} -melf32bmipn32"
7602 ;;
7603 *64-bit*)
7604 LD="${LD-ld} -melf64bmip"
7605 ;;
7606 esac
7607 else
7608 case `/usr/bin/file conftest.$ac_objext` in
7609 *32-bit*)
7610 LD="${LD-ld} -32"
7611 ;;
7612 *N32*)
7613 LD="${LD-ld} -n32"
7614 ;;
7615 *64-bit*)
7616 LD="${LD-ld} -64"
7617 ;;
7618 esac
7619 fi
7620 fi
7621 rm -rf conftest*
7622 ;;
7623
7624 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7625 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7626 # Find out which ABI we are using.
7627 echo 'int i;' > conftest.$ac_ext
7628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7629 (eval $ac_compile) 2>&5
7630 ac_status=$?
7631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7632 test $ac_status = 0; }; then
7633 case `/usr/bin/file conftest.o` in
7634 *32-bit*)
7635 case $host in
7636 x86_64-*kfreebsd*-gnu)
7637 LD="${LD-ld} -m elf_i386_fbsd"
7638 ;;
7639 x86_64-*linux*)
7640 LD="${LD-ld} -m elf_i386"
7641 ;;
7642 ppc64-*linux*|powerpc64-*linux*)
7643 LD="${LD-ld} -m elf32ppclinux"
7644 ;;
7645 s390x-*linux*)
7646 LD="${LD-ld} -m elf_s390"
7647 ;;
7648 sparc64-*linux*)
7649 LD="${LD-ld} -m elf32_sparc"
7650 ;;
7651 esac
7652 ;;
7653 *64-bit*)
7654 case $host in
7655 x86_64-*kfreebsd*-gnu)
7656 LD="${LD-ld} -m elf_x86_64_fbsd"
7657 ;;
7658 x86_64-*linux*)
7659 LD="${LD-ld} -m elf_x86_64"
7660 ;;
7661 ppc*-*linux*|powerpc*-*linux*)
7662 LD="${LD-ld} -m elf64ppc"
7663 ;;
7664 s390*-*linux*|s390*-*tpf*)
7665 LD="${LD-ld} -m elf64_s390"
7666 ;;
7667 sparc*-*linux*)
7668 LD="${LD-ld} -m elf64_sparc"
7669 ;;
7670 esac
7671 ;;
7672 esac
7673 fi
7674 rm -rf conftest*
7675 ;;
7676
7677 *-*-sco3.2v5*)
7678 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7679 SAVE_CFLAGS="$CFLAGS"
7680 CFLAGS="$CFLAGS -belf"
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7682 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7683 if ${lt_cv_cc_needs_belf+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 ac_ext=c
7687 ac_cpp='$CPP $CPPFLAGS'
7688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7691
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694
7695 int
7696 main ()
7697 {
7698
7699 ;
7700 return 0;
7701 }
7702 _ACEOF
7703 if ac_fn_c_try_link "$LINENO"; then :
7704 lt_cv_cc_needs_belf=yes
7705 else
7706 lt_cv_cc_needs_belf=no
7707 fi
7708 rm -f core conftest.err conftest.$ac_objext \
7709 conftest$ac_exeext conftest.$ac_ext
7710 ac_ext=c
7711 ac_cpp='$CPP $CPPFLAGS'
7712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715
7716 fi
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7718 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7719 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7720 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7721 CFLAGS="$SAVE_CFLAGS"
7722 fi
7723 ;;
7724 *-*solaris*)
7725 # Find out which ABI we are using.
7726 echo 'int i;' > conftest.$ac_ext
7727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7728 (eval $ac_compile) 2>&5
7729 ac_status=$?
7730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7731 test $ac_status = 0; }; then
7732 case `/usr/bin/file conftest.o` in
7733 *64-bit*)
7734 case $lt_cv_prog_gnu_ld in
7735 yes*)
7736 case $host in
7737 i?86-*-solaris*)
7738 LD="${LD-ld} -m elf_x86_64"
7739 ;;
7740 sparc*-*-solaris*)
7741 LD="${LD-ld} -m elf64_sparc"
7742 ;;
7743 esac
7744 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7745 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7746 LD="${LD-ld}_sol2"
7747 fi
7748 ;;
7749 *)
7750 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7751 LD="${LD-ld} -64"
7752 fi
7753 ;;
7754 esac
7755 ;;
7756 esac
7757 fi
7758 rm -rf conftest*
7759 ;;
7760 esac
7761
7762 need_locks="$enable_libtool_lock"
7763
7764 if test -n "$ac_tool_prefix"; then
7765 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7766 set dummy ${ac_tool_prefix}mt; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 if test -n "$MANIFEST_TOOL"; then
7773 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7785 fi
7786 done
7787 done
7788 IFS=$as_save_IFS
7789
7790 fi
7791 fi
7792 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7793 if test -n "$MANIFEST_TOOL"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7795 $as_echo "$MANIFEST_TOOL" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 fi
7800
7801
7802 fi
7803 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7804 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7805 # Extract the first word of "mt", so it can be a program name with args.
7806 set dummy mt; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 if test -n "$ac_ct_MANIFEST_TOOL"; then
7813 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826 done
7827 done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7833 if test -n "$ac_ct_MANIFEST_TOOL"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7835 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7836 else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840
7841 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7842 MANIFEST_TOOL=":"
7843 else
7844 case $cross_compiling:$ac_tool_warned in
7845 yes:)
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7848 ac_tool_warned=yes ;;
7849 esac
7850 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7851 fi
7852 else
7853 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7854 fi
7855
7856 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7858 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7859 if ${lt_cv_path_mainfest_tool+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 lt_cv_path_mainfest_tool=no
7863 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7864 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7865 cat conftest.err >&5
7866 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7867 lt_cv_path_mainfest_tool=yes
7868 fi
7869 rm -f conftest*
7870 fi
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7872 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7873 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7874 MANIFEST_TOOL=:
7875 fi
7876
7877
7878
7879
7880
7881
7882 case $host_os in
7883 rhapsody* | darwin*)
7884 if test -n "$ac_tool_prefix"; then
7885 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7886 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 $as_echo_n "checking for $ac_word... " >&6; }
7889 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 if test -n "$DSYMUTIL"; then
7893 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7894 else
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7897 do
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7902 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2
7905 fi
7906 done
7907 done
7908 IFS=$as_save_IFS
7909
7910 fi
7911 fi
7912 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7913 if test -n "$DSYMUTIL"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7915 $as_echo "$DSYMUTIL" >&6; }
7916 else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7919 fi
7920
7921
7922 fi
7923 if test -z "$ac_cv_prog_DSYMUTIL"; then
7924 ac_ct_DSYMUTIL=$DSYMUTIL
7925 # Extract the first word of "dsymutil", so it can be a program name with args.
7926 set dummy dsymutil; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 if test -n "$ac_ct_DSYMUTIL"; then
7933 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7942 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7945 fi
7946 done
7947 done
7948 IFS=$as_save_IFS
7949
7950 fi
7951 fi
7952 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7953 if test -n "$ac_ct_DSYMUTIL"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7955 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7956 else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7959 fi
7960
7961 if test "x$ac_ct_DSYMUTIL" = x; then
7962 DSYMUTIL=":"
7963 else
7964 case $cross_compiling:$ac_tool_warned in
7965 yes:)
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7968 ac_tool_warned=yes ;;
7969 esac
7970 DSYMUTIL=$ac_ct_DSYMUTIL
7971 fi
7972 else
7973 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7974 fi
7975
7976 if test -n "$ac_tool_prefix"; then
7977 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7978 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 $as_echo_n "checking for $ac_word... " >&6; }
7981 if ${ac_cv_prog_NMEDIT+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 if test -n "$NMEDIT"; then
7985 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7989 do
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7997 fi
7998 done
7999 done
8000 IFS=$as_save_IFS
8001
8002 fi
8003 fi
8004 NMEDIT=$ac_cv_prog_NMEDIT
8005 if test -n "$NMEDIT"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8007 $as_echo "$NMEDIT" >&6; }
8008 else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8011 fi
8012
8013
8014 fi
8015 if test -z "$ac_cv_prog_NMEDIT"; then
8016 ac_ct_NMEDIT=$NMEDIT
8017 # Extract the first word of "nmedit", so it can be a program name with args.
8018 set dummy nmedit; ac_word=$2
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 $as_echo_n "checking for $ac_word... " >&6; }
8021 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 if test -n "$ac_ct_NMEDIT"; then
8025 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8026 else
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8029 do
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8034 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 break 2
8037 fi
8038 done
8039 done
8040 IFS=$as_save_IFS
8041
8042 fi
8043 fi
8044 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8045 if test -n "$ac_ct_NMEDIT"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8047 $as_echo "$ac_ct_NMEDIT" >&6; }
8048 else
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8051 fi
8052
8053 if test "x$ac_ct_NMEDIT" = x; then
8054 NMEDIT=":"
8055 else
8056 case $cross_compiling:$ac_tool_warned in
8057 yes:)
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8060 ac_tool_warned=yes ;;
8061 esac
8062 NMEDIT=$ac_ct_NMEDIT
8063 fi
8064 else
8065 NMEDIT="$ac_cv_prog_NMEDIT"
8066 fi
8067
8068 if test -n "$ac_tool_prefix"; then
8069 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8070 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if ${ac_cv_prog_LIPO+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 if test -n "$LIPO"; then
8077 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8078 else
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 for as_dir in $PATH
8081 do
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8086 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 break 2
8089 fi
8090 done
8091 done
8092 IFS=$as_save_IFS
8093
8094 fi
8095 fi
8096 LIPO=$ac_cv_prog_LIPO
8097 if test -n "$LIPO"; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8099 $as_echo "$LIPO" >&6; }
8100 else
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }
8103 fi
8104
8105
8106 fi
8107 if test -z "$ac_cv_prog_LIPO"; then
8108 ac_ct_LIPO=$LIPO
8109 # Extract the first word of "lipo", so it can be a program name with args.
8110 set dummy lipo; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 if test -n "$ac_ct_LIPO"; then
8117 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8118 else
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8121 do
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126 ac_cv_prog_ac_ct_LIPO="lipo"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 break 2
8129 fi
8130 done
8131 done
8132 IFS=$as_save_IFS
8133
8134 fi
8135 fi
8136 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8137 if test -n "$ac_ct_LIPO"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8139 $as_echo "$ac_ct_LIPO" >&6; }
8140 else
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8143 fi
8144
8145 if test "x$ac_ct_LIPO" = x; then
8146 LIPO=":"
8147 else
8148 case $cross_compiling:$ac_tool_warned in
8149 yes:)
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8152 ac_tool_warned=yes ;;
8153 esac
8154 LIPO=$ac_ct_LIPO
8155 fi
8156 else
8157 LIPO="$ac_cv_prog_LIPO"
8158 fi
8159
8160 if test -n "$ac_tool_prefix"; then
8161 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8162 set dummy ${ac_tool_prefix}otool; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if ${ac_cv_prog_OTOOL+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 if test -n "$OTOOL"; then
8169 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8173 do
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182 done
8183 done
8184 IFS=$as_save_IFS
8185
8186 fi
8187 fi
8188 OTOOL=$ac_cv_prog_OTOOL
8189 if test -n "$OTOOL"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8191 $as_echo "$OTOOL" >&6; }
8192 else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8195 fi
8196
8197
8198 fi
8199 if test -z "$ac_cv_prog_OTOOL"; then
8200 ac_ct_OTOOL=$OTOOL
8201 # Extract the first word of "otool", so it can be a program name with args.
8202 set dummy otool; ac_word=$2
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 $as_echo_n "checking for $ac_word... " >&6; }
8205 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8206 $as_echo_n "(cached) " >&6
8207 else
8208 if test -n "$ac_ct_OTOOL"; then
8209 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8210 else
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH
8213 do
8214 IFS=$as_save_IFS
8215 test -z "$as_dir" && as_dir=.
8216 for ac_exec_ext in '' $ac_executable_extensions; do
8217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8218 ac_cv_prog_ac_ct_OTOOL="otool"
8219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 break 2
8221 fi
8222 done
8223 done
8224 IFS=$as_save_IFS
8225
8226 fi
8227 fi
8228 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8229 if test -n "$ac_ct_OTOOL"; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8231 $as_echo "$ac_ct_OTOOL" >&6; }
8232 else
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8235 fi
8236
8237 if test "x$ac_ct_OTOOL" = x; then
8238 OTOOL=":"
8239 else
8240 case $cross_compiling:$ac_tool_warned in
8241 yes:)
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8244 ac_tool_warned=yes ;;
8245 esac
8246 OTOOL=$ac_ct_OTOOL
8247 fi
8248 else
8249 OTOOL="$ac_cv_prog_OTOOL"
8250 fi
8251
8252 if test -n "$ac_tool_prefix"; then
8253 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8254 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if ${ac_cv_prog_OTOOL64+:} false; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 if test -n "$OTOOL64"; then
8261 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8265 do
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8273 fi
8274 done
8275 done
8276 IFS=$as_save_IFS
8277
8278 fi
8279 fi
8280 OTOOL64=$ac_cv_prog_OTOOL64
8281 if test -n "$OTOOL64"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8283 $as_echo "$OTOOL64" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8287 fi
8288
8289
8290 fi
8291 if test -z "$ac_cv_prog_OTOOL64"; then
8292 ac_ct_OTOOL64=$OTOOL64
8293 # Extract the first word of "otool64", so it can be a program name with args.
8294 set dummy otool64; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 if test -n "$ac_ct_OTOOL64"; then
8301 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306 IFS=$as_save_IFS
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310 ac_cv_prog_ac_ct_OTOOL64="otool64"
8311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312 break 2
8313 fi
8314 done
8315 done
8316 IFS=$as_save_IFS
8317
8318 fi
8319 fi
8320 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8321 if test -n "$ac_ct_OTOOL64"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8323 $as_echo "$ac_ct_OTOOL64" >&6; }
8324 else
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 fi
8328
8329 if test "x$ac_ct_OTOOL64" = x; then
8330 OTOOL64=":"
8331 else
8332 case $cross_compiling:$ac_tool_warned in
8333 yes:)
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8336 ac_tool_warned=yes ;;
8337 esac
8338 OTOOL64=$ac_ct_OTOOL64
8339 fi
8340 else
8341 OTOOL64="$ac_cv_prog_OTOOL64"
8342 fi
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8371 $as_echo_n "checking for -single_module linker flag... " >&6; }
8372 if ${lt_cv_apple_cc_single_mod+:} false; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 lt_cv_apple_cc_single_mod=no
8376 if test -z "${LT_MULTI_MODULE}"; then
8377 # By default we will add the -single_module flag. You can override
8378 # by either setting the environment variable LT_MULTI_MODULE
8379 # non-empty at configure time, or by adding -multi_module to the
8380 # link flags.
8381 rm -rf libconftest.dylib*
8382 echo "int foo(void){return 1;}" > conftest.c
8383 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8384 -dynamiclib -Wl,-single_module conftest.c" >&5
8385 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8386 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8387 _lt_result=$?
8388 # If there is a non-empty error log, and "single_module"
8389 # appears in it, assume the flag caused a linker warning
8390 if test -s conftest.err && $GREP single_module conftest.err; then
8391 cat conftest.err >&5
8392 # Otherwise, if the output was created with a 0 exit code from
8393 # the compiler, it worked.
8394 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8395 lt_cv_apple_cc_single_mod=yes
8396 else
8397 cat conftest.err >&5
8398 fi
8399 rm -rf libconftest.dylib*
8400 rm -f conftest.*
8401 fi
8402 fi
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8404 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8405
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8407 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8408 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 lt_cv_ld_exported_symbols_list=no
8412 save_LDFLAGS=$LDFLAGS
8413 echo "_main" > conftest.sym
8414 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h. */
8417
8418 int
8419 main ()
8420 {
8421
8422 ;
8423 return 0;
8424 }
8425 _ACEOF
8426 if ac_fn_c_try_link "$LINENO"; then :
8427 lt_cv_ld_exported_symbols_list=yes
8428 else
8429 lt_cv_ld_exported_symbols_list=no
8430 fi
8431 rm -f core conftest.err conftest.$ac_objext \
8432 conftest$ac_exeext conftest.$ac_ext
8433 LDFLAGS="$save_LDFLAGS"
8434
8435 fi
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8437 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8438
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8440 $as_echo_n "checking for -force_load linker flag... " >&6; }
8441 if ${lt_cv_ld_force_load+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 lt_cv_ld_force_load=no
8445 cat > conftest.c << _LT_EOF
8446 int forced_loaded() { return 2;}
8447 _LT_EOF
8448 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8449 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8450 echo "$AR cru libconftest.a conftest.o" >&5
8451 $AR cru libconftest.a conftest.o 2>&5
8452 echo "$RANLIB libconftest.a" >&5
8453 $RANLIB libconftest.a 2>&5
8454 cat > conftest.c << _LT_EOF
8455 int main() { return 0;}
8456 _LT_EOF
8457 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8458 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8459 _lt_result=$?
8460 if test -s conftest.err && $GREP force_load conftest.err; then
8461 cat conftest.err >&5
8462 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8463 lt_cv_ld_force_load=yes
8464 else
8465 cat conftest.err >&5
8466 fi
8467 rm -f conftest.err libconftest.a conftest conftest.c
8468 rm -rf conftest.dSYM
8469
8470 fi
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8472 $as_echo "$lt_cv_ld_force_load" >&6; }
8473 case $host_os in
8474 rhapsody* | darwin1.[012])
8475 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8476 darwin1.*)
8477 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8478 darwin*) # darwin 5.x on
8479 # if running on 10.5 or later, the deployment target defaults
8480 # to the OS version, if on x86, and 10.4, the deployment
8481 # target defaults to 10.4. Don't you love it?
8482 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8483 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8484 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8485 10.[012]*)
8486 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8487 10.*)
8488 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8489 esac
8490 ;;
8491 esac
8492 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8493 _lt_dar_single_mod='$single_module'
8494 fi
8495 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8496 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8497 else
8498 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8499 fi
8500 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8501 _lt_dsymutil='~$DSYMUTIL $lib || :'
8502 else
8503 _lt_dsymutil=
8504 fi
8505 ;;
8506 esac
8507
8508 for ac_header in dlfcn.h
8509 do :
8510 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8511 "
8512 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8513 cat >>confdefs.h <<_ACEOF
8514 #define HAVE_DLFCN_H 1
8515 _ACEOF
8516
8517 fi
8518
8519 done
8520
8521
8522
8523
8524
8525 # Set options
8526 # Check whether --enable-static was given.
8527 if test "${enable_static+set}" = set; then :
8528 enableval=$enable_static; p=${PACKAGE-default}
8529 case $enableval in
8530 yes) enable_static=yes ;;
8531 no) enable_static=no ;;
8532 *)
8533 enable_static=no
8534 # Look at the argument we got. We use all the common list separators.
8535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8536 for pkg in $enableval; do
8537 IFS="$lt_save_ifs"
8538 if test "X$pkg" = "X$p"; then
8539 enable_static=yes
8540 fi
8541 done
8542 IFS="$lt_save_ifs"
8543 ;;
8544 esac
8545 else
8546 enable_static=no
8547 fi
8548
8549
8550
8551
8552
8553
8554
8555
8556 # Check whether --with-pic was given.
8557 if test "${with_pic+set}" = set; then :
8558 withval=$with_pic; lt_p=${PACKAGE-default}
8559 case $withval in
8560 yes|no) pic_mode=$withval ;;
8561 *)
8562 pic_mode=default
8563 # Look at the argument we got. We use all the common list separators.
8564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8565 for lt_pkg in $withval; do
8566 IFS="$lt_save_ifs"
8567 if test "X$lt_pkg" = "X$lt_p"; then
8568 pic_mode=yes
8569 fi
8570 done
8571 IFS="$lt_save_ifs"
8572 ;;
8573 esac
8574 else
8575 pic_mode=default
8576 fi
8577
8578
8579 test -z "$pic_mode" && pic_mode=yes
8580
8581
8582
8583
8584
8585
8586
8587
8588 enable_dlopen=no
8589
8590
8591 enable_win32_dll=no
8592
8593
8594 # Check whether --enable-shared was given.
8595 if test "${enable_shared+set}" = set; then :
8596 enableval=$enable_shared; p=${PACKAGE-default}
8597 case $enableval in
8598 yes) enable_shared=yes ;;
8599 no) enable_shared=no ;;
8600 *)
8601 enable_shared=no
8602 # Look at the argument we got. We use all the common list separators.
8603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8604 for pkg in $enableval; do
8605 IFS="$lt_save_ifs"
8606 if test "X$pkg" = "X$p"; then
8607 enable_shared=yes
8608 fi
8609 done
8610 IFS="$lt_save_ifs"
8611 ;;
8612 esac
8613 else
8614 enable_shared=yes
8615 fi
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627 # Check whether --enable-fast-install was given.
8628 if test "${enable_fast_install+set}" = set; then :
8629 enableval=$enable_fast_install; p=${PACKAGE-default}
8630 case $enableval in
8631 yes) enable_fast_install=yes ;;
8632 no) enable_fast_install=no ;;
8633 *)
8634 enable_fast_install=no
8635 # Look at the argument we got. We use all the common list separators.
8636 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8637 for pkg in $enableval; do
8638 IFS="$lt_save_ifs"
8639 if test "X$pkg" = "X$p"; then
8640 enable_fast_install=yes
8641 fi
8642 done
8643 IFS="$lt_save_ifs"
8644 ;;
8645 esac
8646 else
8647 enable_fast_install=yes
8648 fi
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660 # This can be used to rebuild libtool when needed
8661 LIBTOOL_DEPS="$ltmain"
8662
8663 # Always use our own libtool.
8664 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695 test -z "$LN_S" && LN_S="ln -s"
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710 if test -n "${ZSH_VERSION+set}" ; then
8711 setopt NO_GLOB_SUBST
8712 fi
8713
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8715 $as_echo_n "checking for objdir... " >&6; }
8716 if ${lt_cv_objdir+:} false; then :
8717 $as_echo_n "(cached) " >&6
8718 else
8719 rm -f .libs 2>/dev/null
8720 mkdir .libs 2>/dev/null
8721 if test -d .libs; then
8722 lt_cv_objdir=.libs
8723 else
8724 # MS-DOS does not allow filenames that begin with a dot.
8725 lt_cv_objdir=_libs
8726 fi
8727 rmdir .libs 2>/dev/null
8728 fi
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8730 $as_echo "$lt_cv_objdir" >&6; }
8731 objdir=$lt_cv_objdir
8732
8733
8734
8735
8736
8737 cat >>confdefs.h <<_ACEOF
8738 #define LT_OBJDIR "$lt_cv_objdir/"
8739 _ACEOF
8740
8741
8742
8743
8744 case $host_os in
8745 aix3*)
8746 # AIX sometimes has problems with the GCC collect2 program. For some
8747 # reason, if we set the COLLECT_NAMES environment variable, the problems
8748 # vanish in a puff of smoke.
8749 if test "X${COLLECT_NAMES+set}" != Xset; then
8750 COLLECT_NAMES=
8751 export COLLECT_NAMES
8752 fi
8753 ;;
8754 esac
8755
8756 # Global variables:
8757 ofile=libtool
8758 can_build_shared=yes
8759
8760 # All known linkers require a `.a' archive for static linking (except MSVC,
8761 # which needs '.lib').
8762 libext=a
8763
8764 with_gnu_ld="$lt_cv_prog_gnu_ld"
8765
8766 old_CC="$CC"
8767 old_CFLAGS="$CFLAGS"
8768
8769 # Set sane defaults for various variables
8770 test -z "$CC" && CC=cc
8771 test -z "$LTCC" && LTCC=$CC
8772 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8773 test -z "$LD" && LD=ld
8774 test -z "$ac_objext" && ac_objext=o
8775
8776 for cc_temp in $compiler""; do
8777 case $cc_temp in
8778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8780 \-*) ;;
8781 *) break;;
8782 esac
8783 done
8784 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8785
8786
8787 # Only perform the check for file, if the check method requires it
8788 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8789 case $deplibs_check_method in
8790 file_magic*)
8791 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8793 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8794 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 case $MAGIC_CMD in
8798 [\\/*] | ?:[\\/]*)
8799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8800 ;;
8801 *)
8802 lt_save_MAGIC_CMD="$MAGIC_CMD"
8803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8804 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8805 for ac_dir in $ac_dummy; do
8806 IFS="$lt_save_ifs"
8807 test -z "$ac_dir" && ac_dir=.
8808 if test -f $ac_dir/${ac_tool_prefix}file; then
8809 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8810 if test -n "$file_magic_test_file"; then
8811 case $deplibs_check_method in
8812 "file_magic "*)
8813 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8815 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8816 $EGREP "$file_magic_regex" > /dev/null; then
8817 :
8818 else
8819 cat <<_LT_EOF 1>&2
8820
8821 *** Warning: the command libtool uses to detect shared libraries,
8822 *** $file_magic_cmd, produces output that libtool cannot recognize.
8823 *** The result is that libtool may fail to recognize shared libraries
8824 *** as such. This will affect the creation of libtool libraries that
8825 *** depend on shared libraries, but programs linked with such libtool
8826 *** libraries will work regardless of this problem. Nevertheless, you
8827 *** may want to report the problem to your system manager and/or to
8828 *** bug-libtool@gnu.org
8829
8830 _LT_EOF
8831 fi ;;
8832 esac
8833 fi
8834 break
8835 fi
8836 done
8837 IFS="$lt_save_ifs"
8838 MAGIC_CMD="$lt_save_MAGIC_CMD"
8839 ;;
8840 esac
8841 fi
8842
8843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8844 if test -n "$MAGIC_CMD"; then
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8846 $as_echo "$MAGIC_CMD" >&6; }
8847 else
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8849 $as_echo "no" >&6; }
8850 fi
8851
8852
8853
8854
8855
8856 if test -z "$lt_cv_path_MAGIC_CMD"; then
8857 if test -n "$ac_tool_prefix"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8859 $as_echo_n "checking for file... " >&6; }
8860 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8861 $as_echo_n "(cached) " >&6
8862 else
8863 case $MAGIC_CMD in
8864 [\\/*] | ?:[\\/]*)
8865 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8866 ;;
8867 *)
8868 lt_save_MAGIC_CMD="$MAGIC_CMD"
8869 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8870 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8871 for ac_dir in $ac_dummy; do
8872 IFS="$lt_save_ifs"
8873 test -z "$ac_dir" && ac_dir=.
8874 if test -f $ac_dir/file; then
8875 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8876 if test -n "$file_magic_test_file"; then
8877 case $deplibs_check_method in
8878 "file_magic "*)
8879 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8880 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8881 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8882 $EGREP "$file_magic_regex" > /dev/null; then
8883 :
8884 else
8885 cat <<_LT_EOF 1>&2
8886
8887 *** Warning: the command libtool uses to detect shared libraries,
8888 *** $file_magic_cmd, produces output that libtool cannot recognize.
8889 *** The result is that libtool may fail to recognize shared libraries
8890 *** as such. This will affect the creation of libtool libraries that
8891 *** depend on shared libraries, but programs linked with such libtool
8892 *** libraries will work regardless of this problem. Nevertheless, you
8893 *** may want to report the problem to your system manager and/or to
8894 *** bug-libtool@gnu.org
8895
8896 _LT_EOF
8897 fi ;;
8898 esac
8899 fi
8900 break
8901 fi
8902 done
8903 IFS="$lt_save_ifs"
8904 MAGIC_CMD="$lt_save_MAGIC_CMD"
8905 ;;
8906 esac
8907 fi
8908
8909 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8910 if test -n "$MAGIC_CMD"; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8912 $as_echo "$MAGIC_CMD" >&6; }
8913 else
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 $as_echo "no" >&6; }
8916 fi
8917
8918
8919 else
8920 MAGIC_CMD=:
8921 fi
8922 fi
8923
8924 fi
8925 ;;
8926 esac
8927
8928 # Use C for the default configuration in the libtool script
8929
8930 lt_save_CC="$CC"
8931 ac_ext=c
8932 ac_cpp='$CPP $CPPFLAGS'
8933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8936
8937
8938 # Source file extension for C test sources.
8939 ac_ext=c
8940
8941 # Object file extension for compiled C test sources.
8942 objext=o
8943 objext=$objext
8944
8945 # Code to be used in simple compile tests
8946 lt_simple_compile_test_code="int some_variable = 0;"
8947
8948 # Code to be used in simple link tests
8949 lt_simple_link_test_code='int main(){return(0);}'
8950
8951
8952
8953
8954
8955
8956
8957 # If no C compiler was specified, use CC.
8958 LTCC=${LTCC-"$CC"}
8959
8960 # If no C compiler flags were specified, use CFLAGS.
8961 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8962
8963 # Allow CC to be a program name with arguments.
8964 compiler=$CC
8965
8966 # Save the default compiler, since it gets overwritten when the other
8967 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8968 compiler_DEFAULT=$CC
8969
8970 # save warnings/boilerplate of simple test code
8971 ac_outfile=conftest.$ac_objext
8972 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8974 _lt_compiler_boilerplate=`cat conftest.err`
8975 $RM conftest*
8976
8977 ac_outfile=conftest.$ac_objext
8978 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8980 _lt_linker_boilerplate=`cat conftest.err`
8981 $RM -r conftest*
8982
8983
8984 ## CAVEAT EMPTOR:
8985 ## There is no encapsulation within the following macros, do not change
8986 ## the running order or otherwise move them around unless you know exactly
8987 ## what you are doing...
8988 if test -n "$compiler"; then
8989
8990 lt_prog_compiler_no_builtin_flag=
8991
8992 if test "$GCC" = yes; then
8993 case $cc_basename in
8994 nvcc*)
8995 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8996 *)
8997 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8998 esac
8999
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9001 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9002 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 lt_cv_prog_compiler_rtti_exceptions=no
9006 ac_outfile=conftest.$ac_objext
9007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9008 lt_compiler_flag="-fno-rtti -fno-exceptions"
9009 # Insert the option either (1) after the last *FLAGS variable, or
9010 # (2) before a word containing "conftest.", or (3) at the end.
9011 # Note that $ac_compile itself does not contain backslashes and begins
9012 # with a dollar sign (not a hyphen), so the echo should work correctly.
9013 # The option is referenced via a variable to avoid confusing sed.
9014 lt_compile=`echo "$ac_compile" | $SED \
9015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9017 -e 's:$: $lt_compiler_flag:'`
9018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9019 (eval "$lt_compile" 2>conftest.err)
9020 ac_status=$?
9021 cat conftest.err >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 if (exit $ac_status) && test -s "$ac_outfile"; then
9024 # The compiler can only warn and ignore the option if not recognized
9025 # So say no if there are warnings other than the usual output.
9026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9029 lt_cv_prog_compiler_rtti_exceptions=yes
9030 fi
9031 fi
9032 $RM conftest*
9033
9034 fi
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9036 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9037
9038 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9039 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9040 else
9041 :
9042 fi
9043
9044 fi
9045
9046
9047
9048
9049
9050
9051 lt_prog_compiler_wl=
9052 lt_prog_compiler_pic=
9053 lt_prog_compiler_static=
9054
9055
9056 if test "$GCC" = yes; then
9057 lt_prog_compiler_wl='-Wl,'
9058 lt_prog_compiler_static='-static'
9059
9060 case $host_os in
9061 aix*)
9062 # All AIX code is PIC.
9063 if test "$host_cpu" = ia64; then
9064 # AIX 5 now supports IA64 processor
9065 lt_prog_compiler_static='-Bstatic'
9066 fi
9067 ;;
9068
9069 amigaos*)
9070 case $host_cpu in
9071 powerpc)
9072 # see comment about AmigaOS4 .so support
9073 lt_prog_compiler_pic='-fPIC'
9074 ;;
9075 m68k)
9076 # FIXME: we need at least 68020 code to build shared libraries, but
9077 # adding the `-m68020' flag to GCC prevents building anything better,
9078 # like `-m68040'.
9079 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9080 ;;
9081 esac
9082 ;;
9083
9084 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9085 # PIC is the default for these OSes.
9086 ;;
9087
9088 mingw* | cygwin* | pw32* | os2* | cegcc*)
9089 # This hack is so that the source file can tell whether it is being
9090 # built for inclusion in a dll (and should export symbols for example).
9091 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9092 # (--disable-auto-import) libraries
9093 lt_prog_compiler_pic='-DDLL_EXPORT'
9094 ;;
9095
9096 darwin* | rhapsody*)
9097 # PIC is the default on this platform
9098 # Common symbols not allowed in MH_DYLIB files
9099 lt_prog_compiler_pic='-fno-common'
9100 ;;
9101
9102 haiku*)
9103 # PIC is the default for Haiku.
9104 # The "-static" flag exists, but is broken.
9105 lt_prog_compiler_static=
9106 ;;
9107
9108 hpux*)
9109 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9110 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9111 # sets the default TLS model and affects inlining.
9112 case $host_cpu in
9113 hppa*64*)
9114 # +Z the default
9115 ;;
9116 *)
9117 lt_prog_compiler_pic='-fPIC'
9118 ;;
9119 esac
9120 ;;
9121
9122 interix[3-9]*)
9123 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9124 # Instead, we relocate shared libraries at runtime.
9125 ;;
9126
9127 msdosdjgpp*)
9128 # Just because we use GCC doesn't mean we suddenly get shared libraries
9129 # on systems that don't support them.
9130 lt_prog_compiler_can_build_shared=no
9131 enable_shared=no
9132 ;;
9133
9134 *nto* | *qnx*)
9135 # QNX uses GNU C++, but need to define -shared option too, otherwise
9136 # it will coredump.
9137 lt_prog_compiler_pic='-fPIC -shared'
9138 ;;
9139
9140 sysv4*MP*)
9141 if test -d /usr/nec; then
9142 lt_prog_compiler_pic=-Kconform_pic
9143 fi
9144 ;;
9145
9146 *)
9147 lt_prog_compiler_pic='-fPIC'
9148 ;;
9149 esac
9150
9151 case $cc_basename in
9152 nvcc*) # Cuda Compiler Driver 2.2
9153 lt_prog_compiler_wl='-Xlinker '
9154 if test -n "$lt_prog_compiler_pic"; then
9155 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9156 fi
9157 ;;
9158 esac
9159 else
9160 # PORTME Check for flag to pass linker flags through the system compiler.
9161 case $host_os in
9162 aix*)
9163 lt_prog_compiler_wl='-Wl,'
9164 if test "$host_cpu" = ia64; then
9165 # AIX 5 now supports IA64 processor
9166 lt_prog_compiler_static='-Bstatic'
9167 else
9168 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9169 fi
9170 ;;
9171
9172 mingw* | cygwin* | pw32* | os2* | cegcc*)
9173 # This hack is so that the source file can tell whether it is being
9174 # built for inclusion in a dll (and should export symbols for example).
9175 lt_prog_compiler_pic='-DDLL_EXPORT'
9176 ;;
9177
9178 hpux9* | hpux10* | hpux11*)
9179 lt_prog_compiler_wl='-Wl,'
9180 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9181 # not for PA HP-UX.
9182 case $host_cpu in
9183 hppa*64*|ia64*)
9184 # +Z the default
9185 ;;
9186 *)
9187 lt_prog_compiler_pic='+Z'
9188 ;;
9189 esac
9190 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9191 lt_prog_compiler_static='${wl}-a ${wl}archive'
9192 ;;
9193
9194 irix5* | irix6* | nonstopux*)
9195 lt_prog_compiler_wl='-Wl,'
9196 # PIC (with -KPIC) is the default.
9197 lt_prog_compiler_static='-non_shared'
9198 ;;
9199
9200 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9201 case $cc_basename in
9202 # old Intel for x86_64 which still supported -KPIC.
9203 ecc*)
9204 lt_prog_compiler_wl='-Wl,'
9205 lt_prog_compiler_pic='-KPIC'
9206 lt_prog_compiler_static='-static'
9207 ;;
9208 # icc used to be incompatible with GCC.
9209 # ICC 10 doesn't accept -KPIC any more.
9210 icc* | ifort*)
9211 lt_prog_compiler_wl='-Wl,'
9212 lt_prog_compiler_pic='-fPIC'
9213 lt_prog_compiler_static='-static'
9214 ;;
9215 # Lahey Fortran 8.1.
9216 lf95*)
9217 lt_prog_compiler_wl='-Wl,'
9218 lt_prog_compiler_pic='--shared'
9219 lt_prog_compiler_static='--static'
9220 ;;
9221 nagfor*)
9222 # NAG Fortran compiler
9223 lt_prog_compiler_wl='-Wl,-Wl,,'
9224 lt_prog_compiler_pic='-PIC'
9225 lt_prog_compiler_static='-Bstatic'
9226 ;;
9227 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9228 # Portland Group compilers (*not* the Pentium gcc compiler,
9229 # which looks to be a dead project)
9230 lt_prog_compiler_wl='-Wl,'
9231 lt_prog_compiler_pic='-fpic'
9232 lt_prog_compiler_static='-Bstatic'
9233 ;;
9234 ccc*)
9235 lt_prog_compiler_wl='-Wl,'
9236 # All Alpha code is PIC.
9237 lt_prog_compiler_static='-non_shared'
9238 ;;
9239 xl* | bgxl* | bgf* | mpixl*)
9240 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9241 lt_prog_compiler_wl='-Wl,'
9242 lt_prog_compiler_pic='-qpic'
9243 lt_prog_compiler_static='-qstaticlink'
9244 ;;
9245 *)
9246 case `$CC -V 2>&1 | sed 5q` in
9247 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9248 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9249 lt_prog_compiler_pic='-KPIC'
9250 lt_prog_compiler_static='-Bstatic'
9251 lt_prog_compiler_wl=''
9252 ;;
9253 *Sun\ F* | *Sun*Fortran*)
9254 lt_prog_compiler_pic='-KPIC'
9255 lt_prog_compiler_static='-Bstatic'
9256 lt_prog_compiler_wl='-Qoption ld '
9257 ;;
9258 *Sun\ C*)
9259 # Sun C 5.9
9260 lt_prog_compiler_pic='-KPIC'
9261 lt_prog_compiler_static='-Bstatic'
9262 lt_prog_compiler_wl='-Wl,'
9263 ;;
9264 *Intel*\ [CF]*Compiler*)
9265 lt_prog_compiler_wl='-Wl,'
9266 lt_prog_compiler_pic='-fPIC'
9267 lt_prog_compiler_static='-static'
9268 ;;
9269 *Portland\ Group*)
9270 lt_prog_compiler_wl='-Wl,'
9271 lt_prog_compiler_pic='-fpic'
9272 lt_prog_compiler_static='-Bstatic'
9273 ;;
9274 esac
9275 ;;
9276 esac
9277 ;;
9278
9279 newsos6)
9280 lt_prog_compiler_pic='-KPIC'
9281 lt_prog_compiler_static='-Bstatic'
9282 ;;
9283
9284 *nto* | *qnx*)
9285 # QNX uses GNU C++, but need to define -shared option too, otherwise
9286 # it will coredump.
9287 lt_prog_compiler_pic='-fPIC -shared'
9288 ;;
9289
9290 osf3* | osf4* | osf5*)
9291 lt_prog_compiler_wl='-Wl,'
9292 # All OSF/1 code is PIC.
9293 lt_prog_compiler_static='-non_shared'
9294 ;;
9295
9296 rdos*)
9297 lt_prog_compiler_static='-non_shared'
9298 ;;
9299
9300 solaris*)
9301 lt_prog_compiler_pic='-KPIC'
9302 lt_prog_compiler_static='-Bstatic'
9303 case $cc_basename in
9304 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9305 lt_prog_compiler_wl='-Qoption ld ';;
9306 *)
9307 lt_prog_compiler_wl='-Wl,';;
9308 esac
9309 ;;
9310
9311 sunos4*)
9312 lt_prog_compiler_wl='-Qoption ld '
9313 lt_prog_compiler_pic='-PIC'
9314 lt_prog_compiler_static='-Bstatic'
9315 ;;
9316
9317 sysv4 | sysv4.2uw2* | sysv4.3*)
9318 lt_prog_compiler_wl='-Wl,'
9319 lt_prog_compiler_pic='-KPIC'
9320 lt_prog_compiler_static='-Bstatic'
9321 ;;
9322
9323 sysv4*MP*)
9324 if test -d /usr/nec ;then
9325 lt_prog_compiler_pic='-Kconform_pic'
9326 lt_prog_compiler_static='-Bstatic'
9327 fi
9328 ;;
9329
9330 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9331 lt_prog_compiler_wl='-Wl,'
9332 lt_prog_compiler_pic='-KPIC'
9333 lt_prog_compiler_static='-Bstatic'
9334 ;;
9335
9336 unicos*)
9337 lt_prog_compiler_wl='-Wl,'
9338 lt_prog_compiler_can_build_shared=no
9339 ;;
9340
9341 uts4*)
9342 lt_prog_compiler_pic='-pic'
9343 lt_prog_compiler_static='-Bstatic'
9344 ;;
9345
9346 *)
9347 lt_prog_compiler_can_build_shared=no
9348 ;;
9349 esac
9350 fi
9351
9352 case $host_os in
9353 # For platforms which do not support PIC, -DPIC is meaningless:
9354 *djgpp*)
9355 lt_prog_compiler_pic=
9356 ;;
9357 *)
9358 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9359 ;;
9360 esac
9361
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9363 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9364 if ${lt_cv_prog_compiler_pic+:} false; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9368 fi
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9370 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9371 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9372
9373 #
9374 # Check to make sure the PIC flag actually works.
9375 #
9376 if test -n "$lt_prog_compiler_pic"; then
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9378 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9379 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 lt_cv_prog_compiler_pic_works=no
9383 ac_outfile=conftest.$ac_objext
9384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9385 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9386 # Insert the option either (1) after the last *FLAGS variable, or
9387 # (2) before a word containing "conftest.", or (3) at the end.
9388 # Note that $ac_compile itself does not contain backslashes and begins
9389 # with a dollar sign (not a hyphen), so the echo should work correctly.
9390 # The option is referenced via a variable to avoid confusing sed.
9391 lt_compile=`echo "$ac_compile" | $SED \
9392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9394 -e 's:$: $lt_compiler_flag:'`
9395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9396 (eval "$lt_compile" 2>conftest.err)
9397 ac_status=$?
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 if (exit $ac_status) && test -s "$ac_outfile"; then
9401 # The compiler can only warn and ignore the option if not recognized
9402 # So say no if there are warnings other than the usual output.
9403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9406 lt_cv_prog_compiler_pic_works=yes
9407 fi
9408 fi
9409 $RM conftest*
9410
9411 fi
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9413 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9414
9415 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9416 case $lt_prog_compiler_pic in
9417 "" | " "*) ;;
9418 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9419 esac
9420 else
9421 lt_prog_compiler_pic=
9422 lt_prog_compiler_can_build_shared=no
9423 fi
9424
9425 fi
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437 #
9438 # Check to make sure the static flag actually works.
9439 #
9440 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9442 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9443 if ${lt_cv_prog_compiler_static_works+:} false; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 lt_cv_prog_compiler_static_works=no
9447 save_LDFLAGS="$LDFLAGS"
9448 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9449 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9450 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9451 # The linker can only warn and ignore the option if not recognized
9452 # So say no if there are warnings
9453 if test -s conftest.err; then
9454 # Append any errors to the config.log.
9455 cat conftest.err 1>&5
9456 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9458 if diff conftest.exp conftest.er2 >/dev/null; then
9459 lt_cv_prog_compiler_static_works=yes
9460 fi
9461 else
9462 lt_cv_prog_compiler_static_works=yes
9463 fi
9464 fi
9465 $RM -r conftest*
9466 LDFLAGS="$save_LDFLAGS"
9467
9468 fi
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9470 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9471
9472 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9473 :
9474 else
9475 lt_prog_compiler_static=
9476 fi
9477
9478
9479
9480
9481
9482
9483
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9485 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9486 if ${lt_cv_prog_compiler_c_o+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 lt_cv_prog_compiler_c_o=no
9490 $RM -r conftest 2>/dev/null
9491 mkdir conftest
9492 cd conftest
9493 mkdir out
9494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9495
9496 lt_compiler_flag="-o out/conftest2.$ac_objext"
9497 # Insert the option either (1) after the last *FLAGS variable, or
9498 # (2) before a word containing "conftest.", or (3) at the end.
9499 # Note that $ac_compile itself does not contain backslashes and begins
9500 # with a dollar sign (not a hyphen), so the echo should work correctly.
9501 lt_compile=`echo "$ac_compile" | $SED \
9502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9504 -e 's:$: $lt_compiler_flag:'`
9505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9506 (eval "$lt_compile" 2>out/conftest.err)
9507 ac_status=$?
9508 cat out/conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9511 then
9512 # The compiler can only warn and ignore the option if not recognized
9513 # So say no if there are warnings
9514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9517 lt_cv_prog_compiler_c_o=yes
9518 fi
9519 fi
9520 chmod u+w . 2>&5
9521 $RM conftest*
9522 # SGI C++ compiler will create directory out/ii_files/ for
9523 # template instantiation
9524 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9525 $RM out/* && rmdir out
9526 cd ..
9527 $RM -r conftest
9528 $RM conftest*
9529
9530 fi
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9532 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9533
9534
9535
9536
9537
9538
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9540 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9541 if ${lt_cv_prog_compiler_c_o+:} false; then :
9542 $as_echo_n "(cached) " >&6
9543 else
9544 lt_cv_prog_compiler_c_o=no
9545 $RM -r conftest 2>/dev/null
9546 mkdir conftest
9547 cd conftest
9548 mkdir out
9549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9550
9551 lt_compiler_flag="-o out/conftest2.$ac_objext"
9552 # Insert the option either (1) after the last *FLAGS variable, or
9553 # (2) before a word containing "conftest.", or (3) at the end.
9554 # Note that $ac_compile itself does not contain backslashes and begins
9555 # with a dollar sign (not a hyphen), so the echo should work correctly.
9556 lt_compile=`echo "$ac_compile" | $SED \
9557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9559 -e 's:$: $lt_compiler_flag:'`
9560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9561 (eval "$lt_compile" 2>out/conftest.err)
9562 ac_status=$?
9563 cat out/conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9566 then
9567 # The compiler can only warn and ignore the option if not recognized
9568 # So say no if there are warnings
9569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9572 lt_cv_prog_compiler_c_o=yes
9573 fi
9574 fi
9575 chmod u+w . 2>&5
9576 $RM conftest*
9577 # SGI C++ compiler will create directory out/ii_files/ for
9578 # template instantiation
9579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9580 $RM out/* && rmdir out
9581 cd ..
9582 $RM -r conftest
9583 $RM conftest*
9584
9585 fi
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9587 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9588
9589
9590
9591
9592 hard_links="nottested"
9593 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9594 # do not overwrite the value of need_locks provided by the user
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9596 $as_echo_n "checking if we can lock with hard links... " >&6; }
9597 hard_links=yes
9598 $RM conftest*
9599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9600 touch conftest.a
9601 ln conftest.a conftest.b 2>&5 || hard_links=no
9602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9604 $as_echo "$hard_links" >&6; }
9605 if test "$hard_links" = no; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9607 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9608 need_locks=warn
9609 fi
9610 else
9611 need_locks=no
9612 fi
9613
9614
9615
9616
9617
9618
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9620 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9621
9622 runpath_var=
9623 allow_undefined_flag=
9624 always_export_symbols=no
9625 archive_cmds=
9626 archive_expsym_cmds=
9627 compiler_needs_object=no
9628 enable_shared_with_static_runtimes=no
9629 export_dynamic_flag_spec=
9630 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9631 hardcode_automatic=no
9632 hardcode_direct=no
9633 hardcode_direct_absolute=no
9634 hardcode_libdir_flag_spec=
9635 hardcode_libdir_separator=
9636 hardcode_minus_L=no
9637 hardcode_shlibpath_var=unsupported
9638 inherit_rpath=no
9639 link_all_deplibs=unknown
9640 module_cmds=
9641 module_expsym_cmds=
9642 old_archive_from_new_cmds=
9643 old_archive_from_expsyms_cmds=
9644 thread_safe_flag_spec=
9645 whole_archive_flag_spec=
9646 # include_expsyms should be a list of space-separated symbols to be *always*
9647 # included in the symbol list
9648 include_expsyms=
9649 # exclude_expsyms can be an extended regexp of symbols to exclude
9650 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9651 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9652 # as well as any symbol that contains `d'.
9653 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9654 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9655 # platforms (ab)use it in PIC code, but their linkers get confused if
9656 # the symbol is explicitly referenced. Since portable code cannot
9657 # rely on this symbol name, it's probably fine to never include it in
9658 # preloaded symbol tables.
9659 # Exclude shared library initialization/finalization symbols.
9660 extract_expsyms_cmds=
9661
9662 case $host_os in
9663 cygwin* | mingw* | pw32* | cegcc*)
9664 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9665 # When not using gcc, we currently assume that we are using
9666 # Microsoft Visual C++.
9667 if test "$GCC" != yes; then
9668 with_gnu_ld=no
9669 fi
9670 ;;
9671 interix*)
9672 # we just hope/assume this is gcc and not c89 (= MSVC++)
9673 with_gnu_ld=yes
9674 ;;
9675 openbsd*)
9676 with_gnu_ld=no
9677 ;;
9678 esac
9679
9680 ld_shlibs=yes
9681
9682 # On some targets, GNU ld is compatible enough with the native linker
9683 # that we're better off using the native interface for both.
9684 lt_use_gnu_ld_interface=no
9685 if test "$with_gnu_ld" = yes; then
9686 case $host_os in
9687 aix*)
9688 # The AIX port of GNU ld has always aspired to compatibility
9689 # with the native linker. However, as the warning in the GNU ld
9690 # block says, versions before 2.19.5* couldn't really create working
9691 # shared libraries, regardless of the interface used.
9692 case `$LD -v 2>&1` in
9693 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9694 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9695 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9696 *)
9697 lt_use_gnu_ld_interface=yes
9698 ;;
9699 esac
9700 ;;
9701 *)
9702 lt_use_gnu_ld_interface=yes
9703 ;;
9704 esac
9705 fi
9706
9707 if test "$lt_use_gnu_ld_interface" = yes; then
9708 # If archive_cmds runs LD, not CC, wlarc should be empty
9709 wlarc='${wl}'
9710
9711 # Set some defaults for GNU ld with shared library support. These
9712 # are reset later if shared libraries are not supported. Putting them
9713 # here allows them to be overridden if necessary.
9714 runpath_var=LD_RUN_PATH
9715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9716 export_dynamic_flag_spec='${wl}--export-dynamic'
9717 # ancient GNU ld didn't support --whole-archive et. al.
9718 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9719 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9720 else
9721 whole_archive_flag_spec=
9722 fi
9723 supports_anon_versioning=no
9724 case `$LD -v 2>&1` in
9725 *GNU\ gold*) supports_anon_versioning=yes ;;
9726 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9727 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9728 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9729 *\ 2.11.*) ;; # other 2.11 versions
9730 *) supports_anon_versioning=yes ;;
9731 esac
9732
9733 # See if GNU ld supports shared libraries.
9734 case $host_os in
9735 aix[3-9]*)
9736 # On AIX/PPC, the GNU linker is very broken
9737 if test "$host_cpu" != ia64; then
9738 ld_shlibs=no
9739 cat <<_LT_EOF 1>&2
9740
9741 *** Warning: the GNU linker, at least up to release 2.19, is reported
9742 *** to be unable to reliably create shared libraries on AIX.
9743 *** Therefore, libtool is disabling shared libraries support. If you
9744 *** really care for shared libraries, you may want to install binutils
9745 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9746 *** You will then need to restart the configuration process.
9747
9748 _LT_EOF
9749 fi
9750 ;;
9751
9752 amigaos*)
9753 case $host_cpu in
9754 powerpc)
9755 # see comment about AmigaOS4 .so support
9756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9757 archive_expsym_cmds=''
9758 ;;
9759 m68k)
9760 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)'
9761 hardcode_libdir_flag_spec='-L$libdir'
9762 hardcode_minus_L=yes
9763 ;;
9764 esac
9765 ;;
9766
9767 beos*)
9768 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9769 allow_undefined_flag=unsupported
9770 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9771 # support --undefined. This deserves some investigation. FIXME
9772 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9773 else
9774 ld_shlibs=no
9775 fi
9776 ;;
9777
9778 cygwin* | mingw* | pw32* | cegcc*)
9779 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9780 # as there is no search path for DLLs.
9781 hardcode_libdir_flag_spec='-L$libdir'
9782 export_dynamic_flag_spec='${wl}--export-all-symbols'
9783 allow_undefined_flag=unsupported
9784 always_export_symbols=no
9785 enable_shared_with_static_runtimes=yes
9786 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'
9787 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9788
9789 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9791 # If the export-symbols file already is a .def file (1st line
9792 # is EXPORTS), use it as is; otherwise, prepend...
9793 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9794 cp $export_symbols $output_objdir/$soname.def;
9795 else
9796 echo EXPORTS > $output_objdir/$soname.def;
9797 cat $export_symbols >> $output_objdir/$soname.def;
9798 fi~
9799 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9800 else
9801 ld_shlibs=no
9802 fi
9803 ;;
9804
9805 haiku*)
9806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9807 link_all_deplibs=yes
9808 ;;
9809
9810 interix[3-9]*)
9811 hardcode_direct=no
9812 hardcode_shlibpath_var=no
9813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9814 export_dynamic_flag_spec='${wl}-E'
9815 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9816 # Instead, shared libraries are loaded at an image base (0x10000000 by
9817 # default) and relocated if they conflict, which is a slow very memory
9818 # consuming and fragmenting process. To avoid this, we pick a random,
9819 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9820 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9821 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9822 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'
9823 ;;
9824
9825 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9826 tmp_diet=no
9827 if test "$host_os" = linux-dietlibc; then
9828 case $cc_basename in
9829 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9830 esac
9831 fi
9832 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9833 && test "$tmp_diet" = no
9834 then
9835 tmp_addflag=' $pic_flag'
9836 tmp_sharedflag='-shared'
9837 case $cc_basename,$host_cpu in
9838 pgcc*) # Portland Group C compiler
9839 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'
9840 tmp_addflag=' $pic_flag'
9841 ;;
9842 pgf77* | pgf90* | pgf95* | pgfortran*)
9843 # Portland Group f77 and f90 compilers
9844 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'
9845 tmp_addflag=' $pic_flag -Mnomain' ;;
9846 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9847 tmp_addflag=' -i_dynamic' ;;
9848 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9849 tmp_addflag=' -i_dynamic -nofor_main' ;;
9850 ifc* | ifort*) # Intel Fortran compiler
9851 tmp_addflag=' -nofor_main' ;;
9852 lf95*) # Lahey Fortran 8.1
9853 whole_archive_flag_spec=
9854 tmp_sharedflag='--shared' ;;
9855 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9856 tmp_sharedflag='-qmkshrobj'
9857 tmp_addflag= ;;
9858 nvcc*) # Cuda Compiler Driver 2.2
9859 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'
9860 compiler_needs_object=yes
9861 ;;
9862 esac
9863 case `$CC -V 2>&1 | sed 5q` in
9864 *Sun\ C*) # Sun C 5.9
9865 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'
9866 compiler_needs_object=yes
9867 tmp_sharedflag='-G' ;;
9868 *Sun\ F*) # Sun Fortran 8.3
9869 tmp_sharedflag='-G' ;;
9870 esac
9871 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9872
9873 if test "x$supports_anon_versioning" = xyes; then
9874 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9875 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9876 echo "local: *; };" >> $output_objdir/$libname.ver~
9877 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9878 fi
9879
9880 case $cc_basename in
9881 xlf* | bgf* | bgxlf* | mpixlf*)
9882 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9883 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9885 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9886 if test "x$supports_anon_versioning" = xyes; then
9887 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9888 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9889 echo "local: *; };" >> $output_objdir/$libname.ver~
9890 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9891 fi
9892 ;;
9893 esac
9894 else
9895 ld_shlibs=no
9896 fi
9897 ;;
9898
9899 netbsd*)
9900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9901 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9902 wlarc=
9903 else
9904 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9905 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9906 fi
9907 ;;
9908
9909 solaris*)
9910 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9911 ld_shlibs=no
9912 cat <<_LT_EOF 1>&2
9913
9914 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9915 *** create shared libraries on Solaris systems. Therefore, libtool
9916 *** is disabling shared libraries support. We urge you to upgrade GNU
9917 *** binutils to release 2.9.1 or newer. Another option is to modify
9918 *** your PATH or compiler configuration so that the native linker is
9919 *** used, and then restart.
9920
9921 _LT_EOF
9922 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9924 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9925 else
9926 ld_shlibs=no
9927 fi
9928 ;;
9929
9930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9931 case `$LD -v 2>&1` in
9932 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9933 ld_shlibs=no
9934 cat <<_LT_EOF 1>&2
9935
9936 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9937 *** reliably create shared libraries on SCO systems. Therefore, libtool
9938 *** is disabling shared libraries support. We urge you to upgrade GNU
9939 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9940 *** your PATH or compiler configuration so that the native linker is
9941 *** used, and then restart.
9942
9943 _LT_EOF
9944 ;;
9945 *)
9946 # For security reasons, it is highly recommended that you always
9947 # use absolute paths for naming shared libraries, and exclude the
9948 # DT_RUNPATH tag from executables and libraries. But doing so
9949 # requires that you compile everything twice, which is a pain.
9950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9954 else
9955 ld_shlibs=no
9956 fi
9957 ;;
9958 esac
9959 ;;
9960
9961 sunos4*)
9962 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9963 wlarc=
9964 hardcode_direct=yes
9965 hardcode_shlibpath_var=no
9966 ;;
9967
9968 *)
9969 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9970 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9971 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9972 else
9973 ld_shlibs=no
9974 fi
9975 ;;
9976 esac
9977
9978 if test "$ld_shlibs" = no; then
9979 runpath_var=
9980 hardcode_libdir_flag_spec=
9981 export_dynamic_flag_spec=
9982 whole_archive_flag_spec=
9983 fi
9984 else
9985 # PORTME fill in a description of your system's linker (not GNU ld)
9986 case $host_os in
9987 aix3*)
9988 allow_undefined_flag=unsupported
9989 always_export_symbols=yes
9990 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'
9991 # Note: this linker hardcodes the directories in LIBPATH if there
9992 # are no directories specified by -L.
9993 hardcode_minus_L=yes
9994 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9995 # Neither direct hardcoding nor static linking is supported with a
9996 # broken collect2.
9997 hardcode_direct=unsupported
9998 fi
9999 ;;
10000
10001 aix[4-9]*)
10002 if test "$host_cpu" = ia64; then
10003 # On IA64, the linker does run time linking by default, so we don't
10004 # have to do anything special.
10005 aix_use_runtimelinking=no
10006 exp_sym_flag='-Bexport'
10007 no_entry_flag=""
10008 else
10009 # If we're using GNU nm, then we don't want the "-C" option.
10010 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10011 # Also, AIX nm treats weak defined symbols like other global
10012 # defined symbols, whereas GNU nm marks them as "W".
10013 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10014 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'
10015 else
10016 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'
10017 fi
10018 aix_use_runtimelinking=no
10019
10020 # Test if we are trying to use run time linking or normal
10021 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10022 # need to do runtime linking.
10023 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10024 for ld_flag in $LDFLAGS; do
10025 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10026 aix_use_runtimelinking=yes
10027 break
10028 fi
10029 done
10030 ;;
10031 esac
10032
10033 exp_sym_flag='-bexport'
10034 no_entry_flag='-bnoentry'
10035 fi
10036
10037 # When large executables or shared objects are built, AIX ld can
10038 # have problems creating the table of contents. If linking a library
10039 # or program results in "error TOC overflow" add -mminimal-toc to
10040 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10041 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10042
10043 archive_cmds=''
10044 hardcode_direct=yes
10045 hardcode_direct_absolute=yes
10046 hardcode_libdir_separator=':'
10047 link_all_deplibs=yes
10048 file_list_spec='${wl}-f,'
10049
10050 if test "$GCC" = yes; then
10051 case $host_os in aix4.[012]|aix4.[012].*)
10052 # We only want to do this on AIX 4.2 and lower, the check
10053 # below for broken collect2 doesn't work under 4.3+
10054 collect2name=`${CC} -print-prog-name=collect2`
10055 if test -f "$collect2name" &&
10056 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10057 then
10058 # We have reworked collect2
10059 :
10060 else
10061 # We have old collect2
10062 hardcode_direct=unsupported
10063 # It fails to find uninstalled libraries when the uninstalled
10064 # path is not listed in the libpath. Setting hardcode_minus_L
10065 # to unsupported forces relinking
10066 hardcode_minus_L=yes
10067 hardcode_libdir_flag_spec='-L$libdir'
10068 hardcode_libdir_separator=
10069 fi
10070 ;;
10071 esac
10072 shared_flag='-shared'
10073 if test "$aix_use_runtimelinking" = yes; then
10074 shared_flag="$shared_flag "'${wl}-G'
10075 fi
10076 else
10077 # not using gcc
10078 if test "$host_cpu" = ia64; then
10079 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10080 # chokes on -Wl,-G. The following line is correct:
10081 shared_flag='-G'
10082 else
10083 if test "$aix_use_runtimelinking" = yes; then
10084 shared_flag='${wl}-G'
10085 else
10086 shared_flag='${wl}-bM:SRE'
10087 fi
10088 fi
10089 fi
10090
10091 export_dynamic_flag_spec='${wl}-bexpall'
10092 # It seems that -bexpall does not export symbols beginning with
10093 # underscore (_), so it is better to generate a list of symbols to export.
10094 always_export_symbols=yes
10095 if test "$aix_use_runtimelinking" = yes; then
10096 # Warning - without using the other runtime loading flags (-brtl),
10097 # -berok will link without error, but may produce a broken library.
10098 allow_undefined_flag='-berok'
10099 # Determine the default libpath from the value encoded in an
10100 # empty executable.
10101 if test "${lt_cv_aix_libpath+set}" = set; then
10102 aix_libpath=$lt_cv_aix_libpath
10103 else
10104 if ${lt_cv_aix_libpath_+:} false; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109
10110 int
10111 main ()
10112 {
10113
10114 ;
10115 return 0;
10116 }
10117 _ACEOF
10118 if ac_fn_c_try_link "$LINENO"; then :
10119
10120 lt_aix_libpath_sed='
10121 /Import File Strings/,/^$/ {
10122 /^0/ {
10123 s/^0 *\([^ ]*\) *$/\1/
10124 p
10125 }
10126 }'
10127 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10128 # Check for a 64-bit object if we didn't find anything.
10129 if test -z "$lt_cv_aix_libpath_"; then
10130 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10131 fi
10132 fi
10133 rm -f core conftest.err conftest.$ac_objext \
10134 conftest$ac_exeext conftest.$ac_ext
10135 if test -z "$lt_cv_aix_libpath_"; then
10136 lt_cv_aix_libpath_="/usr/lib:/lib"
10137 fi
10138
10139 fi
10140
10141 aix_libpath=$lt_cv_aix_libpath_
10142 fi
10143
10144 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10145 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"
10146 else
10147 if test "$host_cpu" = ia64; then
10148 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10149 allow_undefined_flag="-z nodefs"
10150 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"
10151 else
10152 # Determine the default libpath from the value encoded in an
10153 # empty executable.
10154 if test "${lt_cv_aix_libpath+set}" = set; then
10155 aix_libpath=$lt_cv_aix_libpath
10156 else
10157 if ${lt_cv_aix_libpath_+:} false; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10162
10163 int
10164 main ()
10165 {
10166
10167 ;
10168 return 0;
10169 }
10170 _ACEOF
10171 if ac_fn_c_try_link "$LINENO"; then :
10172
10173 lt_aix_libpath_sed='
10174 /Import File Strings/,/^$/ {
10175 /^0/ {
10176 s/^0 *\([^ ]*\) *$/\1/
10177 p
10178 }
10179 }'
10180 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10181 # Check for a 64-bit object if we didn't find anything.
10182 if test -z "$lt_cv_aix_libpath_"; then
10183 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10184 fi
10185 fi
10186 rm -f core conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10188 if test -z "$lt_cv_aix_libpath_"; then
10189 lt_cv_aix_libpath_="/usr/lib:/lib"
10190 fi
10191
10192 fi
10193
10194 aix_libpath=$lt_cv_aix_libpath_
10195 fi
10196
10197 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10198 # Warning - without using the other run time loading flags,
10199 # -berok will link without error, but may produce a broken library.
10200 no_undefined_flag=' ${wl}-bernotok'
10201 allow_undefined_flag=' ${wl}-berok'
10202 if test "$with_gnu_ld" = yes; then
10203 # We only use this code for GNU lds that support --whole-archive.
10204 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10205 else
10206 # Exported symbols can be pulled into shared objects from archives
10207 whole_archive_flag_spec='$convenience'
10208 fi
10209 archive_cmds_need_lc=yes
10210 # This is similar to how AIX traditionally builds its shared libraries.
10211 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'
10212 fi
10213 fi
10214 ;;
10215
10216 amigaos*)
10217 case $host_cpu in
10218 powerpc)
10219 # see comment about AmigaOS4 .so support
10220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10221 archive_expsym_cmds=''
10222 ;;
10223 m68k)
10224 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)'
10225 hardcode_libdir_flag_spec='-L$libdir'
10226 hardcode_minus_L=yes
10227 ;;
10228 esac
10229 ;;
10230
10231 bsdi[45]*)
10232 export_dynamic_flag_spec=-rdynamic
10233 ;;
10234
10235 cygwin* | mingw* | pw32* | cegcc*)
10236 # When not using gcc, we currently assume that we are using
10237 # Microsoft Visual C++.
10238 # hardcode_libdir_flag_spec is actually meaningless, as there is
10239 # no search path for DLLs.
10240 case $cc_basename in
10241 cl*)
10242 # Native MSVC
10243 hardcode_libdir_flag_spec=' '
10244 allow_undefined_flag=unsupported
10245 always_export_symbols=yes
10246 file_list_spec='@'
10247 # Tell ltmain to make .lib files, not .a files.
10248 libext=lib
10249 # Tell ltmain to make .dll files, not .so files.
10250 shrext_cmds=".dll"
10251 # FIXME: Setting linknames here is a bad hack.
10252 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10253 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10254 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10255 else
10256 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10257 fi~
10258 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10259 linknames='
10260 # The linker will not automatically build a static lib if we build a DLL.
10261 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10262 enable_shared_with_static_runtimes=yes
10263 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10264 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10265 # Don't use ranlib
10266 old_postinstall_cmds='chmod 644 $oldlib'
10267 postlink_cmds='lt_outputfile="@OUTPUT@"~
10268 lt_tool_outputfile="@TOOL_OUTPUT@"~
10269 case $lt_outputfile in
10270 *.exe|*.EXE) ;;
10271 *)
10272 lt_outputfile="$lt_outputfile.exe"
10273 lt_tool_outputfile="$lt_tool_outputfile.exe"
10274 ;;
10275 esac~
10276 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10277 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10278 $RM "$lt_outputfile.manifest";
10279 fi'
10280 ;;
10281 *)
10282 # Assume MSVC wrapper
10283 hardcode_libdir_flag_spec=' '
10284 allow_undefined_flag=unsupported
10285 # Tell ltmain to make .lib files, not .a files.
10286 libext=lib
10287 # Tell ltmain to make .dll files, not .so files.
10288 shrext_cmds=".dll"
10289 # FIXME: Setting linknames here is a bad hack.
10290 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10291 # The linker will automatically build a .lib file if we build a DLL.
10292 old_archive_from_new_cmds='true'
10293 # FIXME: Should let the user specify the lib program.
10294 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10295 enable_shared_with_static_runtimes=yes
10296 ;;
10297 esac
10298 ;;
10299
10300 darwin* | rhapsody*)
10301
10302
10303 archive_cmds_need_lc=no
10304 hardcode_direct=no
10305 hardcode_automatic=yes
10306 hardcode_shlibpath_var=unsupported
10307 if test "$lt_cv_ld_force_load" = "yes"; then
10308 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\"`'
10309
10310 else
10311 whole_archive_flag_spec=''
10312 fi
10313 link_all_deplibs=yes
10314 allow_undefined_flag="$_lt_dar_allow_undefined"
10315 case $cc_basename in
10316 ifort*) _lt_dar_can_shared=yes ;;
10317 *) _lt_dar_can_shared=$GCC ;;
10318 esac
10319 if test "$_lt_dar_can_shared" = "yes"; then
10320 output_verbose_link_cmd=func_echo_all
10321 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10322 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10323 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}"
10324 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}"
10325
10326 else
10327 ld_shlibs=no
10328 fi
10329
10330 ;;
10331
10332 dgux*)
10333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10334 hardcode_libdir_flag_spec='-L$libdir'
10335 hardcode_shlibpath_var=no
10336 ;;
10337
10338 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10339 # support. Future versions do this automatically, but an explicit c++rt0.o
10340 # does not break anything, and helps significantly (at the cost of a little
10341 # extra space).
10342 freebsd2.2*)
10343 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10344 hardcode_libdir_flag_spec='-R$libdir'
10345 hardcode_direct=yes
10346 hardcode_shlibpath_var=no
10347 ;;
10348
10349 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10350 freebsd2.*)
10351 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10352 hardcode_direct=yes
10353 hardcode_minus_L=yes
10354 hardcode_shlibpath_var=no
10355 ;;
10356
10357 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10358 freebsd* | dragonfly*)
10359 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10360 hardcode_libdir_flag_spec='-R$libdir'
10361 hardcode_direct=yes
10362 hardcode_shlibpath_var=no
10363 ;;
10364
10365 hpux9*)
10366 if test "$GCC" = yes; then
10367 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'
10368 else
10369 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'
10370 fi
10371 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10372 hardcode_libdir_separator=:
10373 hardcode_direct=yes
10374
10375 # hardcode_minus_L: Not really in the search PATH,
10376 # but as the default location of the library.
10377 hardcode_minus_L=yes
10378 export_dynamic_flag_spec='${wl}-E'
10379 ;;
10380
10381 hpux10*)
10382 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10383 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10384 else
10385 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10386 fi
10387 if test "$with_gnu_ld" = no; then
10388 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10389 hardcode_libdir_separator=:
10390 hardcode_direct=yes
10391 hardcode_direct_absolute=yes
10392 export_dynamic_flag_spec='${wl}-E'
10393 # hardcode_minus_L: Not really in the search PATH,
10394 # but as the default location of the library.
10395 hardcode_minus_L=yes
10396 fi
10397 ;;
10398
10399 hpux11*)
10400 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10401 case $host_cpu in
10402 hppa*64*)
10403 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10404 ;;
10405 ia64*)
10406 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10407 ;;
10408 *)
10409 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10410 ;;
10411 esac
10412 else
10413 case $host_cpu in
10414 hppa*64*)
10415 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10416 ;;
10417 ia64*)
10418 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10419 ;;
10420 *)
10421
10422 # Older versions of the 11.00 compiler do not understand -b yet
10423 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10425 $as_echo_n "checking if $CC understands -b... " >&6; }
10426 if ${lt_cv_prog_compiler__b+:} false; then :
10427 $as_echo_n "(cached) " >&6
10428 else
10429 lt_cv_prog_compiler__b=no
10430 save_LDFLAGS="$LDFLAGS"
10431 LDFLAGS="$LDFLAGS -b"
10432 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10434 # The linker can only warn and ignore the option if not recognized
10435 # So say no if there are warnings
10436 if test -s conftest.err; then
10437 # Append any errors to the config.log.
10438 cat conftest.err 1>&5
10439 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10441 if diff conftest.exp conftest.er2 >/dev/null; then
10442 lt_cv_prog_compiler__b=yes
10443 fi
10444 else
10445 lt_cv_prog_compiler__b=yes
10446 fi
10447 fi
10448 $RM -r conftest*
10449 LDFLAGS="$save_LDFLAGS"
10450
10451 fi
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10453 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10454
10455 if test x"$lt_cv_prog_compiler__b" = xyes; then
10456 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10457 else
10458 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10459 fi
10460
10461 ;;
10462 esac
10463 fi
10464 if test "$with_gnu_ld" = no; then
10465 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10466 hardcode_libdir_separator=:
10467
10468 case $host_cpu in
10469 hppa*64*|ia64*)
10470 hardcode_direct=no
10471 hardcode_shlibpath_var=no
10472 ;;
10473 *)
10474 hardcode_direct=yes
10475 hardcode_direct_absolute=yes
10476 export_dynamic_flag_spec='${wl}-E'
10477
10478 # hardcode_minus_L: Not really in the search PATH,
10479 # but as the default location of the library.
10480 hardcode_minus_L=yes
10481 ;;
10482 esac
10483 fi
10484 ;;
10485
10486 irix5* | irix6* | nonstopux*)
10487 if test "$GCC" = yes; then
10488 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'
10489 # Try to use the -exported_symbol ld option, if it does not
10490 # work, assume that -exports_file does not work either and
10491 # implicitly export all symbols.
10492 # This should be the same for all languages, so no per-tag cache variable.
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10494 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10495 if ${lt_cv_irix_exported_symbol+:} false; then :
10496 $as_echo_n "(cached) " >&6
10497 else
10498 save_LDFLAGS="$LDFLAGS"
10499 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10502 int foo (void) { return 0; }
10503 _ACEOF
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 lt_cv_irix_exported_symbol=yes
10506 else
10507 lt_cv_irix_exported_symbol=no
10508 fi
10509 rm -f core conftest.err conftest.$ac_objext \
10510 conftest$ac_exeext conftest.$ac_ext
10511 LDFLAGS="$save_LDFLAGS"
10512 fi
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10514 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10515 if test "$lt_cv_irix_exported_symbol" = yes; then
10516 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'
10517 fi
10518 else
10519 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'
10520 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'
10521 fi
10522 archive_cmds_need_lc='no'
10523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10524 hardcode_libdir_separator=:
10525 inherit_rpath=yes
10526 link_all_deplibs=yes
10527 ;;
10528
10529 netbsd*)
10530 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10532 else
10533 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10534 fi
10535 hardcode_libdir_flag_spec='-R$libdir'
10536 hardcode_direct=yes
10537 hardcode_shlibpath_var=no
10538 ;;
10539
10540 newsos6)
10541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10542 hardcode_direct=yes
10543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10544 hardcode_libdir_separator=:
10545 hardcode_shlibpath_var=no
10546 ;;
10547
10548 *nto* | *qnx*)
10549 ;;
10550
10551 openbsd*)
10552 if test -f /usr/libexec/ld.so; then
10553 hardcode_direct=yes
10554 hardcode_shlibpath_var=no
10555 hardcode_direct_absolute=yes
10556 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10557 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10558 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10559 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10560 export_dynamic_flag_spec='${wl}-E'
10561 else
10562 case $host_os in
10563 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10565 hardcode_libdir_flag_spec='-R$libdir'
10566 ;;
10567 *)
10568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10569 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10570 ;;
10571 esac
10572 fi
10573 else
10574 ld_shlibs=no
10575 fi
10576 ;;
10577
10578 os2*)
10579 hardcode_libdir_flag_spec='-L$libdir'
10580 hardcode_minus_L=yes
10581 allow_undefined_flag=unsupported
10582 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'
10583 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10584 ;;
10585
10586 osf3*)
10587 if test "$GCC" = yes; then
10588 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10589 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'
10590 else
10591 allow_undefined_flag=' -expect_unresolved \*'
10592 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'
10593 fi
10594 archive_cmds_need_lc='no'
10595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10596 hardcode_libdir_separator=:
10597 ;;
10598
10599 osf4* | osf5*) # as osf3* with the addition of -msym flag
10600 if test "$GCC" = yes; then
10601 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10602 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'
10603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10604 else
10605 allow_undefined_flag=' -expect_unresolved \*'
10606 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'
10607 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~
10608 $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'
10609
10610 # Both c and cxx compiler support -rpath directly
10611 hardcode_libdir_flag_spec='-rpath $libdir'
10612 fi
10613 archive_cmds_need_lc='no'
10614 hardcode_libdir_separator=:
10615 ;;
10616
10617 solaris*)
10618 no_undefined_flag=' -z defs'
10619 if test "$GCC" = yes; then
10620 wlarc='${wl}'
10621 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10623 $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'
10624 else
10625 case `$CC -V 2>&1` in
10626 *"Compilers 5.0"*)
10627 wlarc=''
10628 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10629 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10630 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10631 ;;
10632 *)
10633 wlarc='${wl}'
10634 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10636 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10637 ;;
10638 esac
10639 fi
10640 hardcode_libdir_flag_spec='-R$libdir'
10641 hardcode_shlibpath_var=no
10642 case $host_os in
10643 solaris2.[0-5] | solaris2.[0-5].*) ;;
10644 *)
10645 # The compiler driver will combine and reorder linker options,
10646 # but understands `-z linker_flag'. GCC discards it without `$wl',
10647 # but is careful enough not to reorder.
10648 # Supported since Solaris 2.6 (maybe 2.5.1?)
10649 if test "$GCC" = yes; then
10650 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10651 else
10652 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10653 fi
10654 ;;
10655 esac
10656 link_all_deplibs=yes
10657 ;;
10658
10659 sunos4*)
10660 if test "x$host_vendor" = xsequent; then
10661 # Use $CC to link under sequent, because it throws in some extra .o
10662 # files that make .init and .fini sections work.
10663 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10664 else
10665 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10666 fi
10667 hardcode_libdir_flag_spec='-L$libdir'
10668 hardcode_direct=yes
10669 hardcode_minus_L=yes
10670 hardcode_shlibpath_var=no
10671 ;;
10672
10673 sysv4)
10674 case $host_vendor in
10675 sni)
10676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10677 hardcode_direct=yes # is this really true???
10678 ;;
10679 siemens)
10680 ## LD is ld it makes a PLAMLIB
10681 ## CC just makes a GrossModule.
10682 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10683 reload_cmds='$CC -r -o $output$reload_objs'
10684 hardcode_direct=no
10685 ;;
10686 motorola)
10687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10688 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10689 ;;
10690 esac
10691 runpath_var='LD_RUN_PATH'
10692 hardcode_shlibpath_var=no
10693 ;;
10694
10695 sysv4.3*)
10696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10697 hardcode_shlibpath_var=no
10698 export_dynamic_flag_spec='-Bexport'
10699 ;;
10700
10701 sysv4*MP*)
10702 if test -d /usr/nec; then
10703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10704 hardcode_shlibpath_var=no
10705 runpath_var=LD_RUN_PATH
10706 hardcode_runpath_var=yes
10707 ld_shlibs=yes
10708 fi
10709 ;;
10710
10711 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10712 no_undefined_flag='${wl}-z,text'
10713 archive_cmds_need_lc=no
10714 hardcode_shlibpath_var=no
10715 runpath_var='LD_RUN_PATH'
10716
10717 if test "$GCC" = yes; then
10718 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10719 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10720 else
10721 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10722 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10723 fi
10724 ;;
10725
10726 sysv5* | sco3.2v5* | sco5v6*)
10727 # Note: We can NOT use -z defs as we might desire, because we do not
10728 # link with -lc, and that would cause any symbols used from libc to
10729 # always be unresolved, which means just about no library would
10730 # ever link correctly. If we're not using GNU ld we use -z text
10731 # though, which does catch some bad symbols but isn't as heavy-handed
10732 # as -z defs.
10733 no_undefined_flag='${wl}-z,text'
10734 allow_undefined_flag='${wl}-z,nodefs'
10735 archive_cmds_need_lc=no
10736 hardcode_shlibpath_var=no
10737 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10738 hardcode_libdir_separator=':'
10739 link_all_deplibs=yes
10740 export_dynamic_flag_spec='${wl}-Bexport'
10741 runpath_var='LD_RUN_PATH'
10742
10743 if test "$GCC" = yes; then
10744 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10745 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10746 else
10747 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10748 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749 fi
10750 ;;
10751
10752 uts4*)
10753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10754 hardcode_libdir_flag_spec='-L$libdir'
10755 hardcode_shlibpath_var=no
10756 ;;
10757
10758 *)
10759 ld_shlibs=no
10760 ;;
10761 esac
10762
10763 if test x$host_vendor = xsni; then
10764 case $host in
10765 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10766 export_dynamic_flag_spec='${wl}-Blargedynsym'
10767 ;;
10768 esac
10769 fi
10770 fi
10771
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10773 $as_echo "$ld_shlibs" >&6; }
10774 test "$ld_shlibs" = no && can_build_shared=no
10775
10776 with_gnu_ld=$with_gnu_ld
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792 #
10793 # Do we need to explicitly link libc?
10794 #
10795 case "x$archive_cmds_need_lc" in
10796 x|xyes)
10797 # Assume -lc should be added
10798 archive_cmds_need_lc=yes
10799
10800 if test "$enable_shared" = yes && test "$GCC" = yes; then
10801 case $archive_cmds in
10802 *'~'*)
10803 # FIXME: we may have to deal with multi-command sequences.
10804 ;;
10805 '$CC '*)
10806 # Test whether the compiler implicitly links with -lc since on some
10807 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10808 # to ld, don't add -lc before -lgcc.
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10810 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10811 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 $RM conftest*
10815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10816
10817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10818 (eval $ac_compile) 2>&5
10819 ac_status=$?
10820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10821 test $ac_status = 0; } 2>conftest.err; then
10822 soname=conftest
10823 lib=conftest
10824 libobjs=conftest.$ac_objext
10825 deplibs=
10826 wl=$lt_prog_compiler_wl
10827 pic_flag=$lt_prog_compiler_pic
10828 compiler_flags=-v
10829 linker_flags=-v
10830 verstring=
10831 output_objdir=.
10832 libname=conftest
10833 lt_save_allow_undefined_flag=$allow_undefined_flag
10834 allow_undefined_flag=
10835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10836 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10837 ac_status=$?
10838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10839 test $ac_status = 0; }
10840 then
10841 lt_cv_archive_cmds_need_lc=no
10842 else
10843 lt_cv_archive_cmds_need_lc=yes
10844 fi
10845 allow_undefined_flag=$lt_save_allow_undefined_flag
10846 else
10847 cat conftest.err 1>&5
10848 fi
10849 $RM conftest*
10850
10851 fi
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10853 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10854 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10855 ;;
10856 esac
10857 fi
10858 ;;
10859 esac
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
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11013 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11014
11015 if test "$GCC" = yes; then
11016 case $host_os in
11017 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11018 *) lt_awk_arg="/^libraries:/" ;;
11019 esac
11020 case $host_os in
11021 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11022 *) lt_sed_strip_eq="s,=/,/,g" ;;
11023 esac
11024 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11025 case $lt_search_path_spec in
11026 *\;*)
11027 # if the path contains ";" then we assume it to be the separator
11028 # otherwise default to the standard path separator (i.e. ":") - it is
11029 # assumed that no part of a normal pathname contains ";" but that should
11030 # okay in the real world where ";" in dirpaths is itself problematic.
11031 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11032 ;;
11033 *)
11034 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11035 ;;
11036 esac
11037 # Ok, now we have the path, separated by spaces, we can step through it
11038 # and add multilib dir if necessary.
11039 lt_tmp_lt_search_path_spec=
11040 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11041 for lt_sys_path in $lt_search_path_spec; do
11042 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11043 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11044 else
11045 test -d "$lt_sys_path" && \
11046 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11047 fi
11048 done
11049 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11050 BEGIN {RS=" "; FS="/|\n";} {
11051 lt_foo="";
11052 lt_count=0;
11053 for (lt_i = NF; lt_i > 0; lt_i--) {
11054 if ($lt_i != "" && $lt_i != ".") {
11055 if ($lt_i == "..") {
11056 lt_count++;
11057 } else {
11058 if (lt_count == 0) {
11059 lt_foo="/" $lt_i lt_foo;
11060 } else {
11061 lt_count--;
11062 }
11063 }
11064 }
11065 }
11066 if (lt_foo != "") { lt_freq[lt_foo]++; }
11067 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11068 }'`
11069 # AWK program above erroneously prepends '/' to C:/dos/paths
11070 # for these hosts.
11071 case $host_os in
11072 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11073 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11074 esac
11075 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11076 else
11077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11078 fi
11079 library_names_spec=
11080 libname_spec='lib$name'
11081 soname_spec=
11082 shrext_cmds=".so"
11083 postinstall_cmds=
11084 postuninstall_cmds=
11085 finish_cmds=
11086 finish_eval=
11087 shlibpath_var=
11088 shlibpath_overrides_runpath=unknown
11089 version_type=none
11090 dynamic_linker="$host_os ld.so"
11091 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11092 need_lib_prefix=unknown
11093 hardcode_into_libs=no
11094
11095 # when you set need_version to no, make sure it does not cause -set_version
11096 # flags to be left without arguments
11097 need_version=unknown
11098
11099 case $host_os in
11100 aix3*)
11101 version_type=linux # correct to gnu/linux during the next big refactor
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11103 shlibpath_var=LIBPATH
11104
11105 # AIX 3 has no versioning support, so we append a major version to the name.
11106 soname_spec='${libname}${release}${shared_ext}$major'
11107 ;;
11108
11109 aix[4-9]*)
11110 version_type=linux # correct to gnu/linux during the next big refactor
11111 need_lib_prefix=no
11112 need_version=no
11113 hardcode_into_libs=yes
11114 if test "$host_cpu" = ia64; then
11115 # AIX 5 supports IA64
11116 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 else
11119 # With GCC up to 2.95.x, collect2 would create an import file
11120 # for dependence libraries. The import file would start with
11121 # the line `#! .'. This would cause the generated library to
11122 # depend on `.', always an invalid library. This was fixed in
11123 # development snapshots of GCC prior to 3.0.
11124 case $host_os in
11125 aix4 | aix4.[01] | aix4.[01].*)
11126 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11127 echo ' yes '
11128 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11129 :
11130 else
11131 can_build_shared=no
11132 fi
11133 ;;
11134 esac
11135 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11136 # soname into executable. Probably we can add versioning support to
11137 # collect2, so additional links can be useful in future.
11138 if test "$aix_use_runtimelinking" = yes; then
11139 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11140 # instead of lib<name>.a to let people know that these are not
11141 # typical AIX shared libraries.
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143 else
11144 # We preserve .a as extension for shared libraries through AIX4.2
11145 # and later when we are not doing run time linking.
11146 library_names_spec='${libname}${release}.a $libname.a'
11147 soname_spec='${libname}${release}${shared_ext}$major'
11148 fi
11149 shlibpath_var=LIBPATH
11150 fi
11151 ;;
11152
11153 amigaos*)
11154 case $host_cpu in
11155 powerpc)
11156 # Since July 2007 AmigaOS4 officially supports .so libraries.
11157 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11159 ;;
11160 m68k)
11161 library_names_spec='$libname.ixlibrary $libname.a'
11162 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11163 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'
11164 ;;
11165 esac
11166 ;;
11167
11168 beos*)
11169 library_names_spec='${libname}${shared_ext}'
11170 dynamic_linker="$host_os ld.so"
11171 shlibpath_var=LIBRARY_PATH
11172 ;;
11173
11174 bsdi[45]*)
11175 version_type=linux # correct to gnu/linux during the next big refactor
11176 need_version=no
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11183 # the default ld.so.conf also contains /usr/contrib/lib and
11184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11185 # libtool to hard-code these into programs
11186 ;;
11187
11188 cygwin* | mingw* | pw32* | cegcc*)
11189 version_type=windows
11190 shrext_cmds=".dll"
11191 need_version=no
11192 need_lib_prefix=no
11193
11194 case $GCC,$cc_basename in
11195 yes,*)
11196 # gcc
11197 library_names_spec='$libname.dll.a'
11198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11199 postinstall_cmds='base_file=`basename \${file}`~
11200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11201 dldir=$destdir/`dirname \$dlpath`~
11202 test -d \$dldir || mkdir -p \$dldir~
11203 $install_prog $dir/$dlname \$dldir/$dlname~
11204 chmod a+x \$dldir/$dlname~
11205 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11206 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11207 fi'
11208 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11209 dlpath=$dir/\$dldll~
11210 $RM \$dlpath'
11211 shlibpath_overrides_runpath=yes
11212
11213 case $host_os in
11214 cygwin*)
11215 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11216 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11217
11218 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11219 ;;
11220 mingw* | cegcc*)
11221 # MinGW DLLs use traditional 'lib' prefix
11222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11223 ;;
11224 pw32*)
11225 # pw32 DLLs use 'pw' prefix rather than 'lib'
11226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11227 ;;
11228 esac
11229 dynamic_linker='Win32 ld.exe'
11230 ;;
11231
11232 *,cl*)
11233 # Native MSVC
11234 libname_spec='$name'
11235 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11236 library_names_spec='${libname}.dll.lib'
11237
11238 case $build_os in
11239 mingw*)
11240 sys_lib_search_path_spec=
11241 lt_save_ifs=$IFS
11242 IFS=';'
11243 for lt_path in $LIB
11244 do
11245 IFS=$lt_save_ifs
11246 # Let DOS variable expansion print the short 8.3 style file name.
11247 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11248 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11249 done
11250 IFS=$lt_save_ifs
11251 # Convert to MSYS style.
11252 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11253 ;;
11254 cygwin*)
11255 # Convert to unix form, then to dos form, then back to unix form
11256 # but this time dos style (no spaces!) so that the unix form looks
11257 # like /cygdrive/c/PROGRA~1:/cygdr...
11258 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11259 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11260 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11261 ;;
11262 *)
11263 sys_lib_search_path_spec="$LIB"
11264 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11265 # It is most probably a Windows format PATH.
11266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11267 else
11268 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11269 fi
11270 # FIXME: find the short name or the path components, as spaces are
11271 # common. (e.g. "Program Files" -> "PROGRA~1")
11272 ;;
11273 esac
11274
11275 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11276 postinstall_cmds='base_file=`basename \${file}`~
11277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11278 dldir=$destdir/`dirname \$dlpath`~
11279 test -d \$dldir || mkdir -p \$dldir~
11280 $install_prog $dir/$dlname \$dldir/$dlname'
11281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11282 dlpath=$dir/\$dldll~
11283 $RM \$dlpath'
11284 shlibpath_overrides_runpath=yes
11285 dynamic_linker='Win32 link.exe'
11286 ;;
11287
11288 *)
11289 # Assume MSVC wrapper
11290 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11291 dynamic_linker='Win32 ld.exe'
11292 ;;
11293 esac
11294 # FIXME: first we should search . and the directory the executable is in
11295 shlibpath_var=PATH
11296 ;;
11297
11298 darwin* | rhapsody*)
11299 dynamic_linker="$host_os dyld"
11300 version_type=darwin
11301 need_lib_prefix=no
11302 need_version=no
11303 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11304 soname_spec='${libname}${release}${major}$shared_ext'
11305 shlibpath_overrides_runpath=yes
11306 shlibpath_var=DYLD_LIBRARY_PATH
11307 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11308
11309 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11310 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11311 ;;
11312
11313 dgux*)
11314 version_type=linux # correct to gnu/linux during the next big refactor
11315 need_lib_prefix=no
11316 need_version=no
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 shlibpath_var=LD_LIBRARY_PATH
11320 ;;
11321
11322 freebsd* | dragonfly*)
11323 # DragonFly does not have aout. When/if they implement a new
11324 # versioning mechanism, adjust this.
11325 if test -x /usr/bin/objformat; then
11326 objformat=`/usr/bin/objformat`
11327 else
11328 case $host_os in
11329 freebsd[23].*) objformat=aout ;;
11330 *) objformat=elf ;;
11331 esac
11332 fi
11333 version_type=freebsd-$objformat
11334 case $version_type in
11335 freebsd-elf*)
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11337 need_version=no
11338 need_lib_prefix=no
11339 ;;
11340 freebsd-*)
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11342 need_version=yes
11343 ;;
11344 esac
11345 shlibpath_var=LD_LIBRARY_PATH
11346 case $host_os in
11347 freebsd2.*)
11348 shlibpath_overrides_runpath=yes
11349 ;;
11350 freebsd3.[01]* | freebsdelf3.[01]*)
11351 shlibpath_overrides_runpath=yes
11352 hardcode_into_libs=yes
11353 ;;
11354 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11355 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11356 shlibpath_overrides_runpath=no
11357 hardcode_into_libs=yes
11358 ;;
11359 *) # from 4.6 on, and DragonFly
11360 shlibpath_overrides_runpath=yes
11361 hardcode_into_libs=yes
11362 ;;
11363 esac
11364 ;;
11365
11366 gnu*)
11367 version_type=linux # correct to gnu/linux during the next big refactor
11368 need_lib_prefix=no
11369 need_version=no
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 shlibpath_var=LD_LIBRARY_PATH
11373 shlibpath_overrides_runpath=no
11374 hardcode_into_libs=yes
11375 ;;
11376
11377 haiku*)
11378 version_type=linux # correct to gnu/linux during the next big refactor
11379 need_lib_prefix=no
11380 need_version=no
11381 dynamic_linker="$host_os runtime_loader"
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11384 shlibpath_var=LIBRARY_PATH
11385 shlibpath_overrides_runpath=yes
11386 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11387 hardcode_into_libs=yes
11388 ;;
11389
11390 hpux9* | hpux10* | hpux11*)
11391 # Give a soname corresponding to the major version so that dld.sl refuses to
11392 # link against other versions.
11393 version_type=sunos
11394 need_lib_prefix=no
11395 need_version=no
11396 case $host_cpu in
11397 ia64*)
11398 shrext_cmds='.so'
11399 hardcode_into_libs=yes
11400 dynamic_linker="$host_os dld.so"
11401 shlibpath_var=LD_LIBRARY_PATH
11402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404 soname_spec='${libname}${release}${shared_ext}$major'
11405 if test "X$HPUX_IA64_MODE" = X32; then
11406 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11407 else
11408 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11409 fi
11410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11411 ;;
11412 hppa*64*)
11413 shrext_cmds='.sl'
11414 hardcode_into_libs=yes
11415 dynamic_linker="$host_os dld.sl"
11416 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11419 soname_spec='${libname}${release}${shared_ext}$major'
11420 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11422 ;;
11423 *)
11424 shrext_cmds='.sl'
11425 dynamic_linker="$host_os dld.sl"
11426 shlibpath_var=SHLIB_PATH
11427 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 ;;
11431 esac
11432 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11433 postinstall_cmds='chmod 555 $lib'
11434 # or fails outright, so override atomically:
11435 install_override_mode=555
11436 ;;
11437
11438 interix[3-9]*)
11439 version_type=linux # correct to gnu/linux during the next big refactor
11440 need_lib_prefix=no
11441 need_version=no
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 shlibpath_overrides_runpath=no
11447 hardcode_into_libs=yes
11448 ;;
11449
11450 irix5* | irix6* | nonstopux*)
11451 case $host_os in
11452 nonstopux*) version_type=nonstopux ;;
11453 *)
11454 if test "$lt_cv_prog_gnu_ld" = yes; then
11455 version_type=linux # correct to gnu/linux during the next big refactor
11456 else
11457 version_type=irix
11458 fi ;;
11459 esac
11460 need_lib_prefix=no
11461 need_version=no
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11464 case $host_os in
11465 irix5* | nonstopux*)
11466 libsuff= shlibsuff=
11467 ;;
11468 *)
11469 case $LD in # libtool.m4 will add one of these switches to LD
11470 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11471 libsuff= shlibsuff= libmagic=32-bit;;
11472 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11473 libsuff=32 shlibsuff=N32 libmagic=N32;;
11474 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11475 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11476 *) libsuff= shlibsuff= libmagic=never-match;;
11477 esac
11478 ;;
11479 esac
11480 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11481 shlibpath_overrides_runpath=no
11482 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11483 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11484 hardcode_into_libs=yes
11485 ;;
11486
11487 # No shared lib support for Linux oldld, aout, or coff.
11488 linux*oldld* | linux*aout* | linux*coff*)
11489 dynamic_linker=no
11490 ;;
11491
11492 # This must be glibc/ELF.
11493 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11494 version_type=linux # correct to gnu/linux during the next big refactor
11495 need_lib_prefix=no
11496 need_version=no
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11498 soname_spec='${libname}${release}${shared_ext}$major'
11499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 shlibpath_overrides_runpath=no
11502
11503 # Some binutils ld are patched to set DT_RUNPATH
11504 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11505 $as_echo_n "(cached) " >&6
11506 else
11507 lt_cv_shlibpath_overrides_runpath=no
11508 save_LDFLAGS=$LDFLAGS
11509 save_libdir=$libdir
11510 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11511 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h. */
11514
11515 int
11516 main ()
11517 {
11518
11519 ;
11520 return 0;
11521 }
11522 _ACEOF
11523 if ac_fn_c_try_link "$LINENO"; then :
11524 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11525 lt_cv_shlibpath_overrides_runpath=yes
11526 fi
11527 fi
11528 rm -f core conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
11530 LDFLAGS=$save_LDFLAGS
11531 libdir=$save_libdir
11532
11533 fi
11534
11535 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11536
11537 # This implies no fast_install, which is unacceptable.
11538 # Some rework will be needed to allow for fast_install
11539 # before this can be enabled.
11540 hardcode_into_libs=yes
11541
11542 # Append ld.so.conf contents to the search path
11543 if test -f /etc/ld.so.conf; then
11544 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' ' '`
11545 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11546 fi
11547
11548 # We used to test for /lib/ld.so.1 and disable shared libraries on
11549 # powerpc, because MkLinux only supported shared libraries with the
11550 # GNU dynamic linker. Since this was broken with cross compilers,
11551 # most powerpc-linux boxes support dynamic linking these days and
11552 # people can always --disable-shared, the test was removed, and we
11553 # assume the GNU/Linux dynamic linker is in use.
11554 dynamic_linker='GNU/Linux ld.so'
11555 ;;
11556
11557 netbsd*)
11558 version_type=sunos
11559 need_lib_prefix=no
11560 need_version=no
11561 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11564 dynamic_linker='NetBSD (a.out) ld.so'
11565 else
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11567 soname_spec='${libname}${release}${shared_ext}$major'
11568 dynamic_linker='NetBSD ld.elf_so'
11569 fi
11570 shlibpath_var=LD_LIBRARY_PATH
11571 shlibpath_overrides_runpath=yes
11572 hardcode_into_libs=yes
11573 ;;
11574
11575 newsos6)
11576 version_type=linux # correct to gnu/linux during the next big refactor
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578 shlibpath_var=LD_LIBRARY_PATH
11579 shlibpath_overrides_runpath=yes
11580 ;;
11581
11582 *nto* | *qnx*)
11583 version_type=qnx
11584 need_lib_prefix=no
11585 need_version=no
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587 soname_spec='${libname}${release}${shared_ext}$major'
11588 shlibpath_var=LD_LIBRARY_PATH
11589 shlibpath_overrides_runpath=no
11590 hardcode_into_libs=yes
11591 dynamic_linker='ldqnx.so'
11592 ;;
11593
11594 openbsd*)
11595 version_type=sunos
11596 sys_lib_dlsearch_path_spec="/usr/lib"
11597 need_lib_prefix=no
11598 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11599 case $host_os in
11600 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11601 *) need_version=no ;;
11602 esac
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11607 case $host_os in
11608 openbsd2.[89] | openbsd2.[89].*)
11609 shlibpath_overrides_runpath=no
11610 ;;
11611 *)
11612 shlibpath_overrides_runpath=yes
11613 ;;
11614 esac
11615 else
11616 shlibpath_overrides_runpath=yes
11617 fi
11618 ;;
11619
11620 os2*)
11621 libname_spec='$name'
11622 shrext_cmds=".dll"
11623 need_lib_prefix=no
11624 library_names_spec='$libname${shared_ext} $libname.a'
11625 dynamic_linker='OS/2 ld.exe'
11626 shlibpath_var=LIBPATH
11627 ;;
11628
11629 osf3* | osf4* | osf5*)
11630 version_type=osf
11631 need_lib_prefix=no
11632 need_version=no
11633 soname_spec='${libname}${release}${shared_ext}$major'
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 shlibpath_var=LD_LIBRARY_PATH
11636 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11637 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11638 ;;
11639
11640 rdos*)
11641 dynamic_linker=no
11642 ;;
11643
11644 solaris*)
11645 version_type=linux # correct to gnu/linux during the next big refactor
11646 need_lib_prefix=no
11647 need_version=no
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 soname_spec='${libname}${release}${shared_ext}$major'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 shlibpath_overrides_runpath=yes
11652 hardcode_into_libs=yes
11653 # ldd complains unless libraries are executable
11654 postinstall_cmds='chmod +x $lib'
11655 ;;
11656
11657 sunos4*)
11658 version_type=sunos
11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11660 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=yes
11663 if test "$with_gnu_ld" = yes; then
11664 need_lib_prefix=no
11665 fi
11666 need_version=yes
11667 ;;
11668
11669 sysv4 | sysv4.3*)
11670 version_type=linux # correct to gnu/linux during the next big refactor
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672 soname_spec='${libname}${release}${shared_ext}$major'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 case $host_vendor in
11675 sni)
11676 shlibpath_overrides_runpath=no
11677 need_lib_prefix=no
11678 runpath_var=LD_RUN_PATH
11679 ;;
11680 siemens)
11681 need_lib_prefix=no
11682 ;;
11683 motorola)
11684 need_lib_prefix=no
11685 need_version=no
11686 shlibpath_overrides_runpath=no
11687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11688 ;;
11689 esac
11690 ;;
11691
11692 sysv4*MP*)
11693 if test -d /usr/nec ;then
11694 version_type=linux # correct to gnu/linux during the next big refactor
11695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11696 soname_spec='$libname${shared_ext}.$major'
11697 shlibpath_var=LD_LIBRARY_PATH
11698 fi
11699 ;;
11700
11701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11702 version_type=freebsd-elf
11703 need_lib_prefix=no
11704 need_version=no
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11706 soname_spec='${libname}${release}${shared_ext}$major'
11707 shlibpath_var=LD_LIBRARY_PATH
11708 shlibpath_overrides_runpath=yes
11709 hardcode_into_libs=yes
11710 if test "$with_gnu_ld" = yes; then
11711 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11712 else
11713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11714 case $host_os in
11715 sco3.2v5*)
11716 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11717 ;;
11718 esac
11719 fi
11720 sys_lib_dlsearch_path_spec='/usr/lib'
11721 ;;
11722
11723 tpf*)
11724 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11725 version_type=linux # correct to gnu/linux during the next big refactor
11726 need_lib_prefix=no
11727 need_version=no
11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11729 shlibpath_var=LD_LIBRARY_PATH
11730 shlibpath_overrides_runpath=no
11731 hardcode_into_libs=yes
11732 ;;
11733
11734 uts4*)
11735 version_type=linux # correct to gnu/linux during the next big refactor
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737 soname_spec='${libname}${release}${shared_ext}$major'
11738 shlibpath_var=LD_LIBRARY_PATH
11739 ;;
11740
11741 *)
11742 dynamic_linker=no
11743 ;;
11744 esac
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11746 $as_echo "$dynamic_linker" >&6; }
11747 test "$dynamic_linker" = no && can_build_shared=no
11748
11749 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11750 if test "$GCC" = yes; then
11751 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11752 fi
11753
11754 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11755 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11756 fi
11757 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11758 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11759 fi
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
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11853 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11854 hardcode_action=
11855 if test -n "$hardcode_libdir_flag_spec" ||
11856 test -n "$runpath_var" ||
11857 test "X$hardcode_automatic" = "Xyes" ; then
11858
11859 # We can hardcode non-existent directories.
11860 if test "$hardcode_direct" != no &&
11861 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11862 # have to relink, otherwise we might link with an installed library
11863 # when we should be linking with a yet-to-be-installed one
11864 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11865 test "$hardcode_minus_L" != no; then
11866 # Linking always hardcodes the temporary library directory.
11867 hardcode_action=relink
11868 else
11869 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11870 hardcode_action=immediate
11871 fi
11872 else
11873 # We cannot hardcode anything, or else we can only hardcode existing
11874 # directories.
11875 hardcode_action=unsupported
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11878 $as_echo "$hardcode_action" >&6; }
11879
11880 if test "$hardcode_action" = relink ||
11881 test "$inherit_rpath" = yes; then
11882 # Fast installation is not supported
11883 enable_fast_install=no
11884 elif test "$shlibpath_overrides_runpath" = yes ||
11885 test "$enable_shared" = no; then
11886 # Fast installation is not necessary
11887 enable_fast_install=needless
11888 fi
11889
11890
11891
11892
11893
11894
11895 if test "x$enable_dlopen" != xyes; then
11896 enable_dlopen=unknown
11897 enable_dlopen_self=unknown
11898 enable_dlopen_self_static=unknown
11899 else
11900 lt_cv_dlopen=no
11901 lt_cv_dlopen_libs=
11902
11903 case $host_os in
11904 beos*)
11905 lt_cv_dlopen="load_add_on"
11906 lt_cv_dlopen_libs=
11907 lt_cv_dlopen_self=yes
11908 ;;
11909
11910 mingw* | pw32* | cegcc*)
11911 lt_cv_dlopen="LoadLibrary"
11912 lt_cv_dlopen_libs=
11913 ;;
11914
11915 cygwin*)
11916 lt_cv_dlopen="dlopen"
11917 lt_cv_dlopen_libs=
11918 ;;
11919
11920 darwin*)
11921 # if libdl is installed we need to link against it
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11923 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11924 if ${ac_cv_lib_dl_dlopen+:} false; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 ac_check_lib_save_LIBS=$LIBS
11928 LIBS="-ldl $LIBS"
11929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930 /* end confdefs.h. */
11931
11932 /* Override any GCC internal prototype to avoid an error.
11933 Use char because int might match the return type of a GCC
11934 builtin and then its argument prototype would still apply. */
11935 #ifdef __cplusplus
11936 extern "C"
11937 #endif
11938 char dlopen ();
11939 int
11940 main ()
11941 {
11942 return dlopen ();
11943 ;
11944 return 0;
11945 }
11946 _ACEOF
11947 if ac_fn_c_try_link "$LINENO"; then :
11948 ac_cv_lib_dl_dlopen=yes
11949 else
11950 ac_cv_lib_dl_dlopen=no
11951 fi
11952 rm -f core conftest.err conftest.$ac_objext \
11953 conftest$ac_exeext conftest.$ac_ext
11954 LIBS=$ac_check_lib_save_LIBS
11955 fi
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11957 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11958 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11960 else
11961
11962 lt_cv_dlopen="dyld"
11963 lt_cv_dlopen_libs=
11964 lt_cv_dlopen_self=yes
11965
11966 fi
11967
11968 ;;
11969
11970 *)
11971 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11972 if test "x$ac_cv_func_shl_load" = xyes; then :
11973 lt_cv_dlopen="shl_load"
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11976 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11977 if ${ac_cv_lib_dld_shl_load+:} false; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-ldld $LIBS"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char shl_load ();
11992 int
11993 main ()
11994 {
11995 return shl_load ();
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_lib_dld_shl_load=yes
12002 else
12003 ac_cv_lib_dld_shl_load=no
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12010 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12011 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12012 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12013 else
12014 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12015 if test "x$ac_cv_func_dlopen" = xyes; then :
12016 lt_cv_dlopen="dlopen"
12017 else
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12019 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12020 if ${ac_cv_lib_dl_dlopen+:} false; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 ac_check_lib_save_LIBS=$LIBS
12024 LIBS="-ldl $LIBS"
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h. */
12027
12028 /* Override any GCC internal prototype to avoid an error.
12029 Use char because int might match the return type of a GCC
12030 builtin and then its argument prototype would still apply. */
12031 #ifdef __cplusplus
12032 extern "C"
12033 #endif
12034 char dlopen ();
12035 int
12036 main ()
12037 {
12038 return dlopen ();
12039 ;
12040 return 0;
12041 }
12042 _ACEOF
12043 if ac_fn_c_try_link "$LINENO"; then :
12044 ac_cv_lib_dl_dlopen=yes
12045 else
12046 ac_cv_lib_dl_dlopen=no
12047 fi
12048 rm -f core conftest.err conftest.$ac_objext \
12049 conftest$ac_exeext conftest.$ac_ext
12050 LIBS=$ac_check_lib_save_LIBS
12051 fi
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12053 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12054 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12055 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12056 else
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12058 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12059 if ${ac_cv_lib_svld_dlopen+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 ac_check_lib_save_LIBS=$LIBS
12063 LIBS="-lsvld $LIBS"
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12066
12067 /* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12070 #ifdef __cplusplus
12071 extern "C"
12072 #endif
12073 char dlopen ();
12074 int
12075 main ()
12076 {
12077 return dlopen ();
12078 ;
12079 return 0;
12080 }
12081 _ACEOF
12082 if ac_fn_c_try_link "$LINENO"; then :
12083 ac_cv_lib_svld_dlopen=yes
12084 else
12085 ac_cv_lib_svld_dlopen=no
12086 fi
12087 rm -f core conftest.err conftest.$ac_objext \
12088 conftest$ac_exeext conftest.$ac_ext
12089 LIBS=$ac_check_lib_save_LIBS
12090 fi
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12092 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12093 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12095 else
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12097 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12098 if ${ac_cv_lib_dld_dld_link+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 ac_check_lib_save_LIBS=$LIBS
12102 LIBS="-ldld $LIBS"
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12105
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12109 #ifdef __cplusplus
12110 extern "C"
12111 #endif
12112 char dld_link ();
12113 int
12114 main ()
12115 {
12116 return dld_link ();
12117 ;
12118 return 0;
12119 }
12120 _ACEOF
12121 if ac_fn_c_try_link "$LINENO"; then :
12122 ac_cv_lib_dld_dld_link=yes
12123 else
12124 ac_cv_lib_dld_dld_link=no
12125 fi
12126 rm -f core conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12128 LIBS=$ac_check_lib_save_LIBS
12129 fi
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12131 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12132 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12133 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12134 fi
12135
12136
12137 fi
12138
12139
12140 fi
12141
12142
12143 fi
12144
12145
12146 fi
12147
12148
12149 fi
12150
12151 ;;
12152 esac
12153
12154 if test "x$lt_cv_dlopen" != xno; then
12155 enable_dlopen=yes
12156 else
12157 enable_dlopen=no
12158 fi
12159
12160 case $lt_cv_dlopen in
12161 dlopen)
12162 save_CPPFLAGS="$CPPFLAGS"
12163 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12164
12165 save_LDFLAGS="$LDFLAGS"
12166 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12167
12168 save_LIBS="$LIBS"
12169 LIBS="$lt_cv_dlopen_libs $LIBS"
12170
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12172 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12173 if ${lt_cv_dlopen_self+:} false; then :
12174 $as_echo_n "(cached) " >&6
12175 else
12176 if test "$cross_compiling" = yes; then :
12177 lt_cv_dlopen_self=cross
12178 else
12179 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12180 lt_status=$lt_dlunknown
12181 cat > conftest.$ac_ext <<_LT_EOF
12182 #line $LINENO "configure"
12183 #include "confdefs.h"
12184
12185 #if HAVE_DLFCN_H
12186 #include <dlfcn.h>
12187 #endif
12188
12189 #include <stdio.h>
12190
12191 #ifdef RTLD_GLOBAL
12192 # define LT_DLGLOBAL RTLD_GLOBAL
12193 #else
12194 # ifdef DL_GLOBAL
12195 # define LT_DLGLOBAL DL_GLOBAL
12196 # else
12197 # define LT_DLGLOBAL 0
12198 # endif
12199 #endif
12200
12201 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12202 find out it does not work in some platform. */
12203 #ifndef LT_DLLAZY_OR_NOW
12204 # ifdef RTLD_LAZY
12205 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12206 # else
12207 # ifdef DL_LAZY
12208 # define LT_DLLAZY_OR_NOW DL_LAZY
12209 # else
12210 # ifdef RTLD_NOW
12211 # define LT_DLLAZY_OR_NOW RTLD_NOW
12212 # else
12213 # ifdef DL_NOW
12214 # define LT_DLLAZY_OR_NOW DL_NOW
12215 # else
12216 # define LT_DLLAZY_OR_NOW 0
12217 # endif
12218 # endif
12219 # endif
12220 # endif
12221 #endif
12222
12223 /* When -fvisbility=hidden is used, assume the code has been annotated
12224 correspondingly for the symbols needed. */
12225 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12226 int fnord () __attribute__((visibility("default")));
12227 #endif
12228
12229 int fnord () { return 42; }
12230 int main ()
12231 {
12232 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12233 int status = $lt_dlunknown;
12234
12235 if (self)
12236 {
12237 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12238 else
12239 {
12240 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12241 else puts (dlerror ());
12242 }
12243 /* dlclose (self); */
12244 }
12245 else
12246 puts (dlerror ());
12247
12248 return status;
12249 }
12250 _LT_EOF
12251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12252 (eval $ac_link) 2>&5
12253 ac_status=$?
12254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12255 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12256 (./conftest; exit; ) >&5 2>/dev/null
12257 lt_status=$?
12258 case x$lt_status in
12259 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12260 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12261 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12262 esac
12263 else :
12264 # compilation failed
12265 lt_cv_dlopen_self=no
12266 fi
12267 fi
12268 rm -fr conftest*
12269
12270
12271 fi
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12273 $as_echo "$lt_cv_dlopen_self" >&6; }
12274
12275 if test "x$lt_cv_dlopen_self" = xyes; then
12276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12278 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12279 if ${lt_cv_dlopen_self_static+:} false; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 if test "$cross_compiling" = yes; then :
12283 lt_cv_dlopen_self_static=cross
12284 else
12285 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12286 lt_status=$lt_dlunknown
12287 cat > conftest.$ac_ext <<_LT_EOF
12288 #line $LINENO "configure"
12289 #include "confdefs.h"
12290
12291 #if HAVE_DLFCN_H
12292 #include <dlfcn.h>
12293 #endif
12294
12295 #include <stdio.h>
12296
12297 #ifdef RTLD_GLOBAL
12298 # define LT_DLGLOBAL RTLD_GLOBAL
12299 #else
12300 # ifdef DL_GLOBAL
12301 # define LT_DLGLOBAL DL_GLOBAL
12302 # else
12303 # define LT_DLGLOBAL 0
12304 # endif
12305 #endif
12306
12307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12308 find out it does not work in some platform. */
12309 #ifndef LT_DLLAZY_OR_NOW
12310 # ifdef RTLD_LAZY
12311 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12312 # else
12313 # ifdef DL_LAZY
12314 # define LT_DLLAZY_OR_NOW DL_LAZY
12315 # else
12316 # ifdef RTLD_NOW
12317 # define LT_DLLAZY_OR_NOW RTLD_NOW
12318 # else
12319 # ifdef DL_NOW
12320 # define LT_DLLAZY_OR_NOW DL_NOW
12321 # else
12322 # define LT_DLLAZY_OR_NOW 0
12323 # endif
12324 # endif
12325 # endif
12326 # endif
12327 #endif
12328
12329 /* When -fvisbility=hidden is used, assume the code has been annotated
12330 correspondingly for the symbols needed. */
12331 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12332 int fnord () __attribute__((visibility("default")));
12333 #endif
12334
12335 int fnord () { return 42; }
12336 int main ()
12337 {
12338 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12339 int status = $lt_dlunknown;
12340
12341 if (self)
12342 {
12343 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12344 else
12345 {
12346 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12347 else puts (dlerror ());
12348 }
12349 /* dlclose (self); */
12350 }
12351 else
12352 puts (dlerror ());
12353
12354 return status;
12355 }
12356 _LT_EOF
12357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12358 (eval $ac_link) 2>&5
12359 ac_status=$?
12360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12361 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12362 (./conftest; exit; ) >&5 2>/dev/null
12363 lt_status=$?
12364 case x$lt_status in
12365 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12366 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12367 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12368 esac
12369 else :
12370 # compilation failed
12371 lt_cv_dlopen_self_static=no
12372 fi
12373 fi
12374 rm -fr conftest*
12375
12376
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12379 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12380 fi
12381
12382 CPPFLAGS="$save_CPPFLAGS"
12383 LDFLAGS="$save_LDFLAGS"
12384 LIBS="$save_LIBS"
12385 ;;
12386 esac
12387
12388 case $lt_cv_dlopen_self in
12389 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12390 *) enable_dlopen_self=unknown ;;
12391 esac
12392
12393 case $lt_cv_dlopen_self_static in
12394 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12395 *) enable_dlopen_self_static=unknown ;;
12396 esac
12397 fi
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415 striplib=
12416 old_striplib=
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12418 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12419 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12420 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12421 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12423 $as_echo "yes" >&6; }
12424 else
12425 # FIXME - insert some real tests, host_os isn't really good enough
12426 case $host_os in
12427 darwin*)
12428 if test -n "$STRIP" ; then
12429 striplib="$STRIP -x"
12430 old_striplib="$STRIP -S"
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12432 $as_echo "yes" >&6; }
12433 else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; }
12436 fi
12437 ;;
12438 *)
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 $as_echo "no" >&6; }
12441 ;;
12442 esac
12443 fi
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456 # Report which library types will actually be built
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12458 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12460 $as_echo "$can_build_shared" >&6; }
12461
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12463 $as_echo_n "checking whether to build shared libraries... " >&6; }
12464 test "$can_build_shared" = "no" && enable_shared=no
12465
12466 # On AIX, shared libraries and static libraries use the same namespace, and
12467 # are all built from PIC.
12468 case $host_os in
12469 aix3*)
12470 test "$enable_shared" = yes && enable_static=no
12471 if test -n "$RANLIB"; then
12472 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12473 postinstall_cmds='$RANLIB $lib'
12474 fi
12475 ;;
12476
12477 aix[4-9]*)
12478 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12479 test "$enable_shared" = yes && enable_static=no
12480 fi
12481 ;;
12482 esac
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12484 $as_echo "$enable_shared" >&6; }
12485
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12487 $as_echo_n "checking whether to build static libraries... " >&6; }
12488 # Make sure either enable_shared or enable_static is yes.
12489 test "$enable_shared" = yes || enable_static=yes
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12491 $as_echo "$enable_static" >&6; }
12492
12493
12494
12495
12496 fi
12497 ac_ext=c
12498 ac_cpp='$CPP $CPPFLAGS'
12499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12502
12503 CC="$lt_save_CC"
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519 ac_config_commands="$ac_config_commands libtool"
12520
12521
12522
12523
12524 # Only expand once:
12525
12526
12527
12528
12529 CFLAG_VISIBILITY=
12530 HAVE_VISIBILITY=0
12531 if test -n "$GCC"; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
12533 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
12534 if ${gl_cv_cc_vis_werror+:} false; then :
12535 $as_echo_n "(cached) " >&6
12536 else
12537
12538 gl_save_CFLAGS="$CFLAGS"
12539 CFLAGS="$CFLAGS -Werror"
12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h. */
12542
12543 int
12544 main ()
12545 {
12546
12547 ;
12548 return 0;
12549 }
12550 _ACEOF
12551 if ac_fn_c_try_compile "$LINENO"; then :
12552 gl_cv_cc_vis_werror=yes
12553 else
12554 gl_cv_cc_vis_werror=no
12555 fi
12556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12557 CFLAGS="$gl_save_CFLAGS"
12558 fi
12559
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
12561 $as_echo "$gl_cv_cc_vis_werror" >&6; }
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
12563 $as_echo_n "checking for simple visibility declarations... " >&6; }
12564 if ${gl_cv_cc_visibility+:} false; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567
12568 gl_save_CFLAGS="$CFLAGS"
12569 CFLAGS="$CFLAGS -fvisibility=hidden"
12570 if test $gl_cv_cc_vis_werror = yes; then
12571 CFLAGS="$CFLAGS -Werror"
12572 fi
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12575 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
12576 extern __attribute__((__visibility__("default"))) int exportedvar;
12577 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
12578 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
12579 void dummyfunc (void) {}
12580
12581 int
12582 main ()
12583 {
12584
12585 ;
12586 return 0;
12587 }
12588 _ACEOF
12589 if ac_fn_c_try_compile "$LINENO"; then :
12590 gl_cv_cc_visibility=yes
12591 else
12592 gl_cv_cc_visibility=no
12593 fi
12594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12595 CFLAGS="$gl_save_CFLAGS"
12596 fi
12597
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
12599 $as_echo "$gl_cv_cc_visibility" >&6; }
12600 if test $gl_cv_cc_visibility = yes; then
12601 CFLAG_VISIBILITY="-fvisibility=hidden"
12602 HAVE_VISIBILITY=1
12603 fi
12604 fi
12605
12606
12607
12608 cat >>confdefs.h <<_ACEOF
12609 #define HAVE_VISIBILITY $HAVE_VISIBILITY
12610 _ACEOF
12611
12612
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12614 $as_echo_n "checking for ANSI C header files... " >&6; }
12615 if ${ac_cv_header_stdc+:} false; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12620 #include <stdlib.h>
12621 #include <stdarg.h>
12622 #include <string.h>
12623 #include <float.h>
12624
12625 int
12626 main ()
12627 {
12628
12629 ;
12630 return 0;
12631 }
12632 _ACEOF
12633 if ac_fn_c_try_compile "$LINENO"; then :
12634 ac_cv_header_stdc=yes
12635 else
12636 ac_cv_header_stdc=no
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12639
12640 if test $ac_cv_header_stdc = yes; then
12641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12644 #include <string.h>
12645
12646 _ACEOF
12647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12648 $EGREP "memchr" >/dev/null 2>&1; then :
12649
12650 else
12651 ac_cv_header_stdc=no
12652 fi
12653 rm -f conftest*
12654
12655 fi
12656
12657 if test $ac_cv_header_stdc = yes; then
12658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12661 #include <stdlib.h>
12662
12663 _ACEOF
12664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12665 $EGREP "free" >/dev/null 2>&1; then :
12666
12667 else
12668 ac_cv_header_stdc=no
12669 fi
12670 rm -f conftest*
12671
12672 fi
12673
12674 if test $ac_cv_header_stdc = yes; then
12675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12676 if test "$cross_compiling" = yes; then :
12677 :
12678 else
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12681 #include <ctype.h>
12682 #include <stdlib.h>
12683 #if ((' ' & 0x0FF) == 0x020)
12684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12686 #else
12687 # define ISLOWER(c) \
12688 (('a' <= (c) && (c) <= 'i') \
12689 || ('j' <= (c) && (c) <= 'r') \
12690 || ('s' <= (c) && (c) <= 'z'))
12691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12692 #endif
12693
12694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12695 int
12696 main ()
12697 {
12698 int i;
12699 for (i = 0; i < 256; i++)
12700 if (XOR (islower (i), ISLOWER (i))
12701 || toupper (i) != TOUPPER (i))
12702 return 2;
12703 return 0;
12704 }
12705 _ACEOF
12706 if ac_fn_c_try_run "$LINENO"; then :
12707
12708 else
12709 ac_cv_header_stdc=no
12710 fi
12711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12712 conftest.$ac_objext conftest.beam conftest.$ac_ext
12713 fi
12714
12715 fi
12716 fi
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12718 $as_echo "$ac_cv_header_stdc" >&6; }
12719 if test $ac_cv_header_stdc = yes; then
12720
12721 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12722
12723 fi
12724
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
12726 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
12727 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
12728 $as_echo_n "(cached) " >&6
12729 else
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12732 #include <sys/types.h>
12733 int
12734 main ()
12735 {
12736 return makedev(0, 0);
12737 ;
12738 return 0;
12739 }
12740 _ACEOF
12741 if ac_fn_c_try_link "$LINENO"; then :
12742 ac_cv_header_sys_types_h_makedev=yes
12743 else
12744 ac_cv_header_sys_types_h_makedev=no
12745 fi
12746 rm -f core conftest.err conftest.$ac_objext \
12747 conftest$ac_exeext conftest.$ac_ext
12748
12749 fi
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
12751 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
12752
12753 if test $ac_cv_header_sys_types_h_makedev = no; then
12754 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12755 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
12756
12757 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
12758
12759 fi
12760
12761
12762
12763 if test $ac_cv_header_sys_mkdev_h = no; then
12764 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12765 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
12766
12767 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
12768
12769 fi
12770
12771
12772 fi
12773 fi
12774
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12776 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12777 if ${ac_cv_header_sys_wait_h+:} false; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12782 #include <sys/types.h>
12783 #include <sys/wait.h>
12784 #ifndef WEXITSTATUS
12785 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12786 #endif
12787 #ifndef WIFEXITED
12788 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12789 #endif
12790
12791 int
12792 main ()
12793 {
12794 int s;
12795 wait (&s);
12796 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12797 ;
12798 return 0;
12799 }
12800 _ACEOF
12801 if ac_fn_c_try_compile "$LINENO"; then :
12802 ac_cv_header_sys_wait_h=yes
12803 else
12804 ac_cv_header_sys_wait_h=no
12805 fi
12806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12807 fi
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12809 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12810 if test $ac_cv_header_sys_wait_h = yes; then
12811
12812 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12813
12814 fi
12815
12816 for ac_header in stdint.h fcntl.h inttypes.h unistd.h
12817 do :
12818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12819 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12821 cat >>confdefs.h <<_ACEOF
12822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12823 _ACEOF
12824
12825 fi
12826
12827 done
12828
12829 for ac_header in utime.h wchar.h wctype.h
12830 do :
12831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12832 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12833 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12834 cat >>confdefs.h <<_ACEOF
12835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12836 _ACEOF
12837
12838 fi
12839
12840 done
12841
12842 for ac_header in getopt.h err.h xlocale.h
12843 do :
12844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12845 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12846 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12847 cat >>confdefs.h <<_ACEOF
12848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12849 _ACEOF
12850
12851 fi
12852
12853 done
12854
12855 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h sys/sysmacros.h
12856 do :
12857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12858 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12859 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12860 cat >>confdefs.h <<_ACEOF
12861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12862 _ACEOF
12863
12864 fi
12865
12866 done
12867
12868 if test "$enable_zlib" != "no"; then
12869 for ac_header in zlib.h
12870 do :
12871 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12872 if test "x$ac_cv_header_zlib_h" = xyes; then :
12873 cat >>confdefs.h <<_ACEOF
12874 #define HAVE_ZLIB_H 1
12875 _ACEOF
12876
12877 fi
12878
12879 done
12880
12881 fi
12882 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
12883 "
12884 if test "x$ac_cv_type_sig_t" = xyes; then :
12885
12886 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
12887
12888 fi
12889
12890
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12892 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12893 if ${ac_cv_c_const+:} false; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12898
12899 int
12900 main ()
12901 {
12902
12903 #ifndef __cplusplus
12904 /* Ultrix mips cc rejects this sort of thing. */
12905 typedef int charset[2];
12906 const charset cs = { 0, 0 };
12907 /* SunOS 4.1.1 cc rejects this. */
12908 char const *const *pcpcc;
12909 char **ppc;
12910 /* NEC SVR4.0.2 mips cc rejects this. */
12911 struct point {int x, y;};
12912 static struct point const zero = {0,0};
12913 /* AIX XL C 1.02.0.0 rejects this.
12914 It does not let you subtract one const X* pointer from another in
12915 an arm of an if-expression whose if-part is not a constant
12916 expression */
12917 const char *g = "string";
12918 pcpcc = &g + (g ? g-g : 0);
12919 /* HPUX 7.0 cc rejects these. */
12920 ++pcpcc;
12921 ppc = (char**) pcpcc;
12922 pcpcc = (char const *const *) ppc;
12923 { /* SCO 3.2v4 cc rejects this sort of thing. */
12924 char tx;
12925 char *t = &tx;
12926 char const *s = 0 ? (char *) 0 : (char const *) 0;
12927
12928 *t++ = 0;
12929 if (s) return 0;
12930 }
12931 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12932 int x[] = {25, 17};
12933 const int *foo = &x[0];
12934 ++foo;
12935 }
12936 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12937 typedef const int *iptr;
12938 iptr p = 0;
12939 ++p;
12940 }
12941 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12942 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12943 struct s { int j; const int *ap[3]; } bx;
12944 struct s *b = &bx; b->j = 5;
12945 }
12946 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12947 const int foo = 10;
12948 if (!foo) return 0;
12949 }
12950 return !cs[0] && !zero.x;
12951 #endif
12952
12953 ;
12954 return 0;
12955 }
12956 _ACEOF
12957 if ac_fn_c_try_compile "$LINENO"; then :
12958 ac_cv_c_const=yes
12959 else
12960 ac_cv_c_const=no
12961 fi
12962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12963 fi
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12965 $as_echo "$ac_cv_c_const" >&6; }
12966 if test $ac_cv_c_const = no; then
12967
12968 $as_echo "#define const /**/" >>confdefs.h
12969
12970 fi
12971
12972 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12973 if test "x$ac_cv_type_off_t" = xyes; then :
12974
12975 else
12976
12977 cat >>confdefs.h <<_ACEOF
12978 #define off_t long int
12979 _ACEOF
12980
12981 fi
12982
12983 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12984 if test "x$ac_cv_type_size_t" = xyes; then :
12985
12986 else
12987
12988 cat >>confdefs.h <<_ACEOF
12989 #define size_t unsigned int
12990 _ACEOF
12991
12992 fi
12993
12994 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12995 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12996
12997 cat >>confdefs.h <<_ACEOF
12998 #define HAVE_STRUCT_STAT_ST_RDEV 1
12999 _ACEOF
13000
13001
13002 fi
13003
13004
13005 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
13006 "
13007 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
13008
13009 cat >>confdefs.h <<_ACEOF
13010 #define HAVE_STRUCT_TM_TM_GMTOFF 1
13011 _ACEOF
13012
13013
13014 fi
13015
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13017 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13018 if ${ac_cv_struct_tm+:} false; then :
13019 $as_echo_n "(cached) " >&6
13020 else
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13023 #include <sys/types.h>
13024 #include <time.h>
13025
13026 int
13027 main ()
13028 {
13029 struct tm tm;
13030 int *p = &tm.tm_sec;
13031 return !p;
13032 ;
13033 return 0;
13034 }
13035 _ACEOF
13036 if ac_fn_c_try_compile "$LINENO"; then :
13037 ac_cv_struct_tm=time.h
13038 else
13039 ac_cv_struct_tm=sys/time.h
13040 fi
13041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13042 fi
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13044 $as_echo "$ac_cv_struct_tm" >&6; }
13045 if test $ac_cv_struct_tm = sys/time.h; then
13046
13047 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13048
13049 fi
13050
13051 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13052 #include <$ac_cv_struct_tm>
13053
13054 "
13055 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
13056
13057 cat >>confdefs.h <<_ACEOF
13058 #define HAVE_STRUCT_TM_TM_ZONE 1
13059 _ACEOF
13060
13061
13062 fi
13063
13064 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13065
13066 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13067
13068 else
13069 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13070 "
13071 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13072 ac_have_decl=1
13073 else
13074 ac_have_decl=0
13075 fi
13076
13077 cat >>confdefs.h <<_ACEOF
13078 #define HAVE_DECL_TZNAME $ac_have_decl
13079 _ACEOF
13080
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13082 $as_echo_n "checking for tzname... " >&6; }
13083 if ${ac_cv_var_tzname+:} false; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13088 #include <time.h>
13089 #if !HAVE_DECL_TZNAME
13090 extern char *tzname[];
13091 #endif
13092
13093 int
13094 main ()
13095 {
13096 return tzname[0][0];
13097 ;
13098 return 0;
13099 }
13100 _ACEOF
13101 if ac_fn_c_try_link "$LINENO"; then :
13102 ac_cv_var_tzname=yes
13103 else
13104 ac_cv_var_tzname=no
13105 fi
13106 rm -f core conftest.err conftest.$ac_objext \
13107 conftest$ac_exeext conftest.$ac_ext
13108 fi
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13110 $as_echo "$ac_cv_var_tzname" >&6; }
13111 if test $ac_cv_var_tzname = yes; then
13112
13113 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13114
13115 fi
13116 fi
13117
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
13119 $as_echo_n "checking for tm_zone in struct tm... " >&6; }
13120 if ${ac_cv_struct_tm_zone+:} false; then :
13121 $as_echo_n "(cached) " >&6
13122 else
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13125 #include <sys/types.h>
13126 #include <$ac_cv_struct_tm>
13127 int
13128 main ()
13129 {
13130 struct tm tm; tm.tm_zone;
13131 ;
13132 return 0;
13133 }
13134 _ACEOF
13135 if ac_fn_c_try_compile "$LINENO"; then :
13136 ac_cv_struct_tm_zone=yes
13137 else
13138 ac_cv_struct_tm_zone=no
13139 fi
13140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13141 fi
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
13143 $as_echo "$ac_cv_struct_tm_zone" >&6; }
13144 if test "$ac_cv_struct_tm_zone" = yes; then
13145
13146 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13147
13148 fi
13149
13150 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
13151 # consider it declared and we won't give our own extern.
13152 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13153 "
13154 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13155 ac_have_decl=1
13156 else
13157 ac_have_decl=0
13158 fi
13159
13160 cat >>confdefs.h <<_ACEOF
13161 #define HAVE_DECL_TZNAME $ac_have_decl
13162 _ACEOF
13163
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13165 $as_echo_n "checking for tzname... " >&6; }
13166 if ${ac_cv_var_tzname+:} false; then :
13167 $as_echo_n "(cached) " >&6
13168 else
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h. */
13171 #include <time.h>
13172 #if !HAVE_DECL_TZNAME
13173 extern char *tzname[];
13174 #endif
13175 int
13176 main ()
13177 {
13178 return tzname[0][0];
13179 ;
13180 return 0;
13181 }
13182 _ACEOF
13183 if ac_fn_c_try_link "$LINENO"; then :
13184 ac_cv_var_tzname=yes
13185 else
13186 ac_cv_var_tzname=no
13187 fi
13188 rm -f core conftest.err conftest.$ac_objext \
13189 conftest$ac_exeext conftest.$ac_ext
13190 fi
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13192 $as_echo "$ac_cv_var_tzname" >&6; }
13193 if test $ac_cv_var_tzname = yes; then
13194
13195 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13196
13197 fi
13198
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
13200 $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
13201 if ${ac_cv_struct_tm_isdst+:} false; then :
13202 $as_echo_n "(cached) " >&6
13203 else
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13206 #include <sys/types.h>
13207 #include <$ac_cv_struct_tm>
13208 int
13209 main ()
13210 {
13211 struct tm tm; tm.tm_isdst;
13212 ;
13213 return 0;
13214 }
13215 _ACEOF
13216 if ac_fn_c_try_compile "$LINENO"; then :
13217 ac_cv_struct_tm_isdst=yes
13218 else
13219 ac_cv_struct_tm_isdst=no
13220 fi
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222 fi
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
13224 $as_echo "$ac_cv_struct_tm_isdst" >&6; }
13225 if test "$ac_cv_struct_tm_isdst" = yes; then
13226
13227 $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
13228
13229 fi
13230
13231
13232 ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
13233 "
13234 if test "x$ac_cv_have_decl_daylight" = xyes; then :
13235 ac_have_decl=1
13236 else
13237 ac_have_decl=0
13238 fi
13239
13240 cat >>confdefs.h <<_ACEOF
13241 #define HAVE_DECL_DAYLIGHT $ac_have_decl
13242 _ACEOF
13243
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
13245 $as_echo_n "checking for daylight... " >&6; }
13246 if ${ac_cv_var_daylight+:} false; then :
13247 $as_echo_n "(cached) " >&6
13248 else
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251 #include <time.h>
13252 #if !HAVE_DECL_DAYLIGHT
13253 extern int daylight;
13254 #endif
13255 int
13256 main ()
13257 {
13258 atoi(daylight);
13259 ;
13260 return 0;
13261 }
13262 _ACEOF
13263 if ac_fn_c_try_link "$LINENO"; then :
13264 ac_cv_var_daylight=yes
13265 else
13266 ac_cv_var_daylight=no
13267 fi
13268 rm -f core conftest.err conftest.$ac_objext \
13269 conftest$ac_exeext conftest.$ac_ext
13270 fi
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
13272 $as_echo "$ac_cv_var_daylight" >&6; }
13273 if test $ac_cv_var_daylight = yes; then
13274
13275 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13276
13277 fi
13278
13279 # Check whether --enable-largefile was given.
13280 if test "${enable_largefile+set}" = set; then :
13281 enableval=$enable_largefile;
13282 fi
13283
13284 if test "$enable_largefile" != no; then
13285
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13287 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13288 if ${ac_cv_sys_largefile_CC+:} false; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13291 ac_cv_sys_largefile_CC=no
13292 if test "$GCC" != yes; then
13293 ac_save_CC=$CC
13294 while :; do
13295 # IRIX 6.2 and later do not support large files by default,
13296 # so use the C compiler's -n32 option if that helps.
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13299 #include <sys/types.h>
13300 /* Check that off_t can represent 2**63 - 1 correctly.
13301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13302 since some C++ compilers masquerading as C compilers
13303 incorrectly reject 9223372036854775807. */
13304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13306 && LARGE_OFF_T % 2147483647 == 1)
13307 ? 1 : -1];
13308 int
13309 main ()
13310 {
13311
13312 ;
13313 return 0;
13314 }
13315 _ACEOF
13316 if ac_fn_c_try_compile "$LINENO"; then :
13317 break
13318 fi
13319 rm -f core conftest.err conftest.$ac_objext
13320 CC="$CC -n32"
13321 if ac_fn_c_try_compile "$LINENO"; then :
13322 ac_cv_sys_largefile_CC=' -n32'; break
13323 fi
13324 rm -f core conftest.err conftest.$ac_objext
13325 break
13326 done
13327 CC=$ac_save_CC
13328 rm -f conftest.$ac_ext
13329 fi
13330 fi
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13332 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13333 if test "$ac_cv_sys_largefile_CC" != no; then
13334 CC=$CC$ac_cv_sys_largefile_CC
13335 fi
13336
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13338 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13339 if ${ac_cv_sys_file_offset_bits+:} false; then :
13340 $as_echo_n "(cached) " >&6
13341 else
13342 while :; do
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13345 #include <sys/types.h>
13346 /* Check that off_t can represent 2**63 - 1 correctly.
13347 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13348 since some C++ compilers masquerading as C compilers
13349 incorrectly reject 9223372036854775807. */
13350 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13352 && LARGE_OFF_T % 2147483647 == 1)
13353 ? 1 : -1];
13354 int
13355 main ()
13356 {
13357
13358 ;
13359 return 0;
13360 }
13361 _ACEOF
13362 if ac_fn_c_try_compile "$LINENO"; then :
13363 ac_cv_sys_file_offset_bits=no; break
13364 fi
13365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368 #define _FILE_OFFSET_BITS 64
13369 #include <sys/types.h>
13370 /* Check that off_t can represent 2**63 - 1 correctly.
13371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13372 since some C++ compilers masquerading as C compilers
13373 incorrectly reject 9223372036854775807. */
13374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13376 && LARGE_OFF_T % 2147483647 == 1)
13377 ? 1 : -1];
13378 int
13379 main ()
13380 {
13381
13382 ;
13383 return 0;
13384 }
13385 _ACEOF
13386 if ac_fn_c_try_compile "$LINENO"; then :
13387 ac_cv_sys_file_offset_bits=64; break
13388 fi
13389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13390 ac_cv_sys_file_offset_bits=unknown
13391 break
13392 done
13393 fi
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13395 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13396 case $ac_cv_sys_file_offset_bits in #(
13397 no | unknown) ;;
13398 *)
13399 cat >>confdefs.h <<_ACEOF
13400 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13401 _ACEOF
13402 ;;
13403 esac
13404 rm -rf conftest*
13405 if test $ac_cv_sys_file_offset_bits = unknown; then
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13407 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13408 if ${ac_cv_sys_large_files+:} false; then :
13409 $as_echo_n "(cached) " >&6
13410 else
13411 while :; do
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 #include <sys/types.h>
13415 /* Check that off_t can represent 2**63 - 1 correctly.
13416 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13417 since some C++ compilers masquerading as C compilers
13418 incorrectly reject 9223372036854775807. */
13419 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13421 && LARGE_OFF_T % 2147483647 == 1)
13422 ? 1 : -1];
13423 int
13424 main ()
13425 {
13426
13427 ;
13428 return 0;
13429 }
13430 _ACEOF
13431 if ac_fn_c_try_compile "$LINENO"; then :
13432 ac_cv_sys_large_files=no; break
13433 fi
13434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13437 #define _LARGE_FILES 1
13438 #include <sys/types.h>
13439 /* Check that off_t can represent 2**63 - 1 correctly.
13440 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13441 since some C++ compilers masquerading as C compilers
13442 incorrectly reject 9223372036854775807. */
13443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13445 && LARGE_OFF_T % 2147483647 == 1)
13446 ? 1 : -1];
13447 int
13448 main ()
13449 {
13450
13451 ;
13452 return 0;
13453 }
13454 _ACEOF
13455 if ac_fn_c_try_compile "$LINENO"; then :
13456 ac_cv_sys_large_files=1; break
13457 fi
13458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459 ac_cv_sys_large_files=unknown
13460 break
13461 done
13462 fi
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13464 $as_echo "$ac_cv_sys_large_files" >&6; }
13465 case $ac_cv_sys_large_files in #(
13466 no | unknown) ;;
13467 *)
13468 cat >>confdefs.h <<_ACEOF
13469 #define _LARGE_FILES $ac_cv_sys_large_files
13470 _ACEOF
13471 ;;
13472 esac
13473 rm -rf conftest*
13474 fi
13475
13476
13477 fi
13478
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13480 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13481 if ${ac_cv_sys_largefile_source+:} false; then :
13482 $as_echo_n "(cached) " >&6
13483 else
13484 while :; do
13485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486 /* end confdefs.h. */
13487 #include <sys/types.h> /* for off_t */
13488 #include <stdio.h>
13489 int
13490 main ()
13491 {
13492 int (*fp) (FILE *, off_t, int) = fseeko;
13493 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13494 ;
13495 return 0;
13496 }
13497 _ACEOF
13498 if ac_fn_c_try_link "$LINENO"; then :
13499 ac_cv_sys_largefile_source=no; break
13500 fi
13501 rm -f core conftest.err conftest.$ac_objext \
13502 conftest$ac_exeext conftest.$ac_ext
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505 #define _LARGEFILE_SOURCE 1
13506 #include <sys/types.h> /* for off_t */
13507 #include <stdio.h>
13508 int
13509 main ()
13510 {
13511 int (*fp) (FILE *, off_t, int) = fseeko;
13512 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13513 ;
13514 return 0;
13515 }
13516 _ACEOF
13517 if ac_fn_c_try_link "$LINENO"; then :
13518 ac_cv_sys_largefile_source=1; break
13519 fi
13520 rm -f core conftest.err conftest.$ac_objext \
13521 conftest$ac_exeext conftest.$ac_ext
13522 ac_cv_sys_largefile_source=unknown
13523 break
13524 done
13525 fi
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13527 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13528 case $ac_cv_sys_largefile_source in #(
13529 no | unknown) ;;
13530 *)
13531 cat >>confdefs.h <<_ACEOF
13532 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13533 _ACEOF
13534 ;;
13535 esac
13536 rm -rf conftest*
13537
13538 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13539 # in glibc 2.1.3, but that breaks too many other things.
13540 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13541 if test $ac_cv_sys_largefile_source != unknown; then
13542
13543 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13544
13545 fi
13546
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13548 $as_echo_n "checking for mbstate_t... " >&6; }
13549 if ${ac_cv_type_mbstate_t+:} false; then :
13550 $as_echo_n "(cached) " >&6
13551 else
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13554 $ac_includes_default
13555 # include <wchar.h>
13556 int
13557 main ()
13558 {
13559 mbstate_t x; return sizeof x;
13560 ;
13561 return 0;
13562 }
13563 _ACEOF
13564 if ac_fn_c_try_compile "$LINENO"; then :
13565 ac_cv_type_mbstate_t=yes
13566 else
13567 ac_cv_type_mbstate_t=no
13568 fi
13569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570 fi
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13572 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13573 if test $ac_cv_type_mbstate_t = yes; then
13574
13575 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13576
13577 else
13578
13579 $as_echo "#define mbstate_t int" >>confdefs.h
13580
13581 fi
13582
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
13584 $as_echo_n "checking for struct option in getopt... " >&6; }
13585 if ${ac_cv_struct_option_getopt_h+:} false; then :
13586 $as_echo_n "(cached) " >&6
13587 else
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13590 #include <getopt.h>
13591 int
13592 main ()
13593 {
13594 struct option op; op.name;
13595 ;
13596 return 0;
13597 }
13598 _ACEOF
13599 if ac_fn_c_try_compile "$LINENO"; then :
13600 ac_cv_struct_option_getopt_h=yes
13601 else
13602 ac_cv_struct_option_getopt_h=no
13603 fi
13604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13605 fi
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
13607 $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
13608 if test "$ac_cv_struct_option_getopt_h" = yes; then
13609
13610 $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
13611
13612 fi
13613
13614 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13615 if test "x$ac_cv_type_pid_t" = xyes; then :
13616
13617 else
13618
13619 cat >>confdefs.h <<_ACEOF
13620 #define pid_t int
13621 _ACEOF
13622
13623 fi
13624
13625 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13626 case $ac_cv_c_uint8_t in #(
13627 no|yes) ;; #(
13628 *)
13629
13630 $as_echo "#define _UINT8_T 1" >>confdefs.h
13631
13632
13633 cat >>confdefs.h <<_ACEOF
13634 #define uint8_t $ac_cv_c_uint8_t
13635 _ACEOF
13636 ;;
13637 esac
13638
13639 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13640 case $ac_cv_c_uint16_t in #(
13641 no|yes) ;; #(
13642 *)
13643
13644
13645 cat >>confdefs.h <<_ACEOF
13646 #define uint16_t $ac_cv_c_uint16_t
13647 _ACEOF
13648 ;;
13649 esac
13650
13651 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13652 case $ac_cv_c_uint32_t in #(
13653 no|yes) ;; #(
13654 *)
13655
13656 $as_echo "#define _UINT32_T 1" >>confdefs.h
13657
13658
13659 cat >>confdefs.h <<_ACEOF
13660 #define uint32_t $ac_cv_c_uint32_t
13661 _ACEOF
13662 ;;
13663 esac
13664
13665 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
13666 case $ac_cv_c_int32_t in #(
13667 no|yes) ;; #(
13668 *)
13669
13670 cat >>confdefs.h <<_ACEOF
13671 #define int32_t $ac_cv_c_int32_t
13672 _ACEOF
13673 ;;
13674 esac
13675
13676 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13677 case $ac_cv_c_uint64_t in #(
13678 no|yes) ;; #(
13679 *)
13680
13681 $as_echo "#define _UINT64_T 1" >>confdefs.h
13682
13683
13684 cat >>confdefs.h <<_ACEOF
13685 #define uint64_t $ac_cv_c_uint64_t
13686 _ACEOF
13687 ;;
13688 esac
13689
13690 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
13691 case $ac_cv_c_int64_t in #(
13692 no|yes) ;; #(
13693 *)
13694
13695 cat >>confdefs.h <<_ACEOF
13696 #define int64_t $ac_cv_c_int64_t
13697 _ACEOF
13698 ;;
13699 esac
13700
13701
13702 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13703 if test "x$ac_cv_type_intptr_t" = xyes; then :
13704
13705 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
13706
13707 else
13708 for ac_type in 'int' 'long int' 'long long int'; do
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13711 $ac_includes_default
13712 int
13713 main ()
13714 {
13715 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13716 test_array [0] = 0;
13717 return test_array [0];
13718
13719 ;
13720 return 0;
13721 }
13722 _ACEOF
13723 if ac_fn_c_try_compile "$LINENO"; then :
13724
13725 cat >>confdefs.h <<_ACEOF
13726 #define intptr_t $ac_type
13727 _ACEOF
13728
13729 ac_type=
13730 fi
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732 test -z "$ac_type" && break
13733 done
13734 fi
13735
13736
13737
13738 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13739 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13740
13741 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13742
13743 else
13744 for ac_type in 'unsigned int' 'unsigned long int' \
13745 'unsigned long long int'; do
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13748 $ac_includes_default
13749 int
13750 main ()
13751 {
13752 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13753 test_array [0] = 0;
13754 return test_array [0];
13755
13756 ;
13757 return 0;
13758 }
13759 _ACEOF
13760 if ac_fn_c_try_compile "$LINENO"; then :
13761
13762 cat >>confdefs.h <<_ACEOF
13763 #define uintptr_t $ac_type
13764 _ACEOF
13765
13766 ac_type=
13767 fi
13768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13769 test -z "$ac_type" && break
13770 done
13771 fi
13772
13773
13774
13775
13776
13777 for ac_header in $ac_header_list
13778 do :
13779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13780 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13781 "
13782 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13783 cat >>confdefs.h <<_ACEOF
13784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13785 _ACEOF
13786
13787 fi
13788
13789 done
13790
13791
13792
13793
13794
13795
13796
13797
13798 for ac_func in getpagesize
13799 do :
13800 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13801 if test "x$ac_cv_func_getpagesize" = xyes; then :
13802 cat >>confdefs.h <<_ACEOF
13803 #define HAVE_GETPAGESIZE 1
13804 _ACEOF
13805
13806 fi
13807 done
13808
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13810 $as_echo_n "checking for working mmap... " >&6; }
13811 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13812 $as_echo_n "(cached) " >&6
13813 else
13814 if test "$cross_compiling" = yes; then :
13815 ac_cv_func_mmap_fixed_mapped=no
13816 else
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13819 $ac_includes_default
13820 /* malloc might have been renamed as rpl_malloc. */
13821 #undef malloc
13822
13823 /* Thanks to Mike Haertel and Jim Avera for this test.
13824 Here is a matrix of mmap possibilities:
13825 mmap private not fixed
13826 mmap private fixed at somewhere currently unmapped
13827 mmap private fixed at somewhere already mapped
13828 mmap shared not fixed
13829 mmap shared fixed at somewhere currently unmapped
13830 mmap shared fixed at somewhere already mapped
13831 For private mappings, we should verify that changes cannot be read()
13832 back from the file, nor mmap's back from the file at a different
13833 address. (There have been systems where private was not correctly
13834 implemented like the infamous i386 svr4.0, and systems where the
13835 VM page cache was not coherent with the file system buffer cache
13836 like early versions of FreeBSD and possibly contemporary NetBSD.)
13837 For shared mappings, we should conversely verify that changes get
13838 propagated back to all the places they're supposed to be.
13839
13840 Grep wants private fixed already mapped.
13841 The main things grep needs to know about mmap are:
13842 * does it exist and is it safe to write into the mmap'd area
13843 * how to use it (BSD variants) */
13844
13845 #include <fcntl.h>
13846 #include <sys/mman.h>
13847
13848 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13849 char *malloc ();
13850 #endif
13851
13852 /* This mess was copied from the GNU getpagesize.h. */
13853 #ifndef HAVE_GETPAGESIZE
13854 # ifdef _SC_PAGESIZE
13855 # define getpagesize() sysconf(_SC_PAGESIZE)
13856 # else /* no _SC_PAGESIZE */
13857 # ifdef HAVE_SYS_PARAM_H
13858 # include <sys/param.h>
13859 # ifdef EXEC_PAGESIZE
13860 # define getpagesize() EXEC_PAGESIZE
13861 # else /* no EXEC_PAGESIZE */
13862 # ifdef NBPG
13863 # define getpagesize() NBPG * CLSIZE
13864 # ifndef CLSIZE
13865 # define CLSIZE 1
13866 # endif /* no CLSIZE */
13867 # else /* no NBPG */
13868 # ifdef NBPC
13869 # define getpagesize() NBPC
13870 # else /* no NBPC */
13871 # ifdef PAGESIZE
13872 # define getpagesize() PAGESIZE
13873 # endif /* PAGESIZE */
13874 # endif /* no NBPC */
13875 # endif /* no NBPG */
13876 # endif /* no EXEC_PAGESIZE */
13877 # else /* no HAVE_SYS_PARAM_H */
13878 # define getpagesize() 8192 /* punt totally */
13879 # endif /* no HAVE_SYS_PARAM_H */
13880 # endif /* no _SC_PAGESIZE */
13881
13882 #endif /* no HAVE_GETPAGESIZE */
13883
13884 int
13885 main ()
13886 {
13887 char *data, *data2, *data3;
13888 const char *cdata2;
13889 int i, pagesize;
13890 int fd, fd2;
13891
13892 pagesize = getpagesize ();
13893
13894 /* First, make a file with some known garbage in it. */
13895 data = (char *) malloc (pagesize);
13896 if (!data)
13897 return 1;
13898 for (i = 0; i < pagesize; ++i)
13899 *(data + i) = rand ();
13900 umask (0);
13901 fd = creat ("conftest.mmap", 0600);
13902 if (fd < 0)
13903 return 2;
13904 if (write (fd, data, pagesize) != pagesize)
13905 return 3;
13906 close (fd);
13907
13908 /* Next, check that the tail of a page is zero-filled. File must have
13909 non-zero length, otherwise we risk SIGBUS for entire page. */
13910 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13911 if (fd2 < 0)
13912 return 4;
13913 cdata2 = "";
13914 if (write (fd2, cdata2, 1) != 1)
13915 return 5;
13916 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13917 if (data2 == MAP_FAILED)
13918 return 6;
13919 for (i = 0; i < pagesize; ++i)
13920 if (*(data2 + i))
13921 return 7;
13922 close (fd2);
13923 if (munmap (data2, pagesize))
13924 return 8;
13925
13926 /* Next, try to mmap the file at a fixed address which already has
13927 something else allocated at it. If we can, also make sure that
13928 we see the same garbage. */
13929 fd = open ("conftest.mmap", O_RDWR);
13930 if (fd < 0)
13931 return 9;
13932 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13933 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13934 return 10;
13935 for (i = 0; i < pagesize; ++i)
13936 if (*(data + i) != *(data2 + i))
13937 return 11;
13938
13939 /* Finally, make sure that changes to the mapped area do not
13940 percolate back to the file as seen by read(). (This is a bug on
13941 some variants of i386 svr4.0.) */
13942 for (i = 0; i < pagesize; ++i)
13943 *(data2 + i) = *(data2 + i) + 1;
13944 data3 = (char *) malloc (pagesize);
13945 if (!data3)
13946 return 12;
13947 if (read (fd, data3, pagesize) != pagesize)
13948 return 13;
13949 for (i = 0; i < pagesize; ++i)
13950 if (*(data + i) != *(data3 + i))
13951 return 14;
13952 close (fd);
13953 return 0;
13954 }
13955 _ACEOF
13956 if ac_fn_c_try_run "$LINENO"; then :
13957 ac_cv_func_mmap_fixed_mapped=yes
13958 else
13959 ac_cv_func_mmap_fixed_mapped=no
13960 fi
13961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13962 conftest.$ac_objext conftest.beam conftest.$ac_ext
13963 fi
13964
13965 fi
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13967 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13968 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13969
13970 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13971
13972 fi
13973 rm -f conftest.mmap conftest.txt
13974
13975 for ac_header in vfork.h
13976 do :
13977 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13978 if test "x$ac_cv_header_vfork_h" = xyes; then :
13979 cat >>confdefs.h <<_ACEOF
13980 #define HAVE_VFORK_H 1
13981 _ACEOF
13982
13983 fi
13984
13985 done
13986
13987 for ac_func in fork vfork
13988 do :
13989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13990 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13991 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13992 cat >>confdefs.h <<_ACEOF
13993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13994 _ACEOF
13995
13996 fi
13997 done
13998
13999 if test "x$ac_cv_func_fork" = xyes; then
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14001 $as_echo_n "checking for working fork... " >&6; }
14002 if ${ac_cv_func_fork_works+:} false; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 if test "$cross_compiling" = yes; then :
14006 ac_cv_func_fork_works=cross
14007 else
14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14010 $ac_includes_default
14011 int
14012 main ()
14013 {
14014
14015 /* By Ruediger Kuhlmann. */
14016 return fork () < 0;
14017
14018 ;
14019 return 0;
14020 }
14021 _ACEOF
14022 if ac_fn_c_try_run "$LINENO"; then :
14023 ac_cv_func_fork_works=yes
14024 else
14025 ac_cv_func_fork_works=no
14026 fi
14027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14028 conftest.$ac_objext conftest.beam conftest.$ac_ext
14029 fi
14030
14031 fi
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14033 $as_echo "$ac_cv_func_fork_works" >&6; }
14034
14035 else
14036 ac_cv_func_fork_works=$ac_cv_func_fork
14037 fi
14038 if test "x$ac_cv_func_fork_works" = xcross; then
14039 case $host in
14040 *-*-amigaos* | *-*-msdosdjgpp*)
14041 # Override, as these systems have only a dummy fork() stub
14042 ac_cv_func_fork_works=no
14043 ;;
14044 *)
14045 ac_cv_func_fork_works=yes
14046 ;;
14047 esac
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14049 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14050 fi
14051 ac_cv_func_vfork_works=$ac_cv_func_vfork
14052 if test "x$ac_cv_func_vfork" = xyes; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14054 $as_echo_n "checking for working vfork... " >&6; }
14055 if ${ac_cv_func_vfork_works+:} false; then :
14056 $as_echo_n "(cached) " >&6
14057 else
14058 if test "$cross_compiling" = yes; then :
14059 ac_cv_func_vfork_works=cross
14060 else
14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h. */
14063 /* Thanks to Paul Eggert for this test. */
14064 $ac_includes_default
14065 #include <sys/wait.h>
14066 #ifdef HAVE_VFORK_H
14067 # include <vfork.h>
14068 #endif
14069 /* On some sparc systems, changes by the child to local and incoming
14070 argument registers are propagated back to the parent. The compiler
14071 is told about this with #include <vfork.h>, but some compilers
14072 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14073 static variable whose address is put into a register that is
14074 clobbered by the vfork. */
14075 static void
14076 #ifdef __cplusplus
14077 sparc_address_test (int arg)
14078 # else
14079 sparc_address_test (arg) int arg;
14080 #endif
14081 {
14082 static pid_t child;
14083 if (!child) {
14084 child = vfork ();
14085 if (child < 0) {
14086 perror ("vfork");
14087 _exit(2);
14088 }
14089 if (!child) {
14090 arg = getpid();
14091 write(-1, "", 0);
14092 _exit (arg);
14093 }
14094 }
14095 }
14096
14097 int
14098 main ()
14099 {
14100 pid_t parent = getpid ();
14101 pid_t child;
14102
14103 sparc_address_test (0);
14104
14105 child = vfork ();
14106
14107 if (child == 0) {
14108 /* Here is another test for sparc vfork register problems. This
14109 test uses lots of local variables, at least as many local
14110 variables as main has allocated so far including compiler
14111 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14112 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14113 reuse the register of parent for one of the local variables,
14114 since it will think that parent can't possibly be used any more
14115 in this routine. Assigning to the local variable will thus
14116 munge parent in the parent process. */
14117 pid_t
14118 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14119 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14120 /* Convince the compiler that p..p7 are live; otherwise, it might
14121 use the same hardware register for all 8 local variables. */
14122 if (p != p1 || p != p2 || p != p3 || p != p4
14123 || p != p5 || p != p6 || p != p7)
14124 _exit(1);
14125
14126 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14127 from child file descriptors. If the child closes a descriptor
14128 before it execs or exits, this munges the parent's descriptor
14129 as well. Test for this by closing stdout in the child. */
14130 _exit(close(fileno(stdout)) != 0);
14131 } else {
14132 int status;
14133 struct stat st;
14134
14135 while (wait(&status) != child)
14136 ;
14137 return (
14138 /* Was there some problem with vforking? */
14139 child < 0
14140
14141 /* Did the child fail? (This shouldn't happen.) */
14142 || status
14143
14144 /* Did the vfork/compiler bug occur? */
14145 || parent != getpid()
14146
14147 /* Did the file descriptor bug occur? */
14148 || fstat(fileno(stdout), &st) != 0
14149 );
14150 }
14151 }
14152 _ACEOF
14153 if ac_fn_c_try_run "$LINENO"; then :
14154 ac_cv_func_vfork_works=yes
14155 else
14156 ac_cv_func_vfork_works=no
14157 fi
14158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14159 conftest.$ac_objext conftest.beam conftest.$ac_ext
14160 fi
14161
14162 fi
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14164 $as_echo "$ac_cv_func_vfork_works" >&6; }
14165
14166 fi;
14167 if test "x$ac_cv_func_fork_works" = xcross; then
14168 ac_cv_func_vfork_works=$ac_cv_func_vfork
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14170 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14171 fi
14172
14173 if test "x$ac_cv_func_vfork_works" = xyes; then
14174
14175 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14176
14177 else
14178
14179 $as_echo "#define vfork fork" >>confdefs.h
14180
14181 fi
14182 if test "x$ac_cv_func_fork_works" = xyes; then
14183
14184 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14185
14186 fi
14187
14188
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
14190 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
14191 if ${ac_cv_func_mbrtowc+:} false; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196 #include <wchar.h>
14197 int
14198 main ()
14199 {
14200 wchar_t wc;
14201 char const s[] = "";
14202 size_t n = 1;
14203 mbstate_t state;
14204 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
14205 ;
14206 return 0;
14207 }
14208 _ACEOF
14209 if ac_fn_c_try_link "$LINENO"; then :
14210 ac_cv_func_mbrtowc=yes
14211 else
14212 ac_cv_func_mbrtowc=no
14213 fi
14214 rm -f core conftest.err conftest.$ac_objext \
14215 conftest$ac_exeext conftest.$ac_ext
14216 fi
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
14218 $as_echo "$ac_cv_func_mbrtowc" >&6; }
14219 if test $ac_cv_func_mbrtowc = yes; then
14220
14221 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
14222
14223 fi
14224
14225
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
14227 $as_echo_n "checking for gcc compiler warnings... " >&6; }
14228 # Check whether --enable-warnings was given.
14229 if test "${enable_warnings+set}" = set; then :
14230 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14233 WARNINGS=
14234 else
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14236 $as_echo "yes" >&6; }
14237 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14238 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14239 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14240 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14241 fi
14242 else
14243
14244 if test "$GCC" = yes; then
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14246 $as_echo "yes" >&6; }
14247 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14248 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14249 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14250 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14251 else
14252 WARNINGS=
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14254 $as_echo "no" >&6; }
14255 fi
14256 fi
14257
14258
14259 for ac_func in strndup mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem
14260 do :
14261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14262 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14263 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14264 cat >>confdefs.h <<_ACEOF
14265 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14266 _ACEOF
14267
14268 fi
14269 done
14270
14271
14272 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
14273 if test "x$ac_cv_func_getopt_long" = xyes; then :
14274 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
14275
14276 else
14277 case " $LIBOBJS " in
14278 *" getopt_long.$ac_objext "* ) ;;
14279 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
14280 ;;
14281 esac
14282
14283 fi
14284
14285 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
14286 if test "x$ac_cv_func_asprintf" = xyes; then :
14287 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
14288
14289 else
14290 case " $LIBOBJS " in
14291 *" asprintf.$ac_objext "* ) ;;
14292 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
14293 ;;
14294 esac
14295
14296 fi
14297
14298 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14299 if test "x$ac_cv_func_vasprintf" = xyes; then :
14300 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
14301
14302 else
14303 case " $LIBOBJS " in
14304 *" vasprintf.$ac_objext "* ) ;;
14305 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
14306 ;;
14307 esac
14308
14309 fi
14310
14311 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
14312 if test "x$ac_cv_func_strlcpy" = xyes; then :
14313 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
14314
14315 else
14316 case " $LIBOBJS " in
14317 *" strlcpy.$ac_objext "* ) ;;
14318 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
14319 ;;
14320 esac
14321
14322 fi
14323
14324 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
14325 if test "x$ac_cv_func_strlcat" = xyes; then :
14326 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
14327
14328 else
14329 case " $LIBOBJS " in
14330 *" strlcat.$ac_objext "* ) ;;
14331 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
14332 ;;
14333 esac
14334
14335 fi
14336
14337 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14338 if test "x$ac_cv_func_getline" = xyes; then :
14339 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
14340
14341 else
14342 case " $LIBOBJS " in
14343 *" getline.$ac_objext "* ) ;;
14344 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
14345 ;;
14346 esac
14347
14348 fi
14349
14350 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
14351 if test "x$ac_cv_func_ctime_r" = xyes; then :
14352 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
14353
14354 else
14355 case " $LIBOBJS " in
14356 *" ctime_r.$ac_objext "* ) ;;
14357 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
14358 ;;
14359 esac
14360
14361 fi
14362
14363 ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
14364 if test "x$ac_cv_func_asctime_r" = xyes; then :
14365 $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
14366
14367 else
14368 case " $LIBOBJS " in
14369 *" asctime_r.$ac_objext "* ) ;;
14370 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
14371 ;;
14372 esac
14373
14374 fi
14375
14376 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
14377 if test "x$ac_cv_func_localtime_r" = xyes; then :
14378 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
14379
14380 else
14381 case " $LIBOBJS " in
14382 *" localtime_r.$ac_objext "* ) ;;
14383 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
14384 ;;
14385 esac
14386
14387 fi
14388
14389 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
14390 if test "x$ac_cv_func_gmtime_r" = xyes; then :
14391 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
14392
14393 else
14394 case " $LIBOBJS " in
14395 *" gmtime_r.$ac_objext "* ) ;;
14396 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
14397 ;;
14398 esac
14399
14400 fi
14401
14402 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
14403 if test "x$ac_cv_func_pread" = xyes; then :
14404 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
14405
14406 else
14407 case " $LIBOBJS " in
14408 *" pread.$ac_objext "* ) ;;
14409 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
14410 ;;
14411 esac
14412
14413 fi
14414
14415 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
14416 if test "x$ac_cv_func_strcasestr" = xyes; then :
14417 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
14418
14419 else
14420 case " $LIBOBJS " in
14421 *" strcasestr.$ac_objext "* ) ;;
14422 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
14423 ;;
14424 esac
14425
14426 fi
14427
14428 ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
14429 if test "x$ac_cv_func_fmtcheck" = xyes; then :
14430 $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
14431
14432 else
14433 case " $LIBOBJS " in
14434 *" fmtcheck.$ac_objext "* ) ;;
14435 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
14436 ;;
14437 esac
14438
14439 fi
14440
14441 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
14442 if test "x$ac_cv_func_dprintf" = xyes; then :
14443 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
14444
14445 else
14446 case " $LIBOBJS " in
14447 *" dprintf.$ac_objext "* ) ;;
14448 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
14449 ;;
14450 esac
14451
14452 fi
14453
14454
14455
14456 if test "$enable_zlib" != "no"; then
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
14458 $as_echo_n "checking for gzopen in -lz... " >&6; }
14459 if ${ac_cv_lib_z_gzopen+:} false; then :
14460 $as_echo_n "(cached) " >&6
14461 else
14462 ac_check_lib_save_LIBS=$LIBS
14463 LIBS="-lz $LIBS"
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14466
14467 /* Override any GCC internal prototype to avoid an error.
14468 Use char because int might match the return type of a GCC
14469 builtin and then its argument prototype would still apply. */
14470 #ifdef __cplusplus
14471 extern "C"
14472 #endif
14473 char gzopen ();
14474 int
14475 main ()
14476 {
14477 return gzopen ();
14478 ;
14479 return 0;
14480 }
14481 _ACEOF
14482 if ac_fn_c_try_link "$LINENO"; then :
14483 ac_cv_lib_z_gzopen=yes
14484 else
14485 ac_cv_lib_z_gzopen=no
14486 fi
14487 rm -f core conftest.err conftest.$ac_objext \
14488 conftest$ac_exeext conftest.$ac_ext
14489 LIBS=$ac_check_lib_save_LIBS
14490 fi
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
14492 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
14493 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
14494 cat >>confdefs.h <<_ACEOF
14495 #define HAVE_LIBZ 1
14496 _ACEOF
14497
14498 LIBS="-lz $LIBS"
14499
14500 fi
14501
14502 fi
14503 if test "$enable_libseccomp" != "no"; then
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
14505 $as_echo_n "checking for seccomp_init in -lseccomp... " >&6; }
14506 if ${ac_cv_lib_seccomp_seccomp_init+:} false; then :
14507 $as_echo_n "(cached) " >&6
14508 else
14509 ac_check_lib_save_LIBS=$LIBS
14510 LIBS="-lseccomp $LIBS"
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513
14514 /* Override any GCC internal prototype to avoid an error.
14515 Use char because int might match the return type of a GCC
14516 builtin and then its argument prototype would still apply. */
14517 #ifdef __cplusplus
14518 extern "C"
14519 #endif
14520 char seccomp_init ();
14521 int
14522 main ()
14523 {
14524 return seccomp_init ();
14525 ;
14526 return 0;
14527 }
14528 _ACEOF
14529 if ac_fn_c_try_link "$LINENO"; then :
14530 ac_cv_lib_seccomp_seccomp_init=yes
14531 else
14532 ac_cv_lib_seccomp_seccomp_init=no
14533 fi
14534 rm -f core conftest.err conftest.$ac_objext \
14535 conftest$ac_exeext conftest.$ac_ext
14536 LIBS=$ac_check_lib_save_LIBS
14537 fi
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
14539 $as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; }
14540 if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then :
14541 cat >>confdefs.h <<_ACEOF
14542 #define HAVE_LIBSECCOMP 1
14543 _ACEOF
14544
14545 LIBS="-lseccomp $LIBS"
14546
14547 fi
14548
14549 fi
14550 if test "$MINGW" = 1; then
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
14552 $as_echo_n "checking for regexec in -lgnurx... " >&6; }
14553 if ${ac_cv_lib_gnurx_regexec+:} false; then :
14554 $as_echo_n "(cached) " >&6
14555 else
14556 ac_check_lib_save_LIBS=$LIBS
14557 LIBS="-lgnurx $LIBS"
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14560
14561 /* Override any GCC internal prototype to avoid an error.
14562 Use char because int might match the return type of a GCC
14563 builtin and then its argument prototype would still apply. */
14564 #ifdef __cplusplus
14565 extern "C"
14566 #endif
14567 char regexec ();
14568 int
14569 main ()
14570 {
14571 return regexec ();
14572 ;
14573 return 0;
14574 }
14575 _ACEOF
14576 if ac_fn_c_try_link "$LINENO"; then :
14577 ac_cv_lib_gnurx_regexec=yes
14578 else
14579 ac_cv_lib_gnurx_regexec=no
14580 fi
14581 rm -f core conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 LIBS=$ac_check_lib_save_LIBS
14584 fi
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
14586 $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
14587 if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
14588 cat >>confdefs.h <<_ACEOF
14589 #define HAVE_LIBGNURX 1
14590 _ACEOF
14591
14592 LIBS="-lgnurx $LIBS"
14593
14594 else
14595 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
14596 fi
14597
14598 fi
14599
14600 if test "$cross_compiling" = yes; then
14601 IS_CROSS_COMPILE_TRUE=
14602 IS_CROSS_COMPILE_FALSE='#'
14603 else
14604 IS_CROSS_COMPILE_TRUE='#'
14605 IS_CROSS_COMPILE_FALSE=
14606 fi
14607
14608
14609 if test "$enable_zlib" = "yes"; then
14610 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
14611 as_fn_error $? "zlib support requested but not found" "$LINENO" 5
14612 fi
14613 fi
14614 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
14615
14616 $as_echo "#define ZLIBSUPPORT 1" >>confdefs.h
14617
14618 fi
14619
14620 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
14621
14622 cat >confcache <<\_ACEOF
14623 # This file is a shell script that caches the results of configure
14624 # tests run on this system so they can be shared between configure
14625 # scripts and configure runs, see configure's option --config-cache.
14626 # It is not useful on other systems. If it contains results you don't
14627 # want to keep, you may remove or edit it.
14628 #
14629 # config.status only pays attention to the cache file if you give it
14630 # the --recheck option to rerun configure.
14631 #
14632 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14633 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14634 # following values.
14635
14636 _ACEOF
14637
14638 # The following way of writing the cache mishandles newlines in values,
14639 # but we know of no workaround that is simple, portable, and efficient.
14640 # So, we kill variables containing newlines.
14641 # Ultrix sh set writes to stderr and can't be redirected directly,
14642 # and sets the high bit in the cache file unless we assign to the vars.
14643 (
14644 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14645 eval ac_val=\$$ac_var
14646 case $ac_val in #(
14647 *${as_nl}*)
14648 case $ac_var in #(
14649 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14650 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14651 esac
14652 case $ac_var in #(
14653 _ | IFS | as_nl) ;; #(
14654 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14655 *) { eval $ac_var=; unset $ac_var;} ;;
14656 esac ;;
14657 esac
14658 done
14659
14660 (set) 2>&1 |
14661 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14662 *${as_nl}ac_space=\ *)
14663 # `set' does not quote correctly, so add quotes: double-quote
14664 # substitution turns \\\\ into \\, and sed turns \\ into \.
14665 sed -n \
14666 "s/'/'\\\\''/g;
14667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14668 ;; #(
14669 *)
14670 # `set' quotes correctly as required by POSIX, so do not add quotes.
14671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14672 ;;
14673 esac |
14674 sort
14675 ) |
14676 sed '
14677 /^ac_cv_env_/b end
14678 t clear
14679 :clear
14680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14681 t end
14682 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14683 :end' >>confcache
14684 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14685 if test -w "$cache_file"; then
14686 if test "x$cache_file" != "x/dev/null"; then
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14688 $as_echo "$as_me: updating cache $cache_file" >&6;}
14689 if test ! -f "$cache_file" || test -h "$cache_file"; then
14690 cat confcache >"$cache_file"
14691 else
14692 case $cache_file in #(
14693 */* | ?:*)
14694 mv -f confcache "$cache_file"$$ &&
14695 mv -f "$cache_file"$$ "$cache_file" ;; #(
14696 *)
14697 mv -f confcache "$cache_file" ;;
14698 esac
14699 fi
14700 fi
14701 else
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14703 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14704 fi
14705 fi
14706 rm -f confcache
14707
14708 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14709 # Let make expand exec_prefix.
14710 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14711
14712 DEFS=-DHAVE_CONFIG_H
14713
14714 ac_libobjs=
14715 ac_ltlibobjs=
14716 U=
14717 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14718 # 1. Remove the extension, and $U if already installed.
14719 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14720 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14721 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14722 # will be set to the directory where LIBOBJS objects are built.
14723 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14724 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14725 done
14726 LIBOBJS=$ac_libobjs
14727
14728 LTLIBOBJS=$ac_ltlibobjs
14729
14730
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14732 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14733 if test -n "$am_sleep_pid"; then
14734 # Hide warnings about reused PIDs.
14735 wait $am_sleep_pid 2>/dev/null
14736 fi
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14738 $as_echo "done" >&6; }
14739 if test -n "$EXEEXT"; then
14740 am__EXEEXT_TRUE=
14741 am__EXEEXT_FALSE='#'
14742 else
14743 am__EXEEXT_TRUE='#'
14744 am__EXEEXT_FALSE=
14745 fi
14746
14747 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14748 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14750 fi
14751 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
14752 as_fn_error $? "conditional \"MINGW\" was never defined.
14753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14754 fi
14755 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
14756 as_fn_error $? "conditional \"FSECT5\" was never defined.
14757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14758 fi
14759 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14760 as_fn_error $? "conditional \"AMDEP\" was never defined.
14761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14762 fi
14763 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14764 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14766 fi
14767
14768 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
14769 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
14770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14771 fi
14772
14773 : "${CONFIG_STATUS=./config.status}"
14774 ac_write_fail=0
14775 ac_clean_files_save=$ac_clean_files
14776 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14778 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14779 as_write_fail=0
14780 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14781 #! $SHELL
14782 # Generated by $as_me.
14783 # Run this file to recreate the current configuration.
14784 # Compiler output produced by configure, useful for debugging
14785 # configure, is in config.log if it exists.
14786
14787 debug=false
14788 ac_cs_recheck=false
14789 ac_cs_silent=false
14790
14791 SHELL=\${CONFIG_SHELL-$SHELL}
14792 export SHELL
14793 _ASEOF
14794 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14795 ## -------------------- ##
14796 ## M4sh Initialization. ##
14797 ## -------------------- ##
14798
14799 # Be more Bourne compatible
14800 DUALCASE=1; export DUALCASE # for MKS sh
14801 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14802 emulate sh
14803 NULLCMD=:
14804 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14805 # is contrary to our usage. Disable this feature.
14806 alias -g '${1+"$@"}'='"$@"'
14807 setopt NO_GLOB_SUBST
14808 else
14809 case `(set -o) 2>/dev/null` in #(
14810 *posix*) :
14811 set -o posix ;; #(
14812 *) :
14813 ;;
14814 esac
14815 fi
14816
14817
14818 as_nl='
14819 '
14820 export as_nl
14821 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14822 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14823 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14824 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14825 # Prefer a ksh shell builtin over an external printf program on Solaris,
14826 # but without wasting forks for bash or zsh.
14827 if test -z "$BASH_VERSION$ZSH_VERSION" \
14828 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14829 as_echo='print -r --'
14830 as_echo_n='print -rn --'
14831 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14832 as_echo='printf %s\n'
14833 as_echo_n='printf %s'
14834 else
14835 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14836 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14837 as_echo_n='/usr/ucb/echo -n'
14838 else
14839 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14840 as_echo_n_body='eval
14841 arg=$1;
14842 case $arg in #(
14843 *"$as_nl"*)
14844 expr "X$arg" : "X\\(.*\\)$as_nl";
14845 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14846 esac;
14847 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14848 '
14849 export as_echo_n_body
14850 as_echo_n='sh -c $as_echo_n_body as_echo'
14851 fi
14852 export as_echo_body
14853 as_echo='sh -c $as_echo_body as_echo'
14854 fi
14855
14856 # The user is always right.
14857 if test "${PATH_SEPARATOR+set}" != set; then
14858 PATH_SEPARATOR=:
14859 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14860 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14861 PATH_SEPARATOR=';'
14862 }
14863 fi
14864
14865
14866 # IFS
14867 # We need space, tab and new line, in precisely that order. Quoting is
14868 # there to prevent editors from complaining about space-tab.
14869 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14870 # splitting by setting IFS to empty value.)
14871 IFS=" "" $as_nl"
14872
14873 # Find who we are. Look in the path if we contain no directory separator.
14874 as_myself=
14875 case $0 in #((
14876 *[\\/]* ) as_myself=$0 ;;
14877 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14878 for as_dir in $PATH
14879 do
14880 IFS=$as_save_IFS
14881 test -z "$as_dir" && as_dir=.
14882 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14883 done
14884 IFS=$as_save_IFS
14885
14886 ;;
14887 esac
14888 # We did not find ourselves, most probably we were run as `sh COMMAND'
14889 # in which case we are not to be found in the path.
14890 if test "x$as_myself" = x; then
14891 as_myself=$0
14892 fi
14893 if test ! -f "$as_myself"; then
14894 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14895 exit 1
14896 fi
14897
14898 # Unset variables that we do not need and which cause bugs (e.g. in
14899 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14900 # suppresses any "Segmentation fault" message there. '((' could
14901 # trigger a bug in pdksh 5.2.14.
14902 for as_var in BASH_ENV ENV MAIL MAILPATH
14903 do eval test x\${$as_var+set} = xset \
14904 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14905 done
14906 PS1='$ '
14907 PS2='> '
14908 PS4='+ '
14909
14910 # NLS nuisances.
14911 LC_ALL=C
14912 export LC_ALL
14913 LANGUAGE=C
14914 export LANGUAGE
14915
14916 # CDPATH.
14917 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14918
14919
14920 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14921 # ----------------------------------------
14922 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14923 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14924 # script with STATUS, using 1 if that was 0.
14925 as_fn_error ()
14926 {
14927 as_status=$1; test $as_status -eq 0 && as_status=1
14928 if test "$4"; then
14929 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14930 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14931 fi
14932 $as_echo "$as_me: error: $2" >&2
14933 as_fn_exit $as_status
14934 } # as_fn_error
14935
14936
14937 # as_fn_set_status STATUS
14938 # -----------------------
14939 # Set $? to STATUS, without forking.
14940 as_fn_set_status ()
14941 {
14942 return $1
14943 } # as_fn_set_status
14944
14945 # as_fn_exit STATUS
14946 # -----------------
14947 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14948 as_fn_exit ()
14949 {
14950 set +e
14951 as_fn_set_status $1
14952 exit $1
14953 } # as_fn_exit
14954
14955 # as_fn_unset VAR
14956 # ---------------
14957 # Portably unset VAR.
14958 as_fn_unset ()
14959 {
14960 { eval $1=; unset $1;}
14961 }
14962 as_unset=as_fn_unset
14963 # as_fn_append VAR VALUE
14964 # ----------------------
14965 # Append the text in VALUE to the end of the definition contained in VAR. Take
14966 # advantage of any shell optimizations that allow amortized linear growth over
14967 # repeated appends, instead of the typical quadratic growth present in naive
14968 # implementations.
14969 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14970 eval 'as_fn_append ()
14971 {
14972 eval $1+=\$2
14973 }'
14974 else
14975 as_fn_append ()
14976 {
14977 eval $1=\$$1\$2
14978 }
14979 fi # as_fn_append
14980
14981 # as_fn_arith ARG...
14982 # ------------------
14983 # Perform arithmetic evaluation on the ARGs, and store the result in the
14984 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14985 # must be portable across $(()) and expr.
14986 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14987 eval 'as_fn_arith ()
14988 {
14989 as_val=$(( $* ))
14990 }'
14991 else
14992 as_fn_arith ()
14993 {
14994 as_val=`expr "$@" || test $? -eq 1`
14995 }
14996 fi # as_fn_arith
14997
14998
14999 if expr a : '\(a\)' >/dev/null 2>&1 &&
15000 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15001 as_expr=expr
15002 else
15003 as_expr=false
15004 fi
15005
15006 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15007 as_basename=basename
15008 else
15009 as_basename=false
15010 fi
15011
15012 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15013 as_dirname=dirname
15014 else
15015 as_dirname=false
15016 fi
15017
15018 as_me=`$as_basename -- "$0" ||
15019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15020 X"$0" : 'X\(//\)$' \| \
15021 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15022 $as_echo X/"$0" |
15023 sed '/^.*\/\([^/][^/]*\)\/*$/{
15024 s//\1/
15025 q
15026 }
15027 /^X\/\(\/\/\)$/{
15028 s//\1/
15029 q
15030 }
15031 /^X\/\(\/\).*/{
15032 s//\1/
15033 q
15034 }
15035 s/.*/./; q'`
15036
15037 # Avoid depending upon Character Ranges.
15038 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15039 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15040 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15041 as_cr_digits='0123456789'
15042 as_cr_alnum=$as_cr_Letters$as_cr_digits
15043
15044 ECHO_C= ECHO_N= ECHO_T=
15045 case `echo -n x` in #(((((
15046 -n*)
15047 case `echo 'xy\c'` in
15048 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15049 xy) ECHO_C='\c';;
15050 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15051 ECHO_T=' ';;
15052 esac;;
15053 *)
15054 ECHO_N='-n';;
15055 esac
15056
15057 rm -f conf$$ conf$$.exe conf$$.file
15058 if test -d conf$$.dir; then
15059 rm -f conf$$.dir/conf$$.file
15060 else
15061 rm -f conf$$.dir
15062 mkdir conf$$.dir 2>/dev/null
15063 fi
15064 if (echo >conf$$.file) 2>/dev/null; then
15065 if ln -s conf$$.file conf$$ 2>/dev/null; then
15066 as_ln_s='ln -s'
15067 # ... but there are two gotchas:
15068 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15069 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15070 # In both cases, we have to default to `cp -pR'.
15071 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15072 as_ln_s='cp -pR'
15073 elif ln conf$$.file conf$$ 2>/dev/null; then
15074 as_ln_s=ln
15075 else
15076 as_ln_s='cp -pR'
15077 fi
15078 else
15079 as_ln_s='cp -pR'
15080 fi
15081 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15082 rmdir conf$$.dir 2>/dev/null
15083
15084
15085 # as_fn_mkdir_p
15086 # -------------
15087 # Create "$as_dir" as a directory, including parents if necessary.
15088 as_fn_mkdir_p ()
15089 {
15090
15091 case $as_dir in #(
15092 -*) as_dir=./$as_dir;;
15093 esac
15094 test -d "$as_dir" || eval $as_mkdir_p || {
15095 as_dirs=
15096 while :; do
15097 case $as_dir in #(
15098 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15099 *) as_qdir=$as_dir;;
15100 esac
15101 as_dirs="'$as_qdir' $as_dirs"
15102 as_dir=`$as_dirname -- "$as_dir" ||
15103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15104 X"$as_dir" : 'X\(//\)[^/]' \| \
15105 X"$as_dir" : 'X\(//\)$' \| \
15106 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15107 $as_echo X"$as_dir" |
15108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15109 s//\1/
15110 q
15111 }
15112 /^X\(\/\/\)[^/].*/{
15113 s//\1/
15114 q
15115 }
15116 /^X\(\/\/\)$/{
15117 s//\1/
15118 q
15119 }
15120 /^X\(\/\).*/{
15121 s//\1/
15122 q
15123 }
15124 s/.*/./; q'`
15125 test -d "$as_dir" && break
15126 done
15127 test -z "$as_dirs" || eval "mkdir $as_dirs"
15128 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15129
15130
15131 } # as_fn_mkdir_p
15132 if mkdir -p . 2>/dev/null; then
15133 as_mkdir_p='mkdir -p "$as_dir"'
15134 else
15135 test -d ./-p && rmdir ./-p
15136 as_mkdir_p=false
15137 fi
15138
15139
15140 # as_fn_executable_p FILE
15141 # -----------------------
15142 # Test if FILE is an executable regular file.
15143 as_fn_executable_p ()
15144 {
15145 test -f "$1" && test -x "$1"
15146 } # as_fn_executable_p
15147 as_test_x='test -x'
15148 as_executable_p=as_fn_executable_p
15149
15150 # Sed expression to map a string onto a valid CPP name.
15151 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15152
15153 # Sed expression to map a string onto a valid variable name.
15154 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15155
15156
15157 exec 6>&1
15158 ## ----------------------------------- ##
15159 ## Main body of $CONFIG_STATUS script. ##
15160 ## ----------------------------------- ##
15161 _ASEOF
15162 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15163
15164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15165 # Save the log message, to keep $0 and so on meaningful, and to
15166 # report actual input values of CONFIG_FILES etc. instead of their
15167 # values after options handling.
15168 ac_log="
15169 This file was extended by file $as_me 5.37, which was
15170 generated by GNU Autoconf 2.69. Invocation command line was
15171
15172 CONFIG_FILES = $CONFIG_FILES
15173 CONFIG_HEADERS = $CONFIG_HEADERS
15174 CONFIG_LINKS = $CONFIG_LINKS
15175 CONFIG_COMMANDS = $CONFIG_COMMANDS
15176 $ $0 $@
15177
15178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15179 "
15180
15181 _ACEOF
15182
15183 case $ac_config_files in *"
15184 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15185 esac
15186
15187 case $ac_config_headers in *"
15188 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15189 esac
15190
15191
15192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15193 # Files that config.status was made for.
15194 config_files="$ac_config_files"
15195 config_headers="$ac_config_headers"
15196 config_commands="$ac_config_commands"
15197
15198 _ACEOF
15199
15200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15201 ac_cs_usage="\
15202 \`$as_me' instantiates files and other configuration actions
15203 from templates according to the current configuration. Unless the files
15204 and actions are specified as TAGs, all are instantiated by default.
15205
15206 Usage: $0 [OPTION]... [TAG]...
15207
15208 -h, --help print this help, then exit
15209 -V, --version print version number and configuration settings, then exit
15210 --config print configuration, then exit
15211 -q, --quiet, --silent
15212 do not print progress messages
15213 -d, --debug don't remove temporary files
15214 --recheck update $as_me by reconfiguring in the same conditions
15215 --file=FILE[:TEMPLATE]
15216 instantiate the configuration file FILE
15217 --header=FILE[:TEMPLATE]
15218 instantiate the configuration header FILE
15219
15220 Configuration files:
15221 $config_files
15222
15223 Configuration headers:
15224 $config_headers
15225
15226 Configuration commands:
15227 $config_commands
15228
15229 Report bugs to <christos@astron.com>."
15230
15231 _ACEOF
15232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15233 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15234 ac_cs_version="\\
15235 file config.status 5.37
15236 configured by $0, generated by GNU Autoconf 2.69,
15237 with options \\"\$ac_cs_config\\"
15238
15239 Copyright (C) 2012 Free Software Foundation, Inc.
15240 This config.status script is free software; the Free Software Foundation
15241 gives unlimited permission to copy, distribute and modify it."
15242
15243 ac_pwd='$ac_pwd'
15244 srcdir='$srcdir'
15245 INSTALL='$INSTALL'
15246 MKDIR_P='$MKDIR_P'
15247 AWK='$AWK'
15248 test -n "\$AWK" || AWK=awk
15249 _ACEOF
15250
15251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15252 # The default lists apply if the user does not specify any file.
15253 ac_need_defaults=:
15254 while test $# != 0
15255 do
15256 case $1 in
15257 --*=?*)
15258 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15259 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15260 ac_shift=:
15261 ;;
15262 --*=)
15263 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15264 ac_optarg=
15265 ac_shift=:
15266 ;;
15267 *)
15268 ac_option=$1
15269 ac_optarg=$2
15270 ac_shift=shift
15271 ;;
15272 esac
15273
15274 case $ac_option in
15275 # Handling of the options.
15276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15277 ac_cs_recheck=: ;;
15278 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15279 $as_echo "$ac_cs_version"; exit ;;
15280 --config | --confi | --conf | --con | --co | --c )
15281 $as_echo "$ac_cs_config"; exit ;;
15282 --debug | --debu | --deb | --de | --d | -d )
15283 debug=: ;;
15284 --file | --fil | --fi | --f )
15285 $ac_shift
15286 case $ac_optarg in
15287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15288 '') as_fn_error $? "missing file argument" ;;
15289 esac
15290 as_fn_append CONFIG_FILES " '$ac_optarg'"
15291 ac_need_defaults=false;;
15292 --header | --heade | --head | --hea )
15293 $ac_shift
15294 case $ac_optarg in
15295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15296 esac
15297 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15298 ac_need_defaults=false;;
15299 --he | --h)
15300 # Conflict between --help and --header
15301 as_fn_error $? "ambiguous option: \`$1'
15302 Try \`$0 --help' for more information.";;
15303 --help | --hel | -h )
15304 $as_echo "$ac_cs_usage"; exit ;;
15305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15306 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15307 ac_cs_silent=: ;;
15308
15309 # This is an error.
15310 -*) as_fn_error $? "unrecognized option: \`$1'
15311 Try \`$0 --help' for more information." ;;
15312
15313 *) as_fn_append ac_config_targets " $1"
15314 ac_need_defaults=false ;;
15315
15316 esac
15317 shift
15318 done
15319
15320 ac_configure_extra_args=
15321
15322 if $ac_cs_silent; then
15323 exec 6>/dev/null
15324 ac_configure_extra_args="$ac_configure_extra_args --silent"
15325 fi
15326
15327 _ACEOF
15328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15329 if \$ac_cs_recheck; then
15330 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15331 shift
15332 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15333 CONFIG_SHELL='$SHELL'
15334 export CONFIG_SHELL
15335 exec "\$@"
15336 fi
15337
15338 _ACEOF
15339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15340 exec 5>>config.log
15341 {
15342 echo
15343 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15344 ## Running $as_me. ##
15345 _ASBOX
15346 $as_echo "$ac_log"
15347 } >&5
15348
15349 _ACEOF
15350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15351 #
15352 # INIT-COMMANDS
15353 #
15354 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15355
15356
15357 # The HP-UX ksh and POSIX shell print the target directory to stdout
15358 # if CDPATH is set.
15359 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15360
15361 sed_quote_subst='$sed_quote_subst'
15362 double_quote_subst='$double_quote_subst'
15363 delay_variable_subst='$delay_variable_subst'
15364 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15365 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15366 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15367 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15368 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15369 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15370 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15371 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15372 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15373 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15374 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15375 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15376 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15377 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15378 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15379 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15380 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15381 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15382 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15383 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15384 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15385 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15386 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15387 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15388 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15389 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15390 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15391 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15392 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15393 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15394 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15395 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15396 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15397 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15398 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15399 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15400 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15401 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15402 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15403 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15404 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15405 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15406 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15407 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15408 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15409 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15410 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15411 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15412 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15413 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15414 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15415 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15416 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15417 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15418 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15419 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15420 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"`'
15421 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15422 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15423 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15424 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15425 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15426 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15427 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15428 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15429 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15430 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15431 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15432 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15433 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15434 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15435 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15436 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15437 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15438 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15439 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15440 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15441 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15442 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15443 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15444 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15445 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15446 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15447 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15448 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15449 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15450 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15451 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15452 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15453 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15454 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15455 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15456 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15457 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15458 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15459 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15460 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15461 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15462 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15463 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15464 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15465 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15466 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15467 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15468 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15469 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15470 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15471 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15472 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15473 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15474 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15475 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15476 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15477 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15478 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15479 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15480 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15481 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15482 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15483 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15484 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15485 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15486 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15487 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15488 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15489 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15490 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15491 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15492 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15493 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15494
15495 LTCC='$LTCC'
15496 LTCFLAGS='$LTCFLAGS'
15497 compiler='$compiler_DEFAULT'
15498
15499 # A function that is used when there is no print builtin or printf.
15500 func_fallback_echo ()
15501 {
15502 eval 'cat <<_LTECHO_EOF
15503 \$1
15504 _LTECHO_EOF'
15505 }
15506
15507 # Quote evaled strings.
15508 for var in SHELL \
15509 ECHO \
15510 PATH_SEPARATOR \
15511 SED \
15512 GREP \
15513 EGREP \
15514 FGREP \
15515 LD \
15516 NM \
15517 LN_S \
15518 lt_SP2NL \
15519 lt_NL2SP \
15520 reload_flag \
15521 OBJDUMP \
15522 deplibs_check_method \
15523 file_magic_cmd \
15524 file_magic_glob \
15525 want_nocaseglob \
15526 DLLTOOL \
15527 sharedlib_from_linklib_cmd \
15528 AR \
15529 AR_FLAGS \
15530 archiver_list_spec \
15531 STRIP \
15532 RANLIB \
15533 CC \
15534 CFLAGS \
15535 compiler \
15536 lt_cv_sys_global_symbol_pipe \
15537 lt_cv_sys_global_symbol_to_cdecl \
15538 lt_cv_sys_global_symbol_to_c_name_address \
15539 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15540 nm_file_list_spec \
15541 lt_prog_compiler_no_builtin_flag \
15542 lt_prog_compiler_pic \
15543 lt_prog_compiler_wl \
15544 lt_prog_compiler_static \
15545 lt_cv_prog_compiler_c_o \
15546 need_locks \
15547 MANIFEST_TOOL \
15548 DSYMUTIL \
15549 NMEDIT \
15550 LIPO \
15551 OTOOL \
15552 OTOOL64 \
15553 shrext_cmds \
15554 export_dynamic_flag_spec \
15555 whole_archive_flag_spec \
15556 compiler_needs_object \
15557 with_gnu_ld \
15558 allow_undefined_flag \
15559 no_undefined_flag \
15560 hardcode_libdir_flag_spec \
15561 hardcode_libdir_separator \
15562 exclude_expsyms \
15563 include_expsyms \
15564 file_list_spec \
15565 variables_saved_for_relink \
15566 libname_spec \
15567 library_names_spec \
15568 soname_spec \
15569 install_override_mode \
15570 finish_eval \
15571 old_striplib \
15572 striplib; do
15573 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15574 *[\\\\\\\`\\"\\\$]*)
15575 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15576 ;;
15577 *)
15578 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15579 ;;
15580 esac
15581 done
15582
15583 # Double-quote double-evaled strings.
15584 for var in reload_cmds \
15585 old_postinstall_cmds \
15586 old_postuninstall_cmds \
15587 old_archive_cmds \
15588 extract_expsyms_cmds \
15589 old_archive_from_new_cmds \
15590 old_archive_from_expsyms_cmds \
15591 archive_cmds \
15592 archive_expsym_cmds \
15593 module_cmds \
15594 module_expsym_cmds \
15595 export_symbols_cmds \
15596 prelink_cmds \
15597 postlink_cmds \
15598 postinstall_cmds \
15599 postuninstall_cmds \
15600 finish_cmds \
15601 sys_lib_search_path_spec \
15602 sys_lib_dlsearch_path_spec; do
15603 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15604 *[\\\\\\\`\\"\\\$]*)
15605 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15606 ;;
15607 *)
15608 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15609 ;;
15610 esac
15611 done
15612
15613 ac_aux_dir='$ac_aux_dir'
15614 xsi_shell='$xsi_shell'
15615 lt_shell_append='$lt_shell_append'
15616
15617 # See if we are running on zsh, and set the options which allow our
15618 # commands through without removal of \ escapes INIT.
15619 if test -n "\${ZSH_VERSION+set}" ; then
15620 setopt NO_GLOB_SUBST
15621 fi
15622
15623
15624 PACKAGE='$PACKAGE'
15625 VERSION='$VERSION'
15626 TIMESTAMP='$TIMESTAMP'
15627 RM='$RM'
15628 ofile='$ofile'
15629
15630
15631
15632
15633 _ACEOF
15634
15635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15636
15637 # Handling of arguments.
15638 for ac_config_target in $ac_config_targets
15639 do
15640 case $ac_config_target in
15641 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15642 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15643 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15644 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15645 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15646 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
15647 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15648 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15649 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
15650
15651 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15652 esac
15653 done
15654
15655
15656 # If the user did not use the arguments to specify the items to instantiate,
15657 # then the envvar interface is used. Set only those that are not.
15658 # We use the long form for the default assignment because of an extremely
15659 # bizarre bug on SunOS 4.1.3.
15660 if $ac_need_defaults; then
15661 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15662 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15663 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15664 fi
15665
15666 # Have a temporary directory for convenience. Make it in the build tree
15667 # simply because there is no reason against having it here, and in addition,
15668 # creating and moving files from /tmp can sometimes cause problems.
15669 # Hook for its removal unless debugging.
15670 # Note that there is a small window in which the directory will not be cleaned:
15671 # after its creation but before its name has been assigned to `$tmp'.
15672 $debug ||
15673 {
15674 tmp= ac_tmp=
15675 trap 'exit_status=$?
15676 : "${ac_tmp:=$tmp}"
15677 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15678 ' 0
15679 trap 'as_fn_exit 1' 1 2 13 15
15680 }
15681 # Create a (secure) tmp directory for tmp files.
15682
15683 {
15684 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15685 test -d "$tmp"
15686 } ||
15687 {
15688 tmp=./conf$$-$RANDOM
15689 (umask 077 && mkdir "$tmp")
15690 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15691 ac_tmp=$tmp
15692
15693 # Set up the scripts for CONFIG_FILES section.
15694 # No need to generate them if there are no CONFIG_FILES.
15695 # This happens for instance with `./config.status config.h'.
15696 if test -n "$CONFIG_FILES"; then
15697
15698
15699 ac_cr=`echo X | tr X '\015'`
15700 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15701 # But we know of no other shell where ac_cr would be empty at this
15702 # point, so we can use a bashism as a fallback.
15703 if test "x$ac_cr" = x; then
15704 eval ac_cr=\$\'\\r\'
15705 fi
15706 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15707 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15708 ac_cs_awk_cr='\\r'
15709 else
15710 ac_cs_awk_cr=$ac_cr
15711 fi
15712
15713 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15714 _ACEOF
15715
15716
15717 {
15718 echo "cat >conf$$subs.awk <<_ACEOF" &&
15719 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15720 echo "_ACEOF"
15721 } >conf$$subs.sh ||
15722 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15723 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15724 ac_delim='%!_!# '
15725 for ac_last_try in false false false false false :; do
15726 . ./conf$$subs.sh ||
15727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15728
15729 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15730 if test $ac_delim_n = $ac_delim_num; then
15731 break
15732 elif $ac_last_try; then
15733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15734 else
15735 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15736 fi
15737 done
15738 rm -f conf$$subs.sh
15739
15740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15741 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15742 _ACEOF
15743 sed -n '
15744 h
15745 s/^/S["/; s/!.*/"]=/
15746 p
15747 g
15748 s/^[^!]*!//
15749 :repl
15750 t repl
15751 s/'"$ac_delim"'$//
15752 t delim
15753 :nl
15754 h
15755 s/\(.\{148\}\)..*/\1/
15756 t more1
15757 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15758 p
15759 n
15760 b repl
15761 :more1
15762 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15763 p
15764 g
15765 s/.\{148\}//
15766 t nl
15767 :delim
15768 h
15769 s/\(.\{148\}\)..*/\1/
15770 t more2
15771 s/["\\]/\\&/g; s/^/"/; s/$/"/
15772 p
15773 b
15774 :more2
15775 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15776 p
15777 g
15778 s/.\{148\}//
15779 t delim
15780 ' <conf$$subs.awk | sed '
15781 /^[^""]/{
15782 N
15783 s/\n//
15784 }
15785 ' >>$CONFIG_STATUS || ac_write_fail=1
15786 rm -f conf$$subs.awk
15787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15788 _ACAWK
15789 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15790 for (key in S) S_is_set[key] = 1
15791 FS = ""
15792
15793 }
15794 {
15795 line = $ 0
15796 nfields = split(line, field, "@")
15797 substed = 0
15798 len = length(field[1])
15799 for (i = 2; i < nfields; i++) {
15800 key = field[i]
15801 keylen = length(key)
15802 if (S_is_set[key]) {
15803 value = S[key]
15804 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15805 len += length(value) + length(field[++i])
15806 substed = 1
15807 } else
15808 len += 1 + keylen
15809 }
15810
15811 print line
15812 }
15813
15814 _ACAWK
15815 _ACEOF
15816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15817 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15818 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15819 else
15820 cat
15821 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15822 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15823 _ACEOF
15824
15825 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15826 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15827 # trailing colons and then remove the whole line if VPATH becomes empty
15828 # (actually we leave an empty line to preserve line numbers).
15829 if test "x$srcdir" = x.; then
15830 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15831 h
15832 s///
15833 s/^/:/
15834 s/[ ]*$/:/
15835 s/:\$(srcdir):/:/g
15836 s/:\${srcdir}:/:/g
15837 s/:@srcdir@:/:/g
15838 s/^:*//
15839 s/:*$//
15840 x
15841 s/\(=[ ]*\).*/\1/
15842 G
15843 s/\n//
15844 s/^[^=]*=[ ]*$//
15845 }'
15846 fi
15847
15848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15849 fi # test -n "$CONFIG_FILES"
15850
15851 # Set up the scripts for CONFIG_HEADERS section.
15852 # No need to generate them if there are no CONFIG_HEADERS.
15853 # This happens for instance with `./config.status Makefile'.
15854 if test -n "$CONFIG_HEADERS"; then
15855 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15856 BEGIN {
15857 _ACEOF
15858
15859 # Transform confdefs.h into an awk script `defines.awk', embedded as
15860 # here-document in config.status, that substitutes the proper values into
15861 # config.h.in to produce config.h.
15862
15863 # Create a delimiter string that does not exist in confdefs.h, to ease
15864 # handling of long lines.
15865 ac_delim='%!_!# '
15866 for ac_last_try in false false :; do
15867 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15868 if test -z "$ac_tt"; then
15869 break
15870 elif $ac_last_try; then
15871 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15872 else
15873 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15874 fi
15875 done
15876
15877 # For the awk script, D is an array of macro values keyed by name,
15878 # likewise P contains macro parameters if any. Preserve backslash
15879 # newline sequences.
15880
15881 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15882 sed -n '
15883 s/.\{148\}/&'"$ac_delim"'/g
15884 t rset
15885 :rset
15886 s/^[ ]*#[ ]*define[ ][ ]*/ /
15887 t def
15888 d
15889 :def
15890 s/\\$//
15891 t bsnl
15892 s/["\\]/\\&/g
15893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15894 D["\1"]=" \3"/p
15895 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15896 d
15897 :bsnl
15898 s/["\\]/\\&/g
15899 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15900 D["\1"]=" \3\\\\\\n"\\/p
15901 t cont
15902 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15903 t cont
15904 d
15905 :cont
15906 n
15907 s/.\{148\}/&'"$ac_delim"'/g
15908 t clear
15909 :clear
15910 s/\\$//
15911 t bsnlc
15912 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15913 d
15914 :bsnlc
15915 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15916 b cont
15917 ' <confdefs.h | sed '
15918 s/'"$ac_delim"'/"\\\
15919 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15920
15921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15922 for (key in D) D_is_set[key] = 1
15923 FS = ""
15924 }
15925 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15926 line = \$ 0
15927 split(line, arg, " ")
15928 if (arg[1] == "#") {
15929 defundef = arg[2]
15930 mac1 = arg[3]
15931 } else {
15932 defundef = substr(arg[1], 2)
15933 mac1 = arg[2]
15934 }
15935 split(mac1, mac2, "(") #)
15936 macro = mac2[1]
15937 prefix = substr(line, 1, index(line, defundef) - 1)
15938 if (D_is_set[macro]) {
15939 # Preserve the white space surrounding the "#".
15940 print prefix "define", macro P[macro] D[macro]
15941 next
15942 } else {
15943 # Replace #undef with comments. This is necessary, for example,
15944 # in the case of _POSIX_SOURCE, which is predefined and required
15945 # on some systems where configure will not decide to define it.
15946 if (defundef == "undef") {
15947 print "/*", prefix defundef, macro, "*/"
15948 next
15949 }
15950 }
15951 }
15952 { print }
15953 _ACAWK
15954 _ACEOF
15955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15956 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15957 fi # test -n "$CONFIG_HEADERS"
15958
15959
15960 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15961 shift
15962 for ac_tag
15963 do
15964 case $ac_tag in
15965 :[FHLC]) ac_mode=$ac_tag; continue;;
15966 esac
15967 case $ac_mode$ac_tag in
15968 :[FHL]*:*);;
15969 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15970 :[FH]-) ac_tag=-:-;;
15971 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15972 esac
15973 ac_save_IFS=$IFS
15974 IFS=:
15975 set x $ac_tag
15976 IFS=$ac_save_IFS
15977 shift
15978 ac_file=$1
15979 shift
15980
15981 case $ac_mode in
15982 :L) ac_source=$1;;
15983 :[FH])
15984 ac_file_inputs=
15985 for ac_f
15986 do
15987 case $ac_f in
15988 -) ac_f="$ac_tmp/stdin";;
15989 *) # Look for the file first in the build tree, then in the source tree
15990 # (if the path is not absolute). The absolute path cannot be DOS-style,
15991 # because $ac_f cannot contain `:'.
15992 test -f "$ac_f" ||
15993 case $ac_f in
15994 [\\/$]*) false;;
15995 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15996 esac ||
15997 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15998 esac
15999 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16000 as_fn_append ac_file_inputs " '$ac_f'"
16001 done
16002
16003 # Let's still pretend it is `configure' which instantiates (i.e., don't
16004 # use $as_me), people would be surprised to read:
16005 # /* config.h. Generated by config.status. */
16006 configure_input='Generated from '`
16007 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16008 `' by configure.'
16009 if test x"$ac_file" != x-; then
16010 configure_input="$ac_file. $configure_input"
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16012 $as_echo "$as_me: creating $ac_file" >&6;}
16013 fi
16014 # Neutralize special characters interpreted by sed in replacement strings.
16015 case $configure_input in #(
16016 *\&* | *\|* | *\\* )
16017 ac_sed_conf_input=`$as_echo "$configure_input" |
16018 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16019 *) ac_sed_conf_input=$configure_input;;
16020 esac
16021
16022 case $ac_tag in
16023 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16025 esac
16026 ;;
16027 esac
16028
16029 ac_dir=`$as_dirname -- "$ac_file" ||
16030 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16031 X"$ac_file" : 'X\(//\)[^/]' \| \
16032 X"$ac_file" : 'X\(//\)$' \| \
16033 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16034 $as_echo X"$ac_file" |
16035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16036 s//\1/
16037 q
16038 }
16039 /^X\(\/\/\)[^/].*/{
16040 s//\1/
16041 q
16042 }
16043 /^X\(\/\/\)$/{
16044 s//\1/
16045 q
16046 }
16047 /^X\(\/\).*/{
16048 s//\1/
16049 q
16050 }
16051 s/.*/./; q'`
16052 as_dir="$ac_dir"; as_fn_mkdir_p
16053 ac_builddir=.
16054
16055 case "$ac_dir" in
16056 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16057 *)
16058 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16059 # A ".." for each directory in $ac_dir_suffix.
16060 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16061 case $ac_top_builddir_sub in
16062 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16063 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16064 esac ;;
16065 esac
16066 ac_abs_top_builddir=$ac_pwd
16067 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16068 # for backward compatibility:
16069 ac_top_builddir=$ac_top_build_prefix
16070
16071 case $srcdir in
16072 .) # We are building in place.
16073 ac_srcdir=.
16074 ac_top_srcdir=$ac_top_builddir_sub
16075 ac_abs_top_srcdir=$ac_pwd ;;
16076 [\\/]* | ?:[\\/]* ) # Absolute name.
16077 ac_srcdir=$srcdir$ac_dir_suffix;
16078 ac_top_srcdir=$srcdir
16079 ac_abs_top_srcdir=$srcdir ;;
16080 *) # Relative name.
16081 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16082 ac_top_srcdir=$ac_top_build_prefix$srcdir
16083 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16084 esac
16085 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16086
16087
16088 case $ac_mode in
16089 :F)
16090 #
16091 # CONFIG_FILE
16092 #
16093
16094 case $INSTALL in
16095 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16096 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16097 esac
16098 ac_MKDIR_P=$MKDIR_P
16099 case $MKDIR_P in
16100 [\\/$]* | ?:[\\/]* ) ;;
16101 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16102 esac
16103 _ACEOF
16104
16105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16106 # If the template does not know about datarootdir, expand it.
16107 # FIXME: This hack should be removed a few years after 2.60.
16108 ac_datarootdir_hack=; ac_datarootdir_seen=
16109 ac_sed_dataroot='
16110 /datarootdir/ {
16111 p
16112 q
16113 }
16114 /@datadir@/p
16115 /@docdir@/p
16116 /@infodir@/p
16117 /@localedir@/p
16118 /@mandir@/p'
16119 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16120 *datarootdir*) ac_datarootdir_seen=yes;;
16121 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16123 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16124 _ACEOF
16125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16126 ac_datarootdir_hack='
16127 s&@datadir@&$datadir&g
16128 s&@docdir@&$docdir&g
16129 s&@infodir@&$infodir&g
16130 s&@localedir@&$localedir&g
16131 s&@mandir@&$mandir&g
16132 s&\\\${datarootdir}&$datarootdir&g' ;;
16133 esac
16134 _ACEOF
16135
16136 # Neutralize VPATH when `$srcdir' = `.'.
16137 # Shell code in configure.ac might set extrasub.
16138 # FIXME: do we really want to maintain this feature?
16139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16140 ac_sed_extra="$ac_vpsub
16141 $extrasub
16142 _ACEOF
16143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16144 :t
16145 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16146 s|@configure_input@|$ac_sed_conf_input|;t t
16147 s&@top_builddir@&$ac_top_builddir_sub&;t t
16148 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16149 s&@srcdir@&$ac_srcdir&;t t
16150 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16151 s&@top_srcdir@&$ac_top_srcdir&;t t
16152 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16153 s&@builddir@&$ac_builddir&;t t
16154 s&@abs_builddir@&$ac_abs_builddir&;t t
16155 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16156 s&@INSTALL@&$ac_INSTALL&;t t
16157 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16158 $ac_datarootdir_hack
16159 "
16160 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16161 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16162
16163 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16164 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16165 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16166 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16168 which seems to be undefined. Please make sure it is defined" >&5
16169 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16170 which seems to be undefined. Please make sure it is defined" >&2;}
16171
16172 rm -f "$ac_tmp/stdin"
16173 case $ac_file in
16174 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16175 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16176 esac \
16177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16178 ;;
16179 :H)
16180 #
16181 # CONFIG_HEADER
16182 #
16183 if test x"$ac_file" != x-; then
16184 {
16185 $as_echo "/* $configure_input */" \
16186 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16187 } >"$ac_tmp/config.h" \
16188 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16189 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16191 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16192 else
16193 rm -f "$ac_file"
16194 mv "$ac_tmp/config.h" "$ac_file" \
16195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16196 fi
16197 else
16198 $as_echo "/* $configure_input */" \
16199 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16200 || as_fn_error $? "could not create -" "$LINENO" 5
16201 fi
16202 # Compute "$ac_file"'s index in $config_headers.
16203 _am_arg="$ac_file"
16204 _am_stamp_count=1
16205 for _am_header in $config_headers :; do
16206 case $_am_header in
16207 $_am_arg | $_am_arg:* )
16208 break ;;
16209 * )
16210 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16211 esac
16212 done
16213 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16214 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16215 X"$_am_arg" : 'X\(//\)[^/]' \| \
16216 X"$_am_arg" : 'X\(//\)$' \| \
16217 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16218 $as_echo X"$_am_arg" |
16219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16220 s//\1/
16221 q
16222 }
16223 /^X\(\/\/\)[^/].*/{
16224 s//\1/
16225 q
16226 }
16227 /^X\(\/\/\)$/{
16228 s//\1/
16229 q
16230 }
16231 /^X\(\/\).*/{
16232 s//\1/
16233 q
16234 }
16235 s/.*/./; q'`/stamp-h$_am_stamp_count
16236 ;;
16237
16238 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16239 $as_echo "$as_me: executing $ac_file commands" >&6;}
16240 ;;
16241 esac
16242
16243
16244 case $ac_file$ac_mode in
16245 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16246 # Older Autoconf quotes --file arguments for eval, but not when files
16247 # are listed without --file. Let's play safe and only enable the eval
16248 # if we detect the quoting.
16249 case $CONFIG_FILES in
16250 *\'*) eval set x "$CONFIG_FILES" ;;
16251 *) set x $CONFIG_FILES ;;
16252 esac
16253 shift
16254 for mf
16255 do
16256 # Strip MF so we end up with the name of the file.
16257 mf=`echo "$mf" | sed -e 's/:.*$//'`
16258 # Check whether this is an Automake generated Makefile or not.
16259 # We used to match only the files named 'Makefile.in', but
16260 # some people rename them; so instead we look at the file content.
16261 # Grep'ing the first line is not enough: some people post-process
16262 # each Makefile.in and add a new line on top of each file to say so.
16263 # Grep'ing the whole file is not good either: AIX grep has a line
16264 # limit of 2048, but all sed's we know have understand at least 4000.
16265 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16266 dirpart=`$as_dirname -- "$mf" ||
16267 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16268 X"$mf" : 'X\(//\)[^/]' \| \
16269 X"$mf" : 'X\(//\)$' \| \
16270 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16271 $as_echo X"$mf" |
16272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16273 s//\1/
16274 q
16275 }
16276 /^X\(\/\/\)[^/].*/{
16277 s//\1/
16278 q
16279 }
16280 /^X\(\/\/\)$/{
16281 s//\1/
16282 q
16283 }
16284 /^X\(\/\).*/{
16285 s//\1/
16286 q
16287 }
16288 s/.*/./; q'`
16289 else
16290 continue
16291 fi
16292 # Extract the definition of DEPDIR, am__include, and am__quote
16293 # from the Makefile without running 'make'.
16294 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16295 test -z "$DEPDIR" && continue
16296 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16297 test -z "$am__include" && continue
16298 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16299 # Find all dependency output files, they are included files with
16300 # $(DEPDIR) in their names. We invoke sed twice because it is the
16301 # simplest approach to changing $(DEPDIR) to its actual value in the
16302 # expansion.
16303 for file in `sed -n "
16304 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16305 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16306 # Make sure the directory exists.
16307 test -f "$dirpart/$file" && continue
16308 fdir=`$as_dirname -- "$file" ||
16309 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16310 X"$file" : 'X\(//\)[^/]' \| \
16311 X"$file" : 'X\(//\)$' \| \
16312 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16313 $as_echo X"$file" |
16314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16315 s//\1/
16316 q
16317 }
16318 /^X\(\/\/\)[^/].*/{
16319 s//\1/
16320 q
16321 }
16322 /^X\(\/\/\)$/{
16323 s//\1/
16324 q
16325 }
16326 /^X\(\/\).*/{
16327 s//\1/
16328 q
16329 }
16330 s/.*/./; q'`
16331 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16332 # echo "creating $dirpart/$file"
16333 echo '# dummy' > "$dirpart/$file"
16334 done
16335 done
16336 }
16337 ;;
16338 "libtool":C)
16339
16340 # See if we are running on zsh, and set the options which allow our
16341 # commands through without removal of \ escapes.
16342 if test -n "${ZSH_VERSION+set}" ; then
16343 setopt NO_GLOB_SUBST
16344 fi
16345
16346 cfgfile="${ofile}T"
16347 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16348 $RM "$cfgfile"
16349
16350 cat <<_LT_EOF >> "$cfgfile"
16351 #! $SHELL
16352
16353 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16354 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16355 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16356 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16357 #
16358 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16359 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16360 # Foundation, Inc.
16361 # Written by Gordon Matzigkeit, 1996
16362 #
16363 # This file is part of GNU Libtool.
16364 #
16365 # GNU Libtool is free software; you can redistribute it and/or
16366 # modify it under the terms of the GNU General Public License as
16367 # published by the Free Software Foundation; either version 2 of
16368 # the License, or (at your option) any later version.
16369 #
16370 # As a special exception to the GNU General Public License,
16371 # if you distribute this file as part of a program or library that
16372 # is built using GNU Libtool, you may include this file under the
16373 # same distribution terms that you use for the rest of that program.
16374 #
16375 # GNU Libtool is distributed in the hope that it will be useful,
16376 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16377 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16378 # GNU General Public License for more details.
16379 #
16380 # You should have received a copy of the GNU General Public License
16381 # along with GNU Libtool; see the file COPYING. If not, a copy
16382 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16383 # obtained by writing to the Free Software Foundation, Inc.,
16384 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16385
16386
16387 # The names of the tagged configurations supported by this script.
16388 available_tags=""
16389
16390 # ### BEGIN LIBTOOL CONFIG
16391
16392 # Which release of libtool.m4 was used?
16393 macro_version=$macro_version
16394 macro_revision=$macro_revision
16395
16396 # Whether or not to build static libraries.
16397 build_old_libs=$enable_static
16398
16399 # What type of objects to build.
16400 pic_mode=$pic_mode
16401
16402 # Whether or not to build shared libraries.
16403 build_libtool_libs=$enable_shared
16404
16405 # Whether or not to optimize for fast installation.
16406 fast_install=$enable_fast_install
16407
16408 # Shell to use when invoking shell scripts.
16409 SHELL=$lt_SHELL
16410
16411 # An echo program that protects backslashes.
16412 ECHO=$lt_ECHO
16413
16414 # The PATH separator for the build system.
16415 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16416
16417 # The host system.
16418 host_alias=$host_alias
16419 host=$host
16420 host_os=$host_os
16421
16422 # The build system.
16423 build_alias=$build_alias
16424 build=$build
16425 build_os=$build_os
16426
16427 # A sed program that does not truncate output.
16428 SED=$lt_SED
16429
16430 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16431 Xsed="\$SED -e 1s/^X//"
16432
16433 # A grep program that handles long lines.
16434 GREP=$lt_GREP
16435
16436 # An ERE matcher.
16437 EGREP=$lt_EGREP
16438
16439 # A literal string matcher.
16440 FGREP=$lt_FGREP
16441
16442 # A BSD- or MS-compatible name lister.
16443 NM=$lt_NM
16444
16445 # Whether we need soft or hard links.
16446 LN_S=$lt_LN_S
16447
16448 # What is the maximum length of a command?
16449 max_cmd_len=$max_cmd_len
16450
16451 # Object file suffix (normally "o").
16452 objext=$ac_objext
16453
16454 # Executable file suffix (normally "").
16455 exeext=$exeext
16456
16457 # whether the shell understands "unset".
16458 lt_unset=$lt_unset
16459
16460 # turn spaces into newlines.
16461 SP2NL=$lt_lt_SP2NL
16462
16463 # turn newlines into spaces.
16464 NL2SP=$lt_lt_NL2SP
16465
16466 # convert \$build file names to \$host format.
16467 to_host_file_cmd=$lt_cv_to_host_file_cmd
16468
16469 # convert \$build files to toolchain format.
16470 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16471
16472 # An object symbol dumper.
16473 OBJDUMP=$lt_OBJDUMP
16474
16475 # Method to check whether dependent libraries are shared objects.
16476 deplibs_check_method=$lt_deplibs_check_method
16477
16478 # Command to use when deplibs_check_method = "file_magic".
16479 file_magic_cmd=$lt_file_magic_cmd
16480
16481 # How to find potential files when deplibs_check_method = "file_magic".
16482 file_magic_glob=$lt_file_magic_glob
16483
16484 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16485 want_nocaseglob=$lt_want_nocaseglob
16486
16487 # DLL creation program.
16488 DLLTOOL=$lt_DLLTOOL
16489
16490 # Command to associate shared and link libraries.
16491 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16492
16493 # The archiver.
16494 AR=$lt_AR
16495
16496 # Flags to create an archive.
16497 AR_FLAGS=$lt_AR_FLAGS
16498
16499 # How to feed a file listing to the archiver.
16500 archiver_list_spec=$lt_archiver_list_spec
16501
16502 # A symbol stripping program.
16503 STRIP=$lt_STRIP
16504
16505 # Commands used to install an old-style archive.
16506 RANLIB=$lt_RANLIB
16507 old_postinstall_cmds=$lt_old_postinstall_cmds
16508 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16509
16510 # Whether to use a lock for old archive extraction.
16511 lock_old_archive_extraction=$lock_old_archive_extraction
16512
16513 # A C compiler.
16514 LTCC=$lt_CC
16515
16516 # LTCC compiler flags.
16517 LTCFLAGS=$lt_CFLAGS
16518
16519 # Take the output of nm and produce a listing of raw symbols and C names.
16520 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16521
16522 # Transform the output of nm in a proper C declaration.
16523 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16524
16525 # Transform the output of nm in a C name address pair.
16526 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16527
16528 # Transform the output of nm in a C name address pair when lib prefix is needed.
16529 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16530
16531 # Specify filename containing input files for \$NM.
16532 nm_file_list_spec=$lt_nm_file_list_spec
16533
16534 # The root where to search for dependent libraries,and in which our libraries should be installed.
16535 lt_sysroot=$lt_sysroot
16536
16537 # The name of the directory that contains temporary libtool files.
16538 objdir=$objdir
16539
16540 # Used to examine libraries when file_magic_cmd begins with "file".
16541 MAGIC_CMD=$MAGIC_CMD
16542
16543 # Must we lock files when doing compilation?
16544 need_locks=$lt_need_locks
16545
16546 # Manifest tool.
16547 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16548
16549 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16550 DSYMUTIL=$lt_DSYMUTIL
16551
16552 # Tool to change global to local symbols on Mac OS X.
16553 NMEDIT=$lt_NMEDIT
16554
16555 # Tool to manipulate fat objects and archives on Mac OS X.
16556 LIPO=$lt_LIPO
16557
16558 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16559 OTOOL=$lt_OTOOL
16560
16561 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16562 OTOOL64=$lt_OTOOL64
16563
16564 # Old archive suffix (normally "a").
16565 libext=$libext
16566
16567 # Shared library suffix (normally ".so").
16568 shrext_cmds=$lt_shrext_cmds
16569
16570 # The commands to extract the exported symbol list from a shared archive.
16571 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16572
16573 # Variables whose values should be saved in libtool wrapper scripts and
16574 # restored at link time.
16575 variables_saved_for_relink=$lt_variables_saved_for_relink
16576
16577 # Do we need the "lib" prefix for modules?
16578 need_lib_prefix=$need_lib_prefix
16579
16580 # Do we need a version for libraries?
16581 need_version=$need_version
16582
16583 # Library versioning type.
16584 version_type=$version_type
16585
16586 # Shared library runtime path variable.
16587 runpath_var=$runpath_var
16588
16589 # Shared library path variable.
16590 shlibpath_var=$shlibpath_var
16591
16592 # Is shlibpath searched before the hard-coded library search path?
16593 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16594
16595 # Format of library name prefix.
16596 libname_spec=$lt_libname_spec
16597
16598 # List of archive names. First name is the real one, the rest are links.
16599 # The last name is the one that the linker finds with -lNAME
16600 library_names_spec=$lt_library_names_spec
16601
16602 # The coded name of the library, if different from the real name.
16603 soname_spec=$lt_soname_spec
16604
16605 # Permission mode override for installation of shared libraries.
16606 install_override_mode=$lt_install_override_mode
16607
16608 # Command to use after installation of a shared archive.
16609 postinstall_cmds=$lt_postinstall_cmds
16610
16611 # Command to use after uninstallation of a shared archive.
16612 postuninstall_cmds=$lt_postuninstall_cmds
16613
16614 # Commands used to finish a libtool library installation in a directory.
16615 finish_cmds=$lt_finish_cmds
16616
16617 # As "finish_cmds", except a single script fragment to be evaled but
16618 # not shown.
16619 finish_eval=$lt_finish_eval
16620
16621 # Whether we should hardcode library paths into libraries.
16622 hardcode_into_libs=$hardcode_into_libs
16623
16624 # Compile-time system search path for libraries.
16625 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16626
16627 # Run-time system search path for libraries.
16628 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16629
16630 # Whether dlopen is supported.
16631 dlopen_support=$enable_dlopen
16632
16633 # Whether dlopen of programs is supported.
16634 dlopen_self=$enable_dlopen_self
16635
16636 # Whether dlopen of statically linked programs is supported.
16637 dlopen_self_static=$enable_dlopen_self_static
16638
16639 # Commands to strip libraries.
16640 old_striplib=$lt_old_striplib
16641 striplib=$lt_striplib
16642
16643
16644 # The linker used to build libraries.
16645 LD=$lt_LD
16646
16647 # How to create reloadable object files.
16648 reload_flag=$lt_reload_flag
16649 reload_cmds=$lt_reload_cmds
16650
16651 # Commands used to build an old-style archive.
16652 old_archive_cmds=$lt_old_archive_cmds
16653
16654 # A language specific compiler.
16655 CC=$lt_compiler
16656
16657 # Is the compiler the GNU compiler?
16658 with_gcc=$GCC
16659
16660 # Compiler flag to turn off builtin functions.
16661 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16662
16663 # Additional compiler flags for building library objects.
16664 pic_flag=$lt_lt_prog_compiler_pic
16665
16666 # How to pass a linker flag through the compiler.
16667 wl=$lt_lt_prog_compiler_wl
16668
16669 # Compiler flag to prevent dynamic linking.
16670 link_static_flag=$lt_lt_prog_compiler_static
16671
16672 # Does compiler simultaneously support -c and -o options?
16673 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16674
16675 # Whether or not to add -lc for building shared libraries.
16676 build_libtool_need_lc=$archive_cmds_need_lc
16677
16678 # Whether or not to disallow shared libs when runtime libs are static.
16679 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16680
16681 # Compiler flag to allow reflexive dlopens.
16682 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16683
16684 # Compiler flag to generate shared objects directly from archives.
16685 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16686
16687 # Whether the compiler copes with passing no objects directly.
16688 compiler_needs_object=$lt_compiler_needs_object
16689
16690 # Create an old-style archive from a shared archive.
16691 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16692
16693 # Create a temporary old-style archive to link instead of a shared archive.
16694 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16695
16696 # Commands used to build a shared archive.
16697 archive_cmds=$lt_archive_cmds
16698 archive_expsym_cmds=$lt_archive_expsym_cmds
16699
16700 # Commands used to build a loadable module if different from building
16701 # a shared archive.
16702 module_cmds=$lt_module_cmds
16703 module_expsym_cmds=$lt_module_expsym_cmds
16704
16705 # Whether we are building with GNU ld or not.
16706 with_gnu_ld=$lt_with_gnu_ld
16707
16708 # Flag that allows shared libraries with undefined symbols to be built.
16709 allow_undefined_flag=$lt_allow_undefined_flag
16710
16711 # Flag that enforces no undefined symbols.
16712 no_undefined_flag=$lt_no_undefined_flag
16713
16714 # Flag to hardcode \$libdir into a binary during linking.
16715 # This must work even if \$libdir does not exist
16716 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16717
16718 # Whether we need a single "-rpath" flag with a separated argument.
16719 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16720
16721 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16722 # DIR into the resulting binary.
16723 hardcode_direct=$hardcode_direct
16724
16725 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16726 # DIR into the resulting binary and the resulting library dependency is
16727 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16728 # library is relocated.
16729 hardcode_direct_absolute=$hardcode_direct_absolute
16730
16731 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16732 # into the resulting binary.
16733 hardcode_minus_L=$hardcode_minus_L
16734
16735 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16736 # into the resulting binary.
16737 hardcode_shlibpath_var=$hardcode_shlibpath_var
16738
16739 # Set to "yes" if building a shared library automatically hardcodes DIR
16740 # into the library and all subsequent libraries and executables linked
16741 # against it.
16742 hardcode_automatic=$hardcode_automatic
16743
16744 # Set to yes if linker adds runtime paths of dependent libraries
16745 # to runtime path list.
16746 inherit_rpath=$inherit_rpath
16747
16748 # Whether libtool must link a program against all its dependency libraries.
16749 link_all_deplibs=$link_all_deplibs
16750
16751 # Set to "yes" if exported symbols are required.
16752 always_export_symbols=$always_export_symbols
16753
16754 # The commands to list exported symbols.
16755 export_symbols_cmds=$lt_export_symbols_cmds
16756
16757 # Symbols that should not be listed in the preloaded symbols.
16758 exclude_expsyms=$lt_exclude_expsyms
16759
16760 # Symbols that must always be exported.
16761 include_expsyms=$lt_include_expsyms
16762
16763 # Commands necessary for linking programs (against libraries) with templates.
16764 prelink_cmds=$lt_prelink_cmds
16765
16766 # Commands necessary for finishing linking programs.
16767 postlink_cmds=$lt_postlink_cmds
16768
16769 # Specify filename containing input files.
16770 file_list_spec=$lt_file_list_spec
16771
16772 # How to hardcode a shared library path into an executable.
16773 hardcode_action=$hardcode_action
16774
16775 # ### END LIBTOOL CONFIG
16776
16777 _LT_EOF
16778
16779 case $host_os in
16780 aix3*)
16781 cat <<\_LT_EOF >> "$cfgfile"
16782 # AIX sometimes has problems with the GCC collect2 program. For some
16783 # reason, if we set the COLLECT_NAMES environment variable, the problems
16784 # vanish in a puff of smoke.
16785 if test "X${COLLECT_NAMES+set}" != Xset; then
16786 COLLECT_NAMES=
16787 export COLLECT_NAMES
16788 fi
16789 _LT_EOF
16790 ;;
16791 esac
16792
16793
16794 ltmain="$ac_aux_dir/ltmain.sh"
16795
16796
16797 # We use sed instead of cat because bash on DJGPP gets confused if
16798 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16799 # text mode, it properly converts lines to CR/LF. This bash problem
16800 # is reportedly fixed, but why not run on old versions too?
16801 sed '$q' "$ltmain" >> "$cfgfile" \
16802 || (rm -f "$cfgfile"; exit 1)
16803
16804 if test x"$xsi_shell" = xyes; then
16805 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16806 func_dirname ()\
16807 {\
16808 \ case ${1} in\
16809 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16810 \ * ) func_dirname_result="${3}" ;;\
16811 \ esac\
16812 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16813 && mv -f "$cfgfile.tmp" "$cfgfile" \
16814 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16815 test 0 -eq $? || _lt_function_replace_fail=:
16816
16817
16818 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16819 func_basename ()\
16820 {\
16821 \ func_basename_result="${1##*/}"\
16822 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16823 && mv -f "$cfgfile.tmp" "$cfgfile" \
16824 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16825 test 0 -eq $? || _lt_function_replace_fail=:
16826
16827
16828 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16829 func_dirname_and_basename ()\
16830 {\
16831 \ case ${1} in\
16832 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16833 \ * ) func_dirname_result="${3}" ;;\
16834 \ esac\
16835 \ func_basename_result="${1##*/}"\
16836 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16837 && mv -f "$cfgfile.tmp" "$cfgfile" \
16838 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16839 test 0 -eq $? || _lt_function_replace_fail=:
16840
16841
16842 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16843 func_stripname ()\
16844 {\
16845 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16846 \ # positional parameters, so assign one to ordinary parameter first.\
16847 \ func_stripname_result=${3}\
16848 \ func_stripname_result=${func_stripname_result#"${1}"}\
16849 \ func_stripname_result=${func_stripname_result%"${2}"}\
16850 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16851 && mv -f "$cfgfile.tmp" "$cfgfile" \
16852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16853 test 0 -eq $? || _lt_function_replace_fail=:
16854
16855
16856 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16857 func_split_long_opt ()\
16858 {\
16859 \ func_split_long_opt_name=${1%%=*}\
16860 \ func_split_long_opt_arg=${1#*=}\
16861 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16862 && mv -f "$cfgfile.tmp" "$cfgfile" \
16863 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16864 test 0 -eq $? || _lt_function_replace_fail=:
16865
16866
16867 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16868 func_split_short_opt ()\
16869 {\
16870 \ func_split_short_opt_arg=${1#??}\
16871 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16872 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16873 && mv -f "$cfgfile.tmp" "$cfgfile" \
16874 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16875 test 0 -eq $? || _lt_function_replace_fail=:
16876
16877
16878 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16879 func_lo2o ()\
16880 {\
16881 \ case ${1} in\
16882 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16883 \ *) func_lo2o_result=${1} ;;\
16884 \ esac\
16885 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16886 && mv -f "$cfgfile.tmp" "$cfgfile" \
16887 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16888 test 0 -eq $? || _lt_function_replace_fail=:
16889
16890
16891 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16892 func_xform ()\
16893 {\
16894 func_xform_result=${1%.*}.lo\
16895 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16896 && mv -f "$cfgfile.tmp" "$cfgfile" \
16897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16898 test 0 -eq $? || _lt_function_replace_fail=:
16899
16900
16901 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16902 func_arith ()\
16903 {\
16904 func_arith_result=$(( $* ))\
16905 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16906 && mv -f "$cfgfile.tmp" "$cfgfile" \
16907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16908 test 0 -eq $? || _lt_function_replace_fail=:
16909
16910
16911 sed -e '/^func_len ()$/,/^} # func_len /c\
16912 func_len ()\
16913 {\
16914 func_len_result=${#1}\
16915 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16916 && mv -f "$cfgfile.tmp" "$cfgfile" \
16917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16918 test 0 -eq $? || _lt_function_replace_fail=:
16919
16920 fi
16921
16922 if test x"$lt_shell_append" = xyes; then
16923 sed -e '/^func_append ()$/,/^} # func_append /c\
16924 func_append ()\
16925 {\
16926 eval "${1}+=\\${2}"\
16927 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16928 && mv -f "$cfgfile.tmp" "$cfgfile" \
16929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16930 test 0 -eq $? || _lt_function_replace_fail=:
16931
16932
16933 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16934 func_append_quoted ()\
16935 {\
16936 \ func_quote_for_eval "${2}"\
16937 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16938 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16939 && mv -f "$cfgfile.tmp" "$cfgfile" \
16940 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16941 test 0 -eq $? || _lt_function_replace_fail=:
16942
16943
16944 # Save a `func_append' function call where possible by direct use of '+='
16945 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16946 && mv -f "$cfgfile.tmp" "$cfgfile" \
16947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16948 test 0 -eq $? || _lt_function_replace_fail=:
16949 else
16950 # Save a `func_append' function call even when '+=' is not available
16951 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16952 && mv -f "$cfgfile.tmp" "$cfgfile" \
16953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16954 test 0 -eq $? || _lt_function_replace_fail=:
16955 fi
16956
16957 if test x"$_lt_function_replace_fail" = x":"; then
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16959 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16960 fi
16961
16962
16963 mv -f "$cfgfile" "$ofile" ||
16964 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16965 chmod +x "$ofile"
16966
16967 ;;
16968
16969 esac
16970 done # for ac_tag
16971
16972
16973 as_fn_exit 0
16974 _ACEOF
16975 ac_clean_files=$ac_clean_files_save
16976
16977 test $ac_write_fail = 0 ||
16978 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16979
16980
16981 # configure is writing to config.log, and then calls config.status.
16982 # config.status does its own redirection, appending to config.log.
16983 # Unfortunately, on DOS this fails, as config.log is still kept open
16984 # by configure, so config.status won't be able to write to it; its
16985 # output is simply discarded. So we exec the FD to /dev/null,
16986 # effectively closing config.log, so it can be properly (re)opened and
16987 # appended to by config.status. When coming back to configure, we
16988 # need to make the FD available again.
16989 if test "$no_create" != yes; then
16990 ac_cs_success=:
16991 ac_config_status_args=
16992 test "$silent" = yes &&
16993 ac_config_status_args="$ac_config_status_args --quiet"
16994 exec 5>/dev/null
16995 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16996 exec 5>>config.log
16997 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16998 # would make configure fail if this is the last instruction.
16999 $ac_cs_success || as_fn_exit 1
17000 fi
17001 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17003 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17004 fi
17005
17006