]> jfr.im git - solanum.git/blob - libratbox/configure
14d1e66067fb12f33096850a703a555d0558da90
[solanum.git] / libratbox / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libratbox devel.
4 #
5 # $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
278 $0: including any error possibly output before this
279 $0: message. Then install a modern shell, or manually run
280 $0: the script under such a shell if you do have one."
281 fi
282 exit 1
283 fi
284 fi
285 fi
286 SHELL=${CONFIG_SHELL-/bin/sh}
287 export SHELL
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
291
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
299 {
300 { eval $1=; unset $1;}
301 }
302 as_unset=as_fn_unset
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 eval 'as_fn_arith ()
402 {
403 as_val=$(( $* ))
404 }'
405 else
406 as_fn_arith ()
407 {
408 as_val=`expr "$@" || test $? -eq 1`
409 }
410 fi # as_fn_arith
411
412
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
419 {
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
428
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
440 fi
441
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
446 fi
447
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 $as_echo X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
487 b
488 :lineno
489 N
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
505 . "./$as_me.lineno"
506 # Exit status is that of the last command.
507 exit
508 }
509
510 ECHO_C= ECHO_N= ECHO_T=
511 case `echo -n x` in #(((((
512 -n*)
513 case `echo 'xy\c'` in
514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
515 xy) ECHO_C='\c';;
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 ECHO_T=' ';;
518 esac;;
519 *)
520 ECHO_N='-n';;
521 esac
522
523 rm -f conf$$ conf$$.exe conf$$.file
524 if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
526 else
527 rm -f conf$$.dir
528 mkdir conf$$.dir 2>/dev/null
529 fi
530 if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s='ln -s'
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536 # In both cases, we have to default to `cp -pR'.
537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538 as_ln_s='cp -pR'
539 elif ln conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s=ln
541 else
542 as_ln_s='cp -pR'
543 fi
544 else
545 as_ln_s='cp -pR'
546 fi
547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548 rmdir conf$$.dir 2>/dev/null
549
550 if mkdir -p . 2>/dev/null; then
551 as_mkdir_p='mkdir -p "$as_dir"'
552 else
553 test -d ./-p && rmdir ./-p
554 as_mkdir_p=false
555 fi
556
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
559
560 # Sed expression to map a string onto a valid CPP name.
561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562
563 # Sed expression to map a string onto a valid variable name.
564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565
566 SHELL=${CONFIG_SHELL-/bin/sh}
567
568
569 test -n "$DJDIR" || exec 7<&0 </dev/null
570 exec 6>&1
571
572 # Name of the host.
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574 # so uname gets run too.
575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577 #
578 # Initializations.
579 #
580 ac_default_prefix=/usr/local
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
588
589 # Identity of this package.
590 PACKAGE_NAME='libratbox'
591 PACKAGE_TARNAME='libratbox'
592 PACKAGE_VERSION='devel'
593 PACKAGE_STRING='libratbox devel'
594 PACKAGE_BUGREPORT=''
595 PACKAGE_URL=''
596
597 ac_default_prefix=/usr/local/libratbox
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_header_list=
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 RB_PREFIX
640 MBEDTLS_LIBS
641 MBEDTLS_CFLAGS
642 SSL_LIBS
643 SSL_CFLAGS
644 SEDOBJ
645 PICFLAGS
646 GNUTLS_LIBS
647 GNUTLS_CFLAGS
648 PKG_CONFIG_LIBDIR
649 PKG_CONFIG_PATH
650 PKG_CONFIG
651 ALLOCA
652 MINGW_FALSE
653 MINGW_TRUE
654 LT_SYS_LIBRARY_PATH
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 MANIFEST_TOOL
661 RANLIB
662 ac_ct_AR
663 AR
664 DLLTOOL
665 OBJDUMP
666 LN_S
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LD
671 FGREP
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 LIBTOOL
681 TOUCH
682 LN
683 MV
684 CP
685 RM
686 AS
687 MAINT
688 MAINTAINER_MODE_FALSE
689 MAINTAINER_MODE_TRUE
690 SED
691 EGREP
692 GREP
693 CPP
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 AM_BACKSLASH
712 AM_DEFAULT_VERBOSITY
713 AM_DEFAULT_V
714 AM_V
715 am__untar
716 am__tar
717 AMTAR
718 am__leading_dot
719 SET_MAKE
720 AWK
721 mkdir_p
722 MKDIR_P
723 INSTALL_STRIP_PROGRAM
724 STRIP
725 install_sh
726 MAKEINFO
727 AUTOHEADER
728 AUTOMAKE
729 AUTOCONF
730 ACLOCAL
731 VERSION
732 PACKAGE
733 CYGPATH_W
734 am__isrc
735 INSTALL_DATA
736 INSTALL_SCRIPT
737 INSTALL_PROGRAM
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 ECHO_T
743 ECHO_N
744 ECHO_C
745 DEFS
746 mandir
747 localedir
748 libdir
749 psdir
750 pdfdir
751 dvidir
752 htmldir
753 infodir
754 docdir
755 oldincludedir
756 includedir
757 localstatedir
758 sharedstatedir
759 sysconfdir
760 datadir
761 datarootdir
762 libexecdir
763 sbindir
764 bindir
765 program_transform_name
766 prefix
767 exec_prefix
768 PACKAGE_URL
769 PACKAGE_BUGREPORT
770 PACKAGE_STRING
771 PACKAGE_VERSION
772 PACKAGE_TARNAME
773 PACKAGE_NAME
774 PATH_SEPARATOR
775 SHELL'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 enable_silent_rules
780 enable_dependency_tracking
781 enable_static
782 enable_shared
783 enable_maintainer_mode
784 with_pic
785 enable_fast_install
786 with_aix_soname
787 with_gnu_ld
788 with_sysroot
789 enable_libtool_lock
790 enable_ipv6
791 enable_openssl
792 enable_mbedtls
793 enable_gnutls
794 enable_assert
795 enable_profile
796 enable_warnings
797 '
798 ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 LIBS
805 CPPFLAGS
806 CPP
807 LT_SYS_LIBRARY_PATH
808 PKG_CONFIG
809 PKG_CONFIG_PATH
810 PKG_CONFIG_LIBDIR
811 GNUTLS_CFLAGS
812 GNUTLS_LIBS'
813
814
815 # Initialize some variables set by options.
816 ac_init_help=
817 ac_init_version=false
818 ac_unrecognized_opts=
819 ac_unrecognized_sep=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
836
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
862
863 ac_prev=
864 ac_dashdash=
865 for ac_option
866 do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
872 fi
873
874 case $ac_option in
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *=) ac_optarg= ;;
877 *) ac_optarg=yes ;;
878 esac
879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
910
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=no ;;
933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
943
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=\$ac_optarg ;;
959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1163
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1179
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1183
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1190
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1197
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information"
1200 ;;
1201
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1211
1212 *)
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218 ;;
1219
1220 esac
1221 done
1222
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error $? "missing argument to $ac_option"
1226 fi
1227
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1234 fi
1235
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
1241 do
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255 done
1256
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1263
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271 fi
1272
1273 ac_tool_prefix=
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276 test "$silent" = yes && exec 6>/dev/null
1277
1278
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $? "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $? "pwd does not report name of working directory"
1285
1286
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
1314 srcdir=$ac_confdir
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 srcdir=..
1317 fi
1318 else
1319 ac_srcdir_defaulted=no
1320 fi
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 fi
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 pwd)`
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332 fi
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1336 case $srcdir in
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 esac
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 done
1345
1346 #
1347 # Report the --help message.
1348 #
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
1353 \`configure' configures libratbox devel to adapt to many kinds of systems.
1354
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1359
1360 Defaults for the options are specified in brackets.
1361
1362 Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 [PREFIX]
1378
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1383
1384 For better control, use the options below.
1385
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1406 _ACEOF
1407
1408 cat <<\_ACEOF
1409
1410 Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414
1415 System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 _ACEOF
1419 fi
1420
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of libratbox devel:";;
1424 esac
1425 cat <<\_ACEOF
1426
1427 Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-silent-rules less verbose build output (undo: "make V=1")
1432 --disable-silent-rules verbose build output (undo: "make V=0")
1433 --enable-dependency-tracking
1434 do not reject slow dependency extractors
1435 --disable-dependency-tracking
1436 speeds up one-time build
1437 --enable-static[=PKGS] build static libraries [default=no]
1438 --enable-shared[=PKGS] build shared libraries [default=yes]
1439 --enable-maintainer-mode
1440 enable make rules and dependencies not useful (and
1441 sometimes confusing) to the casual installer
1442 --enable-fast-install[=PKGS]
1443 optimize for fast installation [default=yes]
1444 --disable-libtool-lock avoid locking (might break parallel builds)
1445 --disable-ipv6 Disable IPv6 support
1446 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1447 --disable-openssl Disable OpenSSL support.
1448 --enable-mbedtls Enable mbedTLS support.
1449 --disable-mbedtls Disable mbedTLS support.
1450 --enable-gnutls Enable GnuTLS support.
1451 --disable-gnutls Disable GnuTLS support.
1452 --enable-assert Enable assert(). Choose between soft(warnings) and
1453 hard(aborts the daemon)
1454 --enable-profile Enable profiling
1455 --enable-warnings Enable all sorts of warnings for debugging.
1456
1457 Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --with-aix-soname=aix|svr4|both
1463 shared library versioning (aka "SONAME") variant to
1464 provide on AIX, [default=aix].
1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1466 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1467 compiler's sysroot if not specified).
1468
1469 Some influential environment variables:
1470 CC C compiler command
1471 CFLAGS C compiler flags
1472 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1473 nonstandard directory <lib dir>
1474 LIBS libraries to pass to the linker, e.g. -l<library>
1475 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1476 you have headers in a nonstandard directory <include dir>
1477 CPP C preprocessor
1478 LT_SYS_LIBRARY_PATH
1479 User-defined run-time library search path.
1480 PKG_CONFIG path to pkg-config utility
1481 PKG_CONFIG_PATH
1482 directories to add to pkg-config's search path
1483 PKG_CONFIG_LIBDIR
1484 path overriding pkg-config's built-in search path
1485 GNUTLS_CFLAGS
1486 C compiler flags for GNUTLS, overriding pkg-config
1487 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to the package provider.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502 continue
1503 ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554 cat <<\_ACEOF
1555 libratbox configure devel
1556 generated by GNU Autoconf 2.69
1557
1558 Copyright (C) 2012 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561
1562 $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
1563 _ACEOF
1564 exit
1565 fi
1566
1567 ## ------------------------ ##
1568 ## Autoconf initialization. ##
1569 ## ------------------------ ##
1570
1571 # ac_fn_c_try_compile LINENO
1572 # --------------------------
1573 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_compile ()
1575 {
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext
1578 if { { ac_try="$ac_compile"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_compile") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest.$ac_objext; then :
1597 ac_retval=0
1598 else
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602 ac_retval=1
1603 fi
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_compile
1608
1609 # ac_fn_c_try_cpp LINENO
1610 # ----------------------
1611 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_cpp ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 if { { ac_try="$ac_cpp conftest.$ac_ext"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } > conftest.i && {
1631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 }; then :
1634 ac_retval=0
1635 else
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639 ac_retval=1
1640 fi
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1643
1644 } # ac_fn_c_try_cpp
1645
1646 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1647 # -------------------------------------------------------
1648 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1649 # the include files in INCLUDES and setting the cache variable VAR
1650 # accordingly.
1651 ac_fn_c_check_header_mongrel ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if eval \${$3+:} false; then :
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if eval \${$3+:} false; then :
1658 $as_echo_n "(cached) " >&6
1659 fi
1660 eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 else
1664 # Is the header compilable?
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1666 $as_echo_n "checking $2 usability... " >&6; }
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 $4
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 ac_header_compiler=yes
1674 else
1675 ac_header_compiler=no
1676 fi
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1679 $as_echo "$ac_header_compiler" >&6; }
1680
1681 # Is the header present?
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1683 $as_echo_n "checking $2 presence... " >&6; }
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 #include <$2>
1687 _ACEOF
1688 if ac_fn_c_try_cpp "$LINENO"; then :
1689 ac_header_preproc=yes
1690 else
1691 ac_header_preproc=no
1692 fi
1693 rm -f conftest.err conftest.i conftest.$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1695 $as_echo "$ac_header_preproc" >&6; }
1696
1697 # So? What about this header?
1698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1699 yes:no: )
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1701 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704 ;;
1705 no:yes:* )
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1707 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1709 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1711 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1713 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1716 ;;
1717 esac
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if eval \${$3+:} false; then :
1721 $as_echo_n "(cached) " >&6
1722 else
1723 eval "$3=\$ac_header_compiler"
1724 fi
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 fi
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730
1731 } # ac_fn_c_check_header_mongrel
1732
1733 # ac_fn_c_try_run LINENO
1734 # ----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1736 # that executables *can* be run.
1737 ac_fn_c_try_run ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_link"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>&5
1748 ac_status=$?
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1751 { { case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_try") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; }; }; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: program exited with status $ac_status" >&5
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=$ac_status
1768 fi
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_run
1774
1775 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1776 # -------------------------------------------------------
1777 # Tests whether HEADER exists and can be compiled using the include files in
1778 # INCLUDES, setting the cache variable VAR accordingly.
1779 ac_fn_c_check_header_compile ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1786 else
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1789 $4
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793 eval "$3=yes"
1794 else
1795 eval "$3=no"
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 fi
1799 eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803
1804 } # ac_fn_c_check_header_compile
1805
1806 # ac_fn_c_try_link LINENO
1807 # -----------------------
1808 # Try to link conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_link ()
1810 {
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext conftest$ac_exeext
1813 if { { ac_try="$ac_link"
1814 case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_link") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1826 fi
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest$ac_exeext && {
1832 test "$cross_compiling" = yes ||
1833 test -x conftest$ac_exeext
1834 }; then :
1835 ac_retval=0
1836 else
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_retval=1
1841 fi
1842 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844 # interfere with the next link command; also delete a directory that is
1845 # left behind by Apple's compiler. We do this before executing the actions.
1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1849
1850 } # ac_fn_c_try_link
1851
1852 # ac_fn_c_check_func LINENO FUNC VAR
1853 # ----------------------------------
1854 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1855 ac_fn_c_check_func ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861 $as_echo_n "(cached) " >&6
1862 else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1867 #define $2 innocuous_$2
1868
1869 /* System header to define __stub macros and hopefully few prototypes,
1870 which can conflict with char $2 (); below.
1871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872 <limits.h> exists even on freestanding compilers. */
1873
1874 #ifdef __STDC__
1875 # include <limits.h>
1876 #else
1877 # include <assert.h>
1878 #endif
1879
1880 #undef $2
1881
1882 /* Override any GCC internal prototype to avoid an error.
1883 Use char because int might match the return type of a GCC
1884 builtin and then its argument prototype would still apply. */
1885 #ifdef __cplusplus
1886 extern "C"
1887 #endif
1888 char $2 ();
1889 /* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892 #if defined __stub_$2 || defined __stub___$2
1893 choke me
1894 #endif
1895
1896 int
1897 main ()
1898 {
1899 return $2 ();
1900 ;
1901 return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_link "$LINENO"; then :
1905 eval "$3=yes"
1906 else
1907 eval "$3=no"
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext \
1910 conftest$ac_exeext conftest.$ac_ext
1911 fi
1912 eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916
1917 } # ac_fn_c_check_func
1918
1919 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1920 # -------------------------------------------
1921 # Tests whether TYPE exists after having included INCLUDES, setting cache
1922 # variable VAR accordingly.
1923 ac_fn_c_check_type ()
1924 {
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1930 else
1931 eval "$3=no"
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 $4
1935 int
1936 main ()
1937 {
1938 if (sizeof ($2))
1939 return 0;
1940 ;
1941 return 0;
1942 }
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 $4
1948 int
1949 main ()
1950 {
1951 if (sizeof (($2)))
1952 return 0;
1953 ;
1954 return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958
1959 else
1960 eval "$3=yes"
1961 fi
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 fi
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_check_type
1972
1973 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1974 # ----------------------------------------------------
1975 # Tries to find if the field MEMBER exists in type AGGR, after including
1976 # INCLUDES, setting cache variable VAR accordingly.
1977 ac_fn_c_check_member ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1981 $as_echo_n "checking for $2.$3... " >&6; }
1982 if eval \${$4+:} false; then :
1983 $as_echo_n "(cached) " >&6
1984 else
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 $5
1988 int
1989 main ()
1990 {
1991 static $2 ac_aggr;
1992 if (ac_aggr.$3)
1993 return 0;
1994 ;
1995 return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 eval "$4=yes"
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $5
2004 int
2005 main ()
2006 {
2007 static $2 ac_aggr;
2008 if (sizeof ac_aggr.$3)
2009 return 0;
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 eval "$4=yes"
2016 else
2017 eval "$4=no"
2018 fi
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 fi
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 fi
2023 eval ac_res=\$$4
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027
2028 } # ac_fn_c_check_member
2029 cat >config.log <<_ACEOF
2030 This file contains any messages produced by compilers while
2031 running configure, to aid debugging if configure makes a mistake.
2032
2033 It was created by libratbox $as_me devel, which was
2034 generated by GNU Autoconf 2.69. Invocation command line was
2035
2036 $ $0 $@
2037
2038 _ACEOF
2039 exec 5>>config.log
2040 {
2041 cat <<_ASUNAME
2042 ## --------- ##
2043 ## Platform. ##
2044 ## --------- ##
2045
2046 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2047 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2048 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2049 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2050 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2051
2052 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2053 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2054
2055 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2056 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2057 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2058 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2059 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2060 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2061 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2062
2063 _ASUNAME
2064
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068 IFS=$as_save_IFS
2069 test -z "$as_dir" && as_dir=.
2070 $as_echo "PATH: $as_dir"
2071 done
2072 IFS=$as_save_IFS
2073
2074 } >&5
2075
2076 cat >&5 <<_ACEOF
2077
2078
2079 ## ----------- ##
2080 ## Core tests. ##
2081 ## ----------- ##
2082
2083 _ACEOF
2084
2085
2086 # Keep a trace of the command line.
2087 # Strip out --no-create and --no-recursion so they do not pile up.
2088 # Strip out --silent because we don't want to record it for future runs.
2089 # Also quote any args containing shell meta-characters.
2090 # Make two passes to allow for proper duplicate-argument suppression.
2091 ac_configure_args=
2092 ac_configure_args0=
2093 ac_configure_args1=
2094 ac_must_keep_next=false
2095 for ac_pass in 1 2
2096 do
2097 for ac_arg
2098 do
2099 case $ac_arg in
2100 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2102 | -silent | --silent | --silen | --sile | --sil)
2103 continue ;;
2104 *\'*)
2105 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2106 esac
2107 case $ac_pass in
2108 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2109 2)
2110 as_fn_append ac_configure_args1 " '$ac_arg'"
2111 if test $ac_must_keep_next = true; then
2112 ac_must_keep_next=false # Got value, back to normal.
2113 else
2114 case $ac_arg in
2115 *=* | --config-cache | -C | -disable-* | --disable-* \
2116 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2117 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2118 | -with-* | --with-* | -without-* | --without-* | --x)
2119 case "$ac_configure_args0 " in
2120 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2121 esac
2122 ;;
2123 -* ) ac_must_keep_next=true ;;
2124 esac
2125 fi
2126 as_fn_append ac_configure_args " '$ac_arg'"
2127 ;;
2128 esac
2129 done
2130 done
2131 { ac_configure_args0=; unset ac_configure_args0;}
2132 { ac_configure_args1=; unset ac_configure_args1;}
2133
2134 # When interrupted or exit'd, cleanup temporary files, and complete
2135 # config.log. We remove comments because anyway the quotes in there
2136 # would cause problems or look ugly.
2137 # WARNING: Use '\'' to represent an apostrophe within the trap.
2138 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2139 trap 'exit_status=$?
2140 # Save into config.log some information that might help in debugging.
2141 {
2142 echo
2143
2144 $as_echo "## ---------------- ##
2145 ## Cache variables. ##
2146 ## ---------------- ##"
2147 echo
2148 # The following way of writing the cache mishandles newlines in values,
2149 (
2150 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2151 eval ac_val=\$$ac_var
2152 case $ac_val in #(
2153 *${as_nl}*)
2154 case $ac_var in #(
2155 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2156 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2157 esac
2158 case $ac_var in #(
2159 _ | IFS | as_nl) ;; #(
2160 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2161 *) { eval $ac_var=; unset $ac_var;} ;;
2162 esac ;;
2163 esac
2164 done
2165 (set) 2>&1 |
2166 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2167 *${as_nl}ac_space=\ *)
2168 sed -n \
2169 "s/'\''/'\''\\\\'\'''\''/g;
2170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2171 ;; #(
2172 *)
2173 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2174 ;;
2175 esac |
2176 sort
2177 )
2178 echo
2179
2180 $as_echo "## ----------------- ##
2181 ## Output variables. ##
2182 ## ----------------- ##"
2183 echo
2184 for ac_var in $ac_subst_vars
2185 do
2186 eval ac_val=\$$ac_var
2187 case $ac_val in
2188 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189 esac
2190 $as_echo "$ac_var='\''$ac_val'\''"
2191 done | sort
2192 echo
2193
2194 if test -n "$ac_subst_files"; then
2195 $as_echo "## ------------------- ##
2196 ## File substitutions. ##
2197 ## ------------------- ##"
2198 echo
2199 for ac_var in $ac_subst_files
2200 do
2201 eval ac_val=\$$ac_var
2202 case $ac_val in
2203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204 esac
2205 $as_echo "$ac_var='\''$ac_val'\''"
2206 done | sort
2207 echo
2208 fi
2209
2210 if test -s confdefs.h; then
2211 $as_echo "## ----------- ##
2212 ## confdefs.h. ##
2213 ## ----------- ##"
2214 echo
2215 cat confdefs.h
2216 echo
2217 fi
2218 test "$ac_signal" != 0 &&
2219 $as_echo "$as_me: caught signal $ac_signal"
2220 $as_echo "$as_me: exit $exit_status"
2221 } >&5
2222 rm -f core *.core core.conftest.* &&
2223 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2224 exit $exit_status
2225 ' 0
2226 for ac_signal in 1 2 13 15; do
2227 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2228 done
2229 ac_signal=0
2230
2231 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2232 rm -f -r conftest* confdefs.h
2233
2234 $as_echo "/* confdefs.h */" > confdefs.h
2235
2236 # Predefined preprocessor variables.
2237
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_NAME "$PACKAGE_NAME"
2240 _ACEOF
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2244 _ACEOF
2245
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2248 _ACEOF
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_STRING "$PACKAGE_STRING"
2252 _ACEOF
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_URL "$PACKAGE_URL"
2260 _ACEOF
2261
2262
2263 # Let the site file select an alternate cache file if it wants to.
2264 # Prefer an explicitly selected file to automatically selected ones.
2265 ac_site_file1=NONE
2266 ac_site_file2=NONE
2267 if test -n "$CONFIG_SITE"; then
2268 # We do not want a PATH search for config.site.
2269 case $CONFIG_SITE in #((
2270 -*) ac_site_file1=./$CONFIG_SITE;;
2271 */*) ac_site_file1=$CONFIG_SITE;;
2272 *) ac_site_file1=./$CONFIG_SITE;;
2273 esac
2274 elif test "x$prefix" != xNONE; then
2275 ac_site_file1=$prefix/share/config.site
2276 ac_site_file2=$prefix/etc/config.site
2277 else
2278 ac_site_file1=$ac_default_prefix/share/config.site
2279 ac_site_file2=$ac_default_prefix/etc/config.site
2280 fi
2281 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2282 do
2283 test "x$ac_site_file" = xNONE && continue
2284 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2286 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2287 sed 's/^/| /' "$ac_site_file" >&5
2288 . "$ac_site_file" \
2289 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2291 as_fn_error $? "failed to load site script $ac_site_file
2292 See \`config.log' for more details" "$LINENO" 5; }
2293 fi
2294 done
2295
2296 if test -r "$cache_file"; then
2297 # Some versions of bash will fail to source /dev/null (special files
2298 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2299 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2301 $as_echo "$as_me: loading cache $cache_file" >&6;}
2302 case $cache_file in
2303 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2304 *) . "./$cache_file";;
2305 esac
2306 fi
2307 else
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2309 $as_echo "$as_me: creating cache $cache_file" >&6;}
2310 >$cache_file
2311 fi
2312
2313 as_fn_append ac_header_list " stdlib.h"
2314 as_fn_append ac_header_list " unistd.h"
2315 as_fn_append ac_header_list " sys/param.h"
2316 # Check that the precious variables saved in the cache have kept the same
2317 # value.
2318 ac_cache_corrupted=false
2319 for ac_var in $ac_precious_vars; do
2320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2321 eval ac_new_set=\$ac_env_${ac_var}_set
2322 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2323 eval ac_new_val=\$ac_env_${ac_var}_value
2324 case $ac_old_set,$ac_new_set in
2325 set,)
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2327 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2328 ac_cache_corrupted=: ;;
2329 ,set)
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2331 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2332 ac_cache_corrupted=: ;;
2333 ,);;
2334 *)
2335 if test "x$ac_old_val" != "x$ac_new_val"; then
2336 # differences in whitespace do not lead to failure.
2337 ac_old_val_w=`echo x $ac_old_val`
2338 ac_new_val_w=`echo x $ac_new_val`
2339 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2341 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2342 ac_cache_corrupted=:
2343 else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2345 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2346 eval $ac_var=\$ac_old_val
2347 fi
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2349 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2351 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2352 fi;;
2353 esac
2354 # Pass precious variables to config.status.
2355 if test "$ac_new_set" = set; then
2356 case $ac_new_val in
2357 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2358 *) ac_arg=$ac_var=$ac_new_val ;;
2359 esac
2360 case " $ac_configure_args " in
2361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2362 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2363 esac
2364 fi
2365 done
2366 if $ac_cache_corrupted; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2370 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2371 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2372 fi
2373 ## -------------------- ##
2374 ## Main body of script. ##
2375 ## -------------------- ##
2376
2377 ac_ext=c
2378 ac_cpp='$CPP $CPPFLAGS'
2379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382
2383
2384 am__api_version='1.15'
2385
2386 ac_aux_dir=
2387 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2388 if test -f "$ac_dir/install-sh"; then
2389 ac_aux_dir=$ac_dir
2390 ac_install_sh="$ac_aux_dir/install-sh -c"
2391 break
2392 elif test -f "$ac_dir/install.sh"; then
2393 ac_aux_dir=$ac_dir
2394 ac_install_sh="$ac_aux_dir/install.sh -c"
2395 break
2396 elif test -f "$ac_dir/shtool"; then
2397 ac_aux_dir=$ac_dir
2398 ac_install_sh="$ac_aux_dir/shtool install -c"
2399 break
2400 fi
2401 done
2402 if test -z "$ac_aux_dir"; then
2403 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2404 fi
2405
2406 # These three variables are undocumented and unsupported,
2407 # and are intended to be withdrawn in a future Autoconf release.
2408 # They can cause serious problems if a builder's source tree is in a directory
2409 # whose full name contains unusual characters.
2410 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2411 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2412 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2413
2414
2415 # Find a good install program. We prefer a C program (faster),
2416 # so one script is as good as another. But avoid the broken or
2417 # incompatible versions:
2418 # SysV /etc/install, /usr/sbin/install
2419 # SunOS /usr/etc/install
2420 # IRIX /sbin/install
2421 # AIX /bin/install
2422 # AmigaOS /C/install, which installs bootblocks on floppy discs
2423 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2424 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2425 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2426 # OS/2's system install, which has a completely different semantic
2427 # ./install, which can be erroneously created by make from ./install.sh.
2428 # Reject install programs that cannot install multiple files.
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2430 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2431 if test -z "$INSTALL"; then
2432 if ${ac_cv_path_install+:} false; then :
2433 $as_echo_n "(cached) " >&6
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 # Account for people who put trailing slashes in PATH elements.
2441 case $as_dir/ in #((
2442 ./ | .// | /[cC]/* | \
2443 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2444 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2445 /usr/ucb/* ) ;;
2446 *)
2447 # OSF1 and SCO ODT 3.0 have their own names for install.
2448 # Don't use installbsd from OSF since it installs stuff as root
2449 # by default.
2450 for ac_prog in ginstall scoinst install; do
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2453 if test $ac_prog = install &&
2454 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2455 # AIX install. It has an incompatible calling convention.
2456 :
2457 elif test $ac_prog = install &&
2458 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2459 # program-specific install script used by HP pwplus--don't use.
2460 :
2461 else
2462 rm -rf conftest.one conftest.two conftest.dir
2463 echo one > conftest.one
2464 echo two > conftest.two
2465 mkdir conftest.dir
2466 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2467 test -s conftest.one && test -s conftest.two &&
2468 test -s conftest.dir/conftest.one &&
2469 test -s conftest.dir/conftest.two
2470 then
2471 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2472 break 3
2473 fi
2474 fi
2475 fi
2476 done
2477 done
2478 ;;
2479 esac
2480
2481 done
2482 IFS=$as_save_IFS
2483
2484 rm -rf conftest.one conftest.two conftest.dir
2485
2486 fi
2487 if test "${ac_cv_path_install+set}" = set; then
2488 INSTALL=$ac_cv_path_install
2489 else
2490 # As a last resort, use the slow shell script. Don't cache a
2491 # value for INSTALL within a source directory, because that will
2492 # break other packages using the cache if that directory is
2493 # removed, or if the value is a relative name.
2494 INSTALL=$ac_install_sh
2495 fi
2496 fi
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2498 $as_echo "$INSTALL" >&6; }
2499
2500 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2501 # It thinks the first close brace ends the variable substitution.
2502 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2503
2504 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2505
2506 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2507
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2509 $as_echo_n "checking whether build environment is sane... " >&6; }
2510 # Reject unsafe characters in $srcdir or the absolute working directory
2511 # name. Accept space and tab only in the latter.
2512 am_lf='
2513 '
2514 case `pwd` in
2515 *[\\\"\#\$\&\'\`$am_lf]*)
2516 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2517 esac
2518 case $srcdir in
2519 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2520 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2521 esac
2522
2523 # Do 'set' in a subshell so we don't clobber the current shell's
2524 # arguments. Must try -L first in case configure is actually a
2525 # symlink; some systems play weird games with the mod time of symlinks
2526 # (eg FreeBSD returns the mod time of the symlink's containing
2527 # directory).
2528 if (
2529 am_has_slept=no
2530 for am_try in 1 2; do
2531 echo "timestamp, slept: $am_has_slept" > conftest.file
2532 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2533 if test "$*" = "X"; then
2534 # -L didn't work.
2535 set X `ls -t "$srcdir/configure" conftest.file`
2536 fi
2537 if test "$*" != "X $srcdir/configure conftest.file" \
2538 && test "$*" != "X conftest.file $srcdir/configure"; then
2539
2540 # If neither matched, then we have a broken ls. This can happen
2541 # if, for instance, CONFIG_SHELL is bash and it inherits a
2542 # broken ls alias from the environment. This has actually
2543 # happened. Such a system could not be considered "sane".
2544 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2545 alias in your environment" "$LINENO" 5
2546 fi
2547 if test "$2" = conftest.file || test $am_try -eq 2; then
2548 break
2549 fi
2550 # Just in case.
2551 sleep 1
2552 am_has_slept=yes
2553 done
2554 test "$2" = conftest.file
2555 )
2556 then
2557 # Ok.
2558 :
2559 else
2560 as_fn_error $? "newly created file is older than distributed files!
2561 Check your system clock" "$LINENO" 5
2562 fi
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564 $as_echo "yes" >&6; }
2565 # If we didn't sleep, we still need to ensure time stamps of config.status and
2566 # generated files are strictly newer.
2567 am_sleep_pid=
2568 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2569 ( sleep 1 ) &
2570 am_sleep_pid=$!
2571 fi
2572
2573 rm -f conftest.file
2574
2575 test "$program_prefix" != NONE &&
2576 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2577 # Use a double $ so make ignores it.
2578 test "$program_suffix" != NONE &&
2579 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2580 # Double any \ or $.
2581 # By default was `s,x,x', remove it if useless.
2582 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2583 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2584
2585 # Expand $ac_aux_dir to an absolute path.
2586 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2587
2588 if test x"${MISSING+set}" != xset; then
2589 case $am_aux_dir in
2590 *\ * | *\ *)
2591 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2592 *)
2593 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2594 esac
2595 fi
2596 # Use eval to expand $SHELL
2597 if eval "$MISSING --is-lightweight"; then
2598 am_missing_run="$MISSING "
2599 else
2600 am_missing_run=
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2602 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2603 fi
2604
2605 if test x"${install_sh+set}" != xset; then
2606 case $am_aux_dir in
2607 *\ * | *\ *)
2608 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2609 *)
2610 install_sh="\${SHELL} $am_aux_dir/install-sh"
2611 esac
2612 fi
2613
2614 # Installed binaries are usually stripped using 'strip' when the user
2615 # run "make install-strip". However 'strip' might not be the right
2616 # tool to use in cross-compilation environments, therefore Automake
2617 # will honor the 'STRIP' environment variable to overrule this program.
2618 if test "$cross_compiling" != no; then
2619 if test -n "$ac_tool_prefix"; then
2620 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2621 set dummy ${ac_tool_prefix}strip; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if ${ac_cv_prog_STRIP+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 if test -n "$STRIP"; then
2628 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2640 fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2644
2645 fi
2646 fi
2647 STRIP=$ac_cv_prog_STRIP
2648 if test -n "$STRIP"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2650 $as_echo "$STRIP" >&6; }
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2654 fi
2655
2656
2657 fi
2658 if test -z "$ac_cv_prog_STRIP"; then
2659 ac_ct_STRIP=$STRIP
2660 # Extract the first word of "strip", so it can be a program name with args.
2661 set dummy strip; ac_word=$2
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663 $as_echo_n "checking for $ac_word... " >&6; }
2664 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 if test -n "$ac_ct_STRIP"; then
2668 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2677 ac_cv_prog_ac_ct_STRIP="strip"
2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2680 fi
2681 done
2682 done
2683 IFS=$as_save_IFS
2684
2685 fi
2686 fi
2687 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2688 if test -n "$ac_ct_STRIP"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2690 $as_echo "$ac_ct_STRIP" >&6; }
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2694 fi
2695
2696 if test "x$ac_ct_STRIP" = x; then
2697 STRIP=":"
2698 else
2699 case $cross_compiling:$ac_tool_warned in
2700 yes:)
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2703 ac_tool_warned=yes ;;
2704 esac
2705 STRIP=$ac_ct_STRIP
2706 fi
2707 else
2708 STRIP="$ac_cv_prog_STRIP"
2709 fi
2710
2711 fi
2712 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2713
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2715 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2716 if test -z "$MKDIR_P"; then
2717 if ${ac_cv_path_mkdir+:} false; then :
2718 $as_echo_n "(cached) " >&6
2719 else
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2722 do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_prog in mkdir gmkdir; do
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2728 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2729 'mkdir (GNU coreutils) '* | \
2730 'mkdir (coreutils) '* | \
2731 'mkdir (fileutils) '4.1*)
2732 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2733 break 3;;
2734 esac
2735 done
2736 done
2737 done
2738 IFS=$as_save_IFS
2739
2740 fi
2741
2742 test -d ./--version && rmdir ./--version
2743 if test "${ac_cv_path_mkdir+set}" = set; then
2744 MKDIR_P="$ac_cv_path_mkdir -p"
2745 else
2746 # As a last resort, use the slow shell script. Don't cache a
2747 # value for MKDIR_P within a source directory, because that will
2748 # break other packages using the cache if that directory is
2749 # removed, or if the value is a relative name.
2750 MKDIR_P="$ac_install_sh -d"
2751 fi
2752 fi
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2754 $as_echo "$MKDIR_P" >&6; }
2755
2756 for ac_prog in gawk mawk nawk awk
2757 do
2758 # Extract the first word of "$ac_prog", so it can be a program name with args.
2759 set dummy $ac_prog; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_AWK+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 if test -n "$AWK"; then
2766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_AWK="$ac_prog"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2778 fi
2779 done
2780 done
2781 IFS=$as_save_IFS
2782
2783 fi
2784 fi
2785 AWK=$ac_cv_prog_AWK
2786 if test -n "$AWK"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2788 $as_echo "$AWK" >&6; }
2789 else
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2792 fi
2793
2794
2795 test -n "$AWK" && break
2796 done
2797
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2799 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2800 set x ${MAKE-make}
2801 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2802 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 cat >conftest.make <<\_ACEOF
2806 SHELL = /bin/sh
2807 all:
2808 @echo '@@@%%%=$(MAKE)=@@@%%%'
2809 _ACEOF
2810 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2811 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2812 *@@@%%%=?*=@@@%%%*)
2813 eval ac_cv_prog_make_${ac_make}_set=yes;;
2814 *)
2815 eval ac_cv_prog_make_${ac_make}_set=no;;
2816 esac
2817 rm -f conftest.make
2818 fi
2819 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2821 $as_echo "yes" >&6; }
2822 SET_MAKE=
2823 else
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 SET_MAKE="MAKE=${MAKE-make}"
2827 fi
2828
2829 rm -rf .tst 2>/dev/null
2830 mkdir .tst 2>/dev/null
2831 if test -d .tst; then
2832 am__leading_dot=.
2833 else
2834 am__leading_dot=_
2835 fi
2836 rmdir .tst 2>/dev/null
2837
2838 # Check whether --enable-silent-rules was given.
2839 if test "${enable_silent_rules+set}" = set; then :
2840 enableval=$enable_silent_rules;
2841 fi
2842
2843 case $enable_silent_rules in # (((
2844 yes) AM_DEFAULT_VERBOSITY=0;;
2845 no) AM_DEFAULT_VERBOSITY=1;;
2846 *) AM_DEFAULT_VERBOSITY=1;;
2847 esac
2848 am_make=${MAKE-make}
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2850 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2851 if ${am_cv_make_support_nested_variables+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 if $as_echo 'TRUE=$(BAR$(V))
2855 BAR0=false
2856 BAR1=true
2857 V=1
2858 am__doit:
2859 @$(TRUE)
2860 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2861 am_cv_make_support_nested_variables=yes
2862 else
2863 am_cv_make_support_nested_variables=no
2864 fi
2865 fi
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2867 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2868 if test $am_cv_make_support_nested_variables = yes; then
2869 AM_V='$(V)'
2870 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2871 else
2872 AM_V=$AM_DEFAULT_VERBOSITY
2873 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2874 fi
2875 AM_BACKSLASH='\'
2876
2877 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2878 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2879 # is not polluted with repeated "-I."
2880 am__isrc=' -I$(srcdir)'
2881 # test to see if srcdir already configured
2882 if test -f $srcdir/config.status; then
2883 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2884 fi
2885 fi
2886
2887 # test whether we have cygpath
2888 if test -z "$CYGPATH_W"; then
2889 if (cygpath --version) >/dev/null 2>/dev/null; then
2890 CYGPATH_W='cygpath -w'
2891 else
2892 CYGPATH_W=echo
2893 fi
2894 fi
2895
2896
2897 # Define the identity of the package.
2898 PACKAGE='libratbox'
2899 VERSION='devel'
2900
2901
2902 cat >>confdefs.h <<_ACEOF
2903 #define PACKAGE "$PACKAGE"
2904 _ACEOF
2905
2906
2907 cat >>confdefs.h <<_ACEOF
2908 #define VERSION "$VERSION"
2909 _ACEOF
2910
2911 # Some tools Automake needs.
2912
2913 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2914
2915
2916 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2917
2918
2919 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2920
2921
2922 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2923
2924
2925 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2926
2927 # For better backward compatibility. To be removed once Automake 1.9.x
2928 # dies out for good. For more background, see:
2929 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2930 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2931 mkdir_p='$(MKDIR_P)'
2932
2933 # We need awk for the "check" target (and possibly the TAP driver). The
2934 # system "awk" is bad on some platforms.
2935 # Always define AMTAR for backward compatibility. Yes, it's still used
2936 # in the wild :-( We should find a proper way to deprecate it ...
2937 AMTAR='$${TAR-tar}'
2938
2939
2940 # We'll loop over all known methods to create a tar archive until one works.
2941 _am_tools='gnutar pax cpio none'
2942
2943 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2944
2945
2946
2947
2948
2949
2950 # POSIX will say in a future version that running "rm -f" with no argument
2951 # is OK; and we want to be able to make that assumption in our Makefile
2952 # recipes. So use an aggressive probe to check that the usage we want is
2953 # actually supported "in the wild" to an acceptable degree.
2954 # See automake bug#10828.
2955 # To make any issue more visible, cause the running configure to be aborted
2956 # by default if the 'rm' program in use doesn't match our expectations; the
2957 # user can still override this though.
2958 if rm -f && rm -fr && rm -rf; then : OK; else
2959 cat >&2 <<'END'
2960 Oops!
2961
2962 Your 'rm' program seems unable to run without file operands specified
2963 on the command line, even when the '-f' option is present. This is contrary
2964 to the behaviour of most rm programs out there, and not conforming with
2965 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2966
2967 Please tell bug-automake@gnu.org about your system, including the value
2968 of your $PATH and any error possibly output before this message. This
2969 can help us improve future automake versions.
2970
2971 END
2972 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2973 echo 'Configuration will proceed anyway, since you have set the' >&2
2974 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2975 echo >&2
2976 else
2977 cat >&2 <<'END'
2978 Aborting the configuration process, to ensure you take notice of the issue.
2979
2980 You can download and install GNU coreutils to get an 'rm' implementation
2981 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2982
2983 If you want to complete the configuration process using your problematic
2984 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2985 to "yes", and re-run configure.
2986
2987 END
2988 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2989 fi
2990 fi
2991
2992 # Check whether --enable-silent-rules was given.
2993 if test "${enable_silent_rules+set}" = set; then :
2994 enableval=$enable_silent_rules;
2995 fi
2996
2997 case $enable_silent_rules in # (((
2998 yes) AM_DEFAULT_VERBOSITY=0;;
2999 no) AM_DEFAULT_VERBOSITY=1;;
3000 *) AM_DEFAULT_VERBOSITY=0;;
3001 esac
3002 am_make=${MAKE-make}
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3004 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3005 if ${am_cv_make_support_nested_variables+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if $as_echo 'TRUE=$(BAR$(V))
3009 BAR0=false
3010 BAR1=true
3011 V=1
3012 am__doit:
3013 @$(TRUE)
3014 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3015 am_cv_make_support_nested_variables=yes
3016 else
3017 am_cv_make_support_nested_variables=no
3018 fi
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3021 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3022 if test $am_cv_make_support_nested_variables = yes; then
3023 AM_V='$(V)'
3024 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3025 else
3026 AM_V=$AM_DEFAULT_VERBOSITY
3027 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3028 fi
3029 AM_BACKSLASH='\'
3030
3031
3032 ac_config_headers="$ac_config_headers include/libratbox_config.h"
3033
3034
3035
3036 DEPDIR="${am__leading_dot}deps"
3037
3038 ac_config_commands="$ac_config_commands depfiles"
3039
3040
3041 am_make=${MAKE-make}
3042 cat > confinc << 'END'
3043 am__doit:
3044 @echo this is the am__doit target
3045 .PHONY: am__doit
3046 END
3047 # If we don't find an include directive, just comment out the code.
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3049 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3050 am__include="#"
3051 am__quote=
3052 _am_result=none
3053 # First try GNU make style include.
3054 echo "include confinc" > confmf
3055 # Ignore all kinds of additional output from 'make'.
3056 case `$am_make -s -f confmf 2> /dev/null` in #(
3057 *the\ am__doit\ target*)
3058 am__include=include
3059 am__quote=
3060 _am_result=GNU
3061 ;;
3062 esac
3063 # Now try BSD make style include.
3064 if test "$am__include" = "#"; then
3065 echo '.include "confinc"' > confmf
3066 case `$am_make -s -f confmf 2> /dev/null` in #(
3067 *the\ am__doit\ target*)
3068 am__include=.include
3069 am__quote="\""
3070 _am_result=BSD
3071 ;;
3072 esac
3073 fi
3074
3075
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3077 $as_echo "$_am_result" >&6; }
3078 rm -f confinc confmf
3079
3080 # Check whether --enable-dependency-tracking was given.
3081 if test "${enable_dependency_tracking+set}" = set; then :
3082 enableval=$enable_dependency_tracking;
3083 fi
3084
3085 if test "x$enable_dependency_tracking" != xno; then
3086 am_depcomp="$ac_aux_dir/depcomp"
3087 AMDEPBACKSLASH='\'
3088 am__nodep='_no'
3089 fi
3090 if test "x$enable_dependency_tracking" != xno; then
3091 AMDEP_TRUE=
3092 AMDEP_FALSE='#'
3093 else
3094 AMDEP_TRUE='#'
3095 AMDEP_FALSE=
3096 fi
3097
3098
3099 ac_ext=c
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 if test -n "$ac_tool_prefix"; then
3105 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3106 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_CC+:} false; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 if test -n "$CC"; then
3113 ac_cv_prog_CC="$CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3125 fi
3126 done
3127 done
3128 IFS=$as_save_IFS
3129
3130 fi
3131 fi
3132 CC=$ac_cv_prog_CC
3133 if test -n "$CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3135 $as_echo "$CC" >&6; }
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 fi
3140
3141
3142 fi
3143 if test -z "$ac_cv_prog_CC"; then
3144 ac_ct_CC=$CC
3145 # Extract the first word of "gcc", so it can be a program name with args.
3146 set dummy gcc; ac_word=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 if test -n "$ac_ct_CC"; then
3153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3157 do
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 ac_cv_prog_ac_ct_CC="gcc"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 break 2
3165 fi
3166 done
3167 done
3168 IFS=$as_save_IFS
3169
3170 fi
3171 fi
3172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3173 if test -n "$ac_ct_CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3175 $as_echo "$ac_ct_CC" >&6; }
3176 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179 fi
3180
3181 if test "x$ac_ct_CC" = x; then
3182 CC=""
3183 else
3184 case $cross_compiling:$ac_tool_warned in
3185 yes:)
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3188 ac_tool_warned=yes ;;
3189 esac
3190 CC=$ac_ct_CC
3191 fi
3192 else
3193 CC="$ac_cv_prog_CC"
3194 fi
3195
3196 if test -z "$CC"; then
3197 if test -n "$ac_tool_prefix"; then
3198 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3199 set dummy ${ac_tool_prefix}cc; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_CC+:} false; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$CC"; then
3206 ac_cv_prog_CC="$CC" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3210 do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_CC="${ac_tool_prefix}cc"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3218 fi
3219 done
3220 done
3221 IFS=$as_save_IFS
3222
3223 fi
3224 fi
3225 CC=$ac_cv_prog_CC
3226 if test -n "$CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3228 $as_echo "$CC" >&6; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 fi
3233
3234
3235 fi
3236 fi
3237 if test -z "$CC"; then
3238 # Extract the first word of "cc", so it can be a program name with args.
3239 set dummy cc; ac_word=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if ${ac_cv_prog_CC+:} false; then :
3243 $as_echo_n "(cached) " >&6
3244 else
3245 if test -n "$CC"; then
3246 ac_cv_prog_CC="$CC" # Let the user override the test.
3247 else
3248 ac_prog_rejected=no
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3257 ac_prog_rejected=yes
3258 continue
3259 fi
3260 ac_cv_prog_CC="cc"
3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3263 fi
3264 done
3265 done
3266 IFS=$as_save_IFS
3267
3268 if test $ac_prog_rejected = yes; then
3269 # We found a bogon in the path, so make sure we never use it.
3270 set dummy $ac_cv_prog_CC
3271 shift
3272 if test $# != 0; then
3273 # We chose a different compiler from the bogus one.
3274 # However, it has the same basename, so the bogon will be chosen
3275 # first if we set CC to just the basename; use the full file name.
3276 shift
3277 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3278 fi
3279 fi
3280 fi
3281 fi
3282 CC=$ac_cv_prog_CC
3283 if test -n "$CC"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3285 $as_echo "$CC" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291
3292 fi
3293 if test -z "$CC"; then
3294 if test -n "$ac_tool_prefix"; then
3295 for ac_prog in cl.exe
3296 do
3297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_CC+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 if test -n "$CC"; then
3305 ac_cv_prog_CC="$CC" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318 done
3319 done
3320 IFS=$as_save_IFS
3321
3322 fi
3323 fi
3324 CC=$ac_cv_prog_CC
3325 if test -n "$CC"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3327 $as_echo "$CC" >&6; }
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 fi
3332
3333
3334 test -n "$CC" && break
3335 done
3336 fi
3337 if test -z "$CC"; then
3338 ac_ct_CC=$CC
3339 for ac_prog in cl.exe
3340 do
3341 # Extract the first word of "$ac_prog", so it can be a program name with args.
3342 set dummy $ac_prog; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3346 $as_echo_n "(cached) " >&6
3347 else
3348 if test -n "$ac_ct_CC"; then
3349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358 ac_cv_prog_ac_ct_CC="$ac_prog"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3361 fi
3362 done
3363 done
3364 IFS=$as_save_IFS
3365
3366 fi
3367 fi
3368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3369 if test -n "$ac_ct_CC"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3371 $as_echo "$ac_ct_CC" >&6; }
3372 else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 fi
3376
3377
3378 test -n "$ac_ct_CC" && break
3379 done
3380
3381 if test "x$ac_ct_CC" = x; then
3382 CC=""
3383 else
3384 case $cross_compiling:$ac_tool_warned in
3385 yes:)
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3388 ac_tool_warned=yes ;;
3389 esac
3390 CC=$ac_ct_CC
3391 fi
3392 fi
3393
3394 fi
3395
3396
3397 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error $? "no acceptable C compiler found in \$PATH
3400 See \`config.log' for more details" "$LINENO" 5; }
3401
3402 # Provide some information about the compiler.
3403 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3404 set X $ac_compile
3405 ac_compiler=$2
3406 for ac_option in --version -v -V -qversion; do
3407 { { ac_try="$ac_compiler $ac_option >&5"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3415 ac_status=$?
3416 if test -s conftest.err; then
3417 sed '10a\
3418 ... rest of stderr output deleted ...
3419 10q' conftest.err >conftest.er1
3420 cat conftest.er1 >&5
3421 fi
3422 rm -f conftest.er1 conftest.err
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }
3425 done
3426
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3429
3430 int
3431 main ()
3432 {
3433
3434 ;
3435 return 0;
3436 }
3437 _ACEOF
3438 ac_clean_files_save=$ac_clean_files
3439 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3440 # Try to create an executable without -o first, disregard a.out.
3441 # It will help us diagnose broken compilers, and finding out an intuition
3442 # of exeext.
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3444 $as_echo_n "checking whether the C compiler works... " >&6; }
3445 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3446
3447 # The possible output files:
3448 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3449
3450 ac_rmfiles=
3451 for ac_file in $ac_files
3452 do
3453 case $ac_file in
3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3455 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3456 esac
3457 done
3458 rm -f $ac_rmfiles
3459
3460 if { { ac_try="$ac_link_default"
3461 case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_link_default") 2>&5
3468 ac_status=$?
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }; then :
3471 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3472 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3473 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3474 # so that the user can short-circuit this test for compilers unknown to
3475 # Autoconf.
3476 for ac_file in $ac_files ''
3477 do
3478 test -f "$ac_file" || continue
3479 case $ac_file in
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3481 ;;
3482 [ab].out )
3483 # We found the default executable, but exeext='' is most
3484 # certainly right.
3485 break;;
3486 *.* )
3487 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3488 then :; else
3489 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3490 fi
3491 # We set ac_cv_exeext here because the later test for it is not
3492 # safe: cross compilers may not add the suffix if given an `-o'
3493 # argument, so we may need to know it at that point already.
3494 # Even if this section looks crufty: it has the advantage of
3495 # actually working.
3496 break;;
3497 * )
3498 break;;
3499 esac
3500 done
3501 test "$ac_cv_exeext" = no && ac_cv_exeext=
3502
3503 else
3504 ac_file=''
3505 fi
3506 if test -z "$ac_file"; then :
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3509 $as_echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 as_fn_error 77 "C compiler cannot create executables
3515 See \`config.log' for more details" "$LINENO" 5; }
3516 else
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3518 $as_echo "yes" >&6; }
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3521 $as_echo_n "checking for C compiler default output file name... " >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3523 $as_echo "$ac_file" >&6; }
3524 ac_exeext=$ac_cv_exeext
3525
3526 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3527 ac_clean_files=$ac_clean_files_save
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3529 $as_echo_n "checking for suffix of executables... " >&6; }
3530 if { { ac_try="$ac_link"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536 $as_echo "$ac_try_echo"; } >&5
3537 (eval "$ac_link") 2>&5
3538 ac_status=$?
3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540 test $ac_status = 0; }; then :
3541 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3542 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3543 # work properly (i.e., refer to `conftest.exe'), while it won't with
3544 # `rm'.
3545 for ac_file in conftest.exe conftest conftest.*; do
3546 test -f "$ac_file" || continue
3547 case $ac_file in
3548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3549 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3550 break;;
3551 * ) break;;
3552 esac
3553 done
3554 else
3555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3558 See \`config.log' for more details" "$LINENO" 5; }
3559 fi
3560 rm -f conftest conftest$ac_cv_exeext
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3562 $as_echo "$ac_cv_exeext" >&6; }
3563
3564 rm -f conftest.$ac_ext
3565 EXEEXT=$ac_cv_exeext
3566 ac_exeext=$EXEEXT
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569 #include <stdio.h>
3570 int
3571 main ()
3572 {
3573 FILE *f = fopen ("conftest.out", "w");
3574 return ferror (f) || fclose (f) != 0;
3575
3576 ;
3577 return 0;
3578 }
3579 _ACEOF
3580 ac_clean_files="$ac_clean_files conftest.out"
3581 # Check that the compiler produces executables we can run. If not, either
3582 # the compiler is broken, or we cross compile.
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3584 $as_echo_n "checking whether we are cross compiling... " >&6; }
3585 if test "$cross_compiling" != yes; then
3586 { { ac_try="$ac_link"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_link") 2>&5
3594 ac_status=$?
3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 test $ac_status = 0; }
3597 if { ac_try='./conftest$ac_cv_exeext'
3598 { { case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_try") 2>&5
3605 ac_status=$?
3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }; }; then
3608 cross_compiling=no
3609 else
3610 if test "$cross_compiling" = maybe; then
3611 cross_compiling=yes
3612 else
3613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615 as_fn_error $? "cannot run C compiled programs.
3616 If you meant to cross compile, use \`--host'.
3617 See \`config.log' for more details" "$LINENO" 5; }
3618 fi
3619 fi
3620 fi
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3622 $as_echo "$cross_compiling" >&6; }
3623
3624 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3625 ac_clean_files=$ac_clean_files_save
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3627 $as_echo_n "checking for suffix of object files... " >&6; }
3628 if ${ac_cv_objext+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633
3634 int
3635 main ()
3636 {
3637
3638 ;
3639 return 0;
3640 }
3641 _ACEOF
3642 rm -f conftest.o conftest.obj
3643 if { { ac_try="$ac_compile"
3644 case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3647 esac
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 $as_echo "$ac_try_echo"; } >&5
3650 (eval "$ac_compile") 2>&5
3651 ac_status=$?
3652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653 test $ac_status = 0; }; then :
3654 for ac_file in conftest.o conftest.obj conftest.*; do
3655 test -f "$ac_file" || continue;
3656 case $ac_file in
3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3658 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3659 break;;
3660 esac
3661 done
3662 else
3663 $as_echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3665
3666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error $? "cannot compute suffix of object files: cannot compile
3669 See \`config.log' for more details" "$LINENO" 5; }
3670 fi
3671 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3674 $as_echo "$ac_cv_objext" >&6; }
3675 OBJEXT=$ac_cv_objext
3676 ac_objext=$OBJEXT
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3678 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3679 if ${ac_cv_c_compiler_gnu+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684
3685 int
3686 main ()
3687 {
3688 #ifndef __GNUC__
3689 choke me
3690 #endif
3691
3692 ;
3693 return 0;
3694 }
3695 _ACEOF
3696 if ac_fn_c_try_compile "$LINENO"; then :
3697 ac_compiler_gnu=yes
3698 else
3699 ac_compiler_gnu=no
3700 fi
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3703
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3706 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3707 if test $ac_compiler_gnu = yes; then
3708 GCC=yes
3709 else
3710 GCC=
3711 fi
3712 ac_test_CFLAGS=${CFLAGS+set}
3713 ac_save_CFLAGS=$CFLAGS
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3715 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3716 if ${ac_cv_prog_cc_g+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 ac_save_c_werror_flag=$ac_c_werror_flag
3720 ac_c_werror_flag=yes
3721 ac_cv_prog_cc_g=no
3722 CFLAGS="-g"
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725
3726 int
3727 main ()
3728 {
3729
3730 ;
3731 return 0;
3732 }
3733 _ACEOF
3734 if ac_fn_c_try_compile "$LINENO"; then :
3735 ac_cv_prog_cc_g=yes
3736 else
3737 CFLAGS=""
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740
3741 int
3742 main ()
3743 {
3744
3745 ;
3746 return 0;
3747 }
3748 _ACEOF
3749 if ac_fn_c_try_compile "$LINENO"; then :
3750
3751 else
3752 ac_c_werror_flag=$ac_save_c_werror_flag
3753 CFLAGS="-g"
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756
3757 int
3758 main ()
3759 {
3760
3761 ;
3762 return 0;
3763 }
3764 _ACEOF
3765 if ac_fn_c_try_compile "$LINENO"; then :
3766 ac_cv_prog_cc_g=yes
3767 fi
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 fi
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 fi
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 ac_c_werror_flag=$ac_save_c_werror_flag
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3776 $as_echo "$ac_cv_prog_cc_g" >&6; }
3777 if test "$ac_test_CFLAGS" = set; then
3778 CFLAGS=$ac_save_CFLAGS
3779 elif test $ac_cv_prog_cc_g = yes; then
3780 if test "$GCC" = yes; then
3781 CFLAGS="-g -O2"
3782 else
3783 CFLAGS="-g"
3784 fi
3785 else
3786 if test "$GCC" = yes; then
3787 CFLAGS="-O2"
3788 else
3789 CFLAGS=
3790 fi
3791 fi
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3793 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3794 if ${ac_cv_prog_cc_c89+:} false; then :
3795 $as_echo_n "(cached) " >&6
3796 else
3797 ac_cv_prog_cc_c89=no
3798 ac_save_CC=$CC
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801 #include <stdarg.h>
3802 #include <stdio.h>
3803 struct stat;
3804 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3805 struct buf { int x; };
3806 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3807 static char *e (p, i)
3808 char **p;
3809 int i;
3810 {
3811 return p[i];
3812 }
3813 static char *f (char * (*g) (char **, int), char **p, ...)
3814 {
3815 char *s;
3816 va_list v;
3817 va_start (v,p);
3818 s = g (p, va_arg (v,int));
3819 va_end (v);
3820 return s;
3821 }
3822
3823 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3824 function prototypes and stuff, but not '\xHH' hex character constants.
3825 These don't provoke an error unfortunately, instead are silently treated
3826 as 'x'. The following induces an error, until -std is added to get
3827 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3828 array size at least. It's necessary to write '\x00'==0 to get something
3829 that's true only with -std. */
3830 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3831
3832 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3833 inside strings and character constants. */
3834 #define FOO(x) 'x'
3835 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3836
3837 int test (int i, double x);
3838 struct s1 {int (*f) (int a);};
3839 struct s2 {int (*f) (double a);};
3840 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3841 int argc;
3842 char **argv;
3843 int
3844 main ()
3845 {
3846 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3852 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3853 do
3854 CC="$ac_save_CC $ac_arg"
3855 if ac_fn_c_try_compile "$LINENO"; then :
3856 ac_cv_prog_cc_c89=$ac_arg
3857 fi
3858 rm -f core conftest.err conftest.$ac_objext
3859 test "x$ac_cv_prog_cc_c89" != "xno" && break
3860 done
3861 rm -f conftest.$ac_ext
3862 CC=$ac_save_CC
3863
3864 fi
3865 # AC_CACHE_VAL
3866 case "x$ac_cv_prog_cc_c89" in
3867 x)
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3869 $as_echo "none needed" >&6; } ;;
3870 xno)
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3872 $as_echo "unsupported" >&6; } ;;
3873 *)
3874 CC="$CC $ac_cv_prog_cc_c89"
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3876 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3877 esac
3878 if test "x$ac_cv_prog_cc_c89" != xno; then :
3879
3880 fi
3881
3882 ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887
3888 ac_ext=c
3889 ac_cpp='$CPP $CPPFLAGS'
3890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3894 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3895 if ${am_cv_prog_cc_c_o+:} false; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3900
3901 int
3902 main ()
3903 {
3904
3905 ;
3906 return 0;
3907 }
3908 _ACEOF
3909 # Make sure it works both with $CC and with simple cc.
3910 # Following AC_PROG_CC_C_O, we do the test twice because some
3911 # compilers refuse to overwrite an existing .o file with -o,
3912 # though they will create one.
3913 am_cv_prog_cc_c_o=yes
3914 for am_i in 1 2; do
3915 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3916 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } \
3920 && test -f conftest2.$ac_objext; then
3921 : OK
3922 else
3923 am_cv_prog_cc_c_o=no
3924 break
3925 fi
3926 done
3927 rm -f core conftest*
3928 unset am_i
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3931 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3932 if test "$am_cv_prog_cc_c_o" != yes; then
3933 # Losing compiler, so override with the script.
3934 # FIXME: It is wrong to rewrite CC.
3935 # But if we don't then we get into trouble of one sort or another.
3936 # A longer-term fix would be to have automake use am__CC in this case,
3937 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3938 CC="$am_aux_dir/compile $CC"
3939 fi
3940 ac_ext=c
3941 ac_cpp='$CPP $CPPFLAGS'
3942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3945
3946
3947 depcc="$CC" am_compiler_list=
3948
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3950 $as_echo_n "checking dependency style of $depcc... " >&6; }
3951 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3955 # We make a subdir and do the tests there. Otherwise we can end up
3956 # making bogus files that we don't know about and never remove. For
3957 # instance it was reported that on HP-UX the gcc test will end up
3958 # making a dummy file named 'D' -- because '-MD' means "put the output
3959 # in D".
3960 rm -rf conftest.dir
3961 mkdir conftest.dir
3962 # Copy depcomp to subdir because otherwise we won't find it if we're
3963 # using a relative directory.
3964 cp "$am_depcomp" conftest.dir
3965 cd conftest.dir
3966 # We will build objects and dependencies in a subdirectory because
3967 # it helps to detect inapplicable dependency modes. For instance
3968 # both Tru64's cc and ICC support -MD to output dependencies as a
3969 # side effect of compilation, but ICC will put the dependencies in
3970 # the current directory while Tru64 will put them in the object
3971 # directory.
3972 mkdir sub
3973
3974 am_cv_CC_dependencies_compiler_type=none
3975 if test "$am_compiler_list" = ""; then
3976 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3977 fi
3978 am__universal=false
3979 case " $depcc " in #(
3980 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3981 esac
3982
3983 for depmode in $am_compiler_list; do
3984 # Setup a source with many dependencies, because some compilers
3985 # like to wrap large dependency lists on column 80 (with \), and
3986 # we should not choose a depcomp mode which is confused by this.
3987 #
3988 # We need to recreate these files for each test, as the compiler may
3989 # overwrite some of them when testing with obscure command lines.
3990 # This happens at least with the AIX C compiler.
3991 : > sub/conftest.c
3992 for i in 1 2 3 4 5 6; do
3993 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3994 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3995 # Solaris 10 /bin/sh.
3996 echo '/* dummy */' > sub/conftst$i.h
3997 done
3998 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3999
4000 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4001 # mode. It turns out that the SunPro C++ compiler does not properly
4002 # handle '-M -o', and we need to detect this. Also, some Intel
4003 # versions had trouble with output in subdirs.
4004 am__obj=sub/conftest.${OBJEXT-o}
4005 am__minus_obj="-o $am__obj"
4006 case $depmode in
4007 gcc)
4008 # This depmode causes a compiler race in universal mode.
4009 test "$am__universal" = false || continue
4010 ;;
4011 nosideeffect)
4012 # After this tag, mechanisms are not by side-effect, so they'll
4013 # only be used when explicitly requested.
4014 if test "x$enable_dependency_tracking" = xyes; then
4015 continue
4016 else
4017 break
4018 fi
4019 ;;
4020 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4021 # This compiler won't grok '-c -o', but also, the minuso test has
4022 # not run yet. These depmodes are late enough in the game, and
4023 # so weak that their functioning should not be impacted.
4024 am__obj=conftest.${OBJEXT-o}
4025 am__minus_obj=
4026 ;;
4027 none) break ;;
4028 esac
4029 if depmode=$depmode \
4030 source=sub/conftest.c object=$am__obj \
4031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4032 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4033 >/dev/null 2>conftest.err &&
4034 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4036 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4038 # icc doesn't choke on unknown options, it will just issue warnings
4039 # or remarks (even with -Werror). So we grep stderr for any message
4040 # that says an option was ignored or not supported.
4041 # When given -MP, icc 7.0 and 7.1 complain thusly:
4042 # icc: Command line warning: ignoring option '-M'; no argument required
4043 # The diagnosis changed in icc 8.0:
4044 # icc: Command line remark: option '-MP' not supported
4045 if (grep 'ignoring option' conftest.err ||
4046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4047 am_cv_CC_dependencies_compiler_type=$depmode
4048 break
4049 fi
4050 fi
4051 done
4052
4053 cd ..
4054 rm -rf conftest.dir
4055 else
4056 am_cv_CC_dependencies_compiler_type=none
4057 fi
4058
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4061 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4062 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4063
4064 if
4065 test "x$enable_dependency_tracking" != xno \
4066 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4067 am__fastdepCC_TRUE=
4068 am__fastdepCC_FALSE='#'
4069 else
4070 am__fastdepCC_TRUE='#'
4071 am__fastdepCC_FALSE=
4072 fi
4073
4074
4075
4076 ac_ext=c
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4082 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4083 # On Suns, sometimes $CPP names a directory.
4084 if test -n "$CPP" && test -d "$CPP"; then
4085 CPP=
4086 fi
4087 if test -z "$CPP"; then
4088 if ${ac_cv_prog_CPP+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 # Double quotes because CPP needs to be expanded
4092 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4093 do
4094 ac_preproc_ok=false
4095 for ac_c_preproc_warn_flag in '' yes
4096 do
4097 # Use a header file that comes with gcc, so configuring glibc
4098 # with a fresh cross-compiler works.
4099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100 # <limits.h> exists even on freestanding compilers.
4101 # On the NeXT, cc -E runs the code through the compiler's parser,
4102 # not just through cpp. "Syntax error" is here to catch this case.
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105 #ifdef __STDC__
4106 # include <limits.h>
4107 #else
4108 # include <assert.h>
4109 #endif
4110 Syntax error
4111 _ACEOF
4112 if ac_fn_c_try_cpp "$LINENO"; then :
4113
4114 else
4115 # Broken: fails on valid input.
4116 continue
4117 fi
4118 rm -f conftest.err conftest.i conftest.$ac_ext
4119
4120 # OK, works on sane cases. Now check whether nonexistent headers
4121 # can be detected and how.
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #include <ac_nonexistent.h>
4125 _ACEOF
4126 if ac_fn_c_try_cpp "$LINENO"; then :
4127 # Broken: success on invalid input.
4128 continue
4129 else
4130 # Passes both tests.
4131 ac_preproc_ok=:
4132 break
4133 fi
4134 rm -f conftest.err conftest.i conftest.$ac_ext
4135
4136 done
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.i conftest.err conftest.$ac_ext
4139 if $ac_preproc_ok; then :
4140 break
4141 fi
4142
4143 done
4144 ac_cv_prog_CPP=$CPP
4145
4146 fi
4147 CPP=$ac_cv_prog_CPP
4148 else
4149 ac_cv_prog_CPP=$CPP
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4152 $as_echo "$CPP" >&6; }
4153 ac_preproc_ok=false
4154 for ac_c_preproc_warn_flag in '' yes
4155 do
4156 # Use a header file that comes with gcc, so configuring glibc
4157 # with a fresh cross-compiler works.
4158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4159 # <limits.h> exists even on freestanding compilers.
4160 # On the NeXT, cc -E runs the code through the compiler's parser,
4161 # not just through cpp. "Syntax error" is here to catch this case.
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164 #ifdef __STDC__
4165 # include <limits.h>
4166 #else
4167 # include <assert.h>
4168 #endif
4169 Syntax error
4170 _ACEOF
4171 if ac_fn_c_try_cpp "$LINENO"; then :
4172
4173 else
4174 # Broken: fails on valid input.
4175 continue
4176 fi
4177 rm -f conftest.err conftest.i conftest.$ac_ext
4178
4179 # OK, works on sane cases. Now check whether nonexistent headers
4180 # can be detected and how.
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183 #include <ac_nonexistent.h>
4184 _ACEOF
4185 if ac_fn_c_try_cpp "$LINENO"; then :
4186 # Broken: success on invalid input.
4187 continue
4188 else
4189 # Passes both tests.
4190 ac_preproc_ok=:
4191 break
4192 fi
4193 rm -f conftest.err conftest.i conftest.$ac_ext
4194
4195 done
4196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4197 rm -f conftest.i conftest.err conftest.$ac_ext
4198 if $ac_preproc_ok; then :
4199
4200 else
4201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4203 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4204 See \`config.log' for more details" "$LINENO" 5; }
4205 fi
4206
4207 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4215 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4216 if ${ac_cv_path_GREP+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 if test -z "$GREP"; then
4220 ac_path_GREP_found=false
4221 # Loop through the user's path and test for each of PROGNAME-LIST
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4224 do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_prog in grep ggrep; do
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4230 as_fn_executable_p "$ac_path_GREP" || continue
4231 # Check for GNU ac_path_GREP and select it if it is found.
4232 # Check for GNU $ac_path_GREP
4233 case `"$ac_path_GREP" --version 2>&1` in
4234 *GNU*)
4235 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4236 *)
4237 ac_count=0
4238 $as_echo_n 0123456789 >"conftest.in"
4239 while :
4240 do
4241 cat "conftest.in" "conftest.in" >"conftest.tmp"
4242 mv "conftest.tmp" "conftest.in"
4243 cp "conftest.in" "conftest.nl"
4244 $as_echo 'GREP' >> "conftest.nl"
4245 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4246 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4247 as_fn_arith $ac_count + 1 && ac_count=$as_val
4248 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4249 # Best one so far, save it but keep looking for a better one
4250 ac_cv_path_GREP="$ac_path_GREP"
4251 ac_path_GREP_max=$ac_count
4252 fi
4253 # 10*(2^10) chars as input seems more than enough
4254 test $ac_count -gt 10 && break
4255 done
4256 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4257 esac
4258
4259 $ac_path_GREP_found && break 3
4260 done
4261 done
4262 done
4263 IFS=$as_save_IFS
4264 if test -z "$ac_cv_path_GREP"; then
4265 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4266 fi
4267 else
4268 ac_cv_path_GREP=$GREP
4269 fi
4270
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4273 $as_echo "$ac_cv_path_GREP" >&6; }
4274 GREP="$ac_cv_path_GREP"
4275
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4278 $as_echo_n "checking for egrep... " >&6; }
4279 if ${ac_cv_path_EGREP+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4283 then ac_cv_path_EGREP="$GREP -E"
4284 else
4285 if test -z "$EGREP"; then
4286 ac_path_EGREP_found=false
4287 # Loop through the user's path and test for each of PROGNAME-LIST
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4290 do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_prog in egrep; do
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4296 as_fn_executable_p "$ac_path_EGREP" || continue
4297 # Check for GNU ac_path_EGREP and select it if it is found.
4298 # Check for GNU $ac_path_EGREP
4299 case `"$ac_path_EGREP" --version 2>&1` in
4300 *GNU*)
4301 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4302 *)
4303 ac_count=0
4304 $as_echo_n 0123456789 >"conftest.in"
4305 while :
4306 do
4307 cat "conftest.in" "conftest.in" >"conftest.tmp"
4308 mv "conftest.tmp" "conftest.in"
4309 cp "conftest.in" "conftest.nl"
4310 $as_echo 'EGREP' >> "conftest.nl"
4311 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4313 as_fn_arith $ac_count + 1 && ac_count=$as_val
4314 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4315 # Best one so far, save it but keep looking for a better one
4316 ac_cv_path_EGREP="$ac_path_EGREP"
4317 ac_path_EGREP_max=$ac_count
4318 fi
4319 # 10*(2^10) chars as input seems more than enough
4320 test $ac_count -gt 10 && break
4321 done
4322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4323 esac
4324
4325 $ac_path_EGREP_found && break 3
4326 done
4327 done
4328 done
4329 IFS=$as_save_IFS
4330 if test -z "$ac_cv_path_EGREP"; then
4331 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4332 fi
4333 else
4334 ac_cv_path_EGREP=$EGREP
4335 fi
4336
4337 fi
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4340 $as_echo "$ac_cv_path_EGREP" >&6; }
4341 EGREP="$ac_cv_path_EGREP"
4342
4343
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4345 $as_echo_n "checking for ANSI C header files... " >&6; }
4346 if ${ac_cv_header_stdc+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351 #include <stdlib.h>
4352 #include <stdarg.h>
4353 #include <string.h>
4354 #include <float.h>
4355
4356 int
4357 main ()
4358 {
4359
4360 ;
4361 return 0;
4362 }
4363 _ACEOF
4364 if ac_fn_c_try_compile "$LINENO"; then :
4365 ac_cv_header_stdc=yes
4366 else
4367 ac_cv_header_stdc=no
4368 fi
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370
4371 if test $ac_cv_header_stdc = yes; then
4372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 #include <string.h>
4376
4377 _ACEOF
4378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4379 $EGREP "memchr" >/dev/null 2>&1; then :
4380
4381 else
4382 ac_cv_header_stdc=no
4383 fi
4384 rm -f conftest*
4385
4386 fi
4387
4388 if test $ac_cv_header_stdc = yes; then
4389 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392 #include <stdlib.h>
4393
4394 _ACEOF
4395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4396 $EGREP "free" >/dev/null 2>&1; then :
4397
4398 else
4399 ac_cv_header_stdc=no
4400 fi
4401 rm -f conftest*
4402
4403 fi
4404
4405 if test $ac_cv_header_stdc = yes; then
4406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4407 if test "$cross_compiling" = yes; then :
4408 :
4409 else
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4412 #include <ctype.h>
4413 #include <stdlib.h>
4414 #if ((' ' & 0x0FF) == 0x020)
4415 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4416 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4417 #else
4418 # define ISLOWER(c) \
4419 (('a' <= (c) && (c) <= 'i') \
4420 || ('j' <= (c) && (c) <= 'r') \
4421 || ('s' <= (c) && (c) <= 'z'))
4422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4423 #endif
4424
4425 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4426 int
4427 main ()
4428 {
4429 int i;
4430 for (i = 0; i < 256; i++)
4431 if (XOR (islower (i), ISLOWER (i))
4432 || toupper (i) != TOUPPER (i))
4433 return 2;
4434 return 0;
4435 }
4436 _ACEOF
4437 if ac_fn_c_try_run "$LINENO"; then :
4438
4439 else
4440 ac_cv_header_stdc=no
4441 fi
4442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4443 conftest.$ac_objext conftest.beam conftest.$ac_ext
4444 fi
4445
4446 fi
4447 fi
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4449 $as_echo "$ac_cv_header_stdc" >&6; }
4450 if test $ac_cv_header_stdc = yes; then
4451
4452 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4453
4454 fi
4455
4456 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4457 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4458 inttypes.h stdint.h unistd.h
4459 do :
4460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4461 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4462 "
4463 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4464 cat >>confdefs.h <<_ACEOF
4465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4466 _ACEOF
4467
4468 fi
4469
4470 done
4471
4472
4473
4474 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4475 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4476 MINIX=yes
4477 else
4478 MINIX=
4479 fi
4480
4481
4482 if test "$MINIX" = yes; then
4483
4484 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4485
4486
4487 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4488
4489
4490 $as_echo "#define _MINIX 1" >>confdefs.h
4491
4492 fi
4493
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4496 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4497 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4502
4503 # define __EXTENSIONS__ 1
4504 $ac_includes_default
4505 int
4506 main ()
4507 {
4508
4509 ;
4510 return 0;
4511 }
4512 _ACEOF
4513 if ac_fn_c_try_compile "$LINENO"; then :
4514 ac_cv_safe_to_define___extensions__=yes
4515 else
4516 ac_cv_safe_to_define___extensions__=no
4517 fi
4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4521 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4522 test $ac_cv_safe_to_define___extensions__ = yes &&
4523 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4524
4525 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4526
4527 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4528
4529 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4530
4531 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4532
4533
4534
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4537 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4538 if ${ac_cv_prog_cc_c99+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 ac_cv_prog_cc_c99=no
4542 ac_save_CC=$CC
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545 #include <stdarg.h>
4546 #include <stdbool.h>
4547 #include <stdlib.h>
4548 #include <wchar.h>
4549 #include <stdio.h>
4550
4551 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4552 #define debug(...) fprintf (stderr, __VA_ARGS__)
4553 #define showlist(...) puts (#__VA_ARGS__)
4554 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4555 static void
4556 test_varargs_macros (void)
4557 {
4558 int x = 1234;
4559 int y = 5678;
4560 debug ("Flag");
4561 debug ("X = %d\n", x);
4562 showlist (The first, second, and third items.);
4563 report (x>y, "x is %d but y is %d", x, y);
4564 }
4565
4566 // Check long long types.
4567 #define BIG64 18446744073709551615ull
4568 #define BIG32 4294967295ul
4569 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4570 #if !BIG_OK
4571 your preprocessor is broken;
4572 #endif
4573 #if BIG_OK
4574 #else
4575 your preprocessor is broken;
4576 #endif
4577 static long long int bignum = -9223372036854775807LL;
4578 static unsigned long long int ubignum = BIG64;
4579
4580 struct incomplete_array
4581 {
4582 int datasize;
4583 double data[];
4584 };
4585
4586 struct named_init {
4587 int number;
4588 const wchar_t *name;
4589 double average;
4590 };
4591
4592 typedef const char *ccp;
4593
4594 static inline int
4595 test_restrict (ccp restrict text)
4596 {
4597 // See if C++-style comments work.
4598 // Iterate through items via the restricted pointer.
4599 // Also check for declarations in for loops.
4600 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4601 continue;
4602 return 0;
4603 }
4604
4605 // Check varargs and va_copy.
4606 static void
4607 test_varargs (const char *format, ...)
4608 {
4609 va_list args;
4610 va_start (args, format);
4611 va_list args_copy;
4612 va_copy (args_copy, args);
4613
4614 const char *str;
4615 int number;
4616 float fnumber;
4617
4618 while (*format)
4619 {
4620 switch (*format++)
4621 {
4622 case 's': // string
4623 str = va_arg (args_copy, const char *);
4624 break;
4625 case 'd': // int
4626 number = va_arg (args_copy, int);
4627 break;
4628 case 'f': // float
4629 fnumber = va_arg (args_copy, double);
4630 break;
4631 default:
4632 break;
4633 }
4634 }
4635 va_end (args_copy);
4636 va_end (args);
4637 }
4638
4639 int
4640 main ()
4641 {
4642
4643 // Check bool.
4644 _Bool success = false;
4645
4646 // Check restrict.
4647 if (test_restrict ("String literal") == 0)
4648 success = true;
4649 char *restrict newvar = "Another string";
4650
4651 // Check varargs.
4652 test_varargs ("s, d' f .", "string", 65, 34.234);
4653 test_varargs_macros ();
4654
4655 // Check flexible array members.
4656 struct incomplete_array *ia =
4657 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4658 ia->datasize = 10;
4659 for (int i = 0; i < ia->datasize; ++i)
4660 ia->data[i] = i * 1.234;
4661
4662 // Check named initializers.
4663 struct named_init ni = {
4664 .number = 34,
4665 .name = L"Test wide string",
4666 .average = 543.34343,
4667 };
4668
4669 ni.number = 58;
4670
4671 int dynamic_array[ni.number];
4672 dynamic_array[ni.number - 1] = 543;
4673
4674 // work around unused variable warnings
4675 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4676 || dynamic_array[ni.number - 1] != 543);
4677
4678 ;
4679 return 0;
4680 }
4681 _ACEOF
4682 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4683 do
4684 CC="$ac_save_CC $ac_arg"
4685 if ac_fn_c_try_compile "$LINENO"; then :
4686 ac_cv_prog_cc_c99=$ac_arg
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext
4689 test "x$ac_cv_prog_cc_c99" != "xno" && break
4690 done
4691 rm -f conftest.$ac_ext
4692 CC=$ac_save_CC
4693
4694 fi
4695 # AC_CACHE_VAL
4696 case "x$ac_cv_prog_cc_c99" in
4697 x)
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4699 $as_echo "none needed" >&6; } ;;
4700 xno)
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4702 $as_echo "unsupported" >&6; } ;;
4703 *)
4704 CC="$CC $ac_cv_prog_cc_c99"
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4706 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4707 esac
4708 if test "x$ac_cv_prog_cc_c99" != xno; then :
4709
4710 fi
4711
4712
4713
4714 if test x"$ac_cv_prog_cc_c99" = "xno"; then
4715 as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
4716 fi
4717
4718
4719
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4721 $as_echo_n "checking for egrep... " >&6; }
4722 if ${ac_cv_path_EGREP+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4726 then ac_cv_path_EGREP="$GREP -E"
4727 else
4728 if test -z "$EGREP"; then
4729 ac_path_EGREP_found=false
4730 # Loop through the user's path and test for each of PROGNAME-LIST
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4733 do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_prog in egrep; do
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4739 as_fn_executable_p "$ac_path_EGREP" || continue
4740 # Check for GNU ac_path_EGREP and select it if it is found.
4741 # Check for GNU $ac_path_EGREP
4742 case `"$ac_path_EGREP" --version 2>&1` in
4743 *GNU*)
4744 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4745 *)
4746 ac_count=0
4747 $as_echo_n 0123456789 >"conftest.in"
4748 while :
4749 do
4750 cat "conftest.in" "conftest.in" >"conftest.tmp"
4751 mv "conftest.tmp" "conftest.in"
4752 cp "conftest.in" "conftest.nl"
4753 $as_echo 'EGREP' >> "conftest.nl"
4754 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4756 as_fn_arith $ac_count + 1 && ac_count=$as_val
4757 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4758 # Best one so far, save it but keep looking for a better one
4759 ac_cv_path_EGREP="$ac_path_EGREP"
4760 ac_path_EGREP_max=$ac_count
4761 fi
4762 # 10*(2^10) chars as input seems more than enough
4763 test $ac_count -gt 10 && break
4764 done
4765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4766 esac
4767
4768 $ac_path_EGREP_found && break 3
4769 done
4770 done
4771 done
4772 IFS=$as_save_IFS
4773 if test -z "$ac_cv_path_EGREP"; then
4774 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4775 fi
4776 else
4777 ac_cv_path_EGREP=$EGREP
4778 fi
4779
4780 fi
4781 fi
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4783 $as_echo "$ac_cv_path_EGREP" >&6; }
4784 EGREP="$ac_cv_path_EGREP"
4785
4786
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4788 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4789 if ${ac_cv_path_SED+:} false; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4793 for ac_i in 1 2 3 4 5 6 7; do
4794 ac_script="$ac_script$as_nl$ac_script"
4795 done
4796 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4797 { ac_script=; unset ac_script;}
4798 if test -z "$SED"; then
4799 ac_path_SED_found=false
4800 # Loop through the user's path and test for each of PROGNAME-LIST
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_prog in sed gsed; do
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4809 as_fn_executable_p "$ac_path_SED" || continue
4810 # Check for GNU ac_path_SED and select it if it is found.
4811 # Check for GNU $ac_path_SED
4812 case `"$ac_path_SED" --version 2>&1` in
4813 *GNU*)
4814 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4815 *)
4816 ac_count=0
4817 $as_echo_n 0123456789 >"conftest.in"
4818 while :
4819 do
4820 cat "conftest.in" "conftest.in" >"conftest.tmp"
4821 mv "conftest.tmp" "conftest.in"
4822 cp "conftest.in" "conftest.nl"
4823 $as_echo '' >> "conftest.nl"
4824 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4826 as_fn_arith $ac_count + 1 && ac_count=$as_val
4827 if test $ac_count -gt ${ac_path_SED_max-0}; then
4828 # Best one so far, save it but keep looking for a better one
4829 ac_cv_path_SED="$ac_path_SED"
4830 ac_path_SED_max=$ac_count
4831 fi
4832 # 10*(2^10) chars as input seems more than enough
4833 test $ac_count -gt 10 && break
4834 done
4835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4836 esac
4837
4838 $ac_path_SED_found && break 3
4839 done
4840 done
4841 done
4842 IFS=$as_save_IFS
4843 if test -z "$ac_cv_path_SED"; then
4844 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4845 fi
4846 else
4847 ac_cv_path_SED=$SED
4848 fi
4849
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4852 $as_echo "$ac_cv_path_SED" >&6; }
4853 SED="$ac_cv_path_SED"
4854 rm -f conftest.sed
4855
4856
4857 F77=no
4858 CXX=no
4859 GCJ=no
4860
4861 # Check whether --enable-static was given.
4862 if test "${enable_static+set}" = set; then :
4863 enableval=$enable_static; p=${PACKAGE-default}
4864 case $enableval in
4865 yes) enable_static=yes ;;
4866 no) enable_static=no ;;
4867 *)
4868 enable_static=no
4869 # Look at the argument we got. We use all the common list separators.
4870 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4871 for pkg in $enableval; do
4872 IFS=$lt_save_ifs
4873 if test "X$pkg" = "X$p"; then
4874 enable_static=yes
4875 fi
4876 done
4877 IFS=$lt_save_ifs
4878 ;;
4879 esac
4880 else
4881 enable_static=no
4882 fi
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892 # Check whether --enable-shared was given.
4893 if test "${enable_shared+set}" = set; then :
4894 enableval=$enable_shared; p=${PACKAGE-default}
4895 case $enableval in
4896 yes) enable_shared=yes ;;
4897 no) enable_shared=no ;;
4898 *)
4899 enable_shared=no
4900 # Look at the argument we got. We use all the common list separators.
4901 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4902 for pkg in $enableval; do
4903 IFS=$lt_save_ifs
4904 if test "X$pkg" = "X$p"; then
4905 enable_shared=yes
4906 fi
4907 done
4908 IFS=$lt_save_ifs
4909 ;;
4910 esac
4911 else
4912 enable_shared=yes
4913 fi
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4925 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4926 # Check whether --enable-maintainer-mode was given.
4927 if test "${enable_maintainer_mode+set}" = set; then :
4928 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4929 else
4930 USE_MAINTAINER_MODE=no
4931 fi
4932
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4934 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4935 if test $USE_MAINTAINER_MODE = yes; then
4936 MAINTAINER_MODE_TRUE=
4937 MAINTAINER_MODE_FALSE='#'
4938 else
4939 MAINTAINER_MODE_TRUE='#'
4940 MAINTAINER_MODE_FALSE=
4941 fi
4942
4943 MAINT=$MAINTAINER_MODE_TRUE
4944
4945
4946
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4948 $as_echo_n "checking for library containing strerror... " >&6; }
4949 if ${ac_cv_search_strerror+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 ac_func_search_save_LIBS=$LIBS
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4955
4956 /* Override any GCC internal prototype to avoid an error.
4957 Use char because int might match the return type of a GCC
4958 builtin and then its argument prototype would still apply. */
4959 #ifdef __cplusplus
4960 extern "C"
4961 #endif
4962 char strerror ();
4963 int
4964 main ()
4965 {
4966 return strerror ();
4967 ;
4968 return 0;
4969 }
4970 _ACEOF
4971 for ac_lib in '' cposix; do
4972 if test -z "$ac_lib"; then
4973 ac_res="none required"
4974 else
4975 ac_res=-l$ac_lib
4976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4977 fi
4978 if ac_fn_c_try_link "$LINENO"; then :
4979 ac_cv_search_strerror=$ac_res
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext \
4982 conftest$ac_exeext
4983 if ${ac_cv_search_strerror+:} false; then :
4984 break
4985 fi
4986 done
4987 if ${ac_cv_search_strerror+:} false; then :
4988
4989 else
4990 ac_cv_search_strerror=no
4991 fi
4992 rm conftest.$ac_ext
4993 LIBS=$ac_func_search_save_LIBS
4994 fi
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4996 $as_echo "$ac_cv_search_strerror" >&6; }
4997 ac_res=$ac_cv_search_strerror
4998 if test "$ac_res" != no; then :
4999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5000
5001 fi
5002
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5004 $as_echo_n "checking for inline... " >&6; }
5005 if ${ac_cv_c_inline+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 ac_cv_c_inline=no
5009 for ac_kw in inline __inline__ __inline; do
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 #ifndef __cplusplus
5013 typedef int foo_t;
5014 static $ac_kw foo_t static_foo () {return 0; }
5015 $ac_kw foo_t foo () {return 0; }
5016 #endif
5017
5018 _ACEOF
5019 if ac_fn_c_try_compile "$LINENO"; then :
5020 ac_cv_c_inline=$ac_kw
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 test "$ac_cv_c_inline" != no && break
5024 done
5025
5026 fi
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5028 $as_echo "$ac_cv_c_inline" >&6; }
5029
5030 case $ac_cv_c_inline in
5031 inline | yes) ;;
5032 *)
5033 case $ac_cv_c_inline in
5034 no) ac_val=;;
5035 *) ac_val=$ac_cv_c_inline;;
5036 esac
5037 cat >>confdefs.h <<_ACEOF
5038 #ifndef __cplusplus
5039 #define inline $ac_val
5040 #endif
5041 _ACEOF
5042 ;;
5043 esac
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5046 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5047 if ${ac_cv_c_const+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052
5053 int
5054 main ()
5055 {
5056
5057 #ifndef __cplusplus
5058 /* Ultrix mips cc rejects this sort of thing. */
5059 typedef int charset[2];
5060 const charset cs = { 0, 0 };
5061 /* SunOS 4.1.1 cc rejects this. */
5062 char const *const *pcpcc;
5063 char **ppc;
5064 /* NEC SVR4.0.2 mips cc rejects this. */
5065 struct point {int x, y;};
5066 static struct point const zero = {0,0};
5067 /* AIX XL C 1.02.0.0 rejects this.
5068 It does not let you subtract one const X* pointer from another in
5069 an arm of an if-expression whose if-part is not a constant
5070 expression */
5071 const char *g = "string";
5072 pcpcc = &g + (g ? g-g : 0);
5073 /* HPUX 7.0 cc rejects these. */
5074 ++pcpcc;
5075 ppc = (char**) pcpcc;
5076 pcpcc = (char const *const *) ppc;
5077 { /* SCO 3.2v4 cc rejects this sort of thing. */
5078 char tx;
5079 char *t = &tx;
5080 char const *s = 0 ? (char *) 0 : (char const *) 0;
5081
5082 *t++ = 0;
5083 if (s) return 0;
5084 }
5085 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5086 int x[] = {25, 17};
5087 const int *foo = &x[0];
5088 ++foo;
5089 }
5090 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5091 typedef const int *iptr;
5092 iptr p = 0;
5093 ++p;
5094 }
5095 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5096 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5097 struct s { int j; const int *ap[3]; } bx;
5098 struct s *b = &bx; b->j = 5;
5099 }
5100 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5101 const int foo = 10;
5102 if (!foo) return 0;
5103 }
5104 return !cs[0] && !zero.x;
5105 #endif
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 ac_cv_c_const=yes
5113 else
5114 ac_cv_c_const=no
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 fi
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5119 $as_echo "$ac_cv_c_const" >&6; }
5120 if test $ac_cv_c_const = no; then
5121
5122 $as_echo "#define const /**/" >>confdefs.h
5123
5124 fi
5125
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5127 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5128 if ${ac_cv_c_bigendian+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 ac_cv_c_bigendian=unknown
5132 # See if we're dealing with a universal compiler.
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5135 #ifndef __APPLE_CC__
5136 not a universal capable compiler
5137 #endif
5138 typedef int dummy;
5139
5140 _ACEOF
5141 if ac_fn_c_try_compile "$LINENO"; then :
5142
5143 # Check for potential -arch flags. It is not universal unless
5144 # there are at least two -arch flags with different values.
5145 ac_arch=
5146 ac_prev=
5147 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5148 if test -n "$ac_prev"; then
5149 case $ac_word in
5150 i?86 | x86_64 | ppc | ppc64)
5151 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5152 ac_arch=$ac_word
5153 else
5154 ac_cv_c_bigendian=universal
5155 break
5156 fi
5157 ;;
5158 esac
5159 ac_prev=
5160 elif test "x$ac_word" = "x-arch"; then
5161 ac_prev=arch
5162 fi
5163 done
5164 fi
5165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166 if test $ac_cv_c_bigendian = unknown; then
5167 # See if sys/param.h defines the BYTE_ORDER macro.
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170 #include <sys/types.h>
5171 #include <sys/param.h>
5172
5173 int
5174 main ()
5175 {
5176 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5177 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5178 && LITTLE_ENDIAN)
5179 bogus endian macros
5180 #endif
5181
5182 ;
5183 return 0;
5184 }
5185 _ACEOF
5186 if ac_fn_c_try_compile "$LINENO"; then :
5187 # It does; now see whether it defined to BIG_ENDIAN or not.
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5190 #include <sys/types.h>
5191 #include <sys/param.h>
5192
5193 int
5194 main ()
5195 {
5196 #if BYTE_ORDER != BIG_ENDIAN
5197 not big endian
5198 #endif
5199
5200 ;
5201 return 0;
5202 }
5203 _ACEOF
5204 if ac_fn_c_try_compile "$LINENO"; then :
5205 ac_cv_c_bigendian=yes
5206 else
5207 ac_cv_c_bigendian=no
5208 fi
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 fi
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 fi
5213 if test $ac_cv_c_bigendian = unknown; then
5214 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #include <limits.h>
5218
5219 int
5220 main ()
5221 {
5222 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5223 bogus endian macros
5224 #endif
5225
5226 ;
5227 return 0;
5228 }
5229 _ACEOF
5230 if ac_fn_c_try_compile "$LINENO"; then :
5231 # It does; now see whether it defined to _BIG_ENDIAN or not.
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234 #include <limits.h>
5235
5236 int
5237 main ()
5238 {
5239 #ifndef _BIG_ENDIAN
5240 not big endian
5241 #endif
5242
5243 ;
5244 return 0;
5245 }
5246 _ACEOF
5247 if ac_fn_c_try_compile "$LINENO"; then :
5248 ac_cv_c_bigendian=yes
5249 else
5250 ac_cv_c_bigendian=no
5251 fi
5252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 fi
5256 if test $ac_cv_c_bigendian = unknown; then
5257 # Compile a test program.
5258 if test "$cross_compiling" = yes; then :
5259 # Try to guess by grepping values from an object file.
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262 short int ascii_mm[] =
5263 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5264 short int ascii_ii[] =
5265 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5266 int use_ascii (int i) {
5267 return ascii_mm[i] + ascii_ii[i];
5268 }
5269 short int ebcdic_ii[] =
5270 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5271 short int ebcdic_mm[] =
5272 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5273 int use_ebcdic (int i) {
5274 return ebcdic_mm[i] + ebcdic_ii[i];
5275 }
5276 extern int foo;
5277
5278 int
5279 main ()
5280 {
5281 return use_ascii (foo) == use_ebcdic (foo);
5282 ;
5283 return 0;
5284 }
5285 _ACEOF
5286 if ac_fn_c_try_compile "$LINENO"; then :
5287 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5288 ac_cv_c_bigendian=yes
5289 fi
5290 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5291 if test "$ac_cv_c_bigendian" = unknown; then
5292 ac_cv_c_bigendian=no
5293 else
5294 # finding both strings is unlikely to happen, but who knows?
5295 ac_cv_c_bigendian=unknown
5296 fi
5297 fi
5298 fi
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 else
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5303 $ac_includes_default
5304 int
5305 main ()
5306 {
5307
5308 /* Are we little or big endian? From Harbison&Steele. */
5309 union
5310 {
5311 long int l;
5312 char c[sizeof (long int)];
5313 } u;
5314 u.l = 1;
5315 return u.c[sizeof (long int) - 1] == 1;
5316
5317 ;
5318 return 0;
5319 }
5320 _ACEOF
5321 if ac_fn_c_try_run "$LINENO"; then :
5322 ac_cv_c_bigendian=no
5323 else
5324 ac_cv_c_bigendian=yes
5325 fi
5326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5327 conftest.$ac_objext conftest.beam conftest.$ac_ext
5328 fi
5329
5330 fi
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5333 $as_echo "$ac_cv_c_bigendian" >&6; }
5334 case $ac_cv_c_bigendian in #(
5335 yes)
5336 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5337 ;; #(
5338 no)
5339 ;; #(
5340 universal)
5341
5342 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5343
5344 ;; #(
5345 *)
5346 as_fn_error $? "unknown endianness
5347 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5348 esac
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5351 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5352 set x ${MAKE-make}
5353 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5354 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 cat >conftest.make <<\_ACEOF
5358 SHELL = /bin/sh
5359 all:
5360 @echo '@@@%%%=$(MAKE)=@@@%%%'
5361 _ACEOF
5362 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5363 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5364 *@@@%%%=?*=@@@%%%*)
5365 eval ac_cv_prog_make_${ac_make}_set=yes;;
5366 *)
5367 eval ac_cv_prog_make_${ac_make}_set=no;;
5368 esac
5369 rm -f conftest.make
5370 fi
5371 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5373 $as_echo "yes" >&6; }
5374 SET_MAKE=
5375 else
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5378 SET_MAKE="MAKE=${MAKE-make}"
5379 fi
5380
5381
5382 # Extract the first word of "automake", so it can be a program name with args.
5383 set dummy automake; ac_word=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if ${ac_cv_path_AUTOMAKE+:} false; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 case $AUTOMAKE in
5390 [\\/]* | ?:[\\/]*)
5391 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
5392 ;;
5393 *)
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5396 do
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 break 2
5404 fi
5405 done
5406 done
5407 IFS=$as_save_IFS
5408
5409 ;;
5410 esac
5411 fi
5412 AUTOMAKE=$ac_cv_path_AUTOMAKE
5413 if test -n "$AUTOMAKE"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
5415 $as_echo "$AUTOMAKE" >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5419 fi
5420
5421
5422 # Extract the first word of "aclocal", so it can be a program name with args.
5423 set dummy aclocal; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_path_ACLOCAL+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 case $ACLOCAL in
5430 [\\/]* | ?:[\\/]*)
5431 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
5432 ;;
5433 *)
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5436 do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5444 fi
5445 done
5446 done
5447 IFS=$as_save_IFS
5448
5449 ;;
5450 esac
5451 fi
5452 ACLOCAL=$ac_cv_path_ACLOCAL
5453 if test -n "$ACLOCAL"; then
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
5455 $as_echo "$ACLOCAL" >&6; }
5456 else
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 $as_echo "no" >&6; }
5459 fi
5460
5461
5462 # Extract the first word of "autoheader", so it can be a program name with args.
5463 set dummy autoheader; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_path_AUTOHEADER+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 case $AUTOHEADER in
5470 [\\/]* | ?:[\\/]*)
5471 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
5472 ;;
5473 *)
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 break 2
5484 fi
5485 done
5486 done
5487 IFS=$as_save_IFS
5488
5489 ;;
5490 esac
5491 fi
5492 AUTOHEADER=$ac_cv_path_AUTOHEADER
5493 if test -n "$AUTOHEADER"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
5495 $as_echo "$AUTOHEADER" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500
5501
5502 # Extract the first word of "as", so it can be a program name with args.
5503 set dummy as; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if ${ac_cv_path_AS+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 case $AS in
5510 [\\/]* | ?:[\\/]*)
5511 ac_cv_path_AS="$AS" # Let the user override the test with a path.
5512 ;;
5513 *)
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525 done
5526 done
5527 IFS=$as_save_IFS
5528
5529 ;;
5530 esac
5531 fi
5532 AS=$ac_cv_path_AS
5533 if test -n "$AS"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5535 $as_echo "$AS" >&6; }
5536 else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5539 fi
5540
5541
5542 # Extract the first word of "rm", so it can be a program name with args.
5543 set dummy rm; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if ${ac_cv_path_RM+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 case $RM in
5550 [\\/]* | ?:[\\/]*)
5551 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5552 ;;
5553 *)
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5556 do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5564 fi
5565 done
5566 done
5567 IFS=$as_save_IFS
5568
5569 ;;
5570 esac
5571 fi
5572 RM=$ac_cv_path_RM
5573 if test -n "$RM"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5575 $as_echo "$RM" >&6; }
5576 else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5579 fi
5580
5581
5582 # Extract the first word of "cp", so it can be a program name with args.
5583 set dummy cp; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if ${ac_cv_path_CP+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 case $CP in
5590 [\\/]* | ?:[\\/]*)
5591 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5592 ;;
5593 *)
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5596 do
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 break 2
5604 fi
5605 done
5606 done
5607 IFS=$as_save_IFS
5608
5609 ;;
5610 esac
5611 fi
5612 CP=$ac_cv_path_CP
5613 if test -n "$CP"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5615 $as_echo "$CP" >&6; }
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5619 fi
5620
5621
5622 # Extract the first word of "mv", so it can be a program name with args.
5623 set dummy mv; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_path_MV+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 case $MV in
5630 [\\/]* | ?:[\\/]*)
5631 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5632 ;;
5633 *)
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 break 2
5644 fi
5645 done
5646 done
5647 IFS=$as_save_IFS
5648
5649 ;;
5650 esac
5651 fi
5652 MV=$ac_cv_path_MV
5653 if test -n "$MV"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5655 $as_echo "$MV" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5659 fi
5660
5661
5662 # Extract the first word of "ln", so it can be a program name with args.
5663 set dummy ln; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if ${ac_cv_path_LN+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 case $LN in
5670 [\\/]* | ?:[\\/]*)
5671 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5672 ;;
5673 *)
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5676 do
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5681 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 break 2
5684 fi
5685 done
5686 done
5687 IFS=$as_save_IFS
5688
5689 ;;
5690 esac
5691 fi
5692 LN=$ac_cv_path_LN
5693 if test -n "$LN"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
5695 $as_echo "$LN" >&6; }
5696 else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5699 fi
5700
5701
5702 # Extract the first word of "touch", so it can be a program name with args.
5703 set dummy touch; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if ${ac_cv_path_TOUCH+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 case $TOUCH in
5710 [\\/]* | ?:[\\/]*)
5711 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5712 ;;
5713 *)
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 2
5724 fi
5725 done
5726 done
5727 IFS=$as_save_IFS
5728
5729 ;;
5730 esac
5731 fi
5732 TOUCH=$ac_cv_path_TOUCH
5733 if test -n "$TOUCH"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5735 $as_echo "$TOUCH" >&6; }
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5739 fi
5740
5741
5742 ac_ext=c
5743 ac_cpp='$CPP $CPPFLAGS'
5744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747
5748
5749 case `pwd` in
5750 *\ * | *\ *)
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5752 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5753 esac
5754
5755
5756
5757 macro_version='2.4.6'
5758 macro_revision='2.4.6'
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 ltmain=$ac_aux_dir/ltmain.sh
5773
5774 # Make sure we can run config.sub.
5775 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5776 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5777
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5779 $as_echo_n "checking build system type... " >&6; }
5780 if ${ac_cv_build+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 ac_build_alias=$build_alias
5784 test "x$ac_build_alias" = x &&
5785 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5786 test "x$ac_build_alias" = x &&
5787 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5788 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5789 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5790
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5793 $as_echo "$ac_cv_build" >&6; }
5794 case $ac_cv_build in
5795 *-*-*) ;;
5796 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5797 esac
5798 build=$ac_cv_build
5799 ac_save_IFS=$IFS; IFS='-'
5800 set x $ac_cv_build
5801 shift
5802 build_cpu=$1
5803 build_vendor=$2
5804 shift; shift
5805 # Remember, the first character of IFS is used to create $*,
5806 # except with old shells:
5807 build_os=$*
5808 IFS=$ac_save_IFS
5809 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5810
5811
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5813 $as_echo_n "checking host system type... " >&6; }
5814 if ${ac_cv_host+:} false; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 if test "x$host_alias" = x; then
5818 ac_cv_host=$ac_cv_build
5819 else
5820 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5821 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5822 fi
5823
5824 fi
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5826 $as_echo "$ac_cv_host" >&6; }
5827 case $ac_cv_host in
5828 *-*-*) ;;
5829 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5830 esac
5831 host=$ac_cv_host
5832 ac_save_IFS=$IFS; IFS='-'
5833 set x $ac_cv_host
5834 shift
5835 host_cpu=$1
5836 host_vendor=$2
5837 shift; shift
5838 # Remember, the first character of IFS is used to create $*,
5839 # except with old shells:
5840 host_os=$*
5841 IFS=$ac_save_IFS
5842 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5843
5844
5845 # Backslashify metacharacters that are still active within
5846 # double-quoted strings.
5847 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5848
5849 # Same as above, but do not quote variable references.
5850 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5851
5852 # Sed substitution to delay expansion of an escaped shell variable in a
5853 # double_quote_subst'ed string.
5854 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5855
5856 # Sed substitution to delay expansion of an escaped single quote.
5857 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5858
5859 # Sed substitution to avoid accidental globbing in evaled expressions
5860 no_glob_subst='s/\*/\\\*/g'
5861
5862 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5863 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5864 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5865
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5867 $as_echo_n "checking how to print strings... " >&6; }
5868 # Test print first, because it will be a builtin if present.
5869 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5870 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5871 ECHO='print -r --'
5872 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5873 ECHO='printf %s\n'
5874 else
5875 # Use this function as a fallback that always works.
5876 func_fallback_echo ()
5877 {
5878 eval 'cat <<_LTECHO_EOF
5879 $1
5880 _LTECHO_EOF'
5881 }
5882 ECHO='func_fallback_echo'
5883 fi
5884
5885 # func_echo_all arg...
5886 # Invoke $ECHO with all args, space-separated.
5887 func_echo_all ()
5888 {
5889 $ECHO ""
5890 }
5891
5892 case $ECHO in
5893 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5894 $as_echo "printf" >&6; } ;;
5895 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5896 $as_echo "print -r" >&6; } ;;
5897 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5898 $as_echo "cat" >&6; } ;;
5899 esac
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5915 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5916 if ${ac_cv_path_SED+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5920 for ac_i in 1 2 3 4 5 6 7; do
5921 ac_script="$ac_script$as_nl$ac_script"
5922 done
5923 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5924 { ac_script=; unset ac_script;}
5925 if test -z "$SED"; then
5926 ac_path_SED_found=false
5927 # Loop through the user's path and test for each of PROGNAME-LIST
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_prog in sed gsed; do
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5936 as_fn_executable_p "$ac_path_SED" || continue
5937 # Check for GNU ac_path_SED and select it if it is found.
5938 # Check for GNU $ac_path_SED
5939 case `"$ac_path_SED" --version 2>&1` in
5940 *GNU*)
5941 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5942 *)
5943 ac_count=0
5944 $as_echo_n 0123456789 >"conftest.in"
5945 while :
5946 do
5947 cat "conftest.in" "conftest.in" >"conftest.tmp"
5948 mv "conftest.tmp" "conftest.in"
5949 cp "conftest.in" "conftest.nl"
5950 $as_echo '' >> "conftest.nl"
5951 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5953 as_fn_arith $ac_count + 1 && ac_count=$as_val
5954 if test $ac_count -gt ${ac_path_SED_max-0}; then
5955 # Best one so far, save it but keep looking for a better one
5956 ac_cv_path_SED="$ac_path_SED"
5957 ac_path_SED_max=$ac_count
5958 fi
5959 # 10*(2^10) chars as input seems more than enough
5960 test $ac_count -gt 10 && break
5961 done
5962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5963 esac
5964
5965 $ac_path_SED_found && break 3
5966 done
5967 done
5968 done
5969 IFS=$as_save_IFS
5970 if test -z "$ac_cv_path_SED"; then
5971 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5972 fi
5973 else
5974 ac_cv_path_SED=$SED
5975 fi
5976
5977 fi
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5979 $as_echo "$ac_cv_path_SED" >&6; }
5980 SED="$ac_cv_path_SED"
5981 rm -f conftest.sed
5982
5983 test -z "$SED" && SED=sed
5984 Xsed="$SED -e 1s/^X//"
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5997 $as_echo_n "checking for fgrep... " >&6; }
5998 if ${ac_cv_path_FGREP+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6002 then ac_cv_path_FGREP="$GREP -F"
6003 else
6004 if test -z "$FGREP"; then
6005 ac_path_FGREP_found=false
6006 # Loop through the user's path and test for each of PROGNAME-LIST
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6009 do
6010 IFS=$as_save_IFS
6011 test -z "$as_dir" && as_dir=.
6012 for ac_prog in fgrep; do
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6015 as_fn_executable_p "$ac_path_FGREP" || continue
6016 # Check for GNU ac_path_FGREP and select it if it is found.
6017 # Check for GNU $ac_path_FGREP
6018 case `"$ac_path_FGREP" --version 2>&1` in
6019 *GNU*)
6020 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6021 *)
6022 ac_count=0
6023 $as_echo_n 0123456789 >"conftest.in"
6024 while :
6025 do
6026 cat "conftest.in" "conftest.in" >"conftest.tmp"
6027 mv "conftest.tmp" "conftest.in"
6028 cp "conftest.in" "conftest.nl"
6029 $as_echo 'FGREP' >> "conftest.nl"
6030 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6032 as_fn_arith $ac_count + 1 && ac_count=$as_val
6033 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6034 # Best one so far, save it but keep looking for a better one
6035 ac_cv_path_FGREP="$ac_path_FGREP"
6036 ac_path_FGREP_max=$ac_count
6037 fi
6038 # 10*(2^10) chars as input seems more than enough
6039 test $ac_count -gt 10 && break
6040 done
6041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6042 esac
6043
6044 $ac_path_FGREP_found && break 3
6045 done
6046 done
6047 done
6048 IFS=$as_save_IFS
6049 if test -z "$ac_cv_path_FGREP"; then
6050 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6051 fi
6052 else
6053 ac_cv_path_FGREP=$FGREP
6054 fi
6055
6056 fi
6057 fi
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6059 $as_echo "$ac_cv_path_FGREP" >&6; }
6060 FGREP="$ac_cv_path_FGREP"
6061
6062
6063 test -z "$GREP" && GREP=grep
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083 # Check whether --with-gnu-ld was given.
6084 if test "${with_gnu_ld+set}" = set; then :
6085 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6086 else
6087 with_gnu_ld=no
6088 fi
6089
6090 ac_prog=ld
6091 if test yes = "$GCC"; then
6092 # Check if gcc -print-prog-name=ld gives a path.
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6094 $as_echo_n "checking for ld used by $CC... " >&6; }
6095 case $host in
6096 *-*-mingw*)
6097 # gcc leaves a trailing carriage return, which upsets mingw
6098 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6099 *)
6100 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6101 esac
6102 case $ac_prog in
6103 # Accept absolute paths.
6104 [\\/]* | ?:[\\/]*)
6105 re_direlt='/[^/][^/]*/\.\./'
6106 # Canonicalize the pathname of ld
6107 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6108 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6109 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6110 done
6111 test -z "$LD" && LD=$ac_prog
6112 ;;
6113 "")
6114 # If it fails, then pretend we aren't using GCC.
6115 ac_prog=ld
6116 ;;
6117 *)
6118 # If it is relative, then search for the first ld in PATH.
6119 with_gnu_ld=unknown
6120 ;;
6121 esac
6122 elif test yes = "$with_gnu_ld"; then
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6124 $as_echo_n "checking for GNU ld... " >&6; }
6125 else
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6127 $as_echo_n "checking for non-GNU ld... " >&6; }
6128 fi
6129 if ${lt_cv_path_LD+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 if test -z "$LD"; then
6133 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6134 for ac_dir in $PATH; do
6135 IFS=$lt_save_ifs
6136 test -z "$ac_dir" && ac_dir=.
6137 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6138 lt_cv_path_LD=$ac_dir/$ac_prog
6139 # Check to see if the program is GNU ld. I'd rather use --version,
6140 # but apparently some variants of GNU ld only accept -v.
6141 # Break only if it was the GNU/non-GNU ld that we prefer.
6142 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6143 *GNU* | *'with BFD'*)
6144 test no != "$with_gnu_ld" && break
6145 ;;
6146 *)
6147 test yes != "$with_gnu_ld" && break
6148 ;;
6149 esac
6150 fi
6151 done
6152 IFS=$lt_save_ifs
6153 else
6154 lt_cv_path_LD=$LD # Let the user override the test with a path.
6155 fi
6156 fi
6157
6158 LD=$lt_cv_path_LD
6159 if test -n "$LD"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6161 $as_echo "$LD" >&6; }
6162 else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6165 fi
6166 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6168 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6169 if ${lt_cv_prog_gnu_ld+:} false; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6173 case `$LD -v 2>&1 </dev/null` in
6174 *GNU* | *'with BFD'*)
6175 lt_cv_prog_gnu_ld=yes
6176 ;;
6177 *)
6178 lt_cv_prog_gnu_ld=no
6179 ;;
6180 esac
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6183 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6184 with_gnu_ld=$lt_cv_prog_gnu_ld
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6195 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6196 if ${lt_cv_path_NM+:} false; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 if test -n "$NM"; then
6200 # Let the user override the test.
6201 lt_cv_path_NM=$NM
6202 else
6203 lt_nm_to_check=${ac_tool_prefix}nm
6204 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6205 lt_nm_to_check="$lt_nm_to_check nm"
6206 fi
6207 for lt_tmp_nm in $lt_nm_to_check; do
6208 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6209 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6210 IFS=$lt_save_ifs
6211 test -z "$ac_dir" && ac_dir=.
6212 tmp_nm=$ac_dir/$lt_tmp_nm
6213 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6214 # Check to see if the nm accepts a BSD-compat flag.
6215 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6216 # nm: unknown option "B" ignored
6217 # Tru64's nm complains that /dev/null is an invalid object file
6218 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6219 case $build_os in
6220 mingw*) lt_bad_file=conftest.nm/nofile ;;
6221 *) lt_bad_file=/dev/null ;;
6222 esac
6223 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6224 *$lt_bad_file* | *'Invalid file or object type'*)
6225 lt_cv_path_NM="$tmp_nm -B"
6226 break 2
6227 ;;
6228 *)
6229 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6230 */dev/null*)
6231 lt_cv_path_NM="$tmp_nm -p"
6232 break 2
6233 ;;
6234 *)
6235 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6236 continue # so that we can try to find one that supports BSD flags
6237 ;;
6238 esac
6239 ;;
6240 esac
6241 fi
6242 done
6243 IFS=$lt_save_ifs
6244 done
6245 : ${lt_cv_path_NM=no}
6246 fi
6247 fi
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6249 $as_echo "$lt_cv_path_NM" >&6; }
6250 if test no != "$lt_cv_path_NM"; then
6251 NM=$lt_cv_path_NM
6252 else
6253 # Didn't find any BSD compatible name lister, look for dumpbin.
6254 if test -n "$DUMPBIN"; then :
6255 # Let the user override the test.
6256 else
6257 if test -n "$ac_tool_prefix"; then
6258 for ac_prog in dumpbin "link -dump"
6259 do
6260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_DUMPBIN+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 if test -n "$DUMPBIN"; then
6268 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273 IFS=$as_save_IFS
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 break 2
6280 fi
6281 done
6282 done
6283 IFS=$as_save_IFS
6284
6285 fi
6286 fi
6287 DUMPBIN=$ac_cv_prog_DUMPBIN
6288 if test -n "$DUMPBIN"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6290 $as_echo "$DUMPBIN" >&6; }
6291 else
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295
6296
6297 test -n "$DUMPBIN" && break
6298 done
6299 fi
6300 if test -z "$DUMPBIN"; then
6301 ac_ct_DUMPBIN=$DUMPBIN
6302 for ac_prog in dumpbin "link -dump"
6303 do
6304 # Extract the first word of "$ac_prog", so it can be a program name with args.
6305 set dummy $ac_prog; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 if test -n "$ac_ct_DUMPBIN"; then
6312 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6324 fi
6325 done
6326 done
6327 IFS=$as_save_IFS
6328
6329 fi
6330 fi
6331 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6332 if test -n "$ac_ct_DUMPBIN"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6334 $as_echo "$ac_ct_DUMPBIN" >&6; }
6335 else
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6338 fi
6339
6340
6341 test -n "$ac_ct_DUMPBIN" && break
6342 done
6343
6344 if test "x$ac_ct_DUMPBIN" = x; then
6345 DUMPBIN=":"
6346 else
6347 case $cross_compiling:$ac_tool_warned in
6348 yes:)
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6351 ac_tool_warned=yes ;;
6352 esac
6353 DUMPBIN=$ac_ct_DUMPBIN
6354 fi
6355 fi
6356
6357 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6358 *COFF*)
6359 DUMPBIN="$DUMPBIN -symbols -headers"
6360 ;;
6361 *)
6362 DUMPBIN=:
6363 ;;
6364 esac
6365 fi
6366
6367 if test : != "$DUMPBIN"; then
6368 NM=$DUMPBIN
6369 fi
6370 fi
6371 test -z "$NM" && NM=nm
6372
6373
6374
6375
6376
6377
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6379 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6380 if ${lt_cv_nm_interface+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 lt_cv_nm_interface="BSD nm"
6384 echo "int some_variable = 0;" > conftest.$ac_ext
6385 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6386 (eval "$ac_compile" 2>conftest.err)
6387 cat conftest.err >&5
6388 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6389 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6390 cat conftest.err >&5
6391 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6392 cat conftest.out >&5
6393 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6394 lt_cv_nm_interface="MS dumpbin"
6395 fi
6396 rm -f conftest*
6397 fi
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6399 $as_echo "$lt_cv_nm_interface" >&6; }
6400
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6402 $as_echo_n "checking whether ln -s works... " >&6; }
6403 LN_S=$as_ln_s
6404 if test "$LN_S" = "ln -s"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6406 $as_echo "yes" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6409 $as_echo "no, using $LN_S" >&6; }
6410 fi
6411
6412 # find the maximum length of command line arguments
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6414 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6415 if ${lt_cv_sys_max_cmd_len+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 i=0
6419 teststring=ABCD
6420
6421 case $build_os in
6422 msdosdjgpp*)
6423 # On DJGPP, this test can blow up pretty badly due to problems in libc
6424 # (any single argument exceeding 2000 bytes causes a buffer overrun
6425 # during glob expansion). Even if it were fixed, the result of this
6426 # check would be larger than it should be.
6427 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6428 ;;
6429
6430 gnu*)
6431 # Under GNU Hurd, this test is not required because there is
6432 # no limit to the length of command line arguments.
6433 # Libtool will interpret -1 as no limit whatsoever
6434 lt_cv_sys_max_cmd_len=-1;
6435 ;;
6436
6437 cygwin* | mingw* | cegcc*)
6438 # On Win9x/ME, this test blows up -- it succeeds, but takes
6439 # about 5 minutes as the teststring grows exponentially.
6440 # Worse, since 9x/ME are not pre-emptively multitasking,
6441 # you end up with a "frozen" computer, even though with patience
6442 # the test eventually succeeds (with a max line length of 256k).
6443 # Instead, let's just punt: use the minimum linelength reported by
6444 # all of the supported platforms: 8192 (on NT/2K/XP).
6445 lt_cv_sys_max_cmd_len=8192;
6446 ;;
6447
6448 mint*)
6449 # On MiNT this can take a long time and run out of memory.
6450 lt_cv_sys_max_cmd_len=8192;
6451 ;;
6452
6453 amigaos*)
6454 # On AmigaOS with pdksh, this test takes hours, literally.
6455 # So we just punt and use a minimum line length of 8192.
6456 lt_cv_sys_max_cmd_len=8192;
6457 ;;
6458
6459 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6460 # This has been around since 386BSD, at least. Likely further.
6461 if test -x /sbin/sysctl; then
6462 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6463 elif test -x /usr/sbin/sysctl; then
6464 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6465 else
6466 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6467 fi
6468 # And add a safety zone
6469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6471 ;;
6472
6473 interix*)
6474 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6475 lt_cv_sys_max_cmd_len=196608
6476 ;;
6477
6478 os2*)
6479 # The test takes a long time on OS/2.
6480 lt_cv_sys_max_cmd_len=8192
6481 ;;
6482
6483 osf*)
6484 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6485 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6486 # nice to cause kernel panics so lets avoid the loop below.
6487 # First set a reasonable default.
6488 lt_cv_sys_max_cmd_len=16384
6489 #
6490 if test -x /sbin/sysconfig; then
6491 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6492 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6493 esac
6494 fi
6495 ;;
6496 sco3.2v5*)
6497 lt_cv_sys_max_cmd_len=102400
6498 ;;
6499 sysv5* | sco5v6* | sysv4.2uw2*)
6500 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6501 if test -n "$kargmax"; then
6502 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6503 else
6504 lt_cv_sys_max_cmd_len=32768
6505 fi
6506 ;;
6507 *)
6508 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6509 if test -n "$lt_cv_sys_max_cmd_len" && \
6510 test undefined != "$lt_cv_sys_max_cmd_len"; then
6511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6513 else
6514 # Make teststring a little bigger before we do anything with it.
6515 # a 1K string should be a reasonable start.
6516 for i in 1 2 3 4 5 6 7 8; do
6517 teststring=$teststring$teststring
6518 done
6519 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6520 # If test is not a shell built-in, we'll probably end up computing a
6521 # maximum length that is only half of the actual maximum length, but
6522 # we can't tell.
6523 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6524 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6525 test 17 != "$i" # 1/2 MB should be enough
6526 do
6527 i=`expr $i + 1`
6528 teststring=$teststring$teststring
6529 done
6530 # Only check the string length outside the loop.
6531 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6532 teststring=
6533 # Add a significant safety factor because C++ compilers can tack on
6534 # massive amounts of additional arguments before passing them to the
6535 # linker. It appears as though 1/2 is a usable value.
6536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6537 fi
6538 ;;
6539 esac
6540
6541 fi
6542
6543 if test -n "$lt_cv_sys_max_cmd_len"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6545 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6546 else
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6548 $as_echo "none" >&6; }
6549 fi
6550 max_cmd_len=$lt_cv_sys_max_cmd_len
6551
6552
6553
6554
6555
6556
6557 : ${CP="cp -f"}
6558 : ${MV="mv -f"}
6559 : ${RM="rm -f"}
6560
6561 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6562 lt_unset=unset
6563 else
6564 lt_unset=false
6565 fi
6566
6567
6568
6569
6570
6571 # test EBCDIC or ASCII
6572 case `echo X|tr X '\101'` in
6573 A) # ASCII based system
6574 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6575 lt_SP2NL='tr \040 \012'
6576 lt_NL2SP='tr \015\012 \040\040'
6577 ;;
6578 *) # EBCDIC based system
6579 lt_SP2NL='tr \100 \n'
6580 lt_NL2SP='tr \r\n \100\100'
6581 ;;
6582 esac
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6593 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6594 if ${lt_cv_to_host_file_cmd+:} false; then :
6595 $as_echo_n "(cached) " >&6
6596 else
6597 case $host in
6598 *-*-mingw* )
6599 case $build in
6600 *-*-mingw* ) # actually msys
6601 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6602 ;;
6603 *-*-cygwin* )
6604 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6605 ;;
6606 * ) # otherwise, assume *nix
6607 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6608 ;;
6609 esac
6610 ;;
6611 *-*-cygwin* )
6612 case $build in
6613 *-*-mingw* ) # actually msys
6614 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6615 ;;
6616 *-*-cygwin* )
6617 lt_cv_to_host_file_cmd=func_convert_file_noop
6618 ;;
6619 * ) # otherwise, assume *nix
6620 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6621 ;;
6622 esac
6623 ;;
6624 * ) # unhandled hosts (and "normal" native builds)
6625 lt_cv_to_host_file_cmd=func_convert_file_noop
6626 ;;
6627 esac
6628
6629 fi
6630
6631 to_host_file_cmd=$lt_cv_to_host_file_cmd
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6633 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6634
6635
6636
6637
6638
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6640 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6641 if ${lt_cv_to_tool_file_cmd+:} false; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 #assume ordinary cross tools, or native build.
6645 lt_cv_to_tool_file_cmd=func_convert_file_noop
6646 case $host in
6647 *-*-mingw* )
6648 case $build in
6649 *-*-mingw* ) # actually msys
6650 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6651 ;;
6652 esac
6653 ;;
6654 esac
6655
6656 fi
6657
6658 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6660 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6661
6662
6663
6664
6665
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6667 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6668 if ${lt_cv_ld_reload_flag+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 lt_cv_ld_reload_flag='-r'
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6674 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6675 reload_flag=$lt_cv_ld_reload_flag
6676 case $reload_flag in
6677 "" | " "*) ;;
6678 *) reload_flag=" $reload_flag" ;;
6679 esac
6680 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6681 case $host_os in
6682 cygwin* | mingw* | pw32* | cegcc*)
6683 if test yes != "$GCC"; then
6684 reload_cmds=false
6685 fi
6686 ;;
6687 darwin*)
6688 if test yes = "$GCC"; then
6689 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6690 else
6691 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6692 fi
6693 ;;
6694 esac
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704 if test -n "$ac_tool_prefix"; then
6705 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6706 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_prog_OBJDUMP+:} false; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 if test -n "$OBJDUMP"; then
6713 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6722 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6725 fi
6726 done
6727 done
6728 IFS=$as_save_IFS
6729
6730 fi
6731 fi
6732 OBJDUMP=$ac_cv_prog_OBJDUMP
6733 if test -n "$OBJDUMP"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6735 $as_echo "$OBJDUMP" >&6; }
6736 else
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6739 fi
6740
6741
6742 fi
6743 if test -z "$ac_cv_prog_OBJDUMP"; then
6744 ac_ct_OBJDUMP=$OBJDUMP
6745 # Extract the first word of "objdump", so it can be a program name with args.
6746 set dummy objdump; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 if test -n "$ac_ct_OBJDUMP"; then
6753 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 break 2
6765 fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770 fi
6771 fi
6772 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6773 if test -n "$ac_ct_OBJDUMP"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6775 $as_echo "$ac_ct_OBJDUMP" >&6; }
6776 else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6779 fi
6780
6781 if test "x$ac_ct_OBJDUMP" = x; then
6782 OBJDUMP="false"
6783 else
6784 case $cross_compiling:$ac_tool_warned in
6785 yes:)
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6788 ac_tool_warned=yes ;;
6789 esac
6790 OBJDUMP=$ac_ct_OBJDUMP
6791 fi
6792 else
6793 OBJDUMP="$ac_cv_prog_OBJDUMP"
6794 fi
6795
6796 test -z "$OBJDUMP" && OBJDUMP=objdump
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6807 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6808 if ${lt_cv_deplibs_check_method+:} false; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 lt_cv_file_magic_cmd='$MAGIC_CMD'
6812 lt_cv_file_magic_test_file=
6813 lt_cv_deplibs_check_method='unknown'
6814 # Need to set the preceding variable on all platforms that support
6815 # interlibrary dependencies.
6816 # 'none' -- dependencies not supported.
6817 # 'unknown' -- same as none, but documents that we really don't know.
6818 # 'pass_all' -- all dependencies passed with no checks.
6819 # 'test_compile' -- check by making test program.
6820 # 'file_magic [[regex]]' -- check by looking for files in library path
6821 # that responds to the $file_magic_cmd with a given extended regex.
6822 # If you have 'file' or equivalent on your system and you're not sure
6823 # whether 'pass_all' will *always* work, you probably want this one.
6824
6825 case $host_os in
6826 aix[4-9]*)
6827 lt_cv_deplibs_check_method=pass_all
6828 ;;
6829
6830 beos*)
6831 lt_cv_deplibs_check_method=pass_all
6832 ;;
6833
6834 bsdi[45]*)
6835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6836 lt_cv_file_magic_cmd='/usr/bin/file -L'
6837 lt_cv_file_magic_test_file=/shlib/libc.so
6838 ;;
6839
6840 cygwin*)
6841 # func_win32_libid is a shell function defined in ltmain.sh
6842 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6843 lt_cv_file_magic_cmd='func_win32_libid'
6844 ;;
6845
6846 mingw* | pw32*)
6847 # Base MSYS/MinGW do not provide the 'file' command needed by
6848 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6849 # unless we find 'file', for example because we are cross-compiling.
6850 if ( file / ) >/dev/null 2>&1; then
6851 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6852 lt_cv_file_magic_cmd='func_win32_libid'
6853 else
6854 # Keep this pattern in sync with the one in func_win32_libid.
6855 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6856 lt_cv_file_magic_cmd='$OBJDUMP -f'
6857 fi
6858 ;;
6859
6860 cegcc*)
6861 # use the weaker test based on 'objdump'. See mingw*.
6862 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6863 lt_cv_file_magic_cmd='$OBJDUMP -f'
6864 ;;
6865
6866 darwin* | rhapsody*)
6867 lt_cv_deplibs_check_method=pass_all
6868 ;;
6869
6870 freebsd* | dragonfly*)
6871 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6872 case $host_cpu in
6873 i*86 )
6874 # Not sure whether the presence of OpenBSD here was a mistake.
6875 # Let's accept both of them until this is cleared up.
6876 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6877 lt_cv_file_magic_cmd=/usr/bin/file
6878 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6879 ;;
6880 esac
6881 else
6882 lt_cv_deplibs_check_method=pass_all
6883 fi
6884 ;;
6885
6886 haiku*)
6887 lt_cv_deplibs_check_method=pass_all
6888 ;;
6889
6890 hpux10.20* | hpux11*)
6891 lt_cv_file_magic_cmd=/usr/bin/file
6892 case $host_cpu in
6893 ia64*)
6894 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6895 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6896 ;;
6897 hppa*64*)
6898 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6899 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6900 ;;
6901 *)
6902 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6903 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6904 ;;
6905 esac
6906 ;;
6907
6908 interix[3-9]*)
6909 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6911 ;;
6912
6913 irix5* | irix6* | nonstopux*)
6914 case $LD in
6915 *-32|*"-32 ") libmagic=32-bit;;
6916 *-n32|*"-n32 ") libmagic=N32;;
6917 *-64|*"-64 ") libmagic=64-bit;;
6918 *) libmagic=never-match;;
6919 esac
6920 lt_cv_deplibs_check_method=pass_all
6921 ;;
6922
6923 # This must be glibc/ELF.
6924 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6925 lt_cv_deplibs_check_method=pass_all
6926 ;;
6927
6928 netbsd*)
6929 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6931 else
6932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6933 fi
6934 ;;
6935
6936 newos6*)
6937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6938 lt_cv_file_magic_cmd=/usr/bin/file
6939 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6940 ;;
6941
6942 *nto* | *qnx*)
6943 lt_cv_deplibs_check_method=pass_all
6944 ;;
6945
6946 openbsd* | bitrig*)
6947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6949 else
6950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6951 fi
6952 ;;
6953
6954 osf3* | osf4* | osf5*)
6955 lt_cv_deplibs_check_method=pass_all
6956 ;;
6957
6958 rdos*)
6959 lt_cv_deplibs_check_method=pass_all
6960 ;;
6961
6962 solaris*)
6963 lt_cv_deplibs_check_method=pass_all
6964 ;;
6965
6966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6967 lt_cv_deplibs_check_method=pass_all
6968 ;;
6969
6970 sysv4 | sysv4.3*)
6971 case $host_vendor in
6972 motorola)
6973 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]'
6974 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6975 ;;
6976 ncr)
6977 lt_cv_deplibs_check_method=pass_all
6978 ;;
6979 sequent)
6980 lt_cv_file_magic_cmd='/bin/file'
6981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6982 ;;
6983 sni)
6984 lt_cv_file_magic_cmd='/bin/file'
6985 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6986 lt_cv_file_magic_test_file=/lib/libc.so
6987 ;;
6988 siemens)
6989 lt_cv_deplibs_check_method=pass_all
6990 ;;
6991 pc)
6992 lt_cv_deplibs_check_method=pass_all
6993 ;;
6994 esac
6995 ;;
6996
6997 tpf*)
6998 lt_cv_deplibs_check_method=pass_all
6999 ;;
7000 os2*)
7001 lt_cv_deplibs_check_method=pass_all
7002 ;;
7003 esac
7004
7005 fi
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7007 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7008
7009 file_magic_glob=
7010 want_nocaseglob=no
7011 if test "$build" = "$host"; then
7012 case $host_os in
7013 mingw* | pw32*)
7014 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7015 want_nocaseglob=yes
7016 else
7017 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7018 fi
7019 ;;
7020 esac
7021 fi
7022
7023 file_magic_cmd=$lt_cv_file_magic_cmd
7024 deplibs_check_method=$lt_cv_deplibs_check_method
7025 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048 if test -n "$ac_tool_prefix"; then
7049 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7050 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7052 $as_echo_n "checking for $ac_word... " >&6; }
7053 if ${ac_cv_prog_DLLTOOL+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 if test -n "$DLLTOOL"; then
7057 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7058 else
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7061 do
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 break 2
7069 fi
7070 done
7071 done
7072 IFS=$as_save_IFS
7073
7074 fi
7075 fi
7076 DLLTOOL=$ac_cv_prog_DLLTOOL
7077 if test -n "$DLLTOOL"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7079 $as_echo "$DLLTOOL" >&6; }
7080 else
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082 $as_echo "no" >&6; }
7083 fi
7084
7085
7086 fi
7087 if test -z "$ac_cv_prog_DLLTOOL"; then
7088 ac_ct_DLLTOOL=$DLLTOOL
7089 # Extract the first word of "dlltool", so it can be a program name with args.
7090 set dummy dlltool; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 if test -n "$ac_ct_DLLTOOL"; then
7097 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7098 else
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 for as_dir in $PATH
7101 do
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7109 fi
7110 done
7111 done
7112 IFS=$as_save_IFS
7113
7114 fi
7115 fi
7116 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7117 if test -n "$ac_ct_DLLTOOL"; then
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7119 $as_echo "$ac_ct_DLLTOOL" >&6; }
7120 else
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7123 fi
7124
7125 if test "x$ac_ct_DLLTOOL" = x; then
7126 DLLTOOL="false"
7127 else
7128 case $cross_compiling:$ac_tool_warned in
7129 yes:)
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7132 ac_tool_warned=yes ;;
7133 esac
7134 DLLTOOL=$ac_ct_DLLTOOL
7135 fi
7136 else
7137 DLLTOOL="$ac_cv_prog_DLLTOOL"
7138 fi
7139
7140 test -z "$DLLTOOL" && DLLTOOL=dlltool
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7152 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7153 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7156 lt_cv_sharedlib_from_linklib_cmd='unknown'
7157
7158 case $host_os in
7159 cygwin* | mingw* | pw32* | cegcc*)
7160 # two different shell functions defined in ltmain.sh;
7161 # decide which one to use based on capabilities of $DLLTOOL
7162 case `$DLLTOOL --help 2>&1` in
7163 *--identify-strict*)
7164 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7165 ;;
7166 *)
7167 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7168 ;;
7169 esac
7170 ;;
7171 *)
7172 # fallback: assume linklib IS sharedlib
7173 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7174 ;;
7175 esac
7176
7177 fi
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7179 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7180 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7181 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7182
7183
7184
7185
7186
7187
7188
7189 if test -n "$ac_tool_prefix"; then
7190 for ac_prog in ar
7191 do
7192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if ${ac_cv_prog_AR+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 if test -n "$AR"; then
7200 ac_cv_prog_AR="$AR" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213 done
7214 done
7215 IFS=$as_save_IFS
7216
7217 fi
7218 fi
7219 AR=$ac_cv_prog_AR
7220 if test -n "$AR"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7222 $as_echo "$AR" >&6; }
7223 else
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7226 fi
7227
7228
7229 test -n "$AR" && break
7230 done
7231 fi
7232 if test -z "$AR"; then
7233 ac_ct_AR=$AR
7234 for ac_prog in ar
7235 do
7236 # Extract the first word of "$ac_prog", so it can be a program name with args.
7237 set dummy $ac_prog; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 if test -n "$ac_ct_AR"; then
7244 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_ac_ct_AR="$ac_prog"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 break 2
7256 fi
7257 done
7258 done
7259 IFS=$as_save_IFS
7260
7261 fi
7262 fi
7263 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7264 if test -n "$ac_ct_AR"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7266 $as_echo "$ac_ct_AR" >&6; }
7267 else
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7270 fi
7271
7272
7273 test -n "$ac_ct_AR" && break
7274 done
7275
7276 if test "x$ac_ct_AR" = x; then
7277 AR="false"
7278 else
7279 case $cross_compiling:$ac_tool_warned in
7280 yes:)
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7284 esac
7285 AR=$ac_ct_AR
7286 fi
7287 fi
7288
7289 : ${AR=ar}
7290 : ${AR_FLAGS=cru}
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7303 $as_echo_n "checking for archiver @FILE support... " >&6; }
7304 if ${lt_cv_ar_at_file+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 lt_cv_ar_at_file=no
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7310
7311 int
7312 main ()
7313 {
7314
7315 ;
7316 return 0;
7317 }
7318 _ACEOF
7319 if ac_fn_c_try_compile "$LINENO"; then :
7320 echo conftest.$ac_objext > conftest.lst
7321 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7323 (eval $lt_ar_try) 2>&5
7324 ac_status=$?
7325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326 test $ac_status = 0; }
7327 if test 0 -eq "$ac_status"; then
7328 # Ensure the archiver fails upon bogus file names.
7329 rm -f conftest.$ac_objext libconftest.a
7330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7331 (eval $lt_ar_try) 2>&5
7332 ac_status=$?
7333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7334 test $ac_status = 0; }
7335 if test 0 -ne "$ac_status"; then
7336 lt_cv_ar_at_file=@
7337 fi
7338 fi
7339 rm -f conftest.* libconftest.a
7340
7341 fi
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7346 $as_echo "$lt_cv_ar_at_file" >&6; }
7347
7348 if test no = "$lt_cv_ar_at_file"; then
7349 archiver_list_spec=
7350 else
7351 archiver_list_spec=$lt_cv_ar_at_file
7352 fi
7353
7354
7355
7356
7357
7358
7359
7360 if test -n "$ac_tool_prefix"; then
7361 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7362 set dummy ${ac_tool_prefix}strip; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if ${ac_cv_prog_STRIP+:} false; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 if test -n "$STRIP"; then
7369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7378 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 break 2
7381 fi
7382 done
7383 done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 STRIP=$ac_cv_prog_STRIP
7389 if test -n "$STRIP"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7391 $as_echo "$STRIP" >&6; }
7392 else
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397
7398 fi
7399 if test -z "$ac_cv_prog_STRIP"; then
7400 ac_ct_STRIP=$STRIP
7401 # Extract the first word of "strip", so it can be a program name with args.
7402 set dummy strip; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 if test -n "$ac_ct_STRIP"; then
7409 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418 ac_cv_prog_ac_ct_STRIP="strip"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7429 if test -n "$ac_ct_STRIP"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7431 $as_echo "$ac_ct_STRIP" >&6; }
7432 else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437 if test "x$ac_ct_STRIP" = x; then
7438 STRIP=":"
7439 else
7440 case $cross_compiling:$ac_tool_warned in
7441 yes:)
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7444 ac_tool_warned=yes ;;
7445 esac
7446 STRIP=$ac_ct_STRIP
7447 fi
7448 else
7449 STRIP="$ac_cv_prog_STRIP"
7450 fi
7451
7452 test -z "$STRIP" && STRIP=:
7453
7454
7455
7456
7457
7458
7459 if test -n "$ac_tool_prefix"; then
7460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_RANLIB+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 if test -n "$RANLIB"; then
7468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7472 do
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 break 2
7480 fi
7481 done
7482 done
7483 IFS=$as_save_IFS
7484
7485 fi
7486 fi
7487 RANLIB=$ac_cv_prog_RANLIB
7488 if test -n "$RANLIB"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7490 $as_echo "$RANLIB" >&6; }
7491 else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7494 fi
7495
7496
7497 fi
7498 if test -z "$ac_cv_prog_RANLIB"; then
7499 ac_ct_RANLIB=$RANLIB
7500 # Extract the first word of "ranlib", so it can be a program name with args.
7501 set dummy ranlib; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 if test -n "$ac_ct_RANLIB"; then
7508 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_ac_ct_RANLIB="ranlib"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7520 fi
7521 done
7522 done
7523 IFS=$as_save_IFS
7524
7525 fi
7526 fi
7527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7528 if test -n "$ac_ct_RANLIB"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7530 $as_echo "$ac_ct_RANLIB" >&6; }
7531 else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7534 fi
7535
7536 if test "x$ac_ct_RANLIB" = x; then
7537 RANLIB=":"
7538 else
7539 case $cross_compiling:$ac_tool_warned in
7540 yes:)
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7543 ac_tool_warned=yes ;;
7544 esac
7545 RANLIB=$ac_ct_RANLIB
7546 fi
7547 else
7548 RANLIB="$ac_cv_prog_RANLIB"
7549 fi
7550
7551 test -z "$RANLIB" && RANLIB=:
7552
7553
7554
7555
7556
7557
7558 # Determine commands to create old-style static archives.
7559 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7560 old_postinstall_cmds='chmod 644 $oldlib'
7561 old_postuninstall_cmds=
7562
7563 if test -n "$RANLIB"; then
7564 case $host_os in
7565 bitrig* | openbsd*)
7566 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7567 ;;
7568 *)
7569 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7570 ;;
7571 esac
7572 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7573 fi
7574
7575 case $host_os in
7576 darwin*)
7577 lock_old_archive_extraction=yes ;;
7578 *)
7579 lock_old_archive_extraction=no ;;
7580 esac
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620 # If no C compiler was specified, use CC.
7621 LTCC=${LTCC-"$CC"}
7622
7623 # If no C compiler flags were specified, use CFLAGS.
7624 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7625
7626 # Allow CC to be a program name with arguments.
7627 compiler=$CC
7628
7629
7630 # Check for command to grab the raw symbol name followed by C symbol from nm.
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7632 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7633 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636
7637 # These are sane defaults that work on at least a few old systems.
7638 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7639
7640 # Character class describing NM global symbol codes.
7641 symcode='[BCDEGRST]'
7642
7643 # Regexp to match symbols that can be accessed directly from C.
7644 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7645
7646 # Define system-specific variables.
7647 case $host_os in
7648 aix*)
7649 symcode='[BCDT]'
7650 ;;
7651 cygwin* | mingw* | pw32* | cegcc*)
7652 symcode='[ABCDGISTW]'
7653 ;;
7654 hpux*)
7655 if test ia64 = "$host_cpu"; then
7656 symcode='[ABCDEGRST]'
7657 fi
7658 ;;
7659 irix* | nonstopux*)
7660 symcode='[BCDEGRST]'
7661 ;;
7662 osf*)
7663 symcode='[BCDEGQRST]'
7664 ;;
7665 solaris*)
7666 symcode='[BDRT]'
7667 ;;
7668 sco3.2v5*)
7669 symcode='[DT]'
7670 ;;
7671 sysv4.2uw2*)
7672 symcode='[DT]'
7673 ;;
7674 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7675 symcode='[ABDT]'
7676 ;;
7677 sysv4)
7678 symcode='[DFNSTU]'
7679 ;;
7680 esac
7681
7682 # If we're using GNU nm, then use its standard symbol codes.
7683 case `$NM -V 2>&1` in
7684 *GNU* | *'with BFD'*)
7685 symcode='[ABCDGIRSTW]' ;;
7686 esac
7687
7688 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7689 # Gets list of data symbols to import.
7690 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7691 # Adjust the below global symbol transforms to fixup imported variables.
7692 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7693 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7694 lt_c_name_lib_hook="\
7695 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7696 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7697 else
7698 # Disable hooks by default.
7699 lt_cv_sys_global_symbol_to_import=
7700 lt_cdecl_hook=
7701 lt_c_name_hook=
7702 lt_c_name_lib_hook=
7703 fi
7704
7705 # Transform an extracted symbol line into a proper C declaration.
7706 # Some systems (esp. on ia64) link data and code symbols differently,
7707 # so use this general approach.
7708 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7709 $lt_cdecl_hook\
7710 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7711 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7712
7713 # Transform an extracted symbol line into symbol name and symbol address
7714 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7715 $lt_c_name_hook\
7716 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7717 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7718
7719 # Transform an extracted symbol line into symbol name with lib prefix and
7720 # symbol address.
7721 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7722 $lt_c_name_lib_hook\
7723 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7724 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7725 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7726
7727 # Handle CRLF in mingw tool chain
7728 opt_cr=
7729 case $build_os in
7730 mingw*)
7731 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7732 ;;
7733 esac
7734
7735 # Try without a prefix underscore, then with it.
7736 for ac_symprfx in "" "_"; do
7737
7738 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7739 symxfrm="\\1 $ac_symprfx\\2 \\2"
7740
7741 # Write the raw and C identifiers.
7742 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7743 # Fake it for dumpbin and say T for any non-static function,
7744 # D for any global variable and I for any imported variable.
7745 # Also find C++ and __fastcall symbols from MSVC++,
7746 # which start with @ or ?.
7747 lt_cv_sys_global_symbol_pipe="$AWK '"\
7748 " {last_section=section; section=\$ 3};"\
7749 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7750 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7751 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7752 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7753 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7754 " \$ 0!~/External *\|/{next};"\
7755 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7756 " {if(hide[section]) next};"\
7757 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7758 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7759 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7760 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7761 " ' prfx=^$ac_symprfx"
7762 else
7763 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7764 fi
7765 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7766
7767 # Check to see that the pipe works correctly.
7768 pipe_works=no
7769
7770 rm -f conftest*
7771 cat > conftest.$ac_ext <<_LT_EOF
7772 #ifdef __cplusplus
7773 extern "C" {
7774 #endif
7775 char nm_test_var;
7776 void nm_test_func(void);
7777 void nm_test_func(void){}
7778 #ifdef __cplusplus
7779 }
7780 #endif
7781 int main(){nm_test_var='a';nm_test_func();return(0);}
7782 _LT_EOF
7783
7784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7785 (eval $ac_compile) 2>&5
7786 ac_status=$?
7787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7788 test $ac_status = 0; }; then
7789 # Now try to grab the symbols.
7790 nlist=conftest.nm
7791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7792 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7793 ac_status=$?
7794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7795 test $ac_status = 0; } && test -s "$nlist"; then
7796 # Try sorting and uniquifying the output.
7797 if sort "$nlist" | uniq > "$nlist"T; then
7798 mv -f "$nlist"T "$nlist"
7799 else
7800 rm -f "$nlist"T
7801 fi
7802
7803 # Make sure that we snagged all the symbols we need.
7804 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7805 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7806 cat <<_LT_EOF > conftest.$ac_ext
7807 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7808 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7809 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7810 relocations are performed -- see ld's documentation on pseudo-relocs. */
7811 # define LT_DLSYM_CONST
7812 #elif defined __osf__
7813 /* This system does not cope well with relocations in const data. */
7814 # define LT_DLSYM_CONST
7815 #else
7816 # define LT_DLSYM_CONST const
7817 #endif
7818
7819 #ifdef __cplusplus
7820 extern "C" {
7821 #endif
7822
7823 _LT_EOF
7824 # Now generate the symbol file.
7825 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7826
7827 cat <<_LT_EOF >> conftest.$ac_ext
7828
7829 /* The mapping between symbol names and symbols. */
7830 LT_DLSYM_CONST struct {
7831 const char *name;
7832 void *address;
7833 }
7834 lt__PROGRAM__LTX_preloaded_symbols[] =
7835 {
7836 { "@PROGRAM@", (void *) 0 },
7837 _LT_EOF
7838 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7839 cat <<\_LT_EOF >> conftest.$ac_ext
7840 {0, (void *) 0}
7841 };
7842
7843 /* This works around a problem in FreeBSD linker */
7844 #ifdef FREEBSD_WORKAROUND
7845 static const void *lt_preloaded_setup() {
7846 return lt__PROGRAM__LTX_preloaded_symbols;
7847 }
7848 #endif
7849
7850 #ifdef __cplusplus
7851 }
7852 #endif
7853 _LT_EOF
7854 # Now try linking the two files.
7855 mv conftest.$ac_objext conftstm.$ac_objext
7856 lt_globsym_save_LIBS=$LIBS
7857 lt_globsym_save_CFLAGS=$CFLAGS
7858 LIBS=conftstm.$ac_objext
7859 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7861 (eval $ac_link) 2>&5
7862 ac_status=$?
7863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7864 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7865 pipe_works=yes
7866 fi
7867 LIBS=$lt_globsym_save_LIBS
7868 CFLAGS=$lt_globsym_save_CFLAGS
7869 else
7870 echo "cannot find nm_test_func in $nlist" >&5
7871 fi
7872 else
7873 echo "cannot find nm_test_var in $nlist" >&5
7874 fi
7875 else
7876 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7877 fi
7878 else
7879 echo "$progname: failed program was:" >&5
7880 cat conftest.$ac_ext >&5
7881 fi
7882 rm -rf conftest* conftst*
7883
7884 # Do not use the global_symbol_pipe unless it works.
7885 if test yes = "$pipe_works"; then
7886 break
7887 else
7888 lt_cv_sys_global_symbol_pipe=
7889 fi
7890 done
7891
7892 fi
7893
7894 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7895 lt_cv_sys_global_symbol_to_cdecl=
7896 fi
7897 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7899 $as_echo "failed" >&6; }
7900 else
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7902 $as_echo "ok" >&6; }
7903 fi
7904
7905 # Response file support.
7906 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7907 nm_file_list_spec='@'
7908 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7909 nm_file_list_spec='@'
7910 fi
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7949 $as_echo_n "checking for sysroot... " >&6; }
7950
7951 # Check whether --with-sysroot was given.
7952 if test "${with_sysroot+set}" = set; then :
7953 withval=$with_sysroot;
7954 else
7955 with_sysroot=no
7956 fi
7957
7958
7959 lt_sysroot=
7960 case $with_sysroot in #(
7961 yes)
7962 if test yes = "$GCC"; then
7963 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7964 fi
7965 ;; #(
7966 /*)
7967 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7968 ;; #(
7969 no|'')
7970 ;; #(
7971 *)
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7973 $as_echo "$with_sysroot" >&6; }
7974 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7975 ;;
7976 esac
7977
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7979 $as_echo "${lt_sysroot:-no}" >&6; }
7980
7981
7982
7983
7984
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7986 $as_echo_n "checking for a working dd... " >&6; }
7987 if ${ac_cv_path_lt_DD+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 printf 0123456789abcdef0123456789abcdef >conftest.i
7991 cat conftest.i conftest.i >conftest2.i
7992 : ${lt_DD:=$DD}
7993 if test -z "$lt_DD"; then
7994 ac_path_lt_DD_found=false
7995 # Loop through the user's path and test for each of PROGNAME-LIST
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7998 do
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
8001 for ac_prog in dd; do
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8004 as_fn_executable_p "$ac_path_lt_DD" || continue
8005 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8006 cmp -s conftest.i conftest.out \
8007 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8008 fi
8009 $ac_path_lt_DD_found && break 3
8010 done
8011 done
8012 done
8013 IFS=$as_save_IFS
8014 if test -z "$ac_cv_path_lt_DD"; then
8015 :
8016 fi
8017 else
8018 ac_cv_path_lt_DD=$lt_DD
8019 fi
8020
8021 rm -f conftest.i conftest2.i conftest.out
8022 fi
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8024 $as_echo "$ac_cv_path_lt_DD" >&6; }
8025
8026
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8028 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8029 if ${lt_cv_truncate_bin+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 printf 0123456789abcdef0123456789abcdef >conftest.i
8033 cat conftest.i conftest.i >conftest2.i
8034 lt_cv_truncate_bin=
8035 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8036 cmp -s conftest.i conftest.out \
8037 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8038 fi
8039 rm -f conftest.i conftest2.i conftest.out
8040 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8041 fi
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8043 $as_echo "$lt_cv_truncate_bin" >&6; }
8044
8045
8046
8047
8048
8049
8050
8051 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8052 func_cc_basename ()
8053 {
8054 for cc_temp in $*""; do
8055 case $cc_temp in
8056 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8057 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8058 \-*) ;;
8059 *) break;;
8060 esac
8061 done
8062 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8063 }
8064
8065 # Check whether --enable-libtool-lock was given.
8066 if test "${enable_libtool_lock+set}" = set; then :
8067 enableval=$enable_libtool_lock;
8068 fi
8069
8070 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8071
8072 # Some flags need to be propagated to the compiler or linker for good
8073 # libtool support.
8074 case $host in
8075 ia64-*-hpux*)
8076 # Find out what ABI is being produced by ac_compile, and set mode
8077 # options accordingly.
8078 echo 'int i;' > conftest.$ac_ext
8079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8080 (eval $ac_compile) 2>&5
8081 ac_status=$?
8082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8083 test $ac_status = 0; }; then
8084 case `/usr/bin/file conftest.$ac_objext` in
8085 *ELF-32*)
8086 HPUX_IA64_MODE=32
8087 ;;
8088 *ELF-64*)
8089 HPUX_IA64_MODE=64
8090 ;;
8091 esac
8092 fi
8093 rm -rf conftest*
8094 ;;
8095 *-*-irix6*)
8096 # Find out what ABI is being produced by ac_compile, and set linker
8097 # options accordingly.
8098 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8100 (eval $ac_compile) 2>&5
8101 ac_status=$?
8102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8103 test $ac_status = 0; }; then
8104 if test yes = "$lt_cv_prog_gnu_ld"; then
8105 case `/usr/bin/file conftest.$ac_objext` in
8106 *32-bit*)
8107 LD="${LD-ld} -melf32bsmip"
8108 ;;
8109 *N32*)
8110 LD="${LD-ld} -melf32bmipn32"
8111 ;;
8112 *64-bit*)
8113 LD="${LD-ld} -melf64bmip"
8114 ;;
8115 esac
8116 else
8117 case `/usr/bin/file conftest.$ac_objext` in
8118 *32-bit*)
8119 LD="${LD-ld} -32"
8120 ;;
8121 *N32*)
8122 LD="${LD-ld} -n32"
8123 ;;
8124 *64-bit*)
8125 LD="${LD-ld} -64"
8126 ;;
8127 esac
8128 fi
8129 fi
8130 rm -rf conftest*
8131 ;;
8132
8133 mips64*-*linux*)
8134 # Find out what ABI is being produced by ac_compile, and set linker
8135 # options accordingly.
8136 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8138 (eval $ac_compile) 2>&5
8139 ac_status=$?
8140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8141 test $ac_status = 0; }; then
8142 emul=elf
8143 case `/usr/bin/file conftest.$ac_objext` in
8144 *32-bit*)
8145 emul="${emul}32"
8146 ;;
8147 *64-bit*)
8148 emul="${emul}64"
8149 ;;
8150 esac
8151 case `/usr/bin/file conftest.$ac_objext` in
8152 *MSB*)
8153 emul="${emul}btsmip"
8154 ;;
8155 *LSB*)
8156 emul="${emul}ltsmip"
8157 ;;
8158 esac
8159 case `/usr/bin/file conftest.$ac_objext` in
8160 *N32*)
8161 emul="${emul}n32"
8162 ;;
8163 esac
8164 LD="${LD-ld} -m $emul"
8165 fi
8166 rm -rf conftest*
8167 ;;
8168
8169 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8170 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8171 # Find out what ABI is being produced by ac_compile, and set linker
8172 # options accordingly. Note that the listed cases only cover the
8173 # situations where additional linker options are needed (such as when
8174 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8175 # vice versa); the common cases where no linker options are needed do
8176 # not appear in the list.
8177 echo 'int i;' > conftest.$ac_ext
8178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8179 (eval $ac_compile) 2>&5
8180 ac_status=$?
8181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8182 test $ac_status = 0; }; then
8183 case `/usr/bin/file conftest.o` in
8184 *32-bit*)
8185 case $host in
8186 x86_64-*kfreebsd*-gnu)
8187 LD="${LD-ld} -m elf_i386_fbsd"
8188 ;;
8189 x86_64-*linux*)
8190 case `/usr/bin/file conftest.o` in
8191 *x86-64*)
8192 LD="${LD-ld} -m elf32_x86_64"
8193 ;;
8194 *)
8195 LD="${LD-ld} -m elf_i386"
8196 ;;
8197 esac
8198 ;;
8199 powerpc64le-*linux*)
8200 LD="${LD-ld} -m elf32lppclinux"
8201 ;;
8202 powerpc64-*linux*)
8203 LD="${LD-ld} -m elf32ppclinux"
8204 ;;
8205 s390x-*linux*)
8206 LD="${LD-ld} -m elf_s390"
8207 ;;
8208 sparc64-*linux*)
8209 LD="${LD-ld} -m elf32_sparc"
8210 ;;
8211 esac
8212 ;;
8213 *64-bit*)
8214 case $host in
8215 x86_64-*kfreebsd*-gnu)
8216 LD="${LD-ld} -m elf_x86_64_fbsd"
8217 ;;
8218 x86_64-*linux*)
8219 LD="${LD-ld} -m elf_x86_64"
8220 ;;
8221 powerpcle-*linux*)
8222 LD="${LD-ld} -m elf64lppc"
8223 ;;
8224 powerpc-*linux*)
8225 LD="${LD-ld} -m elf64ppc"
8226 ;;
8227 s390*-*linux*|s390*-*tpf*)
8228 LD="${LD-ld} -m elf64_s390"
8229 ;;
8230 sparc*-*linux*)
8231 LD="${LD-ld} -m elf64_sparc"
8232 ;;
8233 esac
8234 ;;
8235 esac
8236 fi
8237 rm -rf conftest*
8238 ;;
8239
8240 *-*-sco3.2v5*)
8241 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8242 SAVE_CFLAGS=$CFLAGS
8243 CFLAGS="$CFLAGS -belf"
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8245 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8246 if ${lt_cv_cc_needs_belf+:} false; then :
8247 $as_echo_n "(cached) " >&6
8248 else
8249 ac_ext=c
8250 ac_cpp='$CPP $CPPFLAGS'
8251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8254
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8257
8258 int
8259 main ()
8260 {
8261
8262 ;
8263 return 0;
8264 }
8265 _ACEOF
8266 if ac_fn_c_try_link "$LINENO"; then :
8267 lt_cv_cc_needs_belf=yes
8268 else
8269 lt_cv_cc_needs_belf=no
8270 fi
8271 rm -f core conftest.err conftest.$ac_objext \
8272 conftest$ac_exeext conftest.$ac_ext
8273 ac_ext=c
8274 ac_cpp='$CPP $CPPFLAGS'
8275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8278
8279 fi
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8281 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8282 if test yes != "$lt_cv_cc_needs_belf"; then
8283 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8284 CFLAGS=$SAVE_CFLAGS
8285 fi
8286 ;;
8287 *-*solaris*)
8288 # Find out what ABI is being produced by ac_compile, and set linker
8289 # options accordingly.
8290 echo 'int i;' > conftest.$ac_ext
8291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8292 (eval $ac_compile) 2>&5
8293 ac_status=$?
8294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8295 test $ac_status = 0; }; then
8296 case `/usr/bin/file conftest.o` in
8297 *64-bit*)
8298 case $lt_cv_prog_gnu_ld in
8299 yes*)
8300 case $host in
8301 i?86-*-solaris*|x86_64-*-solaris*)
8302 LD="${LD-ld} -m elf_x86_64"
8303 ;;
8304 sparc*-*-solaris*)
8305 LD="${LD-ld} -m elf64_sparc"
8306 ;;
8307 esac
8308 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8309 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8310 LD=${LD-ld}_sol2
8311 fi
8312 ;;
8313 *)
8314 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8315 LD="${LD-ld} -64"
8316 fi
8317 ;;
8318 esac
8319 ;;
8320 esac
8321 fi
8322 rm -rf conftest*
8323 ;;
8324 esac
8325
8326 need_locks=$enable_libtool_lock
8327
8328 if test -n "$ac_tool_prefix"; then
8329 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8330 set dummy ${ac_tool_prefix}mt; ac_word=$2
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8332 $as_echo_n "checking for $ac_word... " >&6; }
8333 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 if test -n "$MANIFEST_TOOL"; then
8337 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8338 else
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 for as_dir in $PATH
8341 do
8342 IFS=$as_save_IFS
8343 test -z "$as_dir" && as_dir=.
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8346 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 break 2
8349 fi
8350 done
8351 done
8352 IFS=$as_save_IFS
8353
8354 fi
8355 fi
8356 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8357 if test -n "$MANIFEST_TOOL"; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8359 $as_echo "$MANIFEST_TOOL" >&6; }
8360 else
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 $as_echo "no" >&6; }
8363 fi
8364
8365
8366 fi
8367 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8368 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8369 # Extract the first word of "mt", so it can be a program name with args.
8370 set dummy mt; ac_word=$2
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372 $as_echo_n "checking for $ac_word... " >&6; }
8373 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8374 $as_echo_n "(cached) " >&6
8375 else
8376 if test -n "$ac_ct_MANIFEST_TOOL"; then
8377 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8378 else
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 for as_dir in $PATH
8381 do
8382 IFS=$as_save_IFS
8383 test -z "$as_dir" && as_dir=.
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8386 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 break 2
8389 fi
8390 done
8391 done
8392 IFS=$as_save_IFS
8393
8394 fi
8395 fi
8396 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8397 if test -n "$ac_ct_MANIFEST_TOOL"; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8399 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8400 else
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8403 fi
8404
8405 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8406 MANIFEST_TOOL=":"
8407 else
8408 case $cross_compiling:$ac_tool_warned in
8409 yes:)
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8412 ac_tool_warned=yes ;;
8413 esac
8414 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8415 fi
8416 else
8417 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8418 fi
8419
8420 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8422 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8423 if ${lt_cv_path_mainfest_tool+:} false; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 lt_cv_path_mainfest_tool=no
8427 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8428 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8429 cat conftest.err >&5
8430 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8431 lt_cv_path_mainfest_tool=yes
8432 fi
8433 rm -f conftest*
8434 fi
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8436 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8437 if test yes != "$lt_cv_path_mainfest_tool"; then
8438 MANIFEST_TOOL=:
8439 fi
8440
8441
8442
8443
8444
8445
8446 case $host_os in
8447 rhapsody* | darwin*)
8448 if test -n "$ac_tool_prefix"; then
8449 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8450 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 if test -n "$DSYMUTIL"; then
8457 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8458 else
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8461 do
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8466 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8469 fi
8470 done
8471 done
8472 IFS=$as_save_IFS
8473
8474 fi
8475 fi
8476 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8477 if test -n "$DSYMUTIL"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8479 $as_echo "$DSYMUTIL" >&6; }
8480 else
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8483 fi
8484
8485
8486 fi
8487 if test -z "$ac_cv_prog_DSYMUTIL"; then
8488 ac_ct_DSYMUTIL=$DSYMUTIL
8489 # Extract the first word of "dsymutil", so it can be a program name with args.
8490 set dummy dsymutil; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 if test -n "$ac_ct_DSYMUTIL"; then
8497 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8498 else
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8501 do
8502 IFS=$as_save_IFS
8503 test -z "$as_dir" && as_dir=.
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508 break 2
8509 fi
8510 done
8511 done
8512 IFS=$as_save_IFS
8513
8514 fi
8515 fi
8516 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8517 if test -n "$ac_ct_DSYMUTIL"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8519 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8520 else
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8523 fi
8524
8525 if test "x$ac_ct_DSYMUTIL" = x; then
8526 DSYMUTIL=":"
8527 else
8528 case $cross_compiling:$ac_tool_warned in
8529 yes:)
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8532 ac_tool_warned=yes ;;
8533 esac
8534 DSYMUTIL=$ac_ct_DSYMUTIL
8535 fi
8536 else
8537 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8538 fi
8539
8540 if test -n "$ac_tool_prefix"; then
8541 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8542 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544 $as_echo_n "checking for $ac_word... " >&6; }
8545 if ${ac_cv_prog_NMEDIT+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 if test -n "$NMEDIT"; then
8549 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8550 else
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 for as_dir in $PATH
8553 do
8554 IFS=$as_save_IFS
8555 test -z "$as_dir" && as_dir=.
8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8558 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 break 2
8561 fi
8562 done
8563 done
8564 IFS=$as_save_IFS
8565
8566 fi
8567 fi
8568 NMEDIT=$ac_cv_prog_NMEDIT
8569 if test -n "$NMEDIT"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8571 $as_echo "$NMEDIT" >&6; }
8572 else
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8575 fi
8576
8577
8578 fi
8579 if test -z "$ac_cv_prog_NMEDIT"; then
8580 ac_ct_NMEDIT=$NMEDIT
8581 # Extract the first word of "nmedit", so it can be a program name with args.
8582 set dummy nmedit; ac_word=$2
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 $as_echo_n "checking for $ac_word... " >&6; }
8585 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 if test -n "$ac_ct_NMEDIT"; then
8589 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8590 else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8593 do
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 break 2
8601 fi
8602 done
8603 done
8604 IFS=$as_save_IFS
8605
8606 fi
8607 fi
8608 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8609 if test -n "$ac_ct_NMEDIT"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8611 $as_echo "$ac_ct_NMEDIT" >&6; }
8612 else
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8615 fi
8616
8617 if test "x$ac_ct_NMEDIT" = x; then
8618 NMEDIT=":"
8619 else
8620 case $cross_compiling:$ac_tool_warned in
8621 yes:)
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8624 ac_tool_warned=yes ;;
8625 esac
8626 NMEDIT=$ac_ct_NMEDIT
8627 fi
8628 else
8629 NMEDIT="$ac_cv_prog_NMEDIT"
8630 fi
8631
8632 if test -n "$ac_tool_prefix"; then
8633 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8634 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636 $as_echo_n "checking for $ac_word... " >&6; }
8637 if ${ac_cv_prog_LIPO+:} false; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 if test -n "$LIPO"; then
8641 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8642 else
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in $PATH
8645 do
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8650 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 break 2
8653 fi
8654 done
8655 done
8656 IFS=$as_save_IFS
8657
8658 fi
8659 fi
8660 LIPO=$ac_cv_prog_LIPO
8661 if test -n "$LIPO"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8663 $as_echo "$LIPO" >&6; }
8664 else
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8667 fi
8668
8669
8670 fi
8671 if test -z "$ac_cv_prog_LIPO"; then
8672 ac_ct_LIPO=$LIPO
8673 # Extract the first word of "lipo", so it can be a program name with args.
8674 set dummy lipo; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8678 $as_echo_n "(cached) " >&6
8679 else
8680 if test -n "$ac_ct_LIPO"; then
8681 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_prog_ac_ct_LIPO="lipo"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8693 fi
8694 done
8695 done
8696 IFS=$as_save_IFS
8697
8698 fi
8699 fi
8700 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8701 if test -n "$ac_ct_LIPO"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8703 $as_echo "$ac_ct_LIPO" >&6; }
8704 else
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8707 fi
8708
8709 if test "x$ac_ct_LIPO" = x; then
8710 LIPO=":"
8711 else
8712 case $cross_compiling:$ac_tool_warned in
8713 yes:)
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8716 ac_tool_warned=yes ;;
8717 esac
8718 LIPO=$ac_ct_LIPO
8719 fi
8720 else
8721 LIPO="$ac_cv_prog_LIPO"
8722 fi
8723
8724 if test -n "$ac_tool_prefix"; then
8725 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8726 set dummy ${ac_tool_prefix}otool; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if ${ac_cv_prog_OTOOL+:} false; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 if test -n "$OTOOL"; then
8733 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8734 else
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 for as_dir in $PATH
8737 do
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8742 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8744 break 2
8745 fi
8746 done
8747 done
8748 IFS=$as_save_IFS
8749
8750 fi
8751 fi
8752 OTOOL=$ac_cv_prog_OTOOL
8753 if test -n "$OTOOL"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8755 $as_echo "$OTOOL" >&6; }
8756 else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8759 fi
8760
8761
8762 fi
8763 if test -z "$ac_cv_prog_OTOOL"; then
8764 ac_ct_OTOOL=$OTOOL
8765 # Extract the first word of "otool", so it can be a program name with args.
8766 set dummy otool; ac_word=$2
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768 $as_echo_n "checking for $ac_word... " >&6; }
8769 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8770 $as_echo_n "(cached) " >&6
8771 else
8772 if test -n "$ac_ct_OTOOL"; then
8773 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8774 else
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776 for as_dir in $PATH
8777 do
8778 IFS=$as_save_IFS
8779 test -z "$as_dir" && as_dir=.
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8782 ac_cv_prog_ac_ct_OTOOL="otool"
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784 break 2
8785 fi
8786 done
8787 done
8788 IFS=$as_save_IFS
8789
8790 fi
8791 fi
8792 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8793 if test -n "$ac_ct_OTOOL"; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8795 $as_echo "$ac_ct_OTOOL" >&6; }
8796 else
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8799 fi
8800
8801 if test "x$ac_ct_OTOOL" = x; then
8802 OTOOL=":"
8803 else
8804 case $cross_compiling:$ac_tool_warned in
8805 yes:)
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8808 ac_tool_warned=yes ;;
8809 esac
8810 OTOOL=$ac_ct_OTOOL
8811 fi
8812 else
8813 OTOOL="$ac_cv_prog_OTOOL"
8814 fi
8815
8816 if test -n "$ac_tool_prefix"; then
8817 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8818 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if ${ac_cv_prog_OTOOL64+:} false; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 if test -n "$OTOOL64"; then
8825 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8826 else
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 for as_dir in $PATH
8829 do
8830 IFS=$as_save_IFS
8831 test -z "$as_dir" && as_dir=.
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8834 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8836 break 2
8837 fi
8838 done
8839 done
8840 IFS=$as_save_IFS
8841
8842 fi
8843 fi
8844 OTOOL64=$ac_cv_prog_OTOOL64
8845 if test -n "$OTOOL64"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8847 $as_echo "$OTOOL64" >&6; }
8848 else
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8851 fi
8852
8853
8854 fi
8855 if test -z "$ac_cv_prog_OTOOL64"; then
8856 ac_ct_OTOOL64=$OTOOL64
8857 # Extract the first word of "otool64", so it can be a program name with args.
8858 set dummy otool64; ac_word=$2
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8860 $as_echo_n "checking for $ac_word... " >&6; }
8861 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 if test -n "$ac_ct_OTOOL64"; then
8865 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8866 else
8867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868 for as_dir in $PATH
8869 do
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
8872 for ac_exec_ext in '' $ac_executable_extensions; do
8873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8874 ac_cv_prog_ac_ct_OTOOL64="otool64"
8875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 break 2
8877 fi
8878 done
8879 done
8880 IFS=$as_save_IFS
8881
8882 fi
8883 fi
8884 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8885 if test -n "$ac_ct_OTOOL64"; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8887 $as_echo "$ac_ct_OTOOL64" >&6; }
8888 else
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8890 $as_echo "no" >&6; }
8891 fi
8892
8893 if test "x$ac_ct_OTOOL64" = x; then
8894 OTOOL64=":"
8895 else
8896 case $cross_compiling:$ac_tool_warned in
8897 yes:)
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8900 ac_tool_warned=yes ;;
8901 esac
8902 OTOOL64=$ac_ct_OTOOL64
8903 fi
8904 else
8905 OTOOL64="$ac_cv_prog_OTOOL64"
8906 fi
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8935 $as_echo_n "checking for -single_module linker flag... " >&6; }
8936 if ${lt_cv_apple_cc_single_mod+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938 else
8939 lt_cv_apple_cc_single_mod=no
8940 if test -z "$LT_MULTI_MODULE"; then
8941 # By default we will add the -single_module flag. You can override
8942 # by either setting the environment variable LT_MULTI_MODULE
8943 # non-empty at configure time, or by adding -multi_module to the
8944 # link flags.
8945 rm -rf libconftest.dylib*
8946 echo "int foo(void){return 1;}" > conftest.c
8947 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8948 -dynamiclib -Wl,-single_module conftest.c" >&5
8949 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8950 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8951 _lt_result=$?
8952 # If there is a non-empty error log, and "single_module"
8953 # appears in it, assume the flag caused a linker warning
8954 if test -s conftest.err && $GREP single_module conftest.err; then
8955 cat conftest.err >&5
8956 # Otherwise, if the output was created with a 0 exit code from
8957 # the compiler, it worked.
8958 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8959 lt_cv_apple_cc_single_mod=yes
8960 else
8961 cat conftest.err >&5
8962 fi
8963 rm -rf libconftest.dylib*
8964 rm -f conftest.*
8965 fi
8966 fi
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8968 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8969
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8971 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8972 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 lt_cv_ld_exported_symbols_list=no
8976 save_LDFLAGS=$LDFLAGS
8977 echo "_main" > conftest.sym
8978 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8981
8982 int
8983 main ()
8984 {
8985
8986 ;
8987 return 0;
8988 }
8989 _ACEOF
8990 if ac_fn_c_try_link "$LINENO"; then :
8991 lt_cv_ld_exported_symbols_list=yes
8992 else
8993 lt_cv_ld_exported_symbols_list=no
8994 fi
8995 rm -f core conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997 LDFLAGS=$save_LDFLAGS
8998
8999 fi
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9001 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9002
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9004 $as_echo_n "checking for -force_load linker flag... " >&6; }
9005 if ${lt_cv_ld_force_load+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 lt_cv_ld_force_load=no
9009 cat > conftest.c << _LT_EOF
9010 int forced_loaded() { return 2;}
9011 _LT_EOF
9012 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9013 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9014 echo "$AR cru libconftest.a conftest.o" >&5
9015 $AR cru libconftest.a conftest.o 2>&5
9016 echo "$RANLIB libconftest.a" >&5
9017 $RANLIB libconftest.a 2>&5
9018 cat > conftest.c << _LT_EOF
9019 int main() { return 0;}
9020 _LT_EOF
9021 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9022 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9023 _lt_result=$?
9024 if test -s conftest.err && $GREP force_load conftest.err; then
9025 cat conftest.err >&5
9026 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9027 lt_cv_ld_force_load=yes
9028 else
9029 cat conftest.err >&5
9030 fi
9031 rm -f conftest.err libconftest.a conftest conftest.c
9032 rm -rf conftest.dSYM
9033
9034 fi
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9036 $as_echo "$lt_cv_ld_force_load" >&6; }
9037 case $host_os in
9038 rhapsody* | darwin1.[012])
9039 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9040 darwin1.*)
9041 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9042 darwin*) # darwin 5.x on
9043 # if running on 10.5 or later, the deployment target defaults
9044 # to the OS version, if on x86, and 10.4, the deployment
9045 # target defaults to 10.4. Don't you love it?
9046 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9047 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9048 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9049 10.[012][,.]*)
9050 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9051 10.*)
9052 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9053 esac
9054 ;;
9055 esac
9056 if test yes = "$lt_cv_apple_cc_single_mod"; then
9057 _lt_dar_single_mod='$single_module'
9058 fi
9059 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9060 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9061 else
9062 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9063 fi
9064 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9065 _lt_dsymutil='~$DSYMUTIL $lib || :'
9066 else
9067 _lt_dsymutil=
9068 fi
9069 ;;
9070 esac
9071
9072 # func_munge_path_list VARIABLE PATH
9073 # -----------------------------------
9074 # VARIABLE is name of variable containing _space_ separated list of
9075 # directories to be munged by the contents of PATH, which is string
9076 # having a format:
9077 # "DIR[:DIR]:"
9078 # string "DIR[ DIR]" will be prepended to VARIABLE
9079 # ":DIR[:DIR]"
9080 # string "DIR[ DIR]" will be appended to VARIABLE
9081 # "DIRP[:DIRP]::[DIRA:]DIRA"
9082 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9083 # "DIRA[ DIRA]" will be appended to VARIABLE
9084 # "DIR[:DIR]"
9085 # VARIABLE will be replaced by "DIR[ DIR]"
9086 func_munge_path_list ()
9087 {
9088 case x$2 in
9089 x)
9090 ;;
9091 *:)
9092 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9093 ;;
9094 x:*)
9095 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9096 ;;
9097 *::*)
9098 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9099 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9100 ;;
9101 *)
9102 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9103 ;;
9104 esac
9105 }
9106
9107 for ac_header in dlfcn.h
9108 do :
9109 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9110 "
9111 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9112 cat >>confdefs.h <<_ACEOF
9113 #define HAVE_DLFCN_H 1
9114 _ACEOF
9115
9116 fi
9117
9118 done
9119
9120
9121
9122
9123
9124 # Set options
9125
9126
9127
9128 enable_dlopen=no
9129
9130
9131 enable_win32_dll=no
9132
9133
9134
9135
9136
9137 # Check whether --with-pic was given.
9138 if test "${with_pic+set}" = set; then :
9139 withval=$with_pic; lt_p=${PACKAGE-default}
9140 case $withval in
9141 yes|no) pic_mode=$withval ;;
9142 *)
9143 pic_mode=default
9144 # Look at the argument we got. We use all the common list separators.
9145 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9146 for lt_pkg in $withval; do
9147 IFS=$lt_save_ifs
9148 if test "X$lt_pkg" = "X$lt_p"; then
9149 pic_mode=yes
9150 fi
9151 done
9152 IFS=$lt_save_ifs
9153 ;;
9154 esac
9155 else
9156 pic_mode=default
9157 fi
9158
9159
9160
9161
9162
9163
9164
9165
9166 # Check whether --enable-fast-install was given.
9167 if test "${enable_fast_install+set}" = set; then :
9168 enableval=$enable_fast_install; p=${PACKAGE-default}
9169 case $enableval in
9170 yes) enable_fast_install=yes ;;
9171 no) enable_fast_install=no ;;
9172 *)
9173 enable_fast_install=no
9174 # Look at the argument we got. We use all the common list separators.
9175 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9176 for pkg in $enableval; do
9177 IFS=$lt_save_ifs
9178 if test "X$pkg" = "X$p"; then
9179 enable_fast_install=yes
9180 fi
9181 done
9182 IFS=$lt_save_ifs
9183 ;;
9184 esac
9185 else
9186 enable_fast_install=yes
9187 fi
9188
9189
9190
9191
9192
9193
9194
9195
9196 shared_archive_member_spec=
9197 case $host,$enable_shared in
9198 power*-*-aix[5-9]*,yes)
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9200 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9201
9202 # Check whether --with-aix-soname was given.
9203 if test "${with_aix_soname+set}" = set; then :
9204 withval=$with_aix_soname; case $withval in
9205 aix|svr4|both)
9206 ;;
9207 *)
9208 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9209 ;;
9210 esac
9211 lt_cv_with_aix_soname=$with_aix_soname
9212 else
9213 if ${lt_cv_with_aix_soname+:} false; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 lt_cv_with_aix_soname=aix
9217 fi
9218
9219 with_aix_soname=$lt_cv_with_aix_soname
9220 fi
9221
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9223 $as_echo "$with_aix_soname" >&6; }
9224 if test aix != "$with_aix_soname"; then
9225 # For the AIX way of multilib, we name the shared archive member
9226 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9227 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9228 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9229 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9230 if test 64 = "${OBJECT_MODE-32}"; then
9231 shared_archive_member_spec=shr_64
9232 else
9233 shared_archive_member_spec=shr
9234 fi
9235 fi
9236 ;;
9237 *)
9238 with_aix_soname=aix
9239 ;;
9240 esac
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251 # This can be used to rebuild libtool when needed
9252 LIBTOOL_DEPS=$ltmain
9253
9254 # Always use our own libtool.
9255 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286 test -z "$LN_S" && LN_S="ln -s"
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301 if test -n "${ZSH_VERSION+set}"; then
9302 setopt NO_GLOB_SUBST
9303 fi
9304
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9306 $as_echo_n "checking for objdir... " >&6; }
9307 if ${lt_cv_objdir+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 rm -f .libs 2>/dev/null
9311 mkdir .libs 2>/dev/null
9312 if test -d .libs; then
9313 lt_cv_objdir=.libs
9314 else
9315 # MS-DOS does not allow filenames that begin with a dot.
9316 lt_cv_objdir=_libs
9317 fi
9318 rmdir .libs 2>/dev/null
9319 fi
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9321 $as_echo "$lt_cv_objdir" >&6; }
9322 objdir=$lt_cv_objdir
9323
9324
9325
9326
9327
9328 cat >>confdefs.h <<_ACEOF
9329 #define LT_OBJDIR "$lt_cv_objdir/"
9330 _ACEOF
9331
9332
9333
9334
9335 case $host_os in
9336 aix3*)
9337 # AIX sometimes has problems with the GCC collect2 program. For some
9338 # reason, if we set the COLLECT_NAMES environment variable, the problems
9339 # vanish in a puff of smoke.
9340 if test set != "${COLLECT_NAMES+set}"; then
9341 COLLECT_NAMES=
9342 export COLLECT_NAMES
9343 fi
9344 ;;
9345 esac
9346
9347 # Global variables:
9348 ofile=libtool
9349 can_build_shared=yes
9350
9351 # All known linkers require a '.a' archive for static linking (except MSVC,
9352 # which needs '.lib').
9353 libext=a
9354
9355 with_gnu_ld=$lt_cv_prog_gnu_ld
9356
9357 old_CC=$CC
9358 old_CFLAGS=$CFLAGS
9359
9360 # Set sane defaults for various variables
9361 test -z "$CC" && CC=cc
9362 test -z "$LTCC" && LTCC=$CC
9363 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9364 test -z "$LD" && LD=ld
9365 test -z "$ac_objext" && ac_objext=o
9366
9367 func_cc_basename $compiler
9368 cc_basename=$func_cc_basename_result
9369
9370
9371 # Only perform the check for file, if the check method requires it
9372 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9373 case $deplibs_check_method in
9374 file_magic*)
9375 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9377 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9378 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 case $MAGIC_CMD in
9382 [\\/*] | ?:[\\/]*)
9383 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9384 ;;
9385 *)
9386 lt_save_MAGIC_CMD=$MAGIC_CMD
9387 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9388 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9389 for ac_dir in $ac_dummy; do
9390 IFS=$lt_save_ifs
9391 test -z "$ac_dir" && ac_dir=.
9392 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9393 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9394 if test -n "$file_magic_test_file"; then
9395 case $deplibs_check_method in
9396 "file_magic "*)
9397 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9398 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9399 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9400 $EGREP "$file_magic_regex" > /dev/null; then
9401 :
9402 else
9403 cat <<_LT_EOF 1>&2
9404
9405 *** Warning: the command libtool uses to detect shared libraries,
9406 *** $file_magic_cmd, produces output that libtool cannot recognize.
9407 *** The result is that libtool may fail to recognize shared libraries
9408 *** as such. This will affect the creation of libtool libraries that
9409 *** depend on shared libraries, but programs linked with such libtool
9410 *** libraries will work regardless of this problem. Nevertheless, you
9411 *** may want to report the problem to your system manager and/or to
9412 *** bug-libtool@gnu.org
9413
9414 _LT_EOF
9415 fi ;;
9416 esac
9417 fi
9418 break
9419 fi
9420 done
9421 IFS=$lt_save_ifs
9422 MAGIC_CMD=$lt_save_MAGIC_CMD
9423 ;;
9424 esac
9425 fi
9426
9427 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9428 if test -n "$MAGIC_CMD"; then
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9430 $as_echo "$MAGIC_CMD" >&6; }
9431 else
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433 $as_echo "no" >&6; }
9434 fi
9435
9436
9437
9438
9439
9440 if test -z "$lt_cv_path_MAGIC_CMD"; then
9441 if test -n "$ac_tool_prefix"; then
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9443 $as_echo_n "checking for file... " >&6; }
9444 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9447 case $MAGIC_CMD in
9448 [\\/*] | ?:[\\/]*)
9449 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9450 ;;
9451 *)
9452 lt_save_MAGIC_CMD=$MAGIC_CMD
9453 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9454 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9455 for ac_dir in $ac_dummy; do
9456 IFS=$lt_save_ifs
9457 test -z "$ac_dir" && ac_dir=.
9458 if test -f "$ac_dir/file"; then
9459 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9460 if test -n "$file_magic_test_file"; then
9461 case $deplibs_check_method in
9462 "file_magic "*)
9463 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9464 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9465 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9466 $EGREP "$file_magic_regex" > /dev/null; then
9467 :
9468 else
9469 cat <<_LT_EOF 1>&2
9470
9471 *** Warning: the command libtool uses to detect shared libraries,
9472 *** $file_magic_cmd, produces output that libtool cannot recognize.
9473 *** The result is that libtool may fail to recognize shared libraries
9474 *** as such. This will affect the creation of libtool libraries that
9475 *** depend on shared libraries, but programs linked with such libtool
9476 *** libraries will work regardless of this problem. Nevertheless, you
9477 *** may want to report the problem to your system manager and/or to
9478 *** bug-libtool@gnu.org
9479
9480 _LT_EOF
9481 fi ;;
9482 esac
9483 fi
9484 break
9485 fi
9486 done
9487 IFS=$lt_save_ifs
9488 MAGIC_CMD=$lt_save_MAGIC_CMD
9489 ;;
9490 esac
9491 fi
9492
9493 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9494 if test -n "$MAGIC_CMD"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9496 $as_echo "$MAGIC_CMD" >&6; }
9497 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9500 fi
9501
9502
9503 else
9504 MAGIC_CMD=:
9505 fi
9506 fi
9507
9508 fi
9509 ;;
9510 esac
9511
9512 # Use C for the default configuration in the libtool script
9513
9514 lt_save_CC=$CC
9515 ac_ext=c
9516 ac_cpp='$CPP $CPPFLAGS'
9517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9520
9521
9522 # Source file extension for C test sources.
9523 ac_ext=c
9524
9525 # Object file extension for compiled C test sources.
9526 objext=o
9527 objext=$objext
9528
9529 # Code to be used in simple compile tests
9530 lt_simple_compile_test_code="int some_variable = 0;"
9531
9532 # Code to be used in simple link tests
9533 lt_simple_link_test_code='int main(){return(0);}'
9534
9535
9536
9537
9538
9539
9540
9541 # If no C compiler was specified, use CC.
9542 LTCC=${LTCC-"$CC"}
9543
9544 # If no C compiler flags were specified, use CFLAGS.
9545 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9546
9547 # Allow CC to be a program name with arguments.
9548 compiler=$CC
9549
9550 # Save the default compiler, since it gets overwritten when the other
9551 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9552 compiler_DEFAULT=$CC
9553
9554 # save warnings/boilerplate of simple test code
9555 ac_outfile=conftest.$ac_objext
9556 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9557 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9558 _lt_compiler_boilerplate=`cat conftest.err`
9559 $RM conftest*
9560
9561 ac_outfile=conftest.$ac_objext
9562 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9563 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9564 _lt_linker_boilerplate=`cat conftest.err`
9565 $RM -r conftest*
9566
9567
9568 if test -n "$compiler"; then
9569
9570 lt_prog_compiler_no_builtin_flag=
9571
9572 if test yes = "$GCC"; then
9573 case $cc_basename in
9574 nvcc*)
9575 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9576 *)
9577 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9578 esac
9579
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9581 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9582 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 lt_cv_prog_compiler_rtti_exceptions=no
9586 ac_outfile=conftest.$ac_objext
9587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9588 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9589 # Insert the option either (1) after the last *FLAGS variable, or
9590 # (2) before a word containing "conftest.", or (3) at the end.
9591 # Note that $ac_compile itself does not contain backslashes and begins
9592 # with a dollar sign (not a hyphen), so the echo should work correctly.
9593 # The option is referenced via a variable to avoid confusing sed.
9594 lt_compile=`echo "$ac_compile" | $SED \
9595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9597 -e 's:$: $lt_compiler_flag:'`
9598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9599 (eval "$lt_compile" 2>conftest.err)
9600 ac_status=$?
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 if (exit $ac_status) && test -s "$ac_outfile"; then
9604 # The compiler can only warn and ignore the option if not recognized
9605 # So say no if there are warnings other than the usual output.
9606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9608 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9609 lt_cv_prog_compiler_rtti_exceptions=yes
9610 fi
9611 fi
9612 $RM conftest*
9613
9614 fi
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9616 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9617
9618 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9619 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9620 else
9621 :
9622 fi
9623
9624 fi
9625
9626
9627
9628
9629
9630
9631 lt_prog_compiler_wl=
9632 lt_prog_compiler_pic=
9633 lt_prog_compiler_static=
9634
9635
9636 if test yes = "$GCC"; then
9637 lt_prog_compiler_wl='-Wl,'
9638 lt_prog_compiler_static='-static'
9639
9640 case $host_os in
9641 aix*)
9642 # All AIX code is PIC.
9643 if test ia64 = "$host_cpu"; then
9644 # AIX 5 now supports IA64 processor
9645 lt_prog_compiler_static='-Bstatic'
9646 fi
9647 lt_prog_compiler_pic='-fPIC'
9648 ;;
9649
9650 amigaos*)
9651 case $host_cpu in
9652 powerpc)
9653 # see comment about AmigaOS4 .so support
9654 lt_prog_compiler_pic='-fPIC'
9655 ;;
9656 m68k)
9657 # FIXME: we need at least 68020 code to build shared libraries, but
9658 # adding the '-m68020' flag to GCC prevents building anything better,
9659 # like '-m68040'.
9660 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9661 ;;
9662 esac
9663 ;;
9664
9665 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9666 # PIC is the default for these OSes.
9667 ;;
9668
9669 mingw* | cygwin* | pw32* | os2* | cegcc*)
9670 # This hack is so that the source file can tell whether it is being
9671 # built for inclusion in a dll (and should export symbols for example).
9672 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9673 # (--disable-auto-import) libraries
9674 lt_prog_compiler_pic='-DDLL_EXPORT'
9675 case $host_os in
9676 os2*)
9677 lt_prog_compiler_static='$wl-static'
9678 ;;
9679 esac
9680 ;;
9681
9682 darwin* | rhapsody*)
9683 # PIC is the default on this platform
9684 # Common symbols not allowed in MH_DYLIB files
9685 lt_prog_compiler_pic='-fno-common'
9686 ;;
9687
9688 haiku*)
9689 # PIC is the default for Haiku.
9690 # The "-static" flag exists, but is broken.
9691 lt_prog_compiler_static=
9692 ;;
9693
9694 hpux*)
9695 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9696 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9697 # sets the default TLS model and affects inlining.
9698 case $host_cpu in
9699 hppa*64*)
9700 # +Z the default
9701 ;;
9702 *)
9703 lt_prog_compiler_pic='-fPIC'
9704 ;;
9705 esac
9706 ;;
9707
9708 interix[3-9]*)
9709 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9710 # Instead, we relocate shared libraries at runtime.
9711 ;;
9712
9713 msdosdjgpp*)
9714 # Just because we use GCC doesn't mean we suddenly get shared libraries
9715 # on systems that don't support them.
9716 lt_prog_compiler_can_build_shared=no
9717 enable_shared=no
9718 ;;
9719
9720 *nto* | *qnx*)
9721 # QNX uses GNU C++, but need to define -shared option too, otherwise
9722 # it will coredump.
9723 lt_prog_compiler_pic='-fPIC -shared'
9724 ;;
9725
9726 sysv4*MP*)
9727 if test -d /usr/nec; then
9728 lt_prog_compiler_pic=-Kconform_pic
9729 fi
9730 ;;
9731
9732 *)
9733 lt_prog_compiler_pic='-fPIC'
9734 ;;
9735 esac
9736
9737 case $cc_basename in
9738 nvcc*) # Cuda Compiler Driver 2.2
9739 lt_prog_compiler_wl='-Xlinker '
9740 if test -n "$lt_prog_compiler_pic"; then
9741 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9742 fi
9743 ;;
9744 esac
9745 else
9746 # PORTME Check for flag to pass linker flags through the system compiler.
9747 case $host_os in
9748 aix*)
9749 lt_prog_compiler_wl='-Wl,'
9750 if test ia64 = "$host_cpu"; then
9751 # AIX 5 now supports IA64 processor
9752 lt_prog_compiler_static='-Bstatic'
9753 else
9754 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9755 fi
9756 ;;
9757
9758 darwin* | rhapsody*)
9759 # PIC is the default on this platform
9760 # Common symbols not allowed in MH_DYLIB files
9761 lt_prog_compiler_pic='-fno-common'
9762 case $cc_basename in
9763 nagfor*)
9764 # NAG Fortran compiler
9765 lt_prog_compiler_wl='-Wl,-Wl,,'
9766 lt_prog_compiler_pic='-PIC'
9767 lt_prog_compiler_static='-Bstatic'
9768 ;;
9769 esac
9770 ;;
9771
9772 mingw* | cygwin* | pw32* | os2* | cegcc*)
9773 # This hack is so that the source file can tell whether it is being
9774 # built for inclusion in a dll (and should export symbols for example).
9775 lt_prog_compiler_pic='-DDLL_EXPORT'
9776 case $host_os in
9777 os2*)
9778 lt_prog_compiler_static='$wl-static'
9779 ;;
9780 esac
9781 ;;
9782
9783 hpux9* | hpux10* | hpux11*)
9784 lt_prog_compiler_wl='-Wl,'
9785 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9786 # not for PA HP-UX.
9787 case $host_cpu in
9788 hppa*64*|ia64*)
9789 # +Z the default
9790 ;;
9791 *)
9792 lt_prog_compiler_pic='+Z'
9793 ;;
9794 esac
9795 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9796 lt_prog_compiler_static='$wl-a ${wl}archive'
9797 ;;
9798
9799 irix5* | irix6* | nonstopux*)
9800 lt_prog_compiler_wl='-Wl,'
9801 # PIC (with -KPIC) is the default.
9802 lt_prog_compiler_static='-non_shared'
9803 ;;
9804
9805 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9806 case $cc_basename in
9807 # old Intel for x86_64, which still supported -KPIC.
9808 ecc*)
9809 lt_prog_compiler_wl='-Wl,'
9810 lt_prog_compiler_pic='-KPIC'
9811 lt_prog_compiler_static='-static'
9812 ;;
9813 # icc used to be incompatible with GCC.
9814 # ICC 10 doesn't accept -KPIC any more.
9815 icc* | ifort*)
9816 lt_prog_compiler_wl='-Wl,'
9817 lt_prog_compiler_pic='-fPIC'
9818 lt_prog_compiler_static='-static'
9819 ;;
9820 # Lahey Fortran 8.1.
9821 lf95*)
9822 lt_prog_compiler_wl='-Wl,'
9823 lt_prog_compiler_pic='--shared'
9824 lt_prog_compiler_static='--static'
9825 ;;
9826 nagfor*)
9827 # NAG Fortran compiler
9828 lt_prog_compiler_wl='-Wl,-Wl,,'
9829 lt_prog_compiler_pic='-PIC'
9830 lt_prog_compiler_static='-Bstatic'
9831 ;;
9832 tcc*)
9833 # Fabrice Bellard et al's Tiny C Compiler
9834 lt_prog_compiler_wl='-Wl,'
9835 lt_prog_compiler_pic='-fPIC'
9836 lt_prog_compiler_static='-static'
9837 ;;
9838 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9839 # Portland Group compilers (*not* the Pentium gcc compiler,
9840 # which looks to be a dead project)
9841 lt_prog_compiler_wl='-Wl,'
9842 lt_prog_compiler_pic='-fpic'
9843 lt_prog_compiler_static='-Bstatic'
9844 ;;
9845 ccc*)
9846 lt_prog_compiler_wl='-Wl,'
9847 # All Alpha code is PIC.
9848 lt_prog_compiler_static='-non_shared'
9849 ;;
9850 xl* | bgxl* | bgf* | mpixl*)
9851 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9852 lt_prog_compiler_wl='-Wl,'
9853 lt_prog_compiler_pic='-qpic'
9854 lt_prog_compiler_static='-qstaticlink'
9855 ;;
9856 *)
9857 case `$CC -V 2>&1 | sed 5q` in
9858 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9859 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9860 lt_prog_compiler_pic='-KPIC'
9861 lt_prog_compiler_static='-Bstatic'
9862 lt_prog_compiler_wl=''
9863 ;;
9864 *Sun\ F* | *Sun*Fortran*)
9865 lt_prog_compiler_pic='-KPIC'
9866 lt_prog_compiler_static='-Bstatic'
9867 lt_prog_compiler_wl='-Qoption ld '
9868 ;;
9869 *Sun\ C*)
9870 # Sun C 5.9
9871 lt_prog_compiler_pic='-KPIC'
9872 lt_prog_compiler_static='-Bstatic'
9873 lt_prog_compiler_wl='-Wl,'
9874 ;;
9875 *Intel*\ [CF]*Compiler*)
9876 lt_prog_compiler_wl='-Wl,'
9877 lt_prog_compiler_pic='-fPIC'
9878 lt_prog_compiler_static='-static'
9879 ;;
9880 *Portland\ Group*)
9881 lt_prog_compiler_wl='-Wl,'
9882 lt_prog_compiler_pic='-fpic'
9883 lt_prog_compiler_static='-Bstatic'
9884 ;;
9885 esac
9886 ;;
9887 esac
9888 ;;
9889
9890 newsos6)
9891 lt_prog_compiler_pic='-KPIC'
9892 lt_prog_compiler_static='-Bstatic'
9893 ;;
9894
9895 *nto* | *qnx*)
9896 # QNX uses GNU C++, but need to define -shared option too, otherwise
9897 # it will coredump.
9898 lt_prog_compiler_pic='-fPIC -shared'
9899 ;;
9900
9901 osf3* | osf4* | osf5*)
9902 lt_prog_compiler_wl='-Wl,'
9903 # All OSF/1 code is PIC.
9904 lt_prog_compiler_static='-non_shared'
9905 ;;
9906
9907 rdos*)
9908 lt_prog_compiler_static='-non_shared'
9909 ;;
9910
9911 solaris*)
9912 lt_prog_compiler_pic='-KPIC'
9913 lt_prog_compiler_static='-Bstatic'
9914 case $cc_basename in
9915 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9916 lt_prog_compiler_wl='-Qoption ld ';;
9917 *)
9918 lt_prog_compiler_wl='-Wl,';;
9919 esac
9920 ;;
9921
9922 sunos4*)
9923 lt_prog_compiler_wl='-Qoption ld '
9924 lt_prog_compiler_pic='-PIC'
9925 lt_prog_compiler_static='-Bstatic'
9926 ;;
9927
9928 sysv4 | sysv4.2uw2* | sysv4.3*)
9929 lt_prog_compiler_wl='-Wl,'
9930 lt_prog_compiler_pic='-KPIC'
9931 lt_prog_compiler_static='-Bstatic'
9932 ;;
9933
9934 sysv4*MP*)
9935 if test -d /usr/nec; then
9936 lt_prog_compiler_pic='-Kconform_pic'
9937 lt_prog_compiler_static='-Bstatic'
9938 fi
9939 ;;
9940
9941 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9942 lt_prog_compiler_wl='-Wl,'
9943 lt_prog_compiler_pic='-KPIC'
9944 lt_prog_compiler_static='-Bstatic'
9945 ;;
9946
9947 unicos*)
9948 lt_prog_compiler_wl='-Wl,'
9949 lt_prog_compiler_can_build_shared=no
9950 ;;
9951
9952 uts4*)
9953 lt_prog_compiler_pic='-pic'
9954 lt_prog_compiler_static='-Bstatic'
9955 ;;
9956
9957 *)
9958 lt_prog_compiler_can_build_shared=no
9959 ;;
9960 esac
9961 fi
9962
9963 case $host_os in
9964 # For platforms that do not support PIC, -DPIC is meaningless:
9965 *djgpp*)
9966 lt_prog_compiler_pic=
9967 ;;
9968 *)
9969 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9970 ;;
9971 esac
9972
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9974 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9975 if ${lt_cv_prog_compiler_pic+:} false; then :
9976 $as_echo_n "(cached) " >&6
9977 else
9978 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9979 fi
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9981 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9982 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9983
9984 #
9985 # Check to make sure the PIC flag actually works.
9986 #
9987 if test -n "$lt_prog_compiler_pic"; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9989 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9990 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9991 $as_echo_n "(cached) " >&6
9992 else
9993 lt_cv_prog_compiler_pic_works=no
9994 ac_outfile=conftest.$ac_objext
9995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9996 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9997 # Insert the option either (1) after the last *FLAGS variable, or
9998 # (2) before a word containing "conftest.", or (3) at the end.
9999 # Note that $ac_compile itself does not contain backslashes and begins
10000 # with a dollar sign (not a hyphen), so the echo should work correctly.
10001 # The option is referenced via a variable to avoid confusing sed.
10002 lt_compile=`echo "$ac_compile" | $SED \
10003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10005 -e 's:$: $lt_compiler_flag:'`
10006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10007 (eval "$lt_compile" 2>conftest.err)
10008 ac_status=$?
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 if (exit $ac_status) && test -s "$ac_outfile"; then
10012 # The compiler can only warn and ignore the option if not recognized
10013 # So say no if there are warnings other than the usual output.
10014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10017 lt_cv_prog_compiler_pic_works=yes
10018 fi
10019 fi
10020 $RM conftest*
10021
10022 fi
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10024 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10025
10026 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10027 case $lt_prog_compiler_pic in
10028 "" | " "*) ;;
10029 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10030 esac
10031 else
10032 lt_prog_compiler_pic=
10033 lt_prog_compiler_can_build_shared=no
10034 fi
10035
10036 fi
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048 #
10049 # Check to make sure the static flag actually works.
10050 #
10051 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10053 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10054 if ${lt_cv_prog_compiler_static_works+:} false; then :
10055 $as_echo_n "(cached) " >&6
10056 else
10057 lt_cv_prog_compiler_static_works=no
10058 save_LDFLAGS=$LDFLAGS
10059 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10060 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10062 # The linker can only warn and ignore the option if not recognized
10063 # So say no if there are warnings
10064 if test -s conftest.err; then
10065 # Append any errors to the config.log.
10066 cat conftest.err 1>&5
10067 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10069 if diff conftest.exp conftest.er2 >/dev/null; then
10070 lt_cv_prog_compiler_static_works=yes
10071 fi
10072 else
10073 lt_cv_prog_compiler_static_works=yes
10074 fi
10075 fi
10076 $RM -r conftest*
10077 LDFLAGS=$save_LDFLAGS
10078
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10081 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10082
10083 if test yes = "$lt_cv_prog_compiler_static_works"; then
10084 :
10085 else
10086 lt_prog_compiler_static=
10087 fi
10088
10089
10090
10091
10092
10093
10094
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10096 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10097 if ${lt_cv_prog_compiler_c_o+:} false; then :
10098 $as_echo_n "(cached) " >&6
10099 else
10100 lt_cv_prog_compiler_c_o=no
10101 $RM -r conftest 2>/dev/null
10102 mkdir conftest
10103 cd conftest
10104 mkdir out
10105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10106
10107 lt_compiler_flag="-o out/conftest2.$ac_objext"
10108 # Insert the option either (1) after the last *FLAGS variable, or
10109 # (2) before a word containing "conftest.", or (3) at the end.
10110 # Note that $ac_compile itself does not contain backslashes and begins
10111 # with a dollar sign (not a hyphen), so the echo should work correctly.
10112 lt_compile=`echo "$ac_compile" | $SED \
10113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10115 -e 's:$: $lt_compiler_flag:'`
10116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10117 (eval "$lt_compile" 2>out/conftest.err)
10118 ac_status=$?
10119 cat out/conftest.err >&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10122 then
10123 # The compiler can only warn and ignore the option if not recognized
10124 # So say no if there are warnings
10125 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10128 lt_cv_prog_compiler_c_o=yes
10129 fi
10130 fi
10131 chmod u+w . 2>&5
10132 $RM conftest*
10133 # SGI C++ compiler will create directory out/ii_files/ for
10134 # template instantiation
10135 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10136 $RM out/* && rmdir out
10137 cd ..
10138 $RM -r conftest
10139 $RM conftest*
10140
10141 fi
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10143 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10144
10145
10146
10147
10148
10149
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10151 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10152 if ${lt_cv_prog_compiler_c_o+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 lt_cv_prog_compiler_c_o=no
10156 $RM -r conftest 2>/dev/null
10157 mkdir conftest
10158 cd conftest
10159 mkdir out
10160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10161
10162 lt_compiler_flag="-o out/conftest2.$ac_objext"
10163 # Insert the option either (1) after the last *FLAGS variable, or
10164 # (2) before a word containing "conftest.", or (3) at the end.
10165 # Note that $ac_compile itself does not contain backslashes and begins
10166 # with a dollar sign (not a hyphen), so the echo should work correctly.
10167 lt_compile=`echo "$ac_compile" | $SED \
10168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10170 -e 's:$: $lt_compiler_flag:'`
10171 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10172 (eval "$lt_compile" 2>out/conftest.err)
10173 ac_status=$?
10174 cat out/conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10177 then
10178 # The compiler can only warn and ignore the option if not recognized
10179 # So say no if there are warnings
10180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10183 lt_cv_prog_compiler_c_o=yes
10184 fi
10185 fi
10186 chmod u+w . 2>&5
10187 $RM conftest*
10188 # SGI C++ compiler will create directory out/ii_files/ for
10189 # template instantiation
10190 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10191 $RM out/* && rmdir out
10192 cd ..
10193 $RM -r conftest
10194 $RM conftest*
10195
10196 fi
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10198 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10199
10200
10201
10202
10203 hard_links=nottested
10204 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10205 # do not overwrite the value of need_locks provided by the user
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10207 $as_echo_n "checking if we can lock with hard links... " >&6; }
10208 hard_links=yes
10209 $RM conftest*
10210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10211 touch conftest.a
10212 ln conftest.a conftest.b 2>&5 || hard_links=no
10213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10215 $as_echo "$hard_links" >&6; }
10216 if test no = "$hard_links"; then
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10218 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10219 need_locks=warn
10220 fi
10221 else
10222 need_locks=no
10223 fi
10224
10225
10226
10227
10228
10229
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10231 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10232
10233 runpath_var=
10234 allow_undefined_flag=
10235 always_export_symbols=no
10236 archive_cmds=
10237 archive_expsym_cmds=
10238 compiler_needs_object=no
10239 enable_shared_with_static_runtimes=no
10240 export_dynamic_flag_spec=
10241 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10242 hardcode_automatic=no
10243 hardcode_direct=no
10244 hardcode_direct_absolute=no
10245 hardcode_libdir_flag_spec=
10246 hardcode_libdir_separator=
10247 hardcode_minus_L=no
10248 hardcode_shlibpath_var=unsupported
10249 inherit_rpath=no
10250 link_all_deplibs=unknown
10251 module_cmds=
10252 module_expsym_cmds=
10253 old_archive_from_new_cmds=
10254 old_archive_from_expsyms_cmds=
10255 thread_safe_flag_spec=
10256 whole_archive_flag_spec=
10257 # include_expsyms should be a list of space-separated symbols to be *always*
10258 # included in the symbol list
10259 include_expsyms=
10260 # exclude_expsyms can be an extended regexp of symbols to exclude
10261 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10262 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10263 # as well as any symbol that contains 'd'.
10264 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10265 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10266 # platforms (ab)use it in PIC code, but their linkers get confused if
10267 # the symbol is explicitly referenced. Since portable code cannot
10268 # rely on this symbol name, it's probably fine to never include it in
10269 # preloaded symbol tables.
10270 # Exclude shared library initialization/finalization symbols.
10271 extract_expsyms_cmds=
10272
10273 case $host_os in
10274 cygwin* | mingw* | pw32* | cegcc*)
10275 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10276 # When not using gcc, we currently assume that we are using
10277 # Microsoft Visual C++.
10278 if test yes != "$GCC"; then
10279 with_gnu_ld=no
10280 fi
10281 ;;
10282 interix*)
10283 # we just hope/assume this is gcc and not c89 (= MSVC++)
10284 with_gnu_ld=yes
10285 ;;
10286 openbsd* | bitrig*)
10287 with_gnu_ld=no
10288 ;;
10289 esac
10290
10291 ld_shlibs=yes
10292
10293 # On some targets, GNU ld is compatible enough with the native linker
10294 # that we're better off using the native interface for both.
10295 lt_use_gnu_ld_interface=no
10296 if test yes = "$with_gnu_ld"; then
10297 case $host_os in
10298 aix*)
10299 # The AIX port of GNU ld has always aspired to compatibility
10300 # with the native linker. However, as the warning in the GNU ld
10301 # block says, versions before 2.19.5* couldn't really create working
10302 # shared libraries, regardless of the interface used.
10303 case `$LD -v 2>&1` in
10304 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10305 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10306 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10307 *)
10308 lt_use_gnu_ld_interface=yes
10309 ;;
10310 esac
10311 ;;
10312 *)
10313 lt_use_gnu_ld_interface=yes
10314 ;;
10315 esac
10316 fi
10317
10318 if test yes = "$lt_use_gnu_ld_interface"; then
10319 # If archive_cmds runs LD, not CC, wlarc should be empty
10320 wlarc='$wl'
10321
10322 # Set some defaults for GNU ld with shared library support. These
10323 # are reset later if shared libraries are not supported. Putting them
10324 # here allows them to be overridden if necessary.
10325 runpath_var=LD_RUN_PATH
10326 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10327 export_dynamic_flag_spec='$wl--export-dynamic'
10328 # ancient GNU ld didn't support --whole-archive et. al.
10329 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10330 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10331 else
10332 whole_archive_flag_spec=
10333 fi
10334 supports_anon_versioning=no
10335 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10336 *GNU\ gold*) supports_anon_versioning=yes ;;
10337 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10338 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10339 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10340 *\ 2.11.*) ;; # other 2.11 versions
10341 *) supports_anon_versioning=yes ;;
10342 esac
10343
10344 # See if GNU ld supports shared libraries.
10345 case $host_os in
10346 aix[3-9]*)
10347 # On AIX/PPC, the GNU linker is very broken
10348 if test ia64 != "$host_cpu"; then
10349 ld_shlibs=no
10350 cat <<_LT_EOF 1>&2
10351
10352 *** Warning: the GNU linker, at least up to release 2.19, is reported
10353 *** to be unable to reliably create shared libraries on AIX.
10354 *** Therefore, libtool is disabling shared libraries support. If you
10355 *** really care for shared libraries, you may want to install binutils
10356 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10357 *** You will then need to restart the configuration process.
10358
10359 _LT_EOF
10360 fi
10361 ;;
10362
10363 amigaos*)
10364 case $host_cpu in
10365 powerpc)
10366 # see comment about AmigaOS4 .so support
10367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10368 archive_expsym_cmds=''
10369 ;;
10370 m68k)
10371 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)'
10372 hardcode_libdir_flag_spec='-L$libdir'
10373 hardcode_minus_L=yes
10374 ;;
10375 esac
10376 ;;
10377
10378 beos*)
10379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10380 allow_undefined_flag=unsupported
10381 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10382 # support --undefined. This deserves some investigation. FIXME
10383 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10384 else
10385 ld_shlibs=no
10386 fi
10387 ;;
10388
10389 cygwin* | mingw* | pw32* | cegcc*)
10390 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10391 # as there is no search path for DLLs.
10392 hardcode_libdir_flag_spec='-L$libdir'
10393 export_dynamic_flag_spec='$wl--export-all-symbols'
10394 allow_undefined_flag=unsupported
10395 always_export_symbols=no
10396 enable_shared_with_static_runtimes=yes
10397 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10398 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10399
10400 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10402 # If the export-symbols file already is a .def file, use it as
10403 # is; otherwise, prepend EXPORTS...
10404 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10405 cp $export_symbols $output_objdir/$soname.def;
10406 else
10407 echo EXPORTS > $output_objdir/$soname.def;
10408 cat $export_symbols >> $output_objdir/$soname.def;
10409 fi~
10410 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10411 else
10412 ld_shlibs=no
10413 fi
10414 ;;
10415
10416 haiku*)
10417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10418 link_all_deplibs=yes
10419 ;;
10420
10421 os2*)
10422 hardcode_libdir_flag_spec='-L$libdir'
10423 hardcode_minus_L=yes
10424 allow_undefined_flag=unsupported
10425 shrext_cmds=.dll
10426 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10427 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10428 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10429 $ECHO EXPORTS >> $output_objdir/$libname.def~
10430 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10431 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10432 emximp -o $lib $output_objdir/$libname.def'
10433 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10434 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10435 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10436 $ECHO EXPORTS >> $output_objdir/$libname.def~
10437 prefix_cmds="$SED"~
10438 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10439 prefix_cmds="$prefix_cmds -e 1d";
10440 fi~
10441 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10442 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10443 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10444 emximp -o $lib $output_objdir/$libname.def'
10445 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10446 enable_shared_with_static_runtimes=yes
10447 ;;
10448
10449 interix[3-9]*)
10450 hardcode_direct=no
10451 hardcode_shlibpath_var=no
10452 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10453 export_dynamic_flag_spec='$wl-E'
10454 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10455 # Instead, shared libraries are loaded at an image base (0x10000000 by
10456 # default) and relocated if they conflict, which is a slow very memory
10457 # consuming and fragmenting process. To avoid this, we pick a random,
10458 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10459 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10460 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10461 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'
10462 ;;
10463
10464 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10465 tmp_diet=no
10466 if test linux-dietlibc = "$host_os"; then
10467 case $cc_basename in
10468 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10469 esac
10470 fi
10471 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10472 && test no = "$tmp_diet"
10473 then
10474 tmp_addflag=' $pic_flag'
10475 tmp_sharedflag='-shared'
10476 case $cc_basename,$host_cpu in
10477 pgcc*) # Portland Group C compiler
10478 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10479 tmp_addflag=' $pic_flag'
10480 ;;
10481 pgf77* | pgf90* | pgf95* | pgfortran*)
10482 # Portland Group f77 and f90 compilers
10483 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10484 tmp_addflag=' $pic_flag -Mnomain' ;;
10485 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10486 tmp_addflag=' -i_dynamic' ;;
10487 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10488 tmp_addflag=' -i_dynamic -nofor_main' ;;
10489 ifc* | ifort*) # Intel Fortran compiler
10490 tmp_addflag=' -nofor_main' ;;
10491 lf95*) # Lahey Fortran 8.1
10492 whole_archive_flag_spec=
10493 tmp_sharedflag='--shared' ;;
10494 nagfor*) # NAGFOR 5.3
10495 tmp_sharedflag='-Wl,-shared' ;;
10496 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10497 tmp_sharedflag='-qmkshrobj'
10498 tmp_addflag= ;;
10499 nvcc*) # Cuda Compiler Driver 2.2
10500 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10501 compiler_needs_object=yes
10502 ;;
10503 esac
10504 case `$CC -V 2>&1 | sed 5q` in
10505 *Sun\ C*) # Sun C 5.9
10506 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10507 compiler_needs_object=yes
10508 tmp_sharedflag='-G' ;;
10509 *Sun\ F*) # Sun Fortran 8.3
10510 tmp_sharedflag='-G' ;;
10511 esac
10512 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10513
10514 if test yes = "$supports_anon_versioning"; then
10515 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10517 echo "local: *; };" >> $output_objdir/$libname.ver~
10518 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10519 fi
10520
10521 case $cc_basename in
10522 tcc*)
10523 export_dynamic_flag_spec='-rdynamic'
10524 ;;
10525 xlf* | bgf* | bgxlf* | mpixlf*)
10526 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10527 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10528 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10529 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10530 if test yes = "$supports_anon_versioning"; then
10531 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10533 echo "local: *; };" >> $output_objdir/$libname.ver~
10534 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10535 fi
10536 ;;
10537 esac
10538 else
10539 ld_shlibs=no
10540 fi
10541 ;;
10542
10543 netbsd*)
10544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10545 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10546 wlarc=
10547 else
10548 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10549 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10550 fi
10551 ;;
10552
10553 solaris*)
10554 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10555 ld_shlibs=no
10556 cat <<_LT_EOF 1>&2
10557
10558 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10559 *** create shared libraries on Solaris systems. Therefore, libtool
10560 *** is disabling shared libraries support. We urge you to upgrade GNU
10561 *** binutils to release 2.9.1 or newer. Another option is to modify
10562 *** your PATH or compiler configuration so that the native linker is
10563 *** used, and then restart.
10564
10565 _LT_EOF
10566 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10567 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10568 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10569 else
10570 ld_shlibs=no
10571 fi
10572 ;;
10573
10574 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10575 case `$LD -v 2>&1` in
10576 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10577 ld_shlibs=no
10578 cat <<_LT_EOF 1>&2
10579
10580 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10581 *** reliably create shared libraries on SCO systems. Therefore, libtool
10582 *** is disabling shared libraries support. We urge you to upgrade GNU
10583 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10584 *** your PATH or compiler configuration so that the native linker is
10585 *** used, and then restart.
10586
10587 _LT_EOF
10588 ;;
10589 *)
10590 # For security reasons, it is highly recommended that you always
10591 # use absolute paths for naming shared libraries, and exclude the
10592 # DT_RUNPATH tag from executables and libraries. But doing so
10593 # requires that you compile everything twice, which is a pain.
10594 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10595 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10598 else
10599 ld_shlibs=no
10600 fi
10601 ;;
10602 esac
10603 ;;
10604
10605 sunos4*)
10606 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10607 wlarc=
10608 hardcode_direct=yes
10609 hardcode_shlibpath_var=no
10610 ;;
10611
10612 *)
10613 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10614 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10615 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10616 else
10617 ld_shlibs=no
10618 fi
10619 ;;
10620 esac
10621
10622 if test no = "$ld_shlibs"; then
10623 runpath_var=
10624 hardcode_libdir_flag_spec=
10625 export_dynamic_flag_spec=
10626 whole_archive_flag_spec=
10627 fi
10628 else
10629 # PORTME fill in a description of your system's linker (not GNU ld)
10630 case $host_os in
10631 aix3*)
10632 allow_undefined_flag=unsupported
10633 always_export_symbols=yes
10634 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'
10635 # Note: this linker hardcodes the directories in LIBPATH if there
10636 # are no directories specified by -L.
10637 hardcode_minus_L=yes
10638 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10639 # Neither direct hardcoding nor static linking is supported with a
10640 # broken collect2.
10641 hardcode_direct=unsupported
10642 fi
10643 ;;
10644
10645 aix[4-9]*)
10646 if test ia64 = "$host_cpu"; then
10647 # On IA64, the linker does run time linking by default, so we don't
10648 # have to do anything special.
10649 aix_use_runtimelinking=no
10650 exp_sym_flag='-Bexport'
10651 no_entry_flag=
10652 else
10653 # If we're using GNU nm, then we don't want the "-C" option.
10654 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10655 # Without the "-l" option, or with the "-B" option, AIX nm treats
10656 # weak defined symbols like other global defined symbols, whereas
10657 # GNU nm marks them as "W".
10658 # While the 'weak' keyword is ignored in the Export File, we need
10659 # it in the Import File for the 'aix-soname' feature, so we have
10660 # to replace the "-B" option with "-P" for AIX nm.
10661 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10662 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10663 else
10664 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10665 fi
10666 aix_use_runtimelinking=no
10667
10668 # Test if we are trying to use run time linking or normal
10669 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10670 # have runtime linking enabled, and use it for executables.
10671 # For shared libraries, we enable/disable runtime linking
10672 # depending on the kind of the shared library created -
10673 # when "with_aix_soname,aix_use_runtimelinking" is:
10674 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10675 # "aix,yes" lib.so shared, rtl:yes, for executables
10676 # lib.a static archive
10677 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10678 # lib.a(lib.so.V) shared, rtl:no, for executables
10679 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10680 # lib.a(lib.so.V) shared, rtl:no
10681 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10682 # lib.a static archive
10683 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10684 for ld_flag in $LDFLAGS; do
10685 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10686 aix_use_runtimelinking=yes
10687 break
10688 fi
10689 done
10690 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10691 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10692 # so we don't have lib.a shared libs to link our executables.
10693 # We have to force runtime linking in this case.
10694 aix_use_runtimelinking=yes
10695 LDFLAGS="$LDFLAGS -Wl,-brtl"
10696 fi
10697 ;;
10698 esac
10699
10700 exp_sym_flag='-bexport'
10701 no_entry_flag='-bnoentry'
10702 fi
10703
10704 # When large executables or shared objects are built, AIX ld can
10705 # have problems creating the table of contents. If linking a library
10706 # or program results in "error TOC overflow" add -mminimal-toc to
10707 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10708 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10709
10710 archive_cmds=''
10711 hardcode_direct=yes
10712 hardcode_direct_absolute=yes
10713 hardcode_libdir_separator=':'
10714 link_all_deplibs=yes
10715 file_list_spec='$wl-f,'
10716 case $with_aix_soname,$aix_use_runtimelinking in
10717 aix,*) ;; # traditional, no import file
10718 svr4,* | *,yes) # use import file
10719 # The Import File defines what to hardcode.
10720 hardcode_direct=no
10721 hardcode_direct_absolute=no
10722 ;;
10723 esac
10724
10725 if test yes = "$GCC"; then
10726 case $host_os in aix4.[012]|aix4.[012].*)
10727 # We only want to do this on AIX 4.2 and lower, the check
10728 # below for broken collect2 doesn't work under 4.3+
10729 collect2name=`$CC -print-prog-name=collect2`
10730 if test -f "$collect2name" &&
10731 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10732 then
10733 # We have reworked collect2
10734 :
10735 else
10736 # We have old collect2
10737 hardcode_direct=unsupported
10738 # It fails to find uninstalled libraries when the uninstalled
10739 # path is not listed in the libpath. Setting hardcode_minus_L
10740 # to unsupported forces relinking
10741 hardcode_minus_L=yes
10742 hardcode_libdir_flag_spec='-L$libdir'
10743 hardcode_libdir_separator=
10744 fi
10745 ;;
10746 esac
10747 shared_flag='-shared'
10748 if test yes = "$aix_use_runtimelinking"; then
10749 shared_flag="$shared_flag "'$wl-G'
10750 fi
10751 # Need to ensure runtime linking is disabled for the traditional
10752 # shared library, or the linker may eventually find shared libraries
10753 # /with/ Import File - we do not want to mix them.
10754 shared_flag_aix='-shared'
10755 shared_flag_svr4='-shared $wl-G'
10756 else
10757 # not using gcc
10758 if test ia64 = "$host_cpu"; then
10759 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10760 # chokes on -Wl,-G. The following line is correct:
10761 shared_flag='-G'
10762 else
10763 if test yes = "$aix_use_runtimelinking"; then
10764 shared_flag='$wl-G'
10765 else
10766 shared_flag='$wl-bM:SRE'
10767 fi
10768 shared_flag_aix='$wl-bM:SRE'
10769 shared_flag_svr4='$wl-G'
10770 fi
10771 fi
10772
10773 export_dynamic_flag_spec='$wl-bexpall'
10774 # It seems that -bexpall does not export symbols beginning with
10775 # underscore (_), so it is better to generate a list of symbols to export.
10776 always_export_symbols=yes
10777 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10778 # Warning - without using the other runtime loading flags (-brtl),
10779 # -berok will link without error, but may produce a broken library.
10780 allow_undefined_flag='-berok'
10781 # Determine the default libpath from the value encoded in an
10782 # empty executable.
10783 if test set = "${lt_cv_aix_libpath+set}"; then
10784 aix_libpath=$lt_cv_aix_libpath
10785 else
10786 if ${lt_cv_aix_libpath_+:} false; then :
10787 $as_echo_n "(cached) " >&6
10788 else
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10791
10792 int
10793 main ()
10794 {
10795
10796 ;
10797 return 0;
10798 }
10799 _ACEOF
10800 if ac_fn_c_try_link "$LINENO"; then :
10801
10802 lt_aix_libpath_sed='
10803 /Import File Strings/,/^$/ {
10804 /^0/ {
10805 s/^0 *\([^ ]*\) *$/\1/
10806 p
10807 }
10808 }'
10809 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10810 # Check for a 64-bit object if we didn't find anything.
10811 if test -z "$lt_cv_aix_libpath_"; then
10812 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10813 fi
10814 fi
10815 rm -f core conftest.err conftest.$ac_objext \
10816 conftest$ac_exeext conftest.$ac_ext
10817 if test -z "$lt_cv_aix_libpath_"; then
10818 lt_cv_aix_libpath_=/usr/lib:/lib
10819 fi
10820
10821 fi
10822
10823 aix_libpath=$lt_cv_aix_libpath_
10824 fi
10825
10826 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10827 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10828 else
10829 if test ia64 = "$host_cpu"; then
10830 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10831 allow_undefined_flag="-z nodefs"
10832 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"
10833 else
10834 # Determine the default libpath from the value encoded in an
10835 # empty executable.
10836 if test set = "${lt_cv_aix_libpath+set}"; then
10837 aix_libpath=$lt_cv_aix_libpath
10838 else
10839 if ${lt_cv_aix_libpath_+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10844
10845 int
10846 main ()
10847 {
10848
10849 ;
10850 return 0;
10851 }
10852 _ACEOF
10853 if ac_fn_c_try_link "$LINENO"; then :
10854
10855 lt_aix_libpath_sed='
10856 /Import File Strings/,/^$/ {
10857 /^0/ {
10858 s/^0 *\([^ ]*\) *$/\1/
10859 p
10860 }
10861 }'
10862 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10863 # Check for a 64-bit object if we didn't find anything.
10864 if test -z "$lt_cv_aix_libpath_"; then
10865 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10866 fi
10867 fi
10868 rm -f core conftest.err conftest.$ac_objext \
10869 conftest$ac_exeext conftest.$ac_ext
10870 if test -z "$lt_cv_aix_libpath_"; then
10871 lt_cv_aix_libpath_=/usr/lib:/lib
10872 fi
10873
10874 fi
10875
10876 aix_libpath=$lt_cv_aix_libpath_
10877 fi
10878
10879 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10880 # Warning - without using the other run time loading flags,
10881 # -berok will link without error, but may produce a broken library.
10882 no_undefined_flag=' $wl-bernotok'
10883 allow_undefined_flag=' $wl-berok'
10884 if test yes = "$with_gnu_ld"; then
10885 # We only use this code for GNU lds that support --whole-archive.
10886 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10887 else
10888 # Exported symbols can be pulled into shared objects from archives
10889 whole_archive_flag_spec='$convenience'
10890 fi
10891 archive_cmds_need_lc=yes
10892 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10893 # -brtl affects multiple linker settings, -berok does not and is overridden later
10894 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10895 if test svr4 != "$with_aix_soname"; then
10896 # This is similar to how AIX traditionally builds its shared libraries.
10897 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10898 fi
10899 if test aix != "$with_aix_soname"; then
10900 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10901 else
10902 # used by -dlpreopen to get the symbols
10903 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10904 fi
10905 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10906 fi
10907 fi
10908 ;;
10909
10910 amigaos*)
10911 case $host_cpu in
10912 powerpc)
10913 # see comment about AmigaOS4 .so support
10914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10915 archive_expsym_cmds=''
10916 ;;
10917 m68k)
10918 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)'
10919 hardcode_libdir_flag_spec='-L$libdir'
10920 hardcode_minus_L=yes
10921 ;;
10922 esac
10923 ;;
10924
10925 bsdi[45]*)
10926 export_dynamic_flag_spec=-rdynamic
10927 ;;
10928
10929 cygwin* | mingw* | pw32* | cegcc*)
10930 # When not using gcc, we currently assume that we are using
10931 # Microsoft Visual C++.
10932 # hardcode_libdir_flag_spec is actually meaningless, as there is
10933 # no search path for DLLs.
10934 case $cc_basename in
10935 cl*)
10936 # Native MSVC
10937 hardcode_libdir_flag_spec=' '
10938 allow_undefined_flag=unsupported
10939 always_export_symbols=yes
10940 file_list_spec='@'
10941 # Tell ltmain to make .lib files, not .a files.
10942 libext=lib
10943 # Tell ltmain to make .dll files, not .so files.
10944 shrext_cmds=.dll
10945 # FIXME: Setting linknames here is a bad hack.
10946 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10947 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10948 cp "$export_symbols" "$output_objdir/$soname.def";
10949 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10950 else
10951 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10952 fi~
10953 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10954 linknames='
10955 # The linker will not automatically build a static lib if we build a DLL.
10956 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10957 enable_shared_with_static_runtimes=yes
10958 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10959 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10960 # Don't use ranlib
10961 old_postinstall_cmds='chmod 644 $oldlib'
10962 postlink_cmds='lt_outputfile="@OUTPUT@"~
10963 lt_tool_outputfile="@TOOL_OUTPUT@"~
10964 case $lt_outputfile in
10965 *.exe|*.EXE) ;;
10966 *)
10967 lt_outputfile=$lt_outputfile.exe
10968 lt_tool_outputfile=$lt_tool_outputfile.exe
10969 ;;
10970 esac~
10971 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10972 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10973 $RM "$lt_outputfile.manifest";
10974 fi'
10975 ;;
10976 *)
10977 # Assume MSVC wrapper
10978 hardcode_libdir_flag_spec=' '
10979 allow_undefined_flag=unsupported
10980 # Tell ltmain to make .lib files, not .a files.
10981 libext=lib
10982 # Tell ltmain to make .dll files, not .so files.
10983 shrext_cmds=.dll
10984 # FIXME: Setting linknames here is a bad hack.
10985 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10986 # The linker will automatically build a .lib file if we build a DLL.
10987 old_archive_from_new_cmds='true'
10988 # FIXME: Should let the user specify the lib program.
10989 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10990 enable_shared_with_static_runtimes=yes
10991 ;;
10992 esac
10993 ;;
10994
10995 darwin* | rhapsody*)
10996
10997
10998 archive_cmds_need_lc=no
10999 hardcode_direct=no
11000 hardcode_automatic=yes
11001 hardcode_shlibpath_var=unsupported
11002 if test yes = "$lt_cv_ld_force_load"; then
11003 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11004
11005 else
11006 whole_archive_flag_spec=''
11007 fi
11008 link_all_deplibs=yes
11009 allow_undefined_flag=$_lt_dar_allow_undefined
11010 case $cc_basename in
11011 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11012 *) _lt_dar_can_shared=$GCC ;;
11013 esac
11014 if test yes = "$_lt_dar_can_shared"; then
11015 output_verbose_link_cmd=func_echo_all
11016 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11017 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11018 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"
11019 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"
11020
11021 else
11022 ld_shlibs=no
11023 fi
11024
11025 ;;
11026
11027 dgux*)
11028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11029 hardcode_libdir_flag_spec='-L$libdir'
11030 hardcode_shlibpath_var=no
11031 ;;
11032
11033 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11034 # support. Future versions do this automatically, but an explicit c++rt0.o
11035 # does not break anything, and helps significantly (at the cost of a little
11036 # extra space).
11037 freebsd2.2*)
11038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11039 hardcode_libdir_flag_spec='-R$libdir'
11040 hardcode_direct=yes
11041 hardcode_shlibpath_var=no
11042 ;;
11043
11044 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11045 freebsd2.*)
11046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11047 hardcode_direct=yes
11048 hardcode_minus_L=yes
11049 hardcode_shlibpath_var=no
11050 ;;
11051
11052 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11053 freebsd* | dragonfly*)
11054 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11055 hardcode_libdir_flag_spec='-R$libdir'
11056 hardcode_direct=yes
11057 hardcode_shlibpath_var=no
11058 ;;
11059
11060 hpux9*)
11061 if test yes = "$GCC"; then
11062 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11063 else
11064 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11065 fi
11066 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11067 hardcode_libdir_separator=:
11068 hardcode_direct=yes
11069
11070 # hardcode_minus_L: Not really in the search PATH,
11071 # but as the default location of the library.
11072 hardcode_minus_L=yes
11073 export_dynamic_flag_spec='$wl-E'
11074 ;;
11075
11076 hpux10*)
11077 if test yes,no = "$GCC,$with_gnu_ld"; then
11078 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11079 else
11080 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11081 fi
11082 if test no = "$with_gnu_ld"; then
11083 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11084 hardcode_libdir_separator=:
11085 hardcode_direct=yes
11086 hardcode_direct_absolute=yes
11087 export_dynamic_flag_spec='$wl-E'
11088 # hardcode_minus_L: Not really in the search PATH,
11089 # but as the default location of the library.
11090 hardcode_minus_L=yes
11091 fi
11092 ;;
11093
11094 hpux11*)
11095 if test yes,no = "$GCC,$with_gnu_ld"; then
11096 case $host_cpu in
11097 hppa*64*)
11098 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11099 ;;
11100 ia64*)
11101 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11102 ;;
11103 *)
11104 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11105 ;;
11106 esac
11107 else
11108 case $host_cpu in
11109 hppa*64*)
11110 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11111 ;;
11112 ia64*)
11113 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11114 ;;
11115 *)
11116
11117 # Older versions of the 11.00 compiler do not understand -b yet
11118 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11120 $as_echo_n "checking if $CC understands -b... " >&6; }
11121 if ${lt_cv_prog_compiler__b+:} false; then :
11122 $as_echo_n "(cached) " >&6
11123 else
11124 lt_cv_prog_compiler__b=no
11125 save_LDFLAGS=$LDFLAGS
11126 LDFLAGS="$LDFLAGS -b"
11127 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11128 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11129 # The linker can only warn and ignore the option if not recognized
11130 # So say no if there are warnings
11131 if test -s conftest.err; then
11132 # Append any errors to the config.log.
11133 cat conftest.err 1>&5
11134 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11136 if diff conftest.exp conftest.er2 >/dev/null; then
11137 lt_cv_prog_compiler__b=yes
11138 fi
11139 else
11140 lt_cv_prog_compiler__b=yes
11141 fi
11142 fi
11143 $RM -r conftest*
11144 LDFLAGS=$save_LDFLAGS
11145
11146 fi
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11148 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11149
11150 if test yes = "$lt_cv_prog_compiler__b"; then
11151 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11152 else
11153 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11154 fi
11155
11156 ;;
11157 esac
11158 fi
11159 if test no = "$with_gnu_ld"; then
11160 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11161 hardcode_libdir_separator=:
11162
11163 case $host_cpu in
11164 hppa*64*|ia64*)
11165 hardcode_direct=no
11166 hardcode_shlibpath_var=no
11167 ;;
11168 *)
11169 hardcode_direct=yes
11170 hardcode_direct_absolute=yes
11171 export_dynamic_flag_spec='$wl-E'
11172
11173 # hardcode_minus_L: Not really in the search PATH,
11174 # but as the default location of the library.
11175 hardcode_minus_L=yes
11176 ;;
11177 esac
11178 fi
11179 ;;
11180
11181 irix5* | irix6* | nonstopux*)
11182 if test yes = "$GCC"; then
11183 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11184 # Try to use the -exported_symbol ld option, if it does not
11185 # work, assume that -exports_file does not work either and
11186 # implicitly export all symbols.
11187 # This should be the same for all languages, so no per-tag cache variable.
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11189 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11190 if ${lt_cv_irix_exported_symbol+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 save_LDFLAGS=$LDFLAGS
11194 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11197 int foo (void) { return 0; }
11198 _ACEOF
11199 if ac_fn_c_try_link "$LINENO"; then :
11200 lt_cv_irix_exported_symbol=yes
11201 else
11202 lt_cv_irix_exported_symbol=no
11203 fi
11204 rm -f core conftest.err conftest.$ac_objext \
11205 conftest$ac_exeext conftest.$ac_ext
11206 LDFLAGS=$save_LDFLAGS
11207 fi
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11209 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11210 if test yes = "$lt_cv_irix_exported_symbol"; then
11211 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11212 fi
11213 else
11214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11215 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11216 fi
11217 archive_cmds_need_lc='no'
11218 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11219 hardcode_libdir_separator=:
11220 inherit_rpath=yes
11221 link_all_deplibs=yes
11222 ;;
11223
11224 linux*)
11225 case $cc_basename in
11226 tcc*)
11227 # Fabrice Bellard et al's Tiny C Compiler
11228 ld_shlibs=yes
11229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11230 ;;
11231 esac
11232 ;;
11233
11234 netbsd*)
11235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11237 else
11238 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11239 fi
11240 hardcode_libdir_flag_spec='-R$libdir'
11241 hardcode_direct=yes
11242 hardcode_shlibpath_var=no
11243 ;;
11244
11245 newsos6)
11246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11247 hardcode_direct=yes
11248 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11249 hardcode_libdir_separator=:
11250 hardcode_shlibpath_var=no
11251 ;;
11252
11253 *nto* | *qnx*)
11254 ;;
11255
11256 openbsd* | bitrig*)
11257 if test -f /usr/libexec/ld.so; then
11258 hardcode_direct=yes
11259 hardcode_shlibpath_var=no
11260 hardcode_direct_absolute=yes
11261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11263 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11264 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11265 export_dynamic_flag_spec='$wl-E'
11266 else
11267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11268 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11269 fi
11270 else
11271 ld_shlibs=no
11272 fi
11273 ;;
11274
11275 os2*)
11276 hardcode_libdir_flag_spec='-L$libdir'
11277 hardcode_minus_L=yes
11278 allow_undefined_flag=unsupported
11279 shrext_cmds=.dll
11280 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11281 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11282 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11283 $ECHO EXPORTS >> $output_objdir/$libname.def~
11284 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11285 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11286 emximp -o $lib $output_objdir/$libname.def'
11287 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11288 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11289 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11290 $ECHO EXPORTS >> $output_objdir/$libname.def~
11291 prefix_cmds="$SED"~
11292 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11293 prefix_cmds="$prefix_cmds -e 1d";
11294 fi~
11295 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11296 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11297 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11298 emximp -o $lib $output_objdir/$libname.def'
11299 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11300 enable_shared_with_static_runtimes=yes
11301 ;;
11302
11303 osf3*)
11304 if test yes = "$GCC"; then
11305 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11306 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11307 else
11308 allow_undefined_flag=' -expect_unresolved \*'
11309 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11310 fi
11311 archive_cmds_need_lc='no'
11312 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11313 hardcode_libdir_separator=:
11314 ;;
11315
11316 osf4* | osf5*) # as osf3* with the addition of -msym flag
11317 if test yes = "$GCC"; then
11318 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11319 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11320 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11321 else
11322 allow_undefined_flag=' -expect_unresolved \*'
11323 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11324 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~
11325 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11326
11327 # Both c and cxx compiler support -rpath directly
11328 hardcode_libdir_flag_spec='-rpath $libdir'
11329 fi
11330 archive_cmds_need_lc='no'
11331 hardcode_libdir_separator=:
11332 ;;
11333
11334 solaris*)
11335 no_undefined_flag=' -z defs'
11336 if test yes = "$GCC"; then
11337 wlarc='$wl'
11338 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11340 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11341 else
11342 case `$CC -V 2>&1` in
11343 *"Compilers 5.0"*)
11344 wlarc=''
11345 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11346 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11347 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11348 ;;
11349 *)
11350 wlarc='$wl'
11351 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11352 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11353 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11354 ;;
11355 esac
11356 fi
11357 hardcode_libdir_flag_spec='-R$libdir'
11358 hardcode_shlibpath_var=no
11359 case $host_os in
11360 solaris2.[0-5] | solaris2.[0-5].*) ;;
11361 *)
11362 # The compiler driver will combine and reorder linker options,
11363 # but understands '-z linker_flag'. GCC discards it without '$wl',
11364 # but is careful enough not to reorder.
11365 # Supported since Solaris 2.6 (maybe 2.5.1?)
11366 if test yes = "$GCC"; then
11367 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11368 else
11369 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11370 fi
11371 ;;
11372 esac
11373 link_all_deplibs=yes
11374 ;;
11375
11376 sunos4*)
11377 if test sequent = "$host_vendor"; then
11378 # Use $CC to link under sequent, because it throws in some extra .o
11379 # files that make .init and .fini sections work.
11380 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11381 else
11382 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11383 fi
11384 hardcode_libdir_flag_spec='-L$libdir'
11385 hardcode_direct=yes
11386 hardcode_minus_L=yes
11387 hardcode_shlibpath_var=no
11388 ;;
11389
11390 sysv4)
11391 case $host_vendor in
11392 sni)
11393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11394 hardcode_direct=yes # is this really true???
11395 ;;
11396 siemens)
11397 ## LD is ld it makes a PLAMLIB
11398 ## CC just makes a GrossModule.
11399 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11400 reload_cmds='$CC -r -o $output$reload_objs'
11401 hardcode_direct=no
11402 ;;
11403 motorola)
11404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11405 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11406 ;;
11407 esac
11408 runpath_var='LD_RUN_PATH'
11409 hardcode_shlibpath_var=no
11410 ;;
11411
11412 sysv4.3*)
11413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11414 hardcode_shlibpath_var=no
11415 export_dynamic_flag_spec='-Bexport'
11416 ;;
11417
11418 sysv4*MP*)
11419 if test -d /usr/nec; then
11420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11421 hardcode_shlibpath_var=no
11422 runpath_var=LD_RUN_PATH
11423 hardcode_runpath_var=yes
11424 ld_shlibs=yes
11425 fi
11426 ;;
11427
11428 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11429 no_undefined_flag='$wl-z,text'
11430 archive_cmds_need_lc=no
11431 hardcode_shlibpath_var=no
11432 runpath_var='LD_RUN_PATH'
11433
11434 if test yes = "$GCC"; then
11435 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11436 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11437 else
11438 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11439 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11440 fi
11441 ;;
11442
11443 sysv5* | sco3.2v5* | sco5v6*)
11444 # Note: We CANNOT use -z defs as we might desire, because we do not
11445 # link with -lc, and that would cause any symbols used from libc to
11446 # always be unresolved, which means just about no library would
11447 # ever link correctly. If we're not using GNU ld we use -z text
11448 # though, which does catch some bad symbols but isn't as heavy-handed
11449 # as -z defs.
11450 no_undefined_flag='$wl-z,text'
11451 allow_undefined_flag='$wl-z,nodefs'
11452 archive_cmds_need_lc=no
11453 hardcode_shlibpath_var=no
11454 hardcode_libdir_flag_spec='$wl-R,$libdir'
11455 hardcode_libdir_separator=':'
11456 link_all_deplibs=yes
11457 export_dynamic_flag_spec='$wl-Bexport'
11458 runpath_var='LD_RUN_PATH'
11459
11460 if test yes = "$GCC"; then
11461 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11462 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11463 else
11464 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11465 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11466 fi
11467 ;;
11468
11469 uts4*)
11470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11471 hardcode_libdir_flag_spec='-L$libdir'
11472 hardcode_shlibpath_var=no
11473 ;;
11474
11475 *)
11476 ld_shlibs=no
11477 ;;
11478 esac
11479
11480 if test sni = "$host_vendor"; then
11481 case $host in
11482 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11483 export_dynamic_flag_spec='$wl-Blargedynsym'
11484 ;;
11485 esac
11486 fi
11487 fi
11488
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11490 $as_echo "$ld_shlibs" >&6; }
11491 test no = "$ld_shlibs" && can_build_shared=no
11492
11493 with_gnu_ld=$with_gnu_ld
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509 #
11510 # Do we need to explicitly link libc?
11511 #
11512 case "x$archive_cmds_need_lc" in
11513 x|xyes)
11514 # Assume -lc should be added
11515 archive_cmds_need_lc=yes
11516
11517 if test yes,yes = "$GCC,$enable_shared"; then
11518 case $archive_cmds in
11519 *'~'*)
11520 # FIXME: we may have to deal with multi-command sequences.
11521 ;;
11522 '$CC '*)
11523 # Test whether the compiler implicitly links with -lc since on some
11524 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11525 # to ld, don't add -lc before -lgcc.
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11527 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11528 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 $RM conftest*
11532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11533
11534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11535 (eval $ac_compile) 2>&5
11536 ac_status=$?
11537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11538 test $ac_status = 0; } 2>conftest.err; then
11539 soname=conftest
11540 lib=conftest
11541 libobjs=conftest.$ac_objext
11542 deplibs=
11543 wl=$lt_prog_compiler_wl
11544 pic_flag=$lt_prog_compiler_pic
11545 compiler_flags=-v
11546 linker_flags=-v
11547 verstring=
11548 output_objdir=.
11549 libname=conftest
11550 lt_save_allow_undefined_flag=$allow_undefined_flag
11551 allow_undefined_flag=
11552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11553 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11554 ac_status=$?
11555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11556 test $ac_status = 0; }
11557 then
11558 lt_cv_archive_cmds_need_lc=no
11559 else
11560 lt_cv_archive_cmds_need_lc=yes
11561 fi
11562 allow_undefined_flag=$lt_save_allow_undefined_flag
11563 else
11564 cat conftest.err 1>&5
11565 fi
11566 $RM conftest*
11567
11568 fi
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11570 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11571 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11572 ;;
11573 esac
11574 fi
11575 ;;
11576 esac
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11730 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11731
11732 if test yes = "$GCC"; then
11733 case $host_os in
11734 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11735 *) lt_awk_arg='/^libraries:/' ;;
11736 esac
11737 case $host_os in
11738 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11739 *) lt_sed_strip_eq='s|=/|/|g' ;;
11740 esac
11741 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11742 case $lt_search_path_spec in
11743 *\;*)
11744 # if the path contains ";" then we assume it to be the separator
11745 # otherwise default to the standard path separator (i.e. ":") - it is
11746 # assumed that no part of a normal pathname contains ";" but that should
11747 # okay in the real world where ";" in dirpaths is itself problematic.
11748 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11749 ;;
11750 *)
11751 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11752 ;;
11753 esac
11754 # Ok, now we have the path, separated by spaces, we can step through it
11755 # and add multilib dir if necessary...
11756 lt_tmp_lt_search_path_spec=
11757 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11758 # ...but if some path component already ends with the multilib dir we assume
11759 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11760 case "$lt_multi_os_dir; $lt_search_path_spec " in
11761 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11762 lt_multi_os_dir=
11763 ;;
11764 esac
11765 for lt_sys_path in $lt_search_path_spec; do
11766 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11767 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11768 elif test -n "$lt_multi_os_dir"; then
11769 test -d "$lt_sys_path" && \
11770 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11771 fi
11772 done
11773 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11774 BEGIN {RS = " "; FS = "/|\n";} {
11775 lt_foo = "";
11776 lt_count = 0;
11777 for (lt_i = NF; lt_i > 0; lt_i--) {
11778 if ($lt_i != "" && $lt_i != ".") {
11779 if ($lt_i == "..") {
11780 lt_count++;
11781 } else {
11782 if (lt_count == 0) {
11783 lt_foo = "/" $lt_i lt_foo;
11784 } else {
11785 lt_count--;
11786 }
11787 }
11788 }
11789 }
11790 if (lt_foo != "") { lt_freq[lt_foo]++; }
11791 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11792 }'`
11793 # AWK program above erroneously prepends '/' to C:/dos/paths
11794 # for these hosts.
11795 case $host_os in
11796 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11797 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11798 esac
11799 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11800 else
11801 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11802 fi
11803 library_names_spec=
11804 libname_spec='lib$name'
11805 soname_spec=
11806 shrext_cmds=.so
11807 postinstall_cmds=
11808 postuninstall_cmds=
11809 finish_cmds=
11810 finish_eval=
11811 shlibpath_var=
11812 shlibpath_overrides_runpath=unknown
11813 version_type=none
11814 dynamic_linker="$host_os ld.so"
11815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11816 need_lib_prefix=unknown
11817 hardcode_into_libs=no
11818
11819 # when you set need_version to no, make sure it does not cause -set_version
11820 # flags to be left without arguments
11821 need_version=unknown
11822
11823
11824
11825 case $host_os in
11826 aix3*)
11827 version_type=linux # correct to gnu/linux during the next big refactor
11828 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11829 shlibpath_var=LIBPATH
11830
11831 # AIX 3 has no versioning support, so we append a major version to the name.
11832 soname_spec='$libname$release$shared_ext$major'
11833 ;;
11834
11835 aix[4-9]*)
11836 version_type=linux # correct to gnu/linux during the next big refactor
11837 need_lib_prefix=no
11838 need_version=no
11839 hardcode_into_libs=yes
11840 if test ia64 = "$host_cpu"; then
11841 # AIX 5 supports IA64
11842 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11843 shlibpath_var=LD_LIBRARY_PATH
11844 else
11845 # With GCC up to 2.95.x, collect2 would create an import file
11846 # for dependence libraries. The import file would start with
11847 # the line '#! .'. This would cause the generated library to
11848 # depend on '.', always an invalid library. This was fixed in
11849 # development snapshots of GCC prior to 3.0.
11850 case $host_os in
11851 aix4 | aix4.[01] | aix4.[01].*)
11852 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11853 echo ' yes '
11854 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11855 :
11856 else
11857 can_build_shared=no
11858 fi
11859 ;;
11860 esac
11861 # Using Import Files as archive members, it is possible to support
11862 # filename-based versioning of shared library archives on AIX. While
11863 # this would work for both with and without runtime linking, it will
11864 # prevent static linking of such archives. So we do filename-based
11865 # shared library versioning with .so extension only, which is used
11866 # when both runtime linking and shared linking is enabled.
11867 # Unfortunately, runtime linking may impact performance, so we do
11868 # not want this to be the default eventually. Also, we use the
11869 # versioned .so libs for executables only if there is the -brtl
11870 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11871 # To allow for filename-based versioning support, we need to create
11872 # libNAME.so.V as an archive file, containing:
11873 # *) an Import File, referring to the versioned filename of the
11874 # archive as well as the shared archive member, telling the
11875 # bitwidth (32 or 64) of that shared object, and providing the
11876 # list of exported symbols of that shared object, eventually
11877 # decorated with the 'weak' keyword
11878 # *) the shared object with the F_LOADONLY flag set, to really avoid
11879 # it being seen by the linker.
11880 # At run time we better use the real file rather than another symlink,
11881 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11882
11883 case $with_aix_soname,$aix_use_runtimelinking in
11884 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11885 # soname into executable. Probably we can add versioning support to
11886 # collect2, so additional links can be useful in future.
11887 aix,yes) # traditional libtool
11888 dynamic_linker='AIX unversionable lib.so'
11889 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11890 # instead of lib<name>.a to let people know that these are not
11891 # typical AIX shared libraries.
11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11893 ;;
11894 aix,no) # traditional AIX only
11895 dynamic_linker='AIX lib.a(lib.so.V)'
11896 # We preserve .a as extension for shared libraries through AIX4.2
11897 # and later when we are not doing run time linking.
11898 library_names_spec='$libname$release.a $libname.a'
11899 soname_spec='$libname$release$shared_ext$major'
11900 ;;
11901 svr4,*) # full svr4 only
11902 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11903 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11904 # We do not specify a path in Import Files, so LIBPATH fires.
11905 shlibpath_overrides_runpath=yes
11906 ;;
11907 *,yes) # both, prefer svr4
11908 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11909 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11910 # unpreferred sharedlib libNAME.a needs extra handling
11911 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11912 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11913 # We do not specify a path in Import Files, so LIBPATH fires.
11914 shlibpath_overrides_runpath=yes
11915 ;;
11916 *,no) # both, prefer aix
11917 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11918 library_names_spec='$libname$release.a $libname.a'
11919 soname_spec='$libname$release$shared_ext$major'
11920 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11921 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11922 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11923 ;;
11924 esac
11925 shlibpath_var=LIBPATH
11926 fi
11927 ;;
11928
11929 amigaos*)
11930 case $host_cpu in
11931 powerpc)
11932 # Since July 2007 AmigaOS4 officially supports .so libraries.
11933 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11935 ;;
11936 m68k)
11937 library_names_spec='$libname.ixlibrary $libname.a'
11938 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11939 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11940 ;;
11941 esac
11942 ;;
11943
11944 beos*)
11945 library_names_spec='$libname$shared_ext'
11946 dynamic_linker="$host_os ld.so"
11947 shlibpath_var=LIBRARY_PATH
11948 ;;
11949
11950 bsdi[45]*)
11951 version_type=linux # correct to gnu/linux during the next big refactor
11952 need_version=no
11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11954 soname_spec='$libname$release$shared_ext$major'
11955 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11956 shlibpath_var=LD_LIBRARY_PATH
11957 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11958 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11959 # the default ld.so.conf also contains /usr/contrib/lib and
11960 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11961 # libtool to hard-code these into programs
11962 ;;
11963
11964 cygwin* | mingw* | pw32* | cegcc*)
11965 version_type=windows
11966 shrext_cmds=.dll
11967 need_version=no
11968 need_lib_prefix=no
11969
11970 case $GCC,$cc_basename in
11971 yes,*)
11972 # gcc
11973 library_names_spec='$libname.dll.a'
11974 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11975 postinstall_cmds='base_file=`basename \$file`~
11976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11977 dldir=$destdir/`dirname \$dlpath`~
11978 test -d \$dldir || mkdir -p \$dldir~
11979 $install_prog $dir/$dlname \$dldir/$dlname~
11980 chmod a+x \$dldir/$dlname~
11981 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11982 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11983 fi'
11984 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11985 dlpath=$dir/\$dldll~
11986 $RM \$dlpath'
11987 shlibpath_overrides_runpath=yes
11988
11989 case $host_os in
11990 cygwin*)
11991 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11992 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11993
11994 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11995 ;;
11996 mingw* | cegcc*)
11997 # MinGW DLLs use traditional 'lib' prefix
11998 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11999 ;;
12000 pw32*)
12001 # pw32 DLLs use 'pw' prefix rather than 'lib'
12002 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12003 ;;
12004 esac
12005 dynamic_linker='Win32 ld.exe'
12006 ;;
12007
12008 *,cl*)
12009 # Native MSVC
12010 libname_spec='$name'
12011 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12012 library_names_spec='$libname.dll.lib'
12013
12014 case $build_os in
12015 mingw*)
12016 sys_lib_search_path_spec=
12017 lt_save_ifs=$IFS
12018 IFS=';'
12019 for lt_path in $LIB
12020 do
12021 IFS=$lt_save_ifs
12022 # Let DOS variable expansion print the short 8.3 style file name.
12023 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12024 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12025 done
12026 IFS=$lt_save_ifs
12027 # Convert to MSYS style.
12028 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12029 ;;
12030 cygwin*)
12031 # Convert to unix form, then to dos form, then back to unix form
12032 # but this time dos style (no spaces!) so that the unix form looks
12033 # like /cygdrive/c/PROGRA~1:/cygdr...
12034 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12035 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12036 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12037 ;;
12038 *)
12039 sys_lib_search_path_spec=$LIB
12040 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12041 # It is most probably a Windows format PATH.
12042 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12043 else
12044 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12045 fi
12046 # FIXME: find the short name or the path components, as spaces are
12047 # common. (e.g. "Program Files" -> "PROGRA~1")
12048 ;;
12049 esac
12050
12051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12052 postinstall_cmds='base_file=`basename \$file`~
12053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12054 dldir=$destdir/`dirname \$dlpath`~
12055 test -d \$dldir || mkdir -p \$dldir~
12056 $install_prog $dir/$dlname \$dldir/$dlname'
12057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12058 dlpath=$dir/\$dldll~
12059 $RM \$dlpath'
12060 shlibpath_overrides_runpath=yes
12061 dynamic_linker='Win32 link.exe'
12062 ;;
12063
12064 *)
12065 # Assume MSVC wrapper
12066 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12067 dynamic_linker='Win32 ld.exe'
12068 ;;
12069 esac
12070 # FIXME: first we should search . and the directory the executable is in
12071 shlibpath_var=PATH
12072 ;;
12073
12074 darwin* | rhapsody*)
12075 dynamic_linker="$host_os dyld"
12076 version_type=darwin
12077 need_lib_prefix=no
12078 need_version=no
12079 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12080 soname_spec='$libname$release$major$shared_ext'
12081 shlibpath_overrides_runpath=yes
12082 shlibpath_var=DYLD_LIBRARY_PATH
12083 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12084
12085 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12086 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12087 ;;
12088
12089 dgux*)
12090 version_type=linux # correct to gnu/linux during the next big refactor
12091 need_lib_prefix=no
12092 need_version=no
12093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12094 soname_spec='$libname$release$shared_ext$major'
12095 shlibpath_var=LD_LIBRARY_PATH
12096 ;;
12097
12098 freebsd* | dragonfly*)
12099 # DragonFly does not have aout. When/if they implement a new
12100 # versioning mechanism, adjust this.
12101 if test -x /usr/bin/objformat; then
12102 objformat=`/usr/bin/objformat`
12103 else
12104 case $host_os in
12105 freebsd[23].*) objformat=aout ;;
12106 *) objformat=elf ;;
12107 esac
12108 fi
12109 version_type=freebsd-$objformat
12110 case $version_type in
12111 freebsd-elf*)
12112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12113 soname_spec='$libname$release$shared_ext$major'
12114 need_version=no
12115 need_lib_prefix=no
12116 ;;
12117 freebsd-*)
12118 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12119 need_version=yes
12120 ;;
12121 esac
12122 shlibpath_var=LD_LIBRARY_PATH
12123 case $host_os in
12124 freebsd2.*)
12125 shlibpath_overrides_runpath=yes
12126 ;;
12127 freebsd3.[01]* | freebsdelf3.[01]*)
12128 shlibpath_overrides_runpath=yes
12129 hardcode_into_libs=yes
12130 ;;
12131 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12132 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12133 shlibpath_overrides_runpath=no
12134 hardcode_into_libs=yes
12135 ;;
12136 *) # from 4.6 on, and DragonFly
12137 shlibpath_overrides_runpath=yes
12138 hardcode_into_libs=yes
12139 ;;
12140 esac
12141 ;;
12142
12143 haiku*)
12144 version_type=linux # correct to gnu/linux during the next big refactor
12145 need_lib_prefix=no
12146 need_version=no
12147 dynamic_linker="$host_os runtime_loader"
12148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12149 soname_spec='$libname$release$shared_ext$major'
12150 shlibpath_var=LIBRARY_PATH
12151 shlibpath_overrides_runpath=no
12152 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12153 hardcode_into_libs=yes
12154 ;;
12155
12156 hpux9* | hpux10* | hpux11*)
12157 # Give a soname corresponding to the major version so that dld.sl refuses to
12158 # link against other versions.
12159 version_type=sunos
12160 need_lib_prefix=no
12161 need_version=no
12162 case $host_cpu in
12163 ia64*)
12164 shrext_cmds='.so'
12165 hardcode_into_libs=yes
12166 dynamic_linker="$host_os dld.so"
12167 shlibpath_var=LD_LIBRARY_PATH
12168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12170 soname_spec='$libname$release$shared_ext$major'
12171 if test 32 = "$HPUX_IA64_MODE"; then
12172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12173 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12174 else
12175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12176 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12177 fi
12178 ;;
12179 hppa*64*)
12180 shrext_cmds='.sl'
12181 hardcode_into_libs=yes
12182 dynamic_linker="$host_os dld.sl"
12183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12186 soname_spec='$libname$release$shared_ext$major'
12187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12189 ;;
12190 *)
12191 shrext_cmds='.sl'
12192 dynamic_linker="$host_os dld.sl"
12193 shlibpath_var=SHLIB_PATH
12194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12196 soname_spec='$libname$release$shared_ext$major'
12197 ;;
12198 esac
12199 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12200 postinstall_cmds='chmod 555 $lib'
12201 # or fails outright, so override atomically:
12202 install_override_mode=555
12203 ;;
12204
12205 interix[3-9]*)
12206 version_type=linux # correct to gnu/linux during the next big refactor
12207 need_lib_prefix=no
12208 need_version=no
12209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12210 soname_spec='$libname$release$shared_ext$major'
12211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12212 shlibpath_var=LD_LIBRARY_PATH
12213 shlibpath_overrides_runpath=no
12214 hardcode_into_libs=yes
12215 ;;
12216
12217 irix5* | irix6* | nonstopux*)
12218 case $host_os in
12219 nonstopux*) version_type=nonstopux ;;
12220 *)
12221 if test yes = "$lt_cv_prog_gnu_ld"; then
12222 version_type=linux # correct to gnu/linux during the next big refactor
12223 else
12224 version_type=irix
12225 fi ;;
12226 esac
12227 need_lib_prefix=no
12228 need_version=no
12229 soname_spec='$libname$release$shared_ext$major'
12230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12231 case $host_os in
12232 irix5* | nonstopux*)
12233 libsuff= shlibsuff=
12234 ;;
12235 *)
12236 case $LD in # libtool.m4 will add one of these switches to LD
12237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12238 libsuff= shlibsuff= libmagic=32-bit;;
12239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12240 libsuff=32 shlibsuff=N32 libmagic=N32;;
12241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12243 *) libsuff= shlibsuff= libmagic=never-match;;
12244 esac
12245 ;;
12246 esac
12247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12248 shlibpath_overrides_runpath=no
12249 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12250 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12251 hardcode_into_libs=yes
12252 ;;
12253
12254 # No shared lib support for Linux oldld, aout, or coff.
12255 linux*oldld* | linux*aout* | linux*coff*)
12256 dynamic_linker=no
12257 ;;
12258
12259 linux*android*)
12260 version_type=none # Android doesn't support versioned libraries.
12261 need_lib_prefix=no
12262 need_version=no
12263 library_names_spec='$libname$release$shared_ext'
12264 soname_spec='$libname$release$shared_ext'
12265 finish_cmds=
12266 shlibpath_var=LD_LIBRARY_PATH
12267 shlibpath_overrides_runpath=yes
12268
12269 # This implies no fast_install, which is unacceptable.
12270 # Some rework will be needed to allow for fast_install
12271 # before this can be enabled.
12272 hardcode_into_libs=yes
12273
12274 dynamic_linker='Android linker'
12275 # Don't embed -rpath directories since the linker doesn't support them.
12276 hardcode_libdir_flag_spec='-L$libdir'
12277 ;;
12278
12279 # This must be glibc/ELF.
12280 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12281 version_type=linux # correct to gnu/linux during the next big refactor
12282 need_lib_prefix=no
12283 need_version=no
12284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12285 soname_spec='$libname$release$shared_ext$major'
12286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12287 shlibpath_var=LD_LIBRARY_PATH
12288 shlibpath_overrides_runpath=no
12289
12290 # Some binutils ld are patched to set DT_RUNPATH
12291 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12292 $as_echo_n "(cached) " >&6
12293 else
12294 lt_cv_shlibpath_overrides_runpath=no
12295 save_LDFLAGS=$LDFLAGS
12296 save_libdir=$libdir
12297 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12298 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12301
12302 int
12303 main ()
12304 {
12305
12306 ;
12307 return 0;
12308 }
12309 _ACEOF
12310 if ac_fn_c_try_link "$LINENO"; then :
12311 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12312 lt_cv_shlibpath_overrides_runpath=yes
12313 fi
12314 fi
12315 rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12317 LDFLAGS=$save_LDFLAGS
12318 libdir=$save_libdir
12319
12320 fi
12321
12322 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12323
12324 # This implies no fast_install, which is unacceptable.
12325 # Some rework will be needed to allow for fast_install
12326 # before this can be enabled.
12327 hardcode_into_libs=yes
12328
12329 # Ideally, we could use ldconfig to report *all* directores which are
12330 # searched for libraries, however this is still not possible. Aside from not
12331 # being certain /sbin/ldconfig is available, command
12332 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12333 # even though it is searched at run-time. Try to do the best guess by
12334 # appending ld.so.conf contents (and includes) to the search path.
12335 if test -f /etc/ld.so.conf; then
12336 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12338 fi
12339
12340 # We used to test for /lib/ld.so.1 and disable shared libraries on
12341 # powerpc, because MkLinux only supported shared libraries with the
12342 # GNU dynamic linker. Since this was broken with cross compilers,
12343 # most powerpc-linux boxes support dynamic linking these days and
12344 # people can always --disable-shared, the test was removed, and we
12345 # assume the GNU/Linux dynamic linker is in use.
12346 dynamic_linker='GNU/Linux ld.so'
12347 ;;
12348
12349 netbsd*)
12350 version_type=sunos
12351 need_lib_prefix=no
12352 need_version=no
12353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12354 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12356 dynamic_linker='NetBSD (a.out) ld.so'
12357 else
12358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12359 soname_spec='$libname$release$shared_ext$major'
12360 dynamic_linker='NetBSD ld.elf_so'
12361 fi
12362 shlibpath_var=LD_LIBRARY_PATH
12363 shlibpath_overrides_runpath=yes
12364 hardcode_into_libs=yes
12365 ;;
12366
12367 newsos6)
12368 version_type=linux # correct to gnu/linux during the next big refactor
12369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12370 shlibpath_var=LD_LIBRARY_PATH
12371 shlibpath_overrides_runpath=yes
12372 ;;
12373
12374 *nto* | *qnx*)
12375 version_type=qnx
12376 need_lib_prefix=no
12377 need_version=no
12378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12379 soname_spec='$libname$release$shared_ext$major'
12380 shlibpath_var=LD_LIBRARY_PATH
12381 shlibpath_overrides_runpath=no
12382 hardcode_into_libs=yes
12383 dynamic_linker='ldqnx.so'
12384 ;;
12385
12386 openbsd* | bitrig*)
12387 version_type=sunos
12388 sys_lib_dlsearch_path_spec=/usr/lib
12389 need_lib_prefix=no
12390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12391 need_version=no
12392 else
12393 need_version=yes
12394 fi
12395 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12397 shlibpath_var=LD_LIBRARY_PATH
12398 shlibpath_overrides_runpath=yes
12399 ;;
12400
12401 os2*)
12402 libname_spec='$name'
12403 version_type=windows
12404 shrext_cmds=.dll
12405 need_version=no
12406 need_lib_prefix=no
12407 # OS/2 can only load a DLL with a base name of 8 characters or less.
12408 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12409 v=$($ECHO $release$versuffix | tr -d .-);
12410 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12411 $ECHO $n$v`$shared_ext'
12412 library_names_spec='${libname}_dll.$libext'
12413 dynamic_linker='OS/2 ld.exe'
12414 shlibpath_var=BEGINLIBPATH
12415 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12417 postinstall_cmds='base_file=`basename \$file`~
12418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12419 dldir=$destdir/`dirname \$dlpath`~
12420 test -d \$dldir || mkdir -p \$dldir~
12421 $install_prog $dir/$dlname \$dldir/$dlname~
12422 chmod a+x \$dldir/$dlname~
12423 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12424 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12425 fi'
12426 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12427 dlpath=$dir/\$dldll~
12428 $RM \$dlpath'
12429 ;;
12430
12431 osf3* | osf4* | osf5*)
12432 version_type=osf
12433 need_lib_prefix=no
12434 need_version=no
12435 soname_spec='$libname$release$shared_ext$major'
12436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12437 shlibpath_var=LD_LIBRARY_PATH
12438 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12440 ;;
12441
12442 rdos*)
12443 dynamic_linker=no
12444 ;;
12445
12446 solaris*)
12447 version_type=linux # correct to gnu/linux during the next big refactor
12448 need_lib_prefix=no
12449 need_version=no
12450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12451 soname_spec='$libname$release$shared_ext$major'
12452 shlibpath_var=LD_LIBRARY_PATH
12453 shlibpath_overrides_runpath=yes
12454 hardcode_into_libs=yes
12455 # ldd complains unless libraries are executable
12456 postinstall_cmds='chmod +x $lib'
12457 ;;
12458
12459 sunos4*)
12460 version_type=sunos
12461 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12463 shlibpath_var=LD_LIBRARY_PATH
12464 shlibpath_overrides_runpath=yes
12465 if test yes = "$with_gnu_ld"; then
12466 need_lib_prefix=no
12467 fi
12468 need_version=yes
12469 ;;
12470
12471 sysv4 | sysv4.3*)
12472 version_type=linux # correct to gnu/linux during the next big refactor
12473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12474 soname_spec='$libname$release$shared_ext$major'
12475 shlibpath_var=LD_LIBRARY_PATH
12476 case $host_vendor in
12477 sni)
12478 shlibpath_overrides_runpath=no
12479 need_lib_prefix=no
12480 runpath_var=LD_RUN_PATH
12481 ;;
12482 siemens)
12483 need_lib_prefix=no
12484 ;;
12485 motorola)
12486 need_lib_prefix=no
12487 need_version=no
12488 shlibpath_overrides_runpath=no
12489 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12490 ;;
12491 esac
12492 ;;
12493
12494 sysv4*MP*)
12495 if test -d /usr/nec; then
12496 version_type=linux # correct to gnu/linux during the next big refactor
12497 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12498 soname_spec='$libname$shared_ext.$major'
12499 shlibpath_var=LD_LIBRARY_PATH
12500 fi
12501 ;;
12502
12503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12504 version_type=sco
12505 need_lib_prefix=no
12506 need_version=no
12507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12508 soname_spec='$libname$release$shared_ext$major'
12509 shlibpath_var=LD_LIBRARY_PATH
12510 shlibpath_overrides_runpath=yes
12511 hardcode_into_libs=yes
12512 if test yes = "$with_gnu_ld"; then
12513 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12514 else
12515 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12516 case $host_os in
12517 sco3.2v5*)
12518 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12519 ;;
12520 esac
12521 fi
12522 sys_lib_dlsearch_path_spec='/usr/lib'
12523 ;;
12524
12525 tpf*)
12526 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12527 version_type=linux # correct to gnu/linux during the next big refactor
12528 need_lib_prefix=no
12529 need_version=no
12530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12531 shlibpath_var=LD_LIBRARY_PATH
12532 shlibpath_overrides_runpath=no
12533 hardcode_into_libs=yes
12534 ;;
12535
12536 uts4*)
12537 version_type=linux # correct to gnu/linux during the next big refactor
12538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12539 soname_spec='$libname$release$shared_ext$major'
12540 shlibpath_var=LD_LIBRARY_PATH
12541 ;;
12542
12543 *)
12544 dynamic_linker=no
12545 ;;
12546 esac
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12548 $as_echo "$dynamic_linker" >&6; }
12549 test no = "$dynamic_linker" && can_build_shared=no
12550
12551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12552 if test yes = "$GCC"; then
12553 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12554 fi
12555
12556 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12557 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12558 fi
12559
12560 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12561 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12562 fi
12563
12564 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12565 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12566
12567 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12568 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12569
12570 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12571 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12670 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12671 hardcode_action=
12672 if test -n "$hardcode_libdir_flag_spec" ||
12673 test -n "$runpath_var" ||
12674 test yes = "$hardcode_automatic"; then
12675
12676 # We can hardcode non-existent directories.
12677 if test no != "$hardcode_direct" &&
12678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12679 # have to relink, otherwise we might link with an installed library
12680 # when we should be linking with a yet-to-be-installed one
12681 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12682 test no != "$hardcode_minus_L"; then
12683 # Linking always hardcodes the temporary library directory.
12684 hardcode_action=relink
12685 else
12686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12687 hardcode_action=immediate
12688 fi
12689 else
12690 # We cannot hardcode anything, or else we can only hardcode existing
12691 # directories.
12692 hardcode_action=unsupported
12693 fi
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12695 $as_echo "$hardcode_action" >&6; }
12696
12697 if test relink = "$hardcode_action" ||
12698 test yes = "$inherit_rpath"; then
12699 # Fast installation is not supported
12700 enable_fast_install=no
12701 elif test yes = "$shlibpath_overrides_runpath" ||
12702 test no = "$enable_shared"; then
12703 # Fast installation is not necessary
12704 enable_fast_install=needless
12705 fi
12706
12707
12708
12709
12710
12711
12712 if test yes != "$enable_dlopen"; then
12713 enable_dlopen=unknown
12714 enable_dlopen_self=unknown
12715 enable_dlopen_self_static=unknown
12716 else
12717 lt_cv_dlopen=no
12718 lt_cv_dlopen_libs=
12719
12720 case $host_os in
12721 beos*)
12722 lt_cv_dlopen=load_add_on
12723 lt_cv_dlopen_libs=
12724 lt_cv_dlopen_self=yes
12725 ;;
12726
12727 mingw* | pw32* | cegcc*)
12728 lt_cv_dlopen=LoadLibrary
12729 lt_cv_dlopen_libs=
12730 ;;
12731
12732 cygwin*)
12733 lt_cv_dlopen=dlopen
12734 lt_cv_dlopen_libs=
12735 ;;
12736
12737 darwin*)
12738 # if libdl is installed we need to link against it
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12740 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12741 if ${ac_cv_lib_dl_dlopen+:} false; then :
12742 $as_echo_n "(cached) " >&6
12743 else
12744 ac_check_lib_save_LIBS=$LIBS
12745 LIBS="-ldl $LIBS"
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12748
12749 /* Override any GCC internal prototype to avoid an error.
12750 Use char because int might match the return type of a GCC
12751 builtin and then its argument prototype would still apply. */
12752 #ifdef __cplusplus
12753 extern "C"
12754 #endif
12755 char dlopen ();
12756 int
12757 main ()
12758 {
12759 return dlopen ();
12760 ;
12761 return 0;
12762 }
12763 _ACEOF
12764 if ac_fn_c_try_link "$LINENO"; then :
12765 ac_cv_lib_dl_dlopen=yes
12766 else
12767 ac_cv_lib_dl_dlopen=no
12768 fi
12769 rm -f core conftest.err conftest.$ac_objext \
12770 conftest$ac_exeext conftest.$ac_ext
12771 LIBS=$ac_check_lib_save_LIBS
12772 fi
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12774 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12775 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12776 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12777 else
12778
12779 lt_cv_dlopen=dyld
12780 lt_cv_dlopen_libs=
12781 lt_cv_dlopen_self=yes
12782
12783 fi
12784
12785 ;;
12786
12787 tpf*)
12788 # Don't try to run any link tests for TPF. We know it's impossible
12789 # because TPF is a cross-compiler, and we know how we open DSOs.
12790 lt_cv_dlopen=dlopen
12791 lt_cv_dlopen_libs=
12792 lt_cv_dlopen_self=no
12793 ;;
12794
12795 *)
12796 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12797 if test "x$ac_cv_func_shl_load" = xyes; then :
12798 lt_cv_dlopen=shl_load
12799 else
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12801 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12802 if ${ac_cv_lib_dld_shl_load+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804 else
12805 ac_check_lib_save_LIBS=$LIBS
12806 LIBS="-ldld $LIBS"
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12809
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 char shl_load ();
12817 int
12818 main ()
12819 {
12820 return shl_load ();
12821 ;
12822 return 0;
12823 }
12824 _ACEOF
12825 if ac_fn_c_try_link "$LINENO"; then :
12826 ac_cv_lib_dld_shl_load=yes
12827 else
12828 ac_cv_lib_dld_shl_load=no
12829 fi
12830 rm -f core conftest.err conftest.$ac_objext \
12831 conftest$ac_exeext conftest.$ac_ext
12832 LIBS=$ac_check_lib_save_LIBS
12833 fi
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12835 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12836 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12837 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12838 else
12839 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12840 if test "x$ac_cv_func_dlopen" = xyes; then :
12841 lt_cv_dlopen=dlopen
12842 else
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12844 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12845 if ${ac_cv_lib_dl_dlopen+:} false; then :
12846 $as_echo_n "(cached) " >&6
12847 else
12848 ac_check_lib_save_LIBS=$LIBS
12849 LIBS="-ldl $LIBS"
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12852
12853 /* Override any GCC internal prototype to avoid an error.
12854 Use char because int might match the return type of a GCC
12855 builtin and then its argument prototype would still apply. */
12856 #ifdef __cplusplus
12857 extern "C"
12858 #endif
12859 char dlopen ();
12860 int
12861 main ()
12862 {
12863 return dlopen ();
12864 ;
12865 return 0;
12866 }
12867 _ACEOF
12868 if ac_fn_c_try_link "$LINENO"; then :
12869 ac_cv_lib_dl_dlopen=yes
12870 else
12871 ac_cv_lib_dl_dlopen=no
12872 fi
12873 rm -f core conftest.err conftest.$ac_objext \
12874 conftest$ac_exeext conftest.$ac_ext
12875 LIBS=$ac_check_lib_save_LIBS
12876 fi
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12878 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12879 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12880 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12881 else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12883 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12884 if ${ac_cv_lib_svld_dlopen+:} false; then :
12885 $as_echo_n "(cached) " >&6
12886 else
12887 ac_check_lib_save_LIBS=$LIBS
12888 LIBS="-lsvld $LIBS"
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12891
12892 /* Override any GCC internal prototype to avoid an error.
12893 Use char because int might match the return type of a GCC
12894 builtin and then its argument prototype would still apply. */
12895 #ifdef __cplusplus
12896 extern "C"
12897 #endif
12898 char dlopen ();
12899 int
12900 main ()
12901 {
12902 return dlopen ();
12903 ;
12904 return 0;
12905 }
12906 _ACEOF
12907 if ac_fn_c_try_link "$LINENO"; then :
12908 ac_cv_lib_svld_dlopen=yes
12909 else
12910 ac_cv_lib_svld_dlopen=no
12911 fi
12912 rm -f core conftest.err conftest.$ac_objext \
12913 conftest$ac_exeext conftest.$ac_ext
12914 LIBS=$ac_check_lib_save_LIBS
12915 fi
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12917 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12918 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12919 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12920 else
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12922 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12923 if ${ac_cv_lib_dld_dld_link+:} false; then :
12924 $as_echo_n "(cached) " >&6
12925 else
12926 ac_check_lib_save_LIBS=$LIBS
12927 LIBS="-ldld $LIBS"
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12930
12931 /* Override any GCC internal prototype to avoid an error.
12932 Use char because int might match the return type of a GCC
12933 builtin and then its argument prototype would still apply. */
12934 #ifdef __cplusplus
12935 extern "C"
12936 #endif
12937 char dld_link ();
12938 int
12939 main ()
12940 {
12941 return dld_link ();
12942 ;
12943 return 0;
12944 }
12945 _ACEOF
12946 if ac_fn_c_try_link "$LINENO"; then :
12947 ac_cv_lib_dld_dld_link=yes
12948 else
12949 ac_cv_lib_dld_dld_link=no
12950 fi
12951 rm -f core conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
12953 LIBS=$ac_check_lib_save_LIBS
12954 fi
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12956 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12957 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12958 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12959 fi
12960
12961
12962 fi
12963
12964
12965 fi
12966
12967
12968 fi
12969
12970
12971 fi
12972
12973
12974 fi
12975
12976 ;;
12977 esac
12978
12979 if test no = "$lt_cv_dlopen"; then
12980 enable_dlopen=no
12981 else
12982 enable_dlopen=yes
12983 fi
12984
12985 case $lt_cv_dlopen in
12986 dlopen)
12987 save_CPPFLAGS=$CPPFLAGS
12988 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12989
12990 save_LDFLAGS=$LDFLAGS
12991 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12992
12993 save_LIBS=$LIBS
12994 LIBS="$lt_cv_dlopen_libs $LIBS"
12995
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12997 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12998 if ${lt_cv_dlopen_self+:} false; then :
12999 $as_echo_n "(cached) " >&6
13000 else
13001 if test yes = "$cross_compiling"; then :
13002 lt_cv_dlopen_self=cross
13003 else
13004 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13005 lt_status=$lt_dlunknown
13006 cat > conftest.$ac_ext <<_LT_EOF
13007 #line $LINENO "configure"
13008 #include "confdefs.h"
13009
13010 #if HAVE_DLFCN_H
13011 #include <dlfcn.h>
13012 #endif
13013
13014 #include <stdio.h>
13015
13016 #ifdef RTLD_GLOBAL
13017 # define LT_DLGLOBAL RTLD_GLOBAL
13018 #else
13019 # ifdef DL_GLOBAL
13020 # define LT_DLGLOBAL DL_GLOBAL
13021 # else
13022 # define LT_DLGLOBAL 0
13023 # endif
13024 #endif
13025
13026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13027 find out it does not work in some platform. */
13028 #ifndef LT_DLLAZY_OR_NOW
13029 # ifdef RTLD_LAZY
13030 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13031 # else
13032 # ifdef DL_LAZY
13033 # define LT_DLLAZY_OR_NOW DL_LAZY
13034 # else
13035 # ifdef RTLD_NOW
13036 # define LT_DLLAZY_OR_NOW RTLD_NOW
13037 # else
13038 # ifdef DL_NOW
13039 # define LT_DLLAZY_OR_NOW DL_NOW
13040 # else
13041 # define LT_DLLAZY_OR_NOW 0
13042 # endif
13043 # endif
13044 # endif
13045 # endif
13046 #endif
13047
13048 /* When -fvisibility=hidden is used, assume the code has been annotated
13049 correspondingly for the symbols needed. */
13050 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13051 int fnord () __attribute__((visibility("default")));
13052 #endif
13053
13054 int fnord () { return 42; }
13055 int main ()
13056 {
13057 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13058 int status = $lt_dlunknown;
13059
13060 if (self)
13061 {
13062 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13063 else
13064 {
13065 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13066 else puts (dlerror ());
13067 }
13068 /* dlclose (self); */
13069 }
13070 else
13071 puts (dlerror ());
13072
13073 return status;
13074 }
13075 _LT_EOF
13076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13077 (eval $ac_link) 2>&5
13078 ac_status=$?
13079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13080 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13081 (./conftest; exit; ) >&5 2>/dev/null
13082 lt_status=$?
13083 case x$lt_status in
13084 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13085 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13086 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13087 esac
13088 else :
13089 # compilation failed
13090 lt_cv_dlopen_self=no
13091 fi
13092 fi
13093 rm -fr conftest*
13094
13095
13096 fi
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13098 $as_echo "$lt_cv_dlopen_self" >&6; }
13099
13100 if test yes = "$lt_cv_dlopen_self"; then
13101 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13103 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13104 if ${lt_cv_dlopen_self_static+:} false; then :
13105 $as_echo_n "(cached) " >&6
13106 else
13107 if test yes = "$cross_compiling"; then :
13108 lt_cv_dlopen_self_static=cross
13109 else
13110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13111 lt_status=$lt_dlunknown
13112 cat > conftest.$ac_ext <<_LT_EOF
13113 #line $LINENO "configure"
13114 #include "confdefs.h"
13115
13116 #if HAVE_DLFCN_H
13117 #include <dlfcn.h>
13118 #endif
13119
13120 #include <stdio.h>
13121
13122 #ifdef RTLD_GLOBAL
13123 # define LT_DLGLOBAL RTLD_GLOBAL
13124 #else
13125 # ifdef DL_GLOBAL
13126 # define LT_DLGLOBAL DL_GLOBAL
13127 # else
13128 # define LT_DLGLOBAL 0
13129 # endif
13130 #endif
13131
13132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13133 find out it does not work in some platform. */
13134 #ifndef LT_DLLAZY_OR_NOW
13135 # ifdef RTLD_LAZY
13136 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13137 # else
13138 # ifdef DL_LAZY
13139 # define LT_DLLAZY_OR_NOW DL_LAZY
13140 # else
13141 # ifdef RTLD_NOW
13142 # define LT_DLLAZY_OR_NOW RTLD_NOW
13143 # else
13144 # ifdef DL_NOW
13145 # define LT_DLLAZY_OR_NOW DL_NOW
13146 # else
13147 # define LT_DLLAZY_OR_NOW 0
13148 # endif
13149 # endif
13150 # endif
13151 # endif
13152 #endif
13153
13154 /* When -fvisibility=hidden is used, assume the code has been annotated
13155 correspondingly for the symbols needed. */
13156 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13157 int fnord () __attribute__((visibility("default")));
13158 #endif
13159
13160 int fnord () { return 42; }
13161 int main ()
13162 {
13163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13164 int status = $lt_dlunknown;
13165
13166 if (self)
13167 {
13168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13169 else
13170 {
13171 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13172 else puts (dlerror ());
13173 }
13174 /* dlclose (self); */
13175 }
13176 else
13177 puts (dlerror ());
13178
13179 return status;
13180 }
13181 _LT_EOF
13182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13183 (eval $ac_link) 2>&5
13184 ac_status=$?
13185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13186 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13187 (./conftest; exit; ) >&5 2>/dev/null
13188 lt_status=$?
13189 case x$lt_status in
13190 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13191 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13192 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13193 esac
13194 else :
13195 # compilation failed
13196 lt_cv_dlopen_self_static=no
13197 fi
13198 fi
13199 rm -fr conftest*
13200
13201
13202 fi
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13204 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13205 fi
13206
13207 CPPFLAGS=$save_CPPFLAGS
13208 LDFLAGS=$save_LDFLAGS
13209 LIBS=$save_LIBS
13210 ;;
13211 esac
13212
13213 case $lt_cv_dlopen_self in
13214 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13215 *) enable_dlopen_self=unknown ;;
13216 esac
13217
13218 case $lt_cv_dlopen_self_static in
13219 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13220 *) enable_dlopen_self_static=unknown ;;
13221 esac
13222 fi
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240 striplib=
13241 old_striplib=
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13243 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13244 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13245 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13246 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13248 $as_echo "yes" >&6; }
13249 else
13250 # FIXME - insert some real tests, host_os isn't really good enough
13251 case $host_os in
13252 darwin*)
13253 if test -n "$STRIP"; then
13254 striplib="$STRIP -x"
13255 old_striplib="$STRIP -S"
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13257 $as_echo "yes" >&6; }
13258 else
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13261 fi
13262 ;;
13263 *)
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13266 ;;
13267 esac
13268 fi
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281 # Report what library types will actually be built
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13283 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13285 $as_echo "$can_build_shared" >&6; }
13286
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13288 $as_echo_n "checking whether to build shared libraries... " >&6; }
13289 test no = "$can_build_shared" && enable_shared=no
13290
13291 # On AIX, shared libraries and static libraries use the same namespace, and
13292 # are all built from PIC.
13293 case $host_os in
13294 aix3*)
13295 test yes = "$enable_shared" && enable_static=no
13296 if test -n "$RANLIB"; then
13297 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13298 postinstall_cmds='$RANLIB $lib'
13299 fi
13300 ;;
13301
13302 aix[4-9]*)
13303 if test ia64 != "$host_cpu"; then
13304 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13305 yes,aix,yes) ;; # shared object as lib.so file only
13306 yes,svr4,*) ;; # shared object as lib.so archive member only
13307 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13308 esac
13309 fi
13310 ;;
13311 esac
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13313 $as_echo "$enable_shared" >&6; }
13314
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13316 $as_echo_n "checking whether to build static libraries... " >&6; }
13317 # Make sure either enable_shared or enable_static is yes.
13318 test yes = "$enable_shared" || enable_static=yes
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13320 $as_echo "$enable_static" >&6; }
13321
13322
13323
13324
13325 fi
13326 ac_ext=c
13327 ac_cpp='$CPP $CPPFLAGS'
13328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13331
13332 CC=$lt_save_CC
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348 ac_config_commands="$ac_config_commands libtool"
13349
13350
13351
13352
13353 # Only expand once:
13354
13355
13356
13357 LIBTOOL="$LIBTOOL --silent"
13358
13359 case "$host_os" in
13360 *cygwin*)
13361
13362 cat >>confdefs.h <<_ACEOF
13363 #define CYGWIN 1
13364 _ACEOF
13365
13366
13367 cat >>confdefs.h <<_ACEOF
13368 #define WINDOWS 1
13369 _ACEOF
13370
13371 ;;
13372 *mingw*)
13373
13374 cat >>confdefs.h <<_ACEOF
13375 #define MINGW 1
13376 _ACEOF
13377
13378
13379 cat >>confdefs.h <<_ACEOF
13380 #define WINDOWS 1
13381 _ACEOF
13382
13383 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
13384 if test "x$ac_cv_header_windows_h" = xyes; then :
13385
13386 else
13387 as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5
13388 fi
13389
13390
13391 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
13392 if test "x$ac_cv_header_winsock2_h" = xyes; then :
13393
13394 else
13395 as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5
13396 fi
13397
13398
13399
13400 cat >>confdefs.h <<_ACEOF
13401 #define HAVE_WINSOCK2_H 1
13402 _ACEOF
13403
13404
13405 cat >>confdefs.h <<_ACEOF
13406 #define HAVE_WINSOCK_H 1
13407 _ACEOF
13408
13409 LIBS="$LIBS -lws2_32 -liphlpapi"
13410 is_mingw="yes"
13411 ;;
13412 *interix*)
13413 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
13414 ;;
13415 *solaris*)
13416 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
13417 ;;
13418 *)
13419 ;;
13420 esac
13421
13422 if test "$is_mingw" = "yes"; then
13423 MINGW_TRUE=
13424 MINGW_FALSE='#'
13425 else
13426 MINGW_TRUE='#'
13427 MINGW_FALSE=
13428 fi
13429
13430
13431
13432 # backwards support for IRC_CFLAGS
13433 CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
13434
13435 if test "$libexecdir" = '${exec_prefix}/libexec' &&
13436 test "$localstatedir" = '${prefix}/var'; then
13437 libexecdir='${bindir}'
13438 localstatedir='${prefix}'
13439 fi
13440
13441 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13442 if test "x$ac_cv_type_pid_t" = xyes; then :
13443
13444 else
13445
13446 cat >>confdefs.h <<_ACEOF
13447 #define pid_t int
13448 _ACEOF
13449
13450 fi
13451
13452 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13453 if test "x$ac_cv_type_size_t" = xyes; then :
13454
13455 else
13456
13457 cat >>confdefs.h <<_ACEOF
13458 #define size_t unsigned int
13459 _ACEOF
13460
13461 fi
13462
13463 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13464 if test "x$ac_cv_type_ssize_t" = xyes; then :
13465
13466 else
13467
13468 cat >>confdefs.h <<_ACEOF
13469 #define ssize_t int
13470 _ACEOF
13471
13472 fi
13473
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13475 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13476 if ${ac_cv_type_uid_t+:} false; then :
13477 $as_echo_n "(cached) " >&6
13478 else
13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h. */
13481 #include <sys/types.h>
13482
13483 _ACEOF
13484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13485 $EGREP "uid_t" >/dev/null 2>&1; then :
13486 ac_cv_type_uid_t=yes
13487 else
13488 ac_cv_type_uid_t=no
13489 fi
13490 rm -f conftest*
13491
13492 fi
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13494 $as_echo "$ac_cv_type_uid_t" >&6; }
13495 if test $ac_cv_type_uid_t = no; then
13496
13497 $as_echo "#define uid_t int" >>confdefs.h
13498
13499
13500 $as_echo "#define gid_t int" >>confdefs.h
13501
13502 fi
13503
13504
13505
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13507 $as_echo_n "checking for ANSI C header files... " >&6; }
13508 if ${ac_cv_header_stdc+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510 else
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513 #include <stdlib.h>
13514 #include <stdarg.h>
13515 #include <string.h>
13516 #include <float.h>
13517
13518 int
13519 main ()
13520 {
13521
13522 ;
13523 return 0;
13524 }
13525 _ACEOF
13526 if ac_fn_c_try_compile "$LINENO"; then :
13527 ac_cv_header_stdc=yes
13528 else
13529 ac_cv_header_stdc=no
13530 fi
13531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532
13533 if test $ac_cv_header_stdc = yes; then
13534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13537 #include <string.h>
13538
13539 _ACEOF
13540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13541 $EGREP "memchr" >/dev/null 2>&1; then :
13542
13543 else
13544 ac_cv_header_stdc=no
13545 fi
13546 rm -f conftest*
13547
13548 fi
13549
13550 if test $ac_cv_header_stdc = yes; then
13551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13554 #include <stdlib.h>
13555
13556 _ACEOF
13557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13558 $EGREP "free" >/dev/null 2>&1; then :
13559
13560 else
13561 ac_cv_header_stdc=no
13562 fi
13563 rm -f conftest*
13564
13565 fi
13566
13567 if test $ac_cv_header_stdc = yes; then
13568 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13569 if test "$cross_compiling" = yes; then :
13570 :
13571 else
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13574 #include <ctype.h>
13575 #include <stdlib.h>
13576 #if ((' ' & 0x0FF) == 0x020)
13577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13579 #else
13580 # define ISLOWER(c) \
13581 (('a' <= (c) && (c) <= 'i') \
13582 || ('j' <= (c) && (c) <= 'r') \
13583 || ('s' <= (c) && (c) <= 'z'))
13584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13585 #endif
13586
13587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13588 int
13589 main ()
13590 {
13591 int i;
13592 for (i = 0; i < 256; i++)
13593 if (XOR (islower (i), ISLOWER (i))
13594 || toupper (i) != TOUPPER (i))
13595 return 2;
13596 return 0;
13597 }
13598 _ACEOF
13599 if ac_fn_c_try_run "$LINENO"; then :
13600
13601 else
13602 ac_cv_header_stdc=no
13603 fi
13604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13605 conftest.$ac_objext conftest.beam conftest.$ac_ext
13606 fi
13607
13608 fi
13609 fi
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13611 $as_echo "$ac_cv_header_stdc" >&6; }
13612 if test $ac_cv_header_stdc = yes; then
13613
13614 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13615
13616 fi
13617
13618
13619 for ac_header in crypt.h unistd.h sys/socket.h sys/stat.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h sys/uio.h spawn.h sys/poll.h sys/epoll.h sys/select.h sys/devpoll.h sys/event.h port.h signal.h sys/signalfd.h sys/timerfd.h linux/tcp.h
13620 do :
13621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13622 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13623 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13624 cat >>confdefs.h <<_ACEOF
13625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13626 _ACEOF
13627
13628 fi
13629
13630 done
13631
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13633 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13634 if ${ac_cv_header_time+:} false; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 #include <sys/types.h>
13640 #include <sys/time.h>
13641 #include <time.h>
13642
13643 int
13644 main ()
13645 {
13646 if ((struct tm *) 0)
13647 return 0;
13648 ;
13649 return 0;
13650 }
13651 _ACEOF
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653 ac_cv_header_time=yes
13654 else
13655 ac_cv_header_time=no
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 fi
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13660 $as_echo "$ac_cv_header_time" >&6; }
13661 if test $ac_cv_header_time = yes; then
13662
13663 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13664
13665 fi
13666
13667
13668
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13670 $as_echo_n "checking for library containing socket... " >&6; }
13671 if ${ac_cv_search_socket+:} false; then :
13672 $as_echo_n "(cached) " >&6
13673 else
13674 ac_func_search_save_LIBS=$LIBS
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677
13678 /* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13681 #ifdef __cplusplus
13682 extern "C"
13683 #endif
13684 char socket ();
13685 int
13686 main ()
13687 {
13688 return socket ();
13689 ;
13690 return 0;
13691 }
13692 _ACEOF
13693 for ac_lib in '' socket; do
13694 if test -z "$ac_lib"; then
13695 ac_res="none required"
13696 else
13697 ac_res=-l$ac_lib
13698 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13699 fi
13700 if ac_fn_c_try_link "$LINENO"; then :
13701 ac_cv_search_socket=$ac_res
13702 fi
13703 rm -f core conftest.err conftest.$ac_objext \
13704 conftest$ac_exeext
13705 if ${ac_cv_search_socket+:} false; then :
13706 break
13707 fi
13708 done
13709 if ${ac_cv_search_socket+:} false; then :
13710
13711 else
13712 ac_cv_search_socket=no
13713 fi
13714 rm conftest.$ac_ext
13715 LIBS=$ac_func_search_save_LIBS
13716 fi
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13718 $as_echo "$ac_cv_search_socket" >&6; }
13719 ac_res=$ac_cv_search_socket
13720 if test "$ac_res" != no; then :
13721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13722
13723 fi
13724
13725
13726
13727 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
13728 #ifdef HAVE_SYS_TYPES_H
13729 #include <sys/types.h>
13730 #endif
13731 #ifdef HAVE_SYS_SOCKET_H
13732 #include <sys/socket.h>
13733 #endif
13734 #ifdef HAVE_WINSOCK2_H
13735 #include <winsock2.h>
13736 #endif
13737
13738 "
13739 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13740
13741 $as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
13742
13743 fi
13744
13745
13746 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13747 #include <sys/socket.h>
13748 "
13749 if test "x$ac_cv_type_socklen_t" = xyes; then :
13750 rb_cv_socklen_t=socklen_t
13751 else
13752
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13754 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13755 if ${rb_cv_socklen_t+:} false; then :
13756 $as_echo_n "(cached) " >&6
13757 else
13758
13759 # Systems have either "struct sockaddr *" or
13760 # "void *" as the second argument to getpeername
13761 rb_cv_socklen_t=
13762 for arg2 in "struct sockaddr" void; do
13763 for t in int size_t unsigned long "unsigned long"; do
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h. */
13766
13767 #ifdef HAVE_SYS_TYPES_H
13768 #include <sys/types.h>
13769 #endif
13770 #ifdef HAVE_SYS_SOCKET_H
13771 #include <sys/socket.h>
13772 #endif
13773 #ifdef HAVE_WINSOCK2_H
13774 #include <winsock2.h>
13775 #endif
13776 int getpeername (int, $arg2 *, $t *);
13777
13778 int
13779 main ()
13780 {
13781
13782 $t len;
13783 getpeername(0,0,&len);
13784
13785 ;
13786 return 0;
13787 }
13788 _ACEOF
13789 if ac_fn_c_try_compile "$LINENO"; then :
13790
13791 rb_cv_socklen_t="$t"
13792 break
13793
13794 fi
13795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13796 done
13797 done
13798
13799 if test "x$rb_cv_socklen_t" = x; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
13801 $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
13802 rb_cv_socklen_t=int
13803 fi
13804
13805 fi
13806
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
13808 $as_echo "$rb_cv_socklen_t" >&6; }
13809 fi
13810
13811
13812 rb_socklen_t=$rb_cv_socklen_t
13813
13814
13815
13816
13817
13818 # Check whether --enable-ipv6 was given.
13819 if test "${enable_ipv6+set}" = set; then :
13820 enableval=$enable_ipv6; ipv6=$enableval
13821 else
13822 ipv6=yes
13823 fi
13824
13825
13826 if test x$ipv6 != xyes; then
13827 have_v6="no"
13828 else
13829
13830 have_v6=yes
13831
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
13833 $as_echo_n "checking for INET6 protocol support... " >&6; }
13834 if ${rb_cv_proto_inet6+:} false; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837
13838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839 /* end confdefs.h. */
13840
13841 #include <sys/types.h>
13842 #include <sys/socket.h>
13843
13844 #ifndef PF_INET6
13845 #error Missing PF_INET6
13846 #endif
13847 #ifndef AF_INET6
13848 #error Mlssing AF_INET6
13849 #endif
13850
13851 _ACEOF
13852 if ac_fn_c_try_cpp "$LINENO"; then :
13853
13854 rb_cv_proto_inet6=yes
13855
13856 else
13857
13858 rb_cv_proto_inet6=no
13859
13860 fi
13861 rm -f conftest.err conftest.i conftest.$ac_ext
13862
13863 fi
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
13865 $as_echo "$rb_cv_proto_inet6" >&6; }
13866
13867 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
13868
13869 else :
13870
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
13872 $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
13873 have_v6=no
13874
13875 fi
13876
13877
13878 if test "X$have_v6" = "Xyes"; then
13879
13880 rb_have_sockaddr_in6=
13881 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
13882 #include <sys/types.h>
13883 #include <sys/socket.h>
13884 #include <netinet/in.h>
13885
13886 "
13887 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13888
13889 cat >>confdefs.h <<_ACEOF
13890 #define HAVE_STRUCT_SOCKADDR_IN6 1
13891 _ACEOF
13892
13893
13894 rb_have_sockaddr_in6=yes
13895
13896 else
13897
13898 rb_have_sockaddr_in6=no
13899
13900 fi
13901
13902
13903 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
13904
13905 else :
13906
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
13908 $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
13909 have_v6=no
13910
13911 fi
13912
13913 fi
13914
13915 fi
13916
13917 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
13918 #include <sys/types.h>
13919 #include <sys/socket.h>
13920
13921 "
13922 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13923
13924 cat >>confdefs.h <<_ACEOF
13925 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13926 _ACEOF
13927
13928
13929 rb_have_sockaddr_storage=yes
13930
13931 fi
13932
13933
13934
13935 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13936 if test "x$ac_cv_header_stdarg_h" = xyes; then :
13937
13938 else
13939 as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
13940 fi
13941
13942
13943
13944 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
13945 #include <sys/socket.h>
13946 "
13947 if test "x$ac_cv_type_sa_family_t" = xyes; then :
13948
13949 else
13950
13951 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
13952
13953 fi
13954
13955
13956
13957 for ac_func in snprintf vsnprintf socketpair gettimeofday writev sendmsg gmtime_r strtok_r usleep posix_spawn strlcpy strlcat strnlen fstat signalfd select poll kevent port_create epoll_ctl arc4random getrusage timerfd_create
13958 do :
13959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13960 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13961 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13962 cat >>confdefs.h <<_ACEOF
13963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13964 _ACEOF
13965
13966 fi
13967 done
13968
13969
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
13971 $as_echo_n "checking for library containing nanosleep... " >&6; }
13972 if ${ac_cv_search_nanosleep+:} false; then :
13973 $as_echo_n "(cached) " >&6
13974 else
13975 ac_func_search_save_LIBS=$LIBS
13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h. */
13978
13979 /* Override any GCC internal prototype to avoid an error.
13980 Use char because int might match the return type of a GCC
13981 builtin and then its argument prototype would still apply. */
13982 #ifdef __cplusplus
13983 extern "C"
13984 #endif
13985 char nanosleep ();
13986 int
13987 main ()
13988 {
13989 return nanosleep ();
13990 ;
13991 return 0;
13992 }
13993 _ACEOF
13994 for ac_lib in '' rt posix4; do
13995 if test -z "$ac_lib"; then
13996 ac_res="none required"
13997 else
13998 ac_res=-l$ac_lib
13999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14000 fi
14001 if ac_fn_c_try_link "$LINENO"; then :
14002 ac_cv_search_nanosleep=$ac_res
14003 fi
14004 rm -f core conftest.err conftest.$ac_objext \
14005 conftest$ac_exeext
14006 if ${ac_cv_search_nanosleep+:} false; then :
14007 break
14008 fi
14009 done
14010 if ${ac_cv_search_nanosleep+:} false; then :
14011
14012 else
14013 ac_cv_search_nanosleep=no
14014 fi
14015 rm conftest.$ac_ext
14016 LIBS=$ac_func_search_save_LIBS
14017 fi
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14019 $as_echo "$ac_cv_search_nanosleep" >&6; }
14020 ac_res=$ac_cv_search_nanosleep
14021 if test "$ac_res" != no; then :
14022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14023
14024 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
14025
14026 fi
14027
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
14029 $as_echo_n "checking for library containing timer_create... " >&6; }
14030 if ${ac_cv_search_timer_create+:} false; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 ac_func_search_save_LIBS=$LIBS
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14036
14037 /* Override any GCC internal prototype to avoid an error.
14038 Use char because int might match the return type of a GCC
14039 builtin and then its argument prototype would still apply. */
14040 #ifdef __cplusplus
14041 extern "C"
14042 #endif
14043 char timer_create ();
14044 int
14045 main ()
14046 {
14047 return timer_create ();
14048 ;
14049 return 0;
14050 }
14051 _ACEOF
14052 for ac_lib in '' rt; do
14053 if test -z "$ac_lib"; then
14054 ac_res="none required"
14055 else
14056 ac_res=-l$ac_lib
14057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14058 fi
14059 if ac_fn_c_try_link "$LINENO"; then :
14060 ac_cv_search_timer_create=$ac_res
14061 fi
14062 rm -f core conftest.err conftest.$ac_objext \
14063 conftest$ac_exeext
14064 if ${ac_cv_search_timer_create+:} false; then :
14065 break
14066 fi
14067 done
14068 if ${ac_cv_search_timer_create+:} false; then :
14069
14070 else
14071 ac_cv_search_timer_create=no
14072 fi
14073 rm conftest.$ac_ext
14074 LIBS=$ac_func_search_save_LIBS
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
14077 $as_echo "$ac_cv_search_timer_create" >&6; }
14078 ac_res=$ac_cv_search_timer_create
14079 if test "$ac_res" != no; then :
14080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14081
14082 $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
14083
14084 fi
14085
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
14087 $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
14088 if ${rb__cv_timer_create_works+:} false; then :
14089 $as_echo_n "(cached) " >&6
14090 else
14091 if test "$cross_compiling" = yes; then :
14092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14094 as_fn_error $? "cannot run test program while cross compiling
14095 See \`config.log' for more details" "$LINENO" 5; }
14096 else
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099
14100 #ifdef HAVE_TIME_H
14101 #include <time.h>
14102 #endif
14103 #ifdef HAVE_SIGNAL_H
14104 #include <signal.h>
14105 #endif
14106 #ifdef HAVE_UNISTD_H
14107 #include <unistd.h>
14108 #endif
14109 int main(int argc, char *argv[])
14110 {
14111 #if HAVE_TIMER_CREATE
14112 struct sigevent ev;
14113 timer_t timer;
14114 ev.sigev_notify = SIGEV_SIGNAL;
14115 ev.sigev_signo = SIGVTALRM;
14116 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
14117 return 1;
14118 }
14119 #else
14120 return 1;
14121 #endif
14122 return 0;
14123 }
14124
14125 _ACEOF
14126 if ac_fn_c_try_run "$LINENO"; then :
14127 rb__cv_timer_create_works=yes
14128 else
14129 rb__cv_timer_create_works=no
14130 fi
14131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14132 conftest.$ac_objext conftest.beam conftest.$ac_ext
14133 fi
14134
14135
14136 fi
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
14138 $as_echo "$rb__cv_timer_create_works" >&6; }
14139 case $rb__cv_timer_create_works in
14140 yes)
14141 $as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
14142 ;;
14143 esac
14144
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
14146 $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
14147 if ${rb__cv_timerfd_create_works+:} false; then :
14148 $as_echo_n "(cached) " >&6
14149 else
14150 if test "$cross_compiling" = yes; then :
14151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14153 as_fn_error $? "cannot run test program while cross compiling
14154 See \`config.log' for more details" "$LINENO" 5; }
14155 else
14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157 /* end confdefs.h. */
14158
14159 #ifdef HAVE_TIME_H
14160 #include <time.h>
14161 #endif
14162 #ifdef HAVE_SIGNAL_H
14163 #include <signal.h>
14164 #endif
14165 #ifdef HAVE_UNISTD_H
14166 #include <unistd.h>
14167 #endif
14168 #ifdef HAVE_SYS_TIMERFD_H
14169 #include <sys/timerfd.h>
14170 #endif
14171 int main(int argc, char *argv[])
14172 {
14173 #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
14174 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
14175 return 1;
14176 }
14177 #else
14178 return 1;
14179 #endif
14180 return 0;
14181 }
14182
14183 _ACEOF
14184 if ac_fn_c_try_run "$LINENO"; then :
14185 rb__cv_timerfd_create_works=yes
14186 else
14187 rb__cv_timerfd_create_works=no
14188 fi
14189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14190 conftest.$ac_objext conftest.beam conftest.$ac_ext
14191 fi
14192
14193
14194 fi
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
14196 $as_echo "$rb__cv_timerfd_create_works" >&6; }
14197 case $rb__cv_timerfd_create_works in
14198 yes)
14199 $as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
14200 ;;
14201 esac
14202
14203
14204 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14205 # for constant arguments. Useless!
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14207 $as_echo_n "checking for working alloca.h... " >&6; }
14208 if ${ac_cv_working_alloca_h+:} false; then :
14209 $as_echo_n "(cached) " >&6
14210 else
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h. */
14213 #include <alloca.h>
14214 int
14215 main ()
14216 {
14217 char *p = (char *) alloca (2 * sizeof (int));
14218 if (p) return 0;
14219 ;
14220 return 0;
14221 }
14222 _ACEOF
14223 if ac_fn_c_try_link "$LINENO"; then :
14224 ac_cv_working_alloca_h=yes
14225 else
14226 ac_cv_working_alloca_h=no
14227 fi
14228 rm -f core conftest.err conftest.$ac_objext \
14229 conftest$ac_exeext conftest.$ac_ext
14230 fi
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14232 $as_echo "$ac_cv_working_alloca_h" >&6; }
14233 if test $ac_cv_working_alloca_h = yes; then
14234
14235 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14236
14237 fi
14238
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14240 $as_echo_n "checking for alloca... " >&6; }
14241 if ${ac_cv_func_alloca_works+:} false; then :
14242 $as_echo_n "(cached) " >&6
14243 else
14244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245 /* end confdefs.h. */
14246 #ifdef __GNUC__
14247 # define alloca __builtin_alloca
14248 #else
14249 # ifdef _MSC_VER
14250 # include <malloc.h>
14251 # define alloca _alloca
14252 # else
14253 # ifdef HAVE_ALLOCA_H
14254 # include <alloca.h>
14255 # else
14256 # ifdef _AIX
14257 #pragma alloca
14258 # else
14259 # ifndef alloca /* predefined by HP cc +Olibcalls */
14260 void *alloca (size_t);
14261 # endif
14262 # endif
14263 # endif
14264 # endif
14265 #endif
14266
14267 int
14268 main ()
14269 {
14270 char *p = (char *) alloca (1);
14271 if (p) return 0;
14272 ;
14273 return 0;
14274 }
14275 _ACEOF
14276 if ac_fn_c_try_link "$LINENO"; then :
14277 ac_cv_func_alloca_works=yes
14278 else
14279 ac_cv_func_alloca_works=no
14280 fi
14281 rm -f core conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
14283 fi
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14285 $as_echo "$ac_cv_func_alloca_works" >&6; }
14286
14287 if test $ac_cv_func_alloca_works = yes; then
14288
14289 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14290
14291 else
14292 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14293 # that cause trouble. Some versions do not even contain alloca or
14294 # contain a buggy version. If you still want to use their alloca,
14295 # use ar to extract alloca.o from them instead of compiling alloca.c.
14296
14297 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14298
14299 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14300
14301
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14303 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14304 if ${ac_cv_os_cray+:} false; then :
14305 $as_echo_n "(cached) " >&6
14306 else
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14309 #if defined CRAY && ! defined CRAY2
14310 webecray
14311 #else
14312 wenotbecray
14313 #endif
14314
14315 _ACEOF
14316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14317 $EGREP "webecray" >/dev/null 2>&1; then :
14318 ac_cv_os_cray=yes
14319 else
14320 ac_cv_os_cray=no
14321 fi
14322 rm -f conftest*
14323
14324 fi
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14326 $as_echo "$ac_cv_os_cray" >&6; }
14327 if test $ac_cv_os_cray = yes; then
14328 for ac_func in _getb67 GETB67 getb67; do
14329 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14330 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14331 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14332
14333 cat >>confdefs.h <<_ACEOF
14334 #define CRAY_STACKSEG_END $ac_func
14335 _ACEOF
14336
14337 break
14338 fi
14339
14340 done
14341 fi
14342
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14344 $as_echo_n "checking stack direction for C alloca... " >&6; }
14345 if ${ac_cv_c_stack_direction+:} false; then :
14346 $as_echo_n "(cached) " >&6
14347 else
14348 if test "$cross_compiling" = yes; then :
14349 ac_cv_c_stack_direction=0
14350 else
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14353 $ac_includes_default
14354 int
14355 find_stack_direction (int *addr, int depth)
14356 {
14357 int dir, dummy = 0;
14358 if (! addr)
14359 addr = &dummy;
14360 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14361 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14362 return dir + dummy;
14363 }
14364
14365 int
14366 main (int argc, char **argv)
14367 {
14368 return find_stack_direction (0, argc + !argv + 20) < 0;
14369 }
14370 _ACEOF
14371 if ac_fn_c_try_run "$LINENO"; then :
14372 ac_cv_c_stack_direction=1
14373 else
14374 ac_cv_c_stack_direction=-1
14375 fi
14376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14377 conftest.$ac_objext conftest.beam conftest.$ac_ext
14378 fi
14379
14380 fi
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14382 $as_echo "$ac_cv_c_stack_direction" >&6; }
14383 cat >>confdefs.h <<_ACEOF
14384 #define STACK_DIRECTION $ac_cv_c_stack_direction
14385 _ACEOF
14386
14387
14388 fi
14389
14390 for ac_header in vfork.h
14391 do :
14392 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14393 if test "x$ac_cv_header_vfork_h" = xyes; then :
14394 cat >>confdefs.h <<_ACEOF
14395 #define HAVE_VFORK_H 1
14396 _ACEOF
14397
14398 fi
14399
14400 done
14401
14402 for ac_func in fork vfork
14403 do :
14404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14405 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14406 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14407 cat >>confdefs.h <<_ACEOF
14408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14409 _ACEOF
14410
14411 fi
14412 done
14413
14414 if test "x$ac_cv_func_fork" = xyes; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14416 $as_echo_n "checking for working fork... " >&6; }
14417 if ${ac_cv_func_fork_works+:} false; then :
14418 $as_echo_n "(cached) " >&6
14419 else
14420 if test "$cross_compiling" = yes; then :
14421 ac_cv_func_fork_works=cross
14422 else
14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h. */
14425 $ac_includes_default
14426 int
14427 main ()
14428 {
14429
14430 /* By Ruediger Kuhlmann. */
14431 return fork () < 0;
14432
14433 ;
14434 return 0;
14435 }
14436 _ACEOF
14437 if ac_fn_c_try_run "$LINENO"; then :
14438 ac_cv_func_fork_works=yes
14439 else
14440 ac_cv_func_fork_works=no
14441 fi
14442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14443 conftest.$ac_objext conftest.beam conftest.$ac_ext
14444 fi
14445
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14448 $as_echo "$ac_cv_func_fork_works" >&6; }
14449
14450 else
14451 ac_cv_func_fork_works=$ac_cv_func_fork
14452 fi
14453 if test "x$ac_cv_func_fork_works" = xcross; then
14454 case $host in
14455 *-*-amigaos* | *-*-msdosdjgpp*)
14456 # Override, as these systems have only a dummy fork() stub
14457 ac_cv_func_fork_works=no
14458 ;;
14459 *)
14460 ac_cv_func_fork_works=yes
14461 ;;
14462 esac
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14464 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14465 fi
14466 ac_cv_func_vfork_works=$ac_cv_func_vfork
14467 if test "x$ac_cv_func_vfork" = xyes; then
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14469 $as_echo_n "checking for working vfork... " >&6; }
14470 if ${ac_cv_func_vfork_works+:} false; then :
14471 $as_echo_n "(cached) " >&6
14472 else
14473 if test "$cross_compiling" = yes; then :
14474 ac_cv_func_vfork_works=cross
14475 else
14476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477 /* end confdefs.h. */
14478 /* Thanks to Paul Eggert for this test. */
14479 $ac_includes_default
14480 #include <sys/wait.h>
14481 #ifdef HAVE_VFORK_H
14482 # include <vfork.h>
14483 #endif
14484 /* On some sparc systems, changes by the child to local and incoming
14485 argument registers are propagated back to the parent. The compiler
14486 is told about this with #include <vfork.h>, but some compilers
14487 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14488 static variable whose address is put into a register that is
14489 clobbered by the vfork. */
14490 static void
14491 #ifdef __cplusplus
14492 sparc_address_test (int arg)
14493 # else
14494 sparc_address_test (arg) int arg;
14495 #endif
14496 {
14497 static pid_t child;
14498 if (!child) {
14499 child = vfork ();
14500 if (child < 0) {
14501 perror ("vfork");
14502 _exit(2);
14503 }
14504 if (!child) {
14505 arg = getpid();
14506 write(-1, "", 0);
14507 _exit (arg);
14508 }
14509 }
14510 }
14511
14512 int
14513 main ()
14514 {
14515 pid_t parent = getpid ();
14516 pid_t child;
14517
14518 sparc_address_test (0);
14519
14520 child = vfork ();
14521
14522 if (child == 0) {
14523 /* Here is another test for sparc vfork register problems. This
14524 test uses lots of local variables, at least as many local
14525 variables as main has allocated so far including compiler
14526 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14527 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14528 reuse the register of parent for one of the local variables,
14529 since it will think that parent can't possibly be used any more
14530 in this routine. Assigning to the local variable will thus
14531 munge parent in the parent process. */
14532 pid_t
14533 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14534 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14535 /* Convince the compiler that p..p7 are live; otherwise, it might
14536 use the same hardware register for all 8 local variables. */
14537 if (p != p1 || p != p2 || p != p3 || p != p4
14538 || p != p5 || p != p6 || p != p7)
14539 _exit(1);
14540
14541 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14542 from child file descriptors. If the child closes a descriptor
14543 before it execs or exits, this munges the parent's descriptor
14544 as well. Test for this by closing stdout in the child. */
14545 _exit(close(fileno(stdout)) != 0);
14546 } else {
14547 int status;
14548 struct stat st;
14549
14550 while (wait(&status) != child)
14551 ;
14552 return (
14553 /* Was there some problem with vforking? */
14554 child < 0
14555
14556 /* Did the child fail? (This shouldn't happen.) */
14557 || status
14558
14559 /* Did the vfork/compiler bug occur? */
14560 || parent != getpid()
14561
14562 /* Did the file descriptor bug occur? */
14563 || fstat(fileno(stdout), &st) != 0
14564 );
14565 }
14566 }
14567 _ACEOF
14568 if ac_fn_c_try_run "$LINENO"; then :
14569 ac_cv_func_vfork_works=yes
14570 else
14571 ac_cv_func_vfork_works=no
14572 fi
14573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14574 conftest.$ac_objext conftest.beam conftest.$ac_ext
14575 fi
14576
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14579 $as_echo "$ac_cv_func_vfork_works" >&6; }
14580
14581 fi;
14582 if test "x$ac_cv_func_fork_works" = xcross; then
14583 ac_cv_func_vfork_works=$ac_cv_func_vfork
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14585 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14586 fi
14587
14588 if test "x$ac_cv_func_vfork_works" = xyes; then
14589
14590 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14591
14592 else
14593
14594 $as_echo "#define vfork fork" >>confdefs.h
14595
14596 fi
14597 if test "x$ac_cv_func_fork_works" = xyes; then
14598
14599 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14600
14601 fi
14602
14603
14604
14605
14606 for ac_header in $ac_header_list
14607 do :
14608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14609 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14610 "
14611 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14612 cat >>confdefs.h <<_ACEOF
14613 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14614 _ACEOF
14615
14616 fi
14617
14618 done
14619
14620
14621
14622
14623
14624
14625
14626
14627 for ac_func in getpagesize
14628 do :
14629 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14630 if test "x$ac_cv_func_getpagesize" = xyes; then :
14631 cat >>confdefs.h <<_ACEOF
14632 #define HAVE_GETPAGESIZE 1
14633 _ACEOF
14634
14635 fi
14636 done
14637
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14639 $as_echo_n "checking for working mmap... " >&6; }
14640 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14641 $as_echo_n "(cached) " >&6
14642 else
14643 if test "$cross_compiling" = yes; then :
14644 ac_cv_func_mmap_fixed_mapped=no
14645 else
14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h. */
14648 $ac_includes_default
14649 /* malloc might have been renamed as rpl_malloc. */
14650 #undef malloc
14651
14652 /* Thanks to Mike Haertel and Jim Avera for this test.
14653 Here is a matrix of mmap possibilities:
14654 mmap private not fixed
14655 mmap private fixed at somewhere currently unmapped
14656 mmap private fixed at somewhere already mapped
14657 mmap shared not fixed
14658 mmap shared fixed at somewhere currently unmapped
14659 mmap shared fixed at somewhere already mapped
14660 For private mappings, we should verify that changes cannot be read()
14661 back from the file, nor mmap's back from the file at a different
14662 address. (There have been systems where private was not correctly
14663 implemented like the infamous i386 svr4.0, and systems where the
14664 VM page cache was not coherent with the file system buffer cache
14665 like early versions of FreeBSD and possibly contemporary NetBSD.)
14666 For shared mappings, we should conversely verify that changes get
14667 propagated back to all the places they're supposed to be.
14668
14669 Grep wants private fixed already mapped.
14670 The main things grep needs to know about mmap are:
14671 * does it exist and is it safe to write into the mmap'd area
14672 * how to use it (BSD variants) */
14673
14674 #include <fcntl.h>
14675 #include <sys/mman.h>
14676
14677 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14678 char *malloc ();
14679 #endif
14680
14681 /* This mess was copied from the GNU getpagesize.h. */
14682 #ifndef HAVE_GETPAGESIZE
14683 # ifdef _SC_PAGESIZE
14684 # define getpagesize() sysconf(_SC_PAGESIZE)
14685 # else /* no _SC_PAGESIZE */
14686 # ifdef HAVE_SYS_PARAM_H
14687 # include <sys/param.h>
14688 # ifdef EXEC_PAGESIZE
14689 # define getpagesize() EXEC_PAGESIZE
14690 # else /* no EXEC_PAGESIZE */
14691 # ifdef NBPG
14692 # define getpagesize() NBPG * CLSIZE
14693 # ifndef CLSIZE
14694 # define CLSIZE 1
14695 # endif /* no CLSIZE */
14696 # else /* no NBPG */
14697 # ifdef NBPC
14698 # define getpagesize() NBPC
14699 # else /* no NBPC */
14700 # ifdef PAGESIZE
14701 # define getpagesize() PAGESIZE
14702 # endif /* PAGESIZE */
14703 # endif /* no NBPC */
14704 # endif /* no NBPG */
14705 # endif /* no EXEC_PAGESIZE */
14706 # else /* no HAVE_SYS_PARAM_H */
14707 # define getpagesize() 8192 /* punt totally */
14708 # endif /* no HAVE_SYS_PARAM_H */
14709 # endif /* no _SC_PAGESIZE */
14710
14711 #endif /* no HAVE_GETPAGESIZE */
14712
14713 int
14714 main ()
14715 {
14716 char *data, *data2, *data3;
14717 const char *cdata2;
14718 int i, pagesize;
14719 int fd, fd2;
14720
14721 pagesize = getpagesize ();
14722
14723 /* First, make a file with some known garbage in it. */
14724 data = (char *) malloc (pagesize);
14725 if (!data)
14726 return 1;
14727 for (i = 0; i < pagesize; ++i)
14728 *(data + i) = rand ();
14729 umask (0);
14730 fd = creat ("conftest.mmap", 0600);
14731 if (fd < 0)
14732 return 2;
14733 if (write (fd, data, pagesize) != pagesize)
14734 return 3;
14735 close (fd);
14736
14737 /* Next, check that the tail of a page is zero-filled. File must have
14738 non-zero length, otherwise we risk SIGBUS for entire page. */
14739 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14740 if (fd2 < 0)
14741 return 4;
14742 cdata2 = "";
14743 if (write (fd2, cdata2, 1) != 1)
14744 return 5;
14745 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14746 if (data2 == MAP_FAILED)
14747 return 6;
14748 for (i = 0; i < pagesize; ++i)
14749 if (*(data2 + i))
14750 return 7;
14751 close (fd2);
14752 if (munmap (data2, pagesize))
14753 return 8;
14754
14755 /* Next, try to mmap the file at a fixed address which already has
14756 something else allocated at it. If we can, also make sure that
14757 we see the same garbage. */
14758 fd = open ("conftest.mmap", O_RDWR);
14759 if (fd < 0)
14760 return 9;
14761 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14762 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14763 return 10;
14764 for (i = 0; i < pagesize; ++i)
14765 if (*(data + i) != *(data2 + i))
14766 return 11;
14767
14768 /* Finally, make sure that changes to the mapped area do not
14769 percolate back to the file as seen by read(). (This is a bug on
14770 some variants of i386 svr4.0.) */
14771 for (i = 0; i < pagesize; ++i)
14772 *(data2 + i) = *(data2 + i) + 1;
14773 data3 = (char *) malloc (pagesize);
14774 if (!data3)
14775 return 12;
14776 if (read (fd, data3, pagesize) != pagesize)
14777 return 13;
14778 for (i = 0; i < pagesize; ++i)
14779 if (*(data + i) != *(data3 + i))
14780 return 14;
14781 close (fd);
14782 return 0;
14783 }
14784 _ACEOF
14785 if ac_fn_c_try_run "$LINENO"; then :
14786 ac_cv_func_mmap_fixed_mapped=yes
14787 else
14788 ac_cv_func_mmap_fixed_mapped=no
14789 fi
14790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14791 conftest.$ac_objext conftest.beam conftest.$ac_ext
14792 fi
14793
14794 fi
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14796 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14797 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14798
14799 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14800
14801 fi
14802 rm -f conftest.mmap conftest.txt
14803
14804
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14806 $as_echo_n "checking for /dev/poll... " >&6; }
14807 if test -c "/dev/poll"; then
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14809 $as_echo "yes" >&6; }
14810
14811 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14812
14813 else
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14815 $as_echo "no" >&6; }
14816 fi
14817
14818
14819 if test "$is_mingw" = "yes"; then
14820
14821 $as_echo "#define HAVE_WIN32 1" >>confdefs.h
14822
14823 fi
14824
14825
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14827 $as_echo_n "checking for OpenSSL... " >&6; }
14828 # Check whether --enable-openssl was given.
14829 if test "${enable_openssl+set}" = set; then :
14830 enableval=$enable_openssl; cf_enable_openssl=$enableval
14831 else
14832 cf_enable_openssl="auto"
14833 fi
14834
14835
14836 if test "$cf_enable_openssl" != "no" ; then
14837 cf_openssl_basedir=""
14838 if test "$cf_enable_openssl" != "auto" &&
14839 test "$cf_enable_openssl" != "yes" ; then
14840 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
14841 else
14842 for dirs in /usr/local/ssl /usr/pkg /usr/local \
14843 /usr/local/openssl ; do
14844 if test -f "${dirs}/include/openssl/opensslv.h" ; then
14845 cf_openssl_basedir="${dirs}"
14846 break
14847 fi
14848 done
14849 unset dirs
14850 fi
14851 if test ! -z "$cf_openssl_basedir"; then
14852 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
14853 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
14854 SSL_LIBS="-L${cf_openssl_basedir}/lib"
14855 else
14856 cf_openssl_basedir=""
14857 fi
14858 else
14859 if test -f "/usr/include/openssl/opensslv.h" ; then
14860 cf_openssl_basedir="/usr"
14861 fi
14862 fi
14863
14864 if test ! -z "$cf_openssl_basedir"; then
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14866 $as_echo "$cf_openssl_basedir" >&6; }
14867 cf_enable_openssl="yes"
14868 else
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
14870 $as_echo "not found. Specify a correct path?" >&6; }
14871 cf_enable_openssl="no"
14872 fi
14873 unset cf_openssl_basedir
14874 else
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14876 $as_echo "disabled" >&6; }
14877 fi
14878
14879 save_CPPFLAGS="$CPPFLAGS"
14880 CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
14881 save_LIBS="$LIBS"
14882 LIBS="$LIBS $SSL_LIBS"
14883 if test "$cf_enable_openssl" != no; then
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
14885 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
14886 if test "$cross_compiling" = yes; then :
14887 cf_enable_openssl=no
14888 else
14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14891 #include <openssl/opensslv.h>
14892 #include <stdlib.h>
14893 int
14894 main ()
14895 {
14896 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
14897 exit(0); else exit(1);
14898 ;
14899 return 0;
14900 }
14901 _ACEOF
14902 if ac_fn_c_try_run "$LINENO"; then :
14903 cf_enable_openssl=yes
14904 else
14905 cf_enable_openssl=no
14906 fi
14907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14908 conftest.$ac_objext conftest.beam conftest.$ac_ext
14909 fi
14910
14911
14912 if test "$cf_enable_openssl" != no; then
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14914 $as_echo "found" >&6; }
14915 else
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14917 $as_echo "no - OpenSSL support disabled" >&6; }
14918 fi
14919
14920 fi
14921
14922
14923 if test "$cf_enable_openssl" != no; then
14924 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
14926 $as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
14927 if ${ac_cv_lib_crypto_RAND_status+:} false; then :
14928 $as_echo_n "(cached) " >&6
14929 else
14930 ac_check_lib_save_LIBS=$LIBS
14931 LIBS="-lcrypto $LIBS"
14932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h. */
14934
14935 /* Override any GCC internal prototype to avoid an error.
14936 Use char because int might match the return type of a GCC
14937 builtin and then its argument prototype would still apply. */
14938 #ifdef __cplusplus
14939 extern "C"
14940 #endif
14941 char RAND_status ();
14942 int
14943 main ()
14944 {
14945 return RAND_status ();
14946 ;
14947 return 0;
14948 }
14949 _ACEOF
14950 if ac_fn_c_try_link "$LINENO"; then :
14951 ac_cv_lib_crypto_RAND_status=yes
14952 else
14953 ac_cv_lib_crypto_RAND_status=no
14954 fi
14955 rm -f core conftest.err conftest.$ac_objext \
14956 conftest$ac_exeext conftest.$ac_ext
14957 LIBS=$ac_check_lib_save_LIBS
14958 fi
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
14960 $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
14961 if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then :
14962 cf_enable_openssl=yes
14963 else
14964 cf_enable_openssl=no
14965 fi
14966
14967 fi
14968
14969 if test "$cf_enable_openssl" != no; then
14970 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
14972 $as_echo_n "checking for SSL_read in -lssl... " >&6; }
14973 if ${ac_cv_lib_ssl_SSL_read+:} false; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 ac_check_lib_save_LIBS=$LIBS
14977 LIBS="-lssl -lcrypto $LIBS"
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14980
14981 /* Override any GCC internal prototype to avoid an error.
14982 Use char because int might match the return type of a GCC
14983 builtin and then its argument prototype would still apply. */
14984 #ifdef __cplusplus
14985 extern "C"
14986 #endif
14987 char SSL_read ();
14988 int
14989 main ()
14990 {
14991 return SSL_read ();
14992 ;
14993 return 0;
14994 }
14995 _ACEOF
14996 if ac_fn_c_try_link "$LINENO"; then :
14997 ac_cv_lib_ssl_SSL_read=yes
14998 else
14999 ac_cv_lib_ssl_SSL_read=no
15000 fi
15001 rm -f core conftest.err conftest.$ac_objext \
15002 conftest$ac_exeext conftest.$ac_ext
15003 LIBS=$ac_check_lib_save_LIBS
15004 fi
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
15006 $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
15007 if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then :
15008 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
15009 else
15010 cf_enable_openssl=no
15011 fi
15012
15013 fi
15014
15015
15016 # Check whether --enable-mbedtls was given.
15017 if test "${enable_mbedtls+set}" = set; then :
15018 enableval=$enable_mbedtls; cf_enable_mbedtls=$enableval
15019 else
15020 cf_enable_mbedtls="auto"
15021 fi
15022
15023
15024 if test "$cf_enable_mbedtls" != no; then
15025 save_CPPFLAGS="$CPPFLAGS"
15026 save_LIBS="$LIBS"
15027 LIBS="$LIBS $MBEDTLS_LIBS"
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
15029 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
15030 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
15031 $as_echo_n "(cached) " >&6
15032 else
15033 ac_check_lib_save_LIBS=$LIBS
15034 LIBS="-lmbedtls -lmbedcrypto -lmbedx509 $LIBS"
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15037
15038 /* Override any GCC internal prototype to avoid an error.
15039 Use char because int might match the return type of a GCC
15040 builtin and then its argument prototype would still apply. */
15041 #ifdef __cplusplus
15042 extern "C"
15043 #endif
15044 char mbedtls_ssl_init ();
15045 int
15046 main ()
15047 {
15048 return mbedtls_ssl_init ();
15049 ;
15050 return 0;
15051 }
15052 _ACEOF
15053 if ac_fn_c_try_link "$LINENO"; then :
15054 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
15055 else
15056 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
15057 fi
15058 rm -f core conftest.err conftest.$ac_objext \
15059 conftest$ac_exeext conftest.$ac_ext
15060 LIBS=$ac_check_lib_save_LIBS
15061 fi
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
15063 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
15064 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
15065
15066 MBEDTLS_LIBS="$MBEDTLS_LIBS -lmbedtls -lmbedcrypto -lmbedx509"
15067 cf_enable_mbedtls=yes
15068
15069 else
15070 cf_enable_mbedtls=no
15071 fi
15072
15073 fi
15074
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
15076 $as_echo_n "checking for GnuTLS... " >&6; }
15077 # Check whether --enable-gnutls was given.
15078 if test "${enable_gnutls+set}" = set; then :
15079 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
15080 else
15081 cf_enable_gnutls="auto"
15082 fi
15083
15084
15085 if test "$cf_enable_gnutls" != no; then
15086
15087
15088
15089
15090
15091
15092
15093 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15094 if test -n "$ac_tool_prefix"; then
15095 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15096 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15098 $as_echo_n "checking for $ac_word... " >&6; }
15099 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15100 $as_echo_n "(cached) " >&6
15101 else
15102 case $PKG_CONFIG in
15103 [\\/]* | ?:[\\/]*)
15104 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15105 ;;
15106 *)
15107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15108 for as_dir in $PATH
15109 do
15110 IFS=$as_save_IFS
15111 test -z "$as_dir" && as_dir=.
15112 for ac_exec_ext in '' $ac_executable_extensions; do
15113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15114 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15116 break 2
15117 fi
15118 done
15119 done
15120 IFS=$as_save_IFS
15121
15122 ;;
15123 esac
15124 fi
15125 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15126 if test -n "$PKG_CONFIG"; then
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15128 $as_echo "$PKG_CONFIG" >&6; }
15129 else
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15131 $as_echo "no" >&6; }
15132 fi
15133
15134
15135 fi
15136 if test -z "$ac_cv_path_PKG_CONFIG"; then
15137 ac_pt_PKG_CONFIG=$PKG_CONFIG
15138 # Extract the first word of "pkg-config", so it can be a program name with args.
15139 set dummy pkg-config; ac_word=$2
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15141 $as_echo_n "checking for $ac_word... " >&6; }
15142 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15143 $as_echo_n "(cached) " >&6
15144 else
15145 case $ac_pt_PKG_CONFIG in
15146 [\\/]* | ?:[\\/]*)
15147 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15148 ;;
15149 *)
15150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151 for as_dir in $PATH
15152 do
15153 IFS=$as_save_IFS
15154 test -z "$as_dir" && as_dir=.
15155 for ac_exec_ext in '' $ac_executable_extensions; do
15156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15157 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15159 break 2
15160 fi
15161 done
15162 done
15163 IFS=$as_save_IFS
15164
15165 ;;
15166 esac
15167 fi
15168 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15169 if test -n "$ac_pt_PKG_CONFIG"; then
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15171 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15172 else
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15174 $as_echo "no" >&6; }
15175 fi
15176
15177 if test "x$ac_pt_PKG_CONFIG" = x; then
15178 PKG_CONFIG=""
15179 else
15180 case $cross_compiling:$ac_tool_warned in
15181 yes:)
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15184 ac_tool_warned=yes ;;
15185 esac
15186 PKG_CONFIG=$ac_pt_PKG_CONFIG
15187 fi
15188 else
15189 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15190 fi
15191
15192 fi
15193 if test -n "$PKG_CONFIG"; then
15194 _pkg_min_version=0.9.0
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15196 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15197 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15199 $as_echo "yes" >&6; }
15200 else
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15202 $as_echo "no" >&6; }
15203 PKG_CONFIG=""
15204 fi
15205 fi
15206
15207 pkg_failed=no
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
15209 $as_echo_n "checking for GNUTLS... " >&6; }
15210
15211 if test -n "$GNUTLS_CFLAGS"; then
15212 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
15213 elif test -n "$PKG_CONFIG"; then
15214 if test -n "$PKG_CONFIG" && \
15215 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
15216 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
15217 ac_status=$?
15218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15219 test $ac_status = 0; }; then
15220 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
15221 test "x$?" != "x0" && pkg_failed=yes
15222 else
15223 pkg_failed=yes
15224 fi
15225 else
15226 pkg_failed=untried
15227 fi
15228 if test -n "$GNUTLS_LIBS"; then
15229 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
15230 elif test -n "$PKG_CONFIG"; then
15231 if test -n "$PKG_CONFIG" && \
15232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
15233 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
15234 ac_status=$?
15235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15236 test $ac_status = 0; }; then
15237 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
15238 test "x$?" != "x0" && pkg_failed=yes
15239 else
15240 pkg_failed=yes
15241 fi
15242 else
15243 pkg_failed=untried
15244 fi
15245
15246
15247
15248 if test $pkg_failed = yes; then
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15250 $as_echo "no" >&6; }
15251
15252 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15253 _pkg_short_errors_supported=yes
15254 else
15255 _pkg_short_errors_supported=no
15256 fi
15257 if test $_pkg_short_errors_supported = yes; then
15258 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1`
15259 else
15260 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1`
15261 fi
15262 # Put the nasty error message in config.log where it belongs
15263 echo "$GNUTLS_PKG_ERRORS" >&5
15264
15265 cf_enable_gnutls="no"
15266 elif test $pkg_failed = untried; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268 $as_echo "no" >&6; }
15269 cf_enable_gnutls="no"
15270 else
15271 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
15272 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15274 $as_echo "yes" >&6; }
15275
15276 cf_enable_gnutls="yes"
15277
15278 fi
15279 fi
15280
15281 if test "$cf_enable_openssl" = "auto" -a "$cf_enable_mbedtls" = "yes"; then
15282 cf_enable_openssl="no"
15283 fi
15284
15285 if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes" -a "$cf_enable_mbedtls" = "yes"; then
15286 cf_enable_gnutls="no"
15287 fi
15288
15289 if test x"$cf_enable_openssl" != xno; then
15290
15291 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
15292
15293 GNUTLS_CFLAGS=""
15294 GNUTLS_LIBS=""
15295 MBEDTLS_LIBS=""
15296 MBEDTLS_CFLAGS=""
15297 SSL_TYPE="openssl"
15298 elif test x"$cf_enable_mbedtls" != xno; then
15299
15300 $as_echo "#define HAVE_MBEDTLS 1" >>confdefs.h
15301
15302 SSL_LIBS=""
15303 SSL_CFLAGS=""
15304 GNUTLS_CFLAGS=""
15305 GNUTLS_LIBS=""
15306 SSL_TYPE="mbedtls"
15307 elif test x"$cf_enable_gnutls" != xno; then
15308
15309 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
15310
15311 SSL_LIBS=""
15312 SSL_CFLAGS=""
15313 MBEDTLS_LIBS=""
15314 MBEDTLS_CFLAGS=""
15315 SSL_TYPE="gnutls"
15316 fi
15317
15318
15319
15320
15321 CPPFLAGS="$save_CPPFLAGS"
15322 LIBS="$save_LIBS"
15323
15324
15325
15326
15327
15328
15329 # Check whether --enable-assert was given.
15330 if test "${enable_assert+set}" = set; then :
15331 enableval=$enable_assert; assert=$enableval
15332 else
15333 assert=no
15334 fi
15335
15336
15337 if test "$assert" = no; then
15338
15339 $as_echo "#define NDEBUG 1" >>confdefs.h
15340
15341 elif test "$assert" = soft; then
15342
15343 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
15344
15345
15346 $as_echo "#define NDEBUG 1" >>confdefs.h
15347
15348 elif test "$assert" = yes; then
15349 assert = "hard";
15350 fi
15351
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
15353 $as_echo_n "checking if you want to do a profile build... " >&6; }
15354 # Check whether --enable-profile was given.
15355 if test "${enable_profile+set}" = set; then :
15356 enableval=$enable_profile; profile=$enableval
15357 else
15358 profile=no
15359 fi
15360
15361
15362 if test "$profile" = yes; then
15363 if test "$ac_cv_c_compiler_gnu" = yes; then
15364 CFLAGS="$CFLAGS -pg -static"
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
15366 $as_echo "yes, adding -pg -static" >&6; }
15367
15368 $as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
15369
15370 else
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
15372 $as_echo "no, profile builds only work with gcc" >&6; }
15373 fi
15374 else
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15376 $as_echo "no" >&6; }
15377 fi
15378
15379 # Check whether --enable-warnings was given.
15380 if test "${enable_warnings+set}" = set; then :
15381 enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable"
15382 fi
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396 if test "$prefix" = "NONE"; then
15397
15398 cat >>confdefs.h <<_ACEOF
15399 #define RB_PREFIX "$ac_default_prefix"
15400 _ACEOF
15401
15402
15403 else
15404
15405
15406 prefix=`echo $prefix | sed 's/\/$//'`
15407
15408 cat >>confdefs.h <<_ACEOF
15409 #define RB_PREFIX "$prefix"
15410 _ACEOF
15411
15412
15413 fi
15414
15415
15416
15417 ac_config_commands="$ac_config_commands include/librb-config.h"
15418
15419
15420
15421 ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
15422
15423
15424 cat >confcache <<\_ACEOF
15425 # This file is a shell script that caches the results of configure
15426 # tests run on this system so they can be shared between configure
15427 # scripts and configure runs, see configure's option --config-cache.
15428 # It is not useful on other systems. If it contains results you don't
15429 # want to keep, you may remove or edit it.
15430 #
15431 # config.status only pays attention to the cache file if you give it
15432 # the --recheck option to rerun configure.
15433 #
15434 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15435 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15436 # following values.
15437
15438 _ACEOF
15439
15440 # The following way of writing the cache mishandles newlines in values,
15441 # but we know of no workaround that is simple, portable, and efficient.
15442 # So, we kill variables containing newlines.
15443 # Ultrix sh set writes to stderr and can't be redirected directly,
15444 # and sets the high bit in the cache file unless we assign to the vars.
15445 (
15446 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15447 eval ac_val=\$$ac_var
15448 case $ac_val in #(
15449 *${as_nl}*)
15450 case $ac_var in #(
15451 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15452 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15453 esac
15454 case $ac_var in #(
15455 _ | IFS | as_nl) ;; #(
15456 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15457 *) { eval $ac_var=; unset $ac_var;} ;;
15458 esac ;;
15459 esac
15460 done
15461
15462 (set) 2>&1 |
15463 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15464 *${as_nl}ac_space=\ *)
15465 # `set' does not quote correctly, so add quotes: double-quote
15466 # substitution turns \\\\ into \\, and sed turns \\ into \.
15467 sed -n \
15468 "s/'/'\\\\''/g;
15469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15470 ;; #(
15471 *)
15472 # `set' quotes correctly as required by POSIX, so do not add quotes.
15473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15474 ;;
15475 esac |
15476 sort
15477 ) |
15478 sed '
15479 /^ac_cv_env_/b end
15480 t clear
15481 :clear
15482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15483 t end
15484 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15485 :end' >>confcache
15486 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15487 if test -w "$cache_file"; then
15488 if test "x$cache_file" != "x/dev/null"; then
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15490 $as_echo "$as_me: updating cache $cache_file" >&6;}
15491 if test ! -f "$cache_file" || test -h "$cache_file"; then
15492 cat confcache >"$cache_file"
15493 else
15494 case $cache_file in #(
15495 */* | ?:*)
15496 mv -f confcache "$cache_file"$$ &&
15497 mv -f "$cache_file"$$ "$cache_file" ;; #(
15498 *)
15499 mv -f confcache "$cache_file" ;;
15500 esac
15501 fi
15502 fi
15503 else
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15505 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15506 fi
15507 fi
15508 rm -f confcache
15509
15510 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15511 # Let make expand exec_prefix.
15512 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15513
15514 DEFS=-DHAVE_CONFIG_H
15515
15516 ac_libobjs=
15517 ac_ltlibobjs=
15518 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15519 # 1. Remove the extension, and $U if already installed.
15520 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15521 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15522 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15523 # will be set to the directory where LIBOBJS objects are built.
15524 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15525 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15526 done
15527 LIBOBJS=$ac_libobjs
15528
15529 LTLIBOBJS=$ac_ltlibobjs
15530
15531
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15533 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15534 if test -n "$am_sleep_pid"; then
15535 # Hide warnings about reused PIDs.
15536 wait $am_sleep_pid 2>/dev/null
15537 fi
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15539 $as_echo "done" >&6; }
15540 if test -n "$EXEEXT"; then
15541 am__EXEEXT_TRUE=
15542 am__EXEEXT_FALSE='#'
15543 else
15544 am__EXEEXT_TRUE='#'
15545 am__EXEEXT_FALSE=
15546 fi
15547
15548 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15549 as_fn_error $? "conditional \"AMDEP\" was never defined.
15550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15551 fi
15552 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15553 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15555 fi
15556 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15557 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559 fi
15560
15561 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
15562 as_fn_error $? "conditional \"MINGW\" was never defined.
15563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15564 fi
15565
15566 : "${CONFIG_STATUS=./config.status}"
15567 ac_write_fail=0
15568 ac_clean_files_save=$ac_clean_files
15569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15571 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15572 as_write_fail=0
15573 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15574 #! $SHELL
15575 # Generated by $as_me.
15576 # Run this file to recreate the current configuration.
15577 # Compiler output produced by configure, useful for debugging
15578 # configure, is in config.log if it exists.
15579
15580 debug=false
15581 ac_cs_recheck=false
15582 ac_cs_silent=false
15583
15584 SHELL=\${CONFIG_SHELL-$SHELL}
15585 export SHELL
15586 _ASEOF
15587 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15588 ## -------------------- ##
15589 ## M4sh Initialization. ##
15590 ## -------------------- ##
15591
15592 # Be more Bourne compatible
15593 DUALCASE=1; export DUALCASE # for MKS sh
15594 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15595 emulate sh
15596 NULLCMD=:
15597 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15598 # is contrary to our usage. Disable this feature.
15599 alias -g '${1+"$@"}'='"$@"'
15600 setopt NO_GLOB_SUBST
15601 else
15602 case `(set -o) 2>/dev/null` in #(
15603 *posix*) :
15604 set -o posix ;; #(
15605 *) :
15606 ;;
15607 esac
15608 fi
15609
15610
15611 as_nl='
15612 '
15613 export as_nl
15614 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15615 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15617 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15618 # Prefer a ksh shell builtin over an external printf program on Solaris,
15619 # but without wasting forks for bash or zsh.
15620 if test -z "$BASH_VERSION$ZSH_VERSION" \
15621 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15622 as_echo='print -r --'
15623 as_echo_n='print -rn --'
15624 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15625 as_echo='printf %s\n'
15626 as_echo_n='printf %s'
15627 else
15628 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15629 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15630 as_echo_n='/usr/ucb/echo -n'
15631 else
15632 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15633 as_echo_n_body='eval
15634 arg=$1;
15635 case $arg in #(
15636 *"$as_nl"*)
15637 expr "X$arg" : "X\\(.*\\)$as_nl";
15638 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15639 esac;
15640 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15641 '
15642 export as_echo_n_body
15643 as_echo_n='sh -c $as_echo_n_body as_echo'
15644 fi
15645 export as_echo_body
15646 as_echo='sh -c $as_echo_body as_echo'
15647 fi
15648
15649 # The user is always right.
15650 if test "${PATH_SEPARATOR+set}" != set; then
15651 PATH_SEPARATOR=:
15652 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15653 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15654 PATH_SEPARATOR=';'
15655 }
15656 fi
15657
15658
15659 # IFS
15660 # We need space, tab and new line, in precisely that order. Quoting is
15661 # there to prevent editors from complaining about space-tab.
15662 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15663 # splitting by setting IFS to empty value.)
15664 IFS=" "" $as_nl"
15665
15666 # Find who we are. Look in the path if we contain no directory separator.
15667 as_myself=
15668 case $0 in #((
15669 *[\\/]* ) as_myself=$0 ;;
15670 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15671 for as_dir in $PATH
15672 do
15673 IFS=$as_save_IFS
15674 test -z "$as_dir" && as_dir=.
15675 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15676 done
15677 IFS=$as_save_IFS
15678
15679 ;;
15680 esac
15681 # We did not find ourselves, most probably we were run as `sh COMMAND'
15682 # in which case we are not to be found in the path.
15683 if test "x$as_myself" = x; then
15684 as_myself=$0
15685 fi
15686 if test ! -f "$as_myself"; then
15687 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15688 exit 1
15689 fi
15690
15691 # Unset variables that we do not need and which cause bugs (e.g. in
15692 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15693 # suppresses any "Segmentation fault" message there. '((' could
15694 # trigger a bug in pdksh 5.2.14.
15695 for as_var in BASH_ENV ENV MAIL MAILPATH
15696 do eval test x\${$as_var+set} = xset \
15697 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15698 done
15699 PS1='$ '
15700 PS2='> '
15701 PS4='+ '
15702
15703 # NLS nuisances.
15704 LC_ALL=C
15705 export LC_ALL
15706 LANGUAGE=C
15707 export LANGUAGE
15708
15709 # CDPATH.
15710 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15711
15712
15713 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15714 # ----------------------------------------
15715 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15716 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15717 # script with STATUS, using 1 if that was 0.
15718 as_fn_error ()
15719 {
15720 as_status=$1; test $as_status -eq 0 && as_status=1
15721 if test "$4"; then
15722 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15723 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15724 fi
15725 $as_echo "$as_me: error: $2" >&2
15726 as_fn_exit $as_status
15727 } # as_fn_error
15728
15729
15730 # as_fn_set_status STATUS
15731 # -----------------------
15732 # Set $? to STATUS, without forking.
15733 as_fn_set_status ()
15734 {
15735 return $1
15736 } # as_fn_set_status
15737
15738 # as_fn_exit STATUS
15739 # -----------------
15740 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15741 as_fn_exit ()
15742 {
15743 set +e
15744 as_fn_set_status $1
15745 exit $1
15746 } # as_fn_exit
15747
15748 # as_fn_unset VAR
15749 # ---------------
15750 # Portably unset VAR.
15751 as_fn_unset ()
15752 {
15753 { eval $1=; unset $1;}
15754 }
15755 as_unset=as_fn_unset
15756 # as_fn_append VAR VALUE
15757 # ----------------------
15758 # Append the text in VALUE to the end of the definition contained in VAR. Take
15759 # advantage of any shell optimizations that allow amortized linear growth over
15760 # repeated appends, instead of the typical quadratic growth present in naive
15761 # implementations.
15762 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15763 eval 'as_fn_append ()
15764 {
15765 eval $1+=\$2
15766 }'
15767 else
15768 as_fn_append ()
15769 {
15770 eval $1=\$$1\$2
15771 }
15772 fi # as_fn_append
15773
15774 # as_fn_arith ARG...
15775 # ------------------
15776 # Perform arithmetic evaluation on the ARGs, and store the result in the
15777 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15778 # must be portable across $(()) and expr.
15779 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15780 eval 'as_fn_arith ()
15781 {
15782 as_val=$(( $* ))
15783 }'
15784 else
15785 as_fn_arith ()
15786 {
15787 as_val=`expr "$@" || test $? -eq 1`
15788 }
15789 fi # as_fn_arith
15790
15791
15792 if expr a : '\(a\)' >/dev/null 2>&1 &&
15793 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15794 as_expr=expr
15795 else
15796 as_expr=false
15797 fi
15798
15799 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15800 as_basename=basename
15801 else
15802 as_basename=false
15803 fi
15804
15805 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15806 as_dirname=dirname
15807 else
15808 as_dirname=false
15809 fi
15810
15811 as_me=`$as_basename -- "$0" ||
15812 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15813 X"$0" : 'X\(//\)$' \| \
15814 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15815 $as_echo X/"$0" |
15816 sed '/^.*\/\([^/][^/]*\)\/*$/{
15817 s//\1/
15818 q
15819 }
15820 /^X\/\(\/\/\)$/{
15821 s//\1/
15822 q
15823 }
15824 /^X\/\(\/\).*/{
15825 s//\1/
15826 q
15827 }
15828 s/.*/./; q'`
15829
15830 # Avoid depending upon Character Ranges.
15831 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15832 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15833 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15834 as_cr_digits='0123456789'
15835 as_cr_alnum=$as_cr_Letters$as_cr_digits
15836
15837 ECHO_C= ECHO_N= ECHO_T=
15838 case `echo -n x` in #(((((
15839 -n*)
15840 case `echo 'xy\c'` in
15841 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15842 xy) ECHO_C='\c';;
15843 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15844 ECHO_T=' ';;
15845 esac;;
15846 *)
15847 ECHO_N='-n';;
15848 esac
15849
15850 rm -f conf$$ conf$$.exe conf$$.file
15851 if test -d conf$$.dir; then
15852 rm -f conf$$.dir/conf$$.file
15853 else
15854 rm -f conf$$.dir
15855 mkdir conf$$.dir 2>/dev/null
15856 fi
15857 if (echo >conf$$.file) 2>/dev/null; then
15858 if ln -s conf$$.file conf$$ 2>/dev/null; then
15859 as_ln_s='ln -s'
15860 # ... but there are two gotchas:
15861 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15862 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15863 # In both cases, we have to default to `cp -pR'.
15864 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15865 as_ln_s='cp -pR'
15866 elif ln conf$$.file conf$$ 2>/dev/null; then
15867 as_ln_s=ln
15868 else
15869 as_ln_s='cp -pR'
15870 fi
15871 else
15872 as_ln_s='cp -pR'
15873 fi
15874 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15875 rmdir conf$$.dir 2>/dev/null
15876
15877
15878 # as_fn_mkdir_p
15879 # -------------
15880 # Create "$as_dir" as a directory, including parents if necessary.
15881 as_fn_mkdir_p ()
15882 {
15883
15884 case $as_dir in #(
15885 -*) as_dir=./$as_dir;;
15886 esac
15887 test -d "$as_dir" || eval $as_mkdir_p || {
15888 as_dirs=
15889 while :; do
15890 case $as_dir in #(
15891 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15892 *) as_qdir=$as_dir;;
15893 esac
15894 as_dirs="'$as_qdir' $as_dirs"
15895 as_dir=`$as_dirname -- "$as_dir" ||
15896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15897 X"$as_dir" : 'X\(//\)[^/]' \| \
15898 X"$as_dir" : 'X\(//\)$' \| \
15899 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15900 $as_echo X"$as_dir" |
15901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15902 s//\1/
15903 q
15904 }
15905 /^X\(\/\/\)[^/].*/{
15906 s//\1/
15907 q
15908 }
15909 /^X\(\/\/\)$/{
15910 s//\1/
15911 q
15912 }
15913 /^X\(\/\).*/{
15914 s//\1/
15915 q
15916 }
15917 s/.*/./; q'`
15918 test -d "$as_dir" && break
15919 done
15920 test -z "$as_dirs" || eval "mkdir $as_dirs"
15921 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15922
15923
15924 } # as_fn_mkdir_p
15925 if mkdir -p . 2>/dev/null; then
15926 as_mkdir_p='mkdir -p "$as_dir"'
15927 else
15928 test -d ./-p && rmdir ./-p
15929 as_mkdir_p=false
15930 fi
15931
15932
15933 # as_fn_executable_p FILE
15934 # -----------------------
15935 # Test if FILE is an executable regular file.
15936 as_fn_executable_p ()
15937 {
15938 test -f "$1" && test -x "$1"
15939 } # as_fn_executable_p
15940 as_test_x='test -x'
15941 as_executable_p=as_fn_executable_p
15942
15943 # Sed expression to map a string onto a valid CPP name.
15944 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15945
15946 # Sed expression to map a string onto a valid variable name.
15947 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15948
15949
15950 exec 6>&1
15951 ## ----------------------------------- ##
15952 ## Main body of $CONFIG_STATUS script. ##
15953 ## ----------------------------------- ##
15954 _ASEOF
15955 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15956
15957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15958 # Save the log message, to keep $0 and so on meaningful, and to
15959 # report actual input values of CONFIG_FILES etc. instead of their
15960 # values after options handling.
15961 ac_log="
15962 This file was extended by libratbox $as_me devel, which was
15963 generated by GNU Autoconf 2.69. Invocation command line was
15964
15965 CONFIG_FILES = $CONFIG_FILES
15966 CONFIG_HEADERS = $CONFIG_HEADERS
15967 CONFIG_LINKS = $CONFIG_LINKS
15968 CONFIG_COMMANDS = $CONFIG_COMMANDS
15969 $ $0 $@
15970
15971 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15972 "
15973
15974 _ACEOF
15975
15976 case $ac_config_files in *"
15977 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15978 esac
15979
15980 case $ac_config_headers in *"
15981 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15982 esac
15983
15984
15985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15986 # Files that config.status was made for.
15987 config_files="$ac_config_files"
15988 config_headers="$ac_config_headers"
15989 config_commands="$ac_config_commands"
15990
15991 _ACEOF
15992
15993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15994 ac_cs_usage="\
15995 \`$as_me' instantiates files and other configuration actions
15996 from templates according to the current configuration. Unless the files
15997 and actions are specified as TAGs, all are instantiated by default.
15998
15999 Usage: $0 [OPTION]... [TAG]...
16000
16001 -h, --help print this help, then exit
16002 -V, --version print version number and configuration settings, then exit
16003 --config print configuration, then exit
16004 -q, --quiet, --silent
16005 do not print progress messages
16006 -d, --debug don't remove temporary files
16007 --recheck update $as_me by reconfiguring in the same conditions
16008 --file=FILE[:TEMPLATE]
16009 instantiate the configuration file FILE
16010 --header=FILE[:TEMPLATE]
16011 instantiate the configuration header FILE
16012
16013 Configuration files:
16014 $config_files
16015
16016 Configuration headers:
16017 $config_headers
16018
16019 Configuration commands:
16020 $config_commands
16021
16022 Report bugs to the package provider."
16023
16024 _ACEOF
16025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16026 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16027 ac_cs_version="\\
16028 libratbox config.status devel
16029 configured by $0, generated by GNU Autoconf 2.69,
16030 with options \\"\$ac_cs_config\\"
16031
16032 Copyright (C) 2012 Free Software Foundation, Inc.
16033 This config.status script is free software; the Free Software Foundation
16034 gives unlimited permission to copy, distribute and modify it."
16035
16036 ac_pwd='$ac_pwd'
16037 srcdir='$srcdir'
16038 INSTALL='$INSTALL'
16039 MKDIR_P='$MKDIR_P'
16040 AWK='$AWK'
16041 test -n "\$AWK" || AWK=awk
16042 _ACEOF
16043
16044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16045 # The default lists apply if the user does not specify any file.
16046 ac_need_defaults=:
16047 while test $# != 0
16048 do
16049 case $1 in
16050 --*=?*)
16051 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16052 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16053 ac_shift=:
16054 ;;
16055 --*=)
16056 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16057 ac_optarg=
16058 ac_shift=:
16059 ;;
16060 *)
16061 ac_option=$1
16062 ac_optarg=$2
16063 ac_shift=shift
16064 ;;
16065 esac
16066
16067 case $ac_option in
16068 # Handling of the options.
16069 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16070 ac_cs_recheck=: ;;
16071 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16072 $as_echo "$ac_cs_version"; exit ;;
16073 --config | --confi | --conf | --con | --co | --c )
16074 $as_echo "$ac_cs_config"; exit ;;
16075 --debug | --debu | --deb | --de | --d | -d )
16076 debug=: ;;
16077 --file | --fil | --fi | --f )
16078 $ac_shift
16079 case $ac_optarg in
16080 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16081 '') as_fn_error $? "missing file argument" ;;
16082 esac
16083 as_fn_append CONFIG_FILES " '$ac_optarg'"
16084 ac_need_defaults=false;;
16085 --header | --heade | --head | --hea )
16086 $ac_shift
16087 case $ac_optarg in
16088 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16089 esac
16090 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16091 ac_need_defaults=false;;
16092 --he | --h)
16093 # Conflict between --help and --header
16094 as_fn_error $? "ambiguous option: \`$1'
16095 Try \`$0 --help' for more information.";;
16096 --help | --hel | -h )
16097 $as_echo "$ac_cs_usage"; exit ;;
16098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16099 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16100 ac_cs_silent=: ;;
16101
16102 # This is an error.
16103 -*) as_fn_error $? "unrecognized option: \`$1'
16104 Try \`$0 --help' for more information." ;;
16105
16106 *) as_fn_append ac_config_targets " $1"
16107 ac_need_defaults=false ;;
16108
16109 esac
16110 shift
16111 done
16112
16113 ac_configure_extra_args=
16114
16115 if $ac_cs_silent; then
16116 exec 6>/dev/null
16117 ac_configure_extra_args="$ac_configure_extra_args --silent"
16118 fi
16119
16120 _ACEOF
16121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16122 if \$ac_cs_recheck; then
16123 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16124 shift
16125 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16126 CONFIG_SHELL='$SHELL'
16127 export CONFIG_SHELL
16128 exec "\$@"
16129 fi
16130
16131 _ACEOF
16132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16133 exec 5>>config.log
16134 {
16135 echo
16136 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16137 ## Running $as_me. ##
16138 _ASBOX
16139 $as_echo "$ac_log"
16140 } >&5
16141
16142 _ACEOF
16143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16144 #
16145 # INIT-COMMANDS
16146 #
16147 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16148
16149
16150 # The HP-UX ksh and POSIX shell print the target directory to stdout
16151 # if CDPATH is set.
16152 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16153
16154 sed_quote_subst='$sed_quote_subst'
16155 double_quote_subst='$double_quote_subst'
16156 delay_variable_subst='$delay_variable_subst'
16157 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16158 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16159 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16160 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16161 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16162 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16163 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16164 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16165 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16166 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16167 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16168 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16169 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16170 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16171 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16172 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16173 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16174 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16175 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16176 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16177 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16178 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16179 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16180 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16181 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16182 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16183 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16184 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16185 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16186 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16187 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16188 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16189 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16190 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16191 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16192 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16193 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16194 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16195 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16196 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16197 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16198 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16199 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16200 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16201 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16202 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16203 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16204 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16205 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16206 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16207 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16208 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16209 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16210 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16211 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16212 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16213 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16214 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16215 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16216 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16217 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16218 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16219 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16220 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16221 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16222 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16223 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16224 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16225 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16226 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16227 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16228 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16229 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16230 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16231 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16232 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16233 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16234 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16235 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16236 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16237 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16238 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16239 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16240 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16241 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16242 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16243 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16244 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16245 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16246 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16247 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16248 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16249 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16250 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16251 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16252 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16253 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16254 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16255 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16256 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16257 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16258 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16259 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16260 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16261 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16262 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16263 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16264 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16265 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16266 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16267 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16268 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16269 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16270 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16271 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16272 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16273 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16274 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16275 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16276 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16277 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16278 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16279 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16280 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16281 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16282 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16283 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16284 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16285 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16286 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16287 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16288 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16289 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16290 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16291 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16292
16293 LTCC='$LTCC'
16294 LTCFLAGS='$LTCFLAGS'
16295 compiler='$compiler_DEFAULT'
16296
16297 # A function that is used when there is no print builtin or printf.
16298 func_fallback_echo ()
16299 {
16300 eval 'cat <<_LTECHO_EOF
16301 \$1
16302 _LTECHO_EOF'
16303 }
16304
16305 # Quote evaled strings.
16306 for var in SHELL \
16307 ECHO \
16308 PATH_SEPARATOR \
16309 SED \
16310 GREP \
16311 EGREP \
16312 FGREP \
16313 LD \
16314 NM \
16315 LN_S \
16316 lt_SP2NL \
16317 lt_NL2SP \
16318 reload_flag \
16319 OBJDUMP \
16320 deplibs_check_method \
16321 file_magic_cmd \
16322 file_magic_glob \
16323 want_nocaseglob \
16324 DLLTOOL \
16325 sharedlib_from_linklib_cmd \
16326 AR \
16327 AR_FLAGS \
16328 archiver_list_spec \
16329 STRIP \
16330 RANLIB \
16331 CC \
16332 CFLAGS \
16333 compiler \
16334 lt_cv_sys_global_symbol_pipe \
16335 lt_cv_sys_global_symbol_to_cdecl \
16336 lt_cv_sys_global_symbol_to_import \
16337 lt_cv_sys_global_symbol_to_c_name_address \
16338 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16339 lt_cv_nm_interface \
16340 nm_file_list_spec \
16341 lt_cv_truncate_bin \
16342 lt_prog_compiler_no_builtin_flag \
16343 lt_prog_compiler_pic \
16344 lt_prog_compiler_wl \
16345 lt_prog_compiler_static \
16346 lt_cv_prog_compiler_c_o \
16347 need_locks \
16348 MANIFEST_TOOL \
16349 DSYMUTIL \
16350 NMEDIT \
16351 LIPO \
16352 OTOOL \
16353 OTOOL64 \
16354 shrext_cmds \
16355 export_dynamic_flag_spec \
16356 whole_archive_flag_spec \
16357 compiler_needs_object \
16358 with_gnu_ld \
16359 allow_undefined_flag \
16360 no_undefined_flag \
16361 hardcode_libdir_flag_spec \
16362 hardcode_libdir_separator \
16363 exclude_expsyms \
16364 include_expsyms \
16365 file_list_spec \
16366 variables_saved_for_relink \
16367 libname_spec \
16368 library_names_spec \
16369 soname_spec \
16370 install_override_mode \
16371 finish_eval \
16372 old_striplib \
16373 striplib; do
16374 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16375 *[\\\\\\\`\\"\\\$]*)
16376 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16377 ;;
16378 *)
16379 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16380 ;;
16381 esac
16382 done
16383
16384 # Double-quote double-evaled strings.
16385 for var in reload_cmds \
16386 old_postinstall_cmds \
16387 old_postuninstall_cmds \
16388 old_archive_cmds \
16389 extract_expsyms_cmds \
16390 old_archive_from_new_cmds \
16391 old_archive_from_expsyms_cmds \
16392 archive_cmds \
16393 archive_expsym_cmds \
16394 module_cmds \
16395 module_expsym_cmds \
16396 export_symbols_cmds \
16397 prelink_cmds \
16398 postlink_cmds \
16399 postinstall_cmds \
16400 postuninstall_cmds \
16401 finish_cmds \
16402 sys_lib_search_path_spec \
16403 configure_time_dlsearch_path \
16404 configure_time_lt_sys_library_path; do
16405 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16406 *[\\\\\\\`\\"\\\$]*)
16407 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16408 ;;
16409 *)
16410 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16411 ;;
16412 esac
16413 done
16414
16415 ac_aux_dir='$ac_aux_dir'
16416
16417 # See if we are running on zsh, and set the options that allow our
16418 # commands through without removal of \ escapes INIT.
16419 if test -n "\${ZSH_VERSION+set}"; then
16420 setopt NO_GLOB_SUBST
16421 fi
16422
16423
16424 PACKAGE='$PACKAGE'
16425 VERSION='$VERSION'
16426 RM='$RM'
16427 ofile='$ofile'
16428
16429
16430
16431
16432 if test x$ac_cv_header_stdc = xyes; then
16433 rb_header_stdc=yes
16434 fi
16435 if test x$ac_cv_header_stdlib_h = xyes; then
16436 rb_header_stdlib_h=yes
16437 fi
16438 if test x$ac_cv_header_string_h = xyes; then
16439 rb_header_string_h=yes
16440 fi
16441 if test x$ac_cv_header_memory_h = xyes; then
16442 rb_header_memory_h=yes
16443 fi
16444 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
16445 rb_alloca_h="$ac_cv_working_alloca_h"
16446 else
16447 rb_alloc_h="$ac_cv_header_alloca_h"
16448 fi
16449 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
16450 rb_sockaddr_sa_len=yes
16451 fi
16452 if test x$ac_cv_header_sys_socket_h = xyes; then
16453 rb_sys_socket_h=yes
16454 fi
16455 if test x$ac_cv_header_sys_types_h = xyes; then
16456 rb_sys_types_h=yes
16457 fi
16458 if test x$ac_cv_header_sys_stat_h = xyes; then
16459 rb_sys_stat_h=yes
16460 fi
16461 if test x$ac_cv_header_sys_time_h = xyes; then
16462 rb_sys_time_h=yes
16463 fi
16464 if test x$ac_cv_header_time = xyes; then
16465 rb_time_h=yes
16466 fi
16467
16468 if test x$ac_cv_header_stdint_h = xyes; then
16469 rb_stdint_h=yes
16470 fi
16471 if test x$ac_cv_header_inttypes_h = xyes; then
16472 rb_inttypes_h=yes
16473 fi
16474 if test x$ac_cv_header_netinet_in_h = xyes; then
16475 rb_netinet_in_h=yes
16476 fi
16477
16478 if test x$ac_cv_header_crypt_h = xyes; then
16479 rb_crypt_h=yes
16480 fi
16481 if test x$ac_cv_header_errno_h = xyes; then
16482 rb_errno_h=yes
16483 fi
16484 if test x$ac_cv_header_unistd_h = xyes; then
16485 rb_unistd_h=yes
16486 fi
16487 if test x$ac_cv_header_windows_h = xyes; then
16488 rb_windows_h=yes
16489 fi
16490 if test x$ac_cv_header_winsock2_h = xyes; then
16491 rb_winsock2_h=yes
16492 fi
16493
16494 rb_socklen_t=$rb_socklen_t
16495
16496 if test "x$rb_have_sockaddr_storage" = "xyes"; then
16497 rb_sockaddr_storage="yes"
16498 else
16499 rb_sockaddr_storage="no"
16500 fi
16501
16502 rb_have_ipv6="$have_v6"
16503
16504 rb_mv="$MV"
16505 rb_rm="$RM"
16506
16507
16508
16509
16510
16511
16512 _ACEOF
16513
16514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16515
16516 # Handling of arguments.
16517 for ac_config_target in $ac_config_targets
16518 do
16519 case $ac_config_target in
16520 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
16521 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16522 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16523 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
16524 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16525 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16526 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
16527
16528 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16529 esac
16530 done
16531
16532
16533 # If the user did not use the arguments to specify the items to instantiate,
16534 # then the envvar interface is used. Set only those that are not.
16535 # We use the long form for the default assignment because of an extremely
16536 # bizarre bug on SunOS 4.1.3.
16537 if $ac_need_defaults; then
16538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16539 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16540 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16541 fi
16542
16543 # Have a temporary directory for convenience. Make it in the build tree
16544 # simply because there is no reason against having it here, and in addition,
16545 # creating and moving files from /tmp can sometimes cause problems.
16546 # Hook for its removal unless debugging.
16547 # Note that there is a small window in which the directory will not be cleaned:
16548 # after its creation but before its name has been assigned to `$tmp'.
16549 $debug ||
16550 {
16551 tmp= ac_tmp=
16552 trap 'exit_status=$?
16553 : "${ac_tmp:=$tmp}"
16554 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16555 ' 0
16556 trap 'as_fn_exit 1' 1 2 13 15
16557 }
16558 # Create a (secure) tmp directory for tmp files.
16559
16560 {
16561 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16562 test -d "$tmp"
16563 } ||
16564 {
16565 tmp=./conf$$-$RANDOM
16566 (umask 077 && mkdir "$tmp")
16567 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16568 ac_tmp=$tmp
16569
16570 # Set up the scripts for CONFIG_FILES section.
16571 # No need to generate them if there are no CONFIG_FILES.
16572 # This happens for instance with `./config.status config.h'.
16573 if test -n "$CONFIG_FILES"; then
16574
16575
16576 ac_cr=`echo X | tr X '\015'`
16577 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16578 # But we know of no other shell where ac_cr would be empty at this
16579 # point, so we can use a bashism as a fallback.
16580 if test "x$ac_cr" = x; then
16581 eval ac_cr=\$\'\\r\'
16582 fi
16583 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16584 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16585 ac_cs_awk_cr='\\r'
16586 else
16587 ac_cs_awk_cr=$ac_cr
16588 fi
16589
16590 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16591 _ACEOF
16592
16593
16594 {
16595 echo "cat >conf$$subs.awk <<_ACEOF" &&
16596 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16597 echo "_ACEOF"
16598 } >conf$$subs.sh ||
16599 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16600 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16601 ac_delim='%!_!# '
16602 for ac_last_try in false false false false false :; do
16603 . ./conf$$subs.sh ||
16604 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16605
16606 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16607 if test $ac_delim_n = $ac_delim_num; then
16608 break
16609 elif $ac_last_try; then
16610 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16611 else
16612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16613 fi
16614 done
16615 rm -f conf$$subs.sh
16616
16617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16618 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16619 _ACEOF
16620 sed -n '
16621 h
16622 s/^/S["/; s/!.*/"]=/
16623 p
16624 g
16625 s/^[^!]*!//
16626 :repl
16627 t repl
16628 s/'"$ac_delim"'$//
16629 t delim
16630 :nl
16631 h
16632 s/\(.\{148\}\)..*/\1/
16633 t more1
16634 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16635 p
16636 n
16637 b repl
16638 :more1
16639 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16640 p
16641 g
16642 s/.\{148\}//
16643 t nl
16644 :delim
16645 h
16646 s/\(.\{148\}\)..*/\1/
16647 t more2
16648 s/["\\]/\\&/g; s/^/"/; s/$/"/
16649 p
16650 b
16651 :more2
16652 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16653 p
16654 g
16655 s/.\{148\}//
16656 t delim
16657 ' <conf$$subs.awk | sed '
16658 /^[^""]/{
16659 N
16660 s/\n//
16661 }
16662 ' >>$CONFIG_STATUS || ac_write_fail=1
16663 rm -f conf$$subs.awk
16664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16665 _ACAWK
16666 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16667 for (key in S) S_is_set[key] = 1
16668 FS = "\a"
16669
16670 }
16671 {
16672 line = $ 0
16673 nfields = split(line, field, "@")
16674 substed = 0
16675 len = length(field[1])
16676 for (i = 2; i < nfields; i++) {
16677 key = field[i]
16678 keylen = length(key)
16679 if (S_is_set[key]) {
16680 value = S[key]
16681 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16682 len += length(value) + length(field[++i])
16683 substed = 1
16684 } else
16685 len += 1 + keylen
16686 }
16687
16688 print line
16689 }
16690
16691 _ACAWK
16692 _ACEOF
16693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16694 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16695 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16696 else
16697 cat
16698 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16699 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16700 _ACEOF
16701
16702 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16703 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16704 # trailing colons and then remove the whole line if VPATH becomes empty
16705 # (actually we leave an empty line to preserve line numbers).
16706 if test "x$srcdir" = x.; then
16707 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16708 h
16709 s///
16710 s/^/:/
16711 s/[ ]*$/:/
16712 s/:\$(srcdir):/:/g
16713 s/:\${srcdir}:/:/g
16714 s/:@srcdir@:/:/g
16715 s/^:*//
16716 s/:*$//
16717 x
16718 s/\(=[ ]*\).*/\1/
16719 G
16720 s/\n//
16721 s/^[^=]*=[ ]*$//
16722 }'
16723 fi
16724
16725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16726 fi # test -n "$CONFIG_FILES"
16727
16728 # Set up the scripts for CONFIG_HEADERS section.
16729 # No need to generate them if there are no CONFIG_HEADERS.
16730 # This happens for instance with `./config.status Makefile'.
16731 if test -n "$CONFIG_HEADERS"; then
16732 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16733 BEGIN {
16734 _ACEOF
16735
16736 # Transform confdefs.h into an awk script `defines.awk', embedded as
16737 # here-document in config.status, that substitutes the proper values into
16738 # config.h.in to produce config.h.
16739
16740 # Create a delimiter string that does not exist in confdefs.h, to ease
16741 # handling of long lines.
16742 ac_delim='%!_!# '
16743 for ac_last_try in false false :; do
16744 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16745 if test -z "$ac_tt"; then
16746 break
16747 elif $ac_last_try; then
16748 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16749 else
16750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16751 fi
16752 done
16753
16754 # For the awk script, D is an array of macro values keyed by name,
16755 # likewise P contains macro parameters if any. Preserve backslash
16756 # newline sequences.
16757
16758 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16759 sed -n '
16760 s/.\{148\}/&'"$ac_delim"'/g
16761 t rset
16762 :rset
16763 s/^[ ]*#[ ]*define[ ][ ]*/ /
16764 t def
16765 d
16766 :def
16767 s/\\$//
16768 t bsnl
16769 s/["\\]/\\&/g
16770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16771 D["\1"]=" \3"/p
16772 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16773 d
16774 :bsnl
16775 s/["\\]/\\&/g
16776 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16777 D["\1"]=" \3\\\\\\n"\\/p
16778 t cont
16779 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16780 t cont
16781 d
16782 :cont
16783 n
16784 s/.\{148\}/&'"$ac_delim"'/g
16785 t clear
16786 :clear
16787 s/\\$//
16788 t bsnlc
16789 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16790 d
16791 :bsnlc
16792 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16793 b cont
16794 ' <confdefs.h | sed '
16795 s/'"$ac_delim"'/"\\\
16796 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16797
16798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16799 for (key in D) D_is_set[key] = 1
16800 FS = "\a"
16801 }
16802 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16803 line = \$ 0
16804 split(line, arg, " ")
16805 if (arg[1] == "#") {
16806 defundef = arg[2]
16807 mac1 = arg[3]
16808 } else {
16809 defundef = substr(arg[1], 2)
16810 mac1 = arg[2]
16811 }
16812 split(mac1, mac2, "(") #)
16813 macro = mac2[1]
16814 prefix = substr(line, 1, index(line, defundef) - 1)
16815 if (D_is_set[macro]) {
16816 # Preserve the white space surrounding the "#".
16817 print prefix "define", macro P[macro] D[macro]
16818 next
16819 } else {
16820 # Replace #undef with comments. This is necessary, for example,
16821 # in the case of _POSIX_SOURCE, which is predefined and required
16822 # on some systems where configure will not decide to define it.
16823 if (defundef == "undef") {
16824 print "/*", prefix defundef, macro, "*/"
16825 next
16826 }
16827 }
16828 }
16829 { print }
16830 _ACAWK
16831 _ACEOF
16832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16833 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16834 fi # test -n "$CONFIG_HEADERS"
16835
16836
16837 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16838 shift
16839 for ac_tag
16840 do
16841 case $ac_tag in
16842 :[FHLC]) ac_mode=$ac_tag; continue;;
16843 esac
16844 case $ac_mode$ac_tag in
16845 :[FHL]*:*);;
16846 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16847 :[FH]-) ac_tag=-:-;;
16848 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16849 esac
16850 ac_save_IFS=$IFS
16851 IFS=:
16852 set x $ac_tag
16853 IFS=$ac_save_IFS
16854 shift
16855 ac_file=$1
16856 shift
16857
16858 case $ac_mode in
16859 :L) ac_source=$1;;
16860 :[FH])
16861 ac_file_inputs=
16862 for ac_f
16863 do
16864 case $ac_f in
16865 -) ac_f="$ac_tmp/stdin";;
16866 *) # Look for the file first in the build tree, then in the source tree
16867 # (if the path is not absolute). The absolute path cannot be DOS-style,
16868 # because $ac_f cannot contain `:'.
16869 test -f "$ac_f" ||
16870 case $ac_f in
16871 [\\/$]*) false;;
16872 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16873 esac ||
16874 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16875 esac
16876 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16877 as_fn_append ac_file_inputs " '$ac_f'"
16878 done
16879
16880 # Let's still pretend it is `configure' which instantiates (i.e., don't
16881 # use $as_me), people would be surprised to read:
16882 # /* config.h. Generated by config.status. */
16883 configure_input='Generated from '`
16884 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16885 `' by configure.'
16886 if test x"$ac_file" != x-; then
16887 configure_input="$ac_file. $configure_input"
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16889 $as_echo "$as_me: creating $ac_file" >&6;}
16890 fi
16891 # Neutralize special characters interpreted by sed in replacement strings.
16892 case $configure_input in #(
16893 *\&* | *\|* | *\\* )
16894 ac_sed_conf_input=`$as_echo "$configure_input" |
16895 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16896 *) ac_sed_conf_input=$configure_input;;
16897 esac
16898
16899 case $ac_tag in
16900 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16902 esac
16903 ;;
16904 esac
16905
16906 ac_dir=`$as_dirname -- "$ac_file" ||
16907 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16908 X"$ac_file" : 'X\(//\)[^/]' \| \
16909 X"$ac_file" : 'X\(//\)$' \| \
16910 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16911 $as_echo X"$ac_file" |
16912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16913 s//\1/
16914 q
16915 }
16916 /^X\(\/\/\)[^/].*/{
16917 s//\1/
16918 q
16919 }
16920 /^X\(\/\/\)$/{
16921 s//\1/
16922 q
16923 }
16924 /^X\(\/\).*/{
16925 s//\1/
16926 q
16927 }
16928 s/.*/./; q'`
16929 as_dir="$ac_dir"; as_fn_mkdir_p
16930 ac_builddir=.
16931
16932 case "$ac_dir" in
16933 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16934 *)
16935 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16936 # A ".." for each directory in $ac_dir_suffix.
16937 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16938 case $ac_top_builddir_sub in
16939 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16940 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16941 esac ;;
16942 esac
16943 ac_abs_top_builddir=$ac_pwd
16944 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16945 # for backward compatibility:
16946 ac_top_builddir=$ac_top_build_prefix
16947
16948 case $srcdir in
16949 .) # We are building in place.
16950 ac_srcdir=.
16951 ac_top_srcdir=$ac_top_builddir_sub
16952 ac_abs_top_srcdir=$ac_pwd ;;
16953 [\\/]* | ?:[\\/]* ) # Absolute name.
16954 ac_srcdir=$srcdir$ac_dir_suffix;
16955 ac_top_srcdir=$srcdir
16956 ac_abs_top_srcdir=$srcdir ;;
16957 *) # Relative name.
16958 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16959 ac_top_srcdir=$ac_top_build_prefix$srcdir
16960 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16961 esac
16962 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16963
16964
16965 case $ac_mode in
16966 :F)
16967 #
16968 # CONFIG_FILE
16969 #
16970
16971 case $INSTALL in
16972 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16973 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16974 esac
16975 ac_MKDIR_P=$MKDIR_P
16976 case $MKDIR_P in
16977 [\\/$]* | ?:[\\/]* ) ;;
16978 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16979 esac
16980 _ACEOF
16981
16982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16983 # If the template does not know about datarootdir, expand it.
16984 # FIXME: This hack should be removed a few years after 2.60.
16985 ac_datarootdir_hack=; ac_datarootdir_seen=
16986 ac_sed_dataroot='
16987 /datarootdir/ {
16988 p
16989 q
16990 }
16991 /@datadir@/p
16992 /@docdir@/p
16993 /@infodir@/p
16994 /@localedir@/p
16995 /@mandir@/p'
16996 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16997 *datarootdir*) ac_datarootdir_seen=yes;;
16998 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17000 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17001 _ACEOF
17002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17003 ac_datarootdir_hack='
17004 s&@datadir@&$datadir&g
17005 s&@docdir@&$docdir&g
17006 s&@infodir@&$infodir&g
17007 s&@localedir@&$localedir&g
17008 s&@mandir@&$mandir&g
17009 s&\\\${datarootdir}&$datarootdir&g' ;;
17010 esac
17011 _ACEOF
17012
17013 # Neutralize VPATH when `$srcdir' = `.'.
17014 # Shell code in configure.ac might set extrasub.
17015 # FIXME: do we really want to maintain this feature?
17016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17017 ac_sed_extra="$ac_vpsub
17018 $extrasub
17019 _ACEOF
17020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17021 :t
17022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17023 s|@configure_input@|$ac_sed_conf_input|;t t
17024 s&@top_builddir@&$ac_top_builddir_sub&;t t
17025 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17026 s&@srcdir@&$ac_srcdir&;t t
17027 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17028 s&@top_srcdir@&$ac_top_srcdir&;t t
17029 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17030 s&@builddir@&$ac_builddir&;t t
17031 s&@abs_builddir@&$ac_abs_builddir&;t t
17032 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17033 s&@INSTALL@&$ac_INSTALL&;t t
17034 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17035 $ac_datarootdir_hack
17036 "
17037 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17038 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17039
17040 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17041 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17042 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17043 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17045 which seems to be undefined. Please make sure it is defined" >&5
17046 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17047 which seems to be undefined. Please make sure it is defined" >&2;}
17048
17049 rm -f "$ac_tmp/stdin"
17050 case $ac_file in
17051 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17052 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17053 esac \
17054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17055 ;;
17056 :H)
17057 #
17058 # CONFIG_HEADER
17059 #
17060 if test x"$ac_file" != x-; then
17061 {
17062 $as_echo "/* $configure_input */" \
17063 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17064 } >"$ac_tmp/config.h" \
17065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17066 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17068 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17069 else
17070 rm -f "$ac_file"
17071 mv "$ac_tmp/config.h" "$ac_file" \
17072 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17073 fi
17074 else
17075 $as_echo "/* $configure_input */" \
17076 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17077 || as_fn_error $? "could not create -" "$LINENO" 5
17078 fi
17079 # Compute "$ac_file"'s index in $config_headers.
17080 _am_arg="$ac_file"
17081 _am_stamp_count=1
17082 for _am_header in $config_headers :; do
17083 case $_am_header in
17084 $_am_arg | $_am_arg:* )
17085 break ;;
17086 * )
17087 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17088 esac
17089 done
17090 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17091 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17092 X"$_am_arg" : 'X\(//\)[^/]' \| \
17093 X"$_am_arg" : 'X\(//\)$' \| \
17094 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17095 $as_echo X"$_am_arg" |
17096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17097 s//\1/
17098 q
17099 }
17100 /^X\(\/\/\)[^/].*/{
17101 s//\1/
17102 q
17103 }
17104 /^X\(\/\/\)$/{
17105 s//\1/
17106 q
17107 }
17108 /^X\(\/\).*/{
17109 s//\1/
17110 q
17111 }
17112 s/.*/./; q'`/stamp-h$_am_stamp_count
17113 ;;
17114
17115 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17116 $as_echo "$as_me: executing $ac_file commands" >&6;}
17117 ;;
17118 esac
17119
17120
17121 case $ac_file$ac_mode in
17122 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17123 # Older Autoconf quotes --file arguments for eval, but not when files
17124 # are listed without --file. Let's play safe and only enable the eval
17125 # if we detect the quoting.
17126 case $CONFIG_FILES in
17127 *\'*) eval set x "$CONFIG_FILES" ;;
17128 *) set x $CONFIG_FILES ;;
17129 esac
17130 shift
17131 for mf
17132 do
17133 # Strip MF so we end up with the name of the file.
17134 mf=`echo "$mf" | sed -e 's/:.*$//'`
17135 # Check whether this is an Automake generated Makefile or not.
17136 # We used to match only the files named 'Makefile.in', but
17137 # some people rename them; so instead we look at the file content.
17138 # Grep'ing the first line is not enough: some people post-process
17139 # each Makefile.in and add a new line on top of each file to say so.
17140 # Grep'ing the whole file is not good either: AIX grep has a line
17141 # limit of 2048, but all sed's we know have understand at least 4000.
17142 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17143 dirpart=`$as_dirname -- "$mf" ||
17144 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17145 X"$mf" : 'X\(//\)[^/]' \| \
17146 X"$mf" : 'X\(//\)$' \| \
17147 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17148 $as_echo X"$mf" |
17149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17150 s//\1/
17151 q
17152 }
17153 /^X\(\/\/\)[^/].*/{
17154 s//\1/
17155 q
17156 }
17157 /^X\(\/\/\)$/{
17158 s//\1/
17159 q
17160 }
17161 /^X\(\/\).*/{
17162 s//\1/
17163 q
17164 }
17165 s/.*/./; q'`
17166 else
17167 continue
17168 fi
17169 # Extract the definition of DEPDIR, am__include, and am__quote
17170 # from the Makefile without running 'make'.
17171 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17172 test -z "$DEPDIR" && continue
17173 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17174 test -z "$am__include" && continue
17175 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17176 # Find all dependency output files, they are included files with
17177 # $(DEPDIR) in their names. We invoke sed twice because it is the
17178 # simplest approach to changing $(DEPDIR) to its actual value in the
17179 # expansion.
17180 for file in `sed -n "
17181 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17182 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17183 # Make sure the directory exists.
17184 test -f "$dirpart/$file" && continue
17185 fdir=`$as_dirname -- "$file" ||
17186 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17187 X"$file" : 'X\(//\)[^/]' \| \
17188 X"$file" : 'X\(//\)$' \| \
17189 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17190 $as_echo X"$file" |
17191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17192 s//\1/
17193 q
17194 }
17195 /^X\(\/\/\)[^/].*/{
17196 s//\1/
17197 q
17198 }
17199 /^X\(\/\/\)$/{
17200 s//\1/
17201 q
17202 }
17203 /^X\(\/\).*/{
17204 s//\1/
17205 q
17206 }
17207 s/.*/./; q'`
17208 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17209 # echo "creating $dirpart/$file"
17210 echo '# dummy' > "$dirpart/$file"
17211 done
17212 done
17213 }
17214 ;;
17215 "libtool":C)
17216
17217 # See if we are running on zsh, and set the options that allow our
17218 # commands through without removal of \ escapes.
17219 if test -n "${ZSH_VERSION+set}"; then
17220 setopt NO_GLOB_SUBST
17221 fi
17222
17223 cfgfile=${ofile}T
17224 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17225 $RM "$cfgfile"
17226
17227 cat <<_LT_EOF >> "$cfgfile"
17228 #! $SHELL
17229 # Generated automatically by $as_me ($PACKAGE) $VERSION
17230 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17231 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17232
17233 # Provide generalized library-building support services.
17234 # Written by Gordon Matzigkeit, 1996
17235
17236 # Copyright (C) 2014 Free Software Foundation, Inc.
17237 # This is free software; see the source for copying conditions. There is NO
17238 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17239
17240 # GNU Libtool is free software; you can redistribute it and/or modify
17241 # it under the terms of the GNU General Public License as published by
17242 # the Free Software Foundation; either version 2 of of the License, or
17243 # (at your option) any later version.
17244 #
17245 # As a special exception to the GNU General Public License, if you
17246 # distribute this file as part of a program or library that is built
17247 # using GNU Libtool, you may include this file under the same
17248 # distribution terms that you use for the rest of that program.
17249 #
17250 # GNU Libtool is distributed in the hope that it will be useful, but
17251 # WITHOUT ANY WARRANTY; without even the implied warranty of
17252 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17253 # GNU General Public License for more details.
17254 #
17255 # You should have received a copy of the GNU General Public License
17256 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17257
17258
17259 # The names of the tagged configurations supported by this script.
17260 available_tags=''
17261
17262 # Configured defaults for sys_lib_dlsearch_path munging.
17263 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17264
17265 # ### BEGIN LIBTOOL CONFIG
17266
17267 # Whether or not to build static libraries.
17268 build_old_libs=$enable_static
17269
17270 # Whether or not to build shared libraries.
17271 build_libtool_libs=$enable_shared
17272
17273 # Which release of libtool.m4 was used?
17274 macro_version=$macro_version
17275 macro_revision=$macro_revision
17276
17277 # What type of objects to build.
17278 pic_mode=$pic_mode
17279
17280 # Whether or not to optimize for fast installation.
17281 fast_install=$enable_fast_install
17282
17283 # Shared archive member basename,for filename based shared library versioning on AIX.
17284 shared_archive_member_spec=$shared_archive_member_spec
17285
17286 # Shell to use when invoking shell scripts.
17287 SHELL=$lt_SHELL
17288
17289 # An echo program that protects backslashes.
17290 ECHO=$lt_ECHO
17291
17292 # The PATH separator for the build system.
17293 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17294
17295 # The host system.
17296 host_alias=$host_alias
17297 host=$host
17298 host_os=$host_os
17299
17300 # The build system.
17301 build_alias=$build_alias
17302 build=$build
17303 build_os=$build_os
17304
17305 # A sed program that does not truncate output.
17306 SED=$lt_SED
17307
17308 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17309 Xsed="\$SED -e 1s/^X//"
17310
17311 # A grep program that handles long lines.
17312 GREP=$lt_GREP
17313
17314 # An ERE matcher.
17315 EGREP=$lt_EGREP
17316
17317 # A literal string matcher.
17318 FGREP=$lt_FGREP
17319
17320 # A BSD- or MS-compatible name lister.
17321 NM=$lt_NM
17322
17323 # Whether we need soft or hard links.
17324 LN_S=$lt_LN_S
17325
17326 # What is the maximum length of a command?
17327 max_cmd_len=$max_cmd_len
17328
17329 # Object file suffix (normally "o").
17330 objext=$ac_objext
17331
17332 # Executable file suffix (normally "").
17333 exeext=$exeext
17334
17335 # whether the shell understands "unset".
17336 lt_unset=$lt_unset
17337
17338 # turn spaces into newlines.
17339 SP2NL=$lt_lt_SP2NL
17340
17341 # turn newlines into spaces.
17342 NL2SP=$lt_lt_NL2SP
17343
17344 # convert \$build file names to \$host format.
17345 to_host_file_cmd=$lt_cv_to_host_file_cmd
17346
17347 # convert \$build files to toolchain format.
17348 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17349
17350 # An object symbol dumper.
17351 OBJDUMP=$lt_OBJDUMP
17352
17353 # Method to check whether dependent libraries are shared objects.
17354 deplibs_check_method=$lt_deplibs_check_method
17355
17356 # Command to use when deplibs_check_method = "file_magic".
17357 file_magic_cmd=$lt_file_magic_cmd
17358
17359 # How to find potential files when deplibs_check_method = "file_magic".
17360 file_magic_glob=$lt_file_magic_glob
17361
17362 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17363 want_nocaseglob=$lt_want_nocaseglob
17364
17365 # DLL creation program.
17366 DLLTOOL=$lt_DLLTOOL
17367
17368 # Command to associate shared and link libraries.
17369 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17370
17371 # The archiver.
17372 AR=$lt_AR
17373
17374 # Flags to create an archive.
17375 AR_FLAGS=$lt_AR_FLAGS
17376
17377 # How to feed a file listing to the archiver.
17378 archiver_list_spec=$lt_archiver_list_spec
17379
17380 # A symbol stripping program.
17381 STRIP=$lt_STRIP
17382
17383 # Commands used to install an old-style archive.
17384 RANLIB=$lt_RANLIB
17385 old_postinstall_cmds=$lt_old_postinstall_cmds
17386 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17387
17388 # Whether to use a lock for old archive extraction.
17389 lock_old_archive_extraction=$lock_old_archive_extraction
17390
17391 # A C compiler.
17392 LTCC=$lt_CC
17393
17394 # LTCC compiler flags.
17395 LTCFLAGS=$lt_CFLAGS
17396
17397 # Take the output of nm and produce a listing of raw symbols and C names.
17398 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17399
17400 # Transform the output of nm in a proper C declaration.
17401 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17402
17403 # Transform the output of nm into a list of symbols to manually relocate.
17404 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17405
17406 # Transform the output of nm in a C name address pair.
17407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17408
17409 # Transform the output of nm in a C name address pair when lib prefix is needed.
17410 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17411
17412 # The name lister interface.
17413 nm_interface=$lt_lt_cv_nm_interface
17414
17415 # Specify filename containing input files for \$NM.
17416 nm_file_list_spec=$lt_nm_file_list_spec
17417
17418 # The root where to search for dependent libraries,and where our libraries should be installed.
17419 lt_sysroot=$lt_sysroot
17420
17421 # Command to truncate a binary pipe.
17422 lt_truncate_bin=$lt_lt_cv_truncate_bin
17423
17424 # The name of the directory that contains temporary libtool files.
17425 objdir=$objdir
17426
17427 # Used to examine libraries when file_magic_cmd begins with "file".
17428 MAGIC_CMD=$MAGIC_CMD
17429
17430 # Must we lock files when doing compilation?
17431 need_locks=$lt_need_locks
17432
17433 # Manifest tool.
17434 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17435
17436 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17437 DSYMUTIL=$lt_DSYMUTIL
17438
17439 # Tool to change global to local symbols on Mac OS X.
17440 NMEDIT=$lt_NMEDIT
17441
17442 # Tool to manipulate fat objects and archives on Mac OS X.
17443 LIPO=$lt_LIPO
17444
17445 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17446 OTOOL=$lt_OTOOL
17447
17448 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17449 OTOOL64=$lt_OTOOL64
17450
17451 # Old archive suffix (normally "a").
17452 libext=$libext
17453
17454 # Shared library suffix (normally ".so").
17455 shrext_cmds=$lt_shrext_cmds
17456
17457 # The commands to extract the exported symbol list from a shared archive.
17458 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17459
17460 # Variables whose values should be saved in libtool wrapper scripts and
17461 # restored at link time.
17462 variables_saved_for_relink=$lt_variables_saved_for_relink
17463
17464 # Do we need the "lib" prefix for modules?
17465 need_lib_prefix=$need_lib_prefix
17466
17467 # Do we need a version for libraries?
17468 need_version=$need_version
17469
17470 # Library versioning type.
17471 version_type=$version_type
17472
17473 # Shared library runtime path variable.
17474 runpath_var=$runpath_var
17475
17476 # Shared library path variable.
17477 shlibpath_var=$shlibpath_var
17478
17479 # Is shlibpath searched before the hard-coded library search path?
17480 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17481
17482 # Format of library name prefix.
17483 libname_spec=$lt_libname_spec
17484
17485 # List of archive names. First name is the real one, the rest are links.
17486 # The last name is the one that the linker finds with -lNAME
17487 library_names_spec=$lt_library_names_spec
17488
17489 # The coded name of the library, if different from the real name.
17490 soname_spec=$lt_soname_spec
17491
17492 # Permission mode override for installation of shared libraries.
17493 install_override_mode=$lt_install_override_mode
17494
17495 # Command to use after installation of a shared archive.
17496 postinstall_cmds=$lt_postinstall_cmds
17497
17498 # Command to use after uninstallation of a shared archive.
17499 postuninstall_cmds=$lt_postuninstall_cmds
17500
17501 # Commands used to finish a libtool library installation in a directory.
17502 finish_cmds=$lt_finish_cmds
17503
17504 # As "finish_cmds", except a single script fragment to be evaled but
17505 # not shown.
17506 finish_eval=$lt_finish_eval
17507
17508 # Whether we should hardcode library paths into libraries.
17509 hardcode_into_libs=$hardcode_into_libs
17510
17511 # Compile-time system search path for libraries.
17512 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17513
17514 # Detected run-time system search path for libraries.
17515 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17516
17517 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17518 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17519
17520 # Whether dlopen is supported.
17521 dlopen_support=$enable_dlopen
17522
17523 # Whether dlopen of programs is supported.
17524 dlopen_self=$enable_dlopen_self
17525
17526 # Whether dlopen of statically linked programs is supported.
17527 dlopen_self_static=$enable_dlopen_self_static
17528
17529 # Commands to strip libraries.
17530 old_striplib=$lt_old_striplib
17531 striplib=$lt_striplib
17532
17533
17534 # The linker used to build libraries.
17535 LD=$lt_LD
17536
17537 # How to create reloadable object files.
17538 reload_flag=$lt_reload_flag
17539 reload_cmds=$lt_reload_cmds
17540
17541 # Commands used to build an old-style archive.
17542 old_archive_cmds=$lt_old_archive_cmds
17543
17544 # A language specific compiler.
17545 CC=$lt_compiler
17546
17547 # Is the compiler the GNU compiler?
17548 with_gcc=$GCC
17549
17550 # Compiler flag to turn off builtin functions.
17551 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17552
17553 # Additional compiler flags for building library objects.
17554 pic_flag=$lt_lt_prog_compiler_pic
17555
17556 # How to pass a linker flag through the compiler.
17557 wl=$lt_lt_prog_compiler_wl
17558
17559 # Compiler flag to prevent dynamic linking.
17560 link_static_flag=$lt_lt_prog_compiler_static
17561
17562 # Does compiler simultaneously support -c and -o options?
17563 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17564
17565 # Whether or not to add -lc for building shared libraries.
17566 build_libtool_need_lc=$archive_cmds_need_lc
17567
17568 # Whether or not to disallow shared libs when runtime libs are static.
17569 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17570
17571 # Compiler flag to allow reflexive dlopens.
17572 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17573
17574 # Compiler flag to generate shared objects directly from archives.
17575 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17576
17577 # Whether the compiler copes with passing no objects directly.
17578 compiler_needs_object=$lt_compiler_needs_object
17579
17580 # Create an old-style archive from a shared archive.
17581 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17582
17583 # Create a temporary old-style archive to link instead of a shared archive.
17584 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17585
17586 # Commands used to build a shared archive.
17587 archive_cmds=$lt_archive_cmds
17588 archive_expsym_cmds=$lt_archive_expsym_cmds
17589
17590 # Commands used to build a loadable module if different from building
17591 # a shared archive.
17592 module_cmds=$lt_module_cmds
17593 module_expsym_cmds=$lt_module_expsym_cmds
17594
17595 # Whether we are building with GNU ld or not.
17596 with_gnu_ld=$lt_with_gnu_ld
17597
17598 # Flag that allows shared libraries with undefined symbols to be built.
17599 allow_undefined_flag=$lt_allow_undefined_flag
17600
17601 # Flag that enforces no undefined symbols.
17602 no_undefined_flag=$lt_no_undefined_flag
17603
17604 # Flag to hardcode \$libdir into a binary during linking.
17605 # This must work even if \$libdir does not exist
17606 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17607
17608 # Whether we need a single "-rpath" flag with a separated argument.
17609 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17610
17611 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17612 # DIR into the resulting binary.
17613 hardcode_direct=$hardcode_direct
17614
17615 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17616 # DIR into the resulting binary and the resulting library dependency is
17617 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17618 # library is relocated.
17619 hardcode_direct_absolute=$hardcode_direct_absolute
17620
17621 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17622 # into the resulting binary.
17623 hardcode_minus_L=$hardcode_minus_L
17624
17625 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17626 # into the resulting binary.
17627 hardcode_shlibpath_var=$hardcode_shlibpath_var
17628
17629 # Set to "yes" if building a shared library automatically hardcodes DIR
17630 # into the library and all subsequent libraries and executables linked
17631 # against it.
17632 hardcode_automatic=$hardcode_automatic
17633
17634 # Set to yes if linker adds runtime paths of dependent libraries
17635 # to runtime path list.
17636 inherit_rpath=$inherit_rpath
17637
17638 # Whether libtool must link a program against all its dependency libraries.
17639 link_all_deplibs=$link_all_deplibs
17640
17641 # Set to "yes" if exported symbols are required.
17642 always_export_symbols=$always_export_symbols
17643
17644 # The commands to list exported symbols.
17645 export_symbols_cmds=$lt_export_symbols_cmds
17646
17647 # Symbols that should not be listed in the preloaded symbols.
17648 exclude_expsyms=$lt_exclude_expsyms
17649
17650 # Symbols that must always be exported.
17651 include_expsyms=$lt_include_expsyms
17652
17653 # Commands necessary for linking programs (against libraries) with templates.
17654 prelink_cmds=$lt_prelink_cmds
17655
17656 # Commands necessary for finishing linking programs.
17657 postlink_cmds=$lt_postlink_cmds
17658
17659 # Specify filename containing input files.
17660 file_list_spec=$lt_file_list_spec
17661
17662 # How to hardcode a shared library path into an executable.
17663 hardcode_action=$hardcode_action
17664
17665 # ### END LIBTOOL CONFIG
17666
17667 _LT_EOF
17668
17669 cat <<'_LT_EOF' >> "$cfgfile"
17670
17671 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17672
17673 # func_munge_path_list VARIABLE PATH
17674 # -----------------------------------
17675 # VARIABLE is name of variable containing _space_ separated list of
17676 # directories to be munged by the contents of PATH, which is string
17677 # having a format:
17678 # "DIR[:DIR]:"
17679 # string "DIR[ DIR]" will be prepended to VARIABLE
17680 # ":DIR[:DIR]"
17681 # string "DIR[ DIR]" will be appended to VARIABLE
17682 # "DIRP[:DIRP]::[DIRA:]DIRA"
17683 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17684 # "DIRA[ DIRA]" will be appended to VARIABLE
17685 # "DIR[:DIR]"
17686 # VARIABLE will be replaced by "DIR[ DIR]"
17687 func_munge_path_list ()
17688 {
17689 case x$2 in
17690 x)
17691 ;;
17692 *:)
17693 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17694 ;;
17695 x:*)
17696 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17697 ;;
17698 *::*)
17699 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17700 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17701 ;;
17702 *)
17703 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17704 ;;
17705 esac
17706 }
17707
17708
17709 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17710 func_cc_basename ()
17711 {
17712 for cc_temp in $*""; do
17713 case $cc_temp in
17714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17716 \-*) ;;
17717 *) break;;
17718 esac
17719 done
17720 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17721 }
17722
17723
17724 # ### END FUNCTIONS SHARED WITH CONFIGURE
17725
17726 _LT_EOF
17727
17728 case $host_os in
17729 aix3*)
17730 cat <<\_LT_EOF >> "$cfgfile"
17731 # AIX sometimes has problems with the GCC collect2 program. For some
17732 # reason, if we set the COLLECT_NAMES environment variable, the problems
17733 # vanish in a puff of smoke.
17734 if test set != "${COLLECT_NAMES+set}"; then
17735 COLLECT_NAMES=
17736 export COLLECT_NAMES
17737 fi
17738 _LT_EOF
17739 ;;
17740 esac
17741
17742
17743 ltmain=$ac_aux_dir/ltmain.sh
17744
17745
17746 # We use sed instead of cat because bash on DJGPP gets confused if
17747 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17748 # text mode, it properly converts lines to CR/LF. This bash problem
17749 # is reportedly fixed, but why not run on old versions too?
17750 sed '$q' "$ltmain" >> "$cfgfile" \
17751 || (rm -f "$cfgfile"; exit 1)
17752
17753 mv -f "$cfgfile" "$ofile" ||
17754 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17755 chmod +x "$ofile"
17756
17757 ;;
17758 "include/librb-config.h":C)
17759 outfile=include/librb-config.h.tmp
17760 cat > $outfile <<\_______EOF
17761 /*
17762 * librb-config.h: libratbox config file. Please modify configure.ac
17763 */
17764
17765 #ifndef __LIBRB_CONFIG_H
17766 #define __LIBRB_CONFIG_H
17767
17768 _______EOF
17769
17770 if test "x$rb_have_ipv6" = "xyes"; then
17771 echo "#define RB_IPV6 1" >> $outfile
17772 fi
17773
17774 if test "x$rb_windows_h" = "xyes"; then
17775 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
17776 echo '#include <windows.h>' >> $outfile
17777 echo '#include <winsock2.h>' >> $outfile
17778 echo '#include <iphlpapi.h>' >> $outfile
17779 fi
17780
17781 if test "x$rb_alloca_h" = "xyes"; then
17782 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
17783 fi
17784
17785 if test "x$rb_header_stdc" = "xyes"; then
17786 echo '#include <stdlib.h>' >> $outfile
17787 echo '#include <stddef.h>' >> $outfile
17788 elif test "x$rb_header_stdlib" = "xyes"; then
17789 echo '#include <stdlib.h>' >> $outfile
17790 fi
17791
17792 if test "x$rb_header_string_h" = "xyes"; then
17793 echo '#include <string.h>' >> $outfile
17794 fi
17795
17796 if test "x$rb_stdint_h" = "xyes"; then
17797 echo '#include <stdint.h>' >> $outfile
17798 fi
17799
17800 if test "x$rb_inttypes_h" = "xyes"; then
17801 echo '#include <inttypes.h>' >> $outfile
17802 fi
17803
17804 if test "x$rb_sys_types_h" = "xyes"; then
17805 echo '#include <sys/types.h>' >> $outfile
17806 fi
17807 if test "x$rb_sys_time_h" = "xyes"; then
17808 echo '#include <sys/time.h>' >> $outfile
17809 fi
17810 if test "x$rb_sys_stat_h" = "xyes"; then
17811 echo '#include <sys/stat.h>' >> $outfile
17812 fi
17813 if test "x$rb_time_h" = "xyes"; then
17814 echo '#include <time.h>' >> $outfile
17815 fi
17816
17817 if test "x$rb_sys_socket_h" = "xyes"; then
17818 echo '#include <sys/socket.h>' >> $outfile
17819 fi
17820
17821 if test "x$rb_netinet_in_h" = "xyes"; then
17822 echo '#include <netinet/in.h>' >> $outfile
17823 fi
17824
17825 if test "x$rb_arpa_inet_h" = "xyes"; then
17826 echo '#include <arpa/inet.h>' >> $outfile
17827 fi
17828
17829 if test "x$rb_unistd_h" = "xyes"; then
17830 echo '#include <unistd.h>' >> $outfile
17831 fi
17832
17833 if test "x$rb_crypt_h" = "xyes"; then
17834 echo '#include <crypt.h>' >> $outfile
17835 fi
17836
17837 if test "x$rb_errno_h" = "xyes"; then
17838 echo '#include <errno.h>' >> $outfile
17839 fi
17840
17841 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
17842
17843
17844 if test "x$rb_sockaddr_sa_len" = "xyes"; then
17845 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
17846 fi
17847
17848 if test "x$rb_sockaddr_storage" = "xyes"; then
17849 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
17850 else
17851 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
17852 fi
17853
17854 cat >> $outfile <<\_______EOF
17855 #endif /* __LIBRB_CONFIG_H */
17856 _______EOF
17857
17858 if cmp -s $outfile include/librb-config.h; then
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
17860 $as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
17861 ${rb_rm} -f $outfile
17862 else
17863 ${rb_mv} $outfile include/librb-config.h
17864 fi
17865
17866 ;;
17867
17868 esac
17869 done # for ac_tag
17870
17871
17872 as_fn_exit 0
17873 _ACEOF
17874 ac_clean_files=$ac_clean_files_save
17875
17876 test $ac_write_fail = 0 ||
17877 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17878
17879
17880 # configure is writing to config.log, and then calls config.status.
17881 # config.status does its own redirection, appending to config.log.
17882 # Unfortunately, on DOS this fails, as config.log is still kept open
17883 # by configure, so config.status won't be able to write to it; its
17884 # output is simply discarded. So we exec the FD to /dev/null,
17885 # effectively closing config.log, so it can be properly (re)opened and
17886 # appended to by config.status. When coming back to configure, we
17887 # need to make the FD available again.
17888 if test "$no_create" != yes; then
17889 ac_cs_success=:
17890 ac_config_status_args=
17891 test "$silent" = yes &&
17892 ac_config_status_args="$ac_config_status_args --quiet"
17893 exec 5>/dev/null
17894 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17895 exec 5>>config.log
17896 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17897 # would make configure fail if this is the last instruction.
17898 $ac_cs_success || as_fn_exit 1
17899 fi
17900 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17902 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17903 fi
17904
17905
17906
17907 echo
17908 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
17909 echo
17910
17911 echo "Installing into: $prefix"
17912
17913 echo "IPv6 support ................... $have_v6"
17914 echo "Assert debugging ............... $assert"
17915 echo "SSL Type........................ $SSL_TYPE"
17916 echo