configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for file 5.14.
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 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: christos (at] astron.com about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560
561 # Check that we are running under the correct shell.
562 SHELL=${CONFIG_SHELL-/bin/sh}
563
564 case X$lt_ECHO in
565 X*--fallback-echo)
566 # Remove one level of quotation (which was required for Make).
567 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
568 ;;
569 esac
570
571 ECHO=${lt_ECHO-echo}
572 if test "X$1" = X--no-reexec; then
573 # Discard the --no-reexec flag, and continue.
574 shift
575 elif test "X$1" = X--fallback-echo; then
576 # Avoid inline document here, it may be left over
577 :
578 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
579 # Yippee, $ECHO works!
580 :
581 else
582 # Restart under the correct shell.
583 exec $SHELL "$0" --no-reexec ${1+"$@"}
584 fi
585
586 if test "X$1" = X--fallback-echo; then
587 # used as fallback echo
588 shift
589 cat <<_LT_EOF
590 $*
591 _LT_EOF
592 exit 0
593 fi
594
595 # The HP-UX ksh and POSIX shell print the target directory to stdout
596 # if CDPATH is set.
597 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
598
599 if test -z "$lt_ECHO"; then
600 if test "X${echo_test_string+set}" != Xset; then
601 # find a string as large as possible, as long as the shell can cope with it
602 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
603 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
604 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
605 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
606 then
607 break
608 fi
609 done
610 fi
611
612 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
613 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
614 test "X$echo_testing_string" = "X$echo_test_string"; then
615 :
616 else
617 # The Solaris, AIX, and Digital Unix default echo programs unquote
618 # backslashes. This makes it impossible to quote backslashes using
619 # echo "$something" | sed 's/\\/\\\\/g'
620 #
621 # So, first we look for a working echo in the user's PATH.
622
623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
624 for dir in $PATH /usr/ucb; do
625 IFS="$lt_save_ifs"
626 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
627 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 ECHO="$dir/echo"
631 break
632 fi
633 done
634 IFS="$lt_save_ifs"
635
636 if test "X$ECHO" = Xecho; then
637 # We didn't find a better echo, so look for alternatives.
638 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
639 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 # This shell has a builtin print -r that does the trick.
642 ECHO='print -r'
643 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
644 test "X$CONFIG_SHELL" != X/bin/ksh; then
645 # If we have ksh, try running configure again with it.
646 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
647 export ORIGINAL_CONFIG_SHELL
648 CONFIG_SHELL=/bin/ksh
649 export CONFIG_SHELL
650 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
651 else
652 # Try using printf.
653 ECHO='printf %s\n'
654 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # Cool, printf works
658 :
659 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
660 test "X$echo_testing_string" = 'X\t' &&
661 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
662 test "X$echo_testing_string" = "X$echo_test_string"; then
663 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
664 export CONFIG_SHELL
665 SHELL="$CONFIG_SHELL"
666 export SHELL
667 ECHO="$CONFIG_SHELL $0 --fallback-echo"
668 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
669 test "X$echo_testing_string" = 'X\t' &&
670 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
671 test "X$echo_testing_string" = "X$echo_test_string"; then
672 ECHO="$CONFIG_SHELL $0 --fallback-echo"
673 else
674 # maybe with a smaller string...
675 prev=:
676
677 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
678 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
679 then
680 break
681 fi
682 prev="$cmd"
683 done
684
685 if test "$prev" != 'sed 50q "$0"'; then
686 echo_test_string=`eval $prev`
687 export echo_test_string
688 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
689 else
690 # Oops. We lost completely, so just stick with echo.
691 ECHO=echo
692 fi
693 fi
694 fi
695 fi
696 fi
697 fi
698
699 # Copy echo and quote the copy suitably for passing to libtool from
700 # the Makefile, instead of quoting the original, which is used later.
701 lt_ECHO=$ECHO
702 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
703 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 fi
705
706
707
708
709 test -n "$DJDIR" || exec 7<&0 </dev/null
710 exec 6>&1
711
712 # Name of the host.
713 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
714 # so uname gets run too.
715 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
717 #
718 # Initializations.
719 #
720 ac_default_prefix=/usr/local
721 ac_clean_files=
722 ac_config_libobj_dir=.
723 LIBOBJS=
724 cross_compiling=no
725 subdirs=
726 MFLAGS=
727 MAKEFLAGS=
728
729 # Identity of this package.
730 PACKAGE_NAME='file'
731 PACKAGE_TARNAME='file'
732 PACKAGE_VERSION='5.14'
733 PACKAGE_STRING='file 5.14'
734 PACKAGE_BUGREPORT='christos (at] astron.com'
735 PACKAGE_URL=''
736
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 # include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 # include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_header_list=
774 ac_subst_vars='am__EXEEXT_FALSE
775 am__EXEEXT_TRUE
776 LTLIBOBJS
777 IS_CROSS_COMPILE_FALSE
778 IS_CROSS_COMPILE_TRUE
779 LIBOBJS
780 HAVE_VISIBILITY
781 CFLAG_VISIBILITY
782 OTOOL64
783 OTOOL
784 LIPO
785 NMEDIT
786 DSYMUTIL
787 lt_ECHO
788 RANLIB
789 AR
790 OBJDUMP
791 NM
792 ac_ct_DUMPBIN
793 DUMPBIN
794 LD
795 FGREP
796 SED
797 LIBTOOL
798 LN_S
799 EGREP
800 GREP
801 CPP
802 am__fastdepCC_FALSE
803 am__fastdepCC_TRUE
804 CCDEPMODE
805 am__nodep
806 AMDEPBACKSLASH
807 AMDEP_FALSE
808 AMDEP_TRUE
809 am__quote
810 am__include
811 DEPDIR
812 OBJEXT
813 EXEEXT
814 ac_ct_CC
815 CPPFLAGS
816 LDFLAGS
817 CFLAGS
818 CC
819 WARNINGS
820 FSECT5_FALSE
821 FSECT5_TRUE
822 fsect
823 pkgdatadir
824 MINGW_FALSE
825 MINGW_TRUE
826 MINGW
827 host_os
828 host_vendor
829 host_cpu
830 host
831 build_os
832 build_vendor
833 build_cpu
834 build
835 AM_BACKSLASH
836 AM_DEFAULT_VERBOSITY
837 AM_DEFAULT_V
838 AM_V
839 am__untar
840 am__tar
841 AMTAR
842 am__leading_dot
843 SET_MAKE
844 AWK
845 mkdir_p
846 MKDIR_P
847 INSTALL_STRIP_PROGRAM
848 STRIP
849 install_sh
850 MAKEINFO
851 AUTOHEADER
852 AUTOMAKE
853 AUTOCONF
854 ACLOCAL
855 VERSION
856 PACKAGE
857 CYGPATH_W
858 am__isrc
859 INSTALL_DATA
860 INSTALL_SCRIPT
861 INSTALL_PROGRAM
862 target_alias
863 host_alias
864 build_alias
865 LIBS
866 ECHO_T
867 ECHO_N
868 ECHO_C
869 DEFS
870 mandir
871 localedir
872 libdir
873 psdir
874 pdfdir
875 dvidir
876 htmldir
877 infodir
878 docdir
879 oldincludedir
880 includedir
881 localstatedir
882 sharedstatedir
883 sysconfdir
884 datadir
885 datarootdir
886 libexecdir
887 sbindir
888 bindir
889 program_transform_name
890 prefix
891 exec_prefix
892 PACKAGE_URL
893 PACKAGE_BUGREPORT
894 PACKAGE_STRING
895 PACKAGE_VERSION
896 PACKAGE_TARNAME
897 PACKAGE_NAME
898 PATH_SEPARATOR
899 SHELL'
900 ac_subst_files=''
901 ac_user_opts='
902 enable_option_checking
903 enable_silent_rules
904 enable_elf
905 enable_elf_core
906 enable_fsect_man5
907 enable_dependency_tracking
908 enable_static
909 with_pic
910 enable_shared
911 enable_fast_install
912 with_gnu_ld
913 enable_libtool_lock
914 enable_largefile
915 enable_warnings
916 '
917 ac_precious_vars='build_alias
918 host_alias
919 target_alias
920 CC
921 CFLAGS
922 LDFLAGS
923 LIBS
924 CPPFLAGS
925 CPP'
926
927
928 # Initialize some variables set by options.
929 ac_init_help=
930 ac_init_version=false
931 ac_unrecognized_opts=
932 ac_unrecognized_sep=
933 # The variables have the same names as the options, with
934 # dashes changed to underlines.
935 cache_file=/dev/null
936 exec_prefix=NONE
937 no_create=
938 no_recursion=
939 prefix=NONE
940 program_prefix=NONE
941 program_suffix=NONE
942 program_transform_name=s,x,x,
943 silent=
944 site=
945 srcdir=
946 verbose=
947 x_includes=NONE
948 x_libraries=NONE
949
950 # Installation directory options.
951 # These are left unexpanded so users can "make install exec_prefix=/foo"
952 # and all the variables that are supposed to be based on exec_prefix
953 # by default will actually change.
954 # Use braces instead of parens because sh, perl, etc. also accept them.
955 # (The list follows the same order as the GNU Coding Standards.)
956 bindir='${exec_prefix}/bin'
957 sbindir='${exec_prefix}/sbin'
958 libexecdir='${exec_prefix}/libexec'
959 datarootdir='${prefix}/share'
960 datadir='${datarootdir}'
961 sysconfdir='${prefix}/etc'
962 sharedstatedir='${prefix}/com'
963 localstatedir='${prefix}/var'
964 includedir='${prefix}/include'
965 oldincludedir='/usr/include'
966 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967 infodir='${datarootdir}/info'
968 htmldir='${docdir}'
969 dvidir='${docdir}'
970 pdfdir='${docdir}'
971 psdir='${docdir}'
972 libdir='${exec_prefix}/lib'
973 localedir='${datarootdir}/locale'
974 mandir='${datarootdir}/man'
975
976 ac_prev=
977 ac_dashdash=
978 for ac_option
979 do
980 # If the previous option needs an argument, assign it.
981 if test -n "$ac_prev"; then
982 eval $ac_prev=\$ac_option
983 ac_prev=
984 continue
985 fi
986
987 case $ac_option in
988 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989 *=) ac_optarg= ;;
990 *) ac_optarg=yes ;;
991 esac
992
993 # Accept the important Cygnus configure options, so we can diagnose typos.
994
995 case $ac_dashdash$ac_option in
996 --)
997 ac_dashdash=yes ;;
998
999 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1000 ac_prev=bindir ;;
1001 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1002 bindir=$ac_optarg ;;
1003
1004 -build | --build | --buil | --bui | --bu)
1005 ac_prev=build_alias ;;
1006 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1007 build_alias=$ac_optarg ;;
1008
1009 -cache-file | --cache-file | --cache-fil | --cache-fi \
1010 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1011 ac_prev=cache_file ;;
1012 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1013 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1014 cache_file=$ac_optarg ;;
1015
1016 --config-cache | -C)
1017 cache_file=config.cache ;;
1018
1019 -datadir | --datadir | --datadi | --datad)
1020 ac_prev=datadir ;;
1021 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1022 datadir=$ac_optarg ;;
1023
1024 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1025 | --dataroo | --dataro | --datar)
1026 ac_prev=datarootdir ;;
1027 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1028 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1029 datarootdir=$ac_optarg ;;
1030
1031 -disable-* | --disable-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error $? "invalid feature name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1039 *"
1040 "enable_$ac_useropt"
1041 "*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval enable_$ac_useropt=no ;;
1046
1047 -docdir | --docdir | --docdi | --doc | --do)
1048 ac_prev=docdir ;;
1049 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1050 docdir=$ac_optarg ;;
1051
1052 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1053 ac_prev=dvidir ;;
1054 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1055 dvidir=$ac_optarg ;;
1056
1057 -enable-* | --enable-*)
1058 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 as_fn_error $? "invalid feature name: $ac_useropt"
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1065 *"
1066 "enable_$ac_useropt"
1067 "*) ;;
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1070 esac
1071 eval enable_$ac_useropt=\$ac_optarg ;;
1072
1073 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075 | --exec | --exe | --ex)
1076 ac_prev=exec_prefix ;;
1077 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079 | --exec=* | --exe=* | --ex=*)
1080 exec_prefix=$ac_optarg ;;
1081
1082 -gas | --gas | --ga | --g)
1083 # Obsolete; use --with-gas.
1084 with_gas=yes ;;
1085
1086 -help | --help | --hel | --he | -h)
1087 ac_init_help=long ;;
1088 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089 ac_init_help=recursive ;;
1090 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091 ac_init_help=short ;;
1092
1093 -host | --host | --hos | --ho)
1094 ac_prev=host_alias ;;
1095 -host=* | --host=* | --hos=* | --ho=*)
1096 host_alias=$ac_optarg ;;
1097
1098 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099 ac_prev=htmldir ;;
1100 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101 | --ht=*)
1102 htmldir=$ac_optarg ;;
1103
1104 -includedir | --includedir | --includedi | --included | --include \
1105 | --includ | --inclu | --incl | --inc)
1106 ac_prev=includedir ;;
1107 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108 | --includ=* | --inclu=* | --incl=* | --inc=*)
1109 includedir=$ac_optarg ;;
1110
1111 -infodir | --infodir | --infodi | --infod | --info | --inf)
1112 ac_prev=infodir ;;
1113 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114 infodir=$ac_optarg ;;
1115
1116 -libdir | --libdir | --libdi | --libd)
1117 ac_prev=libdir ;;
1118 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119 libdir=$ac_optarg ;;
1120
1121 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122 | --libexe | --libex | --libe)
1123 ac_prev=libexecdir ;;
1124 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125 | --libexe=* | --libex=* | --libe=*)
1126 libexecdir=$ac_optarg ;;
1127
1128 -localedir | --localedir | --localedi | --localed | --locale)
1129 ac_prev=localedir ;;
1130 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131 localedir=$ac_optarg ;;
1132
1133 -localstatedir | --localstatedir | --localstatedi | --localstated \
1134 | --localstate | --localstat | --localsta | --localst | --locals)
1135 ac_prev=localstatedir ;;
1136 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138 localstatedir=$ac_optarg ;;
1139
1140 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141 ac_prev=mandir ;;
1142 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143 mandir=$ac_optarg ;;
1144
1145 -nfp | --nfp | --nf)
1146 # Obsolete; use --without-fp.
1147 with_fp=no ;;
1148
1149 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150 | --no-cr | --no-c | -n)
1151 no_create=yes ;;
1152
1153 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155 no_recursion=yes ;;
1156
1157 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159 | --oldin | --oldi | --old | --ol | --o)
1160 ac_prev=oldincludedir ;;
1161 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164 oldincludedir=$ac_optarg ;;
1165
1166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167 ac_prev=prefix ;;
1168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169 prefix=$ac_optarg ;;
1170
1171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172 | --program-pre | --program-pr | --program-p)
1173 ac_prev=program_prefix ;;
1174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176 program_prefix=$ac_optarg ;;
1177
1178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179 | --program-suf | --program-su | --program-s)
1180 ac_prev=program_suffix ;;
1181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183 program_suffix=$ac_optarg ;;
1184
1185 -program-transform-name | --program-transform-name \
1186 | --program-transform-nam | --program-transform-na \
1187 | --program-transform-n | --program-transform- \
1188 | --program-transform | --program-transfor \
1189 | --program-transfo | --program-transf \
1190 | --program-trans | --program-tran \
1191 | --progr-tra | --program-tr | --program-t)
1192 ac_prev=program_transform_name ;;
1193 -program-transform-name=* | --program-transform-name=* \
1194 | --program-transform-nam=* | --program-transform-na=* \
1195 | --program-transform-n=* | --program-transform-=* \
1196 | --program-transform=* | --program-transfor=* \
1197 | --program-transfo=* | --program-transf=* \
1198 | --program-trans=* | --program-tran=* \
1199 | --progr-tra=* | --program-tr=* | --program-t=*)
1200 program_transform_name=$ac_optarg ;;
1201
1202 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203 ac_prev=pdfdir ;;
1204 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205 pdfdir=$ac_optarg ;;
1206
1207 -psdir | --psdir | --psdi | --psd | --ps)
1208 ac_prev=psdir ;;
1209 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210 psdir=$ac_optarg ;;
1211
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 silent=yes ;;
1215
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217 ac_prev=sbindir ;;
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219 | --sbi=* | --sb=*)
1220 sbindir=$ac_optarg ;;
1221
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1225 | --sha | --sh)
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230 | --sha=* | --sh=*)
1231 sharedstatedir=$ac_optarg ;;
1232
1233 -site | --site | --sit)
1234 ac_prev=site ;;
1235 -site=* | --site=* | --sit=*)
1236 site=$ac_optarg ;;
1237
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239 ac_prev=srcdir ;;
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1242
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1249
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1254
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 verbose=yes ;;
1257
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1260
1261 -with-* | --with-*)
1262 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265 as_fn_error $? "invalid package name: $ac_useropt"
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1269 *"
1270 "with_$ac_useropt"
1271 "*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=\$ac_optarg ;;
1276
1277 -without-* | --without-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error $? "invalid package name: $ac_useropt"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1285 *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=no ;;
1292
1293 --x)
1294 # Obsolete; use --with-x.
1295 with_x=yes ;;
1296
1297 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298 | --x-incl | --x-inc | --x-in | --x-i)
1299 ac_prev=x_includes ;;
1300 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302 x_includes=$ac_optarg ;;
1303
1304 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306 ac_prev=x_libraries ;;
1307 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309 x_libraries=$ac_optarg ;;
1310
1311 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1312 Try \`$0 --help' for more information"
1313 ;;
1314
1315 *=*)
1316 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
1318 case $ac_envvar in #(
1319 '' | [0-9]* | *[!_$as_cr_alnum]* )
1320 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1321 esac
1322 eval $ac_envvar=\$ac_optarg
1323 export $ac_envvar ;;
1324
1325 *)
1326 # FIXME: should be removed in autoconf 3.0.
1327 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1331 ;;
1332
1333 esac
1334 done
1335
1336 if test -n "$ac_prev"; then
1337 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338 as_fn_error $? "missing argument to $ac_option"
1339 fi
1340
1341 if test -n "$ac_unrecognized_opts"; then
1342 case $enable_option_checking in
1343 no) ;;
1344 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1345 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346 esac
1347 fi
1348
1349 # Check all directory arguments for consistency.
1350 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir
1354 do
1355 eval ac_val=\$$ac_var
1356 # Remove trailing slashes.
1357 case $ac_val in
1358 */ )
1359 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360 eval $ac_var=\$ac_val;;
1361 esac
1362 # Be sure to have absolute directory names.
1363 case $ac_val in
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366 esac
1367 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1368 done
1369
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1376
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 elif test "x$build_alias" != "x$host_alias"; then
1382 cross_compiling=yes
1383 fi
1384 fi
1385
1386 ac_tool_prefix=
1387 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1388
1389 test "$silent" = yes && exec 6>/dev/null
1390
1391
1392 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1393 ac_ls_di=`ls -di .` &&
1394 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1395 as_fn_error $? "working directory cannot be determined"
1396 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1397 as_fn_error $? "pwd does not report name of working directory"
1398
1399
1400 # Find the source files, if location was not specified.
1401 if test -z "$srcdir"; then
1402 ac_srcdir_defaulted=yes
1403 # Try the directory containing this script, then the parent directory.
1404 ac_confdir=`$as_dirname -- "$as_myself" ||
1405 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406 X"$as_myself" : 'X\(//\)[^/]' \| \
1407 X"$as_myself" : 'X\(//\)$' \| \
1408 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1409 $as_echo X"$as_myself" |
1410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)[^/].*/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)$/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\).*/{
1423 s//\1/
1424 q
1425 }
1426 s/.*/./; q'`
1427 srcdir=$ac_confdir
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 srcdir=..
1430 fi
1431 else
1432 ac_srcdir_defaulted=no
1433 fi
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1435 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1436 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1437 fi
1438 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439 ac_abs_confdir=`(
1440 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1441 pwd)`
1442 # When building in place, set srcdir=.
1443 if test "$ac_abs_confdir" = "$ac_pwd"; then
1444 srcdir=.
1445 fi
1446 # Remove unnecessary trailing slashes from srcdir.
1447 # Double slashes in file names in object file debugging info
1448 # mess up M-x gdb in Emacs.
1449 case $srcdir in
1450 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451 esac
1452 for ac_var in $ac_precious_vars; do
1453 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_${ac_var}_value=\$${ac_var}
1455 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457 done
1458
1459 #
1460 # Report the --help message.
1461 #
1462 if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
1465 cat <<_ACEOF
1466 \`configure' configures file 5.14 to adapt to many kinds of systems.
1467
1468 Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471 VAR=VALUE. See below for descriptions of some of the useful variables.
1472
1473 Defaults for the options are specified in brackets.
1474
1475 Configuration:
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
1480 -q, --quiet, --silent do not print \`checking ...' messages
1481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485
1486 Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
1488 [$ac_default_prefix]
1489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1490 [PREFIX]
1491
1492 By default, \`make install' will install all the files in
1493 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495 for instance \`--prefix=\$HOME'.
1496
1497 For better control, use the options below.
1498
1499 Fine tuning of the installation directories:
1500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
1503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1506 --libdir=DIR object code libraries [EPREFIX/lib]
1507 --includedir=DIR C header files [PREFIX/include]
1508 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1509 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1510 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1511 --infodir=DIR info documentation [DATAROOTDIR/info]
1512 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1513 --mandir=DIR man documentation [DATAROOTDIR/man]
1514 --docdir=DIR documentation root [DATAROOTDIR/doc/file]
1515 --htmldir=DIR html documentation [DOCDIR]
1516 --dvidir=DIR dvi documentation [DOCDIR]
1517 --pdfdir=DIR pdf documentation [DOCDIR]
1518 --psdir=DIR ps documentation [DOCDIR]
1519 _ACEOF
1520
1521 cat <<\_ACEOF
1522
1523 Program names:
1524 --program-prefix=PREFIX prepend PREFIX to installed program names
1525 --program-suffix=SUFFIX append SUFFIX to installed program names
1526 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1527
1528 System types:
1529 --build=BUILD configure for building on BUILD [guessed]
1530 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1531 _ACEOF
1532 fi
1533
1534 if test -n "$ac_init_help"; then
1535 case $ac_init_help in
1536 short | recursive ) echo "Configuration of file 5.14:";;
1537 esac
1538 cat <<\_ACEOF
1539
1540 Optional Features:
1541 --disable-option-checking ignore unrecognized --enable/--with options
1542 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1543 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1544 --enable-silent-rules less verbose build output (undo: "make V=1")
1545 --disable-silent-rules verbose build output (undo: "make V=0")
1546 --disable-elf disable builtin ELF support
1547 --disable-elf-core disable ELF core file support
1548 --enable-fsect-man5 enable file formats in man section 5
1549 --enable-dependency-tracking
1550 do not reject slow dependency extractors
1551 --disable-dependency-tracking
1552 speeds up one-time build
1553 --enable-static[=PKGS] build static libraries [default=no]
1554 --enable-shared[=PKGS] build shared libraries [default=yes]
1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation [default=yes]
1557 --disable-libtool-lock avoid locking (might break parallel builds)
1558 --disable-largefile omit support for large files
1559 --disable-warnings disable compiler warnings
1560
1561 Optional Packages:
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1564 --with-pic try to use only PIC/non-PIC objects [default=use
1565 both]
1566 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1567
1568 Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
1576 CPP C preprocessor
1577
1578 Use these variables to override the choices made by `configure' or to help
1579 it to find libraries and programs with nonstandard names/locations.
1580
1581 Report bugs to <christos@astron.com>.
1582 _ACEOF
1583 ac_status=$?
1584 fi
1585
1586 if test "$ac_init_help" = "recursive"; then
1587 # If there are subdirs, report their specific --help.
1588 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1589 test -d "$ac_dir" ||
1590 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1591 continue
1592 ac_builddir=.
1593
1594 case "$ac_dir" in
1595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *)
1597 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1598 # A ".." for each directory in $ac_dir_suffix.
1599 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1600 case $ac_top_builddir_sub in
1601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603 esac ;;
1604 esac
1605 ac_abs_top_builddir=$ac_pwd
1606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1607 # for backward compatibility:
1608 ac_top_builddir=$ac_top_build_prefix
1609
1610 case $srcdir in
1611 .) # We are building in place.
1612 ac_srcdir=.
1613 ac_top_srcdir=$ac_top_builddir_sub
1614 ac_abs_top_srcdir=$ac_pwd ;;
1615 [\\/]* | ?:[\\/]* ) # Absolute name.
1616 ac_srcdir=$srcdir$ac_dir_suffix;
1617 ac_top_srcdir=$srcdir
1618 ac_abs_top_srcdir=$srcdir ;;
1619 *) # Relative name.
1620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621 ac_top_srcdir=$ac_top_build_prefix$srcdir
1622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623 esac
1624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625
1626 cd "$ac_dir" || { ac_status=$?; continue; }
1627 # Check for guested configure.
1628 if test -f "$ac_srcdir/configure.gnu"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631 elif test -f "$ac_srcdir/configure"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure" --help=recursive
1634 else
1635 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636 fi || ac_status=$?
1637 cd "$ac_pwd" || { ac_status=$?; break; }
1638 done
1639 fi
1640
1641 test -n "$ac_init_help" && exit $ac_status
1642 if $ac_init_version; then
1643 cat <<\_ACEOF
1644 file configure 5.14
1645 generated by GNU Autoconf 2.69
1646
1647 Copyright (C) 2012 Free Software Foundation, Inc.
1648 This configure script is free software; the Free Software Foundation
1649 gives unlimited permission to copy, distribute and modify it.
1650 _ACEOF
1651 exit
1652 fi
1653
1654 ## ------------------------ ##
1655 ## Autoconf initialization. ##
1656 ## ------------------------ ##
1657
1658 # ac_fn_c_try_compile LINENO
1659 # --------------------------
1660 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_compile ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext
1665 if { { ac_try="$ac_compile"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_compile") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest.$ac_objext; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_compile
1695
1696 # ac_fn_c_try_cpp LINENO
1697 # ----------------------
1698 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_cpp ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_cpp conftest.$ac_ext"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } > conftest.i && {
1718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 }; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=1
1727 fi
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_cpp
1732
1733 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1736 # the include files in INCLUDES and setting the cache variable VAR
1737 # accordingly.
1738 ac_fn_c_check_header_mongrel ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if eval \${$3+:} false; then :
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745 $as_echo_n "(cached) " >&6
1746 fi
1747 eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750 else
1751 # Is the header compilable?
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1753 $as_echo_n "checking $2 usability... " >&6; }
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 $4
1757 #include <$2>
1758 _ACEOF
1759 if ac_fn_c_try_compile "$LINENO"; then :
1760 ac_header_compiler=yes
1761 else
1762 ac_header_compiler=no
1763 fi
1764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1766 $as_echo "$ac_header_compiler" >&6; }
1767
1768 # Is the header present?
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1770 $as_echo_n "checking $2 presence... " >&6; }
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1773 #include <$2>
1774 _ACEOF
1775 if ac_fn_c_try_cpp "$LINENO"; then :
1776 ac_header_preproc=yes
1777 else
1778 ac_header_preproc=no
1779 fi
1780 rm -f conftest.err conftest.i conftest.$ac_ext
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1782 $as_echo "$ac_header_preproc" >&6; }
1783
1784 # So? What about this header?
1785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1786 yes:no: )
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1788 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1790 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1791 ;;
1792 no:yes:* )
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1794 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1796 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1798 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1800 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1802 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1803 ( $as_echo "## ---------------------------------- ##
1804 ## Report this to christos (at] astron.com ##
1805 ## ---------------------------------- ##"
1806 ) | sed "s/^/$as_me: WARNING: /" >&2
1807 ;;
1808 esac
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812 $as_echo_n "(cached) " >&6
1813 else
1814 eval "$3=\$ac_header_compiler"
1815 fi
1816 eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 fi
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_header_mongrel
1823
1824 # ac_fn_c_try_run LINENO
1825 # ----------------------
1826 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1827 # that executables *can* be run.
1828 ac_fn_c_try_run ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { { ac_try="$ac_link"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_link") 2>&5
1839 ac_status=$?
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1842 { { case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_try") 2>&5
1849 ac_status=$?
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; }; }; then :
1852 ac_retval=0
1853 else
1854 $as_echo "$as_me: program exited with status $ac_status" >&5
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1857
1858 ac_retval=$ac_status
1859 fi
1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 as_fn_set_status $ac_retval
1863
1864 } # ac_fn_c_try_run
1865
1866 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1867 # -------------------------------------------------------
1868 # Tests whether HEADER exists and can be compiled using the include files in
1869 # INCLUDES, setting the cache variable VAR accordingly.
1870 ac_fn_c_check_header_compile ()
1871 {
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876 $as_echo_n "(cached) " >&6
1877 else
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1880 $4
1881 #include <$2>
1882 _ACEOF
1883 if ac_fn_c_try_compile "$LINENO"; then :
1884 eval "$3=yes"
1885 else
1886 eval "$3=no"
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 fi
1890 eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895 } # ac_fn_c_check_header_compile
1896
1897 # ac_fn_c_try_link LINENO
1898 # -----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_c_try_link ()
1901 {
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 rm -f conftest.$ac_objext conftest$ac_exeext
1904 if { { ac_try="$ac_link"
1905 case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>conftest.err
1912 ac_status=$?
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1917 fi
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_c_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest$ac_exeext && {
1923 test "$cross_compiling" = yes ||
1924 test -x conftest$ac_exeext
1925 }; then :
1926 ac_retval=0
1927 else
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931 ac_retval=1
1932 fi
1933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1935 # interfere with the next link command; also delete a directory that is
1936 # left behind by Apple's compiler. We do this before executing the actions.
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1940
1941 } # ac_fn_c_try_link
1942
1943 # ac_fn_c_check_func LINENO FUNC VAR
1944 # ----------------------------------
1945 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1946 ac_fn_c_check_func ()
1947 {
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1953 else
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1958 #define $2 innocuous_$2
1959
1960 /* System header to define __stub macros and hopefully few prototypes,
1961 which can conflict with char $2 (); below.
1962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1963 <limits.h> exists even on freestanding compilers. */
1964
1965 #ifdef __STDC__
1966 # include <limits.h>
1967 #else
1968 # include <assert.h>
1969 #endif
1970
1971 #undef $2
1972
1973 /* Override any GCC internal prototype to avoid an error.
1974 Use char because int might match the return type of a GCC
1975 builtin and then its argument prototype would still apply. */
1976 #ifdef __cplusplus
1977 extern "C"
1978 #endif
1979 char $2 ();
1980 /* The GNU C library defines this for functions which it implements
1981 to always fail with ENOSYS. Some functions are actually named
1982 something starting with __ and the normal name is an alias. */
1983 #if defined __stub_$2 || defined __stub___$2
1984 choke me
1985 #endif
1986
1987 int
1988 main ()
1989 {
1990 return $2 ();
1991 ;
1992 return 0;
1993 }
1994 _ACEOF
1995 if ac_fn_c_try_link "$LINENO"; then :
1996 eval "$3=yes"
1997 else
1998 eval "$3=no"
1999 fi
2000 rm -f core conftest.err conftest.$ac_objext \
2001 conftest$ac_exeext conftest.$ac_ext
2002 fi
2003 eval ac_res=\$$3
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005 $as_echo "$ac_res" >&6; }
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007
2008 } # ac_fn_c_check_func
2009
2010 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2011 # -------------------------------------------
2012 # Tests whether TYPE exists after having included INCLUDES, setting cache
2013 # variable VAR accordingly.
2014 ac_fn_c_check_type ()
2015 {
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if eval \${$3+:} false; then :
2020 $as_echo_n "(cached) " >&6
2021 else
2022 eval "$3=no"
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 int
2027 main ()
2028 {
2029 if (sizeof ($2))
2030 return 0;
2031 ;
2032 return 0;
2033 }
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2038 $4
2039 int
2040 main ()
2041 {
2042 if (sizeof (($2)))
2043 return 0;
2044 ;
2045 return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049
2050 else
2051 eval "$3=yes"
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 fi
2057 eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061
2062 } # ac_fn_c_check_type
2063
2064 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2065 # ----------------------------------------------------
2066 # Tries to find if the field MEMBER exists in type AGGR, after including
2067 # INCLUDES, setting cache variable VAR accordingly.
2068 ac_fn_c_check_member ()
2069 {
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2072 $as_echo_n "checking for $2.$3... " >&6; }
2073 if eval \${$4+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 $5
2079 int
2080 main ()
2081 {
2082 static $2 ac_aggr;
2083 if (ac_aggr.$3)
2084 return 0;
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 eval "$4=yes"
2091 else
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2094 $5
2095 int
2096 main ()
2097 {
2098 static $2 ac_aggr;
2099 if (sizeof ac_aggr.$3)
2100 return 0;
2101 ;
2102 return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 eval "$4=yes"
2107 else
2108 eval "$4=no"
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 eval ac_res=\$$4
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118
2119 } # ac_fn_c_check_member
2120
2121 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2122 # ---------------------------------------------
2123 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2124 # accordingly.
2125 ac_fn_c_check_decl ()
2126 {
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 as_decl_name=`echo $2|sed 's/ *(.*//'`
2129 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2131 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2132 if eval \${$3+:} false; then :
2133 $as_echo_n "(cached) " >&6
2134 else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 $4
2138 int
2139 main ()
2140 {
2141 #ifndef $as_decl_name
2142 #ifdef __cplusplus
2143 (void) $as_decl_use;
2144 #else
2145 (void) $as_decl_name;
2146 #endif
2147 #endif
2148
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 eval "$3=yes"
2155 else
2156 eval "$3=no"
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 fi
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164
2165 } # ac_fn_c_check_decl
2166
2167 # ac_fn_c_find_uintX_t LINENO BITS VAR
2168 # ------------------------------------
2169 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2170 # accordingly.
2171 ac_fn_c_find_uintX_t ()
2172 {
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2175 $as_echo_n "checking for uint$2_t... " >&6; }
2176 if eval \${$3+:} false; then :
2177 $as_echo_n "(cached) " >&6
2178 else
2179 eval "$3=no"
2180 # Order is important - never check a type that is potentially smaller
2181 # than half of the expected target width.
2182 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2183 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 $ac_includes_default
2187 int
2188 main ()
2189 {
2190 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2191 test_array [0] = 0;
2192 return test_array [0];
2193
2194 ;
2195 return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199 case $ac_type in #(
2200 uint$2_t) :
2201 eval "$3=yes" ;; #(
2202 *) :
2203 eval "$3=\$ac_type" ;;
2204 esac
2205 fi
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 if eval test \"x\$"$3"\" = x"no"; then :
2208
2209 else
2210 break
2211 fi
2212 done
2213 fi
2214 eval ac_res=\$$3
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216 $as_echo "$ac_res" >&6; }
2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218
2219 } # ac_fn_c_find_uintX_t
2220
2221 # ac_fn_c_find_intX_t LINENO BITS VAR
2222 # -----------------------------------
2223 # Finds a signed integer type with width BITS, setting cache variable VAR
2224 # accordingly.
2225 ac_fn_c_find_intX_t ()
2226 {
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2229 $as_echo_n "checking for int$2_t... " >&6; }
2230 if eval \${$3+:} false; then :
2231 $as_echo_n "(cached) " >&6
2232 else
2233 eval "$3=no"
2234 # Order is important - never check a type that is potentially smaller
2235 # than half of the expected target width.
2236 for ac_type in int$2_t 'int' 'long int' \
2237 'long long int' 'short int' 'signed char'; do
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2240 $ac_includes_default
2241 enum { N = $2 / 2 - 1 };
2242 int
2243 main ()
2244 {
2245 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2246 test_array [0] = 0;
2247 return test_array [0];
2248
2249 ;
2250 return 0;
2251 }
2252 _ACEOF
2253 if ac_fn_c_try_compile "$LINENO"; then :
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2256 $ac_includes_default
2257 enum { N = $2 / 2 - 1 };
2258 int
2259 main ()
2260 {
2261 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2262 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2263 test_array [0] = 0;
2264 return test_array [0];
2265
2266 ;
2267 return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271
2272 else
2273 case $ac_type in #(
2274 int$2_t) :
2275 eval "$3=yes" ;; #(
2276 *) :
2277 eval "$3=\$ac_type" ;;
2278 esac
2279 fi
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 fi
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 if eval test \"x\$"$3"\" = x"no"; then :
2284
2285 else
2286 break
2287 fi
2288 done
2289 fi
2290 eval ac_res=\$$3
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294
2295 } # ac_fn_c_find_intX_t
2296 cat >config.log <<_ACEOF
2297 This file contains any messages produced by compilers while
2298 running configure, to aid debugging if configure makes a mistake.
2299
2300 It was created by file $as_me 5.14, which was
2301 generated by GNU Autoconf 2.69. Invocation command line was
2302
2303 $ $0 $@
2304
2305 _ACEOF
2306 exec 5>>config.log
2307 {
2308 cat <<_ASUNAME
2309 ## --------- ##
2310 ## Platform. ##
2311 ## --------- ##
2312
2313 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2314 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2315 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2316 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2317 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2318
2319 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2320 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2321
2322 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2323 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2324 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2325 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2326 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2327 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2328 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2329
2330 _ASUNAME
2331
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2334 do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 $as_echo "PATH: $as_dir"
2338 done
2339 IFS=$as_save_IFS
2340
2341 } >&5
2342
2343 cat >&5 <<_ACEOF
2344
2345
2346 ## ----------- ##
2347 ## Core tests. ##
2348 ## ----------- ##
2349
2350 _ACEOF
2351
2352
2353 # Keep a trace of the command line.
2354 # Strip out --no-create and --no-recursion so they do not pile up.
2355 # Strip out --silent because we don't want to record it for future runs.
2356 # Also quote any args containing shell meta-characters.
2357 # Make two passes to allow for proper duplicate-argument suppression.
2358 ac_configure_args=
2359 ac_configure_args0=
2360 ac_configure_args1=
2361 ac_must_keep_next=false
2362 for ac_pass in 1 2
2363 do
2364 for ac_arg
2365 do
2366 case $ac_arg in
2367 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2369 | -silent | --silent | --silen | --sile | --sil)
2370 continue ;;
2371 *\'*)
2372 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2373 esac
2374 case $ac_pass in
2375 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2376 2)
2377 as_fn_append ac_configure_args1 " '$ac_arg'"
2378 if test $ac_must_keep_next = true; then
2379 ac_must_keep_next=false # Got value, back to normal.
2380 else
2381 case $ac_arg in
2382 *=* | --config-cache | -C | -disable-* | --disable-* \
2383 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2384 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2385 | -with-* | --with-* | -without-* | --without-* | --x)
2386 case "$ac_configure_args0 " in
2387 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2388 esac
2389 ;;
2390 -* ) ac_must_keep_next=true ;;
2391 esac
2392 fi
2393 as_fn_append ac_configure_args " '$ac_arg'"
2394 ;;
2395 esac
2396 done
2397 done
2398 { ac_configure_args0=; unset ac_configure_args0;}
2399 { ac_configure_args1=; unset ac_configure_args1;}
2400
2401 # When interrupted or exit'd, cleanup temporary files, and complete
2402 # config.log. We remove comments because anyway the quotes in there
2403 # would cause problems or look ugly.
2404 # WARNING: Use '\'' to represent an apostrophe within the trap.
2405 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2406 trap 'exit_status=$?
2407 # Save into config.log some information that might help in debugging.
2408 {
2409 echo
2410
2411 $as_echo "## ---------------- ##
2412 ## Cache variables. ##
2413 ## ---------------- ##"
2414 echo
2415 # The following way of writing the cache mishandles newlines in values,
2416 (
2417 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2418 eval ac_val=\$$ac_var
2419 case $ac_val in #(
2420 *${as_nl}*)
2421 case $ac_var in #(
2422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2423 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2424 esac
2425 case $ac_var in #(
2426 _ | IFS | as_nl) ;; #(
2427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2428 *) { eval $ac_var=; unset $ac_var;} ;;
2429 esac ;;
2430 esac
2431 done
2432 (set) 2>&1 |
2433 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2434 *${as_nl}ac_space=\ *)
2435 sed -n \
2436 "s/'\''/'\''\\\\'\'''\''/g;
2437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2438 ;; #(
2439 *)
2440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2441 ;;
2442 esac |
2443 sort
2444 )
2445 echo
2446
2447 $as_echo "## ----------------- ##
2448 ## Output variables. ##
2449 ## ----------------- ##"
2450 echo
2451 for ac_var in $ac_subst_vars
2452 do
2453 eval ac_val=\$$ac_var
2454 case $ac_val in
2455 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456 esac
2457 $as_echo "$ac_var='\''$ac_val'\''"
2458 done | sort
2459 echo
2460
2461 if test -n "$ac_subst_files"; then
2462 $as_echo "## ------------------- ##
2463 ## File substitutions. ##
2464 ## ------------------- ##"
2465 echo
2466 for ac_var in $ac_subst_files
2467 do
2468 eval ac_val=\$$ac_var
2469 case $ac_val in
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 esac
2472 $as_echo "$ac_var='\''$ac_val'\''"
2473 done | sort
2474 echo
2475 fi
2476
2477 if test -s confdefs.h; then
2478 $as_echo "## ----------- ##
2479 ## confdefs.h. ##
2480 ## ----------- ##"
2481 echo
2482 cat confdefs.h
2483 echo
2484 fi
2485 test "$ac_signal" != 0 &&
2486 $as_echo "$as_me: caught signal $ac_signal"
2487 $as_echo "$as_me: exit $exit_status"
2488 } >&5
2489 rm -f core *.core core.conftest.* &&
2490 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2491 exit $exit_status
2492 ' 0
2493 for ac_signal in 1 2 13 15; do
2494 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2495 done
2496 ac_signal=0
2497
2498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2499 rm -f -r conftest* confdefs.h
2500
2501 $as_echo "/* confdefs.h */" > confdefs.h
2502
2503 # Predefined preprocessor variables.
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_NAME "$PACKAGE_NAME"
2507 _ACEOF
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2511 _ACEOF
2512
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2515 _ACEOF
2516
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_STRING "$PACKAGE_STRING"
2519 _ACEOF
2520
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2523 _ACEOF
2524
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_URL "$PACKAGE_URL"
2527 _ACEOF
2528
2529
2530 # Let the site file select an alternate cache file if it wants to.
2531 # Prefer an explicitly selected file to automatically selected ones.
2532 ac_site_file1=NONE
2533 ac_site_file2=NONE
2534 if test -n "$CONFIG_SITE"; then
2535 # We do not want a PATH search for config.site.
2536 case $CONFIG_SITE in #((
2537 -*) ac_site_file1=./$CONFIG_SITE;;
2538 */*) ac_site_file1=$CONFIG_SITE;;
2539 *) ac_site_file1=./$CONFIG_SITE;;
2540 esac
2541 elif test "x$prefix" != xNONE; then
2542 ac_site_file1=$prefix/share/config.site
2543 ac_site_file2=$prefix/etc/config.site
2544 else
2545 ac_site_file1=$ac_default_prefix/share/config.site
2546 ac_site_file2=$ac_default_prefix/etc/config.site
2547 fi
2548 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2549 do
2550 test "x$ac_site_file" = xNONE && continue
2551 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2553 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2554 sed 's/^/| /' "$ac_site_file" >&5
2555 . "$ac_site_file" \
2556 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 as_fn_error $? "failed to load site script $ac_site_file
2559 See \`config.log' for more details" "$LINENO" 5; }
2560 fi
2561 done
2562
2563 if test -r "$cache_file"; then
2564 # Some versions of bash will fail to source /dev/null (special files
2565 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2566 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2568 $as_echo "$as_me: loading cache $cache_file" >&6;}
2569 case $cache_file in
2570 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2571 *) . "./$cache_file";;
2572 esac
2573 fi
2574 else
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2576 $as_echo "$as_me: creating cache $cache_file" >&6;}
2577 >$cache_file
2578 fi
2579
2580 as_fn_append ac_header_list " stdlib.h"
2581 as_fn_append ac_header_list " unistd.h"
2582 as_fn_append ac_header_list " sys/param.h"
2583 # Check that the precious variables saved in the cache have kept the same
2584 # value.
2585 ac_cache_corrupted=false
2586 for ac_var in $ac_precious_vars; do
2587 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2588 eval ac_new_set=\$ac_env_${ac_var}_set
2589 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2590 eval ac_new_val=\$ac_env_${ac_var}_value
2591 case $ac_old_set,$ac_new_set in
2592 set,)
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2594 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2595 ac_cache_corrupted=: ;;
2596 ,set)
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2598 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2599 ac_cache_corrupted=: ;;
2600 ,);;
2601 *)
2602 if test "x$ac_old_val" != "x$ac_new_val"; then
2603 # differences in whitespace do not lead to failure.
2604 ac_old_val_w=`echo x $ac_old_val`
2605 ac_new_val_w=`echo x $ac_new_val`
2606 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2608 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2609 ac_cache_corrupted=:
2610 else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2612 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2613 eval $ac_var=\$ac_old_val
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2616 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2618 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2619 fi;;
2620 esac
2621 # Pass precious variables to config.status.
2622 if test "$ac_new_set" = set; then
2623 case $ac_new_val in
2624 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2625 *) ac_arg=$ac_var=$ac_new_val ;;
2626 esac
2627 case " $ac_configure_args " in
2628 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2629 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2630 esac
2631 fi
2632 done
2633 if $ac_cache_corrupted; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2637 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2638 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2639 fi
2640 ## -------------------- ##
2641 ## Main body of script. ##
2642 ## -------------------- ##
2643
2644 ac_ext=c
2645 ac_cpp='$CPP $CPPFLAGS'
2646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2649
2650
2651 am__api_version='1.12'
2652
2653 ac_aux_dir=
2654 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2655 if test -f "$ac_dir/install-sh"; then
2656 ac_aux_dir=$ac_dir
2657 ac_install_sh="$ac_aux_dir/install-sh -c"
2658 break
2659 elif test -f "$ac_dir/install.sh"; then
2660 ac_aux_dir=$ac_dir
2661 ac_install_sh="$ac_aux_dir/install.sh -c"
2662 break
2663 elif test -f "$ac_dir/shtool"; then
2664 ac_aux_dir=$ac_dir
2665 ac_install_sh="$ac_aux_dir/shtool install -c"
2666 break
2667 fi
2668 done
2669 if test -z "$ac_aux_dir"; then
2670 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2671 fi
2672
2673 # These three variables are undocumented and unsupported,
2674 # and are intended to be withdrawn in a future Autoconf release.
2675 # They can cause serious problems if a builder's source tree is in a directory
2676 # whose full name contains unusual characters.
2677 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2678 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2679 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2680
2681
2682 # Find a good install program. We prefer a C program (faster),
2683 # so one script is as good as another. But avoid the broken or
2684 # incompatible versions:
2685 # SysV /etc/install, /usr/sbin/install
2686 # SunOS /usr/etc/install
2687 # IRIX /sbin/install
2688 # AIX /bin/install
2689 # AmigaOS /C/install, which installs bootblocks on floppy discs
2690 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2691 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2692 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2693 # OS/2's system install, which has a completely different semantic
2694 # ./install, which can be erroneously created by make from ./install.sh.
2695 # Reject install programs that cannot install multiple files.
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2697 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2698 if test -z "$INSTALL"; then
2699 if ${ac_cv_path_install+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 # Account for people who put trailing slashes in PATH elements.
2708 case $as_dir/ in #((
2709 ./ | .// | /[cC]/* | \
2710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2711 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2712 /usr/ucb/* ) ;;
2713 *)
2714 # OSF1 and SCO ODT 3.0 have their own names for install.
2715 # Don't use installbsd from OSF since it installs stuff as root
2716 # by default.
2717 for ac_prog in ginstall scoinst install; do
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2720 if test $ac_prog = install &&
2721 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722 # AIX install. It has an incompatible calling convention.
2723 :
2724 elif test $ac_prog = install &&
2725 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2726 # program-specific install script used by HP pwplus--don't use.
2727 :
2728 else
2729 rm -rf conftest.one conftest.two conftest.dir
2730 echo one > conftest.one
2731 echo two > conftest.two
2732 mkdir conftest.dir
2733 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2734 test -s conftest.one && test -s conftest.two &&
2735 test -s conftest.dir/conftest.one &&
2736 test -s conftest.dir/conftest.two
2737 then
2738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2739 break 3
2740 fi
2741 fi
2742 fi
2743 done
2744 done
2745 ;;
2746 esac
2747
2748 done
2749 IFS=$as_save_IFS
2750
2751 rm -rf conftest.one conftest.two conftest.dir
2752
2753 fi
2754 if test "${ac_cv_path_install+set}" = set; then
2755 INSTALL=$ac_cv_path_install
2756 else
2757 # As a last resort, use the slow shell script. Don't cache a
2758 # value for INSTALL within a source directory, because that will
2759 # break other packages using the cache if that directory is
2760 # removed, or if the value is a relative name.
2761 INSTALL=$ac_install_sh
2762 fi
2763 fi
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2765 $as_echo "$INSTALL" >&6; }
2766
2767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2768 # It thinks the first close brace ends the variable substitution.
2769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2770
2771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2772
2773 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2774
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2776 $as_echo_n "checking whether build environment is sane... " >&6; }
2777 # Reject unsafe characters in $srcdir or the absolute working directory
2778 # name. Accept space and tab only in the latter.
2779 am_lf='
2780 '
2781 case `pwd` in
2782 *[\\\"\#\$\&\'\`$am_lf]*)
2783 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2784 esac
2785 case $srcdir in
2786 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2787 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2788 esac
2789
2790 # Do 'set' in a subshell so we don't clobber the current shell's
2791 # arguments. Must try -L first in case configure is actually a
2792 # symlink; some systems play weird games with the mod time of symlinks
2793 # (eg FreeBSD returns the mod time of the symlink's containing
2794 # directory).
2795 if (
2796 am_has_slept=no
2797 for am_try in 1 2; do
2798 echo "timestamp, slept: $am_has_slept" > conftest.file
2799 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2800 if test "$*" = "X"; then
2801 # -L didn't work.
2802 set X `ls -t "$srcdir/configure" conftest.file`
2803 fi
2804 if test "$*" != "X $srcdir/configure conftest.file" \
2805 && test "$*" != "X conftest.file $srcdir/configure"; then
2806
2807 # If neither matched, then we have a broken ls. This can happen
2808 # if, for instance, CONFIG_SHELL is bash and it inherits a
2809 # broken ls alias from the environment. This has actually
2810 # happened. Such a system could not be considered "sane".
2811 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2812 alias in your environment" "$LINENO" 5
2813 fi
2814 if test "$2" = conftest.file || test $am_try -eq 2; then
2815 break
2816 fi
2817 # Just in case.
2818 sleep 1
2819 am_has_slept=yes
2820 done
2821 test "$2" = conftest.file
2822 )
2823 then
2824 # Ok.
2825 :
2826 else
2827 as_fn_error $? "newly created file is older than distributed files!
2828 Check your system clock" "$LINENO" 5
2829 fi
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2831 $as_echo "yes" >&6; }
2832 # If we didn't sleep, we still need to ensure time stamps of config.status and
2833 # generated files are strictly newer.
2834 am_sleep_pid=
2835 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2836 ( sleep 1 ) &
2837 am_sleep_pid=$!
2838 fi
2839
2840 rm -f conftest.file
2841
2842 test "$program_prefix" != NONE &&
2843 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2844 # Use a double $ so make ignores it.
2845 test "$program_suffix" != NONE &&
2846 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2847 # Double any \ or $.
2848 # By default was `s,x,x', remove it if useless.
2849 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2850 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2851
2852 # expand $ac_aux_dir to an absolute path
2853 am_aux_dir=`cd $ac_aux_dir && pwd`
2854
2855 if test x"${MISSING+set}" != xset; then
2856 case $am_aux_dir in
2857 *\ * | *\ *)
2858 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2859 *)
2860 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2861 esac
2862 fi
2863 # Use eval to expand $SHELL
2864 if eval "$MISSING --run true"; then
2865 am_missing_run="$MISSING --run "
2866 else
2867 am_missing_run=
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2869 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2870 fi
2871
2872 if test x"${install_sh}" != xset; then
2873 case $am_aux_dir in
2874 *\ * | *\ *)
2875 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2876 *)
2877 install_sh="\${SHELL} $am_aux_dir/install-sh"
2878 esac
2879 fi
2880
2881 # Installed binaries are usually stripped using 'strip' when the user
2882 # run "make install-strip". However 'strip' might not be the right
2883 # tool to use in cross-compilation environments, therefore Automake
2884 # will honor the 'STRIP' environment variable to overrule this program.
2885 if test "$cross_compiling" != no; then
2886 if test -n "$ac_tool_prefix"; then
2887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2888 set dummy ${ac_tool_prefix}strip; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_STRIP+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$STRIP"; then
2895 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 STRIP=$ac_cv_prog_STRIP
2915 if test -n "$STRIP"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2917 $as_echo "$STRIP" >&6; }
2918 else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921 fi
2922
2923
2924 fi
2925 if test -z "$ac_cv_prog_STRIP"; then
2926 ac_ct_STRIP=$STRIP
2927 # Extract the first word of "strip", so it can be a program name with args.
2928 set dummy strip; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if test -n "$ac_ct_STRIP"; then
2935 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_ac_ct_STRIP="strip"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2955 if test -n "$ac_ct_STRIP"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2957 $as_echo "$ac_ct_STRIP" >&6; }
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963 if test "x$ac_ct_STRIP" = x; then
2964 STRIP=":"
2965 else
2966 case $cross_compiling:$ac_tool_warned in
2967 yes:)
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972 STRIP=$ac_ct_STRIP
2973 fi
2974 else
2975 STRIP="$ac_cv_prog_STRIP"
2976 fi
2977
2978 fi
2979 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2980
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2982 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2983 if test -z "$MKDIR_P"; then
2984 if ${ac_cv_path_mkdir+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2989 do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_prog in mkdir gmkdir; do
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2995 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2996 'mkdir (GNU coreutils) '* | \
2997 'mkdir (coreutils) '* | \
2998 'mkdir (fileutils) '4.1*)
2999 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3000 break 3;;
3001 esac
3002 done
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi
3008
3009 test -d ./--version && rmdir ./--version
3010 if test "${ac_cv_path_mkdir+set}" = set; then
3011 MKDIR_P="$ac_cv_path_mkdir -p"
3012 else
3013 # As a last resort, use the slow shell script. Don't cache a
3014 # value for MKDIR_P within a source directory, because that will
3015 # break other packages using the cache if that directory is
3016 # removed, or if the value is a relative name.
3017 MKDIR_P="$ac_install_sh -d"
3018 fi
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3021 $as_echo "$MKDIR_P" >&6; }
3022
3023 for ac_prog in gawk mawk nawk awk
3024 do
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_AWK+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$AWK"; then
3033 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_AWK="$ac_prog"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 AWK=$ac_cv_prog_AWK
3053 if test -n "$AWK"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3055 $as_echo "$AWK" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 test -n "$AWK" && break
3063 done
3064
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3066 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3067 set x ${MAKE-make}
3068 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3069 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 cat >conftest.make <<\_ACEOF
3073 SHELL = /bin/sh
3074 all:
3075 @echo '@@@%%%=$(MAKE)=@@@%%%'
3076 _ACEOF
3077 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3078 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3079 *@@@%%%=?*=@@@%%%*)
3080 eval ac_cv_prog_make_${ac_make}_set=yes;;
3081 *)
3082 eval ac_cv_prog_make_${ac_make}_set=no;;
3083 esac
3084 rm -f conftest.make
3085 fi
3086 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3088 $as_echo "yes" >&6; }
3089 SET_MAKE=
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 SET_MAKE="MAKE=${MAKE-make}"
3094 fi
3095
3096 rm -rf .tst 2>/dev/null
3097 mkdir .tst 2>/dev/null
3098 if test -d .tst; then
3099 am__leading_dot=.
3100 else
3101 am__leading_dot=_
3102 fi
3103 rmdir .tst 2>/dev/null
3104
3105 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3106 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3107 # is not polluted with repeated "-I."
3108 am__isrc=' -I$(srcdir)'
3109 # test to see if srcdir already configured
3110 if test -f $srcdir/config.status; then
3111 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3112 fi
3113 fi
3114
3115 # test whether we have cygpath
3116 if test -z "$CYGPATH_W"; then
3117 if (cygpath --version) >/dev/null 2>/dev/null; then
3118 CYGPATH_W='cygpath -w'
3119 else
3120 CYGPATH_W=echo
3121 fi
3122 fi
3123
3124
3125 # Define the identity of the package.
3126 PACKAGE='file'
3127 VERSION='5.14'
3128
3129
3130 cat >>confdefs.h <<_ACEOF
3131 #define PACKAGE "$PACKAGE"
3132 _ACEOF
3133
3134
3135 cat >>confdefs.h <<_ACEOF
3136 #define VERSION "$VERSION"
3137 _ACEOF
3138
3139 # Some tools Automake needs.
3140
3141 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3142
3143
3144 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3145
3146
3147 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3148
3149
3150 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3151
3152
3153 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3154
3155 # For better backward compatibility. To be removed once Automake 1.9.x
3156 # dies out for good. For more background, see:
3157 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3158 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3159 mkdir_p='$(MKDIR_P)'
3160
3161 # We need awk for the "check" target. The system "awk" is bad on
3162 # some platforms.
3163 # Always define AMTAR for backward compatibility. Yes, it's still used
3164 # in the wild :-( We should find a proper way to deprecate it ...
3165 AMTAR='$${TAR-tar}'
3166
3167 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3168
3169
3170
3171
3172
3173 # Check whether --enable-silent-rules was given.
3174 if test "${enable_silent_rules+set}" = set; then :
3175 enableval=$enable_silent_rules;
3176 fi
3177
3178 case $enable_silent_rules in # (((
3179 yes) AM_DEFAULT_VERBOSITY=0;;
3180 no) AM_DEFAULT_VERBOSITY=1;;
3181 *) AM_DEFAULT_VERBOSITY=0;;
3182 esac
3183 am_make=${MAKE-make}
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3185 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3186 if ${am_cv_make_support_nested_variables+:} false; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 if $as_echo 'TRUE=$(BAR$(V))
3190 BAR0=false
3191 BAR1=true
3192 V=1
3193 am__doit:
3194 @$(TRUE)
3195 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3196 am_cv_make_support_nested_variables=yes
3197 else
3198 am_cv_make_support_nested_variables=no
3199 fi
3200 fi
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3202 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3203 if test $am_cv_make_support_nested_variables = yes; then
3204 AM_V='$(V)'
3205 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3206 else
3207 AM_V=$AM_DEFAULT_VERBOSITY
3208 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3209 fi
3210 AM_BACKSLASH='\'
3211
3212
3213 ac_config_headers="$ac_config_headers config.h"
3214
3215
3216
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3218 $as_echo_n "checking for builtin ELF support... " >&6; }
3219 # Check whether --enable-elf was given.
3220 if test "${enable_elf+set}" = set; then :
3221 enableval=$enable_elf; if test "${enableval}" = yes; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3223 $as_echo "yes" >&6; }
3224
3225 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3226
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231 else
3232
3233 # enable by default
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3235 $as_echo "yes" >&6; }
3236
3237 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3238
3239
3240 fi
3241
3242
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3244 $as_echo_n "checking for ELF core file support... " >&6; }
3245 # Check whether --enable-elf-core was given.
3246 if test "${enable_elf_core+set}" = set; then :
3247 enableval=$enable_elf_core; if test "${enableval}" = yes; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249 $as_echo "yes" >&6; }
3250
3251 $as_echo "#define ELFCORE 1" >>confdefs.h
3252
3253 else
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 fi
3257 else
3258
3259 # enable by default
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261 $as_echo "yes" >&6; }
3262
3263 $as_echo "#define ELFCORE 1" >>confdefs.h
3264
3265
3266 fi
3267
3268
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3270 $as_echo_n "checking for file formats in man section 5... " >&6; }
3271 # Check whether --enable-fsect-man5 was given.
3272 if test "${enable_fsect_man5+set}" = set; then :
3273 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275 $as_echo "yes" >&6; }
3276 fsect=5
3277 else
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3280 fsect=4
3281 fi
3282 else
3283
3284 # disable by default
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fsect=4
3288
3289 fi
3290
3291
3292 # Make sure we can run config.sub.
3293 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3294 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3295
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3297 $as_echo_n "checking build system type... " >&6; }
3298 if ${ac_cv_build+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 ac_build_alias=$build_alias
3302 test "x$ac_build_alias" = x &&
3303 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3304 test "x$ac_build_alias" = x &&
3305 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3306 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3307 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3308
3309 fi
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3311 $as_echo "$ac_cv_build" >&6; }
3312 case $ac_cv_build in
3313 *-*-*) ;;
3314 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3315 esac
3316 build=$ac_cv_build
3317 ac_save_IFS=$IFS; IFS='-'
3318 set x $ac_cv_build
3319 shift
3320 build_cpu=$1
3321 build_vendor=$2
3322 shift; shift
3323 # Remember, the first character of IFS is used to create $*,
3324 # except with old shells:
3325 build_os=$*
3326 IFS=$ac_save_IFS
3327 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3328
3329
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3331 $as_echo_n "checking host system type... " >&6; }
3332 if ${ac_cv_host+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 if test "x$host_alias" = x; then
3336 ac_cv_host=$ac_cv_build
3337 else
3338 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3339 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3340 fi
3341
3342 fi
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3344 $as_echo "$ac_cv_host" >&6; }
3345 case $ac_cv_host in
3346 *-*-*) ;;
3347 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3348 esac
3349 host=$ac_cv_host
3350 ac_save_IFS=$IFS; IFS='-'
3351 set x $ac_cv_host
3352 shift
3353 host_cpu=$1
3354 host_vendor=$2
3355 shift; shift
3356 # Remember, the first character of IFS is used to create $*,
3357 # except with old shells:
3358 host_os=$*
3359 IFS=$ac_save_IFS
3360 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3361
3362
3363 case "$host_os" in
3364 mingw32*)
3365 MINGW=1
3366 ;;
3367 *)
3368 MINGW=0
3369 ;;
3370 esac
3371
3372 if test "$MINGW" = 1; then
3373 MINGW_TRUE=
3374 MINGW_FALSE='#'
3375 else
3376 MINGW_TRUE='#'
3377 MINGW_FALSE=
3378 fi
3379
3380
3381 pkgdatadir='$(datadir)/misc'
3382
3383
3384 if test x$fsect = x5; then
3385 FSECT5_TRUE=
3386 FSECT5_FALSE='#'
3387 else
3388 FSECT5_TRUE='#'
3389 FSECT5_FALSE=
3390 fi
3391
3392
3393
3394
3395 DEPDIR="${am__leading_dot}deps"
3396
3397 ac_config_commands="$ac_config_commands depfiles"
3398
3399
3400 am_make=${MAKE-make}
3401 cat > confinc << 'END'
3402 am__doit:
3403 @echo this is the am__doit target
3404 .PHONY: am__doit
3405 END
3406 # If we don't find an include directive, just comment out the code.
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3408 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3409 am__include="#"
3410 am__quote=
3411 _am_result=none
3412 # First try GNU make style include.
3413 echo "include confinc" > confmf
3414 # Ignore all kinds of additional output from 'make'.
3415 case `$am_make -s -f confmf 2> /dev/null` in #(
3416 *the\ am__doit\ target*)
3417 am__include=include
3418 am__quote=
3419 _am_result=GNU
3420 ;;
3421 esac
3422 # Now try BSD make style include.
3423 if test "$am__include" = "#"; then
3424 echo '.include "confinc"' > confmf
3425 case `$am_make -s -f confmf 2> /dev/null` in #(
3426 *the\ am__doit\ target*)
3427 am__include=.include
3428 am__quote="\""
3429 _am_result=BSD
3430 ;;
3431 esac
3432 fi
3433
3434
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3436 $as_echo "$_am_result" >&6; }
3437 rm -f confinc confmf
3438
3439 # Check whether --enable-dependency-tracking was given.
3440 if test "${enable_dependency_tracking+set}" = set; then :
3441 enableval=$enable_dependency_tracking;
3442 fi
3443
3444 if test "x$enable_dependency_tracking" != xno; then
3445 am_depcomp="$ac_aux_dir/depcomp"
3446 AMDEPBACKSLASH='\'
3447 am__nodep='_no'
3448 fi
3449 if test "x$enable_dependency_tracking" != xno; then
3450 AMDEP_TRUE=
3451 AMDEP_FALSE='#'
3452 else
3453 AMDEP_TRUE='#'
3454 AMDEP_FALSE=
3455 fi
3456
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463 if test -n "$ac_tool_prefix"; then
3464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467 $as_echo_n "checking for $ac_word... " >&6; }
3468 if ${ac_cv_prog_CC+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 if test -n "$CC"; then
3472 ac_cv_prog_CC="$CC" # Let the user override the test.
3473 else
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH
3476 do
3477 IFS=$as_save_IFS
3478 test -z "$as_dir" && as_dir=.
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 break 2
3484 fi
3485 done
3486 done
3487 IFS=$as_save_IFS
3488
3489 fi
3490 fi
3491 CC=$ac_cv_prog_CC
3492 if test -n "$CC"; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3494 $as_echo "$CC" >&6; }
3495 else
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3498 fi
3499
3500
3501 fi
3502 if test -z "$ac_cv_prog_CC"; then
3503 ac_ct_CC=$CC
3504 # Extract the first word of "gcc", so it can be a program name with args.
3505 set dummy gcc; ac_word=$2
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507 $as_echo_n "checking for $ac_word... " >&6; }
3508 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3509 $as_echo_n "(cached) " >&6
3510 else
3511 if test -n "$ac_ct_CC"; then
3512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3513 else
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH
3516 do
3517 IFS=$as_save_IFS
3518 test -z "$as_dir" && as_dir=.
3519 for ac_exec_ext in '' $ac_executable_extensions; do
3520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3521 ac_cv_prog_ac_ct_CC="gcc"
3522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 break 2
3524 fi
3525 done
3526 done
3527 IFS=$as_save_IFS
3528
3529 fi
3530 fi
3531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3532 if test -n "$ac_ct_CC"; then
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3534 $as_echo "$ac_ct_CC" >&6; }
3535 else
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3538 fi
3539
3540 if test "x$ac_ct_CC" = x; then
3541 CC=""
3542 else
3543 case $cross_compiling:$ac_tool_warned in
3544 yes:)
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3547 ac_tool_warned=yes ;;
3548 esac
3549 CC=$ac_ct_CC
3550 fi
3551 else
3552 CC="$ac_cv_prog_CC"
3553 fi
3554
3555 if test -z "$CC"; then
3556 if test -n "$ac_tool_prefix"; then
3557 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3558 set dummy ${ac_tool_prefix}cc; ac_word=$2
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560 $as_echo_n "checking for $ac_word... " >&6; }
3561 if ${ac_cv_prog_CC+:} false; then :
3562 $as_echo_n "(cached) " >&6
3563 else
3564 if test -n "$CC"; then
3565 ac_cv_prog_CC="$CC" # Let the user override the test.
3566 else
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 for as_dir in $PATH
3569 do
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_prog_CC="${ac_tool_prefix}cc"
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3577 fi
3578 done
3579 done
3580 IFS=$as_save_IFS
3581
3582 fi
3583 fi
3584 CC=$ac_cv_prog_CC
3585 if test -n "$CC"; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3587 $as_echo "$CC" >&6; }
3588 else
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3591 fi
3592
3593
3594 fi
3595 fi
3596 if test -z "$CC"; then
3597 # Extract the first word of "cc", so it can be a program name with args.
3598 set dummy cc; ac_word=$2
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 $as_echo_n "checking for $ac_word... " >&6; }
3601 if ${ac_cv_prog_CC+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 if test -n "$CC"; then
3605 ac_cv_prog_CC="$CC" # Let the user override the test.
3606 else
3607 ac_prog_rejected=no
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3616 ac_prog_rejected=yes
3617 continue
3618 fi
3619 ac_cv_prog_CC="cc"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3622 fi
3623 done
3624 done
3625 IFS=$as_save_IFS
3626
3627 if test $ac_prog_rejected = yes; then
3628 # We found a bogon in the path, so make sure we never use it.
3629 set dummy $ac_cv_prog_CC
3630 shift
3631 if test $# != 0; then
3632 # We chose a different compiler from the bogus one.
3633 # However, it has the same basename, so the bogon will be chosen
3634 # first if we set CC to just the basename; use the full file name.
3635 shift
3636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3637 fi
3638 fi
3639 fi
3640 fi
3641 CC=$ac_cv_prog_CC
3642 if test -n "$CC"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3644 $as_echo "$CC" >&6; }
3645 else
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3648 fi
3649
3650
3651 fi
3652 if test -z "$CC"; then
3653 if test -n "$ac_tool_prefix"; then
3654 for ac_prog in cl.exe
3655 do
3656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659 $as_echo_n "checking for $ac_word... " >&6; }
3660 if ${ac_cv_prog_CC+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if test -n "$CC"; then
3664 ac_cv_prog_CC="$CC" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677 done
3678 done
3679 IFS=$as_save_IFS
3680
3681 fi
3682 fi
3683 CC=$ac_cv_prog_CC
3684 if test -n "$CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686 $as_echo "$CC" >&6; }
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3690 fi
3691
3692
3693 test -n "$CC" && break
3694 done
3695 fi
3696 if test -z "$CC"; then
3697 ac_ct_CC=$CC
3698 for ac_prog in cl.exe
3699 do
3700 # Extract the first word of "$ac_prog", so it can be a program name with args.
3701 set dummy $ac_prog; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 if test -n "$ac_ct_CC"; then
3708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_ac_ct_CC="$ac_prog"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3720 fi
3721 done
3722 done
3723 IFS=$as_save_IFS
3724
3725 fi
3726 fi
3727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3728 if test -n "$ac_ct_CC"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3730 $as_echo "$ac_ct_CC" >&6; }
3731 else
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3734 fi
3735
3736
3737 test -n "$ac_ct_CC" && break
3738 done
3739
3740 if test "x$ac_ct_CC" = x; then
3741 CC=""
3742 else
3743 case $cross_compiling:$ac_tool_warned in
3744 yes:)
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747 ac_tool_warned=yes ;;
3748 esac
3749 CC=$ac_ct_CC
3750 fi
3751 fi
3752
3753 fi
3754
3755
3756 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758 as_fn_error $? "no acceptable C compiler found in \$PATH
3759 See \`config.log' for more details" "$LINENO" 5; }
3760
3761 # Provide some information about the compiler.
3762 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3763 set X $ac_compile
3764 ac_compiler=$2
3765 for ac_option in --version -v -V -qversion; do
3766 { { ac_try="$ac_compiler $ac_option >&5"
3767 case "(($ac_try" in
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3770 esac
3771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3772 $as_echo "$ac_try_echo"; } >&5
3773 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3774 ac_status=$?
3775 if test -s conftest.err; then
3776 sed '10a\
3777 ... rest of stderr output deleted ...
3778 10q' conftest.err >conftest.er1
3779 cat conftest.er1 >&5
3780 fi
3781 rm -f conftest.er1 conftest.err
3782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783 test $ac_status = 0; }
3784 done
3785
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788
3789 int
3790 main ()
3791 {
3792
3793 ;
3794 return 0;
3795 }
3796 _ACEOF
3797 ac_clean_files_save=$ac_clean_files
3798 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3799 # Try to create an executable without -o first, disregard a.out.
3800 # It will help us diagnose broken compilers, and finding out an intuition
3801 # of exeext.
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3803 $as_echo_n "checking whether the C compiler works... " >&6; }
3804 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3805
3806 # The possible output files:
3807 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3808
3809 ac_rmfiles=
3810 for ac_file in $ac_files
3811 do
3812 case $ac_file in
3813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3814 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3815 esac
3816 done
3817 rm -f $ac_rmfiles
3818
3819 if { { ac_try="$ac_link_default"
3820 case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823 esac
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826 (eval "$ac_link_default") 2>&5
3827 ac_status=$?
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; }; then :
3830 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3831 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3832 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3833 # so that the user can short-circuit this test for compilers unknown to
3834 # Autoconf.
3835 for ac_file in $ac_files ''
3836 do
3837 test -f "$ac_file" || continue
3838 case $ac_file in
3839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3840 ;;
3841 [ab].out )
3842 # We found the default executable, but exeext='' is most
3843 # certainly right.
3844 break;;
3845 *.* )
3846 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3847 then :; else
3848 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3849 fi
3850 # We set ac_cv_exeext here because the later test for it is not
3851 # safe: cross compilers may not add the suffix if given an `-o'
3852 # argument, so we may need to know it at that point already.
3853 # Even if this section looks crufty: it has the advantage of
3854 # actually working.
3855 break;;
3856 * )
3857 break;;
3858 esac
3859 done
3860 test "$ac_cv_exeext" = no && ac_cv_exeext=
3861
3862 else
3863 ac_file=''
3864 fi
3865 if test -z "$ac_file"; then :
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3868 $as_echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873 as_fn_error 77 "C compiler cannot create executables
3874 See \`config.log' for more details" "$LINENO" 5; }
3875 else
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3877 $as_echo "yes" >&6; }
3878 fi
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3880 $as_echo_n "checking for C compiler default output file name... " >&6; }
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3882 $as_echo "$ac_file" >&6; }
3883 ac_exeext=$ac_cv_exeext
3884
3885 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3886 ac_clean_files=$ac_clean_files_save
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3888 $as_echo_n "checking for suffix of executables... " >&6; }
3889 if { { ac_try="$ac_link"
3890 case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895 $as_echo "$ac_try_echo"; } >&5
3896 (eval "$ac_link") 2>&5
3897 ac_status=$?
3898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899 test $ac_status = 0; }; then :
3900 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3901 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3902 # work properly (i.e., refer to `conftest.exe'), while it won't with
3903 # `rm'.
3904 for ac_file in conftest.exe conftest conftest.*; do
3905 test -f "$ac_file" || continue
3906 case $ac_file in
3907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3908 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3909 break;;
3910 * ) break;;
3911 esac
3912 done
3913 else
3914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3917 See \`config.log' for more details" "$LINENO" 5; }
3918 fi
3919 rm -f conftest conftest$ac_cv_exeext
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3921 $as_echo "$ac_cv_exeext" >&6; }
3922
3923 rm -f conftest.$ac_ext
3924 EXEEXT=$ac_cv_exeext
3925 ac_exeext=$EXEEXT
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3928 #include <stdio.h>
3929 int
3930 main ()
3931 {
3932 FILE *f = fopen ("conftest.out", "w");
3933 return ferror (f) || fclose (f) != 0;
3934
3935 ;
3936 return 0;
3937 }
3938 _ACEOF
3939 ac_clean_files="$ac_clean_files conftest.out"
3940 # Check that the compiler produces executables we can run. If not, either
3941 # the compiler is broken, or we cross compile.
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3943 $as_echo_n "checking whether we are cross compiling... " >&6; }
3944 if test "$cross_compiling" != yes; then
3945 { { ac_try="$ac_link"
3946 case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949 esac
3950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951 $as_echo "$ac_try_echo"; } >&5
3952 (eval "$ac_link") 2>&5
3953 ac_status=$?
3954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955 test $ac_status = 0; }
3956 if { ac_try='./conftest$ac_cv_exeext'
3957 { { case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_try") 2>&5
3964 ac_status=$?
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; }; then
3967 cross_compiling=no
3968 else
3969 if test "$cross_compiling" = maybe; then
3970 cross_compiling=yes
3971 else
3972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 as_fn_error $? "cannot run C compiled programs.
3975 If you meant to cross compile, use \`--host'.
3976 See \`config.log' for more details" "$LINENO" 5; }
3977 fi
3978 fi
3979 fi
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3981 $as_echo "$cross_compiling" >&6; }
3982
3983 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3984 ac_clean_files=$ac_clean_files_save
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3986 $as_echo_n "checking for suffix of object files... " >&6; }
3987 if ${ac_cv_objext+:} false; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992
3993 int
3994 main ()
3995 {
3996
3997 ;
3998 return 0;
3999 }
4000 _ACEOF
4001 rm -f conftest.o conftest.obj
4002 if { { ac_try="$ac_compile"
4003 case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_compile") 2>&5
4010 ac_status=$?
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; then :
4013 for ac_file in conftest.o conftest.obj conftest.*; do
4014 test -f "$ac_file" || continue;
4015 case $ac_file in
4016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4017 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4018 break;;
4019 esac
4020 done
4021 else
4022 $as_echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4024
4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error $? "cannot compute suffix of object files: cannot compile
4028 See \`config.log' for more details" "$LINENO" 5; }
4029 fi
4030 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4031 fi
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4033 $as_echo "$ac_cv_objext" >&6; }
4034 OBJEXT=$ac_cv_objext
4035 ac_objext=$OBJEXT
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4037 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4038 if ${ac_cv_c_compiler_gnu+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043
4044 int
4045 main ()
4046 {
4047 #ifndef __GNUC__
4048 choke me
4049 #endif
4050
4051 ;
4052 return 0;
4053 }
4054 _ACEOF
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_compiler_gnu=yes
4057 else
4058 ac_compiler_gnu=no
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4062
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4065 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4066 if test $ac_compiler_gnu = yes; then
4067 GCC=yes
4068 else
4069 GCC=
4070 fi
4071 ac_test_CFLAGS=${CFLAGS+set}
4072 ac_save_CFLAGS=$CFLAGS
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4074 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4075 if ${ac_cv_prog_cc_g+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 ac_save_c_werror_flag=$ac_c_werror_flag
4079 ac_c_werror_flag=yes
4080 ac_cv_prog_cc_g=no
4081 CFLAGS="-g"
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084
4085 int
4086 main ()
4087 {
4088
4089 ;
4090 return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_cv_prog_cc_g=yes
4095 else
4096 CFLAGS=""
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099
4100 int
4101 main ()
4102 {
4103
4104 ;
4105 return 0;
4106 }
4107 _ACEOF
4108 if ac_fn_c_try_compile "$LINENO"; then :
4109
4110 else
4111 ac_c_werror_flag=$ac_save_c_werror_flag
4112 CFLAGS="-g"
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115
4116 int
4117 main ()
4118 {
4119
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_cv_prog_cc_g=yes
4126 fi
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 fi
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 ac_c_werror_flag=$ac_save_c_werror_flag
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4135 $as_echo "$ac_cv_prog_cc_g" >&6; }
4136 if test "$ac_test_CFLAGS" = set; then
4137 CFLAGS=$ac_save_CFLAGS
4138 elif test $ac_cv_prog_cc_g = yes; then
4139 if test "$GCC" = yes; then
4140 CFLAGS="-g -O2"
4141 else
4142 CFLAGS="-g"
4143 fi
4144 else
4145 if test "$GCC" = yes; then
4146 CFLAGS="-O2"
4147 else
4148 CFLAGS=
4149 fi
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4152 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4153 if ${ac_cv_prog_cc_c89+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 ac_cv_prog_cc_c89=no
4157 ac_save_CC=$CC
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160 #include <stdarg.h>
4161 #include <stdio.h>
4162 struct stat;
4163 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4164 struct buf { int x; };
4165 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4166 static char *e (p, i)
4167 char **p;
4168 int i;
4169 {
4170 return p[i];
4171 }
4172 static char *f (char * (*g) (char **, int), char **p, ...)
4173 {
4174 char *s;
4175 va_list v;
4176 va_start (v,p);
4177 s = g (p, va_arg (v,int));
4178 va_end (v);
4179 return s;
4180 }
4181
4182 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4183 function prototypes and stuff, but not '\xHH' hex character constants.
4184 These don't provoke an error unfortunately, instead are silently treated
4185 as 'x'. The following induces an error, until -std is added to get
4186 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4187 array size at least. It's necessary to write '\x00'==0 to get something
4188 that's true only with -std. */
4189 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4190
4191 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4192 inside strings and character constants. */
4193 #define FOO(x) 'x'
4194 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4195
4196 int test (int i, double x);
4197 struct s1 {int (*f) (int a);};
4198 struct s2 {int (*f) (double a);};
4199 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4200 int argc;
4201 char **argv;
4202 int
4203 main ()
4204 {
4205 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4206 ;
4207 return 0;
4208 }
4209 _ACEOF
4210 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4211 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4212 do
4213 CC="$ac_save_CC $ac_arg"
4214 if ac_fn_c_try_compile "$LINENO"; then :
4215 ac_cv_prog_cc_c89=$ac_arg
4216 fi
4217 rm -f core conftest.err conftest.$ac_objext
4218 test "x$ac_cv_prog_cc_c89" != "xno" && break
4219 done
4220 rm -f conftest.$ac_ext
4221 CC=$ac_save_CC
4222
4223 fi
4224 # AC_CACHE_VAL
4225 case "x$ac_cv_prog_cc_c89" in
4226 x)
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4228 $as_echo "none needed" >&6; } ;;
4229 xno)
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4231 $as_echo "unsupported" >&6; } ;;
4232 *)
4233 CC="$CC $ac_cv_prog_cc_c89"
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4235 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4236 esac
4237 if test "x$ac_cv_prog_cc_c89" != xno; then :
4238
4239 fi
4240
4241 ac_ext=c
4242 ac_cpp='$CPP $CPPFLAGS'
4243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246
4247 depcc="$CC" am_compiler_list=
4248
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4250 $as_echo_n "checking dependency style of $depcc... " >&6; }
4251 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4252 $as_echo_n "(cached) " >&6
4253 else
4254 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4255 # We make a subdir and do the tests there. Otherwise we can end up
4256 # making bogus files that we don't know about and never remove. For
4257 # instance it was reported that on HP-UX the gcc test will end up
4258 # making a dummy file named 'D' -- because '-MD' means "put the output
4259 # in D".
4260 rm -rf conftest.dir
4261 mkdir conftest.dir
4262 # Copy depcomp to subdir because otherwise we won't find it if we're
4263 # using a relative directory.
4264 cp "$am_depcomp" conftest.dir
4265 cd conftest.dir
4266 # We will build objects and dependencies in a subdirectory because
4267 # it helps to detect inapplicable dependency modes. For instance
4268 # both Tru64's cc and ICC support -MD to output dependencies as a
4269 # side effect of compilation, but ICC will put the dependencies in
4270 # the current directory while Tru64 will put them in the object
4271 # directory.
4272 mkdir sub
4273
4274 am_cv_CC_dependencies_compiler_type=none
4275 if test "$am_compiler_list" = ""; then
4276 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4277 fi
4278 am__universal=false
4279 case " $depcc " in #(
4280 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4281 esac
4282
4283 for depmode in $am_compiler_list; do
4284 # Setup a source with many dependencies, because some compilers
4285 # like to wrap large dependency lists on column 80 (with \), and
4286 # we should not choose a depcomp mode which is confused by this.
4287 #
4288 # We need to recreate these files for each test, as the compiler may
4289 # overwrite some of them when testing with obscure command lines.
4290 # This happens at least with the AIX C compiler.
4291 : > sub/conftest.c
4292 for i in 1 2 3 4 5 6; do
4293 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4294 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4295 # Solaris 10 /bin/sh.
4296 echo '/* dummy */' > sub/conftst$i.h
4297 done
4298 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4299
4300 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4301 # mode. It turns out that the SunPro C++ compiler does not properly
4302 # handle '-M -o', and we need to detect this. Also, some Intel
4303 # versions had trouble with output in subdirs.
4304 am__obj=sub/conftest.${OBJEXT-o}
4305 am__minus_obj="-o $am__obj"
4306 case $depmode in
4307 gcc)
4308 # This depmode causes a compiler race in universal mode.
4309 test "$am__universal" = false || continue
4310 ;;
4311 nosideeffect)
4312 # After this tag, mechanisms are not by side-effect, so they'll
4313 # only be used when explicitly requested.
4314 if test "x$enable_dependency_tracking" = xyes; then
4315 continue
4316 else
4317 break
4318 fi
4319 ;;
4320 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4321 # This compiler won't grok '-c -o', but also, the minuso test has
4322 # not run yet. These depmodes are late enough in the game, and
4323 # so weak that their functioning should not be impacted.
4324 am__obj=conftest.${OBJEXT-o}
4325 am__minus_obj=
4326 ;;
4327 none) break ;;
4328 esac
4329 if depmode=$depmode \
4330 source=sub/conftest.c object=$am__obj \
4331 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4332 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4333 >/dev/null 2>conftest.err &&
4334 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4335 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4336 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4337 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4338 # icc doesn't choke on unknown options, it will just issue warnings
4339 # or remarks (even with -Werror). So we grep stderr for any message
4340 # that says an option was ignored or not supported.
4341 # When given -MP, icc 7.0 and 7.1 complain thusly:
4342 # icc: Command line warning: ignoring option '-M'; no argument required
4343 # The diagnosis changed in icc 8.0:
4344 # icc: Command line remark: option '-MP' not supported
4345 if (grep 'ignoring option' conftest.err ||
4346 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4347 am_cv_CC_dependencies_compiler_type=$depmode
4348 break
4349 fi
4350 fi
4351 done
4352
4353 cd ..
4354 rm -rf conftest.dir
4355 else
4356 am_cv_CC_dependencies_compiler_type=none
4357 fi
4358
4359 fi
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4361 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4362 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4363
4364 if
4365 test "x$enable_dependency_tracking" != xno \
4366 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4367 am__fastdepCC_TRUE=
4368 am__fastdepCC_FALSE='#'
4369 else
4370 am__fastdepCC_TRUE='#'
4371 am__fastdepCC_FALSE=
4372 fi
4373
4374
4375 case $ac_cv_prog_cc_stdc in #(
4376 no) :
4377 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4378 *) :
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4380 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4381 if ${ac_cv_prog_cc_c99+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 ac_cv_prog_cc_c99=no
4385 ac_save_CC=$CC
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388 #include <stdarg.h>
4389 #include <stdbool.h>
4390 #include <stdlib.h>
4391 #include <wchar.h>
4392 #include <stdio.h>
4393
4394 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4395 #define debug(...) fprintf (stderr, __VA_ARGS__)
4396 #define showlist(...) puts (#__VA_ARGS__)
4397 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4398 static void
4399 test_varargs_macros (void)
4400 {
4401 int x = 1234;
4402 int y = 5678;
4403 debug ("Flag");
4404 debug ("X = %d\n", x);
4405 showlist (The first, second, and third items.);
4406 report (x>y, "x is %d but y is %d", x, y);
4407 }
4408
4409 // Check long long types.
4410 #define BIG64 18446744073709551615ull
4411 #define BIG32 4294967295ul
4412 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4413 #if !BIG_OK
4414 your preprocessor is broken;
4415 #endif
4416 #if BIG_OK
4417 #else
4418 your preprocessor is broken;
4419 #endif
4420 static long long int bignum = -9223372036854775807LL;
4421 static unsigned long long int ubignum = BIG64;
4422
4423 struct incomplete_array
4424 {
4425 int datasize;
4426 double data[];
4427 };
4428
4429 struct named_init {
4430 int number;
4431 const wchar_t *name;
4432 double average;
4433 };
4434
4435 typedef const char *ccp;
4436
4437 static inline int
4438 test_restrict (ccp restrict text)
4439 {
4440 // See if C++-style comments work.
4441 // Iterate through items via the restricted pointer.
4442 // Also check for declarations in for loops.
4443 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4444 continue;
4445 return 0;
4446 }
4447
4448 // Check varargs and va_copy.
4449 static void
4450 test_varargs (const char *format, ...)
4451 {
4452 va_list args;
4453 va_start (args, format);
4454 va_list args_copy;
4455 va_copy (args_copy, args);
4456
4457 const char *str;
4458 int number;
4459 float fnumber;
4460
4461 while (*format)
4462 {
4463 switch (*format++)
4464 {
4465 case 's': // string
4466 str = va_arg (args_copy, const char *);
4467 break;
4468 case 'd': // int
4469 number = va_arg (args_copy, int);
4470 break;
4471 case 'f': // float
4472 fnumber = va_arg (args_copy, double);
4473 break;
4474 default:
4475 break;
4476 }
4477 }
4478 va_end (args_copy);
4479 va_end (args);
4480 }
4481
4482 int
4483 main ()
4484 {
4485
4486 // Check bool.
4487 _Bool success = false;
4488
4489 // Check restrict.
4490 if (test_restrict ("String literal") == 0)
4491 success = true;
4492 char *restrict newvar = "Another string";
4493
4494 // Check varargs.
4495 test_varargs ("s, d' f .", "string", 65, 34.234);
4496 test_varargs_macros ();
4497
4498 // Check flexible array members.
4499 struct incomplete_array *ia =
4500 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4501 ia->datasize = 10;
4502 for (int i = 0; i < ia->datasize; ++i)
4503 ia->data[i] = i * 1.234;
4504
4505 // Check named initializers.
4506 struct named_init ni = {
4507 .number = 34,
4508 .name = L"Test wide string",
4509 .average = 543.34343,
4510 };
4511
4512 ni.number = 58;
4513
4514 int dynamic_array[ni.number];
4515 dynamic_array[ni.number - 1] = 543;
4516
4517 // work around unused variable warnings
4518 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4519 || dynamic_array[ni.number - 1] != 543);
4520
4521 ;
4522 return 0;
4523 }
4524 _ACEOF
4525 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4526 do
4527 CC="$ac_save_CC $ac_arg"
4528 if ac_fn_c_try_compile "$LINENO"; then :
4529 ac_cv_prog_cc_c99=$ac_arg
4530 fi
4531 rm -f core conftest.err conftest.$ac_objext
4532 test "x$ac_cv_prog_cc_c99" != "xno" && break
4533 done
4534 rm -f conftest.$ac_ext
4535 CC=$ac_save_CC
4536
4537 fi
4538 # AC_CACHE_VAL
4539 case "x$ac_cv_prog_cc_c99" in
4540 x)
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4542 $as_echo "none needed" >&6; } ;;
4543 xno)
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4545 $as_echo "unsupported" >&6; } ;;
4546 *)
4547 CC="$CC $ac_cv_prog_cc_c99"
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4549 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4550 esac
4551 if test "x$ac_cv_prog_cc_c99" != xno; then :
4552 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4553 else
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4555 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4556 if ${ac_cv_prog_cc_c89+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 ac_cv_prog_cc_c89=no
4560 ac_save_CC=$CC
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563 #include <stdarg.h>
4564 #include <stdio.h>
4565 struct stat;
4566 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4567 struct buf { int x; };
4568 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4569 static char *e (p, i)
4570 char **p;
4571 int i;
4572 {
4573 return p[i];
4574 }
4575 static char *f (char * (*g) (char **, int), char **p, ...)
4576 {
4577 char *s;
4578 va_list v;
4579 va_start (v,p);
4580 s = g (p, va_arg (v,int));
4581 va_end (v);
4582 return s;
4583 }
4584
4585 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4586 function prototypes and stuff, but not '\xHH' hex character constants.
4587 These don't provoke an error unfortunately, instead are silently treated
4588 as 'x'. The following induces an error, until -std is added to get
4589 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4590 array size at least. It's necessary to write '\x00'==0 to get something
4591 that's true only with -std. */
4592 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4593
4594 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4595 inside strings and character constants. */
4596 #define FOO(x) 'x'
4597 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4598
4599 int test (int i, double x);
4600 struct s1 {int (*f) (int a);};
4601 struct s2 {int (*f) (double a);};
4602 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4603 int argc;
4604 char **argv;
4605 int
4606 main ()
4607 {
4608 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4609 ;
4610 return 0;
4611 }
4612 _ACEOF
4613 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4614 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4615 do
4616 CC="$ac_save_CC $ac_arg"
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618 ac_cv_prog_cc_c89=$ac_arg
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext
4621 test "x$ac_cv_prog_cc_c89" != "xno" && break
4622 done
4623 rm -f conftest.$ac_ext
4624 CC=$ac_save_CC
4625
4626 fi
4627 # AC_CACHE_VAL
4628 case "x$ac_cv_prog_cc_c89" in
4629 x)
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4631 $as_echo "none needed" >&6; } ;;
4632 xno)
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4634 $as_echo "unsupported" >&6; } ;;
4635 *)
4636 CC="$CC $ac_cv_prog_cc_c89"
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4638 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4639 esac
4640 if test "x$ac_cv_prog_cc_c89" != xno; then :
4641 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4642 else
4643 ac_cv_prog_cc_stdc=no
4644 fi
4645
4646 fi
4647 ;;
4648 esac
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4650 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4651 if ${ac_cv_prog_cc_stdc+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 fi
4654
4655 case $ac_cv_prog_cc_stdc in #(
4656 no) :
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4658 $as_echo "unsupported" >&6; } ;; #(
4659 '') :
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4661 $as_echo "none needed" >&6; } ;; #(
4662 *) :
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4664 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4665 esac
4666
4667
4668 ac_ext=c
4669 ac_cpp='$CPP $CPPFLAGS'
4670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4674 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4675 # On Suns, sometimes $CPP names a directory.
4676 if test -n "$CPP" && test -d "$CPP"; then
4677 CPP=
4678 fi
4679 if test -z "$CPP"; then
4680 if ${ac_cv_prog_CPP+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 # Double quotes because CPP needs to be expanded
4684 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4685 do
4686 ac_preproc_ok=false
4687 for ac_c_preproc_warn_flag in '' yes
4688 do
4689 # Use a header file that comes with gcc, so configuring glibc
4690 # with a fresh cross-compiler works.
4691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692 # <limits.h> exists even on freestanding compilers.
4693 # On the NeXT, cc -E runs the code through the compiler's parser,
4694 # not just through cpp. "Syntax error" is here to catch this case.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #ifdef __STDC__
4698 # include <limits.h>
4699 #else
4700 # include <assert.h>
4701 #endif
4702 Syntax error
4703 _ACEOF
4704 if ac_fn_c_try_cpp "$LINENO"; then :
4705
4706 else
4707 # Broken: fails on valid input.
4708 continue
4709 fi
4710 rm -f conftest.err conftest.i conftest.$ac_ext
4711
4712 # OK, works on sane cases. Now check whether nonexistent headers
4713 # can be detected and how.
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716 #include <ac_nonexistent.h>
4717 _ACEOF
4718 if ac_fn_c_try_cpp "$LINENO"; then :
4719 # Broken: success on invalid input.
4720 continue
4721 else
4722 # Passes both tests.
4723 ac_preproc_ok=:
4724 break
4725 fi
4726 rm -f conftest.err conftest.i conftest.$ac_ext
4727
4728 done
4729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4730 rm -f conftest.i conftest.err conftest.$ac_ext
4731 if $ac_preproc_ok; then :
4732 break
4733 fi
4734
4735 done
4736 ac_cv_prog_CPP=$CPP
4737
4738 fi
4739 CPP=$ac_cv_prog_CPP
4740 else
4741 ac_cv_prog_CPP=$CPP
4742 fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4744 $as_echo "$CPP" >&6; }
4745 ac_preproc_ok=false
4746 for ac_c_preproc_warn_flag in '' yes
4747 do
4748 # Use a header file that comes with gcc, so configuring glibc
4749 # with a fresh cross-compiler works.
4750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4751 # <limits.h> exists even on freestanding compilers.
4752 # On the NeXT, cc -E runs the code through the compiler's parser,
4753 # not just through cpp. "Syntax error" is here to catch this case.
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4756 #ifdef __STDC__
4757 # include <limits.h>
4758 #else
4759 # include <assert.h>
4760 #endif
4761 Syntax error
4762 _ACEOF
4763 if ac_fn_c_try_cpp "$LINENO"; then :
4764
4765 else
4766 # Broken: fails on valid input.
4767 continue
4768 fi
4769 rm -f conftest.err conftest.i conftest.$ac_ext
4770
4771 # OK, works on sane cases. Now check whether nonexistent headers
4772 # can be detected and how.
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 #include <ac_nonexistent.h>
4776 _ACEOF
4777 if ac_fn_c_try_cpp "$LINENO"; then :
4778 # Broken: success on invalid input.
4779 continue
4780 else
4781 # Passes both tests.
4782 ac_preproc_ok=:
4783 break
4784 fi
4785 rm -f conftest.err conftest.i conftest.$ac_ext
4786
4787 done
4788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4789 rm -f conftest.i conftest.err conftest.$ac_ext
4790 if $ac_preproc_ok; then :
4791
4792 else
4793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4795 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4796 See \`config.log' for more details" "$LINENO" 5; }
4797 fi
4798
4799 ac_ext=c
4800 ac_cpp='$CPP $CPPFLAGS'
4801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804
4805
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4807 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4808 if ${ac_cv_path_GREP+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 if test -z "$GREP"; then
4812 ac_path_GREP_found=false
4813 # Loop through the user's path and test for each of PROGNAME-LIST
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4816 do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_prog in grep ggrep; do
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4822 as_fn_executable_p "$ac_path_GREP" || continue
4823 # Check for GNU ac_path_GREP and select it if it is found.
4824 # Check for GNU $ac_path_GREP
4825 case `"$ac_path_GREP" --version 2>&1` in
4826 *GNU*)
4827 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4828 *)
4829 ac_count=0
4830 $as_echo_n 0123456789 >"conftest.in"
4831 while :
4832 do
4833 cat "conftest.in" "conftest.in" >"conftest.tmp"
4834 mv "conftest.tmp" "conftest.in"
4835 cp "conftest.in" "conftest.nl"
4836 $as_echo 'GREP' >> "conftest.nl"
4837 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4839 as_fn_arith $ac_count + 1 && ac_count=$as_val
4840 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4841 # Best one so far, save it but keep looking for a better one
4842 ac_cv_path_GREP="$ac_path_GREP"
4843 ac_path_GREP_max=$ac_count
4844 fi
4845 # 10*(2^10) chars as input seems more than enough
4846 test $ac_count -gt 10 && break
4847 done
4848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4849 esac
4850
4851 $ac_path_GREP_found && break 3
4852 done
4853 done
4854 done
4855 IFS=$as_save_IFS
4856 if test -z "$ac_cv_path_GREP"; then
4857 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4858 fi
4859 else
4860 ac_cv_path_GREP=$GREP
4861 fi
4862
4863 fi
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4865 $as_echo "$ac_cv_path_GREP" >&6; }
4866 GREP="$ac_cv_path_GREP"
4867
4868
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4870 $as_echo_n "checking for egrep... " >&6; }
4871 if ${ac_cv_path_EGREP+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4875 then ac_cv_path_EGREP="$GREP -E"
4876 else
4877 if test -z "$EGREP"; then
4878 ac_path_EGREP_found=false
4879 # Loop through the user's path and test for each of PROGNAME-LIST
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4882 do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_prog in egrep; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4888 as_fn_executable_p "$ac_path_EGREP" || continue
4889 # Check for GNU ac_path_EGREP and select it if it is found.
4890 # Check for GNU $ac_path_EGREP
4891 case `"$ac_path_EGREP" --version 2>&1` in
4892 *GNU*)
4893 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4894 *)
4895 ac_count=0
4896 $as_echo_n 0123456789 >"conftest.in"
4897 while :
4898 do
4899 cat "conftest.in" "conftest.in" >"conftest.tmp"
4900 mv "conftest.tmp" "conftest.in"
4901 cp "conftest.in" "conftest.nl"
4902 $as_echo 'EGREP' >> "conftest.nl"
4903 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4905 as_fn_arith $ac_count + 1 && ac_count=$as_val
4906 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4907 # Best one so far, save it but keep looking for a better one
4908 ac_cv_path_EGREP="$ac_path_EGREP"
4909 ac_path_EGREP_max=$ac_count
4910 fi
4911 # 10*(2^10) chars as input seems more than enough
4912 test $ac_count -gt 10 && break
4913 done
4914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4915 esac
4916
4917 $ac_path_EGREP_found && break 3
4918 done
4919 done
4920 done
4921 IFS=$as_save_IFS
4922 if test -z "$ac_cv_path_EGREP"; then
4923 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4924 fi
4925 else
4926 ac_cv_path_EGREP=$EGREP
4927 fi
4928
4929 fi
4930 fi
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4932 $as_echo "$ac_cv_path_EGREP" >&6; }
4933 EGREP="$ac_cv_path_EGREP"
4934
4935
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4937 $as_echo_n "checking for ANSI C header files... " >&6; }
4938 if ${ac_cv_header_stdc+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943 #include <stdlib.h>
4944 #include <stdarg.h>
4945 #include <string.h>
4946 #include <float.h>
4947
4948 int
4949 main ()
4950 {
4951
4952 ;
4953 return 0;
4954 }
4955 _ACEOF
4956 if ac_fn_c_try_compile "$LINENO"; then :
4957 ac_cv_header_stdc=yes
4958 else
4959 ac_cv_header_stdc=no
4960 fi
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962
4963 if test $ac_cv_header_stdc = yes; then
4964 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 #include <string.h>
4968
4969 _ACEOF
4970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971 $EGREP "memchr" >/dev/null 2>&1; then :
4972
4973 else
4974 ac_cv_header_stdc=no
4975 fi
4976 rm -f conftest*
4977
4978 fi
4979
4980 if test $ac_cv_header_stdc = yes; then
4981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 #include <stdlib.h>
4985
4986 _ACEOF
4987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988 $EGREP "free" >/dev/null 2>&1; then :
4989
4990 else
4991 ac_cv_header_stdc=no
4992 fi
4993 rm -f conftest*
4994
4995 fi
4996
4997 if test $ac_cv_header_stdc = yes; then
4998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4999 if test "$cross_compiling" = yes; then :
5000 :
5001 else
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 #include <ctype.h>
5005 #include <stdlib.h>
5006 #if ((' ' & 0x0FF) == 0x020)
5007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5009 #else
5010 # define ISLOWER(c) \
5011 (('a' <= (c) && (c) <= 'i') \
5012 || ('j' <= (c) && (c) <= 'r') \
5013 || ('s' <= (c) && (c) <= 'z'))
5014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5015 #endif
5016
5017 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5018 int
5019 main ()
5020 {
5021 int i;
5022 for (i = 0; i < 256; i++)
5023 if (XOR (islower (i), ISLOWER (i))
5024 || toupper (i) != TOUPPER (i))
5025 return 2;
5026 return 0;
5027 }
5028 _ACEOF
5029 if ac_fn_c_try_run "$LINENO"; then :
5030
5031 else
5032 ac_cv_header_stdc=no
5033 fi
5034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5035 conftest.$ac_objext conftest.beam conftest.$ac_ext
5036 fi
5037
5038 fi
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5041 $as_echo "$ac_cv_header_stdc" >&6; }
5042 if test $ac_cv_header_stdc = yes; then
5043
5044 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5045
5046 fi
5047
5048 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5049 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5050 inttypes.h stdint.h unistd.h
5051 do :
5052 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5053 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5054 "
5055 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5056 cat >>confdefs.h <<_ACEOF
5057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5058 _ACEOF
5059
5060 fi
5061
5062 done
5063
5064
5065
5066 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5067 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5068 MINIX=yes
5069 else
5070 MINIX=
5071 fi
5072
5073
5074 if test "$MINIX" = yes; then
5075
5076 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5077
5078
5079 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5080
5081
5082 $as_echo "#define _MINIX 1" >>confdefs.h
5083
5084 fi
5085
5086
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5088 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5089 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094
5095 # define __EXTENSIONS__ 1
5096 $ac_includes_default
5097 int
5098 main ()
5099 {
5100
5101 ;
5102 return 0;
5103 }
5104 _ACEOF
5105 if ac_fn_c_try_compile "$LINENO"; then :
5106 ac_cv_safe_to_define___extensions__=yes
5107 else
5108 ac_cv_safe_to_define___extensions__=no
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 fi
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5113 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5114 test $ac_cv_safe_to_define___extensions__ = yes &&
5115 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5116
5117 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5118
5119 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5120
5121 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5122
5123 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5124
5125
5126 if test "x$CC" != xcc; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5128 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5129 else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5131 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5132 fi
5133 set dummy $CC; ac_cc=`$as_echo "$2" |
5134 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5135 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140
5141 int
5142 main ()
5143 {
5144
5145 ;
5146 return 0;
5147 }
5148 _ACEOF
5149 # Make sure it works both with $CC and with simple cc.
5150 # We do the test twice because some compilers refuse to overwrite an
5151 # existing .o file with -o, though they will create one.
5152 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5153 rm -f conftest2.*
5154 if { { case "(($ac_try" in
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5157 esac
5158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5159 $as_echo "$ac_try_echo"; } >&5
5160 (eval "$ac_try") 2>&5
5161 ac_status=$?
5162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5163 test $ac_status = 0; } &&
5164 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5167 esac
5168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5169 $as_echo "$ac_try_echo"; } >&5
5170 (eval "$ac_try") 2>&5
5171 ac_status=$?
5172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5173 test $ac_status = 0; };
5174 then
5175 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5176 if test "x$CC" != xcc; then
5177 # Test first that cc exists at all.
5178 if { ac_try='cc -c conftest.$ac_ext >&5'
5179 { { case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182 esac
5183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5184 $as_echo "$ac_try_echo"; } >&5
5185 (eval "$ac_try") 2>&5
5186 ac_status=$?
5187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5188 test $ac_status = 0; }; }; then
5189 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5190 rm -f conftest2.*
5191 if { { case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5194 esac
5195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5196 $as_echo "$ac_try_echo"; } >&5
5197 (eval "$ac_try") 2>&5
5198 ac_status=$?
5199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5200 test $ac_status = 0; } &&
5201 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203 *) ac_try_echo=$ac_try;;
5204 esac
5205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5206 $as_echo "$ac_try_echo"; } >&5
5207 (eval "$ac_try") 2>&5
5208 ac_status=$?
5209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5210 test $ac_status = 0; };
5211 then
5212 # cc works too.
5213 :
5214 else
5215 # cc exists but doesn't like -o.
5216 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5217 fi
5218 fi
5219 fi
5220 else
5221 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5222 fi
5223 rm -f core conftest*
5224
5225 fi
5226 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5228 $as_echo "yes" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232
5233 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5234
5235 fi
5236
5237 # FIXME: we rely on the cache variable name because
5238 # there is no other way.
5239 set dummy $CC
5240 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5241 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5242 if test "$am_t" != yes; then
5243 # Losing compiler, so override with the script.
5244 # FIXME: It is wrong to rewrite CC.
5245 # But if we don't then we get into trouble of one sort or another.
5246 # A longer-term fix would be to have automake use am__CC in this case,
5247 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5248 CC="$am_aux_dir/compile $CC"
5249 fi
5250
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5253 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5254 if ${ac_cv_c_bigendian+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 ac_cv_c_bigendian=unknown
5258 # See if we're dealing with a universal compiler.
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261 #ifndef __APPLE_CC__
5262 not a universal capable compiler
5263 #endif
5264 typedef int dummy;
5265
5266 _ACEOF
5267 if ac_fn_c_try_compile "$LINENO"; then :
5268
5269 # Check for potential -arch flags. It is not universal unless
5270 # there are at least two -arch flags with different values.
5271 ac_arch=
5272 ac_prev=
5273 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5274 if test -n "$ac_prev"; then
5275 case $ac_word in
5276 i?86 | x86_64 | ppc | ppc64)
5277 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5278 ac_arch=$ac_word
5279 else
5280 ac_cv_c_bigendian=universal
5281 break
5282 fi
5283 ;;
5284 esac
5285 ac_prev=
5286 elif test "x$ac_word" = "x-arch"; then
5287 ac_prev=arch
5288 fi
5289 done
5290 fi
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 if test $ac_cv_c_bigendian = unknown; then
5293 # See if sys/param.h defines the BYTE_ORDER macro.
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 #include <sys/types.h>
5297 #include <sys/param.h>
5298
5299 int
5300 main ()
5301 {
5302 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5303 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5304 && LITTLE_ENDIAN)
5305 bogus endian macros
5306 #endif
5307
5308 ;
5309 return 0;
5310 }
5311 _ACEOF
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313 # It does; now see whether it defined to BIG_ENDIAN or not.
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 #include <sys/types.h>
5317 #include <sys/param.h>
5318
5319 int
5320 main ()
5321 {
5322 #if BYTE_ORDER != BIG_ENDIAN
5323 not big endian
5324 #endif
5325
5326 ;
5327 return 0;
5328 }
5329 _ACEOF
5330 if ac_fn_c_try_compile "$LINENO"; then :
5331 ac_cv_c_bigendian=yes
5332 else
5333 ac_cv_c_bigendian=no
5334 fi
5335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 fi
5339 if test $ac_cv_c_bigendian = unknown; then
5340 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343 #include <limits.h>
5344
5345 int
5346 main ()
5347 {
5348 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5349 bogus endian macros
5350 #endif
5351
5352 ;
5353 return 0;
5354 }
5355 _ACEOF
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357 # It does; now see whether it defined to _BIG_ENDIAN or not.
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5360 #include <limits.h>
5361
5362 int
5363 main ()
5364 {
5365 #ifndef _BIG_ENDIAN
5366 not big endian
5367 #endif
5368
5369 ;
5370 return 0;
5371 }
5372 _ACEOF
5373 if ac_fn_c_try_compile "$LINENO"; then :
5374 ac_cv_c_bigendian=yes
5375 else
5376 ac_cv_c_bigendian=no
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 fi
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 fi
5382 if test $ac_cv_c_bigendian = unknown; then
5383 # Compile a test program.
5384 if test "$cross_compiling" = yes; then :
5385 # Try to guess by grepping values from an object file.
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 short int ascii_mm[] =
5389 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5390 short int ascii_ii[] =
5391 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5392 int use_ascii (int i) {
5393 return ascii_mm[i] + ascii_ii[i];
5394 }
5395 short int ebcdic_ii[] =
5396 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5397 short int ebcdic_mm[] =
5398 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5399 int use_ebcdic (int i) {
5400 return ebcdic_mm[i] + ebcdic_ii[i];
5401 }
5402 extern int foo;
5403
5404 int
5405 main ()
5406 {
5407 return use_ascii (foo) == use_ebcdic (foo);
5408 ;
5409 return 0;
5410 }
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5414 ac_cv_c_bigendian=yes
5415 fi
5416 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5417 if test "$ac_cv_c_bigendian" = unknown; then
5418 ac_cv_c_bigendian=no
5419 else
5420 # finding both strings is unlikely to happen, but who knows?
5421 ac_cv_c_bigendian=unknown
5422 fi
5423 fi
5424 fi
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426 else
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 $ac_includes_default
5430 int
5431 main ()
5432 {
5433
5434 /* Are we little or big endian? From Harbison&Steele. */
5435 union
5436 {
5437 long int l;
5438 char c[sizeof (long int)];
5439 } u;
5440 u.l = 1;
5441 return u.c[sizeof (long int) - 1] == 1;
5442
5443 ;
5444 return 0;
5445 }
5446 _ACEOF
5447 if ac_fn_c_try_run "$LINENO"; then :
5448 ac_cv_c_bigendian=no
5449 else
5450 ac_cv_c_bigendian=yes
5451 fi
5452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5453 conftest.$ac_objext conftest.beam conftest.$ac_ext
5454 fi
5455
5456 fi
5457 fi
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5459 $as_echo "$ac_cv_c_bigendian" >&6; }
5460 case $ac_cv_c_bigendian in #(
5461 yes)
5462 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5463 ;; #(
5464 no)
5465 ;; #(
5466 universal)
5467
5468 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5469
5470 ;; #(
5471 *)
5472 as_fn_error $? "unknown endianness
5473 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5474 esac
5475
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5478 $as_echo_n "checking whether ln -s works... " >&6; }
5479 LN_S=$as_ln_s
5480 if test "$LN_S" = "ln -s"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5482 $as_echo "yes" >&6; }
5483 else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5485 $as_echo "no, using $LN_S" >&6; }
5486 fi
5487
5488 case `pwd` in
5489 *\ * | *\ *)
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5491 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5492 esac
5493
5494
5495
5496 macro_version='2.2.6b'
5497 macro_revision='1.3017'
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511 ltmain="$ac_aux_dir/ltmain.sh"
5512
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5514 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5515 if ${ac_cv_path_SED+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5519 for ac_i in 1 2 3 4 5 6 7; do
5520 ac_script="$ac_script$as_nl$ac_script"
5521 done
5522 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5523 { ac_script=; unset ac_script;}
5524 if test -z "$SED"; then
5525 ac_path_SED_found=false
5526 # Loop through the user's path and test for each of PROGNAME-LIST
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_prog in sed gsed; do
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5535 as_fn_executable_p "$ac_path_SED" || continue
5536 # Check for GNU ac_path_SED and select it if it is found.
5537 # Check for GNU $ac_path_SED
5538 case `"$ac_path_SED" --version 2>&1` in
5539 *GNU*)
5540 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5541 *)
5542 ac_count=0
5543 $as_echo_n 0123456789 >"conftest.in"
5544 while :
5545 do
5546 cat "conftest.in" "conftest.in" >"conftest.tmp"
5547 mv "conftest.tmp" "conftest.in"
5548 cp "conftest.in" "conftest.nl"
5549 $as_echo '' >> "conftest.nl"
5550 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5552 as_fn_arith $ac_count + 1 && ac_count=$as_val
5553 if test $ac_count -gt ${ac_path_SED_max-0}; then
5554 # Best one so far, save it but keep looking for a better one
5555 ac_cv_path_SED="$ac_path_SED"
5556 ac_path_SED_max=$ac_count
5557 fi
5558 # 10*(2^10) chars as input seems more than enough
5559 test $ac_count -gt 10 && break
5560 done
5561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5562 esac
5563
5564 $ac_path_SED_found && break 3
5565 done
5566 done
5567 done
5568 IFS=$as_save_IFS
5569 if test -z "$ac_cv_path_SED"; then
5570 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5571 fi
5572 else
5573 ac_cv_path_SED=$SED
5574 fi
5575
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5578 $as_echo "$ac_cv_path_SED" >&6; }
5579 SED="$ac_cv_path_SED"
5580 rm -f conftest.sed
5581
5582 test -z "$SED" && SED=sed
5583 Xsed="$SED -e 1s/^X//"
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5596 $as_echo_n "checking for fgrep... " >&6; }
5597 if ${ac_cv_path_FGREP+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5601 then ac_cv_path_FGREP="$GREP -F"
5602 else
5603 if test -z "$FGREP"; then
5604 ac_path_FGREP_found=false
5605 # Loop through the user's path and test for each of PROGNAME-LIST
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5608 do
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_prog in fgrep; do
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5614 as_fn_executable_p "$ac_path_FGREP" || continue
5615 # Check for GNU ac_path_FGREP and select it if it is found.
5616 # Check for GNU $ac_path_FGREP
5617 case `"$ac_path_FGREP" --version 2>&1` in
5618 *GNU*)
5619 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5620 *)
5621 ac_count=0
5622 $as_echo_n 0123456789 >"conftest.in"
5623 while :
5624 do
5625 cat "conftest.in" "conftest.in" >"conftest.tmp"
5626 mv "conftest.tmp" "conftest.in"
5627 cp "conftest.in" "conftest.nl"
5628 $as_echo 'FGREP' >> "conftest.nl"
5629 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5631 as_fn_arith $ac_count + 1 && ac_count=$as_val
5632 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5633 # Best one so far, save it but keep looking for a better one
5634 ac_cv_path_FGREP="$ac_path_FGREP"
5635 ac_path_FGREP_max=$ac_count
5636 fi
5637 # 10*(2^10) chars as input seems more than enough
5638 test $ac_count -gt 10 && break
5639 done
5640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5641 esac
5642
5643 $ac_path_FGREP_found && break 3
5644 done
5645 done
5646 done
5647 IFS=$as_save_IFS
5648 if test -z "$ac_cv_path_FGREP"; then
5649 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5650 fi
5651 else
5652 ac_cv_path_FGREP=$FGREP
5653 fi
5654
5655 fi
5656 fi
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5658 $as_echo "$ac_cv_path_FGREP" >&6; }
5659 FGREP="$ac_cv_path_FGREP"
5660
5661
5662 test -z "$GREP" && GREP=grep
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682 # Check whether --with-gnu-ld was given.
5683 if test "${with_gnu_ld+set}" = set; then :
5684 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5685 else
5686 with_gnu_ld=no
5687 fi
5688
5689 ac_prog=ld
5690 if test "$GCC" = yes; then
5691 # Check if gcc -print-prog-name=ld gives a path.
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5693 $as_echo_n "checking for ld used by $CC... " >&6; }
5694 case $host in
5695 *-*-mingw*)
5696 # gcc leaves a trailing carriage return which upsets mingw
5697 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5698 *)
5699 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5700 esac
5701 case $ac_prog in
5702 # Accept absolute paths.
5703 [\\/]* | ?:[\\/]*)
5704 re_direlt='/[^/][^/]*/\.\./'
5705 # Canonicalize the pathname of ld
5706 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5707 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5708 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5709 done
5710 test -z "$LD" && LD="$ac_prog"
5711 ;;
5712 "")
5713 # If it fails, then pretend we aren't using GCC.
5714 ac_prog=ld
5715 ;;
5716 *)
5717 # If it is relative, then search for the first ld in PATH.
5718 with_gnu_ld=unknown
5719 ;;
5720 esac
5721 elif test "$with_gnu_ld" = yes; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5723 $as_echo_n "checking for GNU ld... " >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5726 $as_echo_n "checking for non-GNU ld... " >&6; }
5727 fi
5728 if ${lt_cv_path_LD+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if test -z "$LD"; then
5732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5733 for ac_dir in $PATH; do
5734 IFS="$lt_save_ifs"
5735 test -z "$ac_dir" && ac_dir=.
5736 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5737 lt_cv_path_LD="$ac_dir/$ac_prog"
5738 # Check to see if the program is GNU ld. I'd rather use --version,
5739 # but apparently some variants of GNU ld only accept -v.
5740 # Break only if it was the GNU/non-GNU ld that we prefer.
5741 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5742 *GNU* | *'with BFD'*)
5743 test "$with_gnu_ld" != no && break
5744 ;;
5745 *)
5746 test "$with_gnu_ld" != yes && break
5747 ;;
5748 esac
5749 fi
5750 done
5751 IFS="$lt_save_ifs"
5752 else
5753 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5754 fi
5755 fi
5756
5757 LD="$lt_cv_path_LD"
5758 if test -n "$LD"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5760 $as_echo "$LD" >&6; }
5761 else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 fi
5765 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5767 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5768 if ${lt_cv_prog_gnu_ld+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5772 case `$LD -v 2>&1 </dev/null` in
5773 *GNU* | *'with BFD'*)
5774 lt_cv_prog_gnu_ld=yes
5775 ;;
5776 *)
5777 lt_cv_prog_gnu_ld=no
5778 ;;
5779 esac
5780 fi
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5782 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5783 with_gnu_ld=$lt_cv_prog_gnu_ld
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5794 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5795 if ${lt_cv_path_NM+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 if test -n "$NM"; then
5799 # Let the user override the test.
5800 lt_cv_path_NM="$NM"
5801 else
5802 lt_nm_to_check="${ac_tool_prefix}nm"
5803 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5804 lt_nm_to_check="$lt_nm_to_check nm"
5805 fi
5806 for lt_tmp_nm in $lt_nm_to_check; do
5807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5808 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5809 IFS="$lt_save_ifs"
5810 test -z "$ac_dir" && ac_dir=.
5811 tmp_nm="$ac_dir/$lt_tmp_nm"
5812 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5813 # Check to see if the nm accepts a BSD-compat flag.
5814 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5815 # nm: unknown option "B" ignored
5816 # Tru64's nm complains that /dev/null is an invalid object file
5817 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5818 */dev/null* | *'Invalid file or object type'*)
5819 lt_cv_path_NM="$tmp_nm -B"
5820 break
5821 ;;
5822 *)
5823 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5824 */dev/null*)
5825 lt_cv_path_NM="$tmp_nm -p"
5826 break
5827 ;;
5828 *)
5829 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5830 continue # so that we can try to find one that supports BSD flags
5831 ;;
5832 esac
5833 ;;
5834 esac
5835 fi
5836 done
5837 IFS="$lt_save_ifs"
5838 done
5839 : ${lt_cv_path_NM=no}
5840 fi
5841 fi
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5843 $as_echo "$lt_cv_path_NM" >&6; }
5844 if test "$lt_cv_path_NM" != "no"; then
5845 NM="$lt_cv_path_NM"
5846 else
5847 # Didn't find any BSD compatible name lister, look for dumpbin.
5848 if test -n "$ac_tool_prefix"; then
5849 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5850 do
5851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if ${ac_cv_prog_DUMPBIN+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -n "$DUMPBIN"; then
5859 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872 done
5873 done
5874 IFS=$as_save_IFS
5875
5876 fi
5877 fi
5878 DUMPBIN=$ac_cv_prog_DUMPBIN
5879 if test -n "$DUMPBIN"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5881 $as_echo "$DUMPBIN" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 fi
5886
5887
5888 test -n "$DUMPBIN" && break
5889 done
5890 fi
5891 if test -z "$DUMPBIN"; then
5892 ac_ct_DUMPBIN=$DUMPBIN
5893 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5894 do
5895 # Extract the first word of "$ac_prog", so it can be a program name with args.
5896 set dummy $ac_prog; ac_word=$2
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898 $as_echo_n "checking for $ac_word... " >&6; }
5899 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 if test -n "$ac_ct_DUMPBIN"; then
5903 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916 done
5917 done
5918 IFS=$as_save_IFS
5919
5920 fi
5921 fi
5922 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5923 if test -n "$ac_ct_DUMPBIN"; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5925 $as_echo "$ac_ct_DUMPBIN" >&6; }
5926 else
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5929 fi
5930
5931
5932 test -n "$ac_ct_DUMPBIN" && break
5933 done
5934
5935 if test "x$ac_ct_DUMPBIN" = x; then
5936 DUMPBIN=":"
5937 else
5938 case $cross_compiling:$ac_tool_warned in
5939 yes:)
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5942 ac_tool_warned=yes ;;
5943 esac
5944 DUMPBIN=$ac_ct_DUMPBIN
5945 fi
5946 fi
5947
5948
5949 if test "$DUMPBIN" != ":"; then
5950 NM="$DUMPBIN"
5951 fi
5952 fi
5953 test -z "$NM" && NM=nm
5954
5955
5956
5957
5958
5959
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5961 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5962 if ${lt_cv_nm_interface+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 lt_cv_nm_interface="BSD nm"
5966 echo "int some_variable = 0;" > conftest.$ac_ext
5967 (eval echo "\"\$as_me:5967: $ac_compile\"" >&5)
5968 (eval "$ac_compile" 2>conftest.err)
5969 cat conftest.err >&5
5970 (eval echo "\"\$as_me:5970: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5971 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5972 cat conftest.err >&5
5973 (eval echo "\"\$as_me:5973: output\"" >&5)
5974 cat conftest.out >&5
5975 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5976 lt_cv_nm_interface="MS dumpbin"
5977 fi
5978 rm -f conftest*
5979 fi
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5981 $as_echo "$lt_cv_nm_interface" >&6; }
5982
5983 # find the maximum length of command line arguments
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5985 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5986 if ${lt_cv_sys_max_cmd_len+:} false; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 i=0
5990 teststring="ABCD"
5991
5992 case $build_os in
5993 msdosdjgpp*)
5994 # On DJGPP, this test can blow up pretty badly due to problems in libc
5995 # (any single argument exceeding 2000 bytes causes a buffer overrun
5996 # during glob expansion). Even if it were fixed, the result of this
5997 # check would be larger than it should be.
5998 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5999 ;;
6000
6001 gnu*)
6002 # Under GNU Hurd, this test is not required because there is
6003 # no limit to the length of command line arguments.
6004 # Libtool will interpret -1 as no limit whatsoever
6005 lt_cv_sys_max_cmd_len=-1;
6006 ;;
6007
6008 cygwin* | mingw* | cegcc*)
6009 # On Win9x/ME, this test blows up -- it succeeds, but takes
6010 # about 5 minutes as the teststring grows exponentially.
6011 # Worse, since 9x/ME are not pre-emptively multitasking,
6012 # you end up with a "frozen" computer, even though with patience
6013 # the test eventually succeeds (with a max line length of 256k).
6014 # Instead, let's just punt: use the minimum linelength reported by
6015 # all of the supported platforms: 8192 (on NT/2K/XP).
6016 lt_cv_sys_max_cmd_len=8192;
6017 ;;
6018
6019 amigaos*)
6020 # On AmigaOS with pdksh, this test takes hours, literally.
6021 # So we just punt and use a minimum line length of 8192.
6022 lt_cv_sys_max_cmd_len=8192;
6023 ;;
6024
6025 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6026 # This has been around since 386BSD, at least. Likely further.
6027 if test -x /sbin/sysctl; then
6028 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6029 elif test -x /usr/sbin/sysctl; then
6030 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6031 else
6032 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6033 fi
6034 # And add a safety zone
6035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6037 ;;
6038
6039 interix*)
6040 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6041 lt_cv_sys_max_cmd_len=196608
6042 ;;
6043
6044 osf*)
6045 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6046 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6047 # nice to cause kernel panics so lets avoid the loop below.
6048 # First set a reasonable default.
6049 lt_cv_sys_max_cmd_len=16384
6050 #
6051 if test -x /sbin/sysconfig; then
6052 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6053 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6054 esac
6055 fi
6056 ;;
6057 sco3.2v5*)
6058 lt_cv_sys_max_cmd_len=102400
6059 ;;
6060 sysv5* | sco5v6* | sysv4.2uw2*)
6061 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6062 if test -n "$kargmax"; then
6063 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6064 else
6065 lt_cv_sys_max_cmd_len=32768
6066 fi
6067 ;;
6068 *)
6069 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6070 if test -n "$lt_cv_sys_max_cmd_len"; then
6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6073 else
6074 # Make teststring a little bigger before we do anything with it.
6075 # a 1K string should be a reasonable start.
6076 for i in 1 2 3 4 5 6 7 8 ; do
6077 teststring=$teststring$teststring
6078 done
6079 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6080 # If test is not a shell built-in, we'll probably end up computing a
6081 # maximum length that is only half of the actual maximum length, but
6082 # we can't tell.
6083 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6084 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6085 test $i != 17 # 1/2 MB should be enough
6086 do
6087 i=`expr $i + 1`
6088 teststring=$teststring$teststring
6089 done
6090 # Only check the string length outside the loop.
6091 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6092 teststring=
6093 # Add a significant safety factor because C++ compilers can tack on
6094 # massive amounts of additional arguments before passing them to the
6095 # linker. It appears as though 1/2 is a usable value.
6096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6097 fi
6098 ;;
6099 esac
6100
6101 fi
6102
6103 if test -n $lt_cv_sys_max_cmd_len ; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6105 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6106 else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6108 $as_echo "none" >&6; }
6109 fi
6110 max_cmd_len=$lt_cv_sys_max_cmd_len
6111
6112
6113
6114
6115
6116
6117 : ${CP="cp -f"}
6118 : ${MV="mv -f"}
6119 : ${RM="rm -f"}
6120
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6122 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6123 # Try some XSI features
6124 xsi_shell=no
6125 ( _lt_dummy="a/b/c"
6126 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6127 = c,a/b,, \
6128 && eval 'test $(( 1 + 1 )) -eq 2 \
6129 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6130 && xsi_shell=yes
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6132 $as_echo "$xsi_shell" >&6; }
6133
6134
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6136 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6137 lt_shell_append=no
6138 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6139 >/dev/null 2>&1 \
6140 && lt_shell_append=yes
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6142 $as_echo "$lt_shell_append" >&6; }
6143
6144
6145 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6146 lt_unset=unset
6147 else
6148 lt_unset=false
6149 fi
6150
6151
6152
6153
6154
6155 # test EBCDIC or ASCII
6156 case `echo X|tr X '\101'` in
6157 A) # ASCII based system
6158 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6159 lt_SP2NL='tr \040 \012'
6160 lt_NL2SP='tr \015\012 \040\040'
6161 ;;
6162 *) # EBCDIC based system
6163 lt_SP2NL='tr \100 \n'
6164 lt_NL2SP='tr \r\n \100\100'
6165 ;;
6166 esac
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6177 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6178 if ${lt_cv_ld_reload_flag+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 lt_cv_ld_reload_flag='-r'
6182 fi
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6184 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6185 reload_flag=$lt_cv_ld_reload_flag
6186 case $reload_flag in
6187 "" | " "*) ;;
6188 *) reload_flag=" $reload_flag" ;;
6189 esac
6190 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6191 case $host_os in
6192 darwin*)
6193 if test "$GCC" = yes; then
6194 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6195 else
6196 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6197 fi
6198 ;;
6199 esac
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_OBJDUMP+:} false; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 if test -n "$OBJDUMP"; then
6218 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6230 fi
6231 done
6232 done
6233 IFS=$as_save_IFS
6234
6235 fi
6236 fi
6237 OBJDUMP=$ac_cv_prog_OBJDUMP
6238 if test -n "$OBJDUMP"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6240 $as_echo "$OBJDUMP" >&6; }
6241 else
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6244 fi
6245
6246
6247 fi
6248 if test -z "$ac_cv_prog_OBJDUMP"; then
6249 ac_ct_OBJDUMP=$OBJDUMP
6250 # Extract the first word of "objdump", so it can be a program name with args.
6251 set dummy objdump; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 if test -n "$ac_ct_OBJDUMP"; then
6258 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6267 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6270 fi
6271 done
6272 done
6273 IFS=$as_save_IFS
6274
6275 fi
6276 fi
6277 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6278 if test -n "$ac_ct_OBJDUMP"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6280 $as_echo "$ac_ct_OBJDUMP" >&6; }
6281 else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6284 fi
6285
6286 if test "x$ac_ct_OBJDUMP" = x; then
6287 OBJDUMP="false"
6288 else
6289 case $cross_compiling:$ac_tool_warned in
6290 yes:)
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293 ac_tool_warned=yes ;;
6294 esac
6295 OBJDUMP=$ac_ct_OBJDUMP
6296 fi
6297 else
6298 OBJDUMP="$ac_cv_prog_OBJDUMP"
6299 fi
6300
6301 test -z "$OBJDUMP" && OBJDUMP=objdump
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6312 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6313 if ${lt_cv_deplibs_check_method+:} false; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 lt_cv_file_magic_cmd='$MAGIC_CMD'
6317 lt_cv_file_magic_test_file=
6318 lt_cv_deplibs_check_method='unknown'
6319 # Need to set the preceding variable on all platforms that support
6320 # interlibrary dependencies.
6321 # 'none' -- dependencies not supported.
6322 # `unknown' -- same as none, but documents that we really don't know.
6323 # 'pass_all' -- all dependencies passed with no checks.
6324 # 'test_compile' -- check by making test program.
6325 # 'file_magic [[regex]]' -- check by looking for files in library path
6326 # which responds to the $file_magic_cmd with a given extended regex.
6327 # If you have `file' or equivalent on your system and you're not sure
6328 # whether `pass_all' will *always* work, you probably want this one.
6329
6330 case $host_os in
6331 aix[4-9]*)
6332 lt_cv_deplibs_check_method=pass_all
6333 ;;
6334
6335 beos*)
6336 lt_cv_deplibs_check_method=pass_all
6337 ;;
6338
6339 bsdi[45]*)
6340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6341 lt_cv_file_magic_cmd='/usr/bin/file -L'
6342 lt_cv_file_magic_test_file=/shlib/libc.so
6343 ;;
6344
6345 cygwin*)
6346 # func_win32_libid is a shell function defined in ltmain.sh
6347 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6348 lt_cv_file_magic_cmd='func_win32_libid'
6349 ;;
6350
6351 mingw* | pw32*)
6352 # Base MSYS/MinGW do not provide the 'file' command needed by
6353 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6354 # unless we find 'file', for example because we are cross-compiling.
6355 if ( file / ) >/dev/null 2>&1; then
6356 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6357 lt_cv_file_magic_cmd='func_win32_libid'
6358 else
6359 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6360 lt_cv_file_magic_cmd='$OBJDUMP -f'
6361 fi
6362 ;;
6363
6364 cegcc)
6365 # use the weaker test based on 'objdump'. See mingw*.
6366 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6367 lt_cv_file_magic_cmd='$OBJDUMP -f'
6368 ;;
6369
6370 darwin* | rhapsody*)
6371 lt_cv_deplibs_check_method=pass_all
6372 ;;
6373
6374 freebsd* | dragonfly*)
6375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6376 case $host_cpu in
6377 i*86 )
6378 # Not sure whether the presence of OpenBSD here was a mistake.
6379 # Let's accept both of them until this is cleared up.
6380 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6381 lt_cv_file_magic_cmd=/usr/bin/file
6382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6383 ;;
6384 esac
6385 else
6386 lt_cv_deplibs_check_method=pass_all
6387 fi
6388 ;;
6389
6390 gnu*)
6391 lt_cv_deplibs_check_method=pass_all
6392 ;;
6393
6394 hpux10.20* | hpux11*)
6395 lt_cv_file_magic_cmd=/usr/bin/file
6396 case $host_cpu in
6397 ia64*)
6398 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6399 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6400 ;;
6401 hppa*64*)
6402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6403 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6404 ;;
6405 *)
6406 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6407 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6408 ;;
6409 esac
6410 ;;
6411
6412 interix[3-9]*)
6413 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6414 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6415 ;;
6416
6417 irix5* | irix6* | nonstopux*)
6418 case $LD in
6419 *-32|*"-32 ") libmagic=32-bit;;
6420 *-n32|*"-n32 ") libmagic=N32;;
6421 *-64|*"-64 ") libmagic=64-bit;;
6422 *) libmagic=never-match;;
6423 esac
6424 lt_cv_deplibs_check_method=pass_all
6425 ;;
6426
6427 # This must be Linux ELF.
6428 linux* | k*bsd*-gnu)
6429 lt_cv_deplibs_check_method=pass_all
6430 ;;
6431
6432 netbsd*)
6433 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6435 else
6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6437 fi
6438 ;;
6439
6440 newos6*)
6441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6442 lt_cv_file_magic_cmd=/usr/bin/file
6443 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6444 ;;
6445
6446 *nto* | *qnx*)
6447 lt_cv_deplibs_check_method=pass_all
6448 ;;
6449
6450 openbsd*)
6451 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6453 else
6454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6455 fi
6456 ;;
6457
6458 osf3* | osf4* | osf5*)
6459 lt_cv_deplibs_check_method=pass_all
6460 ;;
6461
6462 rdos*)
6463 lt_cv_deplibs_check_method=pass_all
6464 ;;
6465
6466 solaris*)
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469
6470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6471 lt_cv_deplibs_check_method=pass_all
6472 ;;
6473
6474 sysv4 | sysv4.3*)
6475 case $host_vendor in
6476 motorola)
6477 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]'
6478 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6479 ;;
6480 ncr)
6481 lt_cv_deplibs_check_method=pass_all
6482 ;;
6483 sequent)
6484 lt_cv_file_magic_cmd='/bin/file'
6485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6486 ;;
6487 sni)
6488 lt_cv_file_magic_cmd='/bin/file'
6489 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6490 lt_cv_file_magic_test_file=/lib/libc.so
6491 ;;
6492 siemens)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495 pc)
6496 lt_cv_deplibs_check_method=pass_all
6497 ;;
6498 esac
6499 ;;
6500
6501 tpf*)
6502 lt_cv_deplibs_check_method=pass_all
6503 ;;
6504 esac
6505
6506 fi
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6508 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6509 file_magic_cmd=$lt_cv_file_magic_cmd
6510 deplibs_check_method=$lt_cv_deplibs_check_method
6511 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524 if test -n "$ac_tool_prefix"; then
6525 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6526 set dummy ${ac_tool_prefix}ar; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if ${ac_cv_prog_AR+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 if test -n "$AR"; then
6533 ac_cv_prog_AR="$AR" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_AR="${ac_tool_prefix}ar"
6543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 AR=$ac_cv_prog_AR
6553 if test -n "$AR"; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6555 $as_echo "$AR" >&6; }
6556 else
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6559 fi
6560
6561
6562 fi
6563 if test -z "$ac_cv_prog_AR"; then
6564 ac_ct_AR=$AR
6565 # Extract the first word of "ar", so it can be a program name with args.
6566 set dummy ar; ac_word=$2
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 $as_echo_n "checking for $ac_word... " >&6; }
6569 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 if test -n "$ac_ct_AR"; then
6573 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582 ac_cv_prog_ac_ct_AR="ar"
6583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6593 if test -n "$ac_ct_AR"; then
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6595 $as_echo "$ac_ct_AR" >&6; }
6596 else
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6599 fi
6600
6601 if test "x$ac_ct_AR" = x; then
6602 AR="false"
6603 else
6604 case $cross_compiling:$ac_tool_warned in
6605 yes:)
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6608 ac_tool_warned=yes ;;
6609 esac
6610 AR=$ac_ct_AR
6611 fi
6612 else
6613 AR="$ac_cv_prog_AR"
6614 fi
6615
6616 test -z "$AR" && AR=ar
6617 test -z "$AR_FLAGS" && AR_FLAGS=cru
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629 if test -n "$ac_tool_prefix"; then
6630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}strip; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if ${ac_cv_prog_STRIP+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 if test -n "$STRIP"; then
6638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651 done
6652 done
6653 IFS=$as_save_IFS
6654
6655 fi
6656 fi
6657 STRIP=$ac_cv_prog_STRIP
6658 if test -n "$STRIP"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6660 $as_echo "$STRIP" >&6; }
6661 else
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6664 fi
6665
6666
6667 fi
6668 if test -z "$ac_cv_prog_STRIP"; then
6669 ac_ct_STRIP=$STRIP
6670 # Extract the first word of "strip", so it can be a program name with args.
6671 set dummy strip; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 if test -n "$ac_ct_STRIP"; then
6678 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_ac_ct_STRIP="strip"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691 done
6692 done
6693 IFS=$as_save_IFS
6694
6695 fi
6696 fi
6697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6698 if test -n "$ac_ct_STRIP"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6700 $as_echo "$ac_ct_STRIP" >&6; }
6701 else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 fi
6705
6706 if test "x$ac_ct_STRIP" = x; then
6707 STRIP=":"
6708 else
6709 case $cross_compiling:$ac_tool_warned in
6710 yes:)
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713 ac_tool_warned=yes ;;
6714 esac
6715 STRIP=$ac_ct_STRIP
6716 fi
6717 else
6718 STRIP="$ac_cv_prog_STRIP"
6719 fi
6720
6721 test -z "$STRIP" && STRIP=:
6722
6723
6724
6725
6726
6727
6728 if test -n "$ac_tool_prefix"; then
6729 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if ${ac_cv_prog_RANLIB+:} false; then :
6734 $as_echo_n "(cached) " >&6
6735 else
6736 if test -n "$RANLIB"; then
6737 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6749 fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754 fi
6755 fi
6756 RANLIB=$ac_cv_prog_RANLIB
6757 if test -n "$RANLIB"; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6759 $as_echo "$RANLIB" >&6; }
6760 else
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6763 fi
6764
6765
6766 fi
6767 if test -z "$ac_cv_prog_RANLIB"; then
6768 ac_ct_RANLIB=$RANLIB
6769 # Extract the first word of "ranlib", so it can be a program name with args.
6770 set dummy ranlib; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6774 $as_echo_n "(cached) " >&6
6775 else
6776 if test -n "$ac_ct_RANLIB"; then
6777 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786 ac_cv_prog_ac_ct_RANLIB="ranlib"
6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6797 if test -n "$ac_ct_RANLIB"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6799 $as_echo "$ac_ct_RANLIB" >&6; }
6800 else
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6803 fi
6804
6805 if test "x$ac_ct_RANLIB" = x; then
6806 RANLIB=":"
6807 else
6808 case $cross_compiling:$ac_tool_warned in
6809 yes:)
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6812 ac_tool_warned=yes ;;
6813 esac
6814 RANLIB=$ac_ct_RANLIB
6815 fi
6816 else
6817 RANLIB="$ac_cv_prog_RANLIB"
6818 fi
6819
6820 test -z "$RANLIB" && RANLIB=:
6821
6822
6823
6824
6825
6826
6827 # Determine commands to create old-style static archives.
6828 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6829 old_postinstall_cmds='chmod 644 $oldlib'
6830 old_postuninstall_cmds=
6831
6832 if test -n "$RANLIB"; then
6833 case $host_os in
6834 openbsd*)
6835 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6836 ;;
6837 *)
6838 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6839 ;;
6840 esac
6841 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6842 fi
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877 # If no C compiler was specified, use CC.
6878 LTCC=${LTCC-"$CC"}
6879
6880 # If no C compiler flags were specified, use CFLAGS.
6881 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6882
6883 # Allow CC to be a program name with arguments.
6884 compiler=$CC
6885
6886
6887 # Check for command to grab the raw symbol name followed by C symbol from nm.
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6889 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6890 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893
6894 # These are sane defaults that work on at least a few old systems.
6895 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6896
6897 # Character class describing NM global symbol codes.
6898 symcode='[BCDEGRST]'
6899
6900 # Regexp to match symbols that can be accessed directly from C.
6901 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6902
6903 # Define system-specific variables.
6904 case $host_os in
6905 aix*)
6906 symcode='[BCDT]'
6907 ;;
6908 cygwin* | mingw* | pw32* | cegcc*)
6909 symcode='[ABCDGISTW]'
6910 ;;
6911 hpux*)
6912 if test "$host_cpu" = ia64; then
6913 symcode='[ABCDEGRST]'
6914 fi
6915 ;;
6916 irix* | nonstopux*)
6917 symcode='[BCDEGRST]'
6918 ;;
6919 osf*)
6920 symcode='[BCDEGQRST]'
6921 ;;
6922 solaris*)
6923 symcode='[BDRT]'
6924 ;;
6925 sco3.2v5*)
6926 symcode='[DT]'
6927 ;;
6928 sysv4.2uw2*)
6929 symcode='[DT]'
6930 ;;
6931 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6932 symcode='[ABDT]'
6933 ;;
6934 sysv4)
6935 symcode='[DFNSTU]'
6936 ;;
6937 esac
6938
6939 # If we're using GNU nm, then use its standard symbol codes.
6940 case `$NM -V 2>&1` in
6941 *GNU* | *'with BFD'*)
6942 symcode='[ABCDGIRSTW]' ;;
6943 esac
6944
6945 # Transform an extracted symbol line into a proper C declaration.
6946 # Some systems (esp. on ia64) link data and code symbols differently,
6947 # so use this general approach.
6948 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6949
6950 # Transform an extracted symbol line into symbol name and symbol address
6951 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6952 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'"
6953
6954 # Handle CRLF in mingw tool chain
6955 opt_cr=
6956 case $build_os in
6957 mingw*)
6958 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6959 ;;
6960 esac
6961
6962 # Try without a prefix underscore, then with it.
6963 for ac_symprfx in "" "_"; do
6964
6965 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6966 symxfrm="\\1 $ac_symprfx\\2 \\2"
6967
6968 # Write the raw and C identifiers.
6969 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6970 # Fake it for dumpbin and say T for any non-static function
6971 # and D for any global variable.
6972 # Also find C++ and __fastcall symbols from MSVC++,
6973 # which start with @ or ?.
6974 lt_cv_sys_global_symbol_pipe="$AWK '"\
6975 " {last_section=section; section=\$ 3};"\
6976 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6977 " \$ 0!~/External *\|/{next};"\
6978 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6979 " {if(hide[section]) next};"\
6980 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6981 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6982 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6983 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6984 " ' prfx=^$ac_symprfx"
6985 else
6986 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6987 fi
6988
6989 # Check to see that the pipe works correctly.
6990 pipe_works=no
6991
6992 rm -f conftest*
6993 cat > conftest.$ac_ext <<_LT_EOF
6994 #ifdef __cplusplus
6995 extern "C" {
6996 #endif
6997 char nm_test_var;
6998 void nm_test_func(void);
6999 void nm_test_func(void){}
7000 #ifdef __cplusplus
7001 }
7002 #endif
7003 int main(){nm_test_var='a';nm_test_func();return(0);}
7004 _LT_EOF
7005
7006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7007 (eval $ac_compile) 2>&5
7008 ac_status=$?
7009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7010 test $ac_status = 0; }; then
7011 # Now try to grab the symbols.
7012 nlist=conftest.nm
7013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7014 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7015 ac_status=$?
7016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7017 test $ac_status = 0; } && test -s "$nlist"; then
7018 # Try sorting and uniquifying the output.
7019 if sort "$nlist" | uniq > "$nlist"T; then
7020 mv -f "$nlist"T "$nlist"
7021 else
7022 rm -f "$nlist"T
7023 fi
7024
7025 # Make sure that we snagged all the symbols we need.
7026 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7027 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7028 cat <<_LT_EOF > conftest.$ac_ext
7029 #ifdef __cplusplus
7030 extern "C" {
7031 #endif
7032
7033 _LT_EOF
7034 # Now generate the symbol file.
7035 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7036
7037 cat <<_LT_EOF >> conftest.$ac_ext
7038
7039 /* The mapping between symbol names and symbols. */
7040 const struct {
7041 const char *name;
7042 void *address;
7043 }
7044 lt__PROGRAM__LTX_preloaded_symbols[] =
7045 {
7046 { "@PROGRAM@", (void *) 0 },
7047 _LT_EOF
7048 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7049 cat <<\_LT_EOF >> conftest.$ac_ext
7050 {0, (void *) 0}
7051 };
7052
7053 /* This works around a problem in FreeBSD linker */
7054 #ifdef FREEBSD_WORKAROUND
7055 static const void *lt_preloaded_setup() {
7056 return lt__PROGRAM__LTX_preloaded_symbols;
7057 }
7058 #endif
7059
7060 #ifdef __cplusplus
7061 }
7062 #endif
7063 _LT_EOF
7064 # Now try linking the two files.
7065 mv conftest.$ac_objext conftstm.$ac_objext
7066 lt_save_LIBS="$LIBS"
7067 lt_save_CFLAGS="$CFLAGS"
7068 LIBS="conftstm.$ac_objext"
7069 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7071 (eval $ac_link) 2>&5
7072 ac_status=$?
7073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7074 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7075 pipe_works=yes
7076 fi
7077 LIBS="$lt_save_LIBS"
7078 CFLAGS="$lt_save_CFLAGS"
7079 else
7080 echo "cannot find nm_test_func in $nlist" >&5
7081 fi
7082 else
7083 echo "cannot find nm_test_var in $nlist" >&5
7084 fi
7085 else
7086 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7087 fi
7088 else
7089 echo "$progname: failed program was:" >&5
7090 cat conftest.$ac_ext >&5
7091 fi
7092 rm -rf conftest* conftst*
7093
7094 # Do not use the global_symbol_pipe unless it works.
7095 if test "$pipe_works" = yes; then
7096 break
7097 else
7098 lt_cv_sys_global_symbol_pipe=
7099 fi
7100 done
7101
7102 fi
7103
7104 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7105 lt_cv_sys_global_symbol_to_cdecl=
7106 fi
7107 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7109 $as_echo "failed" >&6; }
7110 else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7112 $as_echo "ok" >&6; }
7113 fi
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136 # Check whether --enable-libtool-lock was given.
7137 if test "${enable_libtool_lock+set}" = set; then :
7138 enableval=$enable_libtool_lock;
7139 fi
7140
7141 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7142
7143 # Some flags need to be propagated to the compiler or linker for good
7144 # libtool support.
7145 case $host in
7146 ia64-*-hpux*)
7147 # Find out which ABI we are using.
7148 echo 'int i;' > conftest.$ac_ext
7149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150 (eval $ac_compile) 2>&5
7151 ac_status=$?
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; }; then
7154 case `/usr/bin/file conftest.$ac_objext` in
7155 *ELF-32*)
7156 HPUX_IA64_MODE="32"
7157 ;;
7158 *ELF-64*)
7159 HPUX_IA64_MODE="64"
7160 ;;
7161 esac
7162 fi
7163 rm -rf conftest*
7164 ;;
7165 *-*-irix6*)
7166 # Find out which ABI we are using.
7167 echo '#line 7167 "configure"' > conftest.$ac_ext
7168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7169 (eval $ac_compile) 2>&5
7170 ac_status=$?
7171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7172 test $ac_status = 0; }; then
7173 if test "$lt_cv_prog_gnu_ld" = yes; then
7174 case `/usr/bin/file conftest.$ac_objext` in
7175 *32-bit*)
7176 LD="${LD-ld} -melf32bsmip"
7177 ;;
7178 *N32*)
7179 LD="${LD-ld} -melf32bmipn32"
7180 ;;
7181 *64-bit*)
7182 LD="${LD-ld} -melf64bmip"
7183 ;;
7184 esac
7185 else
7186 case `/usr/bin/file conftest.$ac_objext` in
7187 *32-bit*)
7188 LD="${LD-ld} -32"
7189 ;;
7190 *N32*)
7191 LD="${LD-ld} -n32"
7192 ;;
7193 *64-bit*)
7194 LD="${LD-ld} -64"
7195 ;;
7196 esac
7197 fi
7198 fi
7199 rm -rf conftest*
7200 ;;
7201
7202 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7203 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7204 # Find out which ABI we are using.
7205 echo 'int i;' > conftest.$ac_ext
7206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7207 (eval $ac_compile) 2>&5
7208 ac_status=$?
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; }; then
7211 case `/usr/bin/file conftest.o` in
7212 *32-bit*)
7213 case $host in
7214 x86_64-*kfreebsd*-gnu)
7215 LD="${LD-ld} -m elf_i386_fbsd"
7216 ;;
7217 x86_64-*linux*)
7218 LD="${LD-ld} -m elf_i386"
7219 ;;
7220 ppc64-*linux*|powerpc64-*linux*)
7221 LD="${LD-ld} -m elf32ppclinux"
7222 ;;
7223 s390x-*linux*)
7224 LD="${LD-ld} -m elf_s390"
7225 ;;
7226 sparc64-*linux*)
7227 LD="${LD-ld} -m elf32_sparc"
7228 ;;
7229 esac
7230 ;;
7231 *64-bit*)
7232 case $host in
7233 x86_64-*kfreebsd*-gnu)
7234 LD="${LD-ld} -m elf_x86_64_fbsd"
7235 ;;
7236 x86_64-*linux*)
7237 LD="${LD-ld} -m elf_x86_64"
7238 ;;
7239 ppc*-*linux*|powerpc*-*linux*)
7240 LD="${LD-ld} -m elf64ppc"
7241 ;;
7242 s390*-*linux*|s390*-*tpf*)
7243 LD="${LD-ld} -m elf64_s390"
7244 ;;
7245 sparc*-*linux*)
7246 LD="${LD-ld} -m elf64_sparc"
7247 ;;
7248 esac
7249 ;;
7250 esac
7251 fi
7252 rm -rf conftest*
7253 ;;
7254
7255 *-*-sco3.2v5*)
7256 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7257 SAVE_CFLAGS="$CFLAGS"
7258 CFLAGS="$CFLAGS -belf"
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7260 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7261 if ${lt_cv_cc_needs_belf+:} false; then :
7262 $as_echo_n "(cached) " >&6
7263 else
7264 ac_ext=c
7265 ac_cpp='$CPP $CPPFLAGS'
7266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272
7273 int
7274 main ()
7275 {
7276
7277 ;
7278 return 0;
7279 }
7280 _ACEOF
7281 if ac_fn_c_try_link "$LINENO"; then :
7282 lt_cv_cc_needs_belf=yes
7283 else
7284 lt_cv_cc_needs_belf=no
7285 fi
7286 rm -f core conftest.err conftest.$ac_objext \
7287 conftest$ac_exeext conftest.$ac_ext
7288 ac_ext=c
7289 ac_cpp='$CPP $CPPFLAGS'
7290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7293
7294 fi
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7296 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7297 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7298 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7299 CFLAGS="$SAVE_CFLAGS"
7300 fi
7301 ;;
7302 sparc*-*solaris*)
7303 # Find out which ABI we are using.
7304 echo 'int i;' > conftest.$ac_ext
7305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7306 (eval $ac_compile) 2>&5
7307 ac_status=$?
7308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7309 test $ac_status = 0; }; then
7310 case `/usr/bin/file conftest.o` in
7311 *64-bit*)
7312 case $lt_cv_prog_gnu_ld in
7313 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7314 *)
7315 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7316 LD="${LD-ld} -64"
7317 fi
7318 ;;
7319 esac
7320 ;;
7321 esac
7322 fi
7323 rm -rf conftest*
7324 ;;
7325 esac
7326
7327 need_locks="$enable_libtool_lock"
7328
7329
7330 case $host_os in
7331 rhapsody* | darwin*)
7332 if test -n "$ac_tool_prefix"; then
7333 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7334 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 if test -n "$DSYMUTIL"; then
7341 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7353 fi
7354 done
7355 done
7356 IFS=$as_save_IFS
7357
7358 fi
7359 fi
7360 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7361 if test -n "$DSYMUTIL"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7363 $as_echo "$DSYMUTIL" >&6; }
7364 else
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7367 fi
7368
7369
7370 fi
7371 if test -z "$ac_cv_prog_DSYMUTIL"; then
7372 ac_ct_DSYMUTIL=$DSYMUTIL
7373 # Extract the first word of "dsymutil", so it can be a program name with args.
7374 set dummy dsymutil; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 if test -n "$ac_ct_DSYMUTIL"; then
7381 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7393 fi
7394 done
7395 done
7396 IFS=$as_save_IFS
7397
7398 fi
7399 fi
7400 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7401 if test -n "$ac_ct_DSYMUTIL"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7403 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7404 else
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7407 fi
7408
7409 if test "x$ac_ct_DSYMUTIL" = x; then
7410 DSYMUTIL=":"
7411 else
7412 case $cross_compiling:$ac_tool_warned in
7413 yes:)
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7416 ac_tool_warned=yes ;;
7417 esac
7418 DSYMUTIL=$ac_ct_DSYMUTIL
7419 fi
7420 else
7421 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7422 fi
7423
7424 if test -n "$ac_tool_prefix"; then
7425 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7426 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_prog_NMEDIT+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 if test -n "$NMEDIT"; then
7433 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446 done
7447 done
7448 IFS=$as_save_IFS
7449
7450 fi
7451 fi
7452 NMEDIT=$ac_cv_prog_NMEDIT
7453 if test -n "$NMEDIT"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7455 $as_echo "$NMEDIT" >&6; }
7456 else
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7459 fi
7460
7461
7462 fi
7463 if test -z "$ac_cv_prog_NMEDIT"; then
7464 ac_ct_NMEDIT=$NMEDIT
7465 # Extract the first word of "nmedit", so it can be a program name with args.
7466 set dummy nmedit; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 if test -n "$ac_ct_NMEDIT"; then
7473 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486 done
7487 done
7488 IFS=$as_save_IFS
7489
7490 fi
7491 fi
7492 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7493 if test -n "$ac_ct_NMEDIT"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7495 $as_echo "$ac_ct_NMEDIT" >&6; }
7496 else
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7499 fi
7500
7501 if test "x$ac_ct_NMEDIT" = x; then
7502 NMEDIT=":"
7503 else
7504 case $cross_compiling:$ac_tool_warned in
7505 yes:)
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508 ac_tool_warned=yes ;;
7509 esac
7510 NMEDIT=$ac_ct_NMEDIT
7511 fi
7512 else
7513 NMEDIT="$ac_cv_prog_NMEDIT"
7514 fi
7515
7516 if test -n "$ac_tool_prefix"; then
7517 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7518 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if ${ac_cv_prog_LIPO+:} false; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7524 if test -n "$LIPO"; then
7525 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7526 else
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7529 do
7530 IFS=$as_save_IFS
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 break 2
7537 fi
7538 done
7539 done
7540 IFS=$as_save_IFS
7541
7542 fi
7543 fi
7544 LIPO=$ac_cv_prog_LIPO
7545 if test -n "$LIPO"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7547 $as_echo "$LIPO" >&6; }
7548 else
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7551 fi
7552
7553
7554 fi
7555 if test -z "$ac_cv_prog_LIPO"; then
7556 ac_ct_LIPO=$LIPO
7557 # Extract the first word of "lipo", so it can be a program name with args.
7558 set dummy lipo; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 if test -n "$ac_ct_LIPO"; then
7565 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7569 do
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_ac_ct_LIPO="lipo"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7577 fi
7578 done
7579 done
7580 IFS=$as_save_IFS
7581
7582 fi
7583 fi
7584 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7585 if test -n "$ac_ct_LIPO"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7587 $as_echo "$ac_ct_LIPO" >&6; }
7588 else
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7591 fi
7592
7593 if test "x$ac_ct_LIPO" = x; then
7594 LIPO=":"
7595 else
7596 case $cross_compiling:$ac_tool_warned in
7597 yes:)
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7600 ac_tool_warned=yes ;;
7601 esac
7602 LIPO=$ac_ct_LIPO
7603 fi
7604 else
7605 LIPO="$ac_cv_prog_LIPO"
7606 fi
7607
7608 if test -n "$ac_tool_prefix"; then
7609 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7610 set dummy ${ac_tool_prefix}otool; ac_word=$2
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 $as_echo_n "checking for $ac_word... " >&6; }
7613 if ${ac_cv_prog_OTOOL+:} false; then :
7614 $as_echo_n "(cached) " >&6
7615 else
7616 if test -n "$OTOOL"; then
7617 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7618 else
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622 IFS=$as_save_IFS
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 break 2
7629 fi
7630 done
7631 done
7632 IFS=$as_save_IFS
7633
7634 fi
7635 fi
7636 OTOOL=$ac_cv_prog_OTOOL
7637 if test -n "$OTOOL"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7639 $as_echo "$OTOOL" >&6; }
7640 else
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7643 fi
7644
7645
7646 fi
7647 if test -z "$ac_cv_prog_OTOOL"; then
7648 ac_ct_OTOOL=$OTOOL
7649 # Extract the first word of "otool", so it can be a program name with args.
7650 set dummy otool; ac_word=$2
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652 $as_echo_n "checking for $ac_word... " >&6; }
7653 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 if test -n "$ac_ct_OTOOL"; then
7657 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7658 else
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7661 do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7666 ac_cv_prog_ac_ct_OTOOL="otool"
7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 break 2
7669 fi
7670 done
7671 done
7672 IFS=$as_save_IFS
7673
7674 fi
7675 fi
7676 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7677 if test -n "$ac_ct_OTOOL"; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7679 $as_echo "$ac_ct_OTOOL" >&6; }
7680 else
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7683 fi
7684
7685 if test "x$ac_ct_OTOOL" = x; then
7686 OTOOL=":"
7687 else
7688 case $cross_compiling:$ac_tool_warned in
7689 yes:)
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7692 ac_tool_warned=yes ;;
7693 esac
7694 OTOOL=$ac_ct_OTOOL
7695 fi
7696 else
7697 OTOOL="$ac_cv_prog_OTOOL"
7698 fi
7699
7700 if test -n "$ac_tool_prefix"; then
7701 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7702 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if ${ac_cv_prog_OTOOL64+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 if test -n "$OTOOL64"; then
7709 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7710 else
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7713 do
7714 IFS=$as_save_IFS
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7718 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 break 2
7721 fi
7722 done
7723 done
7724 IFS=$as_save_IFS
7725
7726 fi
7727 fi
7728 OTOOL64=$ac_cv_prog_OTOOL64
7729 if test -n "$OTOOL64"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7731 $as_echo "$OTOOL64" >&6; }
7732 else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7735 fi
7736
7737
7738 fi
7739 if test -z "$ac_cv_prog_OTOOL64"; then
7740 ac_ct_OTOOL64=$OTOOL64
7741 # Extract the first word of "otool64", so it can be a program name with args.
7742 set dummy otool64; ac_word=$2
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744 $as_echo_n "checking for $ac_word... " >&6; }
7745 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 if test -n "$ac_ct_OTOOL64"; then
7749 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7750 else
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7753 do
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_prog_ac_ct_OTOOL64="otool64"
7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7761 fi
7762 done
7763 done
7764 IFS=$as_save_IFS
7765
7766 fi
7767 fi
7768 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7769 if test -n "$ac_ct_OTOOL64"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7771 $as_echo "$ac_ct_OTOOL64" >&6; }
7772 else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7775 fi
7776
7777 if test "x$ac_ct_OTOOL64" = x; then
7778 OTOOL64=":"
7779 else
7780 case $cross_compiling:$ac_tool_warned in
7781 yes:)
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7784 ac_tool_warned=yes ;;
7785 esac
7786 OTOOL64=$ac_ct_OTOOL64
7787 fi
7788 else
7789 OTOOL64="$ac_cv_prog_OTOOL64"
7790 fi
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7819 $as_echo_n "checking for -single_module linker flag... " >&6; }
7820 if ${lt_cv_apple_cc_single_mod+:} false; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 lt_cv_apple_cc_single_mod=no
7824 if test -z "${LT_MULTI_MODULE}"; then
7825 # By default we will add the -single_module flag. You can override
7826 # by either setting the environment variable LT_MULTI_MODULE
7827 # non-empty at configure time, or by adding -multi_module to the
7828 # link flags.
7829 rm -rf libconftest.dylib*
7830 echo "int foo(void){return 1;}" > conftest.c
7831 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7832 -dynamiclib -Wl,-single_module conftest.c" >&5
7833 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7834 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7835 _lt_result=$?
7836 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7837 lt_cv_apple_cc_single_mod=yes
7838 else
7839 cat conftest.err >&5
7840 fi
7841 rm -rf libconftest.dylib*
7842 rm -f conftest.*
7843 fi
7844 fi
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7846 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7848 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7849 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 lt_cv_ld_exported_symbols_list=no
7853 save_LDFLAGS=$LDFLAGS
7854 echo "_main" > conftest.sym
7855 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7858
7859 int
7860 main ()
7861 {
7862
7863 ;
7864 return 0;
7865 }
7866 _ACEOF
7867 if ac_fn_c_try_link "$LINENO"; then :
7868 lt_cv_ld_exported_symbols_list=yes
7869 else
7870 lt_cv_ld_exported_symbols_list=no
7871 fi
7872 rm -f core conftest.err conftest.$ac_objext \
7873 conftest$ac_exeext conftest.$ac_ext
7874 LDFLAGS="$save_LDFLAGS"
7875
7876 fi
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7878 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7879 case $host_os in
7880 rhapsody* | darwin1.[012])
7881 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7882 darwin1.*)
7883 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7884 darwin*) # darwin 5.x on
7885 # if running on 10.5 or later, the deployment target defaults
7886 # to the OS version, if on x86, and 10.4, the deployment
7887 # target defaults to 10.4. Don't you love it?
7888 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7889 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7890 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7891 10.[012]*)
7892 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7893 10.*)
7894 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7895 esac
7896 ;;
7897 esac
7898 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7899 _lt_dar_single_mod='$single_module'
7900 fi
7901 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7902 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7903 else
7904 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7905 fi
7906 if test "$DSYMUTIL" != ":"; then
7907 _lt_dsymutil='~$DSYMUTIL $lib || :'
7908 else
7909 _lt_dsymutil=
7910 fi
7911 ;;
7912 esac
7913
7914 for ac_header in dlfcn.h
7915 do :
7916 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7917 "
7918 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7919 cat >>confdefs.h <<_ACEOF
7920 #define HAVE_DLFCN_H 1
7921 _ACEOF
7922
7923 fi
7924
7925 done
7926
7927
7928
7929 # Set options
7930 # Check whether --enable-static was given.
7931 if test "${enable_static+set}" = set; then :
7932 enableval=$enable_static; p=${PACKAGE-default}
7933 case $enableval in
7934 yes) enable_static=yes ;;
7935 no) enable_static=no ;;
7936 *)
7937 enable_static=no
7938 # Look at the argument we got. We use all the common list separators.
7939 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7940 for pkg in $enableval; do
7941 IFS="$lt_save_ifs"
7942 if test "X$pkg" = "X$p"; then
7943 enable_static=yes
7944 fi
7945 done
7946 IFS="$lt_save_ifs"
7947 ;;
7948 esac
7949 else
7950 enable_static=no
7951 fi
7952
7953
7954
7955
7956
7957
7958
7959
7960 # Check whether --with-pic was given.
7961 if test "${with_pic+set}" = set; then :
7962 withval=$with_pic; pic_mode="$withval"
7963 else
7964 pic_mode=default
7965 fi
7966
7967
7968 test -z "$pic_mode" && pic_mode=yes
7969
7970
7971
7972
7973
7974
7975
7976
7977 enable_dlopen=no
7978
7979
7980 enable_win32_dll=no
7981
7982
7983 # Check whether --enable-shared was given.
7984 if test "${enable_shared+set}" = set; then :
7985 enableval=$enable_shared; p=${PACKAGE-default}
7986 case $enableval in
7987 yes) enable_shared=yes ;;
7988 no) enable_shared=no ;;
7989 *)
7990 enable_shared=no
7991 # Look at the argument we got. We use all the common list separators.
7992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7993 for pkg in $enableval; do
7994 IFS="$lt_save_ifs"
7995 if test "X$pkg" = "X$p"; then
7996 enable_shared=yes
7997 fi
7998 done
7999 IFS="$lt_save_ifs"
8000 ;;
8001 esac
8002 else
8003 enable_shared=yes
8004 fi
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016 # Check whether --enable-fast-install was given.
8017 if test "${enable_fast_install+set}" = set; then :
8018 enableval=$enable_fast_install; p=${PACKAGE-default}
8019 case $enableval in
8020 yes) enable_fast_install=yes ;;
8021 no) enable_fast_install=no ;;
8022 *)
8023 enable_fast_install=no
8024 # Look at the argument we got. We use all the common list separators.
8025 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8026 for pkg in $enableval; do
8027 IFS="$lt_save_ifs"
8028 if test "X$pkg" = "X$p"; then
8029 enable_fast_install=yes
8030 fi
8031 done
8032 IFS="$lt_save_ifs"
8033 ;;
8034 esac
8035 else
8036 enable_fast_install=yes
8037 fi
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049 # This can be used to rebuild libtool when needed
8050 LIBTOOL_DEPS="$ltmain"
8051
8052 # Always use our own libtool.
8053 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079 test -z "$LN_S" && LN_S="ln -s"
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094 if test -n "${ZSH_VERSION+set}" ; then
8095 setopt NO_GLOB_SUBST
8096 fi
8097
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8099 $as_echo_n "checking for objdir... " >&6; }
8100 if ${lt_cv_objdir+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 rm -f .libs 2>/dev/null
8104 mkdir .libs 2>/dev/null
8105 if test -d .libs; then
8106 lt_cv_objdir=.libs
8107 else
8108 # MS-DOS does not allow filenames that begin with a dot.
8109 lt_cv_objdir=_libs
8110 fi
8111 rmdir .libs 2>/dev/null
8112 fi
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8114 $as_echo "$lt_cv_objdir" >&6; }
8115 objdir=$lt_cv_objdir
8116
8117
8118
8119
8120
8121 cat >>confdefs.h <<_ACEOF
8122 #define LT_OBJDIR "$lt_cv_objdir/"
8123 _ACEOF
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141 case $host_os in
8142 aix3*)
8143 # AIX sometimes has problems with the GCC collect2 program. For some
8144 # reason, if we set the COLLECT_NAMES environment variable, the problems
8145 # vanish in a puff of smoke.
8146 if test "X${COLLECT_NAMES+set}" != Xset; then
8147 COLLECT_NAMES=
8148 export COLLECT_NAMES
8149 fi
8150 ;;
8151 esac
8152
8153 # Sed substitution that helps us do robust quoting. It backslashifies
8154 # metacharacters that are still active within double-quoted strings.
8155 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8156
8157 # Same as above, but do not quote variable references.
8158 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8159
8160 # Sed substitution to delay expansion of an escaped shell variable in a
8161 # double_quote_subst'ed string.
8162 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8163
8164 # Sed substitution to delay expansion of an escaped single quote.
8165 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8166
8167 # Sed substitution to avoid accidental globbing in evaled expressions
8168 no_glob_subst='s/\*/\\\*/g'
8169
8170 # Global variables:
8171 ofile=libtool
8172 can_build_shared=yes
8173
8174 # All known linkers require a `.a' archive for static linking (except MSVC,
8175 # which needs '.lib').
8176 libext=a
8177
8178 with_gnu_ld="$lt_cv_prog_gnu_ld"
8179
8180 old_CC="$CC"
8181 old_CFLAGS="$CFLAGS"
8182
8183 # Set sane defaults for various variables
8184 test -z "$CC" && CC=cc
8185 test -z "$LTCC" && LTCC=$CC
8186 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8187 test -z "$LD" && LD=ld
8188 test -z "$ac_objext" && ac_objext=o
8189
8190 for cc_temp in $compiler""; do
8191 case $cc_temp in
8192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8194 \-*) ;;
8195 *) break;;
8196 esac
8197 done
8198 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8199
8200
8201 # Only perform the check for file, if the check method requires it
8202 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8203 case $deplibs_check_method in
8204 file_magic*)
8205 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8207 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8208 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 case $MAGIC_CMD in
8212 [\\/*] | ?:[\\/]*)
8213 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8214 ;;
8215 *)
8216 lt_save_MAGIC_CMD="$MAGIC_CMD"
8217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8218 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8219 for ac_dir in $ac_dummy; do
8220 IFS="$lt_save_ifs"
8221 test -z "$ac_dir" && ac_dir=.
8222 if test -f $ac_dir/${ac_tool_prefix}file; then
8223 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8224 if test -n "$file_magic_test_file"; then
8225 case $deplibs_check_method in
8226 "file_magic "*)
8227 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8229 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8230 $EGREP "$file_magic_regex" > /dev/null; then
8231 :
8232 else
8233 cat <<_LT_EOF 1>&2
8234
8235 *** Warning: the command libtool uses to detect shared libraries,
8236 *** $file_magic_cmd, produces output that libtool cannot recognize.
8237 *** The result is that libtool may fail to recognize shared libraries
8238 *** as such. This will affect the creation of libtool libraries that
8239 *** depend on shared libraries, but programs linked with such libtool
8240 *** libraries will work regardless of this problem. Nevertheless, you
8241 *** may want to report the problem to your system manager and/or to
8242 *** bug-libtool@gnu.org
8243
8244 _LT_EOF
8245 fi ;;
8246 esac
8247 fi
8248 break
8249 fi
8250 done
8251 IFS="$lt_save_ifs"
8252 MAGIC_CMD="$lt_save_MAGIC_CMD"
8253 ;;
8254 esac
8255 fi
8256
8257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8258 if test -n "$MAGIC_CMD"; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8260 $as_echo "$MAGIC_CMD" >&6; }
8261 else
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8264 fi
8265
8266
8267
8268
8269
8270 if test -z "$lt_cv_path_MAGIC_CMD"; then
8271 if test -n "$ac_tool_prefix"; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8273 $as_echo_n "checking for file... " >&6; }
8274 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 case $MAGIC_CMD in
8278 [\\/*] | ?:[\\/]*)
8279 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8280 ;;
8281 *)
8282 lt_save_MAGIC_CMD="$MAGIC_CMD"
8283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8284 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8285 for ac_dir in $ac_dummy; do
8286 IFS="$lt_save_ifs"
8287 test -z "$ac_dir" && ac_dir=.
8288 if test -f $ac_dir/file; then
8289 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8290 if test -n "$file_magic_test_file"; then
8291 case $deplibs_check_method in
8292 "file_magic "*)
8293 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8295 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8296 $EGREP "$file_magic_regex" > /dev/null; then
8297 :
8298 else
8299 cat <<_LT_EOF 1>&2
8300
8301 *** Warning: the command libtool uses to detect shared libraries,
8302 *** $file_magic_cmd, produces output that libtool cannot recognize.
8303 *** The result is that libtool may fail to recognize shared libraries
8304 *** as such. This will affect the creation of libtool libraries that
8305 *** depend on shared libraries, but programs linked with such libtool
8306 *** libraries will work regardless of this problem. Nevertheless, you
8307 *** may want to report the problem to your system manager and/or to
8308 *** bug-libtool@gnu.org
8309
8310 _LT_EOF
8311 fi ;;
8312 esac
8313 fi
8314 break
8315 fi
8316 done
8317 IFS="$lt_save_ifs"
8318 MAGIC_CMD="$lt_save_MAGIC_CMD"
8319 ;;
8320 esac
8321 fi
8322
8323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8324 if test -n "$MAGIC_CMD"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8326 $as_echo "$MAGIC_CMD" >&6; }
8327 else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8330 fi
8331
8332
8333 else
8334 MAGIC_CMD=:
8335 fi
8336 fi
8337
8338 fi
8339 ;;
8340 esac
8341
8342 # Use C for the default configuration in the libtool script
8343
8344 lt_save_CC="$CC"
8345 ac_ext=c
8346 ac_cpp='$CPP $CPPFLAGS'
8347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8350
8351
8352 # Source file extension for C test sources.
8353 ac_ext=c
8354
8355 # Object file extension for compiled C test sources.
8356 objext=o
8357 objext=$objext
8358
8359 # Code to be used in simple compile tests
8360 lt_simple_compile_test_code="int some_variable = 0;"
8361
8362 # Code to be used in simple link tests
8363 lt_simple_link_test_code='int main(){return(0);}'
8364
8365
8366
8367
8368
8369
8370
8371 # If no C compiler was specified, use CC.
8372 LTCC=${LTCC-"$CC"}
8373
8374 # If no C compiler flags were specified, use CFLAGS.
8375 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8376
8377 # Allow CC to be a program name with arguments.
8378 compiler=$CC
8379
8380 # Save the default compiler, since it gets overwritten when the other
8381 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8382 compiler_DEFAULT=$CC
8383
8384 # save warnings/boilerplate of simple test code
8385 ac_outfile=conftest.$ac_objext
8386 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8387 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8388 _lt_compiler_boilerplate=`cat conftest.err`
8389 $RM conftest*
8390
8391 ac_outfile=conftest.$ac_objext
8392 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8393 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8394 _lt_linker_boilerplate=`cat conftest.err`
8395 $RM -r conftest*
8396
8397
8398 ## CAVEAT EMPTOR:
8399 ## There is no encapsulation within the following macros, do not change
8400 ## the running order or otherwise move them around unless you know exactly
8401 ## what you are doing...
8402 if test -n "$compiler"; then
8403
8404 lt_prog_compiler_no_builtin_flag=
8405
8406 if test "$GCC" = yes; then
8407 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8408
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8410 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8411 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8412 $as_echo_n "(cached) " >&6
8413 else
8414 lt_cv_prog_compiler_rtti_exceptions=no
8415 ac_outfile=conftest.$ac_objext
8416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8417 lt_compiler_flag="-fno-rtti -fno-exceptions"
8418 # Insert the option either (1) after the last *FLAGS variable, or
8419 # (2) before a word containing "conftest.", or (3) at the end.
8420 # Note that $ac_compile itself does not contain backslashes and begins
8421 # with a dollar sign (not a hyphen), so the echo should work correctly.
8422 # The option is referenced via a variable to avoid confusing sed.
8423 lt_compile=`echo "$ac_compile" | $SED \
8424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8426 -e 's:$: $lt_compiler_flag:'`
8427 (eval echo "\"\$as_me:8427: $lt_compile\"" >&5)
8428 (eval "$lt_compile" 2>conftest.err)
8429 ac_status=$?
8430 cat conftest.err >&5
8431 echo "$as_me:8431: \$? = $ac_status" >&5
8432 if (exit $ac_status) && test -s "$ac_outfile"; then
8433 # The compiler can only warn and ignore the option if not recognized
8434 # So say no if there are warnings other than the usual output.
8435 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8438 lt_cv_prog_compiler_rtti_exceptions=yes
8439 fi
8440 fi
8441 $RM conftest*
8442
8443 fi
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8445 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8446
8447 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8448 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8449 else
8450 :
8451 fi
8452
8453 fi
8454
8455
8456
8457
8458
8459
8460 lt_prog_compiler_wl=
8461 lt_prog_compiler_pic=
8462 lt_prog_compiler_static=
8463
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8465 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8466
8467 if test "$GCC" = yes; then
8468 lt_prog_compiler_wl='-Wl,'
8469 lt_prog_compiler_static='-static'
8470
8471 case $host_os in
8472 aix*)
8473 # All AIX code is PIC.
8474 if test "$host_cpu" = ia64; then
8475 # AIX 5 now supports IA64 processor
8476 lt_prog_compiler_static='-Bstatic'
8477 fi
8478 ;;
8479
8480 amigaos*)
8481 case $host_cpu in
8482 powerpc)
8483 # see comment about AmigaOS4 .so support
8484 lt_prog_compiler_pic='-fPIC'
8485 ;;
8486 m68k)
8487 # FIXME: we need at least 68020 code to build shared libraries, but
8488 # adding the `-m68020' flag to GCC prevents building anything better,
8489 # like `-m68040'.
8490 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8491 ;;
8492 esac
8493 ;;
8494
8495 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8496 # PIC is the default for these OSes.
8497 ;;
8498
8499 mingw* | cygwin* | pw32* | os2* | cegcc*)
8500 # This hack is so that the source file can tell whether it is being
8501 # built for inclusion in a dll (and should export symbols for example).
8502 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8503 # (--disable-auto-import) libraries
8504 lt_prog_compiler_pic='-DDLL_EXPORT'
8505 ;;
8506
8507 darwin* | rhapsody*)
8508 # PIC is the default on this platform
8509 # Common symbols not allowed in MH_DYLIB files
8510 lt_prog_compiler_pic='-fno-common'
8511 ;;
8512
8513 hpux*)
8514 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8515 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8516 # sets the default TLS model and affects inlining.
8517 case $host_cpu in
8518 hppa*64*)
8519 # +Z the default
8520 ;;
8521 *)
8522 lt_prog_compiler_pic='-fPIC'
8523 ;;
8524 esac
8525 ;;
8526
8527 interix[3-9]*)
8528 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8529 # Instead, we relocate shared libraries at runtime.
8530 ;;
8531
8532 msdosdjgpp*)
8533 # Just because we use GCC doesn't mean we suddenly get shared libraries
8534 # on systems that don't support them.
8535 lt_prog_compiler_can_build_shared=no
8536 enable_shared=no
8537 ;;
8538
8539 *nto* | *qnx*)
8540 # QNX uses GNU C++, but need to define -shared option too, otherwise
8541 # it will coredump.
8542 lt_prog_compiler_pic='-fPIC -shared'
8543 ;;
8544
8545 sysv4*MP*)
8546 if test -d /usr/nec; then
8547 lt_prog_compiler_pic=-Kconform_pic
8548 fi
8549 ;;
8550
8551 *)
8552 lt_prog_compiler_pic='-fPIC'
8553 ;;
8554 esac
8555 else
8556 # PORTME Check for flag to pass linker flags through the system compiler.
8557 case $host_os in
8558 aix*)
8559 lt_prog_compiler_wl='-Wl,'
8560 if test "$host_cpu" = ia64; then
8561 # AIX 5 now supports IA64 processor
8562 lt_prog_compiler_static='-Bstatic'
8563 else
8564 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8565 fi
8566 ;;
8567
8568 mingw* | cygwin* | pw32* | os2* | cegcc*)
8569 # This hack is so that the source file can tell whether it is being
8570 # built for inclusion in a dll (and should export symbols for example).
8571 lt_prog_compiler_pic='-DDLL_EXPORT'
8572 ;;
8573
8574 hpux9* | hpux10* | hpux11*)
8575 lt_prog_compiler_wl='-Wl,'
8576 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8577 # not for PA HP-UX.
8578 case $host_cpu in
8579 hppa*64*|ia64*)
8580 # +Z the default
8581 ;;
8582 *)
8583 lt_prog_compiler_pic='+Z'
8584 ;;
8585 esac
8586 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8587 lt_prog_compiler_static='${wl}-a ${wl}archive'
8588 ;;
8589
8590 irix5* | irix6* | nonstopux*)
8591 lt_prog_compiler_wl='-Wl,'
8592 # PIC (with -KPIC) is the default.
8593 lt_prog_compiler_static='-non_shared'
8594 ;;
8595
8596 linux* | k*bsd*-gnu)
8597 case $cc_basename in
8598 # old Intel for x86_64 which still supported -KPIC.
8599 ecc*)
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_pic='-KPIC'
8602 lt_prog_compiler_static='-static'
8603 ;;
8604 # icc used to be incompatible with GCC.
8605 # ICC 10 doesn't accept -KPIC any more.
8606 icc* | ifort*)
8607 lt_prog_compiler_wl='-Wl,'
8608 lt_prog_compiler_pic='-fPIC'
8609 lt_prog_compiler_static='-static'
8610 ;;
8611 # Lahey Fortran 8.1.
8612 lf95*)
8613 lt_prog_compiler_wl='-Wl,'
8614 lt_prog_compiler_pic='--shared'
8615 lt_prog_compiler_static='--static'
8616 ;;
8617 pgcc* | pgf77* | pgf90* | pgf95*)
8618 # Portland Group compilers (*not* the Pentium gcc compiler,
8619 # which looks to be a dead project)
8620 lt_prog_compiler_wl='-Wl,'
8621 lt_prog_compiler_pic='-fpic'
8622 lt_prog_compiler_static='-Bstatic'
8623 ;;
8624 ccc*)
8625 lt_prog_compiler_wl='-Wl,'
8626 # All Alpha code is PIC.
8627 lt_prog_compiler_static='-non_shared'
8628 ;;
8629 xl*)
8630 # IBM XL C 8.0/Fortran 10.1 on PPC
8631 lt_prog_compiler_wl='-Wl,'
8632 lt_prog_compiler_pic='-qpic'
8633 lt_prog_compiler_static='-qstaticlink'
8634 ;;
8635 *)
8636 case `$CC -V 2>&1 | sed 5q` in
8637 *Sun\ C*)
8638 # Sun C 5.9
8639 lt_prog_compiler_pic='-KPIC'
8640 lt_prog_compiler_static='-Bstatic'
8641 lt_prog_compiler_wl='-Wl,'
8642 ;;
8643 *Sun\ F*)
8644 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8645 lt_prog_compiler_pic='-KPIC'
8646 lt_prog_compiler_static='-Bstatic'
8647 lt_prog_compiler_wl=''
8648 ;;
8649 esac
8650 ;;
8651 esac
8652 ;;
8653
8654 newsos6)
8655 lt_prog_compiler_pic='-KPIC'
8656 lt_prog_compiler_static='-Bstatic'
8657 ;;
8658
8659 *nto* | *qnx*)
8660 # QNX uses GNU C++, but need to define -shared option too, otherwise
8661 # it will coredump.
8662 lt_prog_compiler_pic='-fPIC -shared'
8663 ;;
8664
8665 osf3* | osf4* | osf5*)
8666 lt_prog_compiler_wl='-Wl,'
8667 # All OSF/1 code is PIC.
8668 lt_prog_compiler_static='-non_shared'
8669 ;;
8670
8671 rdos*)
8672 lt_prog_compiler_static='-non_shared'
8673 ;;
8674
8675 solaris*)
8676 lt_prog_compiler_pic='-KPIC'
8677 lt_prog_compiler_static='-Bstatic'
8678 case $cc_basename in
8679 f77* | f90* | f95*)
8680 lt_prog_compiler_wl='-Qoption ld ';;
8681 *)
8682 lt_prog_compiler_wl='-Wl,';;
8683 esac
8684 ;;
8685
8686 sunos4*)
8687 lt_prog_compiler_wl='-Qoption ld '
8688 lt_prog_compiler_pic='-PIC'
8689 lt_prog_compiler_static='-Bstatic'
8690 ;;
8691
8692 sysv4 | sysv4.2uw2* | sysv4.3*)
8693 lt_prog_compiler_wl='-Wl,'
8694 lt_prog_compiler_pic='-KPIC'
8695 lt_prog_compiler_static='-Bstatic'
8696 ;;
8697
8698 sysv4*MP*)
8699 if test -d /usr/nec ;then
8700 lt_prog_compiler_pic='-Kconform_pic'
8701 lt_prog_compiler_static='-Bstatic'
8702 fi
8703 ;;
8704
8705 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8706 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_pic='-KPIC'
8708 lt_prog_compiler_static='-Bstatic'
8709 ;;
8710
8711 unicos*)
8712 lt_prog_compiler_wl='-Wl,'
8713 lt_prog_compiler_can_build_shared=no
8714 ;;
8715
8716 uts4*)
8717 lt_prog_compiler_pic='-pic'
8718 lt_prog_compiler_static='-Bstatic'
8719 ;;
8720
8721 *)
8722 lt_prog_compiler_can_build_shared=no
8723 ;;
8724 esac
8725 fi
8726
8727 case $host_os in
8728 # For platforms which do not support PIC, -DPIC is meaningless:
8729 *djgpp*)
8730 lt_prog_compiler_pic=
8731 ;;
8732 *)
8733 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8734 ;;
8735 esac
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8737 $as_echo "$lt_prog_compiler_pic" >&6; }
8738
8739
8740
8741
8742
8743
8744 #
8745 # Check to make sure the PIC flag actually works.
8746 #
8747 if test -n "$lt_prog_compiler_pic"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8749 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8750 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 lt_cv_prog_compiler_pic_works=no
8754 ac_outfile=conftest.$ac_objext
8755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8756 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8757 # Insert the option either (1) after the last *FLAGS variable, or
8758 # (2) before a word containing "conftest.", or (3) at the end.
8759 # Note that $ac_compile itself does not contain backslashes and begins
8760 # with a dollar sign (not a hyphen), so the echo should work correctly.
8761 # The option is referenced via a variable to avoid confusing sed.
8762 lt_compile=`echo "$ac_compile" | $SED \
8763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8765 -e 's:$: $lt_compiler_flag:'`
8766 (eval echo "\"\$as_me:8766: $lt_compile\"" >&5)
8767 (eval "$lt_compile" 2>conftest.err)
8768 ac_status=$?
8769 cat conftest.err >&5
8770 echo "$as_me:8770: \$? = $ac_status" >&5
8771 if (exit $ac_status) && test -s "$ac_outfile"; then
8772 # The compiler can only warn and ignore the option if not recognized
8773 # So say no if there are warnings other than the usual output.
8774 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8777 lt_cv_prog_compiler_pic_works=yes
8778 fi
8779 fi
8780 $RM conftest*
8781
8782 fi
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8784 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8785
8786 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8787 case $lt_prog_compiler_pic in
8788 "" | " "*) ;;
8789 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8790 esac
8791 else
8792 lt_prog_compiler_pic=
8793 lt_prog_compiler_can_build_shared=no
8794 fi
8795
8796 fi
8797
8798
8799
8800
8801
8802
8803 #
8804 # Check to make sure the static flag actually works.
8805 #
8806 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8808 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8809 if ${lt_cv_prog_compiler_static_works+:} false; then :
8810 $as_echo_n "(cached) " >&6
8811 else
8812 lt_cv_prog_compiler_static_works=no
8813 save_LDFLAGS="$LDFLAGS"
8814 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8815 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8816 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8817 # The linker can only warn and ignore the option if not recognized
8818 # So say no if there are warnings
8819 if test -s conftest.err; then
8820 # Append any errors to the config.log.
8821 cat conftest.err 1>&5
8822 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8824 if diff conftest.exp conftest.er2 >/dev/null; then
8825 lt_cv_prog_compiler_static_works=yes
8826 fi
8827 else
8828 lt_cv_prog_compiler_static_works=yes
8829 fi
8830 fi
8831 $RM -r conftest*
8832 LDFLAGS="$save_LDFLAGS"
8833
8834 fi
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8836 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8837
8838 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8839 :
8840 else
8841 lt_prog_compiler_static=
8842 fi
8843
8844
8845
8846
8847
8848
8849
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8851 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8852 if ${lt_cv_prog_compiler_c_o+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 lt_cv_prog_compiler_c_o=no
8856 $RM -r conftest 2>/dev/null
8857 mkdir conftest
8858 cd conftest
8859 mkdir out
8860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8861
8862 lt_compiler_flag="-o out/conftest2.$ac_objext"
8863 # Insert the option either (1) after the last *FLAGS variable, or
8864 # (2) before a word containing "conftest.", or (3) at the end.
8865 # Note that $ac_compile itself does not contain backslashes and begins
8866 # with a dollar sign (not a hyphen), so the echo should work correctly.
8867 lt_compile=`echo "$ac_compile" | $SED \
8868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8870 -e 's:$: $lt_compiler_flag:'`
8871 (eval echo "\"\$as_me:8871: $lt_compile\"" >&5)
8872 (eval "$lt_compile" 2>out/conftest.err)
8873 ac_status=$?
8874 cat out/conftest.err >&5
8875 echo "$as_me:8875: \$? = $ac_status" >&5
8876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8877 then
8878 # The compiler can only warn and ignore the option if not recognized
8879 # So say no if there are warnings
8880 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8883 lt_cv_prog_compiler_c_o=yes
8884 fi
8885 fi
8886 chmod u+w . 2>&5
8887 $RM conftest*
8888 # SGI C++ compiler will create directory out/ii_files/ for
8889 # template instantiation
8890 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8891 $RM out/* && rmdir out
8892 cd ..
8893 $RM -r conftest
8894 $RM conftest*
8895
8896 fi
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8898 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8899
8900
8901
8902
8903
8904
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8906 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8907 if ${lt_cv_prog_compiler_c_o+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 lt_cv_prog_compiler_c_o=no
8911 $RM -r conftest 2>/dev/null
8912 mkdir conftest
8913 cd conftest
8914 mkdir out
8915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8916
8917 lt_compiler_flag="-o out/conftest2.$ac_objext"
8918 # Insert the option either (1) after the last *FLAGS variable, or
8919 # (2) before a word containing "conftest.", or (3) at the end.
8920 # Note that $ac_compile itself does not contain backslashes and begins
8921 # with a dollar sign (not a hyphen), so the echo should work correctly.
8922 lt_compile=`echo "$ac_compile" | $SED \
8923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8925 -e 's:$: $lt_compiler_flag:'`
8926 (eval echo "\"\$as_me:8926: $lt_compile\"" >&5)
8927 (eval "$lt_compile" 2>out/conftest.err)
8928 ac_status=$?
8929 cat out/conftest.err >&5
8930 echo "$as_me:8930: \$? = $ac_status" >&5
8931 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8932 then
8933 # The compiler can only warn and ignore the option if not recognized
8934 # So say no if there are warnings
8935 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8936 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8937 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8938 lt_cv_prog_compiler_c_o=yes
8939 fi
8940 fi
8941 chmod u+w . 2>&5
8942 $RM conftest*
8943 # SGI C++ compiler will create directory out/ii_files/ for
8944 # template instantiation
8945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8946 $RM out/* && rmdir out
8947 cd ..
8948 $RM -r conftest
8949 $RM conftest*
8950
8951 fi
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8953 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8954
8955
8956
8957
8958 hard_links="nottested"
8959 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8960 # do not overwrite the value of need_locks provided by the user
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8962 $as_echo_n "checking if we can lock with hard links... " >&6; }
8963 hard_links=yes
8964 $RM conftest*
8965 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8966 touch conftest.a
8967 ln conftest.a conftest.b 2>&5 || hard_links=no
8968 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8970 $as_echo "$hard_links" >&6; }
8971 if test "$hard_links" = no; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8973 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8974 need_locks=warn
8975 fi
8976 else
8977 need_locks=no
8978 fi
8979
8980
8981
8982
8983
8984
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8986 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8987
8988 runpath_var=
8989 allow_undefined_flag=
8990 always_export_symbols=no
8991 archive_cmds=
8992 archive_expsym_cmds=
8993 compiler_needs_object=no
8994 enable_shared_with_static_runtimes=no
8995 export_dynamic_flag_spec=
8996 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8997 hardcode_automatic=no
8998 hardcode_direct=no
8999 hardcode_direct_absolute=no
9000 hardcode_libdir_flag_spec=
9001 hardcode_libdir_flag_spec_ld=
9002 hardcode_libdir_separator=
9003 hardcode_minus_L=no
9004 hardcode_shlibpath_var=unsupported
9005 inherit_rpath=no
9006 link_all_deplibs=unknown
9007 module_cmds=
9008 module_expsym_cmds=
9009 old_archive_from_new_cmds=
9010 old_archive_from_expsyms_cmds=
9011 thread_safe_flag_spec=
9012 whole_archive_flag_spec=
9013 # include_expsyms should be a list of space-separated symbols to be *always*
9014 # included in the symbol list
9015 include_expsyms=
9016 # exclude_expsyms can be an extended regexp of symbols to exclude
9017 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9018 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9019 # as well as any symbol that contains `d'.
9020 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9021 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9022 # platforms (ab)use it in PIC code, but their linkers get confused if
9023 # the symbol is explicitly referenced. Since portable code cannot
9024 # rely on this symbol name, it's probably fine to never include it in
9025 # preloaded symbol tables.
9026 # Exclude shared library initialization/finalization symbols.
9027 extract_expsyms_cmds=
9028
9029 case $host_os in
9030 cygwin* | mingw* | pw32* | cegcc*)
9031 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9032 # When not using gcc, we currently assume that we are using
9033 # Microsoft Visual C++.
9034 if test "$GCC" != yes; then
9035 with_gnu_ld=no
9036 fi
9037 ;;
9038 interix*)
9039 # we just hope/assume this is gcc and not c89 (= MSVC++)
9040 with_gnu_ld=yes
9041 ;;
9042 openbsd*)
9043 with_gnu_ld=no
9044 ;;
9045 esac
9046
9047 ld_shlibs=yes
9048 if test "$with_gnu_ld" = yes; then
9049 # If archive_cmds runs LD, not CC, wlarc should be empty
9050 wlarc='${wl}'
9051
9052 # Set some defaults for GNU ld with shared library support. These
9053 # are reset later if shared libraries are not supported. Putting them
9054 # here allows them to be overridden if necessary.
9055 runpath_var=LD_RUN_PATH
9056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9057 export_dynamic_flag_spec='${wl}--export-dynamic'
9058 # ancient GNU ld didn't support --whole-archive et. al.
9059 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9060 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9061 else
9062 whole_archive_flag_spec=
9063 fi
9064 supports_anon_versioning=no
9065 case `$LD -v 2>&1` in
9066 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9067 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9068 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9069 *\ 2.11.*) ;; # other 2.11 versions
9070 *) supports_anon_versioning=yes ;;
9071 esac
9072
9073 # See if GNU ld supports shared libraries.
9074 case $host_os in
9075 aix[3-9]*)
9076 # On AIX/PPC, the GNU linker is very broken
9077 if test "$host_cpu" != ia64; then
9078 ld_shlibs=no
9079 cat <<_LT_EOF 1>&2
9080
9081 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9082 *** to be unable to reliably create shared libraries on AIX.
9083 *** Therefore, libtool is disabling shared libraries support. If you
9084 *** really care for shared libraries, you may want to modify your PATH
9085 *** so that a non-GNU linker is found, and then restart.
9086
9087 _LT_EOF
9088 fi
9089 ;;
9090
9091 amigaos*)
9092 case $host_cpu in
9093 powerpc)
9094 # see comment about AmigaOS4 .so support
9095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9096 archive_expsym_cmds=''
9097 ;;
9098 m68k)
9099 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)'
9100 hardcode_libdir_flag_spec='-L$libdir'
9101 hardcode_minus_L=yes
9102 ;;
9103 esac
9104 ;;
9105
9106 beos*)
9107 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9108 allow_undefined_flag=unsupported
9109 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9110 # support --undefined. This deserves some investigation. FIXME
9111 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9112 else
9113 ld_shlibs=no
9114 fi
9115 ;;
9116
9117 cygwin* | mingw* | pw32* | cegcc*)
9118 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9119 # as there is no search path for DLLs.
9120 hardcode_libdir_flag_spec='-L$libdir'
9121 allow_undefined_flag=unsupported
9122 always_export_symbols=no
9123 enable_shared_with_static_runtimes=yes
9124 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9125
9126 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9128 # If the export-symbols file already is a .def file (1st line
9129 # is EXPORTS), use it as is; otherwise, prepend...
9130 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9131 cp $export_symbols $output_objdir/$soname.def;
9132 else
9133 echo EXPORTS > $output_objdir/$soname.def;
9134 cat $export_symbols >> $output_objdir/$soname.def;
9135 fi~
9136 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9137 else
9138 ld_shlibs=no
9139 fi
9140 ;;
9141
9142 interix[3-9]*)
9143 hardcode_direct=no
9144 hardcode_shlibpath_var=no
9145 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9146 export_dynamic_flag_spec='${wl}-E'
9147 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9148 # Instead, shared libraries are loaded at an image base (0x10000000 by
9149 # default) and relocated if they conflict, which is a slow very memory
9150 # consuming and fragmenting process. To avoid this, we pick a random,
9151 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9152 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9153 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9154 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'
9155 ;;
9156
9157 gnu* | linux* | tpf* | k*bsd*-gnu)
9158 tmp_diet=no
9159 if test "$host_os" = linux-dietlibc; then
9160 case $cc_basename in
9161 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9162 esac
9163 fi
9164 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9165 && test "$tmp_diet" = no
9166 then
9167 tmp_addflag=
9168 tmp_sharedflag='-shared'
9169 case $cc_basename,$host_cpu in
9170 pgcc*) # Portland Group C compiler
9171 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9172 tmp_addflag=' $pic_flag'
9173 ;;
9174 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9175 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9176 tmp_addflag=' $pic_flag -Mnomain' ;;
9177 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9178 tmp_addflag=' -i_dynamic' ;;
9179 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9180 tmp_addflag=' -i_dynamic -nofor_main' ;;
9181 ifc* | ifort*) # Intel Fortran compiler
9182 tmp_addflag=' -nofor_main' ;;
9183 lf95*) # Lahey Fortran 8.1
9184 whole_archive_flag_spec=
9185 tmp_sharedflag='--shared' ;;
9186 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9187 tmp_sharedflag='-qmkshrobj'
9188 tmp_addflag= ;;
9189 esac
9190 case `$CC -V 2>&1 | sed 5q` in
9191 *Sun\ C*) # Sun C 5.9
9192 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9193 compiler_needs_object=yes
9194 tmp_sharedflag='-G' ;;
9195 *Sun\ F*) # Sun Fortran 8.3
9196 tmp_sharedflag='-G' ;;
9197 esac
9198 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9199
9200 if test "x$supports_anon_versioning" = xyes; then
9201 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9203 echo "local: *; };" >> $output_objdir/$libname.ver~
9204 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9205 fi
9206
9207 case $cc_basename in
9208 xlf*)
9209 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9210 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9211 hardcode_libdir_flag_spec=
9212 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9213 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9214 if test "x$supports_anon_versioning" = xyes; then
9215 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9216 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9217 echo "local: *; };" >> $output_objdir/$libname.ver~
9218 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9219 fi
9220 ;;
9221 esac
9222 else
9223 ld_shlibs=no
9224 fi
9225 ;;
9226
9227 netbsd*)
9228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9229 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9230 wlarc=
9231 else
9232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9233 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9234 fi
9235 ;;
9236
9237 solaris*)
9238 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9239 ld_shlibs=no
9240 cat <<_LT_EOF 1>&2
9241
9242 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9243 *** create shared libraries on Solaris systems. Therefore, libtool
9244 *** is disabling shared libraries support. We urge you to upgrade GNU
9245 *** binutils to release 2.9.1 or newer. Another option is to modify
9246 *** your PATH or compiler configuration so that the native linker is
9247 *** used, and then restart.
9248
9249 _LT_EOF
9250 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9253 else
9254 ld_shlibs=no
9255 fi
9256 ;;
9257
9258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9259 case `$LD -v 2>&1` in
9260 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9261 ld_shlibs=no
9262 cat <<_LT_EOF 1>&2
9263
9264 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9265 *** reliably create shared libraries on SCO systems. Therefore, libtool
9266 *** is disabling shared libraries support. We urge you to upgrade GNU
9267 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9268 *** your PATH or compiler configuration so that the native linker is
9269 *** used, and then restart.
9270
9271 _LT_EOF
9272 ;;
9273 *)
9274 # For security reasons, it is highly recommended that you always
9275 # use absolute paths for naming shared libraries, and exclude the
9276 # DT_RUNPATH tag from executables and libraries. But doing so
9277 # requires that you compile everything twice, which is a pain.
9278 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9282 else
9283 ld_shlibs=no
9284 fi
9285 ;;
9286 esac
9287 ;;
9288
9289 sunos4*)
9290 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9291 wlarc=
9292 hardcode_direct=yes
9293 hardcode_shlibpath_var=no
9294 ;;
9295
9296 *)
9297 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9300 else
9301 ld_shlibs=no
9302 fi
9303 ;;
9304 esac
9305
9306 if test "$ld_shlibs" = no; then
9307 runpath_var=
9308 hardcode_libdir_flag_spec=
9309 export_dynamic_flag_spec=
9310 whole_archive_flag_spec=
9311 fi
9312 else
9313 # PORTME fill in a description of your system's linker (not GNU ld)
9314 case $host_os in
9315 aix3*)
9316 allow_undefined_flag=unsupported
9317 always_export_symbols=yes
9318 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'
9319 # Note: this linker hardcodes the directories in LIBPATH if there
9320 # are no directories specified by -L.
9321 hardcode_minus_L=yes
9322 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9323 # Neither direct hardcoding nor static linking is supported with a
9324 # broken collect2.
9325 hardcode_direct=unsupported
9326 fi
9327 ;;
9328
9329 aix[4-9]*)
9330 if test "$host_cpu" = ia64; then
9331 # On IA64, the linker does run time linking by default, so we don't
9332 # have to do anything special.
9333 aix_use_runtimelinking=no
9334 exp_sym_flag='-Bexport'
9335 no_entry_flag=""
9336 else
9337 # If we're using GNU nm, then we don't want the "-C" option.
9338 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9339 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9340 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9341 else
9342 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'
9343 fi
9344 aix_use_runtimelinking=no
9345
9346 # Test if we are trying to use run time linking or normal
9347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9348 # need to do runtime linking.
9349 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9350 for ld_flag in $LDFLAGS; do
9351 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9352 aix_use_runtimelinking=yes
9353 break
9354 fi
9355 done
9356 ;;
9357 esac
9358
9359 exp_sym_flag='-bexport'
9360 no_entry_flag='-bnoentry'
9361 fi
9362
9363 # When large executables or shared objects are built, AIX ld can
9364 # have problems creating the table of contents. If linking a library
9365 # or program results in "error TOC overflow" add -mminimal-toc to
9366 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9367 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9368
9369 archive_cmds=''
9370 hardcode_direct=yes
9371 hardcode_direct_absolute=yes
9372 hardcode_libdir_separator=':'
9373 link_all_deplibs=yes
9374 file_list_spec='${wl}-f,'
9375
9376 if test "$GCC" = yes; then
9377 case $host_os in aix4.[012]|aix4.[012].*)
9378 # We only want to do this on AIX 4.2 and lower, the check
9379 # below for broken collect2 doesn't work under 4.3+
9380 collect2name=`${CC} -print-prog-name=collect2`
9381 if test -f "$collect2name" &&
9382 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9383 then
9384 # We have reworked collect2
9385 :
9386 else
9387 # We have old collect2
9388 hardcode_direct=unsupported
9389 # It fails to find uninstalled libraries when the uninstalled
9390 # path is not listed in the libpath. Setting hardcode_minus_L
9391 # to unsupported forces relinking
9392 hardcode_minus_L=yes
9393 hardcode_libdir_flag_spec='-L$libdir'
9394 hardcode_libdir_separator=
9395 fi
9396 ;;
9397 esac
9398 shared_flag='-shared'
9399 if test "$aix_use_runtimelinking" = yes; then
9400 shared_flag="$shared_flag "'${wl}-G'
9401 fi
9402 else
9403 # not using gcc
9404 if test "$host_cpu" = ia64; then
9405 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9406 # chokes on -Wl,-G. The following line is correct:
9407 shared_flag='-G'
9408 else
9409 if test "$aix_use_runtimelinking" = yes; then
9410 shared_flag='${wl}-G'
9411 else
9412 shared_flag='${wl}-bM:SRE'
9413 fi
9414 fi
9415 fi
9416
9417 export_dynamic_flag_spec='${wl}-bexpall'
9418 # It seems that -bexpall does not export symbols beginning with
9419 # underscore (_), so it is better to generate a list of symbols to export.
9420 always_export_symbols=yes
9421 if test "$aix_use_runtimelinking" = yes; then
9422 # Warning - without using the other runtime loading flags (-brtl),
9423 # -berok will link without error, but may produce a broken library.
9424 allow_undefined_flag='-berok'
9425 # Determine the default libpath from the value encoded in an
9426 # empty executable.
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h. */
9429
9430 int
9431 main ()
9432 {
9433
9434 ;
9435 return 0;
9436 }
9437 _ACEOF
9438 if ac_fn_c_try_link "$LINENO"; then :
9439
9440 lt_aix_libpath_sed='
9441 /Import File Strings/,/^$/ {
9442 /^0/ {
9443 s/^0 *\(.*\)$/\1/
9444 p
9445 }
9446 }'
9447 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9448 # Check for a 64-bit object if we didn't find anything.
9449 if test -z "$aix_libpath"; then
9450 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9451 fi
9452 fi
9453 rm -f core conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
9455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9456
9457 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9458 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9459 else
9460 if test "$host_cpu" = ia64; then
9461 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9462 allow_undefined_flag="-z nodefs"
9463 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"
9464 else
9465 # Determine the default libpath from the value encoded in an
9466 # empty executable.
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469
9470 int
9471 main ()
9472 {
9473
9474 ;
9475 return 0;
9476 }
9477 _ACEOF
9478 if ac_fn_c_try_link "$LINENO"; then :
9479
9480 lt_aix_libpath_sed='
9481 /Import File Strings/,/^$/ {
9482 /^0/ {
9483 s/^0 *\(.*\)$/\1/
9484 p
9485 }
9486 }'
9487 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9488 # Check for a 64-bit object if we didn't find anything.
9489 if test -z "$aix_libpath"; then
9490 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9491 fi
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9496
9497 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9498 # Warning - without using the other run time loading flags,
9499 # -berok will link without error, but may produce a broken library.
9500 no_undefined_flag=' ${wl}-bernotok'
9501 allow_undefined_flag=' ${wl}-berok'
9502 # Exported symbols can be pulled into shared objects from archives
9503 whole_archive_flag_spec='$convenience'
9504 archive_cmds_need_lc=yes
9505 # This is similar to how AIX traditionally builds its shared libraries.
9506 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'
9507 fi
9508 fi
9509 ;;
9510
9511 amigaos*)
9512 case $host_cpu in
9513 powerpc)
9514 # see comment about AmigaOS4 .so support
9515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9516 archive_expsym_cmds=''
9517 ;;
9518 m68k)
9519 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)'
9520 hardcode_libdir_flag_spec='-L$libdir'
9521 hardcode_minus_L=yes
9522 ;;
9523 esac
9524 ;;
9525
9526 bsdi[45]*)
9527 export_dynamic_flag_spec=-rdynamic
9528 ;;
9529
9530 cygwin* | mingw* | pw32* | cegcc*)
9531 # When not using gcc, we currently assume that we are using
9532 # Microsoft Visual C++.
9533 # hardcode_libdir_flag_spec is actually meaningless, as there is
9534 # no search path for DLLs.
9535 hardcode_libdir_flag_spec=' '
9536 allow_undefined_flag=unsupported
9537 # Tell ltmain to make .lib files, not .a files.
9538 libext=lib
9539 # Tell ltmain to make .dll files, not .so files.
9540 shrext_cmds=".dll"
9541 # FIXME: Setting linknames here is a bad hack.
9542 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9543 # The linker will automatically build a .lib file if we build a DLL.
9544 old_archive_from_new_cmds='true'
9545 # FIXME: Should let the user specify the lib program.
9546 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9547 fix_srcfile_path='`cygpath -w "$srcfile"`'
9548 enable_shared_with_static_runtimes=yes
9549 ;;
9550
9551 darwin* | rhapsody*)
9552
9553
9554 archive_cmds_need_lc=no
9555 hardcode_direct=no
9556 hardcode_automatic=yes
9557 hardcode_shlibpath_var=unsupported
9558 whole_archive_flag_spec=''
9559 link_all_deplibs=yes
9560 allow_undefined_flag="$_lt_dar_allow_undefined"
9561 case $cc_basename in
9562 ifort*) _lt_dar_can_shared=yes ;;
9563 *) _lt_dar_can_shared=$GCC ;;
9564 esac
9565 if test "$_lt_dar_can_shared" = "yes"; then
9566 output_verbose_link_cmd=echo
9567 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9568 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9569 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}"
9570 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}"
9571
9572 else
9573 ld_shlibs=no
9574 fi
9575
9576 ;;
9577
9578 dgux*)
9579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_libdir_flag_spec='-L$libdir'
9581 hardcode_shlibpath_var=no
9582 ;;
9583
9584 freebsd1*)
9585 ld_shlibs=no
9586 ;;
9587
9588 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9589 # support. Future versions do this automatically, but an explicit c++rt0.o
9590 # does not break anything, and helps significantly (at the cost of a little
9591 # extra space).
9592 freebsd2.2*)
9593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9594 hardcode_libdir_flag_spec='-R$libdir'
9595 hardcode_direct=yes
9596 hardcode_shlibpath_var=no
9597 ;;
9598
9599 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9600 freebsd2*)
9601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9602 hardcode_direct=yes
9603 hardcode_minus_L=yes
9604 hardcode_shlibpath_var=no
9605 ;;
9606
9607 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9608 freebsd* | dragonfly*)
9609 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9610 hardcode_libdir_flag_spec='-R$libdir'
9611 hardcode_direct=yes
9612 hardcode_shlibpath_var=no
9613 ;;
9614
9615 hpux9*)
9616 if test "$GCC" = yes; then
9617 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9618 else
9619 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'
9620 fi
9621 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9622 hardcode_libdir_separator=:
9623 hardcode_direct=yes
9624
9625 # hardcode_minus_L: Not really in the search PATH,
9626 # but as the default location of the library.
9627 hardcode_minus_L=yes
9628 export_dynamic_flag_spec='${wl}-E'
9629 ;;
9630
9631 hpux10*)
9632 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9633 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9634 else
9635 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9636 fi
9637 if test "$with_gnu_ld" = no; then
9638 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9639 hardcode_libdir_flag_spec_ld='+b $libdir'
9640 hardcode_libdir_separator=:
9641 hardcode_direct=yes
9642 hardcode_direct_absolute=yes
9643 export_dynamic_flag_spec='${wl}-E'
9644 # hardcode_minus_L: Not really in the search PATH,
9645 # but as the default location of the library.
9646 hardcode_minus_L=yes
9647 fi
9648 ;;
9649
9650 hpux11*)
9651 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9652 case $host_cpu in
9653 hppa*64*)
9654 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9655 ;;
9656 ia64*)
9657 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9658 ;;
9659 *)
9660 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9661 ;;
9662 esac
9663 else
9664 case $host_cpu in
9665 hppa*64*)
9666 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9667 ;;
9668 ia64*)
9669 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9670 ;;
9671 *)
9672 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9673 ;;
9674 esac
9675 fi
9676 if test "$with_gnu_ld" = no; then
9677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9678 hardcode_libdir_separator=:
9679
9680 case $host_cpu in
9681 hppa*64*|ia64*)
9682 hardcode_direct=no
9683 hardcode_shlibpath_var=no
9684 ;;
9685 *)
9686 hardcode_direct=yes
9687 hardcode_direct_absolute=yes
9688 export_dynamic_flag_spec='${wl}-E'
9689
9690 # hardcode_minus_L: Not really in the search PATH,
9691 # but as the default location of the library.
9692 hardcode_minus_L=yes
9693 ;;
9694 esac
9695 fi
9696 ;;
9697
9698 irix5* | irix6* | nonstopux*)
9699 if test "$GCC" = yes; then
9700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9701 # Try to use the -exported_symbol ld option, if it does not
9702 # work, assume that -exports_file does not work either and
9703 # implicitly export all symbols.
9704 save_LDFLAGS="$LDFLAGS"
9705 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9708 int foo(void) {}
9709 _ACEOF
9710 if ac_fn_c_try_link "$LINENO"; then :
9711 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9712
9713 fi
9714 rm -f core conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
9716 LDFLAGS="$save_LDFLAGS"
9717 else
9718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9719 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9720 fi
9721 archive_cmds_need_lc='no'
9722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9723 hardcode_libdir_separator=:
9724 inherit_rpath=yes
9725 link_all_deplibs=yes
9726 ;;
9727
9728 netbsd*)
9729 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9731 else
9732 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9733 fi
9734 hardcode_libdir_flag_spec='-R$libdir'
9735 hardcode_direct=yes
9736 hardcode_shlibpath_var=no
9737 ;;
9738
9739 newsos6)
9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_direct=yes
9742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9743 hardcode_libdir_separator=:
9744 hardcode_shlibpath_var=no
9745 ;;
9746
9747 *nto* | *qnx*)
9748 ;;
9749
9750 openbsd*)
9751 if test -f /usr/libexec/ld.so; then
9752 hardcode_direct=yes
9753 hardcode_shlibpath_var=no
9754 hardcode_direct_absolute=yes
9755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9757 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9759 export_dynamic_flag_spec='${wl}-E'
9760 else
9761 case $host_os in
9762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9764 hardcode_libdir_flag_spec='-R$libdir'
9765 ;;
9766 *)
9767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9769 ;;
9770 esac
9771 fi
9772 else
9773 ld_shlibs=no
9774 fi
9775 ;;
9776
9777 os2*)
9778 hardcode_libdir_flag_spec='-L$libdir'
9779 hardcode_minus_L=yes
9780 allow_undefined_flag=unsupported
9781 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'
9782 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9783 ;;
9784
9785 osf3*)
9786 if test "$GCC" = yes; then
9787 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9788 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9789 else
9790 allow_undefined_flag=' -expect_unresolved \*'
9791 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9792 fi
9793 archive_cmds_need_lc='no'
9794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9795 hardcode_libdir_separator=:
9796 ;;
9797
9798 osf4* | osf5*) # as osf3* with the addition of -msym flag
9799 if test "$GCC" = yes; then
9800 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9801 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9803 else
9804 allow_undefined_flag=' -expect_unresolved \*'
9805 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9806 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~
9807 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9808
9809 # Both c and cxx compiler support -rpath directly
9810 hardcode_libdir_flag_spec='-rpath $libdir'
9811 fi
9812 archive_cmds_need_lc='no'
9813 hardcode_libdir_separator=:
9814 ;;
9815
9816 solaris*)
9817 no_undefined_flag=' -z defs'
9818 if test "$GCC" = yes; then
9819 wlarc='${wl}'
9820 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9822 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9823 else
9824 case `$CC -V 2>&1` in
9825 *"Compilers 5.0"*)
9826 wlarc=''
9827 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9828 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9830 ;;
9831 *)
9832 wlarc='${wl}'
9833 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9835 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9836 ;;
9837 esac
9838 fi
9839 hardcode_libdir_flag_spec='-R$libdir'
9840 hardcode_shlibpath_var=no
9841 case $host_os in
9842 solaris2.[0-5] | solaris2.[0-5].*) ;;
9843 *)
9844 # The compiler driver will combine and reorder linker options,
9845 # but understands `-z linker_flag'. GCC discards it without `$wl',
9846 # but is careful enough not to reorder.
9847 # Supported since Solaris 2.6 (maybe 2.5.1?)
9848 if test "$GCC" = yes; then
9849 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9850 else
9851 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9852 fi
9853 ;;
9854 esac
9855 link_all_deplibs=yes
9856 ;;
9857
9858 sunos4*)
9859 if test "x$host_vendor" = xsequent; then
9860 # Use $CC to link under sequent, because it throws in some extra .o
9861 # files that make .init and .fini sections work.
9862 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9863 else
9864 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9865 fi
9866 hardcode_libdir_flag_spec='-L$libdir'
9867 hardcode_direct=yes
9868 hardcode_minus_L=yes
9869 hardcode_shlibpath_var=no
9870 ;;
9871
9872 sysv4)
9873 case $host_vendor in
9874 sni)
9875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9876 hardcode_direct=yes # is this really true???
9877 ;;
9878 siemens)
9879 ## LD is ld it makes a PLAMLIB
9880 ## CC just makes a GrossModule.
9881 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9882 reload_cmds='$CC -r -o $output$reload_objs'
9883 hardcode_direct=no
9884 ;;
9885 motorola)
9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9888 ;;
9889 esac
9890 runpath_var='LD_RUN_PATH'
9891 hardcode_shlibpath_var=no
9892 ;;
9893
9894 sysv4.3*)
9895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896 hardcode_shlibpath_var=no
9897 export_dynamic_flag_spec='-Bexport'
9898 ;;
9899
9900 sysv4*MP*)
9901 if test -d /usr/nec; then
9902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 hardcode_shlibpath_var=no
9904 runpath_var=LD_RUN_PATH
9905 hardcode_runpath_var=yes
9906 ld_shlibs=yes
9907 fi
9908 ;;
9909
9910 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9911 no_undefined_flag='${wl}-z,text'
9912 archive_cmds_need_lc=no
9913 hardcode_shlibpath_var=no
9914 runpath_var='LD_RUN_PATH'
9915
9916 if test "$GCC" = yes; then
9917 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9918 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9919 else
9920 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9921 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9922 fi
9923 ;;
9924
9925 sysv5* | sco3.2v5* | sco5v6*)
9926 # Note: We can NOT use -z defs as we might desire, because we do not
9927 # link with -lc, and that would cause any symbols used from libc to
9928 # always be unresolved, which means just about no library would
9929 # ever link correctly. If we're not using GNU ld we use -z text
9930 # though, which does catch some bad symbols but isn't as heavy-handed
9931 # as -z defs.
9932 no_undefined_flag='${wl}-z,text'
9933 allow_undefined_flag='${wl}-z,nodefs'
9934 archive_cmds_need_lc=no
9935 hardcode_shlibpath_var=no
9936 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9937 hardcode_libdir_separator=':'
9938 link_all_deplibs=yes
9939 export_dynamic_flag_spec='${wl}-Bexport'
9940 runpath_var='LD_RUN_PATH'
9941
9942 if test "$GCC" = yes; then
9943 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9944 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9945 else
9946 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9947 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9948 fi
9949 ;;
9950
9951 uts4*)
9952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9953 hardcode_libdir_flag_spec='-L$libdir'
9954 hardcode_shlibpath_var=no
9955 ;;
9956
9957 *)
9958 ld_shlibs=no
9959 ;;
9960 esac
9961
9962 if test x$host_vendor = xsni; then
9963 case $host in
9964 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9965 export_dynamic_flag_spec='${wl}-Blargedynsym'
9966 ;;
9967 esac
9968 fi
9969 fi
9970
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9972 $as_echo "$ld_shlibs" >&6; }
9973 test "$ld_shlibs" = no && can_build_shared=no
9974
9975 with_gnu_ld=$with_gnu_ld
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991 #
9992 # Do we need to explicitly link libc?
9993 #
9994 case "x$archive_cmds_need_lc" in
9995 x|xyes)
9996 # Assume -lc should be added
9997 archive_cmds_need_lc=yes
9998
9999 if test "$enable_shared" = yes && test "$GCC" = yes; then
10000 case $archive_cmds in
10001 *'~'*)
10002 # FIXME: we may have to deal with multi-command sequences.
10003 ;;
10004 '$CC '*)
10005 # Test whether the compiler implicitly links with -lc since on some
10006 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10007 # to ld, don't add -lc before -lgcc.
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10009 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10010 $RM conftest*
10011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10012
10013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10014 (eval $ac_compile) 2>&5
10015 ac_status=$?
10016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10017 test $ac_status = 0; } 2>conftest.err; then
10018 soname=conftest
10019 lib=conftest
10020 libobjs=conftest.$ac_objext
10021 deplibs=
10022 wl=$lt_prog_compiler_wl
10023 pic_flag=$lt_prog_compiler_pic
10024 compiler_flags=-v
10025 linker_flags=-v
10026 verstring=
10027 output_objdir=.
10028 libname=conftest
10029 lt_save_allow_undefined_flag=$allow_undefined_flag
10030 allow_undefined_flag=
10031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10032 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10033 ac_status=$?
10034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10035 test $ac_status = 0; }
10036 then
10037 archive_cmds_need_lc=no
10038 else
10039 archive_cmds_need_lc=yes
10040 fi
10041 allow_undefined_flag=$lt_save_allow_undefined_flag
10042 else
10043 cat conftest.err 1>&5
10044 fi
10045 $RM conftest*
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10047 $as_echo "$archive_cmds_need_lc" >&6; }
10048 ;;
10049 esac
10050 fi
10051 ;;
10052 esac
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10211 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10212
10213 if test "$GCC" = yes; then
10214 case $host_os in
10215 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10216 *) lt_awk_arg="/^libraries:/" ;;
10217 esac
10218 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10219 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10220 # if the path contains ";" then we assume it to be the separator
10221 # otherwise default to the standard path separator (i.e. ":") - it is
10222 # assumed that no part of a normal pathname contains ";" but that should
10223 # okay in the real world where ";" in dirpaths is itself problematic.
10224 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10225 else
10226 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10227 fi
10228 # Ok, now we have the path, separated by spaces, we can step through it
10229 # and add multilib dir if necessary.
10230 lt_tmp_lt_search_path_spec=
10231 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10232 for lt_sys_path in $lt_search_path_spec; do
10233 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10234 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10235 else
10236 test -d "$lt_sys_path" && \
10237 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10238 fi
10239 done
10240 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10241 BEGIN {RS=" "; FS="/|\n";} {
10242 lt_foo="";
10243 lt_count=0;
10244 for (lt_i = NF; lt_i > 0; lt_i--) {
10245 if ($lt_i != "" && $lt_i != ".") {
10246 if ($lt_i == "..") {
10247 lt_count++;
10248 } else {
10249 if (lt_count == 0) {
10250 lt_foo="/" $lt_i lt_foo;
10251 } else {
10252 lt_count--;
10253 }
10254 }
10255 }
10256 }
10257 if (lt_foo != "") { lt_freq[lt_foo]++; }
10258 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10259 }'`
10260 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10261 else
10262 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10263 fi
10264 library_names_spec=
10265 libname_spec='lib$name'
10266 soname_spec=
10267 shrext_cmds=".so"
10268 postinstall_cmds=
10269 postuninstall_cmds=
10270 finish_cmds=
10271 finish_eval=
10272 shlibpath_var=
10273 shlibpath_overrides_runpath=unknown
10274 version_type=none
10275 dynamic_linker="$host_os ld.so"
10276 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10277 need_lib_prefix=unknown
10278 hardcode_into_libs=no
10279
10280 # when you set need_version to no, make sure it does not cause -set_version
10281 # flags to be left without arguments
10282 need_version=unknown
10283
10284 case $host_os in
10285 aix3*)
10286 version_type=linux
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10288 shlibpath_var=LIBPATH
10289
10290 # AIX 3 has no versioning support, so we append a major version to the name.
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 ;;
10293
10294 aix[4-9]*)
10295 version_type=linux
10296 need_lib_prefix=no
10297 need_version=no
10298 hardcode_into_libs=yes
10299 if test "$host_cpu" = ia64; then
10300 # AIX 5 supports IA64
10301 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 else
10304 # With GCC up to 2.95.x, collect2 would create an import file
10305 # for dependence libraries. The import file would start with
10306 # the line `#! .'. This would cause the generated library to
10307 # depend on `.', always an invalid library. This was fixed in
10308 # development snapshots of GCC prior to 3.0.
10309 case $host_os in
10310 aix4 | aix4.[01] | aix4.[01].*)
10311 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10312 echo ' yes '
10313 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10314 :
10315 else
10316 can_build_shared=no
10317 fi
10318 ;;
10319 esac
10320 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10321 # soname into executable. Probably we can add versioning support to
10322 # collect2, so additional links can be useful in future.
10323 if test "$aix_use_runtimelinking" = yes; then
10324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10325 # instead of lib<name>.a to let people know that these are not
10326 # typical AIX shared libraries.
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328 else
10329 # We preserve .a as extension for shared libraries through AIX4.2
10330 # and later when we are not doing run time linking.
10331 library_names_spec='${libname}${release}.a $libname.a'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 fi
10334 shlibpath_var=LIBPATH
10335 fi
10336 ;;
10337
10338 amigaos*)
10339 case $host_cpu in
10340 powerpc)
10341 # Since July 2007 AmigaOS4 officially supports .so libraries.
10342 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 ;;
10345 m68k)
10346 library_names_spec='$libname.ixlibrary $libname.a'
10347 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10348 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10349 ;;
10350 esac
10351 ;;
10352
10353 beos*)
10354 library_names_spec='${libname}${shared_ext}'
10355 dynamic_linker="$host_os ld.so"
10356 shlibpath_var=LIBRARY_PATH
10357 ;;
10358
10359 bsdi[45]*)
10360 version_type=linux
10361 need_version=no
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10367 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10368 # the default ld.so.conf also contains /usr/contrib/lib and
10369 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10370 # libtool to hard-code these into programs
10371 ;;
10372
10373 cygwin* | mingw* | pw32* | cegcc*)
10374 version_type=windows
10375 shrext_cmds=".dll"
10376 need_version=no
10377 need_lib_prefix=no
10378
10379 case $GCC,$host_os in
10380 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10381 library_names_spec='$libname.dll.a'
10382 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10383 postinstall_cmds='base_file=`basename \${file}`~
10384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10385 dldir=$destdir/`dirname \$dlpath`~
10386 test -d \$dldir || mkdir -p \$dldir~
10387 $install_prog $dir/$dlname \$dldir/$dlname~
10388 chmod a+x \$dldir/$dlname~
10389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10391 fi'
10392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10393 dlpath=$dir/\$dldll~
10394 $RM \$dlpath'
10395 shlibpath_overrides_runpath=yes
10396
10397 case $host_os in
10398 cygwin*)
10399 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10400 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10401 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10402 ;;
10403 mingw* | cegcc*)
10404 # MinGW DLLs use traditional 'lib' prefix
10405 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10406 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10407 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10408 # It is most probably a Windows format PATH printed by
10409 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10410 # path with ; separators, and with drive letters. We can handle the
10411 # drive letters (cygwin fileutils understands them), so leave them,
10412 # especially as we might pass files found there to a mingw objdump,
10413 # which wouldn't understand a cygwinified path. Ahh.
10414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10415 else
10416 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10417 fi
10418 ;;
10419 pw32*)
10420 # pw32 DLLs use 'pw' prefix rather than 'lib'
10421 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10422 ;;
10423 esac
10424 ;;
10425
10426 *)
10427 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10428 ;;
10429 esac
10430 dynamic_linker='Win32 ld.exe'
10431 # FIXME: first we should search . and the directory the executable is in
10432 shlibpath_var=PATH
10433 ;;
10434
10435 darwin* | rhapsody*)
10436 dynamic_linker="$host_os dyld"
10437 version_type=darwin
10438 need_lib_prefix=no
10439 need_version=no
10440 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10441 soname_spec='${libname}${release}${major}$shared_ext'
10442 shlibpath_overrides_runpath=yes
10443 shlibpath_var=DYLD_LIBRARY_PATH
10444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10445
10446 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10448 ;;
10449
10450 dgux*)
10451 version_type=linux
10452 need_lib_prefix=no
10453 need_version=no
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 shlibpath_var=LD_LIBRARY_PATH
10457 ;;
10458
10459 freebsd1*)
10460 dynamic_linker=no
10461 ;;
10462
10463 freebsd* | dragonfly*)
10464 # DragonFly does not have aout. When/if they implement a new
10465 # versioning mechanism, adjust this.
10466 if test -x /usr/bin/objformat; then
10467 objformat=`/usr/bin/objformat`
10468 else
10469 case $host_os in
10470 freebsd[123]*) objformat=aout ;;
10471 *) objformat=elf ;;
10472 esac
10473 fi
10474 version_type=freebsd-$objformat
10475 case $version_type in
10476 freebsd-elf*)
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10478 need_version=no
10479 need_lib_prefix=no
10480 ;;
10481 freebsd-*)
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10483 need_version=yes
10484 ;;
10485 esac
10486 shlibpath_var=LD_LIBRARY_PATH
10487 case $host_os in
10488 freebsd2*)
10489 shlibpath_overrides_runpath=yes
10490 ;;
10491 freebsd3.[01]* | freebsdelf3.[01]*)
10492 shlibpath_overrides_runpath=yes
10493 hardcode_into_libs=yes
10494 ;;
10495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10497 shlibpath_overrides_runpath=no
10498 hardcode_into_libs=yes
10499 ;;
10500 *) # from 4.6 on, and DragonFly
10501 shlibpath_overrides_runpath=yes
10502 hardcode_into_libs=yes
10503 ;;
10504 esac
10505 ;;
10506
10507 gnu*)
10508 version_type=linux
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 hardcode_into_libs=yes
10515 ;;
10516
10517 hpux9* | hpux10* | hpux11*)
10518 # Give a soname corresponding to the major version so that dld.sl refuses to
10519 # link against other versions.
10520 version_type=sunos
10521 need_lib_prefix=no
10522 need_version=no
10523 case $host_cpu in
10524 ia64*)
10525 shrext_cmds='.so'
10526 hardcode_into_libs=yes
10527 dynamic_linker="$host_os dld.so"
10528 shlibpath_var=LD_LIBRARY_PATH
10529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531 soname_spec='${libname}${release}${shared_ext}$major'
10532 if test "X$HPUX_IA64_MODE" = X32; then
10533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10534 else
10535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10536 fi
10537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10538 ;;
10539 hppa*64*)
10540 shrext_cmds='.sl'
10541 hardcode_into_libs=yes
10542 dynamic_linker="$host_os dld.sl"
10543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546 soname_spec='${libname}${release}${shared_ext}$major'
10547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10549 ;;
10550 *)
10551 shrext_cmds='.sl'
10552 dynamic_linker="$host_os dld.sl"
10553 shlibpath_var=SHLIB_PATH
10554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 soname_spec='${libname}${release}${shared_ext}$major'
10557 ;;
10558 esac
10559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10560 postinstall_cmds='chmod 555 $lib'
10561 ;;
10562
10563 interix[3-9]*)
10564 version_type=linux
10565 need_lib_prefix=no
10566 need_version=no
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10568 soname_spec='${libname}${release}${shared_ext}$major'
10569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 shlibpath_overrides_runpath=no
10572 hardcode_into_libs=yes
10573 ;;
10574
10575 irix5* | irix6* | nonstopux*)
10576 case $host_os in
10577 nonstopux*) version_type=nonstopux ;;
10578 *)
10579 if test "$lt_cv_prog_gnu_ld" = yes; then
10580 version_type=linux
10581 else
10582 version_type=irix
10583 fi ;;
10584 esac
10585 need_lib_prefix=no
10586 need_version=no
10587 soname_spec='${libname}${release}${shared_ext}$major'
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10589 case $host_os in
10590 irix5* | nonstopux*)
10591 libsuff= shlibsuff=
10592 ;;
10593 *)
10594 case $LD in # libtool.m4 will add one of these switches to LD
10595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10596 libsuff= shlibsuff= libmagic=32-bit;;
10597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10598 libsuff=32 shlibsuff=N32 libmagic=N32;;
10599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10601 *) libsuff= shlibsuff= libmagic=never-match;;
10602 esac
10603 ;;
10604 esac
10605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10606 shlibpath_overrides_runpath=no
10607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10609 hardcode_into_libs=yes
10610 ;;
10611
10612 # No shared lib support for Linux oldld, aout, or coff.
10613 linux*oldld* | linux*aout* | linux*coff*)
10614 dynamic_linker=no
10615 ;;
10616
10617 # This must be Linux ELF.
10618 linux* | k*bsd*-gnu)
10619 version_type=linux
10620 need_lib_prefix=no
10621 need_version=no
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 shlibpath_overrides_runpath=no
10627 # Some binutils ld are patched to set DT_RUNPATH
10628 save_LDFLAGS=$LDFLAGS
10629 save_libdir=$libdir
10630 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10631 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634
10635 int
10636 main ()
10637 {
10638
10639 ;
10640 return 0;
10641 }
10642 _ACEOF
10643 if ac_fn_c_try_link "$LINENO"; then :
10644 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10645 shlibpath_overrides_runpath=yes
10646 fi
10647 fi
10648 rm -f core conftest.err conftest.$ac_objext \
10649 conftest$ac_exeext conftest.$ac_ext
10650 LDFLAGS=$save_LDFLAGS
10651 libdir=$save_libdir
10652
10653 # This implies no fast_install, which is unacceptable.
10654 # Some rework will be needed to allow for fast_install
10655 # before this can be enabled.
10656 hardcode_into_libs=yes
10657
10658 # Append ld.so.conf contents to the search path
10659 if test -f /etc/ld.so.conf; then
10660 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;/^$/d' | tr '\n' ' '`
10661 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10662 fi
10663
10664 # We used to test for /lib/ld.so.1 and disable shared libraries on
10665 # powerpc, because MkLinux only supported shared libraries with the
10666 # GNU dynamic linker. Since this was broken with cross compilers,
10667 # most powerpc-linux boxes support dynamic linking these days and
10668 # people can always --disable-shared, the test was removed, and we
10669 # assume the GNU/Linux dynamic linker is in use.
10670 dynamic_linker='GNU/Linux ld.so'
10671 ;;
10672
10673 netbsd*)
10674 version_type=sunos
10675 need_lib_prefix=no
10676 need_version=no
10677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10680 dynamic_linker='NetBSD (a.out) ld.so'
10681 else
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 dynamic_linker='NetBSD ld.elf_so'
10685 fi
10686 shlibpath_var=LD_LIBRARY_PATH
10687 shlibpath_overrides_runpath=yes
10688 hardcode_into_libs=yes
10689 ;;
10690
10691 newsos6)
10692 version_type=linux
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 shlibpath_overrides_runpath=yes
10696 ;;
10697
10698 *nto* | *qnx*)
10699 version_type=qnx
10700 need_lib_prefix=no
10701 need_version=no
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 shlibpath_overrides_runpath=no
10706 hardcode_into_libs=yes
10707 dynamic_linker='ldqnx.so'
10708 ;;
10709
10710 openbsd*)
10711 version_type=sunos
10712 sys_lib_dlsearch_path_spec="/usr/lib"
10713 need_lib_prefix=no
10714 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10715 case $host_os in
10716 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10717 *) need_version=no ;;
10718 esac
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10723 case $host_os in
10724 openbsd2.[89] | openbsd2.[89].*)
10725 shlibpath_overrides_runpath=no
10726 ;;
10727 *)
10728 shlibpath_overrides_runpath=yes
10729 ;;
10730 esac
10731 else
10732 shlibpath_overrides_runpath=yes
10733 fi
10734 ;;
10735
10736 os2*)
10737 libname_spec='$name'
10738 shrext_cmds=".dll"
10739 need_lib_prefix=no
10740 library_names_spec='$libname${shared_ext} $libname.a'
10741 dynamic_linker='OS/2 ld.exe'
10742 shlibpath_var=LIBPATH
10743 ;;
10744
10745 osf3* | osf4* | osf5*)
10746 version_type=osf
10747 need_lib_prefix=no
10748 need_version=no
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751 shlibpath_var=LD_LIBRARY_PATH
10752 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10753 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10754 ;;
10755
10756 rdos*)
10757 dynamic_linker=no
10758 ;;
10759
10760 solaris*)
10761 version_type=linux
10762 need_lib_prefix=no
10763 need_version=no
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765 soname_spec='${libname}${release}${shared_ext}$major'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 shlibpath_overrides_runpath=yes
10768 hardcode_into_libs=yes
10769 # ldd complains unless libraries are executable
10770 postinstall_cmds='chmod +x $lib'
10771 ;;
10772
10773 sunos4*)
10774 version_type=sunos
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10776 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath=yes
10779 if test "$with_gnu_ld" = yes; then
10780 need_lib_prefix=no
10781 fi
10782 need_version=yes
10783 ;;
10784
10785 sysv4 | sysv4.3*)
10786 version_type=linux
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 shlibpath_var=LD_LIBRARY_PATH
10790 case $host_vendor in
10791 sni)
10792 shlibpath_overrides_runpath=no
10793 need_lib_prefix=no
10794 runpath_var=LD_RUN_PATH
10795 ;;
10796 siemens)
10797 need_lib_prefix=no
10798 ;;
10799 motorola)
10800 need_lib_prefix=no
10801 need_version=no
10802 shlibpath_overrides_runpath=no
10803 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10804 ;;
10805 esac
10806 ;;
10807
10808 sysv4*MP*)
10809 if test -d /usr/nec ;then
10810 version_type=linux
10811 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10812 soname_spec='$libname${shared_ext}.$major'
10813 shlibpath_var=LD_LIBRARY_PATH
10814 fi
10815 ;;
10816
10817 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10818 version_type=freebsd-elf
10819 need_lib_prefix=no
10820 need_version=no
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10822 soname_spec='${libname}${release}${shared_ext}$major'
10823 shlibpath_var=LD_LIBRARY_PATH
10824 shlibpath_overrides_runpath=yes
10825 hardcode_into_libs=yes
10826 if test "$with_gnu_ld" = yes; then
10827 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10828 else
10829 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10830 case $host_os in
10831 sco3.2v5*)
10832 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10833 ;;
10834 esac
10835 fi
10836 sys_lib_dlsearch_path_spec='/usr/lib'
10837 ;;
10838
10839 tpf*)
10840 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10841 version_type=linux
10842 need_lib_prefix=no
10843 need_version=no
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=no
10847 hardcode_into_libs=yes
10848 ;;
10849
10850 uts4*)
10851 version_type=linux
10852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10853 soname_spec='${libname}${release}${shared_ext}$major'
10854 shlibpath_var=LD_LIBRARY_PATH
10855 ;;
10856
10857 *)
10858 dynamic_linker=no
10859 ;;
10860 esac
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10862 $as_echo "$dynamic_linker" >&6; }
10863 test "$dynamic_linker" = no && can_build_shared=no
10864
10865 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10866 if test "$GCC" = yes; then
10867 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10868 fi
10869
10870 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10871 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10872 fi
10873 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10874 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10875 fi
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10964 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10965 hardcode_action=
10966 if test -n "$hardcode_libdir_flag_spec" ||
10967 test -n "$runpath_var" ||
10968 test "X$hardcode_automatic" = "Xyes" ; then
10969
10970 # We can hardcode non-existent directories.
10971 if test "$hardcode_direct" != no &&
10972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10973 # have to relink, otherwise we might link with an installed library
10974 # when we should be linking with a yet-to-be-installed one
10975 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10976 test "$hardcode_minus_L" != no; then
10977 # Linking always hardcodes the temporary library directory.
10978 hardcode_action=relink
10979 else
10980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10981 hardcode_action=immediate
10982 fi
10983 else
10984 # We cannot hardcode anything, or else we can only hardcode existing
10985 # directories.
10986 hardcode_action=unsupported
10987 fi
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10989 $as_echo "$hardcode_action" >&6; }
10990
10991 if test "$hardcode_action" = relink ||
10992 test "$inherit_rpath" = yes; then
10993 # Fast installation is not supported
10994 enable_fast_install=no
10995 elif test "$shlibpath_overrides_runpath" = yes ||
10996 test "$enable_shared" = no; then
10997 # Fast installation is not necessary
10998 enable_fast_install=needless
10999 fi
11000
11001
11002
11003
11004
11005
11006 if test "x$enable_dlopen" != xyes; then
11007 enable_dlopen=unknown
11008 enable_dlopen_self=unknown
11009 enable_dlopen_self_static=unknown
11010 else
11011 lt_cv_dlopen=no
11012 lt_cv_dlopen_libs=
11013
11014 case $host_os in
11015 beos*)
11016 lt_cv_dlopen="load_add_on"
11017 lt_cv_dlopen_libs=
11018 lt_cv_dlopen_self=yes
11019 ;;
11020
11021 mingw* | pw32* | cegcc*)
11022 lt_cv_dlopen="LoadLibrary"
11023 lt_cv_dlopen_libs=
11024 ;;
11025
11026 cygwin*)
11027 lt_cv_dlopen="dlopen"
11028 lt_cv_dlopen_libs=
11029 ;;
11030
11031 darwin*)
11032 # if libdl is installed we need to link against it
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11034 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11035 if ${ac_cv_lib_dl_dlopen+:} false; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 ac_check_lib_save_LIBS=$LIBS
11039 LIBS="-ldl $LIBS"
11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11042
11043 /* Override any GCC internal prototype to avoid an error.
11044 Use char because int might match the return type of a GCC
11045 builtin and then its argument prototype would still apply. */
11046 #ifdef __cplusplus
11047 extern "C"
11048 #endif
11049 char dlopen ();
11050 int
11051 main ()
11052 {
11053 return dlopen ();
11054 ;
11055 return 0;
11056 }
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"; then :
11059 ac_cv_lib_dl_dlopen=yes
11060 else
11061 ac_cv_lib_dl_dlopen=no
11062 fi
11063 rm -f core conftest.err conftest.$ac_objext \
11064 conftest$ac_exeext conftest.$ac_ext
11065 LIBS=$ac_check_lib_save_LIBS
11066 fi
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11068 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11069 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11071 else
11072
11073 lt_cv_dlopen="dyld"
11074 lt_cv_dlopen_libs=
11075 lt_cv_dlopen_self=yes
11076
11077 fi
11078
11079 ;;
11080
11081 *)
11082 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11083 if test "x$ac_cv_func_shl_load" = xyes; then :
11084 lt_cv_dlopen="shl_load"
11085 else
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11087 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11088 if ${ac_cv_lib_dld_shl_load+:} false; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 ac_check_lib_save_LIBS=$LIBS
11092 LIBS="-ldld $LIBS"
11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11095
11096 /* Override any GCC internal prototype to avoid an error.
11097 Use char because int might match the return type of a GCC
11098 builtin and then its argument prototype would still apply. */
11099 #ifdef __cplusplus
11100 extern "C"
11101 #endif
11102 char shl_load ();
11103 int
11104 main ()
11105 {
11106 return shl_load ();
11107 ;
11108 return 0;
11109 }
11110 _ACEOF
11111 if ac_fn_c_try_link "$LINENO"; then :
11112 ac_cv_lib_dld_shl_load=yes
11113 else
11114 ac_cv_lib_dld_shl_load=no
11115 fi
11116 rm -f core conftest.err conftest.$ac_objext \
11117 conftest$ac_exeext conftest.$ac_ext
11118 LIBS=$ac_check_lib_save_LIBS
11119 fi
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11121 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11122 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11123 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11124 else
11125 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11126 if test "x$ac_cv_func_dlopen" = xyes; then :
11127 lt_cv_dlopen="dlopen"
11128 else
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11130 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11131 if ${ac_cv_lib_dl_dlopen+:} false; then :
11132 $as_echo_n "(cached) " >&6
11133 else
11134 ac_check_lib_save_LIBS=$LIBS
11135 LIBS="-ldl $LIBS"
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11138
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11142 #ifdef __cplusplus
11143 extern "C"
11144 #endif
11145 char dlopen ();
11146 int
11147 main ()
11148 {
11149 return dlopen ();
11150 ;
11151 return 0;
11152 }
11153 _ACEOF
11154 if ac_fn_c_try_link "$LINENO"; then :
11155 ac_cv_lib_dl_dlopen=yes
11156 else
11157 ac_cv_lib_dl_dlopen=no
11158 fi
11159 rm -f core conftest.err conftest.$ac_objext \
11160 conftest$ac_exeext conftest.$ac_ext
11161 LIBS=$ac_check_lib_save_LIBS
11162 fi
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11164 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11165 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11166 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11169 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11170 if ${ac_cv_lib_svld_dlopen+:} false; then :
11171 $as_echo_n "(cached) " >&6
11172 else
11173 ac_check_lib_save_LIBS=$LIBS
11174 LIBS="-lsvld $LIBS"
11175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176 /* end confdefs.h. */
11177
11178 /* Override any GCC internal prototype to avoid an error.
11179 Use char because int might match the return type of a GCC
11180 builtin and then its argument prototype would still apply. */
11181 #ifdef __cplusplus
11182 extern "C"
11183 #endif
11184 char dlopen ();
11185 int
11186 main ()
11187 {
11188 return dlopen ();
11189 ;
11190 return 0;
11191 }
11192 _ACEOF
11193 if ac_fn_c_try_link "$LINENO"; then :
11194 ac_cv_lib_svld_dlopen=yes
11195 else
11196 ac_cv_lib_svld_dlopen=no
11197 fi
11198 rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11200 LIBS=$ac_check_lib_save_LIBS
11201 fi
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11203 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11204 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11206 else
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11208 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11209 if ${ac_cv_lib_dld_dld_link+:} false; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 ac_check_lib_save_LIBS=$LIBS
11213 LIBS="-ldld $LIBS"
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11216
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11220 #ifdef __cplusplus
11221 extern "C"
11222 #endif
11223 char dld_link ();
11224 int
11225 main ()
11226 {
11227 return dld_link ();
11228 ;
11229 return 0;
11230 }
11231 _ACEOF
11232 if ac_fn_c_try_link "$LINENO"; then :
11233 ac_cv_lib_dld_dld_link=yes
11234 else
11235 ac_cv_lib_dld_dld_link=no
11236 fi
11237 rm -f core conftest.err conftest.$ac_objext \
11238 conftest$ac_exeext conftest.$ac_ext
11239 LIBS=$ac_check_lib_save_LIBS
11240 fi
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11242 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11243 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11244 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11245 fi
11246
11247
11248 fi
11249
11250
11251 fi
11252
11253
11254 fi
11255
11256
11257 fi
11258
11259
11260 fi
11261
11262 ;;
11263 esac
11264
11265 if test "x$lt_cv_dlopen" != xno; then
11266 enable_dlopen=yes
11267 else
11268 enable_dlopen=no
11269 fi
11270
11271 case $lt_cv_dlopen in
11272 dlopen)
11273 save_CPPFLAGS="$CPPFLAGS"
11274 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11275
11276 save_LDFLAGS="$LDFLAGS"
11277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11278
11279 save_LIBS="$LIBS"
11280 LIBS="$lt_cv_dlopen_libs $LIBS"
11281
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11283 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11284 if ${lt_cv_dlopen_self+:} false; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 if test "$cross_compiling" = yes; then :
11288 lt_cv_dlopen_self=cross
11289 else
11290 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11291 lt_status=$lt_dlunknown
11292 cat > conftest.$ac_ext <<_LT_EOF
11293 #line 11293 "configure"
11294 #include "confdefs.h"
11295
11296 #if HAVE_DLFCN_H
11297 #include <dlfcn.h>
11298 #endif
11299
11300 #include <stdio.h>
11301
11302 #ifdef RTLD_GLOBAL
11303 # define LT_DLGLOBAL RTLD_GLOBAL
11304 #else
11305 # ifdef DL_GLOBAL
11306 # define LT_DLGLOBAL DL_GLOBAL
11307 # else
11308 # define LT_DLGLOBAL 0
11309 # endif
11310 #endif
11311
11312 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11313 find out it does not work in some platform. */
11314 #ifndef LT_DLLAZY_OR_NOW
11315 # ifdef RTLD_LAZY
11316 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11317 # else
11318 # ifdef DL_LAZY
11319 # define LT_DLLAZY_OR_NOW DL_LAZY
11320 # else
11321 # ifdef RTLD_NOW
11322 # define LT_DLLAZY_OR_NOW RTLD_NOW
11323 # else
11324 # ifdef DL_NOW
11325 # define LT_DLLAZY_OR_NOW DL_NOW
11326 # else
11327 # define LT_DLLAZY_OR_NOW 0
11328 # endif
11329 # endif
11330 # endif
11331 # endif
11332 #endif
11333
11334 void fnord() { int i=42;}
11335 int main ()
11336 {
11337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11338 int status = $lt_dlunknown;
11339
11340 if (self)
11341 {
11342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11343 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11344 /* dlclose (self); */
11345 }
11346 else
11347 puts (dlerror ());
11348
11349 return status;
11350 }
11351 _LT_EOF
11352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11353 (eval $ac_link) 2>&5
11354 ac_status=$?
11355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11356 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11357 (./conftest; exit; ) >&5 2>/dev/null
11358 lt_status=$?
11359 case x$lt_status in
11360 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11361 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11362 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11363 esac
11364 else :
11365 # compilation failed
11366 lt_cv_dlopen_self=no
11367 fi
11368 fi
11369 rm -fr conftest*
11370
11371
11372 fi
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11374 $as_echo "$lt_cv_dlopen_self" >&6; }
11375
11376 if test "x$lt_cv_dlopen_self" = xyes; then
11377 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11379 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11380 if ${lt_cv_dlopen_self_static+:} false; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 if test "$cross_compiling" = yes; then :
11384 lt_cv_dlopen_self_static=cross
11385 else
11386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11387 lt_status=$lt_dlunknown
11388 cat > conftest.$ac_ext <<_LT_EOF
11389 #line 11389 "configure"
11390 #include "confdefs.h"
11391
11392 #if HAVE_DLFCN_H
11393 #include <dlfcn.h>
11394 #endif
11395
11396 #include <stdio.h>
11397
11398 #ifdef RTLD_GLOBAL
11399 # define LT_DLGLOBAL RTLD_GLOBAL
11400 #else
11401 # ifdef DL_GLOBAL
11402 # define LT_DLGLOBAL DL_GLOBAL
11403 # else
11404 # define LT_DLGLOBAL 0
11405 # endif
11406 #endif
11407
11408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11409 find out it does not work in some platform. */
11410 #ifndef LT_DLLAZY_OR_NOW
11411 # ifdef RTLD_LAZY
11412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11413 # else
11414 # ifdef DL_LAZY
11415 # define LT_DLLAZY_OR_NOW DL_LAZY
11416 # else
11417 # ifdef RTLD_NOW
11418 # define LT_DLLAZY_OR_NOW RTLD_NOW
11419 # else
11420 # ifdef DL_NOW
11421 # define LT_DLLAZY_OR_NOW DL_NOW
11422 # else
11423 # define LT_DLLAZY_OR_NOW 0
11424 # endif
11425 # endif
11426 # endif
11427 # endif
11428 #endif
11429
11430 void fnord() { int i=42;}
11431 int main ()
11432 {
11433 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11434 int status = $lt_dlunknown;
11435
11436 if (self)
11437 {
11438 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11439 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11440 /* dlclose (self); */
11441 }
11442 else
11443 puts (dlerror ());
11444
11445 return status;
11446 }
11447 _LT_EOF
11448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11449 (eval $ac_link) 2>&5
11450 ac_status=$?
11451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11452 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11453 (./conftest; exit; ) >&5 2>/dev/null
11454 lt_status=$?
11455 case x$lt_status in
11456 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11457 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11458 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11459 esac
11460 else :
11461 # compilation failed
11462 lt_cv_dlopen_self_static=no
11463 fi
11464 fi
11465 rm -fr conftest*
11466
11467
11468 fi
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11470 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11471 fi
11472
11473 CPPFLAGS="$save_CPPFLAGS"
11474 LDFLAGS="$save_LDFLAGS"
11475 LIBS="$save_LIBS"
11476 ;;
11477 esac
11478
11479 case $lt_cv_dlopen_self in
11480 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11481 *) enable_dlopen_self=unknown ;;
11482 esac
11483
11484 case $lt_cv_dlopen_self_static in
11485 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11486 *) enable_dlopen_self_static=unknown ;;
11487 esac
11488 fi
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506 striplib=
11507 old_striplib=
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11509 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11510 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11511 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11512 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11514 $as_echo "yes" >&6; }
11515 else
11516 # FIXME - insert some real tests, host_os isn't really good enough
11517 case $host_os in
11518 darwin*)
11519 if test -n "$STRIP" ; then
11520 striplib="$STRIP -x"
11521 old_striplib="$STRIP -S"
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11523 $as_echo "yes" >&6; }
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11527 fi
11528 ;;
11529 *)
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531 $as_echo "no" >&6; }
11532 ;;
11533 esac
11534 fi
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547 # Report which library types will actually be built
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11549 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11551 $as_echo "$can_build_shared" >&6; }
11552
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11554 $as_echo_n "checking whether to build shared libraries... " >&6; }
11555 test "$can_build_shared" = "no" && enable_shared=no
11556
11557 # On AIX, shared libraries and static libraries use the same namespace, and
11558 # are all built from PIC.
11559 case $host_os in
11560 aix3*)
11561 test "$enable_shared" = yes && enable_static=no
11562 if test -n "$RANLIB"; then
11563 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11564 postinstall_cmds='$RANLIB $lib'
11565 fi
11566 ;;
11567
11568 aix[4-9]*)
11569 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11570 test "$enable_shared" = yes && enable_static=no
11571 fi
11572 ;;
11573 esac
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11575 $as_echo "$enable_shared" >&6; }
11576
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11578 $as_echo_n "checking whether to build static libraries... " >&6; }
11579 # Make sure either enable_shared or enable_static is yes.
11580 test "$enable_shared" = yes || enable_static=yes
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11582 $as_echo "$enable_static" >&6; }
11583
11584
11585
11586
11587 fi
11588 ac_ext=c
11589 ac_cpp='$CPP $CPPFLAGS'
11590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11593
11594 CC="$lt_save_CC"
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608 ac_config_commands="$ac_config_commands libtool"
11609
11610
11611
11612
11613 # Only expand once:
11614
11615
11616
11617
11618 CFLAG_VISIBILITY=
11619 HAVE_VISIBILITY=0
11620 if test -n "$GCC"; then
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
11622 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
11623 if ${gl_cv_cc_vis_werror+:} false; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626
11627 gl_save_CFLAGS="$CFLAGS"
11628 CFLAGS="$CFLAGS -Werror"
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11631
11632 int
11633 main ()
11634 {
11635
11636 ;
11637 return 0;
11638 }
11639 _ACEOF
11640 if ac_fn_c_try_compile "$LINENO"; then :
11641 gl_cv_cc_vis_werror=yes
11642 else
11643 gl_cv_cc_vis_werror=no
11644 fi
11645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11646 CFLAGS="$gl_save_CFLAGS"
11647 fi
11648
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
11650 $as_echo "$gl_cv_cc_vis_werror" >&6; }
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
11652 $as_echo_n "checking for simple visibility declarations... " >&6; }
11653 if ${gl_cv_cc_visibility+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656
11657 gl_save_CFLAGS="$CFLAGS"
11658 CFLAGS="$CFLAGS -fvisibility=hidden"
11659 if test $gl_cv_cc_vis_werror = yes; then
11660 CFLAGS="$CFLAGS -Werror"
11661 fi
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11664 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11665 extern __attribute__((__visibility__("default"))) int exportedvar;
11666 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11667 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11668 void dummyfunc (void) {}
11669 int
11670 main ()
11671 {
11672
11673 ;
11674 return 0;
11675 }
11676 _ACEOF
11677 if ac_fn_c_try_compile "$LINENO"; then :
11678 gl_cv_cc_visibility=yes
11679 else
11680 gl_cv_cc_visibility=no
11681 fi
11682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683 CFLAGS="$gl_save_CFLAGS"
11684 fi
11685
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
11687 $as_echo "$gl_cv_cc_visibility" >&6; }
11688 if test $gl_cv_cc_visibility = yes; then
11689 CFLAG_VISIBILITY="-fvisibility=hidden"
11690 HAVE_VISIBILITY=1
11691 fi
11692 fi
11693
11694
11695
11696 cat >>confdefs.h <<_ACEOF
11697 #define HAVE_VISIBILITY $HAVE_VISIBILITY
11698 _ACEOF
11699
11700
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11702 $as_echo_n "checking for ANSI C header files... " >&6; }
11703 if ${ac_cv_header_stdc+:} false; then :
11704 $as_echo_n "(cached) " >&6
11705 else
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11708 #include <stdlib.h>
11709 #include <stdarg.h>
11710 #include <string.h>
11711 #include <float.h>
11712
11713 int
11714 main ()
11715 {
11716
11717 ;
11718 return 0;
11719 }
11720 _ACEOF
11721 if ac_fn_c_try_compile "$LINENO"; then :
11722 ac_cv_header_stdc=yes
11723 else
11724 ac_cv_header_stdc=no
11725 fi
11726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11727
11728 if test $ac_cv_header_stdc = yes; then
11729 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11732 #include <string.h>
11733
11734 _ACEOF
11735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11736 $EGREP "memchr" >/dev/null 2>&1; then :
11737
11738 else
11739 ac_cv_header_stdc=no
11740 fi
11741 rm -f conftest*
11742
11743 fi
11744
11745 if test $ac_cv_header_stdc = yes; then
11746 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11749 #include <stdlib.h>
11750
11751 _ACEOF
11752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11753 $EGREP "free" >/dev/null 2>&1; then :
11754
11755 else
11756 ac_cv_header_stdc=no
11757 fi
11758 rm -f conftest*
11759
11760 fi
11761
11762 if test $ac_cv_header_stdc = yes; then
11763 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11764 if test "$cross_compiling" = yes; then :
11765 :
11766 else
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h. */
11769 #include <ctype.h>
11770 #include <stdlib.h>
11771 #if ((' ' & 0x0FF) == 0x020)
11772 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11773 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11774 #else
11775 # define ISLOWER(c) \
11776 (('a' <= (c) && (c) <= 'i') \
11777 || ('j' <= (c) && (c) <= 'r') \
11778 || ('s' <= (c) && (c) <= 'z'))
11779 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11780 #endif
11781
11782 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11783 int
11784 main ()
11785 {
11786 int i;
11787 for (i = 0; i < 256; i++)
11788 if (XOR (islower (i), ISLOWER (i))
11789 || toupper (i) != TOUPPER (i))
11790 return 2;
11791 return 0;
11792 }
11793 _ACEOF
11794 if ac_fn_c_try_run "$LINENO"; then :
11795
11796 else
11797 ac_cv_header_stdc=no
11798 fi
11799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11800 conftest.$ac_objext conftest.beam conftest.$ac_ext
11801 fi
11802
11803 fi
11804 fi
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11806 $as_echo "$ac_cv_header_stdc" >&6; }
11807 if test $ac_cv_header_stdc = yes; then
11808
11809 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11810
11811 fi
11812
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
11814 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
11815 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
11816 $as_echo_n "(cached) " >&6
11817 else
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11820 #include <sys/types.h>
11821 int
11822 main ()
11823 {
11824 return makedev(0, 0);
11825 ;
11826 return 0;
11827 }
11828 _ACEOF
11829 if ac_fn_c_try_link "$LINENO"; then :
11830 ac_cv_header_sys_types_h_makedev=yes
11831 else
11832 ac_cv_header_sys_types_h_makedev=no
11833 fi
11834 rm -f core conftest.err conftest.$ac_objext \
11835 conftest$ac_exeext conftest.$ac_ext
11836
11837 fi
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
11839 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
11840
11841 if test $ac_cv_header_sys_types_h_makedev = no; then
11842 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
11843 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
11844
11845 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
11846
11847 fi
11848
11849
11850
11851 if test $ac_cv_header_sys_mkdev_h = no; then
11852 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
11853 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
11854
11855 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
11856
11857 fi
11858
11859
11860 fi
11861 fi
11862
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11864 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11865 if ${ac_cv_header_sys_wait_h+:} false; then :
11866 $as_echo_n "(cached) " >&6
11867 else
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11870 #include <sys/types.h>
11871 #include <sys/wait.h>
11872 #ifndef WEXITSTATUS
11873 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11874 #endif
11875 #ifndef WIFEXITED
11876 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11877 #endif
11878
11879 int
11880 main ()
11881 {
11882 int s;
11883 wait (&s);
11884 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11885 ;
11886 return 0;
11887 }
11888 _ACEOF
11889 if ac_fn_c_try_compile "$LINENO"; then :
11890 ac_cv_header_sys_wait_h=yes
11891 else
11892 ac_cv_header_sys_wait_h=no
11893 fi
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 fi
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11897 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11898 if test $ac_cv_header_sys_wait_h = yes; then
11899
11900 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11901
11902 fi
11903
11904 for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
11905 do :
11906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11907 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11909 cat >>confdefs.h <<_ACEOF
11910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11911 _ACEOF
11912
11913 fi
11914
11915 done
11916
11917 for ac_header in stddef.h utime.h wchar.h wctype.h limits.h
11918 do :
11919 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11920 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11921 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11922 cat >>confdefs.h <<_ACEOF
11923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11924 _ACEOF
11925
11926 fi
11927
11928 done
11929
11930 for ac_header in getopt.h err.h
11931 do :
11932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11933 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11934 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11935 cat >>confdefs.h <<_ACEOF
11936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11937 _ACEOF
11938
11939 fi
11940
11941 done
11942
11943 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
11944 do :
11945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11946 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11947 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11948 cat >>confdefs.h <<_ACEOF
11949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11950 _ACEOF
11951
11952 fi
11953
11954 done
11955
11956 for ac_header in zlib.h
11957 do :
11958 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11959 if test "x$ac_cv_header_zlib_h" = xyes; then :
11960 cat >>confdefs.h <<_ACEOF
11961 #define HAVE_ZLIB_H 1
11962 _ACEOF
11963
11964 fi
11965
11966 done
11967
11968
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11970 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11971 if ${ac_cv_c_const+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11976
11977 int
11978 main ()
11979 {
11980
11981 #ifndef __cplusplus
11982 /* Ultrix mips cc rejects this sort of thing. */
11983 typedef int charset[2];
11984 const charset cs = { 0, 0 };
11985 /* SunOS 4.1.1 cc rejects this. */
11986 char const *const *pcpcc;
11987 char **ppc;
11988 /* NEC SVR4.0.2 mips cc rejects this. */
11989 struct point {int x, y;};
11990 static struct point const zero = {0,0};
11991 /* AIX XL C 1.02.0.0 rejects this.
11992 It does not let you subtract one const X* pointer from another in
11993 an arm of an if-expression whose if-part is not a constant
11994 expression */
11995 const char *g = "string";
11996 pcpcc = &g + (g ? g-g : 0);
11997 /* HPUX 7.0 cc rejects these. */
11998 ++pcpcc;
11999 ppc = (char**) pcpcc;
12000 pcpcc = (char const *const *) ppc;
12001 { /* SCO 3.2v4 cc rejects this sort of thing. */
12002 char tx;
12003 char *t = &tx;
12004 char const *s = 0 ? (char *) 0 : (char const *) 0;
12005
12006 *t++ = 0;
12007 if (s) return 0;
12008 }
12009 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12010 int x[] = {25, 17};
12011 const int *foo = &x[0];
12012 ++foo;
12013 }
12014 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12015 typedef const int *iptr;
12016 iptr p = 0;
12017 ++p;
12018 }
12019 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12020 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12021 struct s { int j; const int *ap[3]; } bx;
12022 struct s *b = &bx; b->j = 5;
12023 }
12024 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12025 const int foo = 10;
12026 if (!foo) return 0;
12027 }
12028 return !cs[0] && !zero.x;
12029 #endif
12030
12031 ;
12032 return 0;
12033 }
12034 _ACEOF
12035 if ac_fn_c_try_compile "$LINENO"; then :
12036 ac_cv_c_const=yes
12037 else
12038 ac_cv_c_const=no
12039 fi
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 fi
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12043 $as_echo "$ac_cv_c_const" >&6; }
12044 if test $ac_cv_c_const = no; then
12045
12046 $as_echo "#define const /**/" >>confdefs.h
12047
12048 fi
12049
12050 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12051 if test "x$ac_cv_type_off_t" = xyes; then :
12052
12053 else
12054
12055 cat >>confdefs.h <<_ACEOF
12056 #define off_t long int
12057 _ACEOF
12058
12059 fi
12060
12061 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12062 if test "x$ac_cv_type_size_t" = xyes; then :
12063
12064 else
12065
12066 cat >>confdefs.h <<_ACEOF
12067 #define size_t unsigned int
12068 _ACEOF
12069
12070 fi
12071
12072 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12073 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12074
12075 cat >>confdefs.h <<_ACEOF
12076 #define HAVE_STRUCT_STAT_ST_RDEV 1
12077 _ACEOF
12078
12079
12080 fi
12081
12082
12083 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
12084 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
12085
12086 cat >>confdefs.h <<_ACEOF
12087 #define HAVE_STRUCT_TM_TM_GMTOFF 1
12088 _ACEOF
12089
12090
12091 fi
12092
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12094 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12095 if ${ac_cv_struct_tm+:} false; then :
12096 $as_echo_n "(cached) " >&6
12097 else
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h. */
12100 #include <sys/types.h>
12101 #include <time.h>
12102
12103 int
12104 main ()
12105 {
12106 struct tm tm;
12107 int *p = &tm.tm_sec;
12108 return !p;
12109 ;
12110 return 0;
12111 }
12112 _ACEOF
12113 if ac_fn_c_try_compile "$LINENO"; then :
12114 ac_cv_struct_tm=time.h
12115 else
12116 ac_cv_struct_tm=sys/time.h
12117 fi
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119 fi
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12121 $as_echo "$ac_cv_struct_tm" >&6; }
12122 if test $ac_cv_struct_tm = sys/time.h; then
12123
12124 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12125
12126 fi
12127
12128 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12129 #include <$ac_cv_struct_tm>
12130
12131 "
12132 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12133
12134 cat >>confdefs.h <<_ACEOF
12135 #define HAVE_STRUCT_TM_TM_ZONE 1
12136 _ACEOF
12137
12138
12139 fi
12140
12141 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12142
12143 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12144
12145 else
12146 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12147 "
12148 if test "x$ac_cv_have_decl_tzname" = xyes; then :
12149 ac_have_decl=1
12150 else
12151 ac_have_decl=0
12152 fi
12153
12154 cat >>confdefs.h <<_ACEOF
12155 #define HAVE_DECL_TZNAME $ac_have_decl
12156 _ACEOF
12157
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12159 $as_echo_n "checking for tzname... " >&6; }
12160 if ${ac_cv_var_tzname+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12165 #include <time.h>
12166 #if !HAVE_DECL_TZNAME
12167 extern char *tzname[];
12168 #endif
12169
12170 int
12171 main ()
12172 {
12173 return tzname[0][0];
12174 ;
12175 return 0;
12176 }
12177 _ACEOF
12178 if ac_fn_c_try_link "$LINENO"; then :
12179 ac_cv_var_tzname=yes
12180 else
12181 ac_cv_var_tzname=no
12182 fi
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 fi
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12187 $as_echo "$ac_cv_var_tzname" >&6; }
12188 if test $ac_cv_var_tzname = yes; then
12189
12190 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12191
12192 fi
12193 fi
12194
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
12196 $as_echo_n "checking for tm_zone in struct tm... " >&6; }
12197 if ${ac_cv_struct_tm_zone+:} false; then :
12198 $as_echo_n "(cached) " >&6
12199 else
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202 #include <sys/types.h>
12203 #include <$ac_cv_struct_tm>
12204 int
12205 main ()
12206 {
12207 struct tm tm; tm.tm_zone;
12208 ;
12209 return 0;
12210 }
12211 _ACEOF
12212 if ac_fn_c_try_compile "$LINENO"; then :
12213 ac_cv_struct_tm_zone=yes
12214 else
12215 ac_cv_struct_tm_zone=no
12216 fi
12217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218 fi
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
12220 $as_echo "$ac_cv_struct_tm_zone" >&6; }
12221 if test "$ac_cv_struct_tm_zone" = yes; then
12222
12223 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12224
12225 fi
12226
12227 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
12228 # consider it declared and we won't give our own extern.
12229 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12230 "
12231 if test "x$ac_cv_have_decl_tzname" = xyes; then :
12232 ac_have_decl=1
12233 else
12234 ac_have_decl=0
12235 fi
12236
12237 cat >>confdefs.h <<_ACEOF
12238 #define HAVE_DECL_TZNAME $ac_have_decl
12239 _ACEOF
12240
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12242 $as_echo_n "checking for tzname... " >&6; }
12243 if ${ac_cv_var_tzname+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12248 #include <time.h>
12249 #if !HAVE_DECL_TZNAME
12250 extern char *tzname[];
12251 #endif
12252 int
12253 main ()
12254 {
12255 return tzname[0][0];
12256 ;
12257 return 0;
12258 }
12259 _ACEOF
12260 if ac_fn_c_try_link "$LINENO"; then :
12261 ac_cv_var_tzname=yes
12262 else
12263 ac_cv_var_tzname=no
12264 fi
12265 rm -f core conftest.err conftest.$ac_objext \
12266 conftest$ac_exeext conftest.$ac_ext
12267 fi
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12269 $as_echo "$ac_cv_var_tzname" >&6; }
12270 if test $ac_cv_var_tzname = yes; then
12271
12272 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12273
12274 fi
12275
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
12277 $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
12278 if ${ac_cv_struct_tm_isdst+:} false; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12283 #include <sys/types.h>
12284 #include <$ac_cv_struct_tm>
12285 int
12286 main ()
12287 {
12288 struct tm tm; tm.tm_isdst;
12289 ;
12290 return 0;
12291 }
12292 _ACEOF
12293 if ac_fn_c_try_compile "$LINENO"; then :
12294 ac_cv_struct_tm_isdst=yes
12295 else
12296 ac_cv_struct_tm_isdst=no
12297 fi
12298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12299 fi
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
12301 $as_echo "$ac_cv_struct_tm_isdst" >&6; }
12302 if test "$ac_cv_struct_tm_isdst" = yes; then
12303
12304 $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
12305
12306 fi
12307
12308
12309 ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
12310 "
12311 if test "x$ac_cv_have_decl_daylight" = xyes; then :
12312 ac_have_decl=1
12313 else
12314 ac_have_decl=0
12315 fi
12316
12317 cat >>confdefs.h <<_ACEOF
12318 #define HAVE_DECL_DAYLIGHT $ac_have_decl
12319 _ACEOF
12320
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
12322 $as_echo_n "checking for daylight... " >&6; }
12323 if ${ac_cv_var_daylight+:} false; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12328 #include <time.h>
12329 #if !HAVE_DECL_DAYLIGHT
12330 extern int daylight;
12331 #endif
12332 int
12333 main ()
12334 {
12335 atoi(daylight);
12336 ;
12337 return 0;
12338 }
12339 _ACEOF
12340 if ac_fn_c_try_link "$LINENO"; then :
12341 ac_cv_var_daylight=yes
12342 else
12343 ac_cv_var_daylight=no
12344 fi
12345 rm -f core conftest.err conftest.$ac_objext \
12346 conftest$ac_exeext conftest.$ac_ext
12347 fi
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
12349 $as_echo "$ac_cv_var_daylight" >&6; }
12350 if test $ac_cv_var_daylight = yes; then
12351
12352 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
12353
12354 fi
12355
12356 # Check whether --enable-largefile was given.
12357 if test "${enable_largefile+set}" = set; then :
12358 enableval=$enable_largefile;
12359 fi
12360
12361 if test "$enable_largefile" != no; then
12362
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12364 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12365 if ${ac_cv_sys_largefile_CC+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 ac_cv_sys_largefile_CC=no
12369 if test "$GCC" != yes; then
12370 ac_save_CC=$CC
12371 while :; do
12372 # IRIX 6.2 and later do not support large files by default,
12373 # so use the C compiler's -n32 option if that helps.
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12376 #include <sys/types.h>
12377 /* Check that off_t can represent 2**63 - 1 correctly.
12378 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12379 since some C++ compilers masquerading as C compilers
12380 incorrectly reject 9223372036854775807. */
12381 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12382 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12383 && LARGE_OFF_T % 2147483647 == 1)
12384 ? 1 : -1];
12385 int
12386 main ()
12387 {
12388
12389 ;
12390 return 0;
12391 }
12392 _ACEOF
12393 if ac_fn_c_try_compile "$LINENO"; then :
12394 break
12395 fi
12396 rm -f core conftest.err conftest.$ac_objext
12397 CC="$CC -n32"
12398 if ac_fn_c_try_compile "$LINENO"; then :
12399 ac_cv_sys_largefile_CC=' -n32'; break
12400 fi
12401 rm -f core conftest.err conftest.$ac_objext
12402 break
12403 done
12404 CC=$ac_save_CC
12405 rm -f conftest.$ac_ext
12406 fi
12407 fi
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12409 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12410 if test "$ac_cv_sys_largefile_CC" != no; then
12411 CC=$CC$ac_cv_sys_largefile_CC
12412 fi
12413
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12415 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12416 if ${ac_cv_sys_file_offset_bits+:} false; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 while :; do
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12422 #include <sys/types.h>
12423 /* Check that off_t can represent 2**63 - 1 correctly.
12424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12425 since some C++ compilers masquerading as C compilers
12426 incorrectly reject 9223372036854775807. */
12427 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12429 && LARGE_OFF_T % 2147483647 == 1)
12430 ? 1 : -1];
12431 int
12432 main ()
12433 {
12434
12435 ;
12436 return 0;
12437 }
12438 _ACEOF
12439 if ac_fn_c_try_compile "$LINENO"; then :
12440 ac_cv_sys_file_offset_bits=no; break
12441 fi
12442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445 #define _FILE_OFFSET_BITS 64
12446 #include <sys/types.h>
12447 /* Check that off_t can represent 2**63 - 1 correctly.
12448 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12449 since some C++ compilers masquerading as C compilers
12450 incorrectly reject 9223372036854775807. */
12451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12452 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12453 && LARGE_OFF_T % 2147483647 == 1)
12454 ? 1 : -1];
12455 int
12456 main ()
12457 {
12458
12459 ;
12460 return 0;
12461 }
12462 _ACEOF
12463 if ac_fn_c_try_compile "$LINENO"; then :
12464 ac_cv_sys_file_offset_bits=64; break
12465 fi
12466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12467 ac_cv_sys_file_offset_bits=unknown
12468 break
12469 done
12470 fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12472 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12473 case $ac_cv_sys_file_offset_bits in #(
12474 no | unknown) ;;
12475 *)
12476 cat >>confdefs.h <<_ACEOF
12477 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12478 _ACEOF
12479 ;;
12480 esac
12481 rm -rf conftest*
12482 if test $ac_cv_sys_file_offset_bits = unknown; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12484 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12485 if ${ac_cv_sys_large_files+:} false; then :
12486 $as_echo_n "(cached) " >&6
12487 else
12488 while :; do
12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h. */
12491 #include <sys/types.h>
12492 /* Check that off_t can represent 2**63 - 1 correctly.
12493 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12494 since some C++ compilers masquerading as C compilers
12495 incorrectly reject 9223372036854775807. */
12496 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12497 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12498 && LARGE_OFF_T % 2147483647 == 1)
12499 ? 1 : -1];
12500 int
12501 main ()
12502 {
12503
12504 ;
12505 return 0;
12506 }
12507 _ACEOF
12508 if ac_fn_c_try_compile "$LINENO"; then :
12509 ac_cv_sys_large_files=no; break
12510 fi
12511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12514 #define _LARGE_FILES 1
12515 #include <sys/types.h>
12516 /* Check that off_t can represent 2**63 - 1 correctly.
12517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12518 since some C++ compilers masquerading as C compilers
12519 incorrectly reject 9223372036854775807. */
12520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12522 && LARGE_OFF_T % 2147483647 == 1)
12523 ? 1 : -1];
12524 int
12525 main ()
12526 {
12527
12528 ;
12529 return 0;
12530 }
12531 _ACEOF
12532 if ac_fn_c_try_compile "$LINENO"; then :
12533 ac_cv_sys_large_files=1; break
12534 fi
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12536 ac_cv_sys_large_files=unknown
12537 break
12538 done
12539 fi
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12541 $as_echo "$ac_cv_sys_large_files" >&6; }
12542 case $ac_cv_sys_large_files in #(
12543 no | unknown) ;;
12544 *)
12545 cat >>confdefs.h <<_ACEOF
12546 #define _LARGE_FILES $ac_cv_sys_large_files
12547 _ACEOF
12548 ;;
12549 esac
12550 rm -rf conftest*
12551 fi
12552
12553
12554 fi
12555
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12557 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12558 if ${ac_cv_sys_largefile_source+:} false; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 while :; do
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564 #include <sys/types.h> /* for off_t */
12565 #include <stdio.h>
12566 int
12567 main ()
12568 {
12569 int (*fp) (FILE *, off_t, int) = fseeko;
12570 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12571 ;
12572 return 0;
12573 }
12574 _ACEOF
12575 if ac_fn_c_try_link "$LINENO"; then :
12576 ac_cv_sys_largefile_source=no; break
12577 fi
12578 rm -f core conftest.err conftest.$ac_objext \
12579 conftest$ac_exeext conftest.$ac_ext
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12582 #define _LARGEFILE_SOURCE 1
12583 #include <sys/types.h> /* for off_t */
12584 #include <stdio.h>
12585 int
12586 main ()
12587 {
12588 int (*fp) (FILE *, off_t, int) = fseeko;
12589 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12590 ;
12591 return 0;
12592 }
12593 _ACEOF
12594 if ac_fn_c_try_link "$LINENO"; then :
12595 ac_cv_sys_largefile_source=1; break
12596 fi
12597 rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12599 ac_cv_sys_largefile_source=unknown
12600 break
12601 done
12602 fi
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12604 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12605 case $ac_cv_sys_largefile_source in #(
12606 no | unknown) ;;
12607 *)
12608 cat >>confdefs.h <<_ACEOF
12609 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12610 _ACEOF
12611 ;;
12612 esac
12613 rm -rf conftest*
12614
12615 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12616 # in glibc 2.1.3, but that breaks too many other things.
12617 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12618 if test $ac_cv_sys_largefile_source != unknown; then
12619
12620 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12621
12622 fi
12623
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
12625 $as_echo_n "checking for mbstate_t... " >&6; }
12626 if ${ac_cv_type_mbstate_t+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12631 $ac_includes_default
12632 # include <wchar.h>
12633 int
12634 main ()
12635 {
12636 mbstate_t x; return sizeof x;
12637 ;
12638 return 0;
12639 }
12640 _ACEOF
12641 if ac_fn_c_try_compile "$LINENO"; then :
12642 ac_cv_type_mbstate_t=yes
12643 else
12644 ac_cv_type_mbstate_t=no
12645 fi
12646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12647 fi
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
12649 $as_echo "$ac_cv_type_mbstate_t" >&6; }
12650 if test $ac_cv_type_mbstate_t = yes; then
12651
12652 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
12653
12654 else
12655
12656 $as_echo "#define mbstate_t int" >>confdefs.h
12657
12658 fi
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
12661 $as_echo_n "checking for struct option in getopt... " >&6; }
12662 if ${ac_cv_struct_option_getopt_h+:} false; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667 #include <getopt.h>
12668 int
12669 main ()
12670 {
12671 struct option op; op.name;
12672 ;
12673 return 0;
12674 }
12675 _ACEOF
12676 if ac_fn_c_try_compile "$LINENO"; then :
12677 ac_cv_struct_option_getopt_h=yes
12678 else
12679 ac_cv_struct_option_getopt_h=no
12680 fi
12681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12682 fi
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
12684 $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
12685 if test "$ac_cv_struct_option_getopt_h" = yes; then
12686
12687 $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
12688
12689 fi
12690
12691 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12692 if test "x$ac_cv_type_pid_t" = xyes; then :
12693
12694 else
12695
12696 cat >>confdefs.h <<_ACEOF
12697 #define pid_t int
12698 _ACEOF
12699
12700 fi
12701
12702 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
12703 case $ac_cv_c_uint8_t in #(
12704 no|yes) ;; #(
12705 *)
12706
12707 $as_echo "#define _UINT8_T 1" >>confdefs.h
12708
12709
12710 cat >>confdefs.h <<_ACEOF
12711 #define uint8_t $ac_cv_c_uint8_t
12712 _ACEOF
12713 ;;
12714 esac
12715
12716 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
12717 case $ac_cv_c_uint16_t in #(
12718 no|yes) ;; #(
12719 *)
12720
12721
12722 cat >>confdefs.h <<_ACEOF
12723 #define uint16_t $ac_cv_c_uint16_t
12724 _ACEOF
12725 ;;
12726 esac
12727
12728 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
12729 case $ac_cv_c_uint32_t in #(
12730 no|yes) ;; #(
12731 *)
12732
12733 $as_echo "#define _UINT32_T 1" >>confdefs.h
12734
12735
12736 cat >>confdefs.h <<_ACEOF
12737 #define uint32_t $ac_cv_c_uint32_t
12738 _ACEOF
12739 ;;
12740 esac
12741
12742 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
12743 case $ac_cv_c_int32_t in #(
12744 no|yes) ;; #(
12745 *)
12746
12747 cat >>confdefs.h <<_ACEOF
12748 #define int32_t $ac_cv_c_int32_t
12749 _ACEOF
12750 ;;
12751 esac
12752
12753 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12754 case $ac_cv_c_uint64_t in #(
12755 no|yes) ;; #(
12756 *)
12757
12758 $as_echo "#define _UINT64_T 1" >>confdefs.h
12759
12760
12761 cat >>confdefs.h <<_ACEOF
12762 #define uint64_t $ac_cv_c_uint64_t
12763 _ACEOF
12764 ;;
12765 esac
12766
12767 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12768 case $ac_cv_c_int64_t in #(
12769 no|yes) ;; #(
12770 *)
12771
12772 cat >>confdefs.h <<_ACEOF
12773 #define int64_t $ac_cv_c_int64_t
12774 _ACEOF
12775 ;;
12776 esac
12777
12778
12779
12780
12781 for ac_header in $ac_header_list
12782 do :
12783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12784 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12785 "
12786 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12787 cat >>confdefs.h <<_ACEOF
12788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12789 _ACEOF
12790
12791 fi
12792
12793 done
12794
12795
12796
12797
12798
12799
12800
12801
12802 for ac_func in getpagesize
12803 do :
12804 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12805 if test "x$ac_cv_func_getpagesize" = xyes; then :
12806 cat >>confdefs.h <<_ACEOF
12807 #define HAVE_GETPAGESIZE 1
12808 _ACEOF
12809
12810 fi
12811 done
12812
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12814 $as_echo_n "checking for working mmap... " >&6; }
12815 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 if test "$cross_compiling" = yes; then :
12819 ac_cv_func_mmap_fixed_mapped=no
12820 else
12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h. */
12823 $ac_includes_default
12824 /* malloc might have been renamed as rpl_malloc. */
12825 #undef malloc
12826
12827 /* Thanks to Mike Haertel and Jim Avera for this test.
12828 Here is a matrix of mmap possibilities:
12829 mmap private not fixed
12830 mmap private fixed at somewhere currently unmapped
12831 mmap private fixed at somewhere already mapped
12832 mmap shared not fixed
12833 mmap shared fixed at somewhere currently unmapped
12834 mmap shared fixed at somewhere already mapped
12835 For private mappings, we should verify that changes cannot be read()
12836 back from the file, nor mmap's back from the file at a different
12837 address. (There have been systems where private was not correctly
12838 implemented like the infamous i386 svr4.0, and systems where the
12839 VM page cache was not coherent with the file system buffer cache
12840 like early versions of FreeBSD and possibly contemporary NetBSD.)
12841 For shared mappings, we should conversely verify that changes get
12842 propagated back to all the places they're supposed to be.
12843
12844 Grep wants private fixed already mapped.
12845 The main things grep needs to know about mmap are:
12846 * does it exist and is it safe to write into the mmap'd area
12847 * how to use it (BSD variants) */
12848
12849 #include <fcntl.h>
12850 #include <sys/mman.h>
12851
12852 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12853 char *malloc ();
12854 #endif
12855
12856 /* This mess was copied from the GNU getpagesize.h. */
12857 #ifndef HAVE_GETPAGESIZE
12858 # ifdef _SC_PAGESIZE
12859 # define getpagesize() sysconf(_SC_PAGESIZE)
12860 # else /* no _SC_PAGESIZE */
12861 # ifdef HAVE_SYS_PARAM_H
12862 # include <sys/param.h>
12863 # ifdef EXEC_PAGESIZE
12864 # define getpagesize() EXEC_PAGESIZE
12865 # else /* no EXEC_PAGESIZE */
12866 # ifdef NBPG
12867 # define getpagesize() NBPG * CLSIZE
12868 # ifndef CLSIZE
12869 # define CLSIZE 1
12870 # endif /* no CLSIZE */
12871 # else /* no NBPG */
12872 # ifdef NBPC
12873 # define getpagesize() NBPC
12874 # else /* no NBPC */
12875 # ifdef PAGESIZE
12876 # define getpagesize() PAGESIZE
12877 # endif /* PAGESIZE */
12878 # endif /* no NBPC */
12879 # endif /* no NBPG */
12880 # endif /* no EXEC_PAGESIZE */
12881 # else /* no HAVE_SYS_PARAM_H */
12882 # define getpagesize() 8192 /* punt totally */
12883 # endif /* no HAVE_SYS_PARAM_H */
12884 # endif /* no _SC_PAGESIZE */
12885
12886 #endif /* no HAVE_GETPAGESIZE */
12887
12888 int
12889 main ()
12890 {
12891 char *data, *data2, *data3;
12892 const char *cdata2;
12893 int i, pagesize;
12894 int fd, fd2;
12895
12896 pagesize = getpagesize ();
12897
12898 /* First, make a file with some known garbage in it. */
12899 data = (char *) malloc (pagesize);
12900 if (!data)
12901 return 1;
12902 for (i = 0; i < pagesize; ++i)
12903 *(data + i) = rand ();
12904 umask (0);
12905 fd = creat ("conftest.mmap", 0600);
12906 if (fd < 0)
12907 return 2;
12908 if (write (fd, data, pagesize) != pagesize)
12909 return 3;
12910 close (fd);
12911
12912 /* Next, check that the tail of a page is zero-filled. File must have
12913 non-zero length, otherwise we risk SIGBUS for entire page. */
12914 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12915 if (fd2 < 0)
12916 return 4;
12917 cdata2 = "";
12918 if (write (fd2, cdata2, 1) != 1)
12919 return 5;
12920 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12921 if (data2 == MAP_FAILED)
12922 return 6;
12923 for (i = 0; i < pagesize; ++i)
12924 if (*(data2 + i))
12925 return 7;
12926 close (fd2);
12927 if (munmap (data2, pagesize))
12928 return 8;
12929
12930 /* Next, try to mmap the file at a fixed address which already has
12931 something else allocated at it. If we can, also make sure that
12932 we see the same garbage. */
12933 fd = open ("conftest.mmap", O_RDWR);
12934 if (fd < 0)
12935 return 9;
12936 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12937 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12938 return 10;
12939 for (i = 0; i < pagesize; ++i)
12940 if (*(data + i) != *(data2 + i))
12941 return 11;
12942
12943 /* Finally, make sure that changes to the mapped area do not
12944 percolate back to the file as seen by read(). (This is a bug on
12945 some variants of i386 svr4.0.) */
12946 for (i = 0; i < pagesize; ++i)
12947 *(data2 + i) = *(data2 + i) + 1;
12948 data3 = (char *) malloc (pagesize);
12949 if (!data3)
12950 return 12;
12951 if (read (fd, data3, pagesize) != pagesize)
12952 return 13;
12953 for (i = 0; i < pagesize; ++i)
12954 if (*(data + i) != *(data3 + i))
12955 return 14;
12956 close (fd);
12957 return 0;
12958 }
12959 _ACEOF
12960 if ac_fn_c_try_run "$LINENO"; then :
12961 ac_cv_func_mmap_fixed_mapped=yes
12962 else
12963 ac_cv_func_mmap_fixed_mapped=no
12964 fi
12965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12966 conftest.$ac_objext conftest.beam conftest.$ac_ext
12967 fi
12968
12969 fi
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12971 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12972 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12973
12974 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12975
12976 fi
12977 rm -f conftest.mmap conftest.txt
12978
12979 for ac_header in vfork.h
12980 do :
12981 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12982 if test "x$ac_cv_header_vfork_h" = xyes; then :
12983 cat >>confdefs.h <<_ACEOF
12984 #define HAVE_VFORK_H 1
12985 _ACEOF
12986
12987 fi
12988
12989 done
12990
12991 for ac_func in fork vfork
12992 do :
12993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12994 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12995 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12996 cat >>confdefs.h <<_ACEOF
12997 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12998 _ACEOF
12999
13000 fi
13001 done
13002
13003 if test "x$ac_cv_func_fork" = xyes; then
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13005 $as_echo_n "checking for working fork... " >&6; }
13006 if ${ac_cv_func_fork_works+:} false; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 if test "$cross_compiling" = yes; then :
13010 ac_cv_func_fork_works=cross
13011 else
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014 $ac_includes_default
13015 int
13016 main ()
13017 {
13018
13019 /* By Ruediger Kuhlmann. */
13020 return fork () < 0;
13021
13022 ;
13023 return 0;
13024 }
13025 _ACEOF
13026 if ac_fn_c_try_run "$LINENO"; then :
13027 ac_cv_func_fork_works=yes
13028 else
13029 ac_cv_func_fork_works=no
13030 fi
13031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13032 conftest.$ac_objext conftest.beam conftest.$ac_ext
13033 fi
13034
13035 fi
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13037 $as_echo "$ac_cv_func_fork_works" >&6; }
13038
13039 else
13040 ac_cv_func_fork_works=$ac_cv_func_fork
13041 fi
13042 if test "x$ac_cv_func_fork_works" = xcross; then
13043 case $host in
13044 *-*-amigaos* | *-*-msdosdjgpp*)
13045 # Override, as these systems have only a dummy fork() stub
13046 ac_cv_func_fork_works=no
13047 ;;
13048 *)
13049 ac_cv_func_fork_works=yes
13050 ;;
13051 esac
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13053 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13054 fi
13055 ac_cv_func_vfork_works=$ac_cv_func_vfork
13056 if test "x$ac_cv_func_vfork" = xyes; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13058 $as_echo_n "checking for working vfork... " >&6; }
13059 if ${ac_cv_func_vfork_works+:} false; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 if test "$cross_compiling" = yes; then :
13063 ac_cv_func_vfork_works=cross
13064 else
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13067 /* Thanks to Paul Eggert for this test. */
13068 $ac_includes_default
13069 #include <sys/wait.h>
13070 #ifdef HAVE_VFORK_H
13071 # include <vfork.h>
13072 #endif
13073 /* On some sparc systems, changes by the child to local and incoming
13074 argument registers are propagated back to the parent. The compiler
13075 is told about this with #include <vfork.h>, but some compilers
13076 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13077 static variable whose address is put into a register that is
13078 clobbered by the vfork. */
13079 static void
13080 #ifdef __cplusplus
13081 sparc_address_test (int arg)
13082 # else
13083 sparc_address_test (arg) int arg;
13084 #endif
13085 {
13086 static pid_t child;
13087 if (!child) {
13088 child = vfork ();
13089 if (child < 0) {
13090 perror ("vfork");
13091 _exit(2);
13092 }
13093 if (!child) {
13094 arg = getpid();
13095 write(-1, "", 0);
13096 _exit (arg);
13097 }
13098 }
13099 }
13100
13101 int
13102 main ()
13103 {
13104 pid_t parent = getpid ();
13105 pid_t child;
13106
13107 sparc_address_test (0);
13108
13109 child = vfork ();
13110
13111 if (child == 0) {
13112 /* Here is another test for sparc vfork register problems. This
13113 test uses lots of local variables, at least as many local
13114 variables as main has allocated so far including compiler
13115 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13116 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13117 reuse the register of parent for one of the local variables,
13118 since it will think that parent can't possibly be used any more
13119 in this routine. Assigning to the local variable will thus
13120 munge parent in the parent process. */
13121 pid_t
13122 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13123 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13124 /* Convince the compiler that p..p7 are live; otherwise, it might
13125 use the same hardware register for all 8 local variables. */
13126 if (p != p1 || p != p2 || p != p3 || p != p4
13127 || p != p5 || p != p6 || p != p7)
13128 _exit(1);
13129
13130 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13131 from child file descriptors. If the child closes a descriptor
13132 before it execs or exits, this munges the parent's descriptor
13133 as well. Test for this by closing stdout in the child. */
13134 _exit(close(fileno(stdout)) != 0);
13135 } else {
13136 int status;
13137 struct stat st;
13138
13139 while (wait(&status) != child)
13140 ;
13141 return (
13142 /* Was there some problem with vforking? */
13143 child < 0
13144
13145 /* Did the child fail? (This shouldn't happen.) */
13146 || status
13147
13148 /* Did the vfork/compiler bug occur? */
13149 || parent != getpid()
13150
13151 /* Did the file descriptor bug occur? */
13152 || fstat(fileno(stdout), &st) != 0
13153 );
13154 }
13155 }
13156 _ACEOF
13157 if ac_fn_c_try_run "$LINENO"; then :
13158 ac_cv_func_vfork_works=yes
13159 else
13160 ac_cv_func_vfork_works=no
13161 fi
13162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13163 conftest.$ac_objext conftest.beam conftest.$ac_ext
13164 fi
13165
13166 fi
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13168 $as_echo "$ac_cv_func_vfork_works" >&6; }
13169
13170 fi;
13171 if test "x$ac_cv_func_fork_works" = xcross; then
13172 ac_cv_func_vfork_works=$ac_cv_func_vfork
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13174 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13175 fi
13176
13177 if test "x$ac_cv_func_vfork_works" = xyes; then
13178
13179 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13180
13181 else
13182
13183 $as_echo "#define vfork fork" >>confdefs.h
13184
13185 fi
13186 if test "x$ac_cv_func_fork_works" = xyes; then
13187
13188 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13189
13190 fi
13191
13192
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
13194 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
13195 if ${ac_cv_func_mbrtowc+:} false; then :
13196 $as_echo_n "(cached) " >&6
13197 else
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13200 #include <wchar.h>
13201 int
13202 main ()
13203 {
13204 wchar_t wc;
13205 char const s[] = "";
13206 size_t n = 1;
13207 mbstate_t state;
13208 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
13209 ;
13210 return 0;
13211 }
13212 _ACEOF
13213 if ac_fn_c_try_link "$LINENO"; then :
13214 ac_cv_func_mbrtowc=yes
13215 else
13216 ac_cv_func_mbrtowc=no
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13220 fi
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
13222 $as_echo "$ac_cv_func_mbrtowc" >&6; }
13223 if test $ac_cv_func_mbrtowc = yes; then
13224
13225 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
13226
13227 fi
13228
13229
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
13231 $as_echo_n "checking for gcc compiler warnings... " >&6; }
13232 # Check whether --enable-warnings was given.
13233 if test "${enable_warnings+set}" = set; then :
13234 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236 $as_echo "no" >&6; }
13237 WARNINGS=
13238 else
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13240 $as_echo "yes" >&6; }
13241 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
13242 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
13243 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
13244 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
13245 fi
13246 else
13247
13248 if test "$GCC" = yes; then
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13250 $as_echo "yes" >&6; }
13251 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
13252 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
13253 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
13254 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
13255 else
13256 WARNINGS=
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258 $as_echo "no" >&6; }
13259 fi
13260 fi
13261
13262
13263 for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof
13264 do :
13265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13266 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13267 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13268 cat >>confdefs.h <<_ACEOF
13269 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13270 _ACEOF
13271
13272 fi
13273 done
13274
13275
13276 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
13277 if test "x$ac_cv_func_getopt_long" = xyes; then :
13278 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
13279
13280 else
13281 case " $LIBOBJS " in
13282 *" getopt_long.$ac_objext "* ) ;;
13283 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
13284 ;;
13285 esac
13286
13287 fi
13288
13289 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
13290 if test "x$ac_cv_func_asprintf" = xyes; then :
13291 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
13292
13293 else
13294 case " $LIBOBJS " in
13295 *" asprintf.$ac_objext "* ) ;;
13296 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
13297 ;;
13298 esac
13299
13300 fi
13301
13302 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
13303 if test "x$ac_cv_func_vasprintf" = xyes; then :
13304 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
13305
13306 else
13307 case " $LIBOBJS " in
13308 *" vasprintf.$ac_objext "* ) ;;
13309 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
13310 ;;
13311 esac
13312
13313 fi
13314
13315 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
13316 if test "x$ac_cv_func_strlcpy" = xyes; then :
13317 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
13318
13319 else
13320 case " $LIBOBJS " in
13321 *" strlcpy.$ac_objext "* ) ;;
13322 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
13323 ;;
13324 esac
13325
13326 fi
13327
13328 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
13329 if test "x$ac_cv_func_strlcat" = xyes; then :
13330 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
13331
13332 else
13333 case " $LIBOBJS " in
13334 *" strlcat.$ac_objext "* ) ;;
13335 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
13336 ;;
13337 esac
13338
13339 fi
13340
13341 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
13342 if test "x$ac_cv_func_getline" = xyes; then :
13343 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
13344
13345 else
13346 case " $LIBOBJS " in
13347 *" getline.$ac_objext "* ) ;;
13348 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
13349 ;;
13350 esac
13351
13352 fi
13353
13354 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
13355 if test "x$ac_cv_func_ctime_r" = xyes; then :
13356 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
13357
13358 else
13359 case " $LIBOBJS " in
13360 *" ctime_r.$ac_objext "* ) ;;
13361 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
13362 ;;
13363 esac
13364
13365 fi
13366
13367 ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
13368 if test "x$ac_cv_func_asctime_r" = xyes; then :
13369 $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
13370
13371 else
13372 case " $LIBOBJS " in
13373 *" asctime_r.$ac_objext "* ) ;;
13374 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
13375 ;;
13376 esac
13377
13378 fi
13379
13380 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13381 if test "x$ac_cv_func_pread" = xyes; then :
13382 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
13383
13384 else
13385 case " $LIBOBJS " in
13386 *" pread.$ac_objext "* ) ;;
13387 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
13388 ;;
13389 esac
13390
13391 fi
13392
13393
13394
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
13396 $as_echo_n "checking for gzopen in -lz... " >&6; }
13397 if ${ac_cv_lib_z_gzopen+:} false; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 ac_check_lib_save_LIBS=$LIBS
13401 LIBS="-lz $LIBS"
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13404
13405 /* Override any GCC internal prototype to avoid an error.
13406 Use char because int might match the return type of a GCC
13407 builtin and then its argument prototype would still apply. */
13408 #ifdef __cplusplus
13409 extern "C"
13410 #endif
13411 char gzopen ();
13412 int
13413 main ()
13414 {
13415 return gzopen ();
13416 ;
13417 return 0;
13418 }
13419 _ACEOF
13420 if ac_fn_c_try_link "$LINENO"; then :
13421 ac_cv_lib_z_gzopen=yes
13422 else
13423 ac_cv_lib_z_gzopen=no
13424 fi
13425 rm -f core conftest.err conftest.$ac_objext \
13426 conftest$ac_exeext conftest.$ac_ext
13427 LIBS=$ac_check_lib_save_LIBS
13428 fi
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
13430 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
13431 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
13432 cat >>confdefs.h <<_ACEOF
13433 #define HAVE_LIBZ 1
13434 _ACEOF
13435
13436 LIBS="-lz $LIBS"
13437
13438 fi
13439
13440 if test "$MINGW" = 1; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
13442 $as_echo_n "checking for regexec in -lgnurx... " >&6; }
13443 if ${ac_cv_lib_gnurx_regexec+:} false; then :
13444 $as_echo_n "(cached) " >&6
13445 else
13446 ac_check_lib_save_LIBS=$LIBS
13447 LIBS="-lgnurx $LIBS"
13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13449 /* end confdefs.h. */
13450
13451 /* Override any GCC internal prototype to avoid an error.
13452 Use char because int might match the return type of a GCC
13453 builtin and then its argument prototype would still apply. */
13454 #ifdef __cplusplus
13455 extern "C"
13456 #endif
13457 char regexec ();
13458 int
13459 main ()
13460 {
13461 return regexec ();
13462 ;
13463 return 0;
13464 }
13465 _ACEOF
13466 if ac_fn_c_try_link "$LINENO"; then :
13467 ac_cv_lib_gnurx_regexec=yes
13468 else
13469 ac_cv_lib_gnurx_regexec=no
13470 fi
13471 rm -f core conftest.err conftest.$ac_objext \
13472 conftest$ac_exeext conftest.$ac_ext
13473 LIBS=$ac_check_lib_save_LIBS
13474 fi
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
13476 $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
13477 if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
13478 cat >>confdefs.h <<_ACEOF
13479 #define HAVE_LIBGNURX 1
13480 _ACEOF
13481
13482 LIBS="-lgnurx $LIBS"
13483
13484 else
13485 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
13486 fi
13487
13488 fi
13489
13490 if test "$cross_compiling" = yes; then
13491 IS_CROSS_COMPILE_TRUE=
13492 IS_CROSS_COMPILE_FALSE='#'
13493 else
13494 IS_CROSS_COMPILE_TRUE='#'
13495 IS_CROSS_COMPILE_FALSE=
13496 fi
13497
13498
13499 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
13500
13501 cat >confcache <<\_ACEOF
13502 # This file is a shell script that caches the results of configure
13503 # tests run on this system so they can be shared between configure
13504 # scripts and configure runs, see configure's option --config-cache.
13505 # It is not useful on other systems. If it contains results you don't
13506 # want to keep, you may remove or edit it.
13507 #
13508 # config.status only pays attention to the cache file if you give it
13509 # the --recheck option to rerun configure.
13510 #
13511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13513 # following values.
13514
13515 _ACEOF
13516
13517 # The following way of writing the cache mishandles newlines in values,
13518 # but we know of no workaround that is simple, portable, and efficient.
13519 # So, we kill variables containing newlines.
13520 # Ultrix sh set writes to stderr and can't be redirected directly,
13521 # and sets the high bit in the cache file unless we assign to the vars.
13522 (
13523 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13524 eval ac_val=\$$ac_var
13525 case $ac_val in #(
13526 *${as_nl}*)
13527 case $ac_var in #(
13528 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13529 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13530 esac
13531 case $ac_var in #(
13532 _ | IFS | as_nl) ;; #(
13533 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13534 *) { eval $ac_var=; unset $ac_var;} ;;
13535 esac ;;
13536 esac
13537 done
13538
13539 (set) 2>&1 |
13540 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13541 *${as_nl}ac_space=\ *)
13542 # `set' does not quote correctly, so add quotes: double-quote
13543 # substitution turns \\\\ into \\, and sed turns \\ into \.
13544 sed -n \
13545 "s/'/'\\\\''/g;
13546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13547 ;; #(
13548 *)
13549 # `set' quotes correctly as required by POSIX, so do not add quotes.
13550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13551 ;;
13552 esac |
13553 sort
13554 ) |
13555 sed '
13556 /^ac_cv_env_/b end
13557 t clear
13558 :clear
13559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13560 t end
13561 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13562 :end' >>confcache
13563 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13564 if test -w "$cache_file"; then
13565 if test "x$cache_file" != "x/dev/null"; then
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13567 $as_echo "$as_me: updating cache $cache_file" >&6;}
13568 if test ! -f "$cache_file" || test -h "$cache_file"; then
13569 cat confcache >"$cache_file"
13570 else
13571 case $cache_file in #(
13572 */* | ?:*)
13573 mv -f confcache "$cache_file"$$ &&
13574 mv -f "$cache_file"$$ "$cache_file" ;; #(
13575 *)
13576 mv -f confcache "$cache_file" ;;
13577 esac
13578 fi
13579 fi
13580 else
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13582 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13583 fi
13584 fi
13585 rm -f confcache
13586
13587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13588 # Let make expand exec_prefix.
13589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13590
13591 DEFS=-DHAVE_CONFIG_H
13592
13593 ac_libobjs=
13594 ac_ltlibobjs=
13595 U=
13596 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13597 # 1. Remove the extension, and $U if already installed.
13598 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13599 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13600 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13601 # will be set to the directory where LIBOBJS objects are built.
13602 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13603 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13604 done
13605 LIBOBJS=$ac_libobjs
13606
13607 LTLIBOBJS=$ac_ltlibobjs
13608
13609
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13611 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13612 if test -n "$am_sleep_pid"; then
13613 # Hide warnings about reused PIDs.
13614 wait $am_sleep_pid 2>/dev/null
13615 fi
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13617 $as_echo "done" >&6; }
13618 if test -n "$EXEEXT"; then
13619 am__EXEEXT_TRUE=
13620 am__EXEEXT_FALSE='#'
13621 else
13622 am__EXEEXT_TRUE='#'
13623 am__EXEEXT_FALSE=
13624 fi
13625
13626 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
13627 as_fn_error $? "conditional \"MINGW\" was never defined.
13628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13629 fi
13630 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
13631 as_fn_error $? "conditional \"FSECT5\" was never defined.
13632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13633 fi
13634 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13635 as_fn_error $? "conditional \"AMDEP\" was never defined.
13636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13637 fi
13638 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13639 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13641 fi
13642
13643 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
13644 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
13645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13646 fi
13647
13648 : "${CONFIG_STATUS=./config.status}"
13649 ac_write_fail=0
13650 ac_clean_files_save=$ac_clean_files
13651 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13653 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13654 as_write_fail=0
13655 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13656 #! $SHELL
13657 # Generated by $as_me.
13658 # Run this file to recreate the current configuration.
13659 # Compiler output produced by configure, useful for debugging
13660 # configure, is in config.log if it exists.
13661
13662 debug=false
13663 ac_cs_recheck=false
13664 ac_cs_silent=false
13665
13666 SHELL=\${CONFIG_SHELL-$SHELL}
13667 export SHELL
13668 _ASEOF
13669 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13670 ## -------------------- ##
13671 ## M4sh Initialization. ##
13672 ## -------------------- ##
13673
13674 # Be more Bourne compatible
13675 DUALCASE=1; export DUALCASE # for MKS sh
13676 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13677 emulate sh
13678 NULLCMD=:
13679 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13680 # is contrary to our usage. Disable this feature.
13681 alias -g '${1+"$@"}'='"$@"'
13682 setopt NO_GLOB_SUBST
13683 else
13684 case `(set -o) 2>/dev/null` in #(
13685 *posix*) :
13686 set -o posix ;; #(
13687 *) :
13688 ;;
13689 esac
13690 fi
13691
13692
13693 as_nl='
13694 '
13695 export as_nl
13696 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13697 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13698 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13699 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13700 # Prefer a ksh shell builtin over an external printf program on Solaris,
13701 # but without wasting forks for bash or zsh.
13702 if test -z "$BASH_VERSION$ZSH_VERSION" \
13703 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13704 as_echo='print -r --'
13705 as_echo_n='print -rn --'
13706 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13707 as_echo='printf %s\n'
13708 as_echo_n='printf %s'
13709 else
13710 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13711 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13712 as_echo_n='/usr/ucb/echo -n'
13713 else
13714 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13715 as_echo_n_body='eval
13716 arg=$1;
13717 case $arg in #(
13718 *"$as_nl"*)
13719 expr "X$arg" : "X\\(.*\\)$as_nl";
13720 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13721 esac;
13722 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13723 '
13724 export as_echo_n_body
13725 as_echo_n='sh -c $as_echo_n_body as_echo'
13726 fi
13727 export as_echo_body
13728 as_echo='sh -c $as_echo_body as_echo'
13729 fi
13730
13731 # The user is always right.
13732 if test "${PATH_SEPARATOR+set}" != set; then
13733 PATH_SEPARATOR=:
13734 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13735 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13736 PATH_SEPARATOR=';'
13737 }
13738 fi
13739
13740
13741 # IFS
13742 # We need space, tab and new line, in precisely that order. Quoting is
13743 # there to prevent editors from complaining about space-tab.
13744 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13745 # splitting by setting IFS to empty value.)
13746 IFS=" "" $as_nl"
13747
13748 # Find who we are. Look in the path if we contain no directory separator.
13749 as_myself=
13750 case $0 in #((
13751 *[\\/]* ) as_myself=$0 ;;
13752 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13753 for as_dir in $PATH
13754 do
13755 IFS=$as_save_IFS
13756 test -z "$as_dir" && as_dir=.
13757 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13758 done
13759 IFS=$as_save_IFS
13760
13761 ;;
13762 esac
13763 # We did not find ourselves, most probably we were run as `sh COMMAND'
13764 # in which case we are not to be found in the path.
13765 if test "x$as_myself" = x; then
13766 as_myself=$0
13767 fi
13768 if test ! -f "$as_myself"; then
13769 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13770 exit 1
13771 fi
13772
13773 # Unset variables that we do not need and which cause bugs (e.g. in
13774 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13775 # suppresses any "Segmentation fault" message there. '((' could
13776 # trigger a bug in pdksh 5.2.14.
13777 for as_var in BASH_ENV ENV MAIL MAILPATH
13778 do eval test x\${$as_var+set} = xset \
13779 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13780 done
13781 PS1='$ '
13782 PS2='> '
13783 PS4='+ '
13784
13785 # NLS nuisances.
13786 LC_ALL=C
13787 export LC_ALL
13788 LANGUAGE=C
13789 export LANGUAGE
13790
13791 # CDPATH.
13792 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13793
13794
13795 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13796 # ----------------------------------------
13797 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13798 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13799 # script with STATUS, using 1 if that was 0.
13800 as_fn_error ()
13801 {
13802 as_status=$1; test $as_status -eq 0 && as_status=1
13803 if test "$4"; then
13804 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13805 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13806 fi
13807 $as_echo "$as_me: error: $2" >&2
13808 as_fn_exit $as_status
13809 } # as_fn_error
13810
13811
13812 # as_fn_set_status STATUS
13813 # -----------------------
13814 # Set $? to STATUS, without forking.
13815 as_fn_set_status ()
13816 {
13817 return $1
13818 } # as_fn_set_status
13819
13820 # as_fn_exit STATUS
13821 # -----------------
13822 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13823 as_fn_exit ()
13824 {
13825 set +e
13826 as_fn_set_status $1
13827 exit $1
13828 } # as_fn_exit
13829
13830 # as_fn_unset VAR
13831 # ---------------
13832 # Portably unset VAR.
13833 as_fn_unset ()
13834 {
13835 { eval $1=; unset $1;}
13836 }
13837 as_unset=as_fn_unset
13838 # as_fn_append VAR VALUE
13839 # ----------------------
13840 # Append the text in VALUE to the end of the definition contained in VAR. Take
13841 # advantage of any shell optimizations that allow amortized linear growth over
13842 # repeated appends, instead of the typical quadratic growth present in naive
13843 # implementations.
13844 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13845 eval 'as_fn_append ()
13846 {
13847 eval $1+=\$2
13848 }'
13849 else
13850 as_fn_append ()
13851 {
13852 eval $1=\$$1\$2
13853 }
13854 fi # as_fn_append
13855
13856 # as_fn_arith ARG...
13857 # ------------------
13858 # Perform arithmetic evaluation on the ARGs, and store the result in the
13859 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13860 # must be portable across $(()) and expr.
13861 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13862 eval 'as_fn_arith ()
13863 {
13864 as_val=$(( $* ))
13865 }'
13866 else
13867 as_fn_arith ()
13868 {
13869 as_val=`expr "$@" || test $? -eq 1`
13870 }
13871 fi # as_fn_arith
13872
13873
13874 if expr a : '\(a\)' >/dev/null 2>&1 &&
13875 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13876 as_expr=expr
13877 else
13878 as_expr=false
13879 fi
13880
13881 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13882 as_basename=basename
13883 else
13884 as_basename=false
13885 fi
13886
13887 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13888 as_dirname=dirname
13889 else
13890 as_dirname=false
13891 fi
13892
13893 as_me=`$as_basename -- "$0" ||
13894 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13895 X"$0" : 'X\(//\)$' \| \
13896 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13897 $as_echo X/"$0" |
13898 sed '/^.*\/\([^/][^/]*\)\/*$/{
13899 s//\1/
13900 q
13901 }
13902 /^X\/\(\/\/\)$/{
13903 s//\1/
13904 q
13905 }
13906 /^X\/\(\/\).*/{
13907 s//\1/
13908 q
13909 }
13910 s/.*/./; q'`
13911
13912 # Avoid depending upon Character Ranges.
13913 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13914 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13915 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13916 as_cr_digits='0123456789'
13917 as_cr_alnum=$as_cr_Letters$as_cr_digits
13918
13919 ECHO_C= ECHO_N= ECHO_T=
13920 case `echo -n x` in #(((((
13921 -n*)
13922 case `echo 'xy\c'` in
13923 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13924 xy) ECHO_C='\c';;
13925 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13926 ECHO_T=' ';;
13927 esac;;
13928 *)
13929 ECHO_N='-n';;
13930 esac
13931
13932 rm -f conf$$ conf$$.exe conf$$.file
13933 if test -d conf$$.dir; then
13934 rm -f conf$$.dir/conf$$.file
13935 else
13936 rm -f conf$$.dir
13937 mkdir conf$$.dir 2>/dev/null
13938 fi
13939 if (echo >conf$$.file) 2>/dev/null; then
13940 if ln -s conf$$.file conf$$ 2>/dev/null; then
13941 as_ln_s='ln -s'
13942 # ... but there are two gotchas:
13943 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13944 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13945 # In both cases, we have to default to `cp -pR'.
13946 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13947 as_ln_s='cp -pR'
13948 elif ln conf$$.file conf$$ 2>/dev/null; then
13949 as_ln_s=ln
13950 else
13951 as_ln_s='cp -pR'
13952 fi
13953 else
13954 as_ln_s='cp -pR'
13955 fi
13956 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13957 rmdir conf$$.dir 2>/dev/null
13958
13959
13960 # as_fn_mkdir_p
13961 # -------------
13962 # Create "$as_dir" as a directory, including parents if necessary.
13963 as_fn_mkdir_p ()
13964 {
13965
13966 case $as_dir in #(
13967 -*) as_dir=./$as_dir;;
13968 esac
13969 test -d "$as_dir" || eval $as_mkdir_p || {
13970 as_dirs=
13971 while :; do
13972 case $as_dir in #(
13973 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13974 *) as_qdir=$as_dir;;
13975 esac
13976 as_dirs="'$as_qdir' $as_dirs"
13977 as_dir=`$as_dirname -- "$as_dir" ||
13978 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13979 X"$as_dir" : 'X\(//\)[^/]' \| \
13980 X"$as_dir" : 'X\(//\)$' \| \
13981 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13982 $as_echo X"$as_dir" |
13983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13984 s//\1/
13985 q
13986 }
13987 /^X\(\/\/\)[^/].*/{
13988 s//\1/
13989 q
13990 }
13991 /^X\(\/\/\)$/{
13992 s//\1/
13993 q
13994 }
13995 /^X\(\/\).*/{
13996 s//\1/
13997 q
13998 }
13999 s/.*/./; q'`
14000 test -d "$as_dir" && break
14001 done
14002 test -z "$as_dirs" || eval "mkdir $as_dirs"
14003 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14004
14005
14006 } # as_fn_mkdir_p
14007 if mkdir -p . 2>/dev/null; then
14008 as_mkdir_p='mkdir -p "$as_dir"'
14009 else
14010 test -d ./-p && rmdir ./-p
14011 as_mkdir_p=false
14012 fi
14013
14014
14015 # as_fn_executable_p FILE
14016 # -----------------------
14017 # Test if FILE is an executable regular file.
14018 as_fn_executable_p ()
14019 {
14020 test -f "$1" && test -x "$1"
14021 } # as_fn_executable_p
14022 as_test_x='test -x'
14023 as_executable_p=as_fn_executable_p
14024
14025 # Sed expression to map a string onto a valid CPP name.
14026 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14027
14028 # Sed expression to map a string onto a valid variable name.
14029 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14030
14031
14032 exec 6>&1
14033 ## ----------------------------------- ##
14034 ## Main body of $CONFIG_STATUS script. ##
14035 ## ----------------------------------- ##
14036 _ASEOF
14037 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14038
14039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14040 # Save the log message, to keep $0 and so on meaningful, and to
14041 # report actual input values of CONFIG_FILES etc. instead of their
14042 # values after options handling.
14043 ac_log="
14044 This file was extended by file $as_me 5.14, which was
14045 generated by GNU Autoconf 2.69. Invocation command line was
14046
14047 CONFIG_FILES = $CONFIG_FILES
14048 CONFIG_HEADERS = $CONFIG_HEADERS
14049 CONFIG_LINKS = $CONFIG_LINKS
14050 CONFIG_COMMANDS = $CONFIG_COMMANDS
14051 $ $0 $@
14052
14053 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14054 "
14055
14056 _ACEOF
14057
14058 case $ac_config_files in *"
14059 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14060 esac
14061
14062 case $ac_config_headers in *"
14063 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14064 esac
14065
14066
14067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14068 # Files that config.status was made for.
14069 config_files="$ac_config_files"
14070 config_headers="$ac_config_headers"
14071 config_commands="$ac_config_commands"
14072
14073 _ACEOF
14074
14075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14076 ac_cs_usage="\
14077 \`$as_me' instantiates files and other configuration actions
14078 from templates according to the current configuration. Unless the files
14079 and actions are specified as TAGs, all are instantiated by default.
14080
14081 Usage: $0 [OPTION]... [TAG]...
14082
14083 -h, --help print this help, then exit
14084 -V, --version print version number and configuration settings, then exit
14085 --config print configuration, then exit
14086 -q, --quiet, --silent
14087 do not print progress messages
14088 -d, --debug don't remove temporary files
14089 --recheck update $as_me by reconfiguring in the same conditions
14090 --file=FILE[:TEMPLATE]
14091 instantiate the configuration file FILE
14092 --header=FILE[:TEMPLATE]
14093 instantiate the configuration header FILE
14094
14095 Configuration files:
14096 $config_files
14097
14098 Configuration headers:
14099 $config_headers
14100
14101 Configuration commands:
14102 $config_commands
14103
14104 Report bugs to <christos@astron.com>."
14105
14106 _ACEOF
14107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14108 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14109 ac_cs_version="\\
14110 file config.status 5.14
14111 configured by $0, generated by GNU Autoconf 2.69,
14112 with options \\"\$ac_cs_config\\"
14113
14114 Copyright (C) 2012 Free Software Foundation, Inc.
14115 This config.status script is free software; the Free Software Foundation
14116 gives unlimited permission to copy, distribute and modify it."
14117
14118 ac_pwd='$ac_pwd'
14119 srcdir='$srcdir'
14120 INSTALL='$INSTALL'
14121 MKDIR_P='$MKDIR_P'
14122 AWK='$AWK'
14123 test -n "\$AWK" || AWK=awk
14124 _ACEOF
14125
14126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14127 # The default lists apply if the user does not specify any file.
14128 ac_need_defaults=:
14129 while test $# != 0
14130 do
14131 case $1 in
14132 --*=?*)
14133 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14134 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14135 ac_shift=:
14136 ;;
14137 --*=)
14138 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14139 ac_optarg=
14140 ac_shift=:
14141 ;;
14142 *)
14143 ac_option=$1
14144 ac_optarg=$2
14145 ac_shift=shift
14146 ;;
14147 esac
14148
14149 case $ac_option in
14150 # Handling of the options.
14151 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14152 ac_cs_recheck=: ;;
14153 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14154 $as_echo "$ac_cs_version"; exit ;;
14155 --config | --confi | --conf | --con | --co | --c )
14156 $as_echo "$ac_cs_config"; exit ;;
14157 --debug | --debu | --deb | --de | --d | -d )
14158 debug=: ;;
14159 --file | --fil | --fi | --f )
14160 $ac_shift
14161 case $ac_optarg in
14162 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14163 '') as_fn_error $? "missing file argument" ;;
14164 esac
14165 as_fn_append CONFIG_FILES " '$ac_optarg'"
14166 ac_need_defaults=false;;
14167 --header | --heade | --head | --hea )
14168 $ac_shift
14169 case $ac_optarg in
14170 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14171 esac
14172 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14173 ac_need_defaults=false;;
14174 --he | --h)
14175 # Conflict between --help and --header
14176 as_fn_error $? "ambiguous option: \`$1'
14177 Try \`$0 --help' for more information.";;
14178 --help | --hel | -h )
14179 $as_echo "$ac_cs_usage"; exit ;;
14180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14181 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14182 ac_cs_silent=: ;;
14183
14184 # This is an error.
14185 -*) as_fn_error $? "unrecognized option: \`$1'
14186 Try \`$0 --help' for more information." ;;
14187
14188 *) as_fn_append ac_config_targets " $1"
14189 ac_need_defaults=false ;;
14190
14191 esac
14192 shift
14193 done
14194
14195 ac_configure_extra_args=
14196
14197 if $ac_cs_silent; then
14198 exec 6>/dev/null
14199 ac_configure_extra_args="$ac_configure_extra_args --silent"
14200 fi
14201
14202 _ACEOF
14203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14204 if \$ac_cs_recheck; then
14205 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14206 shift
14207 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14208 CONFIG_SHELL='$SHELL'
14209 export CONFIG_SHELL
14210 exec "\$@"
14211 fi
14212
14213 _ACEOF
14214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14215 exec 5>>config.log
14216 {
14217 echo
14218 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14219 ## Running $as_me. ##
14220 _ASBOX
14221 $as_echo "$ac_log"
14222 } >&5
14223
14224 _ACEOF
14225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14226 #
14227 # INIT-COMMANDS
14228 #
14229 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14230
14231
14232 # The HP-UX ksh and POSIX shell print the target directory to stdout
14233 # if CDPATH is set.
14234 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14235
14236 sed_quote_subst='$sed_quote_subst'
14237 double_quote_subst='$double_quote_subst'
14238 delay_variable_subst='$delay_variable_subst'
14239 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14240 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14241 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14242 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14243 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14244 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14245 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14246 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14247 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14248 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14249 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14250 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14251 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14252 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14253 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14254 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14255 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14256 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14257 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14258 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14259 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14260 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14261 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14262 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14263 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14264 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14265 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14266 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14267 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14268 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14269 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14270 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14271 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14272 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14273 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14274 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14275 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14276 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14277 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14278 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14279 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14280 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14281 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14282 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14283 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14284 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14285 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14286 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14287 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14288 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14289 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14290 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14291 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14292 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14293 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14294 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14295 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14296 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14297 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14298 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14299 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14300 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14301 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14302 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14303 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14304 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14305 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14306 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14307 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14308 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14309 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14310 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14311 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14312 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14313 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14314 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14315 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14316 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14317 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14318 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14319 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14320 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14321 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14322 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14323 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14324 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14325 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14326 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14327 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14328 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14329 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14330 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14331 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14332 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14333 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14334 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14335 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14336 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14337 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14338 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14339 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14340 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14341 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14342 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14343 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14344 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14345 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14346 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14347 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14348 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14349 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14350 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14351 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14352 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14353 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14354 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14355 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14356 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14357
14358 LTCC='$LTCC'
14359 LTCFLAGS='$LTCFLAGS'
14360 compiler='$compiler_DEFAULT'
14361
14362 # Quote evaled strings.
14363 for var in SED \
14364 GREP \
14365 EGREP \
14366 FGREP \
14367 LD \
14368 NM \
14369 LN_S \
14370 lt_SP2NL \
14371 lt_NL2SP \
14372 reload_flag \
14373 OBJDUMP \
14374 deplibs_check_method \
14375 file_magic_cmd \
14376 AR \
14377 AR_FLAGS \
14378 STRIP \
14379 RANLIB \
14380 CC \
14381 CFLAGS \
14382 compiler \
14383 lt_cv_sys_global_symbol_pipe \
14384 lt_cv_sys_global_symbol_to_cdecl \
14385 lt_cv_sys_global_symbol_to_c_name_address \
14386 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14387 SHELL \
14388 ECHO \
14389 lt_prog_compiler_no_builtin_flag \
14390 lt_prog_compiler_wl \
14391 lt_prog_compiler_pic \
14392 lt_prog_compiler_static \
14393 lt_cv_prog_compiler_c_o \
14394 need_locks \
14395 DSYMUTIL \
14396 NMEDIT \
14397 LIPO \
14398 OTOOL \
14399 OTOOL64 \
14400 shrext_cmds \
14401 export_dynamic_flag_spec \
14402 whole_archive_flag_spec \
14403 compiler_needs_object \
14404 with_gnu_ld \
14405 allow_undefined_flag \
14406 no_undefined_flag \
14407 hardcode_libdir_flag_spec \
14408 hardcode_libdir_flag_spec_ld \
14409 hardcode_libdir_separator \
14410 fix_srcfile_path \
14411 exclude_expsyms \
14412 include_expsyms \
14413 file_list_spec \
14414 variables_saved_for_relink \
14415 libname_spec \
14416 library_names_spec \
14417 soname_spec \
14418 finish_eval \
14419 old_striplib \
14420 striplib; do
14421 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14422 *[\\\\\\\`\\"\\\$]*)
14423 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14424 ;;
14425 *)
14426 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14427 ;;
14428 esac
14429 done
14430
14431 # Double-quote double-evaled strings.
14432 for var in reload_cmds \
14433 old_postinstall_cmds \
14434 old_postuninstall_cmds \
14435 old_archive_cmds \
14436 extract_expsyms_cmds \
14437 old_archive_from_new_cmds \
14438 old_archive_from_expsyms_cmds \
14439 archive_cmds \
14440 archive_expsym_cmds \
14441 module_cmds \
14442 module_expsym_cmds \
14443 export_symbols_cmds \
14444 prelink_cmds \
14445 postinstall_cmds \
14446 postuninstall_cmds \
14447 finish_cmds \
14448 sys_lib_search_path_spec \
14449 sys_lib_dlsearch_path_spec; do
14450 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14451 *[\\\\\\\`\\"\\\$]*)
14452 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14453 ;;
14454 *)
14455 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14456 ;;
14457 esac
14458 done
14459
14460 # Fix-up fallback echo if it was mangled by the above quoting rules.
14461 case \$lt_ECHO in
14462 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14463 ;;
14464 esac
14465
14466 ac_aux_dir='$ac_aux_dir'
14467 xsi_shell='$xsi_shell'
14468 lt_shell_append='$lt_shell_append'
14469
14470 # See if we are running on zsh, and set the options which allow our
14471 # commands through without removal of \ escapes INIT.
14472 if test -n "\${ZSH_VERSION+set}" ; then
14473 setopt NO_GLOB_SUBST
14474 fi
14475
14476
14477 PACKAGE='$PACKAGE'
14478 VERSION='$VERSION'
14479 TIMESTAMP='$TIMESTAMP'
14480 RM='$RM'
14481 ofile='$ofile'
14482
14483
14484
14485
14486 _ACEOF
14487
14488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14489
14490 # Handling of arguments.
14491 for ac_config_target in $ac_config_targets
14492 do
14493 case $ac_config_target in
14494 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14495 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14496 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14497 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14498 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14499 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
14500 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14501 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14502 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
14503
14504 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14505 esac
14506 done
14507
14508
14509 # If the user did not use the arguments to specify the items to instantiate,
14510 # then the envvar interface is used. Set only those that are not.
14511 # We use the long form for the default assignment because of an extremely
14512 # bizarre bug on SunOS 4.1.3.
14513 if $ac_need_defaults; then
14514 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14515 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14516 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14517 fi
14518
14519 # Have a temporary directory for convenience. Make it in the build tree
14520 # simply because there is no reason against having it here, and in addition,
14521 # creating and moving files from /tmp can sometimes cause problems.
14522 # Hook for its removal unless debugging.
14523 # Note that there is a small window in which the directory will not be cleaned:
14524 # after its creation but before its name has been assigned to `$tmp'.
14525 $debug ||
14526 {
14527 tmp= ac_tmp=
14528 trap 'exit_status=$?
14529 : "${ac_tmp:=$tmp}"
14530 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14531 ' 0
14532 trap 'as_fn_exit 1' 1 2 13 15
14533 }
14534 # Create a (secure) tmp directory for tmp files.
14535
14536 {
14537 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14538 test -d "$tmp"
14539 } ||
14540 {
14541 tmp=./conf$$-$RANDOM
14542 (umask 077 && mkdir "$tmp")
14543 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14544 ac_tmp=$tmp
14545
14546 # Set up the scripts for CONFIG_FILES section.
14547 # No need to generate them if there are no CONFIG_FILES.
14548 # This happens for instance with `./config.status config.h'.
14549 if test -n "$CONFIG_FILES"; then
14550
14551
14552 ac_cr=`echo X | tr X '\015'`
14553 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14554 # But we know of no other shell where ac_cr would be empty at this
14555 # point, so we can use a bashism as a fallback.
14556 if test "x$ac_cr" = x; then
14557 eval ac_cr=\$\'\\r\'
14558 fi
14559 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14560 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14561 ac_cs_awk_cr='\\r'
14562 else
14563 ac_cs_awk_cr=$ac_cr
14564 fi
14565
14566 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14567 _ACEOF
14568
14569
14570 {
14571 echo "cat >conf$$subs.awk <<_ACEOF" &&
14572 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14573 echo "_ACEOF"
14574 } >conf$$subs.sh ||
14575 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14576 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14577 ac_delim='%!_!# '
14578 for ac_last_try in false false false false false :; do
14579 . ./conf$$subs.sh ||
14580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14581
14582 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14583 if test $ac_delim_n = $ac_delim_num; then
14584 break
14585 elif $ac_last_try; then
14586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14587 else
14588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14589 fi
14590 done
14591 rm -f conf$$subs.sh
14592
14593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14594 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14595 _ACEOF
14596 sed -n '
14597 h
14598 s/^/S["/; s/!.*/"]=/
14599 p
14600 g
14601 s/^[^!]*!//
14602 :repl
14603 t repl
14604 s/'"$ac_delim"'$//
14605 t delim
14606 :nl
14607 h
14608 s/\(.\{148\}\)..*/\1/
14609 t more1
14610 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14611 p
14612 n
14613 b repl
14614 :more1
14615 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14616 p
14617 g
14618 s/.\{148\}//
14619 t nl
14620 :delim
14621 h
14622 s/\(.\{148\}\)..*/\1/
14623 t more2
14624 s/["\\]/\\&/g; s/^/"/; s/$/"/
14625 p
14626 b
14627 :more2
14628 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14629 p
14630 g
14631 s/.\{148\}//
14632 t delim
14633 ' <conf$$subs.awk | sed '
14634 /^[^""]/{
14635 N
14636 s/\n//
14637 }
14638 ' >>$CONFIG_STATUS || ac_write_fail=1
14639 rm -f conf$$subs.awk
14640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14641 _ACAWK
14642 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14643 for (key in S) S_is_set[key] = 1
14644 FS = ""
14645
14646 }
14647 {
14648 line = $ 0
14649 nfields = split(line, field, "@")
14650 substed = 0
14651 len = length(field[1])
14652 for (i = 2; i < nfields; i++) {
14653 key = field[i]
14654 keylen = length(key)
14655 if (S_is_set[key]) {
14656 value = S[key]
14657 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14658 len += length(value) + length(field[++i])
14659 substed = 1
14660 } else
14661 len += 1 + keylen
14662 }
14663
14664 print line
14665 }
14666
14667 _ACAWK
14668 _ACEOF
14669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14670 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14671 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14672 else
14673 cat
14674 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14675 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14676 _ACEOF
14677
14678 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14679 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14680 # trailing colons and then remove the whole line if VPATH becomes empty
14681 # (actually we leave an empty line to preserve line numbers).
14682 if test "x$srcdir" = x.; then
14683 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14684 h
14685 s///
14686 s/^/:/
14687 s/[ ]*$/:/
14688 s/:\$(srcdir):/:/g
14689 s/:\${srcdir}:/:/g
14690 s/:@srcdir@:/:/g
14691 s/^:*//
14692 s/:*$//
14693 x
14694 s/\(=[ ]*\).*/\1/
14695 G
14696 s/\n//
14697 s/^[^=]*=[ ]*$//
14698 }'
14699 fi
14700
14701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14702 fi # test -n "$CONFIG_FILES"
14703
14704 # Set up the scripts for CONFIG_HEADERS section.
14705 # No need to generate them if there are no CONFIG_HEADERS.
14706 # This happens for instance with `./config.status Makefile'.
14707 if test -n "$CONFIG_HEADERS"; then
14708 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14709 BEGIN {
14710 _ACEOF
14711
14712 # Transform confdefs.h into an awk script `defines.awk', embedded as
14713 # here-document in config.status, that substitutes the proper values into
14714 # config.h.in to produce config.h.
14715
14716 # Create a delimiter string that does not exist in confdefs.h, to ease
14717 # handling of long lines.
14718 ac_delim='%!_!# '
14719 for ac_last_try in false false :; do
14720 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14721 if test -z "$ac_tt"; then
14722 break
14723 elif $ac_last_try; then
14724 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14725 else
14726 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14727 fi
14728 done
14729
14730 # For the awk script, D is an array of macro values keyed by name,
14731 # likewise P contains macro parameters if any. Preserve backslash
14732 # newline sequences.
14733
14734 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14735 sed -n '
14736 s/.\{148\}/&'"$ac_delim"'/g
14737 t rset
14738 :rset
14739 s/^[ ]*#[ ]*define[ ][ ]*/ /
14740 t def
14741 d
14742 :def
14743 s/\\$//
14744 t bsnl
14745 s/["\\]/\\&/g
14746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14747 D["\1"]=" \3"/p
14748 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14749 d
14750 :bsnl
14751 s/["\\]/\\&/g
14752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14753 D["\1"]=" \3\\\\\\n"\\/p
14754 t cont
14755 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14756 t cont
14757 d
14758 :cont
14759 n
14760 s/.\{148\}/&'"$ac_delim"'/g
14761 t clear
14762 :clear
14763 s/\\$//
14764 t bsnlc
14765 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14766 d
14767 :bsnlc
14768 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14769 b cont
14770 ' <confdefs.h | sed '
14771 s/'"$ac_delim"'/"\\\
14772 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14773
14774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14775 for (key in D) D_is_set[key] = 1
14776 FS = ""
14777 }
14778 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14779 line = \$ 0
14780 split(line, arg, " ")
14781 if (arg[1] == "#") {
14782 defundef = arg[2]
14783 mac1 = arg[3]
14784 } else {
14785 defundef = substr(arg[1], 2)
14786 mac1 = arg[2]
14787 }
14788 split(mac1, mac2, "(") #)
14789 macro = mac2[1]
14790 prefix = substr(line, 1, index(line, defundef) - 1)
14791 if (D_is_set[macro]) {
14792 # Preserve the white space surrounding the "#".
14793 print prefix "define", macro P[macro] D[macro]
14794 next
14795 } else {
14796 # Replace #undef with comments. This is necessary, for example,
14797 # in the case of _POSIX_SOURCE, which is predefined and required
14798 # on some systems where configure will not decide to define it.
14799 if (defundef == "undef") {
14800 print "/*", prefix defundef, macro, "*/"
14801 next
14802 }
14803 }
14804 }
14805 { print }
14806 _ACAWK
14807 _ACEOF
14808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14809 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14810 fi # test -n "$CONFIG_HEADERS"
14811
14812
14813 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14814 shift
14815 for ac_tag
14816 do
14817 case $ac_tag in
14818 :[FHLC]) ac_mode=$ac_tag; continue;;
14819 esac
14820 case $ac_mode$ac_tag in
14821 :[FHL]*:*);;
14822 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14823 :[FH]-) ac_tag=-:-;;
14824 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14825 esac
14826 ac_save_IFS=$IFS
14827 IFS=:
14828 set x $ac_tag
14829 IFS=$ac_save_IFS
14830 shift
14831 ac_file=$1
14832 shift
14833
14834 case $ac_mode in
14835 :L) ac_source=$1;;
14836 :[FH])
14837 ac_file_inputs=
14838 for ac_f
14839 do
14840 case $ac_f in
14841 -) ac_f="$ac_tmp/stdin";;
14842 *) # Look for the file first in the build tree, then in the source tree
14843 # (if the path is not absolute). The absolute path cannot be DOS-style,
14844 # because $ac_f cannot contain `:'.
14845 test -f "$ac_f" ||
14846 case $ac_f in
14847 [\\/$]*) false;;
14848 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14849 esac ||
14850 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14851 esac
14852 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14853 as_fn_append ac_file_inputs " '$ac_f'"
14854 done
14855
14856 # Let's still pretend it is `configure' which instantiates (i.e., don't
14857 # use $as_me), people would be surprised to read:
14858 # /* config.h. Generated by config.status. */
14859 configure_input='Generated from '`
14860 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14861 `' by configure.'
14862 if test x"$ac_file" != x-; then
14863 configure_input="$ac_file. $configure_input"
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14865 $as_echo "$as_me: creating $ac_file" >&6;}
14866 fi
14867 # Neutralize special characters interpreted by sed in replacement strings.
14868 case $configure_input in #(
14869 *\&* | *\|* | *\\* )
14870 ac_sed_conf_input=`$as_echo "$configure_input" |
14871 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14872 *) ac_sed_conf_input=$configure_input;;
14873 esac
14874
14875 case $ac_tag in
14876 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14878 esac
14879 ;;
14880 esac
14881
14882 ac_dir=`$as_dirname -- "$ac_file" ||
14883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14884 X"$ac_file" : 'X\(//\)[^/]' \| \
14885 X"$ac_file" : 'X\(//\)$' \| \
14886 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14887 $as_echo X"$ac_file" |
14888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14889 s//\1/
14890 q
14891 }
14892 /^X\(\/\/\)[^/].*/{
14893 s//\1/
14894 q
14895 }
14896 /^X\(\/\/\)$/{
14897 s//\1/
14898 q
14899 }
14900 /^X\(\/\).*/{
14901 s//\1/
14902 q
14903 }
14904 s/.*/./; q'`
14905 as_dir="$ac_dir"; as_fn_mkdir_p
14906 ac_builddir=.
14907
14908 case "$ac_dir" in
14909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14910 *)
14911 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14912 # A ".." for each directory in $ac_dir_suffix.
14913 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14914 case $ac_top_builddir_sub in
14915 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14916 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14917 esac ;;
14918 esac
14919 ac_abs_top_builddir=$ac_pwd
14920 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14921 # for backward compatibility:
14922 ac_top_builddir=$ac_top_build_prefix
14923
14924 case $srcdir in
14925 .) # We are building in place.
14926 ac_srcdir=.
14927 ac_top_srcdir=$ac_top_builddir_sub
14928 ac_abs_top_srcdir=$ac_pwd ;;
14929 [\\/]* | ?:[\\/]* ) # Absolute name.
14930 ac_srcdir=$srcdir$ac_dir_suffix;
14931 ac_top_srcdir=$srcdir
14932 ac_abs_top_srcdir=$srcdir ;;
14933 *) # Relative name.
14934 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14935 ac_top_srcdir=$ac_top_build_prefix$srcdir
14936 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14937 esac
14938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14939
14940
14941 case $ac_mode in
14942 :F)
14943 #
14944 # CONFIG_FILE
14945 #
14946
14947 case $INSTALL in
14948 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14949 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14950 esac
14951 ac_MKDIR_P=$MKDIR_P
14952 case $MKDIR_P in
14953 [\\/$]* | ?:[\\/]* ) ;;
14954 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14955 esac
14956 _ACEOF
14957
14958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14959 # If the template does not know about datarootdir, expand it.
14960 # FIXME: This hack should be removed a few years after 2.60.
14961 ac_datarootdir_hack=; ac_datarootdir_seen=
14962 ac_sed_dataroot='
14963 /datarootdir/ {
14964 p
14965 q
14966 }
14967 /@datadir@/p
14968 /@docdir@/p
14969 /@infodir@/p
14970 /@localedir@/p
14971 /@mandir@/p'
14972 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14973 *datarootdir*) ac_datarootdir_seen=yes;;
14974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14976 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14977 _ACEOF
14978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14979 ac_datarootdir_hack='
14980 s&@datadir@&$datadir&g
14981 s&@docdir@&$docdir&g
14982 s&@infodir@&$infodir&g
14983 s&@localedir@&$localedir&g
14984 s&@mandir@&$mandir&g
14985 s&\\\${datarootdir}&$datarootdir&g' ;;
14986 esac
14987 _ACEOF
14988
14989 # Neutralize VPATH when `$srcdir' = `.'.
14990 # Shell code in configure.ac might set extrasub.
14991 # FIXME: do we really want to maintain this feature?
14992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14993 ac_sed_extra="$ac_vpsub
14994 $extrasub
14995 _ACEOF
14996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14997 :t
14998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14999 s|@configure_input@|$ac_sed_conf_input|;t t
15000 s&@top_builddir@&$ac_top_builddir_sub&;t t
15001 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15002 s&@srcdir@&$ac_srcdir&;t t
15003 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15004 s&@top_srcdir@&$ac_top_srcdir&;t t
15005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15006 s&@builddir@&$ac_builddir&;t t
15007 s&@abs_builddir@&$ac_abs_builddir&;t t
15008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15009 s&@INSTALL@&$ac_INSTALL&;t t
15010 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15011 $ac_datarootdir_hack
15012 "
15013 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15014 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15015
15016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15017 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15019 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15021 which seems to be undefined. Please make sure it is defined" >&5
15022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15023 which seems to be undefined. Please make sure it is defined" >&2;}
15024
15025 rm -f "$ac_tmp/stdin"
15026 case $ac_file in
15027 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15028 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15029 esac \
15030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15031 ;;
15032 :H)
15033 #
15034 # CONFIG_HEADER
15035 #
15036 if test x"$ac_file" != x-; then
15037 {
15038 $as_echo "/* $configure_input */" \
15039 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15040 } >"$ac_tmp/config.h" \
15041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15042 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15044 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15045 else
15046 rm -f "$ac_file"
15047 mv "$ac_tmp/config.h" "$ac_file" \
15048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15049 fi
15050 else
15051 $as_echo "/* $configure_input */" \
15052 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15053 || as_fn_error $? "could not create -" "$LINENO" 5
15054 fi
15055 # Compute "$ac_file"'s index in $config_headers.
15056 _am_arg="$ac_file"
15057 _am_stamp_count=1
15058 for _am_header in $config_headers :; do
15059 case $_am_header in
15060 $_am_arg | $_am_arg:* )
15061 break ;;
15062 * )
15063 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15064 esac
15065 done
15066 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15067 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15068 X"$_am_arg" : 'X\(//\)[^/]' \| \
15069 X"$_am_arg" : 'X\(//\)$' \| \
15070 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15071 $as_echo X"$_am_arg" |
15072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15073 s//\1/
15074 q
15075 }
15076 /^X\(\/\/\)[^/].*/{
15077 s//\1/
15078 q
15079 }
15080 /^X\(\/\/\)$/{
15081 s//\1/
15082 q
15083 }
15084 /^X\(\/\).*/{
15085 s//\1/
15086 q
15087 }
15088 s/.*/./; q'`/stamp-h$_am_stamp_count
15089 ;;
15090
15091 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15092 $as_echo "$as_me: executing $ac_file commands" >&6;}
15093 ;;
15094 esac
15095
15096
15097 case $ac_file$ac_mode in
15098 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15099 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15100 # are listed without --file. Let's play safe and only enable the eval
15101 # if we detect the quoting.
15102 case $CONFIG_FILES in
15103 *\'*) eval set x "$CONFIG_FILES" ;;
15104 *) set x $CONFIG_FILES ;;
15105 esac
15106 shift
15107 for mf
15108 do
15109 # Strip MF so we end up with the name of the file.
15110 mf=`echo "$mf" | sed -e 's/:.*$//'`
15111 # Check whether this is an Automake generated Makefile or not.
15112 # We used to match only the files named 'Makefile.in', but
15113 # some people rename them; so instead we look at the file content.
15114 # Grep'ing the first line is not enough: some people post-process
15115 # each Makefile.in and add a new line on top of each file to say so.
15116 # Grep'ing the whole file is not good either: AIX grep has a line
15117 # limit of 2048, but all sed's we know have understand at least 4000.
15118 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15119 dirpart=`$as_dirname -- "$mf" ||
15120 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15121 X"$mf" : 'X\(//\)[^/]' \| \
15122 X"$mf" : 'X\(//\)$' \| \
15123 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15124 $as_echo X"$mf" |
15125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15126 s//\1/
15127 q
15128 }
15129 /^X\(\/\/\)[^/].*/{
15130 s//\1/
15131 q
15132 }
15133 /^X\(\/\/\)$/{
15134 s//\1/
15135 q
15136 }
15137 /^X\(\/\).*/{
15138 s//\1/
15139 q
15140 }
15141 s/.*/./; q'`
15142 else
15143 continue
15144 fi
15145 # Extract the definition of DEPDIR, am__include, and am__quote
15146 # from the Makefile without running 'make'.
15147 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15148 test -z "$DEPDIR" && continue
15149 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15150 test -z "am__include" && continue
15151 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15152 # Find all dependency output files, they are included files with
15153 # $(DEPDIR) in their names. We invoke sed twice because it is the
15154 # simplest approach to changing $(DEPDIR) to its actual value in the
15155 # expansion.
15156 for file in `sed -n "
15157 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15158 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15159 # Make sure the directory exists.
15160 test -f "$dirpart/$file" && continue
15161 fdir=`$as_dirname -- "$file" ||
15162 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15163 X"$file" : 'X\(//\)[^/]' \| \
15164 X"$file" : 'X\(//\)$' \| \
15165 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15166 $as_echo X"$file" |
15167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15168 s//\1/
15169 q
15170 }
15171 /^X\(\/\/\)[^/].*/{
15172 s//\1/
15173 q
15174 }
15175 /^X\(\/\/\)$/{
15176 s//\1/
15177 q
15178 }
15179 /^X\(\/\).*/{
15180 s//\1/
15181 q
15182 }
15183 s/.*/./; q'`
15184 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15185 # echo "creating $dirpart/$file"
15186 echo '# dummy' > "$dirpart/$file"
15187 done
15188 done
15189 }
15190 ;;
15191 "libtool":C)
15192
15193 # See if we are running on zsh, and set the options which allow our
15194 # commands through without removal of \ escapes.
15195 if test -n "${ZSH_VERSION+set}" ; then
15196 setopt NO_GLOB_SUBST
15197 fi
15198
15199 cfgfile="${ofile}T"
15200 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15201 $RM "$cfgfile"
15202
15203 cat <<_LT_EOF >> "$cfgfile"
15204 #! $SHELL
15205
15206 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15207 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15208 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15209 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15210 #
15211 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15212 # 2006, 2007, 2008 Free Software Foundation, Inc.
15213 # Written by Gordon Matzigkeit, 1996
15214 #
15215 # This file is part of GNU Libtool.
15216 #
15217 # GNU Libtool is free software; you can redistribute it and/or
15218 # modify it under the terms of the GNU General Public License as
15219 # published by the Free Software Foundation; either version 2 of
15220 # the License, or (at your option) any later version.
15221 #
15222 # As a special exception to the GNU General Public License,
15223 # if you distribute this file as part of a program or library that
15224 # is built using GNU Libtool, you may include this file under the
15225 # same distribution terms that you use for the rest of that program.
15226 #
15227 # GNU Libtool is distributed in the hope that it will be useful,
15228 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15229 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15230 # GNU General Public License for more details.
15231 #
15232 # You should have received a copy of the GNU General Public License
15233 # along with GNU Libtool; see the file COPYING. If not, a copy
15234 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15235 # obtained by writing to the Free Software Foundation, Inc.,
15236 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15237
15238
15239 # The names of the tagged configurations supported by this script.
15240 available_tags=""
15241
15242 # ### BEGIN LIBTOOL CONFIG
15243
15244 # Which release of libtool.m4 was used?
15245 macro_version=$macro_version
15246 macro_revision=$macro_revision
15247
15248 # Whether or not to build static libraries.
15249 build_old_libs=$enable_static
15250
15251 # What type of objects to build.
15252 pic_mode=$pic_mode
15253
15254 # Whether or not to build shared libraries.
15255 build_libtool_libs=$enable_shared
15256
15257 # Whether or not to optimize for fast installation.
15258 fast_install=$enable_fast_install
15259
15260 # The host system.
15261 host_alias=$host_alias
15262 host=$host
15263 host_os=$host_os
15264
15265 # The build system.
15266 build_alias=$build_alias
15267 build=$build
15268 build_os=$build_os
15269
15270 # A sed program that does not truncate output.
15271 SED=$lt_SED
15272
15273 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15274 Xsed="\$SED -e 1s/^X//"
15275
15276 # A grep program that handles long lines.
15277 GREP=$lt_GREP
15278
15279 # An ERE matcher.
15280 EGREP=$lt_EGREP
15281
15282 # A literal string matcher.
15283 FGREP=$lt_FGREP
15284
15285 # A BSD- or MS-compatible name lister.
15286 NM=$lt_NM
15287
15288 # Whether we need soft or hard links.
15289 LN_S=$lt_LN_S
15290
15291 # What is the maximum length of a command?
15292 max_cmd_len=$max_cmd_len
15293
15294 # Object file suffix (normally "o").
15295 objext=$ac_objext
15296
15297 # Executable file suffix (normally "").
15298 exeext=$exeext
15299
15300 # whether the shell understands "unset".
15301 lt_unset=$lt_unset
15302
15303 # turn spaces into newlines.
15304 SP2NL=$lt_lt_SP2NL
15305
15306 # turn newlines into spaces.
15307 NL2SP=$lt_lt_NL2SP
15308
15309 # How to create reloadable object files.
15310 reload_flag=$lt_reload_flag
15311 reload_cmds=$lt_reload_cmds
15312
15313 # An object symbol dumper.
15314 OBJDUMP=$lt_OBJDUMP
15315
15316 # Method to check whether dependent libraries are shared objects.
15317 deplibs_check_method=$lt_deplibs_check_method
15318
15319 # Command to use when deplibs_check_method == "file_magic".
15320 file_magic_cmd=$lt_file_magic_cmd
15321
15322 # The archiver.
15323 AR=$lt_AR
15324 AR_FLAGS=$lt_AR_FLAGS
15325
15326 # A symbol stripping program.
15327 STRIP=$lt_STRIP
15328
15329 # Commands used to install an old-style archive.
15330 RANLIB=$lt_RANLIB
15331 old_postinstall_cmds=$lt_old_postinstall_cmds
15332 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15333
15334 # A C compiler.
15335 LTCC=$lt_CC
15336
15337 # LTCC compiler flags.
15338 LTCFLAGS=$lt_CFLAGS
15339
15340 # Take the output of nm and produce a listing of raw symbols and C names.
15341 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15342
15343 # Transform the output of nm in a proper C declaration.
15344 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15345
15346 # Transform the output of nm in a C name address pair.
15347 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15348
15349 # Transform the output of nm in a C name address pair when lib prefix is needed.
15350 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15351
15352 # The name of the directory that contains temporary libtool files.
15353 objdir=$objdir
15354
15355 # Shell to use when invoking shell scripts.
15356 SHELL=$lt_SHELL
15357
15358 # An echo program that does not interpret backslashes.
15359 ECHO=$lt_ECHO
15360
15361 # Used to examine libraries when file_magic_cmd begins with "file".
15362 MAGIC_CMD=$MAGIC_CMD
15363
15364 # Must we lock files when doing compilation?
15365 need_locks=$lt_need_locks
15366
15367 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15368 DSYMUTIL=$lt_DSYMUTIL
15369
15370 # Tool to change global to local symbols on Mac OS X.
15371 NMEDIT=$lt_NMEDIT
15372
15373 # Tool to manipulate fat objects and archives on Mac OS X.
15374 LIPO=$lt_LIPO
15375
15376 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15377 OTOOL=$lt_OTOOL
15378
15379 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15380 OTOOL64=$lt_OTOOL64
15381
15382 # Old archive suffix (normally "a").
15383 libext=$libext
15384
15385 # Shared library suffix (normally ".so").
15386 shrext_cmds=$lt_shrext_cmds
15387
15388 # The commands to extract the exported symbol list from a shared archive.
15389 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15390
15391 # Variables whose values should be saved in libtool wrapper scripts and
15392 # restored at link time.
15393 variables_saved_for_relink=$lt_variables_saved_for_relink
15394
15395 # Do we need the "lib" prefix for modules?
15396 need_lib_prefix=$need_lib_prefix
15397
15398 # Do we need a version for libraries?
15399 need_version=$need_version
15400
15401 # Library versioning type.
15402 version_type=$version_type
15403
15404 # Shared library runtime path variable.
15405 runpath_var=$runpath_var
15406
15407 # Shared library path variable.
15408 shlibpath_var=$shlibpath_var
15409
15410 # Is shlibpath searched before the hard-coded library search path?
15411 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15412
15413 # Format of library name prefix.
15414 libname_spec=$lt_libname_spec
15415
15416 # List of archive names. First name is the real one, the rest are links.
15417 # The last name is the one that the linker finds with -lNAME
15418 library_names_spec=$lt_library_names_spec
15419
15420 # The coded name of the library, if different from the real name.
15421 soname_spec=$lt_soname_spec
15422
15423 # Command to use after installation of a shared archive.
15424 postinstall_cmds=$lt_postinstall_cmds
15425
15426 # Command to use after uninstallation of a shared archive.
15427 postuninstall_cmds=$lt_postuninstall_cmds
15428
15429 # Commands used to finish a libtool library installation in a directory.
15430 finish_cmds=$lt_finish_cmds
15431
15432 # As "finish_cmds", except a single script fragment to be evaled but
15433 # not shown.
15434 finish_eval=$lt_finish_eval
15435
15436 # Whether we should hardcode library paths into libraries.
15437 hardcode_into_libs=$hardcode_into_libs
15438
15439 # Compile-time system search path for libraries.
15440 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15441
15442 # Run-time system search path for libraries.
15443 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15444
15445 # Whether dlopen is supported.
15446 dlopen_support=$enable_dlopen
15447
15448 # Whether dlopen of programs is supported.
15449 dlopen_self=$enable_dlopen_self
15450
15451 # Whether dlopen of statically linked programs is supported.
15452 dlopen_self_static=$enable_dlopen_self_static
15453
15454 # Commands to strip libraries.
15455 old_striplib=$lt_old_striplib
15456 striplib=$lt_striplib
15457
15458
15459 # The linker used to build libraries.
15460 LD=$lt_LD
15461
15462 # Commands used to build an old-style archive.
15463 old_archive_cmds=$lt_old_archive_cmds
15464
15465 # A language specific compiler.
15466 CC=$lt_compiler
15467
15468 # Is the compiler the GNU compiler?
15469 with_gcc=$GCC
15470
15471 # Compiler flag to turn off builtin functions.
15472 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15473
15474 # How to pass a linker flag through the compiler.
15475 wl=$lt_lt_prog_compiler_wl
15476
15477 # Additional compiler flags for building library objects.
15478 pic_flag=$lt_lt_prog_compiler_pic
15479
15480 # Compiler flag to prevent dynamic linking.
15481 link_static_flag=$lt_lt_prog_compiler_static
15482
15483 # Does compiler simultaneously support -c and -o options?
15484 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15485
15486 # Whether or not to add -lc for building shared libraries.
15487 build_libtool_need_lc=$archive_cmds_need_lc
15488
15489 # Whether or not to disallow shared libs when runtime libs are static.
15490 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15491
15492 # Compiler flag to allow reflexive dlopens.
15493 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15494
15495 # Compiler flag to generate shared objects directly from archives.
15496 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15497
15498 # Whether the compiler copes with passing no objects directly.
15499 compiler_needs_object=$lt_compiler_needs_object
15500
15501 # Create an old-style archive from a shared archive.
15502 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15503
15504 # Create a temporary old-style archive to link instead of a shared archive.
15505 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15506
15507 # Commands used to build a shared archive.
15508 archive_cmds=$lt_archive_cmds
15509 archive_expsym_cmds=$lt_archive_expsym_cmds
15510
15511 # Commands used to build a loadable module if different from building
15512 # a shared archive.
15513 module_cmds=$lt_module_cmds
15514 module_expsym_cmds=$lt_module_expsym_cmds
15515
15516 # Whether we are building with GNU ld or not.
15517 with_gnu_ld=$lt_with_gnu_ld
15518
15519 # Flag that allows shared libraries with undefined symbols to be built.
15520 allow_undefined_flag=$lt_allow_undefined_flag
15521
15522 # Flag that enforces no undefined symbols.
15523 no_undefined_flag=$lt_no_undefined_flag
15524
15525 # Flag to hardcode \$libdir into a binary during linking.
15526 # This must work even if \$libdir does not exist
15527 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15528
15529 # If ld is used when linking, flag to hardcode \$libdir into a binary
15530 # during linking. This must work even if \$libdir does not exist.
15531 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15532
15533 # Whether we need a single "-rpath" flag with a separated argument.
15534 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15535
15536 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15537 # DIR into the resulting binary.
15538 hardcode_direct=$hardcode_direct
15539
15540 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15541 # DIR into the resulting binary and the resulting library dependency is
15542 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15543 # library is relocated.
15544 hardcode_direct_absolute=$hardcode_direct_absolute
15545
15546 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15547 # into the resulting binary.
15548 hardcode_minus_L=$hardcode_minus_L
15549
15550 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15551 # into the resulting binary.
15552 hardcode_shlibpath_var=$hardcode_shlibpath_var
15553
15554 # Set to "yes" if building a shared library automatically hardcodes DIR
15555 # into the library and all subsequent libraries and executables linked
15556 # against it.
15557 hardcode_automatic=$hardcode_automatic
15558
15559 # Set to yes if linker adds runtime paths of dependent libraries
15560 # to runtime path list.
15561 inherit_rpath=$inherit_rpath
15562
15563 # Whether libtool must link a program against all its dependency libraries.
15564 link_all_deplibs=$link_all_deplibs
15565
15566 # Fix the shell variable \$srcfile for the compiler.
15567 fix_srcfile_path=$lt_fix_srcfile_path
15568
15569 # Set to "yes" if exported symbols are required.
15570 always_export_symbols=$always_export_symbols
15571
15572 # The commands to list exported symbols.
15573 export_symbols_cmds=$lt_export_symbols_cmds
15574
15575 # Symbols that should not be listed in the preloaded symbols.
15576 exclude_expsyms=$lt_exclude_expsyms
15577
15578 # Symbols that must always be exported.
15579 include_expsyms=$lt_include_expsyms
15580
15581 # Commands necessary for linking programs (against libraries) with templates.
15582 prelink_cmds=$lt_prelink_cmds
15583
15584 # Specify filename containing input files.
15585 file_list_spec=$lt_file_list_spec
15586
15587 # How to hardcode a shared library path into an executable.
15588 hardcode_action=$hardcode_action
15589
15590 # ### END LIBTOOL CONFIG
15591
15592 _LT_EOF
15593
15594 case $host_os in
15595 aix3*)
15596 cat <<\_LT_EOF >> "$cfgfile"
15597 # AIX sometimes has problems with the GCC collect2 program. For some
15598 # reason, if we set the COLLECT_NAMES environment variable, the problems
15599 # vanish in a puff of smoke.
15600 if test "X${COLLECT_NAMES+set}" != Xset; then
15601 COLLECT_NAMES=
15602 export COLLECT_NAMES
15603 fi
15604 _LT_EOF
15605 ;;
15606 esac
15607
15608
15609 ltmain="$ac_aux_dir/ltmain.sh"
15610
15611
15612 # We use sed instead of cat because bash on DJGPP gets confused if
15613 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15614 # text mode, it properly converts lines to CR/LF. This bash problem
15615 # is reportedly fixed, but why not run on old versions too?
15616 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15617 || (rm -f "$cfgfile"; exit 1)
15618
15619 case $xsi_shell in
15620 yes)
15621 cat << \_LT_EOF >> "$cfgfile"
15622
15623 # func_dirname file append nondir_replacement
15624 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15625 # otherwise set result to NONDIR_REPLACEMENT.
15626 func_dirname ()
15627 {
15628 case ${1} in
15629 */*) func_dirname_result="${1%/*}${2}" ;;
15630 * ) func_dirname_result="${3}" ;;
15631 esac
15632 }
15633
15634 # func_basename file
15635 func_basename ()
15636 {
15637 func_basename_result="${1##*/}"
15638 }
15639
15640 # func_dirname_and_basename file append nondir_replacement
15641 # perform func_basename and func_dirname in a single function
15642 # call:
15643 # dirname: Compute the dirname of FILE. If nonempty,
15644 # add APPEND to the result, otherwise set result
15645 # to NONDIR_REPLACEMENT.
15646 # value returned in "$func_dirname_result"
15647 # basename: Compute filename of FILE.
15648 # value retuned in "$func_basename_result"
15649 # Implementation must be kept synchronized with func_dirname
15650 # and func_basename. For efficiency, we do not delegate to
15651 # those functions but instead duplicate the functionality here.
15652 func_dirname_and_basename ()
15653 {
15654 case ${1} in
15655 */*) func_dirname_result="${1%/*}${2}" ;;
15656 * ) func_dirname_result="${3}" ;;
15657 esac
15658 func_basename_result="${1##*/}"
15659 }
15660
15661 # func_stripname prefix suffix name
15662 # strip PREFIX and SUFFIX off of NAME.
15663 # PREFIX and SUFFIX must not contain globbing or regex special
15664 # characters, hashes, percent signs, but SUFFIX may contain a leading
15665 # dot (in which case that matches only a dot).
15666 func_stripname ()
15667 {
15668 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15669 # positional parameters, so assign one to ordinary parameter first.
15670 func_stripname_result=${3}
15671 func_stripname_result=${func_stripname_result#"${1}"}
15672 func_stripname_result=${func_stripname_result%"${2}"}
15673 }
15674
15675 # func_opt_split
15676 func_opt_split ()
15677 {
15678 func_opt_split_opt=${1%%=*}
15679 func_opt_split_arg=${1#*=}
15680 }
15681
15682 # func_lo2o object
15683 func_lo2o ()
15684 {
15685 case ${1} in
15686 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15687 *) func_lo2o_result=${1} ;;
15688 esac
15689 }
15690
15691 # func_xform libobj-or-source
15692 func_xform ()
15693 {
15694 func_xform_result=${1%.*}.lo
15695 }
15696
15697 # func_arith arithmetic-term...
15698 func_arith ()
15699 {
15700 func_arith_result=$(( $* ))
15701 }
15702
15703 # func_len string
15704 # STRING may not start with a hyphen.
15705 func_len ()
15706 {
15707 func_len_result=${#1}
15708 }
15709
15710 _LT_EOF
15711 ;;
15712 *) # Bourne compatible functions.
15713 cat << \_LT_EOF >> "$cfgfile"
15714
15715 # func_dirname file append nondir_replacement
15716 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15717 # otherwise set result to NONDIR_REPLACEMENT.
15718 func_dirname ()
15719 {
15720 # Extract subdirectory from the argument.
15721 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15722 if test "X$func_dirname_result" = "X${1}"; then
15723 func_dirname_result="${3}"
15724 else
15725 func_dirname_result="$func_dirname_result${2}"
15726 fi
15727 }
15728
15729 # func_basename file
15730 func_basename ()
15731 {
15732 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15733 }
15734
15735
15736 # func_stripname prefix suffix name
15737 # strip PREFIX and SUFFIX off of NAME.
15738 # PREFIX and SUFFIX must not contain globbing or regex special
15739 # characters, hashes, percent signs, but SUFFIX may contain a leading
15740 # dot (in which case that matches only a dot).
15741 # func_strip_suffix prefix name
15742 func_stripname ()
15743 {
15744 case ${2} in
15745 .*) func_stripname_result=`$ECHO "X${3}" \
15746 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15747 *) func_stripname_result=`$ECHO "X${3}" \
15748 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15749 esac
15750 }
15751
15752 # sed scripts:
15753 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15754 my_sed_long_arg='1s/^-[^=]*=//'
15755
15756 # func_opt_split
15757 func_opt_split ()
15758 {
15759 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15760 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15761 }
15762
15763 # func_lo2o object
15764 func_lo2o ()
15765 {
15766 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15767 }
15768
15769 # func_xform libobj-or-source
15770 func_xform ()
15771 {
15772 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15773 }
15774
15775 # func_arith arithmetic-term...
15776 func_arith ()
15777 {
15778 func_arith_result=`expr "$@"`
15779 }
15780
15781 # func_len string
15782 # STRING may not start with a hyphen.
15783 func_len ()
15784 {
15785 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15786 }
15787
15788 _LT_EOF
15789 esac
15790
15791 case $lt_shell_append in
15792 yes)
15793 cat << \_LT_EOF >> "$cfgfile"
15794
15795 # func_append var value
15796 # Append VALUE to the end of shell variable VAR.
15797 func_append ()
15798 {
15799 eval "$1+=\$2"
15800 }
15801 _LT_EOF
15802 ;;
15803 *)
15804 cat << \_LT_EOF >> "$cfgfile"
15805
15806 # func_append var value
15807 # Append VALUE to the end of shell variable VAR.
15808 func_append ()
15809 {
15810 eval "$1=\$$1\$2"
15811 }
15812
15813 _LT_EOF
15814 ;;
15815 esac
15816
15817
15818 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15819 || (rm -f "$cfgfile"; exit 1)
15820
15821 mv -f "$cfgfile" "$ofile" ||
15822 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15823 chmod +x "$ofile"
15824
15825 ;;
15826
15827 esac
15828 done # for ac_tag
15829
15830
15831 as_fn_exit 0
15832 _ACEOF
15833 ac_clean_files=$ac_clean_files_save
15834
15835 test $ac_write_fail = 0 ||
15836 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15837
15838
15839 # configure is writing to config.log, and then calls config.status.
15840 # config.status does its own redirection, appending to config.log.
15841 # Unfortunately, on DOS this fails, as config.log is still kept open
15842 # by configure, so config.status won't be able to write to it; its
15843 # output is simply discarded. So we exec the FD to /dev/null,
15844 # effectively closing config.log, so it can be properly (re)opened and
15845 # appended to by config.status. When coming back to configure, we
15846 # need to make the FD available again.
15847 if test "$no_create" != yes; then
15848 ac_cs_success=:
15849 ac_config_status_args=
15850 test "$silent" = yes &&
15851 ac_config_status_args="$ac_config_status_args --quiet"
15852 exec 5>/dev/null
15853 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15854 exec 5>>config.log
15855 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15856 # would make configure fail if this is the last instruction.
15857 $ac_cs_success || as_fn_exit 1
15858 fi
15859 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15861 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15862 fi
15863
15864