]> jfr.im git - solanum.git/blob - libratbox/configure
9670f80ca9e58783880d01ede54d0dce4e8daf83
[solanum.git] / libratbox / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libratbox devel.
4 #
5 # $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
242 $0: including any error possibly output before this
243 $0: message. Then install a modern shell, or manually run
244 $0: the script under such a shell if you do have one."
245 fi
246 exit 1
247 fi
248 fi
249 fi
250 SHELL=${CONFIG_SHELL-/bin/sh}
251 export SHELL
252 # Unset more variables known to interfere with behavior of common tools.
253 CLICOLOR_FORCE= GREP_OPTIONS=
254 unset CLICOLOR_FORCE GREP_OPTIONS
255
256 ## --------------------- ##
257 ## M4sh Shell Functions. ##
258 ## --------------------- ##
259 # as_fn_unset VAR
260 # ---------------
261 # Portably unset VAR.
262 as_fn_unset ()
263 {
264 { eval $1=; unset $1;}
265 }
266 as_unset=as_fn_unset
267
268 # as_fn_set_status STATUS
269 # -----------------------
270 # Set $? to STATUS, without forking.
271 as_fn_set_status ()
272 {
273 return $1
274 } # as_fn_set_status
275
276 # as_fn_exit STATUS
277 # -----------------
278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 as_fn_exit ()
280 {
281 set +e
282 as_fn_set_status $1
283 exit $1
284 } # as_fn_exit
285
286 # as_fn_mkdir_p
287 # -------------
288 # Create "$as_dir" as a directory, including parents if necessary.
289 as_fn_mkdir_p ()
290 {
291
292 case $as_dir in #(
293 -*) as_dir=./$as_dir;;
294 esac
295 test -d "$as_dir" || eval $as_mkdir_p || {
296 as_dirs=
297 while :; do
298 case $as_dir in #(
299 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 *) as_qdir=$as_dir;;
301 esac
302 as_dirs="'$as_qdir' $as_dirs"
303 as_dir=`$as_dirname -- "$as_dir" ||
304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308 $as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)[^/].*/{
314 s//\1/
315 q
316 }
317 /^X\(\/\/\)$/{
318 s//\1/
319 q
320 }
321 /^X\(\/\).*/{
322 s//\1/
323 q
324 }
325 s/.*/./; q'`
326 test -d "$as_dir" && break
327 done
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
329 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330
331
332 } # as_fn_mkdir_p
333 # as_fn_append VAR VALUE
334 # ----------------------
335 # Append the text in VALUE to the end of the definition contained in VAR. Take
336 # advantage of any shell optimizations that allow amortized linear growth over
337 # repeated appends, instead of the typical quadratic growth present in naive
338 # implementations.
339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
340 eval 'as_fn_append ()
341 {
342 eval $1+=\$2
343 }'
344 else
345 as_fn_append ()
346 {
347 eval $1=\$$1\$2
348 }
349 fi # as_fn_append
350
351 # as_fn_arith ARG...
352 # ------------------
353 # Perform arithmetic evaluation on the ARGs, and store the result in the
354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
355 # must be portable across $(()) and expr.
356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 eval 'as_fn_arith ()
358 {
359 as_val=$(( $* ))
360 }'
361 else
362 as_fn_arith ()
363 {
364 as_val=`expr "$@" || test $? -eq 1`
365 }
366 fi # as_fn_arith
367
368
369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
370 # ----------------------------------------
371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
373 # script with STATUS, using 1 if that was 0.
374 as_fn_error ()
375 {
376 as_status=$1; test $as_status -eq 0 && as_status=1
377 if test "$4"; then
378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
380 fi
381 $as_echo "$as_me: error: $2" >&2
382 as_fn_exit $as_status
383 } # as_fn_error
384
385 if expr a : '\(a\)' >/dev/null 2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
387 as_expr=expr
388 else
389 as_expr=false
390 fi
391
392 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
393 as_basename=basename
394 else
395 as_basename=false
396 fi
397
398 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_dirname=dirname
400 else
401 as_dirname=false
402 fi
403
404 as_me=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
408 $as_echo X/"$0" |
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\/\)$/{
414 s//\1/
415 q
416 }
417 /^X\/\(\/\).*/{
418 s//\1/
419 q
420 }
421 s/.*/./; q'`
422
423 # Avoid depending upon Character Ranges.
424 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
425 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
427 as_cr_digits='0123456789'
428 as_cr_alnum=$as_cr_Letters$as_cr_digits
429
430
431 as_lineno_1=$LINENO as_lineno_1a=$LINENO
432 as_lineno_2=$LINENO as_lineno_2a=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
453
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
460 }
461
462 ECHO_C= ECHO_N= ECHO_T=
463 case `echo -n x` in #(((((
464 -n*)
465 case `echo 'xy\c'` in
466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
467 xy) ECHO_C='\c';;
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 ECHO_T=' ';;
470 esac;;
471 *)
472 ECHO_N='-n';;
473 esac
474
475 rm -f conf$$ conf$$.exe conf$$.file
476 if test -d conf$$.dir; then
477 rm -f conf$$.dir/conf$$.file
478 else
479 rm -f conf$$.dir
480 mkdir conf$$.dir 2>/dev/null
481 fi
482 if (echo >conf$$.file) 2>/dev/null; then
483 if ln -s conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s='ln -s'
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
490 as_ln_s='cp -p'
491 elif ln conf$$.file conf$$ 2>/dev/null; then
492 as_ln_s=ln
493 else
494 as_ln_s='cp -p'
495 fi
496 else
497 as_ln_s='cp -p'
498 fi
499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
500 rmdir conf$$.dir 2>/dev/null
501
502 if mkdir -p . 2>/dev/null; then
503 as_mkdir_p='mkdir -p "$as_dir"'
504 else
505 test -d ./-p && rmdir ./-p
506 as_mkdir_p=false
507 fi
508
509 if test -x / >/dev/null 2>&1; then
510 as_test_x='test -x'
511 else
512 if ls -dL / >/dev/null 2>&1; then
513 as_ls_L_option=L
514 else
515 as_ls_L_option=
516 fi
517 as_test_x='
518 eval sh -c '\''
519 if test -d "$1"; then
520 test -d "$1/.";
521 else
522 case $1 in #(
523 -*)set "./$1";;
524 esac;
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
527 '\'' sh
528 '
529 fi
530 as_executable_p=$as_test_x
531
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
539
540 # Check that we are running under the correct shell.
541 SHELL=${CONFIG_SHELL-/bin/sh}
542
543 case X$lt_ECHO in
544 X*--fallback-echo)
545 # Remove one level of quotation (which was required for Make).
546 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
547 ;;
548 esac
549
550 ECHO=${lt_ECHO-echo}
551 if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
553 shift
554 elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
556 :
557 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $ECHO works!
559 :
560 else
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 fi
564
565 if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
567 shift
568 cat <<_LT_EOF
569 $*
570 _LT_EOF
571 exit 0
572 fi
573
574 # The HP-UX ksh and POSIX shell print the target directory to stdout
575 # if CDPATH is set.
576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
578 if test -z "$lt_ECHO"; then
579 if test "X${echo_test_string+set}" != Xset; then
580 # find a string as large as possible, as long as the shell can cope with it
581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
584 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
585 then
586 break
587 fi
588 done
589 fi
590
591 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
592 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
593 test "X$echo_testing_string" = "X$echo_test_string"; then
594 :
595 else
596 # The Solaris, AIX, and Digital Unix default echo programs unquote
597 # backslashes. This makes it impossible to quote backslashes using
598 # echo "$something" | sed 's/\\/\\\\/g'
599 #
600 # So, first we look for a working echo in the user's PATH.
601
602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
603 for dir in $PATH /usr/ucb; do
604 IFS="$lt_save_ifs"
605 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
606 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 ECHO="$dir/echo"
610 break
611 fi
612 done
613 IFS="$lt_save_ifs"
614
615 if test "X$ECHO" = Xecho; then
616 # We didn't find a better echo, so look for alternatives.
617 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
618 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
619 test "X$echo_testing_string" = "X$echo_test_string"; then
620 # This shell has a builtin print -r that does the trick.
621 ECHO='print -r'
622 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
623 test "X$CONFIG_SHELL" != X/bin/ksh; then
624 # If we have ksh, try running configure again with it.
625 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
626 export ORIGINAL_CONFIG_SHELL
627 CONFIG_SHELL=/bin/ksh
628 export CONFIG_SHELL
629 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
630 else
631 # Try using printf.
632 ECHO='printf %s\n'
633 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # Cool, printf works
637 :
638 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643 export CONFIG_SHELL
644 SHELL="$CONFIG_SHELL"
645 export SHELL
646 ECHO="$CONFIG_SHELL $0 --fallback-echo"
647 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648 test "X$echo_testing_string" = 'X\t' &&
649 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 ECHO="$CONFIG_SHELL $0 --fallback-echo"
652 else
653 # maybe with a smaller string...
654 prev=:
655
656 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
657 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
658 then
659 break
660 fi
661 prev="$cmd"
662 done
663
664 if test "$prev" != 'sed 50q "$0"'; then
665 echo_test_string=`eval $prev`
666 export echo_test_string
667 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668 else
669 # Oops. We lost completely, so just stick with echo.
670 ECHO=echo
671 fi
672 fi
673 fi
674 fi
675 fi
676 fi
677
678 # Copy echo and quote the copy suitably for passing to libtool from
679 # the Makefile, instead of quoting the original, which is used later.
680 lt_ECHO=$ECHO
681 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
682 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
683 fi
684
685
686
687
688 test -n "$DJDIR" || exec 7<&0 </dev/null
689 exec 6>&1
690
691 # Name of the host.
692 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
693 # so uname gets run too.
694 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
695
696 #
697 # Initializations.
698 #
699 ac_default_prefix=/usr/local
700 ac_clean_files=
701 ac_config_libobj_dir=.
702 LIBOBJS=
703 cross_compiling=no
704 subdirs=
705 MFLAGS=
706 MAKEFLAGS=
707
708 # Identity of this package.
709 PACKAGE_NAME='libratbox'
710 PACKAGE_TARNAME='libratbox'
711 PACKAGE_VERSION='devel'
712 PACKAGE_STRING='libratbox devel'
713 PACKAGE_BUGREPORT=''
714 PACKAGE_URL=''
715
716 ac_default_prefix=/usr/local/libratbox
717 # Factoring default headers for most tests.
718 ac_includes_default="\
719 #include <stdio.h>
720 #ifdef HAVE_SYS_TYPES_H
721 # include <sys/types.h>
722 #endif
723 #ifdef HAVE_SYS_STAT_H
724 # include <sys/stat.h>
725 #endif
726 #ifdef STDC_HEADERS
727 # include <stdlib.h>
728 # include <stddef.h>
729 #else
730 # ifdef HAVE_STDLIB_H
731 # include <stdlib.h>
732 # endif
733 #endif
734 #ifdef HAVE_STRING_H
735 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
736 # include <memory.h>
737 # endif
738 # include <string.h>
739 #endif
740 #ifdef HAVE_STRINGS_H
741 # include <strings.h>
742 #endif
743 #ifdef HAVE_INTTYPES_H
744 # include <inttypes.h>
745 #endif
746 #ifdef HAVE_STDINT_H
747 # include <stdint.h>
748 #endif
749 #ifdef HAVE_UNISTD_H
750 # include <unistd.h>
751 #endif"
752
753 ac_header_list=
754 ac_subst_vars='am__EXEEXT_FALSE
755 am__EXEEXT_TRUE
756 LTLIBOBJS
757 LIBOBJS
758 RB_PREFIX
759 SSL_LIBS
760 SSL_CFLAGS
761 SEDOBJ
762 PICFLAGS
763 GNUTLS_LIBS
764 GNUTLS_CFLAGS
765 PKG_CONFIG
766 ALLOCA
767 MINGW_FALSE
768 MINGW_TRUE
769 OTOOL64
770 OTOOL
771 LIPO
772 NMEDIT
773 DSYMUTIL
774 lt_ECHO
775 RANLIB
776 AR
777 OBJDUMP
778 LN_S
779 NM
780 ac_ct_DUMPBIN
781 DUMPBIN
782 LD
783 FGREP
784 host_os
785 host_vendor
786 host_cpu
787 host
788 build_os
789 build_vendor
790 build_cpu
791 build
792 LIBTOOL
793 TOUCH
794 LN
795 MV
796 CP
797 RM
798 AS
799 MAINT
800 MAINTAINER_MODE_FALSE
801 MAINTAINER_MODE_TRUE
802 SED
803 EGREP
804 GREP
805 CPP
806 am__fastdepCC_FALSE
807 am__fastdepCC_TRUE
808 CCDEPMODE
809 AMDEPBACKSLASH
810 AMDEP_FALSE
811 AMDEP_TRUE
812 am__quote
813 am__include
814 DEPDIR
815 OBJEXT
816 EXEEXT
817 ac_ct_CC
818 CPPFLAGS
819 LDFLAGS
820 CFLAGS
821 CC
822 am__untar
823 am__tar
824 AMTAR
825 am__leading_dot
826 SET_MAKE
827 AWK
828 mkdir_p
829 MKDIR_P
830 INSTALL_STRIP_PROGRAM
831 STRIP
832 install_sh
833 MAKEINFO
834 AUTOHEADER
835 AUTOMAKE
836 AUTOCONF
837 ACLOCAL
838 VERSION
839 PACKAGE
840 CYGPATH_W
841 am__isrc
842 INSTALL_DATA
843 INSTALL_SCRIPT
844 INSTALL_PROGRAM
845 target_alias
846 host_alias
847 build_alias
848 LIBS
849 ECHO_T
850 ECHO_N
851 ECHO_C
852 DEFS
853 mandir
854 localedir
855 libdir
856 psdir
857 pdfdir
858 dvidir
859 htmldir
860 infodir
861 docdir
862 oldincludedir
863 includedir
864 localstatedir
865 sharedstatedir
866 sysconfdir
867 datadir
868 datarootdir
869 libexecdir
870 sbindir
871 bindir
872 program_transform_name
873 prefix
874 exec_prefix
875 PACKAGE_URL
876 PACKAGE_BUGREPORT
877 PACKAGE_STRING
878 PACKAGE_VERSION
879 PACKAGE_TARNAME
880 PACKAGE_NAME
881 PATH_SEPARATOR
882 SHELL'
883 ac_subst_files=''
884 ac_user_opts='
885 enable_option_checking
886 enable_dependency_tracking
887 enable_static
888 enable_shared
889 enable_maintainer_mode
890 with_pic
891 enable_fast_install
892 with_gnu_ld
893 enable_libtool_lock
894 enable_ipv6
895 enable_openssl
896 enable_gnutls
897 enable_assert
898 enable_profile
899 enable_balloc
900 enable_warnings
901 '
902 ac_precious_vars='build_alias
903 host_alias
904 target_alias
905 CC
906 CFLAGS
907 LDFLAGS
908 LIBS
909 CPPFLAGS
910 CPP
911 PKG_CONFIG
912 GNUTLS_CFLAGS
913 GNUTLS_LIBS'
914
915
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 ac_unrecognized_opts=
920 ac_unrecognized_sep=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
937
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
955 infodir='${datarootdir}/info'
956 htmldir='${docdir}'
957 dvidir='${docdir}'
958 pdfdir='${docdir}'
959 psdir='${docdir}'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
963
964 ac_prev=
965 ac_dashdash=
966 for ac_option
967 do
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
971 ac_prev=
972 continue
973 fi
974
975 case $ac_option in
976 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *=) ac_optarg= ;;
978 *) ac_optarg=yes ;;
979 esac
980
981 # Accept the important Cygnus configure options, so we can diagnose typos.
982
983 case $ac_dashdash$ac_option in
984 --)
985 ac_dashdash=yes ;;
986
987 -bindir | --bindir | --bindi | --bind | --bin | --bi)
988 ac_prev=bindir ;;
989 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990 bindir=$ac_optarg ;;
991
992 -build | --build | --buil | --bui | --bu)
993 ac_prev=build_alias ;;
994 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995 build_alias=$ac_optarg ;;
996
997 -cache-file | --cache-file | --cache-fil | --cache-fi \
998 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999 ac_prev=cache_file ;;
1000 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002 cache_file=$ac_optarg ;;
1003
1004 --config-cache | -C)
1005 cache_file=config.cache ;;
1006
1007 -datadir | --datadir | --datadi | --datad)
1008 ac_prev=datadir ;;
1009 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010 datadir=$ac_optarg ;;
1011
1012 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013 | --dataroo | --dataro | --datar)
1014 ac_prev=datarootdir ;;
1015 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017 datarootdir=$ac_optarg ;;
1018
1019 -disable-* | --disable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid feature name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1027 *"
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=no ;;
1034
1035 -docdir | --docdir | --docdi | --doc | --do)
1036 ac_prev=docdir ;;
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1039
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041 ac_prev=dvidir ;;
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1044
1045 -enable-* | --enable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=\$ac_optarg ;;
1060
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
1069
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1072 with_gas=yes ;;
1073
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1080
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
1085
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 ac_prev=htmldir ;;
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 | --ht=*)
1090 htmldir=$ac_optarg ;;
1091
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
1098
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 ac_prev=infodir ;;
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
1103
1104 -libdir | --libdir | --libdi | --libd)
1105 ac_prev=libdir ;;
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
1108
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1115
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1120
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1127
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 ac_prev=mandir ;;
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1132
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1135 with_fp=no ;;
1136
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1139 no_create=yes ;;
1140
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143 no_recursion=yes ;;
1144
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1153
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 ac_prev=prefix ;;
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1158
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1165
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1172
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1189
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 ac_prev=pdfdir ;;
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1194
1195 -psdir | --psdir | --psdi | --psd | --ps)
1196 ac_prev=psdir ;;
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198 psdir=$ac_optarg ;;
1199
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 silent=yes ;;
1203
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
1208 sbindir=$ac_optarg ;;
1209
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
1219 sharedstatedir=$ac_optarg ;;
1220
1221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
1224 site=$ac_optarg ;;
1225
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1230
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1237
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1242
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1245
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1248
1249 -with-* | --with-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error $? "invalid package name: $ac_useropt"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258 "with_$ac_useropt"
1259 "*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=\$ac_optarg ;;
1264
1265 -without-* | --without-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error $? "invalid package name: $ac_useropt"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274 "with_$ac_useropt"
1275 "*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=no ;;
1280
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1284
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes=$ac_optarg ;;
1291
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries=$ac_optarg ;;
1298
1299 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1300 Try \`$0 --help' for more information"
1301 ;;
1302
1303 *=*)
1304 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
1306 case $ac_envvar in #(
1307 '' | [0-9]* | *[!_$as_cr_alnum]* )
1308 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1309 esac
1310 eval $ac_envvar=\$ac_optarg
1311 export $ac_envvar ;;
1312
1313 *)
1314 # FIXME: should be removed in autoconf 3.0.
1315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1319 ;;
1320
1321 esac
1322 done
1323
1324 if test -n "$ac_prev"; then
1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326 as_fn_error $? "missing argument to $ac_option"
1327 fi
1328
1329 if test -n "$ac_unrecognized_opts"; then
1330 case $enable_option_checking in
1331 no) ;;
1332 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334 esac
1335 fi
1336
1337 # Check all directory arguments for consistency.
1338 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1342 do
1343 eval ac_val=\$$ac_var
1344 # Remove trailing slashes.
1345 case $ac_val in
1346 */ )
1347 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\$ac_val;;
1349 esac
1350 # Be sure to have absolute directory names.
1351 case $ac_val in
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 esac
1355 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1356 done
1357
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1361 build=$build_alias
1362 host=$host_alias
1363 target=$target_alias
1364
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
1369 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1370 If a cross compiler is detected then cross compile mode will be used" >&2
1371 elif test "x$build_alias" != "x$host_alias"; then
1372 cross_compiling=yes
1373 fi
1374 fi
1375
1376 ac_tool_prefix=
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379 test "$silent" = yes && exec 6>/dev/null
1380
1381
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 as_fn_error $? "working directory cannot be determined"
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 as_fn_error $? "pwd does not report name of working directory"
1388
1389
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392 ac_srcdir_defaulted=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)[^/].*/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\/\)$/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\).*/{
1413 s//\1/
1414 q
1415 }
1416 s/.*/./; q'`
1417 srcdir=$ac_confdir
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 srcdir=..
1420 fi
1421 else
1422 ac_srcdir_defaulted=no
1423 fi
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1427 fi
1428 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 ac_abs_confdir=`(
1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1431 pwd)`
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1435 fi
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1439 case $srcdir in
1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 esac
1442 for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447 done
1448
1449 #
1450 # Report the --help message.
1451 #
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1455 cat <<_ACEOF
1456 \`configure' configures libratbox devel to adapt to many kinds of systems.
1457
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1462
1463 Defaults for the options are specified in brackets.
1464
1465 Configuration:
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking ...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1480 [PREFIX]
1481
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1486
1487 For better control, use the options below.
1488
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1509 _ACEOF
1510
1511 cat <<\_ACEOF
1512
1513 Program names:
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1517
1518 System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 _ACEOF
1522 fi
1523
1524 if test -n "$ac_init_help"; then
1525 case $ac_init_help in
1526 short | recursive ) echo "Configuration of libratbox devel:";;
1527 esac
1528 cat <<\_ACEOF
1529
1530 Optional Features:
1531 --disable-option-checking ignore unrecognized --enable/--with options
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --disable-dependency-tracking speeds up one-time build
1535 --enable-dependency-tracking do not reject slow dependency extractors
1536 --enable-static[=PKGS] build static libraries [default=no]
1537 --enable-shared[=PKGS] build shared libraries [default=yes]
1538 --enable-maintainer-mode enable make rules and dependencies not useful
1539 (and sometimes confusing) to the casual installer
1540 --enable-fast-install[=PKGS]
1541 optimize for fast installation [default=yes]
1542 --disable-libtool-lock avoid locking (might break parallel builds)
1543 --disable-ipv6 Disable IPv6 support
1544 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1545 --disable-openssl Disable OpenSSL support.
1546 --enable-gnutls Enable GnuTLS support.
1547 --disable-gnutls Disable GnuTLS support.
1548 --enable-assert Enable assert(). Choose between soft(warnings) and
1549 hard(aborts the daemon)
1550 --enable-profile Enable profiling
1551 --disable-balloc Disable the block allocator.
1552 --enable-warnings Enable all sorts of warnings for debugging.
1553
1554 Optional Packages:
1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1557 --with-pic try to use only PIC/non-PIC objects [default=use
1558 both]
1559 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1560
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
1569 CPP C preprocessor
1570 PKG_CONFIG path to pkg-config utility
1571 GNUTLS_CFLAGS
1572 C compiler flags for GNUTLS, overriding pkg-config
1573 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1574
1575 Use these variables to override the choices made by `configure' or to help
1576 it to find libraries and programs with nonstandard names/locations.
1577
1578 Report bugs to the package provider.
1579 _ACEOF
1580 ac_status=$?
1581 fi
1582
1583 if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586 test -d "$ac_dir" ||
1587 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1588 continue
1589 ac_builddir=.
1590
1591 case "$ac_dir" in
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *)
1594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600 esac ;;
1601 esac
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1606
1607 case $srcdir in
1608 .) # We are building in place.
1609 ac_srcdir=.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1616 *) # Relative name.
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620 esac
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1631 else
1632 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633 fi || ac_status=$?
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1635 done
1636 fi
1637
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1640 cat <<\_ACEOF
1641 libratbox configure devel
1642 generated by GNU Autoconf 2.68
1643
1644 Copyright (C) 2010 Free Software Foundation, Inc.
1645 This configure script is free software; the Free Software Foundation
1646 gives unlimited permission to copy, distribute and modify it.
1647
1648 $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
1649 _ACEOF
1650 exit
1651 fi
1652
1653 ## ------------------------ ##
1654 ## Autoconf initialization. ##
1655 ## ------------------------ ##
1656
1657 # ac_fn_c_try_compile LINENO
1658 # --------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_compile ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_compile
1694
1695 # ac_fn_c_try_cpp LINENO
1696 # ----------------------
1697 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_cpp ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } > conftest.i && {
1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 }; then :
1720 ac_retval=0
1721 else
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726 fi
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_cpp
1731
1732 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1735 # the include files in INCLUDES and setting the cache variable VAR
1736 # accordingly.
1737 ac_fn_c_check_header_mongrel ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if eval \${$3+:} false; then :
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1745 fi
1746 eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 else
1750 # Is the header compilable?
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1752 $as_echo_n "checking $2 usability... " >&6; }
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 $4
1756 #include <$2>
1757 _ACEOF
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759 ac_header_compiler=yes
1760 else
1761 ac_header_compiler=no
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1765 $as_echo "$ac_header_compiler" >&6; }
1766
1767 # Is the header present?
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1769 $as_echo_n "checking $2 presence... " >&6; }
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1772 #include <$2>
1773 _ACEOF
1774 if ac_fn_c_try_cpp "$LINENO"; then :
1775 ac_header_preproc=yes
1776 else
1777 ac_header_preproc=no
1778 fi
1779 rm -f conftest.err conftest.i conftest.$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1781 $as_echo "$ac_header_preproc" >&6; }
1782
1783 # So? What about this header?
1784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1785 yes:no: )
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1787 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 ;;
1791 no:yes:* )
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1793 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1795 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1797 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1799 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802 ;;
1803 esac
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1808 else
1809 eval "$3=\$ac_header_compiler"
1810 fi
1811 eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 fi
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817 } # ac_fn_c_check_header_mongrel
1818
1819 # ac_fn_c_try_run LINENO
1820 # ----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822 # that executables *can* be run.
1823 ac_fn_c_try_run ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_link"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1837 { { case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_try") 2>&5
1844 ac_status=$?
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; }; }; then :
1847 ac_retval=0
1848 else
1849 $as_echo "$as_me: program exited with status $ac_status" >&5
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=$ac_status
1854 fi
1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1858
1859 } # ac_fn_c_try_run
1860
1861 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1862 # -------------------------------------------------------
1863 # Tests whether HEADER exists and can be compiled using the include files in
1864 # INCLUDES, setting the cache variable VAR accordingly.
1865 ac_fn_c_check_header_compile ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 $4
1876 #include <$2>
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_header_compile
1891
1892 # ac_fn_c_try_link LINENO
1893 # -----------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_c_try_link ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 $as_test_x conftest$ac_exeext
1920 }; then :
1921 ac_retval=0
1922 else
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=1
1927 fi
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1935
1936 } # ac_fn_c_try_link
1937
1938 # ac_fn_c_check_func LINENO FUNC VAR
1939 # ----------------------------------
1940 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1941 ac_fn_c_check_func ()
1942 {
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1948 else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1953 #define $2 innocuous_$2
1954
1955 /* System header to define __stub macros and hopefully few prototypes,
1956 which can conflict with char $2 (); below.
1957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1958 <limits.h> exists even on freestanding compilers. */
1959
1960 #ifdef __STDC__
1961 # include <limits.h>
1962 #else
1963 # include <assert.h>
1964 #endif
1965
1966 #undef $2
1967
1968 /* Override any GCC internal prototype to avoid an error.
1969 Use char because int might match the return type of a GCC
1970 builtin and then its argument prototype would still apply. */
1971 #ifdef __cplusplus
1972 extern "C"
1973 #endif
1974 char $2 ();
1975 /* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978 #if defined __stub_$2 || defined __stub___$2
1979 choke me
1980 #endif
1981
1982 int
1983 main ()
1984 {
1985 return $2 ();
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 if ac_fn_c_try_link "$LINENO"; then :
1991 eval "$3=yes"
1992 else
1993 eval "$3=no"
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext \
1996 conftest$ac_exeext conftest.$ac_ext
1997 fi
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003 } # ac_fn_c_check_func
2004
2005 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2006 # -------------------------------------------
2007 # Tests whether TYPE exists after having included INCLUDES, setting cache
2008 # variable VAR accordingly.
2009 ac_fn_c_check_type ()
2010 {
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 else
2017 eval "$3=no"
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 $4
2021 int
2022 main ()
2023 {
2024 if (sizeof ($2))
2025 return 0;
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 $4
2034 int
2035 main ()
2036 {
2037 if (sizeof (($2)))
2038 return 0;
2039 ;
2040 return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044
2045 else
2046 eval "$3=yes"
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 fi
2052 eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057 } # ac_fn_c_check_type
2058
2059 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2060 # ----------------------------------------------------
2061 # Tries to find if the field MEMBER exists in type AGGR, after including
2062 # INCLUDES, setting cache variable VAR accordingly.
2063 ac_fn_c_check_member ()
2064 {
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2067 $as_echo_n "checking for $2.$3... " >&6; }
2068 if eval \${$4+:} false; then :
2069 $as_echo_n "(cached) " >&6
2070 else
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 $5
2074 int
2075 main ()
2076 {
2077 static $2 ac_aggr;
2078 if (ac_aggr.$3)
2079 return 0;
2080 ;
2081 return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 eval "$4=yes"
2086 else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 $5
2090 int
2091 main ()
2092 {
2093 static $2 ac_aggr;
2094 if (sizeof ac_aggr.$3)
2095 return 0;
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 eval "$4=yes"
2102 else
2103 eval "$4=no"
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 fi
2109 eval ac_res=\$$4
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113
2114 } # ac_fn_c_check_member
2115 cat >config.log <<_ACEOF
2116 This file contains any messages produced by compilers while
2117 running configure, to aid debugging if configure makes a mistake.
2118
2119 It was created by libratbox $as_me devel, which was
2120 generated by GNU Autoconf 2.68. Invocation command line was
2121
2122 $ $0 $@
2123
2124 _ACEOF
2125 exec 5>>config.log
2126 {
2127 cat <<_ASUNAME
2128 ## --------- ##
2129 ## Platform. ##
2130 ## --------- ##
2131
2132 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2133 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2134 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2135 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2136 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2137
2138 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2139 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2140
2141 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2142 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2143 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2144 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2145 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2146 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2147 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2148
2149 _ASUNAME
2150
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 $as_echo "PATH: $as_dir"
2157 done
2158 IFS=$as_save_IFS
2159
2160 } >&5
2161
2162 cat >&5 <<_ACEOF
2163
2164
2165 ## ----------- ##
2166 ## Core tests. ##
2167 ## ----------- ##
2168
2169 _ACEOF
2170
2171
2172 # Keep a trace of the command line.
2173 # Strip out --no-create and --no-recursion so they do not pile up.
2174 # Strip out --silent because we don't want to record it for future runs.
2175 # Also quote any args containing shell meta-characters.
2176 # Make two passes to allow for proper duplicate-argument suppression.
2177 ac_configure_args=
2178 ac_configure_args0=
2179 ac_configure_args1=
2180 ac_must_keep_next=false
2181 for ac_pass in 1 2
2182 do
2183 for ac_arg
2184 do
2185 case $ac_arg in
2186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2188 | -silent | --silent | --silen | --sile | --sil)
2189 continue ;;
2190 *\'*)
2191 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2192 esac
2193 case $ac_pass in
2194 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2195 2)
2196 as_fn_append ac_configure_args1 " '$ac_arg'"
2197 if test $ac_must_keep_next = true; then
2198 ac_must_keep_next=false # Got value, back to normal.
2199 else
2200 case $ac_arg in
2201 *=* | --config-cache | -C | -disable-* | --disable-* \
2202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2204 | -with-* | --with-* | -without-* | --without-* | --x)
2205 case "$ac_configure_args0 " in
2206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2207 esac
2208 ;;
2209 -* ) ac_must_keep_next=true ;;
2210 esac
2211 fi
2212 as_fn_append ac_configure_args " '$ac_arg'"
2213 ;;
2214 esac
2215 done
2216 done
2217 { ac_configure_args0=; unset ac_configure_args0;}
2218 { ac_configure_args1=; unset ac_configure_args1;}
2219
2220 # When interrupted or exit'd, cleanup temporary files, and complete
2221 # config.log. We remove comments because anyway the quotes in there
2222 # would cause problems or look ugly.
2223 # WARNING: Use '\'' to represent an apostrophe within the trap.
2224 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2225 trap 'exit_status=$?
2226 # Save into config.log some information that might help in debugging.
2227 {
2228 echo
2229
2230 $as_echo "## ---------------- ##
2231 ## Cache variables. ##
2232 ## ---------------- ##"
2233 echo
2234 # The following way of writing the cache mishandles newlines in values,
2235 (
2236 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in #(
2239 *${as_nl}*)
2240 case $ac_var in #(
2241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2243 esac
2244 case $ac_var in #(
2245 _ | IFS | as_nl) ;; #(
2246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2247 *) { eval $ac_var=; unset $ac_var;} ;;
2248 esac ;;
2249 esac
2250 done
2251 (set) 2>&1 |
2252 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2253 *${as_nl}ac_space=\ *)
2254 sed -n \
2255 "s/'\''/'\''\\\\'\'''\''/g;
2256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2257 ;; #(
2258 *)
2259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2260 ;;
2261 esac |
2262 sort
2263 )
2264 echo
2265
2266 $as_echo "## ----------------- ##
2267 ## Output variables. ##
2268 ## ----------------- ##"
2269 echo
2270 for ac_var in $ac_subst_vars
2271 do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in
2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2275 esac
2276 $as_echo "$ac_var='\''$ac_val'\''"
2277 done | sort
2278 echo
2279
2280 if test -n "$ac_subst_files"; then
2281 $as_echo "## ------------------- ##
2282 ## File substitutions. ##
2283 ## ------------------- ##"
2284 echo
2285 for ac_var in $ac_subst_files
2286 do
2287 eval ac_val=\$$ac_var
2288 case $ac_val in
2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290 esac
2291 $as_echo "$ac_var='\''$ac_val'\''"
2292 done | sort
2293 echo
2294 fi
2295
2296 if test -s confdefs.h; then
2297 $as_echo "## ----------- ##
2298 ## confdefs.h. ##
2299 ## ----------- ##"
2300 echo
2301 cat confdefs.h
2302 echo
2303 fi
2304 test "$ac_signal" != 0 &&
2305 $as_echo "$as_me: caught signal $ac_signal"
2306 $as_echo "$as_me: exit $exit_status"
2307 } >&5
2308 rm -f core *.core core.conftest.* &&
2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2310 exit $exit_status
2311 ' 0
2312 for ac_signal in 1 2 13 15; do
2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2314 done
2315 ac_signal=0
2316
2317 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2318 rm -f -r conftest* confdefs.h
2319
2320 $as_echo "/* confdefs.h */" > confdefs.h
2321
2322 # Predefined preprocessor variables.
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_NAME "$PACKAGE_NAME"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2330 _ACEOF
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2334 _ACEOF
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_STRING "$PACKAGE_STRING"
2338 _ACEOF
2339
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2342 _ACEOF
2343
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_URL "$PACKAGE_URL"
2346 _ACEOF
2347
2348
2349 # Let the site file select an alternate cache file if it wants to.
2350 # Prefer an explicitly selected file to automatically selected ones.
2351 ac_site_file1=NONE
2352 ac_site_file2=NONE
2353 if test -n "$CONFIG_SITE"; then
2354 # We do not want a PATH search for config.site.
2355 case $CONFIG_SITE in #((
2356 -*) ac_site_file1=./$CONFIG_SITE;;
2357 */*) ac_site_file1=$CONFIG_SITE;;
2358 *) ac_site_file1=./$CONFIG_SITE;;
2359 esac
2360 elif test "x$prefix" != xNONE; then
2361 ac_site_file1=$prefix/share/config.site
2362 ac_site_file2=$prefix/etc/config.site
2363 else
2364 ac_site_file1=$ac_default_prefix/share/config.site
2365 ac_site_file2=$ac_default_prefix/etc/config.site
2366 fi
2367 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2368 do
2369 test "x$ac_site_file" = xNONE && continue
2370 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2372 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2373 sed 's/^/| /' "$ac_site_file" >&5
2374 . "$ac_site_file" \
2375 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377 as_fn_error $? "failed to load site script $ac_site_file
2378 See \`config.log' for more details" "$LINENO" 5; }
2379 fi
2380 done
2381
2382 if test -r "$cache_file"; then
2383 # Some versions of bash will fail to source /dev/null (special files
2384 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2385 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2387 $as_echo "$as_me: loading cache $cache_file" >&6;}
2388 case $cache_file in
2389 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2390 *) . "./$cache_file";;
2391 esac
2392 fi
2393 else
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2395 $as_echo "$as_me: creating cache $cache_file" >&6;}
2396 >$cache_file
2397 fi
2398
2399 as_fn_append ac_header_list " stdlib.h"
2400 as_fn_append ac_header_list " unistd.h"
2401 as_fn_append ac_header_list " sys/param.h"
2402 # Check that the precious variables saved in the cache have kept the same
2403 # value.
2404 ac_cache_corrupted=false
2405 for ac_var in $ac_precious_vars; do
2406 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2407 eval ac_new_set=\$ac_env_${ac_var}_set
2408 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2409 eval ac_new_val=\$ac_env_${ac_var}_value
2410 case $ac_old_set,$ac_new_set in
2411 set,)
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2413 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2414 ac_cache_corrupted=: ;;
2415 ,set)
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2417 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2418 ac_cache_corrupted=: ;;
2419 ,);;
2420 *)
2421 if test "x$ac_old_val" != "x$ac_new_val"; then
2422 # differences in whitespace do not lead to failure.
2423 ac_old_val_w=`echo x $ac_old_val`
2424 ac_new_val_w=`echo x $ac_new_val`
2425 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2427 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2428 ac_cache_corrupted=:
2429 else
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2431 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2432 eval $ac_var=\$ac_old_val
2433 fi
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2435 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2437 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2438 fi;;
2439 esac
2440 # Pass precious variables to config.status.
2441 if test "$ac_new_set" = set; then
2442 case $ac_new_val in
2443 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2444 *) ac_arg=$ac_var=$ac_new_val ;;
2445 esac
2446 case " $ac_configure_args " in
2447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2448 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2449 esac
2450 fi
2451 done
2452 if $ac_cache_corrupted; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2456 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2457 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2458 fi
2459 ## -------------------- ##
2460 ## Main body of script. ##
2461 ## -------------------- ##
2462
2463 ac_ext=c
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2468
2469
2470 am__api_version='1.11'
2471
2472 ac_aux_dir=
2473 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2474 if test -f "$ac_dir/install-sh"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/install-sh -c"
2477 break
2478 elif test -f "$ac_dir/install.sh"; then
2479 ac_aux_dir=$ac_dir
2480 ac_install_sh="$ac_aux_dir/install.sh -c"
2481 break
2482 elif test -f "$ac_dir/shtool"; then
2483 ac_aux_dir=$ac_dir
2484 ac_install_sh="$ac_aux_dir/shtool install -c"
2485 break
2486 fi
2487 done
2488 if test -z "$ac_aux_dir"; then
2489 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2490 fi
2491
2492 # These three variables are undocumented and unsupported,
2493 # and are intended to be withdrawn in a future Autoconf release.
2494 # They can cause serious problems if a builder's source tree is in a directory
2495 # whose full name contains unusual characters.
2496 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2497 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2498 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2499
2500
2501 # Find a good install program. We prefer a C program (faster),
2502 # so one script is as good as another. But avoid the broken or
2503 # incompatible versions:
2504 # SysV /etc/install, /usr/sbin/install
2505 # SunOS /usr/etc/install
2506 # IRIX /sbin/install
2507 # AIX /bin/install
2508 # AmigaOS /C/install, which installs bootblocks on floppy discs
2509 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2510 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2511 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2512 # OS/2's system install, which has a completely different semantic
2513 # ./install, which can be erroneously created by make from ./install.sh.
2514 # Reject install programs that cannot install multiple files.
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2516 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2517 if test -z "$INSTALL"; then
2518 if ${ac_cv_path_install+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 # Account for people who put trailing slashes in PATH elements.
2527 case $as_dir/ in #((
2528 ./ | .// | /[cC]/* | \
2529 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2530 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2531 /usr/ucb/* ) ;;
2532 *)
2533 # OSF1 and SCO ODT 3.0 have their own names for install.
2534 # Don't use installbsd from OSF since it installs stuff as root
2535 # by default.
2536 for ac_prog in ginstall scoinst install; do
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2539 if test $ac_prog = install &&
2540 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2541 # AIX install. It has an incompatible calling convention.
2542 :
2543 elif test $ac_prog = install &&
2544 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545 # program-specific install script used by HP pwplus--don't use.
2546 :
2547 else
2548 rm -rf conftest.one conftest.two conftest.dir
2549 echo one > conftest.one
2550 echo two > conftest.two
2551 mkdir conftest.dir
2552 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2553 test -s conftest.one && test -s conftest.two &&
2554 test -s conftest.dir/conftest.one &&
2555 test -s conftest.dir/conftest.two
2556 then
2557 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2558 break 3
2559 fi
2560 fi
2561 fi
2562 done
2563 done
2564 ;;
2565 esac
2566
2567 done
2568 IFS=$as_save_IFS
2569
2570 rm -rf conftest.one conftest.two conftest.dir
2571
2572 fi
2573 if test "${ac_cv_path_install+set}" = set; then
2574 INSTALL=$ac_cv_path_install
2575 else
2576 # As a last resort, use the slow shell script. Don't cache a
2577 # value for INSTALL within a source directory, because that will
2578 # break other packages using the cache if that directory is
2579 # removed, or if the value is a relative name.
2580 INSTALL=$ac_install_sh
2581 fi
2582 fi
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2584 $as_echo "$INSTALL" >&6; }
2585
2586 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2587 # It thinks the first close brace ends the variable substitution.
2588 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2589
2590 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2591
2592 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2593
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2595 $as_echo_n "checking whether build environment is sane... " >&6; }
2596 # Just in case
2597 sleep 1
2598 echo timestamp > conftest.file
2599 # Reject unsafe characters in $srcdir or the absolute working directory
2600 # name. Accept space and tab only in the latter.
2601 am_lf='
2602 '
2603 case `pwd` in
2604 *[\\\"\#\$\&\'\`$am_lf]*)
2605 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2606 esac
2607 case $srcdir in
2608 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2609 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2610 esac
2611
2612 # Do `set' in a subshell so we don't clobber the current shell's
2613 # arguments. Must try -L first in case configure is actually a
2614 # symlink; some systems play weird games with the mod time of symlinks
2615 # (eg FreeBSD returns the mod time of the symlink's containing
2616 # directory).
2617 if (
2618 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2619 if test "$*" = "X"; then
2620 # -L didn't work.
2621 set X `ls -t "$srcdir/configure" conftest.file`
2622 fi
2623 rm -f conftest.file
2624 if test "$*" != "X $srcdir/configure conftest.file" \
2625 && test "$*" != "X conftest.file $srcdir/configure"; then
2626
2627 # If neither matched, then we have a broken ls. This can happen
2628 # if, for instance, CONFIG_SHELL is bash and it inherits a
2629 # broken ls alias from the environment. This has actually
2630 # happened. Such a system could not be considered "sane".
2631 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2632 alias in your environment" "$LINENO" 5
2633 fi
2634
2635 test "$2" = conftest.file
2636 )
2637 then
2638 # Ok.
2639 :
2640 else
2641 as_fn_error $? "newly created file is older than distributed files!
2642 Check your system clock" "$LINENO" 5
2643 fi
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2645 $as_echo "yes" >&6; }
2646 test "$program_prefix" != NONE &&
2647 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2648 # Use a double $ so make ignores it.
2649 test "$program_suffix" != NONE &&
2650 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2651 # Double any \ or $.
2652 # By default was `s,x,x', remove it if useless.
2653 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2654 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2655
2656 # expand $ac_aux_dir to an absolute path
2657 am_aux_dir=`cd $ac_aux_dir && pwd`
2658
2659 if test x"${MISSING+set}" != xset; then
2660 case $am_aux_dir in
2661 *\ * | *\ *)
2662 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2663 *)
2664 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2665 esac
2666 fi
2667 # Use eval to expand $SHELL
2668 if eval "$MISSING --run true"; then
2669 am_missing_run="$MISSING --run "
2670 else
2671 am_missing_run=
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2673 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2674 fi
2675
2676 if test x"${install_sh}" != xset; then
2677 case $am_aux_dir in
2678 *\ * | *\ *)
2679 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2680 *)
2681 install_sh="\${SHELL} $am_aux_dir/install-sh"
2682 esac
2683 fi
2684
2685 # Installed binaries are usually stripped using `strip' when the user
2686 # run `make install-strip'. However `strip' might not be the right
2687 # tool to use in cross-compilation environments, therefore Automake
2688 # will honor the `STRIP' environment variable to overrule this program.
2689 if test "$cross_compiling" != no; then
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}strip; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_STRIP+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test -n "$STRIP"; then
2699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712 done
2713 done
2714 IFS=$as_save_IFS
2715
2716 fi
2717 fi
2718 STRIP=$ac_cv_prog_STRIP
2719 if test -n "$STRIP"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2721 $as_echo "$STRIP" >&6; }
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2725 fi
2726
2727
2728 fi
2729 if test -z "$ac_cv_prog_STRIP"; then
2730 ac_ct_STRIP=$STRIP
2731 # Extract the first word of "strip", so it can be a program name with args.
2732 set dummy strip; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 if test -n "$ac_ct_STRIP"; then
2739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_ac_ct_STRIP="strip"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 fi
2757 fi
2758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2759 if test -n "$ac_ct_STRIP"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2761 $as_echo "$ac_ct_STRIP" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2765 fi
2766
2767 if test "x$ac_ct_STRIP" = x; then
2768 STRIP=":"
2769 else
2770 case $cross_compiling:$ac_tool_warned in
2771 yes:)
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2774 ac_tool_warned=yes ;;
2775 esac
2776 STRIP=$ac_ct_STRIP
2777 fi
2778 else
2779 STRIP="$ac_cv_prog_STRIP"
2780 fi
2781
2782 fi
2783 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2784
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2786 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2787 if test -z "$MKDIR_P"; then
2788 if ${ac_cv_path_mkdir+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2793 do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_prog in mkdir gmkdir; do
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2799 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2800 'mkdir (GNU coreutils) '* | \
2801 'mkdir (coreutils) '* | \
2802 'mkdir (fileutils) '4.1*)
2803 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2804 break 3;;
2805 esac
2806 done
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812
2813 test -d ./--version && rmdir ./--version
2814 if test "${ac_cv_path_mkdir+set}" = set; then
2815 MKDIR_P="$ac_cv_path_mkdir -p"
2816 else
2817 # As a last resort, use the slow shell script. Don't cache a
2818 # value for MKDIR_P within a source directory, because that will
2819 # break other packages using the cache if that directory is
2820 # removed, or if the value is a relative name.
2821 MKDIR_P="$ac_install_sh -d"
2822 fi
2823 fi
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2825 $as_echo "$MKDIR_P" >&6; }
2826
2827 mkdir_p="$MKDIR_P"
2828 case $mkdir_p in
2829 [\\/$]* | ?:[\\/]*) ;;
2830 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2831 esac
2832
2833 for ac_prog in gawk mawk nawk awk
2834 do
2835 # Extract the first word of "$ac_prog", so it can be a program name with args.
2836 set dummy $ac_prog; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_AWK+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$AWK"; then
2843 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_AWK="$ac_prog"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 AWK=$ac_cv_prog_AWK
2863 if test -n "$AWK"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2865 $as_echo "$AWK" >&6; }
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871
2872 test -n "$AWK" && break
2873 done
2874
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2876 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2877 set x ${MAKE-make}
2878 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2879 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 cat >conftest.make <<\_ACEOF
2883 SHELL = /bin/sh
2884 all:
2885 @echo '@@@%%%=$(MAKE)=@@@%%%'
2886 _ACEOF
2887 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2888 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2889 *@@@%%%=?*=@@@%%%*)
2890 eval ac_cv_prog_make_${ac_make}_set=yes;;
2891 *)
2892 eval ac_cv_prog_make_${ac_make}_set=no;;
2893 esac
2894 rm -f conftest.make
2895 fi
2896 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2898 $as_echo "yes" >&6; }
2899 SET_MAKE=
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 SET_MAKE="MAKE=${MAKE-make}"
2904 fi
2905
2906 rm -rf .tst 2>/dev/null
2907 mkdir .tst 2>/dev/null
2908 if test -d .tst; then
2909 am__leading_dot=.
2910 else
2911 am__leading_dot=_
2912 fi
2913 rmdir .tst 2>/dev/null
2914
2915 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2916 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2917 # is not polluted with repeated "-I."
2918 am__isrc=' -I$(srcdir)'
2919 # test to see if srcdir already configured
2920 if test -f $srcdir/config.status; then
2921 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2922 fi
2923 fi
2924
2925 # test whether we have cygpath
2926 if test -z "$CYGPATH_W"; then
2927 if (cygpath --version) >/dev/null 2>/dev/null; then
2928 CYGPATH_W='cygpath -w'
2929 else
2930 CYGPATH_W=echo
2931 fi
2932 fi
2933
2934
2935 # Define the identity of the package.
2936 PACKAGE=libratbox
2937 VERSION=devel
2938
2939
2940 # Some tools Automake needs.
2941
2942 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2943
2944
2945 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2946
2947
2948 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2949
2950
2951 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2952
2953
2954 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2955
2956 # We need awk for the "check" target. The system "awk" is bad on
2957 # some platforms.
2958 # Always define AMTAR for backward compatibility.
2959
2960 AMTAR=${AMTAR-"${am_missing_run}tar"}
2961
2962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2963
2964
2965
2966
2967
2968
2969 ac_config_headers="$ac_config_headers include/libratbox_config.h"
2970
2971
2972
2973 DEPDIR="${am__leading_dot}deps"
2974
2975 ac_config_commands="$ac_config_commands depfiles"
2976
2977
2978 am_make=${MAKE-make}
2979 cat > confinc << 'END'
2980 am__doit:
2981 @echo this is the am__doit target
2982 .PHONY: am__doit
2983 END
2984 # If we don't find an include directive, just comment out the code.
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2986 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2987 am__include="#"
2988 am__quote=
2989 _am_result=none
2990 # First try GNU make style include.
2991 echo "include confinc" > confmf
2992 # Ignore all kinds of additional output from `make'.
2993 case `$am_make -s -f confmf 2> /dev/null` in #(
2994 *the\ am__doit\ target*)
2995 am__include=include
2996 am__quote=
2997 _am_result=GNU
2998 ;;
2999 esac
3000 # Now try BSD make style include.
3001 if test "$am__include" = "#"; then
3002 echo '.include "confinc"' > confmf
3003 case `$am_make -s -f confmf 2> /dev/null` in #(
3004 *the\ am__doit\ target*)
3005 am__include=.include
3006 am__quote="\""
3007 _am_result=BSD
3008 ;;
3009 esac
3010 fi
3011
3012
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3014 $as_echo "$_am_result" >&6; }
3015 rm -f confinc confmf
3016
3017 # Check whether --enable-dependency-tracking was given.
3018 if test "${enable_dependency_tracking+set}" = set; then :
3019 enableval=$enable_dependency_tracking;
3020 fi
3021
3022 if test "x$enable_dependency_tracking" != xno; then
3023 am_depcomp="$ac_aux_dir/depcomp"
3024 AMDEPBACKSLASH='\'
3025 fi
3026 if test "x$enable_dependency_tracking" != xno; then
3027 AMDEP_TRUE=
3028 AMDEP_FALSE='#'
3029 else
3030 AMDEP_TRUE='#'
3031 AMDEP_FALSE=
3032 fi
3033
3034
3035 ac_ext=c
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040 if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_CC+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3061 fi
3062 done
3063 done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 CC=$ac_cv_prog_CC
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077
3078 fi
3079 if test -z "$ac_cv_prog_CC"; then
3080 ac_ct_CC=$CC
3081 # Extract the first word of "gcc", so it can be a program name with args.
3082 set dummy gcc; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_CC="gcc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109 if test -n "$ac_ct_CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3111 $as_echo "$ac_ct_CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117 if test "x$ac_ct_CC" = x; then
3118 CC=""
3119 else
3120 case $cross_compiling:$ac_tool_warned in
3121 yes:)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124 ac_tool_warned=yes ;;
3125 esac
3126 CC=$ac_ct_CC
3127 fi
3128 else
3129 CC="$ac_cv_prog_CC"
3130 fi
3131
3132 if test -z "$CC"; then
3133 if test -n "$ac_tool_prefix"; then
3134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3135 set dummy ${ac_tool_prefix}cc; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_CC+:} false; then :
3139 $as_echo_n "(cached) " >&6
3140 else
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_CC="${ac_tool_prefix}cc"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 break 2
3154 fi
3155 done
3156 done
3157 IFS=$as_save_IFS
3158
3159 fi
3160 fi
3161 CC=$ac_cv_prog_CC
3162 if test -n "$CC"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164 $as_echo "$CC" >&6; }
3165 else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 fi
3169
3170
3171 fi
3172 fi
3173 if test -z "$CC"; then
3174 # Extract the first word of "cc", so it can be a program name with args.
3175 set dummy cc; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if ${ac_cv_prog_CC+:} false; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 ac_prog_rejected=no
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3193 ac_prog_rejected=yes
3194 continue
3195 fi
3196 ac_cv_prog_CC="cc"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200 done
3201 done
3202 IFS=$as_save_IFS
3203
3204 if test $ac_prog_rejected = yes; then
3205 # We found a bogon in the path, so make sure we never use it.
3206 set dummy $ac_cv_prog_CC
3207 shift
3208 if test $# != 0; then
3209 # We chose a different compiler from the bogus one.
3210 # However, it has the same basename, so the bogon will be chosen
3211 # first if we set CC to just the basename; use the full file name.
3212 shift
3213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3214 fi
3215 fi
3216 fi
3217 fi
3218 CC=$ac_cv_prog_CC
3219 if test -n "$CC"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3221 $as_echo "$CC" >&6; }
3222 else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226
3227
3228 fi
3229 if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
3231 for ac_prog in cl.exe
3232 do
3233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3253 fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 CC=$ac_cv_prog_CC
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269
3270 test -n "$CC" && break
3271 done
3272 fi
3273 if test -z "$CC"; then
3274 ac_ct_CC=$CC
3275 for ac_prog in cl.exe
3276 do
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278 set dummy $ac_prog; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 if test -n "$ac_ct_CC"; then
3285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_ac_ct_CC="$ac_prog"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298 done
3299 done
3300 IFS=$as_save_IFS
3301
3302 fi
3303 fi
3304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305 if test -n "$ac_ct_CC"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3307 $as_echo "$ac_ct_CC" >&6; }
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 fi
3312
3313
3314 test -n "$ac_ct_CC" && break
3315 done
3316
3317 if test "x$ac_ct_CC" = x; then
3318 CC=""
3319 else
3320 case $cross_compiling:$ac_tool_warned in
3321 yes:)
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324 ac_tool_warned=yes ;;
3325 esac
3326 CC=$ac_ct_CC
3327 fi
3328 fi
3329
3330 fi
3331
3332
3333 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error $? "no acceptable C compiler found in \$PATH
3336 See \`config.log' for more details" "$LINENO" 5; }
3337
3338 # Provide some information about the compiler.
3339 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3340 set X $ac_compile
3341 ac_compiler=$2
3342 for ac_option in --version -v -V -qversion; do
3343 { { ac_try="$ac_compiler $ac_option >&5"
3344 case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3351 ac_status=$?
3352 if test -s conftest.err; then
3353 sed '10a\
3354 ... rest of stderr output deleted ...
3355 10q' conftest.err >conftest.er1
3356 cat conftest.er1 >&5
3357 fi
3358 rm -f conftest.er1 conftest.err
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361 done
3362
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3365
3366 int
3367 main ()
3368 {
3369
3370 ;
3371 return 0;
3372 }
3373 _ACEOF
3374 ac_clean_files_save=$ac_clean_files
3375 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3376 # Try to create an executable without -o first, disregard a.out.
3377 # It will help us diagnose broken compilers, and finding out an intuition
3378 # of exeext.
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3380 $as_echo_n "checking whether the C compiler works... " >&6; }
3381 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3382
3383 # The possible output files:
3384 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3385
3386 ac_rmfiles=
3387 for ac_file in $ac_files
3388 do
3389 case $ac_file in
3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3392 esac
3393 done
3394 rm -f $ac_rmfiles
3395
3396 if { { ac_try="$ac_link_default"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_link_default") 2>&5
3404 ac_status=$?
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; then :
3407 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3408 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3409 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3410 # so that the user can short-circuit this test for compilers unknown to
3411 # Autoconf.
3412 for ac_file in $ac_files ''
3413 do
3414 test -f "$ac_file" || continue
3415 case $ac_file in
3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3417 ;;
3418 [ab].out )
3419 # We found the default executable, but exeext='' is most
3420 # certainly right.
3421 break;;
3422 *.* )
3423 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3424 then :; else
3425 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3426 fi
3427 # We set ac_cv_exeext here because the later test for it is not
3428 # safe: cross compilers may not add the suffix if given an `-o'
3429 # argument, so we may need to know it at that point already.
3430 # Even if this section looks crufty: it has the advantage of
3431 # actually working.
3432 break;;
3433 * )
3434 break;;
3435 esac
3436 done
3437 test "$ac_cv_exeext" = no && ac_cv_exeext=
3438
3439 else
3440 ac_file=''
3441 fi
3442 if test -z "$ac_file"; then :
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 $as_echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error 77 "C compiler cannot create executables
3451 See \`config.log' for more details" "$LINENO" 5; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3454 $as_echo "yes" >&6; }
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3457 $as_echo_n "checking for C compiler default output file name... " >&6; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3459 $as_echo "$ac_file" >&6; }
3460 ac_exeext=$ac_cv_exeext
3461
3462 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3463 ac_clean_files=$ac_clean_files_save
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3465 $as_echo_n "checking for suffix of executables... " >&6; }
3466 if { { ac_try="$ac_link"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_link") 2>&5
3474 ac_status=$?
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }; then :
3477 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3478 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3479 # work properly (i.e., refer to `conftest.exe'), while it won't with
3480 # `rm'.
3481 for ac_file in conftest.exe conftest conftest.*; do
3482 test -f "$ac_file" || continue
3483 case $ac_file in
3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3486 break;;
3487 * ) break;;
3488 esac
3489 done
3490 else
3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3494 See \`config.log' for more details" "$LINENO" 5; }
3495 fi
3496 rm -f conftest conftest$ac_cv_exeext
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3498 $as_echo "$ac_cv_exeext" >&6; }
3499
3500 rm -f conftest.$ac_ext
3501 EXEEXT=$ac_cv_exeext
3502 ac_exeext=$EXEEXT
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505 #include <stdio.h>
3506 int
3507 main ()
3508 {
3509 FILE *f = fopen ("conftest.out", "w");
3510 return ferror (f) || fclose (f) != 0;
3511
3512 ;
3513 return 0;
3514 }
3515 _ACEOF
3516 ac_clean_files="$ac_clean_files conftest.out"
3517 # Check that the compiler produces executables we can run. If not, either
3518 # the compiler is broken, or we cross compile.
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3520 $as_echo_n "checking whether we are cross compiling... " >&6; }
3521 if test "$cross_compiling" != yes; then
3522 { { ac_try="$ac_link"
3523 case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526 esac
3527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528 $as_echo "$ac_try_echo"; } >&5
3529 (eval "$ac_link") 2>&5
3530 ac_status=$?
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }
3533 if { ac_try='./conftest$ac_cv_exeext'
3534 { { case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539 $as_echo "$ac_try_echo"; } >&5
3540 (eval "$ac_try") 2>&5
3541 ac_status=$?
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; }; then
3544 cross_compiling=no
3545 else
3546 if test "$cross_compiling" = maybe; then
3547 cross_compiling=yes
3548 else
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error $? "cannot run C compiled programs.
3552 If you meant to cross compile, use \`--host'.
3553 See \`config.log' for more details" "$LINENO" 5; }
3554 fi
3555 fi
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3558 $as_echo "$cross_compiling" >&6; }
3559
3560 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3561 ac_clean_files=$ac_clean_files_save
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3563 $as_echo_n "checking for suffix of object files... " >&6; }
3564 if ${ac_cv_objext+:} false; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569
3570 int
3571 main ()
3572 {
3573
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 rm -f conftest.o conftest.obj
3579 if { { ac_try="$ac_compile"
3580 case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_compile") 2>&5
3587 ac_status=$?
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; then :
3590 for ac_file in conftest.o conftest.obj conftest.*; do
3591 test -f "$ac_file" || continue;
3592 case $ac_file in
3593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3595 break;;
3596 esac
3597 done
3598 else
3599 $as_echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 as_fn_error $? "cannot compute suffix of object files: cannot compile
3605 See \`config.log' for more details" "$LINENO" 5; }
3606 fi
3607 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3610 $as_echo "$ac_cv_objext" >&6; }
3611 OBJEXT=$ac_cv_objext
3612 ac_objext=$OBJEXT
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3614 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3615 if ${ac_cv_c_compiler_gnu+:} false; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620
3621 int
3622 main ()
3623 {
3624 #ifndef __GNUC__
3625 choke me
3626 #endif
3627
3628 ;
3629 return 0;
3630 }
3631 _ACEOF
3632 if ac_fn_c_try_compile "$LINENO"; then :
3633 ac_compiler_gnu=yes
3634 else
3635 ac_compiler_gnu=no
3636 fi
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3639
3640 fi
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3642 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3643 if test $ac_compiler_gnu = yes; then
3644 GCC=yes
3645 else
3646 GCC=
3647 fi
3648 ac_test_CFLAGS=${CFLAGS+set}
3649 ac_save_CFLAGS=$CFLAGS
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3651 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3652 if ${ac_cv_prog_cc_g+:} false; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 ac_save_c_werror_flag=$ac_c_werror_flag
3656 ac_c_werror_flag=yes
3657 ac_cv_prog_cc_g=no
3658 CFLAGS="-g"
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3661
3662 int
3663 main ()
3664 {
3665
3666 ;
3667 return 0;
3668 }
3669 _ACEOF
3670 if ac_fn_c_try_compile "$LINENO"; then :
3671 ac_cv_prog_cc_g=yes
3672 else
3673 CFLAGS=""
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3676
3677 int
3678 main ()
3679 {
3680
3681 ;
3682 return 0;
3683 }
3684 _ACEOF
3685 if ac_fn_c_try_compile "$LINENO"; then :
3686
3687 else
3688 ac_c_werror_flag=$ac_save_c_werror_flag
3689 CFLAGS="-g"
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3692
3693 int
3694 main ()
3695 {
3696
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 if ac_fn_c_try_compile "$LINENO"; then :
3702 ac_cv_prog_cc_g=yes
3703 fi
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 fi
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 fi
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 ac_c_werror_flag=$ac_save_c_werror_flag
3710 fi
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3712 $as_echo "$ac_cv_prog_cc_g" >&6; }
3713 if test "$ac_test_CFLAGS" = set; then
3714 CFLAGS=$ac_save_CFLAGS
3715 elif test $ac_cv_prog_cc_g = yes; then
3716 if test "$GCC" = yes; then
3717 CFLAGS="-g -O2"
3718 else
3719 CFLAGS="-g"
3720 fi
3721 else
3722 if test "$GCC" = yes; then
3723 CFLAGS="-O2"
3724 else
3725 CFLAGS=
3726 fi
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3729 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3730 if ${ac_cv_prog_cc_c89+:} false; then :
3731 $as_echo_n "(cached) " >&6
3732 else
3733 ac_cv_prog_cc_c89=no
3734 ac_save_CC=$CC
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737 #include <stdarg.h>
3738 #include <stdio.h>
3739 #include <sys/types.h>
3740 #include <sys/stat.h>
3741 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3742 struct buf { int x; };
3743 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3744 static char *e (p, i)
3745 char **p;
3746 int i;
3747 {
3748 return p[i];
3749 }
3750 static char *f (char * (*g) (char **, int), char **p, ...)
3751 {
3752 char *s;
3753 va_list v;
3754 va_start (v,p);
3755 s = g (p, va_arg (v,int));
3756 va_end (v);
3757 return s;
3758 }
3759
3760 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3761 function prototypes and stuff, but not '\xHH' hex character constants.
3762 These don't provoke an error unfortunately, instead are silently treated
3763 as 'x'. The following induces an error, until -std is added to get
3764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3765 array size at least. It's necessary to write '\x00'==0 to get something
3766 that's true only with -std. */
3767 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3768
3769 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3770 inside strings and character constants. */
3771 #define FOO(x) 'x'
3772 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3773
3774 int test (int i, double x);
3775 struct s1 {int (*f) (int a);};
3776 struct s2 {int (*f) (double a);};
3777 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3778 int argc;
3779 char **argv;
3780 int
3781 main ()
3782 {
3783 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3789 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3790 do
3791 CC="$ac_save_CC $ac_arg"
3792 if ac_fn_c_try_compile "$LINENO"; then :
3793 ac_cv_prog_cc_c89=$ac_arg
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext
3796 test "x$ac_cv_prog_cc_c89" != "xno" && break
3797 done
3798 rm -f conftest.$ac_ext
3799 CC=$ac_save_CC
3800
3801 fi
3802 # AC_CACHE_VAL
3803 case "x$ac_cv_prog_cc_c89" in
3804 x)
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3806 $as_echo "none needed" >&6; } ;;
3807 xno)
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3809 $as_echo "unsupported" >&6; } ;;
3810 *)
3811 CC="$CC $ac_cv_prog_cc_c89"
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3813 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3814 esac
3815 if test "x$ac_cv_prog_cc_c89" != xno; then :
3816
3817 fi
3818
3819 ac_ext=c
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3824
3825 depcc="$CC" am_compiler_list=
3826
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3828 $as_echo_n "checking dependency style of $depcc... " >&6; }
3829 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3830 $as_echo_n "(cached) " >&6
3831 else
3832 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3833 # We make a subdir and do the tests there. Otherwise we can end up
3834 # making bogus files that we don't know about and never remove. For
3835 # instance it was reported that on HP-UX the gcc test will end up
3836 # making a dummy file named `D' -- because `-MD' means `put the output
3837 # in D'.
3838 mkdir conftest.dir
3839 # Copy depcomp to subdir because otherwise we won't find it if we're
3840 # using a relative directory.
3841 cp "$am_depcomp" conftest.dir
3842 cd conftest.dir
3843 # We will build objects and dependencies in a subdirectory because
3844 # it helps to detect inapplicable dependency modes. For instance
3845 # both Tru64's cc and ICC support -MD to output dependencies as a
3846 # side effect of compilation, but ICC will put the dependencies in
3847 # the current directory while Tru64 will put them in the object
3848 # directory.
3849 mkdir sub
3850
3851 am_cv_CC_dependencies_compiler_type=none
3852 if test "$am_compiler_list" = ""; then
3853 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3854 fi
3855 am__universal=false
3856 case " $depcc " in #(
3857 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3858 esac
3859
3860 for depmode in $am_compiler_list; do
3861 # Setup a source with many dependencies, because some compilers
3862 # like to wrap large dependency lists on column 80 (with \), and
3863 # we should not choose a depcomp mode which is confused by this.
3864 #
3865 # We need to recreate these files for each test, as the compiler may
3866 # overwrite some of them when testing with obscure command lines.
3867 # This happens at least with the AIX C compiler.
3868 : > sub/conftest.c
3869 for i in 1 2 3 4 5 6; do
3870 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3871 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3872 # Solaris 8's {/usr,}/bin/sh.
3873 touch sub/conftst$i.h
3874 done
3875 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3876
3877 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3878 # mode. It turns out that the SunPro C++ compiler does not properly
3879 # handle `-M -o', and we need to detect this. Also, some Intel
3880 # versions had trouble with output in subdirs
3881 am__obj=sub/conftest.${OBJEXT-o}
3882 am__minus_obj="-o $am__obj"
3883 case $depmode in
3884 gcc)
3885 # This depmode causes a compiler race in universal mode.
3886 test "$am__universal" = false || continue
3887 ;;
3888 nosideeffect)
3889 # after this tag, mechanisms are not by side-effect, so they'll
3890 # only be used when explicitly requested
3891 if test "x$enable_dependency_tracking" = xyes; then
3892 continue
3893 else
3894 break
3895 fi
3896 ;;
3897 msvisualcpp | msvcmsys)
3898 # This compiler won't grok `-c -o', but also, the minuso test has
3899 # not run yet. These depmodes are late enough in the game, and
3900 # so weak that their functioning should not be impacted.
3901 am__obj=conftest.${OBJEXT-o}
3902 am__minus_obj=
3903 ;;
3904 none) break ;;
3905 esac
3906 if depmode=$depmode \
3907 source=sub/conftest.c object=$am__obj \
3908 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3909 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3910 >/dev/null 2>conftest.err &&
3911 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3912 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3913 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3914 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3915 # icc doesn't choke on unknown options, it will just issue warnings
3916 # or remarks (even with -Werror). So we grep stderr for any message
3917 # that says an option was ignored or not supported.
3918 # When given -MP, icc 7.0 and 7.1 complain thusly:
3919 # icc: Command line warning: ignoring option '-M'; no argument required
3920 # The diagnosis changed in icc 8.0:
3921 # icc: Command line remark: option '-MP' not supported
3922 if (grep 'ignoring option' conftest.err ||
3923 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3924 am_cv_CC_dependencies_compiler_type=$depmode
3925 break
3926 fi
3927 fi
3928 done
3929
3930 cd ..
3931 rm -rf conftest.dir
3932 else
3933 am_cv_CC_dependencies_compiler_type=none
3934 fi
3935
3936 fi
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3938 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3939 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3940
3941 if
3942 test "x$enable_dependency_tracking" != xno \
3943 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3944 am__fastdepCC_TRUE=
3945 am__fastdepCC_FALSE='#'
3946 else
3947 am__fastdepCC_TRUE='#'
3948 am__fastdepCC_FALSE=
3949 fi
3950
3951
3952
3953 ac_ext=c
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3959 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3960 # On Suns, sometimes $CPP names a directory.
3961 if test -n "$CPP" && test -d "$CPP"; then
3962 CPP=
3963 fi
3964 if test -z "$CPP"; then
3965 if ${ac_cv_prog_CPP+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 # Double quotes because CPP needs to be expanded
3969 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3970 do
3971 ac_preproc_ok=false
3972 for ac_c_preproc_warn_flag in '' yes
3973 do
3974 # Use a header file that comes with gcc, so configuring glibc
3975 # with a fresh cross-compiler works.
3976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3977 # <limits.h> exists even on freestanding compilers.
3978 # On the NeXT, cc -E runs the code through the compiler's parser,
3979 # not just through cpp. "Syntax error" is here to catch this case.
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3982 #ifdef __STDC__
3983 # include <limits.h>
3984 #else
3985 # include <assert.h>
3986 #endif
3987 Syntax error
3988 _ACEOF
3989 if ac_fn_c_try_cpp "$LINENO"; then :
3990
3991 else
3992 # Broken: fails on valid input.
3993 continue
3994 fi
3995 rm -f conftest.err conftest.i conftest.$ac_ext
3996
3997 # OK, works on sane cases. Now check whether nonexistent headers
3998 # can be detected and how.
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001 #include <ac_nonexistent.h>
4002 _ACEOF
4003 if ac_fn_c_try_cpp "$LINENO"; then :
4004 # Broken: success on invalid input.
4005 continue
4006 else
4007 # Passes both tests.
4008 ac_preproc_ok=:
4009 break
4010 fi
4011 rm -f conftest.err conftest.i conftest.$ac_ext
4012
4013 done
4014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4015 rm -f conftest.i conftest.err conftest.$ac_ext
4016 if $ac_preproc_ok; then :
4017 break
4018 fi
4019
4020 done
4021 ac_cv_prog_CPP=$CPP
4022
4023 fi
4024 CPP=$ac_cv_prog_CPP
4025 else
4026 ac_cv_prog_CPP=$CPP
4027 fi
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4029 $as_echo "$CPP" >&6; }
4030 ac_preproc_ok=false
4031 for ac_c_preproc_warn_flag in '' yes
4032 do
4033 # Use a header file that comes with gcc, so configuring glibc
4034 # with a fresh cross-compiler works.
4035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4036 # <limits.h> exists even on freestanding compilers.
4037 # On the NeXT, cc -E runs the code through the compiler's parser,
4038 # not just through cpp. "Syntax error" is here to catch this case.
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041 #ifdef __STDC__
4042 # include <limits.h>
4043 #else
4044 # include <assert.h>
4045 #endif
4046 Syntax error
4047 _ACEOF
4048 if ac_fn_c_try_cpp "$LINENO"; then :
4049
4050 else
4051 # Broken: fails on valid input.
4052 continue
4053 fi
4054 rm -f conftest.err conftest.i conftest.$ac_ext
4055
4056 # OK, works on sane cases. Now check whether nonexistent headers
4057 # can be detected and how.
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060 #include <ac_nonexistent.h>
4061 _ACEOF
4062 if ac_fn_c_try_cpp "$LINENO"; then :
4063 # Broken: success on invalid input.
4064 continue
4065 else
4066 # Passes both tests.
4067 ac_preproc_ok=:
4068 break
4069 fi
4070 rm -f conftest.err conftest.i conftest.$ac_ext
4071
4072 done
4073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4074 rm -f conftest.i conftest.err conftest.$ac_ext
4075 if $ac_preproc_ok; then :
4076
4077 else
4078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4080 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4081 See \`config.log' for more details" "$LINENO" 5; }
4082 fi
4083
4084 ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089
4090
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4092 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4093 if ${ac_cv_path_GREP+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 if test -z "$GREP"; then
4097 ac_path_GREP_found=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4101 do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_prog in grep ggrep; do
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4107 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4108 # Check for GNU ac_path_GREP and select it if it is found.
4109 # Check for GNU $ac_path_GREP
4110 case `"$ac_path_GREP" --version 2>&1` in
4111 *GNU*)
4112 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4113 *)
4114 ac_count=0
4115 $as_echo_n 0123456789 >"conftest.in"
4116 while :
4117 do
4118 cat "conftest.in" "conftest.in" >"conftest.tmp"
4119 mv "conftest.tmp" "conftest.in"
4120 cp "conftest.in" "conftest.nl"
4121 $as_echo 'GREP' >> "conftest.nl"
4122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124 as_fn_arith $ac_count + 1 && ac_count=$as_val
4125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126 # Best one so far, save it but keep looking for a better one
4127 ac_cv_path_GREP="$ac_path_GREP"
4128 ac_path_GREP_max=$ac_count
4129 fi
4130 # 10*(2^10) chars as input seems more than enough
4131 test $ac_count -gt 10 && break
4132 done
4133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134 esac
4135
4136 $ac_path_GREP_found && break 3
4137 done
4138 done
4139 done
4140 IFS=$as_save_IFS
4141 if test -z "$ac_cv_path_GREP"; then
4142 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4143 fi
4144 else
4145 ac_cv_path_GREP=$GREP
4146 fi
4147
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4150 $as_echo "$ac_cv_path_GREP" >&6; }
4151 GREP="$ac_cv_path_GREP"
4152
4153
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4155 $as_echo_n "checking for egrep... " >&6; }
4156 if ${ac_cv_path_EGREP+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4160 then ac_cv_path_EGREP="$GREP -E"
4161 else
4162 if test -z "$EGREP"; then
4163 ac_path_EGREP_found=false
4164 # Loop through the user's path and test for each of PROGNAME-LIST
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4167 do
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_prog in egrep; do
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4173 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4174 # Check for GNU ac_path_EGREP and select it if it is found.
4175 # Check for GNU $ac_path_EGREP
4176 case `"$ac_path_EGREP" --version 2>&1` in
4177 *GNU*)
4178 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4179 *)
4180 ac_count=0
4181 $as_echo_n 0123456789 >"conftest.in"
4182 while :
4183 do
4184 cat "conftest.in" "conftest.in" >"conftest.tmp"
4185 mv "conftest.tmp" "conftest.in"
4186 cp "conftest.in" "conftest.nl"
4187 $as_echo 'EGREP' >> "conftest.nl"
4188 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4190 as_fn_arith $ac_count + 1 && ac_count=$as_val
4191 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4192 # Best one so far, save it but keep looking for a better one
4193 ac_cv_path_EGREP="$ac_path_EGREP"
4194 ac_path_EGREP_max=$ac_count
4195 fi
4196 # 10*(2^10) chars as input seems more than enough
4197 test $ac_count -gt 10 && break
4198 done
4199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4200 esac
4201
4202 $ac_path_EGREP_found && break 3
4203 done
4204 done
4205 done
4206 IFS=$as_save_IFS
4207 if test -z "$ac_cv_path_EGREP"; then
4208 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4209 fi
4210 else
4211 ac_cv_path_EGREP=$EGREP
4212 fi
4213
4214 fi
4215 fi
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4217 $as_echo "$ac_cv_path_EGREP" >&6; }
4218 EGREP="$ac_cv_path_EGREP"
4219
4220
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4222 $as_echo_n "checking for ANSI C header files... " >&6; }
4223 if ${ac_cv_header_stdc+:} false; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #include <stdlib.h>
4229 #include <stdarg.h>
4230 #include <string.h>
4231 #include <float.h>
4232
4233 int
4234 main ()
4235 {
4236
4237 ;
4238 return 0;
4239 }
4240 _ACEOF
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_header_stdc=yes
4243 else
4244 ac_cv_header_stdc=no
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247
4248 if test $ac_cv_header_stdc = yes; then
4249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252 #include <string.h>
4253
4254 _ACEOF
4255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4256 $EGREP "memchr" >/dev/null 2>&1; then :
4257
4258 else
4259 ac_cv_header_stdc=no
4260 fi
4261 rm -f conftest*
4262
4263 fi
4264
4265 if test $ac_cv_header_stdc = yes; then
4266 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4269 #include <stdlib.h>
4270
4271 _ACEOF
4272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4273 $EGREP "free" >/dev/null 2>&1; then :
4274
4275 else
4276 ac_cv_header_stdc=no
4277 fi
4278 rm -f conftest*
4279
4280 fi
4281
4282 if test $ac_cv_header_stdc = yes; then
4283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4284 if test "$cross_compiling" = yes; then :
4285 :
4286 else
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289 #include <ctype.h>
4290 #include <stdlib.h>
4291 #if ((' ' & 0x0FF) == 0x020)
4292 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4293 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4294 #else
4295 # define ISLOWER(c) \
4296 (('a' <= (c) && (c) <= 'i') \
4297 || ('j' <= (c) && (c) <= 'r') \
4298 || ('s' <= (c) && (c) <= 'z'))
4299 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4300 #endif
4301
4302 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4303 int
4304 main ()
4305 {
4306 int i;
4307 for (i = 0; i < 256; i++)
4308 if (XOR (islower (i), ISLOWER (i))
4309 || toupper (i) != TOUPPER (i))
4310 return 2;
4311 return 0;
4312 }
4313 _ACEOF
4314 if ac_fn_c_try_run "$LINENO"; then :
4315
4316 else
4317 ac_cv_header_stdc=no
4318 fi
4319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4320 conftest.$ac_objext conftest.beam conftest.$ac_ext
4321 fi
4322
4323 fi
4324 fi
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4326 $as_echo "$ac_cv_header_stdc" >&6; }
4327 if test $ac_cv_header_stdc = yes; then
4328
4329 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4330
4331 fi
4332
4333 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4334 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4335 inttypes.h stdint.h unistd.h
4336 do :
4337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4338 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4339 "
4340 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4341 cat >>confdefs.h <<_ACEOF
4342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4343 _ACEOF
4344
4345 fi
4346
4347 done
4348
4349
4350
4351 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4352 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4353 MINIX=yes
4354 else
4355 MINIX=
4356 fi
4357
4358
4359 if test "$MINIX" = yes; then
4360
4361 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4362
4363
4364 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4365
4366
4367 $as_echo "#define _MINIX 1" >>confdefs.h
4368
4369 fi
4370
4371
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4373 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4374 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4379
4380 # define __EXTENSIONS__ 1
4381 $ac_includes_default
4382 int
4383 main ()
4384 {
4385
4386 ;
4387 return 0;
4388 }
4389 _ACEOF
4390 if ac_fn_c_try_compile "$LINENO"; then :
4391 ac_cv_safe_to_define___extensions__=yes
4392 else
4393 ac_cv_safe_to_define___extensions__=no
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4398 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4399 test $ac_cv_safe_to_define___extensions__ = yes &&
4400 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4401
4402 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4403
4404 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4405
4406 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4407
4408 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4409
4410
4411
4412
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4414 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4415 if ${ac_cv_prog_cc_c99+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 ac_cv_prog_cc_c99=no
4419 ac_save_CC=$CC
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4422 #include <stdarg.h>
4423 #include <stdbool.h>
4424 #include <stdlib.h>
4425 #include <wchar.h>
4426 #include <stdio.h>
4427
4428 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4429 #define debug(...) fprintf (stderr, __VA_ARGS__)
4430 #define showlist(...) puts (#__VA_ARGS__)
4431 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4432 static void
4433 test_varargs_macros (void)
4434 {
4435 int x = 1234;
4436 int y = 5678;
4437 debug ("Flag");
4438 debug ("X = %d\n", x);
4439 showlist (The first, second, and third items.);
4440 report (x>y, "x is %d but y is %d", x, y);
4441 }
4442
4443 // Check long long types.
4444 #define BIG64 18446744073709551615ull
4445 #define BIG32 4294967295ul
4446 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4447 #if !BIG_OK
4448 your preprocessor is broken;
4449 #endif
4450 #if BIG_OK
4451 #else
4452 your preprocessor is broken;
4453 #endif
4454 static long long int bignum = -9223372036854775807LL;
4455 static unsigned long long int ubignum = BIG64;
4456
4457 struct incomplete_array
4458 {
4459 int datasize;
4460 double data[];
4461 };
4462
4463 struct named_init {
4464 int number;
4465 const wchar_t *name;
4466 double average;
4467 };
4468
4469 typedef const char *ccp;
4470
4471 static inline int
4472 test_restrict (ccp restrict text)
4473 {
4474 // See if C++-style comments work.
4475 // Iterate through items via the restricted pointer.
4476 // Also check for declarations in for loops.
4477 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4478 continue;
4479 return 0;
4480 }
4481
4482 // Check varargs and va_copy.
4483 static void
4484 test_varargs (const char *format, ...)
4485 {
4486 va_list args;
4487 va_start (args, format);
4488 va_list args_copy;
4489 va_copy (args_copy, args);
4490
4491 const char *str;
4492 int number;
4493 float fnumber;
4494
4495 while (*format)
4496 {
4497 switch (*format++)
4498 {
4499 case 's': // string
4500 str = va_arg (args_copy, const char *);
4501 break;
4502 case 'd': // int
4503 number = va_arg (args_copy, int);
4504 break;
4505 case 'f': // float
4506 fnumber = va_arg (args_copy, double);
4507 break;
4508 default:
4509 break;
4510 }
4511 }
4512 va_end (args_copy);
4513 va_end (args);
4514 }
4515
4516 int
4517 main ()
4518 {
4519
4520 // Check bool.
4521 _Bool success = false;
4522
4523 // Check restrict.
4524 if (test_restrict ("String literal") == 0)
4525 success = true;
4526 char *restrict newvar = "Another string";
4527
4528 // Check varargs.
4529 test_varargs ("s, d' f .", "string", 65, 34.234);
4530 test_varargs_macros ();
4531
4532 // Check flexible array members.
4533 struct incomplete_array *ia =
4534 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4535 ia->datasize = 10;
4536 for (int i = 0; i < ia->datasize; ++i)
4537 ia->data[i] = i * 1.234;
4538
4539 // Check named initializers.
4540 struct named_init ni = {
4541 .number = 34,
4542 .name = L"Test wide string",
4543 .average = 543.34343,
4544 };
4545
4546 ni.number = 58;
4547
4548 int dynamic_array[ni.number];
4549 dynamic_array[ni.number - 1] = 543;
4550
4551 // work around unused variable warnings
4552 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4553 || dynamic_array[ni.number - 1] != 543);
4554
4555 ;
4556 return 0;
4557 }
4558 _ACEOF
4559 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4560 do
4561 CC="$ac_save_CC $ac_arg"
4562 if ac_fn_c_try_compile "$LINENO"; then :
4563 ac_cv_prog_cc_c99=$ac_arg
4564 fi
4565 rm -f core conftest.err conftest.$ac_objext
4566 test "x$ac_cv_prog_cc_c99" != "xno" && break
4567 done
4568 rm -f conftest.$ac_ext
4569 CC=$ac_save_CC
4570
4571 fi
4572 # AC_CACHE_VAL
4573 case "x$ac_cv_prog_cc_c99" in
4574 x)
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4576 $as_echo "none needed" >&6; } ;;
4577 xno)
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4579 $as_echo "unsupported" >&6; } ;;
4580 *)
4581 CC="$CC $ac_cv_prog_cc_c99"
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4583 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4584 esac
4585 if test "x$ac_cv_prog_cc_c99" != xno; then :
4586
4587 fi
4588
4589
4590
4591 if test x"$ac_cv_prog_cc_c99" = "xno"; then
4592 as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
4593 fi
4594
4595
4596
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4598 $as_echo_n "checking for egrep... " >&6; }
4599 if ${ac_cv_path_EGREP+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4603 then ac_cv_path_EGREP="$GREP -E"
4604 else
4605 if test -z "$EGREP"; then
4606 ac_path_EGREP_found=false
4607 # Loop through the user's path and test for each of PROGNAME-LIST
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4610 do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_prog in egrep; do
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4616 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4617 # Check for GNU ac_path_EGREP and select it if it is found.
4618 # Check for GNU $ac_path_EGREP
4619 case `"$ac_path_EGREP" --version 2>&1` in
4620 *GNU*)
4621 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4622 *)
4623 ac_count=0
4624 $as_echo_n 0123456789 >"conftest.in"
4625 while :
4626 do
4627 cat "conftest.in" "conftest.in" >"conftest.tmp"
4628 mv "conftest.tmp" "conftest.in"
4629 cp "conftest.in" "conftest.nl"
4630 $as_echo 'EGREP' >> "conftest.nl"
4631 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4633 as_fn_arith $ac_count + 1 && ac_count=$as_val
4634 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4635 # Best one so far, save it but keep looking for a better one
4636 ac_cv_path_EGREP="$ac_path_EGREP"
4637 ac_path_EGREP_max=$ac_count
4638 fi
4639 # 10*(2^10) chars as input seems more than enough
4640 test $ac_count -gt 10 && break
4641 done
4642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4643 esac
4644
4645 $ac_path_EGREP_found && break 3
4646 done
4647 done
4648 done
4649 IFS=$as_save_IFS
4650 if test -z "$ac_cv_path_EGREP"; then
4651 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4652 fi
4653 else
4654 ac_cv_path_EGREP=$EGREP
4655 fi
4656
4657 fi
4658 fi
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4660 $as_echo "$ac_cv_path_EGREP" >&6; }
4661 EGREP="$ac_cv_path_EGREP"
4662
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4665 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4666 if ${ac_cv_path_SED+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4670 for ac_i in 1 2 3 4 5 6 7; do
4671 ac_script="$ac_script$as_nl$ac_script"
4672 done
4673 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4674 { ac_script=; unset ac_script;}
4675 if test -z "$SED"; then
4676 ac_path_SED_found=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_prog in sed gsed; do
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4686 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4687 # Check for GNU ac_path_SED and select it if it is found.
4688 # Check for GNU $ac_path_SED
4689 case `"$ac_path_SED" --version 2>&1` in
4690 *GNU*)
4691 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4692 *)
4693 ac_count=0
4694 $as_echo_n 0123456789 >"conftest.in"
4695 while :
4696 do
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo '' >> "conftest.nl"
4701 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4703 as_fn_arith $ac_count + 1 && ac_count=$as_val
4704 if test $ac_count -gt ${ac_path_SED_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_SED="$ac_path_SED"
4707 ac_path_SED_max=$ac_count
4708 fi
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
4711 done
4712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4713 esac
4714
4715 $ac_path_SED_found && break 3
4716 done
4717 done
4718 done
4719 IFS=$as_save_IFS
4720 if test -z "$ac_cv_path_SED"; then
4721 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4722 fi
4723 else
4724 ac_cv_path_SED=$SED
4725 fi
4726
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4729 $as_echo "$ac_cv_path_SED" >&6; }
4730 SED="$ac_cv_path_SED"
4731 rm -f conftest.sed
4732
4733
4734 F77=no
4735 CXX=no
4736 GCJ=no
4737
4738 # Check whether --enable-static was given.
4739 if test "${enable_static+set}" = set; then :
4740 enableval=$enable_static; p=${PACKAGE-default}
4741 case $enableval in
4742 yes) enable_static=yes ;;
4743 no) enable_static=no ;;
4744 *)
4745 enable_static=no
4746 # Look at the argument we got. We use all the common list separators.
4747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4748 for pkg in $enableval; do
4749 IFS="$lt_save_ifs"
4750 if test "X$pkg" = "X$p"; then
4751 enable_static=yes
4752 fi
4753 done
4754 IFS="$lt_save_ifs"
4755 ;;
4756 esac
4757 else
4758 enable_static=no
4759 fi
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769 # Check whether --enable-shared was given.
4770 if test "${enable_shared+set}" = set; then :
4771 enableval=$enable_shared; p=${PACKAGE-default}
4772 case $enableval in
4773 yes) enable_shared=yes ;;
4774 no) enable_shared=no ;;
4775 *)
4776 enable_shared=no
4777 # Look at the argument we got. We use all the common list separators.
4778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4779 for pkg in $enableval; do
4780 IFS="$lt_save_ifs"
4781 if test "X$pkg" = "X$p"; then
4782 enable_shared=yes
4783 fi
4784 done
4785 IFS="$lt_save_ifs"
4786 ;;
4787 esac
4788 else
4789 enable_shared=yes
4790 fi
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4802 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4803 # Check whether --enable-maintainer-mode was given.
4804 if test "${enable_maintainer_mode+set}" = set; then :
4805 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4806 else
4807 USE_MAINTAINER_MODE=no
4808 fi
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4811 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4812 if test $USE_MAINTAINER_MODE = yes; then
4813 MAINTAINER_MODE_TRUE=
4814 MAINTAINER_MODE_FALSE='#'
4815 else
4816 MAINTAINER_MODE_TRUE='#'
4817 MAINTAINER_MODE_FALSE=
4818 fi
4819
4820 MAINT=$MAINTAINER_MODE_TRUE
4821
4822
4823
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4825 $as_echo_n "checking for library containing strerror... " >&6; }
4826 if ${ac_cv_search_strerror+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 ac_func_search_save_LIBS=$LIBS
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832
4833 /* Override any GCC internal prototype to avoid an error.
4834 Use char because int might match the return type of a GCC
4835 builtin and then its argument prototype would still apply. */
4836 #ifdef __cplusplus
4837 extern "C"
4838 #endif
4839 char strerror ();
4840 int
4841 main ()
4842 {
4843 return strerror ();
4844 ;
4845 return 0;
4846 }
4847 _ACEOF
4848 for ac_lib in '' cposix; do
4849 if test -z "$ac_lib"; then
4850 ac_res="none required"
4851 else
4852 ac_res=-l$ac_lib
4853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4854 fi
4855 if ac_fn_c_try_link "$LINENO"; then :
4856 ac_cv_search_strerror=$ac_res
4857 fi
4858 rm -f core conftest.err conftest.$ac_objext \
4859 conftest$ac_exeext
4860 if ${ac_cv_search_strerror+:} false; then :
4861 break
4862 fi
4863 done
4864 if ${ac_cv_search_strerror+:} false; then :
4865
4866 else
4867 ac_cv_search_strerror=no
4868 fi
4869 rm conftest.$ac_ext
4870 LIBS=$ac_func_search_save_LIBS
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4873 $as_echo "$ac_cv_search_strerror" >&6; }
4874 ac_res=$ac_cv_search_strerror
4875 if test "$ac_res" != no; then :
4876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4877
4878 fi
4879
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4881 $as_echo_n "checking for inline... " >&6; }
4882 if ${ac_cv_c_inline+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 ac_cv_c_inline=no
4886 for ac_kw in inline __inline__ __inline; do
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 #ifndef __cplusplus
4890 typedef int foo_t;
4891 static $ac_kw foo_t static_foo () {return 0; }
4892 $ac_kw foo_t foo () {return 0; }
4893 #endif
4894
4895 _ACEOF
4896 if ac_fn_c_try_compile "$LINENO"; then :
4897 ac_cv_c_inline=$ac_kw
4898 fi
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 test "$ac_cv_c_inline" != no && break
4901 done
4902
4903 fi
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4905 $as_echo "$ac_cv_c_inline" >&6; }
4906
4907 case $ac_cv_c_inline in
4908 inline | yes) ;;
4909 *)
4910 case $ac_cv_c_inline in
4911 no) ac_val=;;
4912 *) ac_val=$ac_cv_c_inline;;
4913 esac
4914 cat >>confdefs.h <<_ACEOF
4915 #ifndef __cplusplus
4916 #define inline $ac_val
4917 #endif
4918 _ACEOF
4919 ;;
4920 esac
4921
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4923 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4924 if ${ac_cv_c_const+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929
4930 int
4931 main ()
4932 {
4933 /* FIXME: Include the comments suggested by Paul. */
4934 #ifndef __cplusplus
4935 /* Ultrix mips cc rejects this. */
4936 typedef int charset[2];
4937 const charset cs;
4938 /* SunOS 4.1.1 cc rejects this. */
4939 char const *const *pcpcc;
4940 char **ppc;
4941 /* NEC SVR4.0.2 mips cc rejects this. */
4942 struct point {int x, y;};
4943 static struct point const zero = {0,0};
4944 /* AIX XL C 1.02.0.0 rejects this.
4945 It does not let you subtract one const X* pointer from another in
4946 an arm of an if-expression whose if-part is not a constant
4947 expression */
4948 const char *g = "string";
4949 pcpcc = &g + (g ? g-g : 0);
4950 /* HPUX 7.0 cc rejects these. */
4951 ++pcpcc;
4952 ppc = (char**) pcpcc;
4953 pcpcc = (char const *const *) ppc;
4954 { /* SCO 3.2v4 cc rejects this. */
4955 char *t;
4956 char const *s = 0 ? (char *) 0 : (char const *) 0;
4957
4958 *t++ = 0;
4959 if (s) return 0;
4960 }
4961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4962 int x[] = {25, 17};
4963 const int *foo = &x[0];
4964 ++foo;
4965 }
4966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4967 typedef const int *iptr;
4968 iptr p = 0;
4969 ++p;
4970 }
4971 { /* AIX XL C 1.02.0.0 rejects this saying
4972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4973 struct s { int j; const int *ap[3]; };
4974 struct s *b; b->j = 5;
4975 }
4976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4977 const int foo = 10;
4978 if (!foo) return 0;
4979 }
4980 return !cs[0] && !zero.x;
4981 #endif
4982
4983 ;
4984 return 0;
4985 }
4986 _ACEOF
4987 if ac_fn_c_try_compile "$LINENO"; then :
4988 ac_cv_c_const=yes
4989 else
4990 ac_cv_c_const=no
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 fi
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4995 $as_echo "$ac_cv_c_const" >&6; }
4996 if test $ac_cv_c_const = no; then
4997
4998 $as_echo "#define const /**/" >>confdefs.h
4999
5000 fi
5001
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5003 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5004 set x ${MAKE-make}
5005 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5006 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 cat >conftest.make <<\_ACEOF
5010 SHELL = /bin/sh
5011 all:
5012 @echo '@@@%%%=$(MAKE)=@@@%%%'
5013 _ACEOF
5014 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5015 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5016 *@@@%%%=?*=@@@%%%*)
5017 eval ac_cv_prog_make_${ac_make}_set=yes;;
5018 *)
5019 eval ac_cv_prog_make_${ac_make}_set=no;;
5020 esac
5021 rm -f conftest.make
5022 fi
5023 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5025 $as_echo "yes" >&6; }
5026 SET_MAKE=
5027 else
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5030 SET_MAKE="MAKE=${MAKE-make}"
5031 fi
5032
5033
5034 # Extract the first word of "automake", so it can be a program name with args.
5035 set dummy automake; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if ${ac_cv_path_AUTOMAKE+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 case $AUTOMAKE in
5042 [\\/]* | ?:[\\/]*)
5043 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
5044 ;;
5045 *)
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5056 fi
5057 done
5058 done
5059 IFS=$as_save_IFS
5060
5061 ;;
5062 esac
5063 fi
5064 AUTOMAKE=$ac_cv_path_AUTOMAKE
5065 if test -n "$AUTOMAKE"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
5067 $as_echo "$AUTOMAKE" >&6; }
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5071 fi
5072
5073
5074 # Extract the first word of "aclocal", so it can be a program name with args.
5075 set dummy aclocal; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_path_ACLOCAL+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 case $ACLOCAL in
5082 [\\/]* | ?:[\\/]*)
5083 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
5084 ;;
5085 *)
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5096 fi
5097 done
5098 done
5099 IFS=$as_save_IFS
5100
5101 ;;
5102 esac
5103 fi
5104 ACLOCAL=$ac_cv_path_ACLOCAL
5105 if test -n "$ACLOCAL"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
5107 $as_echo "$ACLOCAL" >&6; }
5108 else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5111 fi
5112
5113
5114 # Extract the first word of "autoheader", so it can be a program name with args.
5115 set dummy autoheader; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if ${ac_cv_path_AUTOHEADER+:} false; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 case $AUTOHEADER in
5122 [\\/]* | ?:[\\/]*)
5123 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
5124 ;;
5125 *)
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5128 do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5136 fi
5137 done
5138 done
5139 IFS=$as_save_IFS
5140
5141 ;;
5142 esac
5143 fi
5144 AUTOHEADER=$ac_cv_path_AUTOHEADER
5145 if test -n "$AUTOHEADER"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
5147 $as_echo "$AUTOHEADER" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153
5154 # Extract the first word of "as", so it can be a program name with args.
5155 set dummy as; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_path_AS+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 case $AS in
5162 [\\/]* | ?:[\\/]*)
5163 ac_cv_path_AS="$AS" # Let the user override the test with a path.
5164 ;;
5165 *)
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5176 fi
5177 done
5178 done
5179 IFS=$as_save_IFS
5180
5181 ;;
5182 esac
5183 fi
5184 AS=$ac_cv_path_AS
5185 if test -n "$AS"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5187 $as_echo "$AS" >&6; }
5188 else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5191 fi
5192
5193
5194 # Extract the first word of "rm", so it can be a program name with args.
5195 set dummy rm; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_path_RM+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 case $RM in
5202 [\\/]* | ?:[\\/]*)
5203 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5204 ;;
5205 *)
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5216 fi
5217 done
5218 done
5219 IFS=$as_save_IFS
5220
5221 ;;
5222 esac
5223 fi
5224 RM=$ac_cv_path_RM
5225 if test -n "$RM"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5227 $as_echo "$RM" >&6; }
5228 else
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5231 fi
5232
5233
5234 # Extract the first word of "cp", so it can be a program name with args.
5235 set dummy cp; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_path_CP+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 case $CP in
5242 [\\/]* | ?:[\\/]*)
5243 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5244 ;;
5245 *)
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5256 fi
5257 done
5258 done
5259 IFS=$as_save_IFS
5260
5261 ;;
5262 esac
5263 fi
5264 CP=$ac_cv_path_CP
5265 if test -n "$CP"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5267 $as_echo "$CP" >&6; }
5268 else
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5271 fi
5272
5273
5274 # Extract the first word of "mv", so it can be a program name with args.
5275 set dummy mv; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if ${ac_cv_path_MV+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 case $MV in
5282 [\\/]* | ?:[\\/]*)
5283 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5284 ;;
5285 *)
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5288 do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5296 fi
5297 done
5298 done
5299 IFS=$as_save_IFS
5300
5301 ;;
5302 esac
5303 fi
5304 MV=$ac_cv_path_MV
5305 if test -n "$MV"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5307 $as_echo "$MV" >&6; }
5308 else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5311 fi
5312
5313
5314 # Extract the first word of "ln", so it can be a program name with args.
5315 set dummy ln; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if ${ac_cv_path_LN+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 case $LN in
5322 [\\/]* | ?:[\\/]*)
5323 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5324 ;;
5325 *)
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5328 do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5336 fi
5337 done
5338 done
5339 IFS=$as_save_IFS
5340
5341 ;;
5342 esac
5343 fi
5344 LN=$ac_cv_path_LN
5345 if test -n "$LN"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
5347 $as_echo "$LN" >&6; }
5348 else
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5351 fi
5352
5353
5354 # Extract the first word of "touch", so it can be a program name with args.
5355 set dummy touch; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if ${ac_cv_path_TOUCH+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 case $TOUCH in
5362 [\\/]* | ?:[\\/]*)
5363 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5364 ;;
5365 *)
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377 done
5378 done
5379 IFS=$as_save_IFS
5380
5381 ;;
5382 esac
5383 fi
5384 TOUCH=$ac_cv_path_TOUCH
5385 if test -n "$TOUCH"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5387 $as_echo "$TOUCH" >&6; }
5388 else
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393
5394 ac_ext=c
5395 ac_cpp='$CPP $CPPFLAGS'
5396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5399
5400
5401 case `pwd` in
5402 *\ * | *\ *)
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5404 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5405 esac
5406
5407
5408
5409 macro_version='2.2.6b'
5410 macro_revision='1.3017'
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424 ltmain="$ac_aux_dir/ltmain.sh"
5425
5426 # Make sure we can run config.sub.
5427 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5428 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5429
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5431 $as_echo_n "checking build system type... " >&6; }
5432 if ${ac_cv_build+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 ac_build_alias=$build_alias
5436 test "x$ac_build_alias" = x &&
5437 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5438 test "x$ac_build_alias" = x &&
5439 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5440 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5442
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5445 $as_echo "$ac_cv_build" >&6; }
5446 case $ac_cv_build in
5447 *-*-*) ;;
5448 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5449 esac
5450 build=$ac_cv_build
5451 ac_save_IFS=$IFS; IFS='-'
5452 set x $ac_cv_build
5453 shift
5454 build_cpu=$1
5455 build_vendor=$2
5456 shift; shift
5457 # Remember, the first character of IFS is used to create $*,
5458 # except with old shells:
5459 build_os=$*
5460 IFS=$ac_save_IFS
5461 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5462
5463
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5465 $as_echo_n "checking host system type... " >&6; }
5466 if ${ac_cv_host+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if test "x$host_alias" = x; then
5470 ac_cv_host=$ac_cv_build
5471 else
5472 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5474 fi
5475
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5478 $as_echo "$ac_cv_host" >&6; }
5479 case $ac_cv_host in
5480 *-*-*) ;;
5481 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5482 esac
5483 host=$ac_cv_host
5484 ac_save_IFS=$IFS; IFS='-'
5485 set x $ac_cv_host
5486 shift
5487 host_cpu=$1
5488 host_vendor=$2
5489 shift; shift
5490 # Remember, the first character of IFS is used to create $*,
5491 # except with old shells:
5492 host_os=$*
5493 IFS=$ac_save_IFS
5494 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5495
5496
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5498 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5499 if ${ac_cv_path_SED+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5503 for ac_i in 1 2 3 4 5 6 7; do
5504 ac_script="$ac_script$as_nl$ac_script"
5505 done
5506 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5507 { ac_script=; unset ac_script;}
5508 if test -z "$SED"; then
5509 ac_path_SED_found=false
5510 # Loop through the user's path and test for each of PROGNAME-LIST
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5513 do
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_prog in sed gsed; do
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5519 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5520 # Check for GNU ac_path_SED and select it if it is found.
5521 # Check for GNU $ac_path_SED
5522 case `"$ac_path_SED" --version 2>&1` in
5523 *GNU*)
5524 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5525 *)
5526 ac_count=0
5527 $as_echo_n 0123456789 >"conftest.in"
5528 while :
5529 do
5530 cat "conftest.in" "conftest.in" >"conftest.tmp"
5531 mv "conftest.tmp" "conftest.in"
5532 cp "conftest.in" "conftest.nl"
5533 $as_echo '' >> "conftest.nl"
5534 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5536 as_fn_arith $ac_count + 1 && ac_count=$as_val
5537 if test $ac_count -gt ${ac_path_SED_max-0}; then
5538 # Best one so far, save it but keep looking for a better one
5539 ac_cv_path_SED="$ac_path_SED"
5540 ac_path_SED_max=$ac_count
5541 fi
5542 # 10*(2^10) chars as input seems more than enough
5543 test $ac_count -gt 10 && break
5544 done
5545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5546 esac
5547
5548 $ac_path_SED_found && break 3
5549 done
5550 done
5551 done
5552 IFS=$as_save_IFS
5553 if test -z "$ac_cv_path_SED"; then
5554 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5555 fi
5556 else
5557 ac_cv_path_SED=$SED
5558 fi
5559
5560 fi
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5562 $as_echo "$ac_cv_path_SED" >&6; }
5563 SED="$ac_cv_path_SED"
5564 rm -f conftest.sed
5565
5566 test -z "$SED" && SED=sed
5567 Xsed="$SED -e 1s/^X//"
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5580 $as_echo_n "checking for fgrep... " >&6; }
5581 if ${ac_cv_path_FGREP+:} false; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5584 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5585 then ac_cv_path_FGREP="$GREP -F"
5586 else
5587 if test -z "$FGREP"; then
5588 ac_path_FGREP_found=false
5589 # Loop through the user's path and test for each of PROGNAME-LIST
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5592 do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_prog in fgrep; do
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5598 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5599 # Check for GNU ac_path_FGREP and select it if it is found.
5600 # Check for GNU $ac_path_FGREP
5601 case `"$ac_path_FGREP" --version 2>&1` in
5602 *GNU*)
5603 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5604 *)
5605 ac_count=0
5606 $as_echo_n 0123456789 >"conftest.in"
5607 while :
5608 do
5609 cat "conftest.in" "conftest.in" >"conftest.tmp"
5610 mv "conftest.tmp" "conftest.in"
5611 cp "conftest.in" "conftest.nl"
5612 $as_echo 'FGREP' >> "conftest.nl"
5613 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5615 as_fn_arith $ac_count + 1 && ac_count=$as_val
5616 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5617 # Best one so far, save it but keep looking for a better one
5618 ac_cv_path_FGREP="$ac_path_FGREP"
5619 ac_path_FGREP_max=$ac_count
5620 fi
5621 # 10*(2^10) chars as input seems more than enough
5622 test $ac_count -gt 10 && break
5623 done
5624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5625 esac
5626
5627 $ac_path_FGREP_found && break 3
5628 done
5629 done
5630 done
5631 IFS=$as_save_IFS
5632 if test -z "$ac_cv_path_FGREP"; then
5633 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5634 fi
5635 else
5636 ac_cv_path_FGREP=$FGREP
5637 fi
5638
5639 fi
5640 fi
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5642 $as_echo "$ac_cv_path_FGREP" >&6; }
5643 FGREP="$ac_cv_path_FGREP"
5644
5645
5646 test -z "$GREP" && GREP=grep
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666 # Check whether --with-gnu-ld was given.
5667 if test "${with_gnu_ld+set}" = set; then :
5668 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5669 else
5670 with_gnu_ld=no
5671 fi
5672
5673 ac_prog=ld
5674 if test "$GCC" = yes; then
5675 # Check if gcc -print-prog-name=ld gives a path.
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5677 $as_echo_n "checking for ld used by $CC... " >&6; }
5678 case $host in
5679 *-*-mingw*)
5680 # gcc leaves a trailing carriage return which upsets mingw
5681 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5682 *)
5683 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5684 esac
5685 case $ac_prog in
5686 # Accept absolute paths.
5687 [\\/]* | ?:[\\/]*)
5688 re_direlt='/[^/][^/]*/\.\./'
5689 # Canonicalize the pathname of ld
5690 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5691 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5692 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5693 done
5694 test -z "$LD" && LD="$ac_prog"
5695 ;;
5696 "")
5697 # If it fails, then pretend we aren't using GCC.
5698 ac_prog=ld
5699 ;;
5700 *)
5701 # If it is relative, then search for the first ld in PATH.
5702 with_gnu_ld=unknown
5703 ;;
5704 esac
5705 elif test "$with_gnu_ld" = yes; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5707 $as_echo_n "checking for GNU ld... " >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5710 $as_echo_n "checking for non-GNU ld... " >&6; }
5711 fi
5712 if ${lt_cv_path_LD+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 if test -z "$LD"; then
5716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5717 for ac_dir in $PATH; do
5718 IFS="$lt_save_ifs"
5719 test -z "$ac_dir" && ac_dir=.
5720 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5721 lt_cv_path_LD="$ac_dir/$ac_prog"
5722 # Check to see if the program is GNU ld. I'd rather use --version,
5723 # but apparently some variants of GNU ld only accept -v.
5724 # Break only if it was the GNU/non-GNU ld that we prefer.
5725 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5726 *GNU* | *'with BFD'*)
5727 test "$with_gnu_ld" != no && break
5728 ;;
5729 *)
5730 test "$with_gnu_ld" != yes && break
5731 ;;
5732 esac
5733 fi
5734 done
5735 IFS="$lt_save_ifs"
5736 else
5737 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5738 fi
5739 fi
5740
5741 LD="$lt_cv_path_LD"
5742 if test -n "$LD"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5744 $as_echo "$LD" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5748 fi
5749 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5751 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5752 if ${lt_cv_prog_gnu_ld+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5756 case `$LD -v 2>&1 </dev/null` in
5757 *GNU* | *'with BFD'*)
5758 lt_cv_prog_gnu_ld=yes
5759 ;;
5760 *)
5761 lt_cv_prog_gnu_ld=no
5762 ;;
5763 esac
5764 fi
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5766 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5767 with_gnu_ld=$lt_cv_prog_gnu_ld
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5778 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5779 if ${lt_cv_path_NM+:} false; then :
5780 $as_echo_n "(cached) " >&6
5781 else
5782 if test -n "$NM"; then
5783 # Let the user override the test.
5784 lt_cv_path_NM="$NM"
5785 else
5786 lt_nm_to_check="${ac_tool_prefix}nm"
5787 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5788 lt_nm_to_check="$lt_nm_to_check nm"
5789 fi
5790 for lt_tmp_nm in $lt_nm_to_check; do
5791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5792 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5793 IFS="$lt_save_ifs"
5794 test -z "$ac_dir" && ac_dir=.
5795 tmp_nm="$ac_dir/$lt_tmp_nm"
5796 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5797 # Check to see if the nm accepts a BSD-compat flag.
5798 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5799 # nm: unknown option "B" ignored
5800 # Tru64's nm complains that /dev/null is an invalid object file
5801 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5802 */dev/null* | *'Invalid file or object type'*)
5803 lt_cv_path_NM="$tmp_nm -B"
5804 break
5805 ;;
5806 *)
5807 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5808 */dev/null*)
5809 lt_cv_path_NM="$tmp_nm -p"
5810 break
5811 ;;
5812 *)
5813 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5814 continue # so that we can try to find one that supports BSD flags
5815 ;;
5816 esac
5817 ;;
5818 esac
5819 fi
5820 done
5821 IFS="$lt_save_ifs"
5822 done
5823 : ${lt_cv_path_NM=no}
5824 fi
5825 fi
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5827 $as_echo "$lt_cv_path_NM" >&6; }
5828 if test "$lt_cv_path_NM" != "no"; then
5829 NM="$lt_cv_path_NM"
5830 else
5831 # Didn't find any BSD compatible name lister, look for dumpbin.
5832 if test -n "$ac_tool_prefix"; then
5833 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5834 do
5835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5836 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if ${ac_cv_prog_DUMPBIN+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 if test -n "$DUMPBIN"; then
5843 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5844 else
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5855 fi
5856 done
5857 done
5858 IFS=$as_save_IFS
5859
5860 fi
5861 fi
5862 DUMPBIN=$ac_cv_prog_DUMPBIN
5863 if test -n "$DUMPBIN"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5865 $as_echo "$DUMPBIN" >&6; }
5866 else
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5869 fi
5870
5871
5872 test -n "$DUMPBIN" && break
5873 done
5874 fi
5875 if test -z "$DUMPBIN"; then
5876 ac_ct_DUMPBIN=$DUMPBIN
5877 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5878 do
5879 # Extract the first word of "$ac_prog", so it can be a program name with args.
5880 set dummy $ac_prog; ac_word=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 if test -n "$ac_ct_DUMPBIN"; then
5887 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5899 fi
5900 done
5901 done
5902 IFS=$as_save_IFS
5903
5904 fi
5905 fi
5906 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5907 if test -n "$ac_ct_DUMPBIN"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5909 $as_echo "$ac_ct_DUMPBIN" >&6; }
5910 else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
5913 fi
5914
5915
5916 test -n "$ac_ct_DUMPBIN" && break
5917 done
5918
5919 if test "x$ac_ct_DUMPBIN" = x; then
5920 DUMPBIN=":"
5921 else
5922 case $cross_compiling:$ac_tool_warned in
5923 yes:)
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5926 ac_tool_warned=yes ;;
5927 esac
5928 DUMPBIN=$ac_ct_DUMPBIN
5929 fi
5930 fi
5931
5932
5933 if test "$DUMPBIN" != ":"; then
5934 NM="$DUMPBIN"
5935 fi
5936 fi
5937 test -z "$NM" && NM=nm
5938
5939
5940
5941
5942
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5945 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5946 if ${lt_cv_nm_interface+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 lt_cv_nm_interface="BSD nm"
5950 echo "int some_variable = 0;" > conftest.$ac_ext
5951 (eval echo "\"\$as_me:5951: $ac_compile\"" >&5)
5952 (eval "$ac_compile" 2>conftest.err)
5953 cat conftest.err >&5
5954 (eval echo "\"\$as_me:5954: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5955 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5956 cat conftest.err >&5
5957 (eval echo "\"\$as_me:5957: output\"" >&5)
5958 cat conftest.out >&5
5959 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5960 lt_cv_nm_interface="MS dumpbin"
5961 fi
5962 rm -f conftest*
5963 fi
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5965 $as_echo "$lt_cv_nm_interface" >&6; }
5966
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5968 $as_echo_n "checking whether ln -s works... " >&6; }
5969 LN_S=$as_ln_s
5970 if test "$LN_S" = "ln -s"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5972 $as_echo "yes" >&6; }
5973 else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5975 $as_echo "no, using $LN_S" >&6; }
5976 fi
5977
5978 # find the maximum length of command line arguments
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5980 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5981 if ${lt_cv_sys_max_cmd_len+:} false; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 i=0
5985 teststring="ABCD"
5986
5987 case $build_os in
5988 msdosdjgpp*)
5989 # On DJGPP, this test can blow up pretty badly due to problems in libc
5990 # (any single argument exceeding 2000 bytes causes a buffer overrun
5991 # during glob expansion). Even if it were fixed, the result of this
5992 # check would be larger than it should be.
5993 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5994 ;;
5995
5996 gnu*)
5997 # Under GNU Hurd, this test is not required because there is
5998 # no limit to the length of command line arguments.
5999 # Libtool will interpret -1 as no limit whatsoever
6000 lt_cv_sys_max_cmd_len=-1;
6001 ;;
6002
6003 cygwin* | mingw* | cegcc*)
6004 # On Win9x/ME, this test blows up -- it succeeds, but takes
6005 # about 5 minutes as the teststring grows exponentially.
6006 # Worse, since 9x/ME are not pre-emptively multitasking,
6007 # you end up with a "frozen" computer, even though with patience
6008 # the test eventually succeeds (with a max line length of 256k).
6009 # Instead, let's just punt: use the minimum linelength reported by
6010 # all of the supported platforms: 8192 (on NT/2K/XP).
6011 lt_cv_sys_max_cmd_len=8192;
6012 ;;
6013
6014 amigaos*)
6015 # On AmigaOS with pdksh, this test takes hours, literally.
6016 # So we just punt and use a minimum line length of 8192.
6017 lt_cv_sys_max_cmd_len=8192;
6018 ;;
6019
6020 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6021 # This has been around since 386BSD, at least. Likely further.
6022 if test -x /sbin/sysctl; then
6023 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6024 elif test -x /usr/sbin/sysctl; then
6025 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6026 else
6027 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6028 fi
6029 # And add a safety zone
6030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6032 ;;
6033
6034 interix*)
6035 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6036 lt_cv_sys_max_cmd_len=196608
6037 ;;
6038
6039 osf*)
6040 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6041 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6042 # nice to cause kernel panics so lets avoid the loop below.
6043 # First set a reasonable default.
6044 lt_cv_sys_max_cmd_len=16384
6045 #
6046 if test -x /sbin/sysconfig; then
6047 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6048 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6049 esac
6050 fi
6051 ;;
6052 sco3.2v5*)
6053 lt_cv_sys_max_cmd_len=102400
6054 ;;
6055 sysv5* | sco5v6* | sysv4.2uw2*)
6056 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6057 if test -n "$kargmax"; then
6058 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6059 else
6060 lt_cv_sys_max_cmd_len=32768
6061 fi
6062 ;;
6063 *)
6064 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6065 if test -n "$lt_cv_sys_max_cmd_len"; then
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6068 else
6069 # Make teststring a little bigger before we do anything with it.
6070 # a 1K string should be a reasonable start.
6071 for i in 1 2 3 4 5 6 7 8 ; do
6072 teststring=$teststring$teststring
6073 done
6074 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6075 # If test is not a shell built-in, we'll probably end up computing a
6076 # maximum length that is only half of the actual maximum length, but
6077 # we can't tell.
6078 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6079 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6080 test $i != 17 # 1/2 MB should be enough
6081 do
6082 i=`expr $i + 1`
6083 teststring=$teststring$teststring
6084 done
6085 # Only check the string length outside the loop.
6086 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6087 teststring=
6088 # Add a significant safety factor because C++ compilers can tack on
6089 # massive amounts of additional arguments before passing them to the
6090 # linker. It appears as though 1/2 is a usable value.
6091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6092 fi
6093 ;;
6094 esac
6095
6096 fi
6097
6098 if test -n $lt_cv_sys_max_cmd_len ; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6100 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6101 else
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6103 $as_echo "none" >&6; }
6104 fi
6105 max_cmd_len=$lt_cv_sys_max_cmd_len
6106
6107
6108
6109
6110
6111
6112 : ${CP="cp -f"}
6113 : ${MV="mv -f"}
6114 : ${RM="rm -f"}
6115
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6117 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6118 # Try some XSI features
6119 xsi_shell=no
6120 ( _lt_dummy="a/b/c"
6121 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6122 = c,a/b,, \
6123 && eval 'test $(( 1 + 1 )) -eq 2 \
6124 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6125 && xsi_shell=yes
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6127 $as_echo "$xsi_shell" >&6; }
6128
6129
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6131 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6132 lt_shell_append=no
6133 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6134 >/dev/null 2>&1 \
6135 && lt_shell_append=yes
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6137 $as_echo "$lt_shell_append" >&6; }
6138
6139
6140 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6141 lt_unset=unset
6142 else
6143 lt_unset=false
6144 fi
6145
6146
6147
6148
6149
6150 # test EBCDIC or ASCII
6151 case `echo X|tr X '\101'` in
6152 A) # ASCII based system
6153 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6154 lt_SP2NL='tr \040 \012'
6155 lt_NL2SP='tr \015\012 \040\040'
6156 ;;
6157 *) # EBCDIC based system
6158 lt_SP2NL='tr \100 \n'
6159 lt_NL2SP='tr \r\n \100\100'
6160 ;;
6161 esac
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6172 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6173 if ${lt_cv_ld_reload_flag+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175 else
6176 lt_cv_ld_reload_flag='-r'
6177 fi
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6179 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6180 reload_flag=$lt_cv_ld_reload_flag
6181 case $reload_flag in
6182 "" | " "*) ;;
6183 *) reload_flag=" $reload_flag" ;;
6184 esac
6185 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6186 case $host_os in
6187 darwin*)
6188 if test "$GCC" = yes; then
6189 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6190 else
6191 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6192 fi
6193 ;;
6194 esac
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204 if test -n "$ac_tool_prefix"; then
6205 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6206 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if ${ac_cv_prog_OBJDUMP+:} false; then :
6210 $as_echo_n "(cached) " >&6
6211 else
6212 if test -n "$OBJDUMP"; then
6213 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6214 else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6217 do
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6225 fi
6226 done
6227 done
6228 IFS=$as_save_IFS
6229
6230 fi
6231 fi
6232 OBJDUMP=$ac_cv_prog_OBJDUMP
6233 if test -n "$OBJDUMP"; then
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6235 $as_echo "$OBJDUMP" >&6; }
6236 else
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238 $as_echo "no" >&6; }
6239 fi
6240
6241
6242 fi
6243 if test -z "$ac_cv_prog_OBJDUMP"; then
6244 ac_ct_OBJDUMP=$OBJDUMP
6245 # Extract the first word of "objdump", so it can be a program name with args.
6246 set dummy objdump; ac_word=$2
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 if test -n "$ac_ct_OBJDUMP"; then
6253 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6273 if test -n "$ac_ct_OBJDUMP"; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6275 $as_echo "$ac_ct_OBJDUMP" >&6; }
6276 else
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280
6281 if test "x$ac_ct_OBJDUMP" = x; then
6282 OBJDUMP="false"
6283 else
6284 case $cross_compiling:$ac_tool_warned in
6285 yes:)
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288 ac_tool_warned=yes ;;
6289 esac
6290 OBJDUMP=$ac_ct_OBJDUMP
6291 fi
6292 else
6293 OBJDUMP="$ac_cv_prog_OBJDUMP"
6294 fi
6295
6296 test -z "$OBJDUMP" && OBJDUMP=objdump
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6307 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6308 if ${lt_cv_deplibs_check_method+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 lt_cv_file_magic_cmd='$MAGIC_CMD'
6312 lt_cv_file_magic_test_file=
6313 lt_cv_deplibs_check_method='unknown'
6314 # Need to set the preceding variable on all platforms that support
6315 # interlibrary dependencies.
6316 # 'none' -- dependencies not supported.
6317 # `unknown' -- same as none, but documents that we really don't know.
6318 # 'pass_all' -- all dependencies passed with no checks.
6319 # 'test_compile' -- check by making test program.
6320 # 'file_magic [[regex]]' -- check by looking for files in library path
6321 # which responds to the $file_magic_cmd with a given extended regex.
6322 # If you have `file' or equivalent on your system and you're not sure
6323 # whether `pass_all' will *always* work, you probably want this one.
6324
6325 case $host_os in
6326 aix[4-9]*)
6327 lt_cv_deplibs_check_method=pass_all
6328 ;;
6329
6330 beos*)
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
6333
6334 bsdi[45]*)
6335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6336 lt_cv_file_magic_cmd='/usr/bin/file -L'
6337 lt_cv_file_magic_test_file=/shlib/libc.so
6338 ;;
6339
6340 cygwin*)
6341 # func_win32_libid is a shell function defined in ltmain.sh
6342 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6343 lt_cv_file_magic_cmd='func_win32_libid'
6344 ;;
6345
6346 mingw* | pw32*)
6347 # Base MSYS/MinGW do not provide the 'file' command needed by
6348 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6349 # unless we find 'file', for example because we are cross-compiling.
6350 if ( file / ) >/dev/null 2>&1; then
6351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6352 lt_cv_file_magic_cmd='func_win32_libid'
6353 else
6354 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6355 lt_cv_file_magic_cmd='$OBJDUMP -f'
6356 fi
6357 ;;
6358
6359 cegcc)
6360 # use the weaker test based on 'objdump'. See mingw*.
6361 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6362 lt_cv_file_magic_cmd='$OBJDUMP -f'
6363 ;;
6364
6365 darwin* | rhapsody*)
6366 lt_cv_deplibs_check_method=pass_all
6367 ;;
6368
6369 freebsd* | dragonfly*)
6370 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6371 case $host_cpu in
6372 i*86 )
6373 # Not sure whether the presence of OpenBSD here was a mistake.
6374 # Let's accept both of them until this is cleared up.
6375 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6376 lt_cv_file_magic_cmd=/usr/bin/file
6377 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6378 ;;
6379 esac
6380 else
6381 lt_cv_deplibs_check_method=pass_all
6382 fi
6383 ;;
6384
6385 gnu*)
6386 lt_cv_deplibs_check_method=pass_all
6387 ;;
6388
6389 hpux10.20* | hpux11*)
6390 lt_cv_file_magic_cmd=/usr/bin/file
6391 case $host_cpu in
6392 ia64*)
6393 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6394 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6395 ;;
6396 hppa*64*)
6397 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6398 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6399 ;;
6400 *)
6401 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6402 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6403 ;;
6404 esac
6405 ;;
6406
6407 interix[3-9]*)
6408 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6410 ;;
6411
6412 irix5* | irix6* | nonstopux*)
6413 case $LD in
6414 *-32|*"-32 ") libmagic=32-bit;;
6415 *-n32|*"-n32 ") libmagic=N32;;
6416 *-64|*"-64 ") libmagic=64-bit;;
6417 *) libmagic=never-match;;
6418 esac
6419 lt_cv_deplibs_check_method=pass_all
6420 ;;
6421
6422 # This must be Linux ELF.
6423 linux* | k*bsd*-gnu)
6424 lt_cv_deplibs_check_method=pass_all
6425 ;;
6426
6427 netbsd*)
6428 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6430 else
6431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6432 fi
6433 ;;
6434
6435 newos6*)
6436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6437 lt_cv_file_magic_cmd=/usr/bin/file
6438 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6439 ;;
6440
6441 *nto* | *qnx*)
6442 lt_cv_deplibs_check_method=pass_all
6443 ;;
6444
6445 openbsd*)
6446 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6448 else
6449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6450 fi
6451 ;;
6452
6453 osf3* | osf4* | osf5*)
6454 lt_cv_deplibs_check_method=pass_all
6455 ;;
6456
6457 rdos*)
6458 lt_cv_deplibs_check_method=pass_all
6459 ;;
6460
6461 solaris*)
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
6464
6465 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6466 lt_cv_deplibs_check_method=pass_all
6467 ;;
6468
6469 sysv4 | sysv4.3*)
6470 case $host_vendor in
6471 motorola)
6472 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]'
6473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6474 ;;
6475 ncr)
6476 lt_cv_deplibs_check_method=pass_all
6477 ;;
6478 sequent)
6479 lt_cv_file_magic_cmd='/bin/file'
6480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6481 ;;
6482 sni)
6483 lt_cv_file_magic_cmd='/bin/file'
6484 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6485 lt_cv_file_magic_test_file=/lib/libc.so
6486 ;;
6487 siemens)
6488 lt_cv_deplibs_check_method=pass_all
6489 ;;
6490 pc)
6491 lt_cv_deplibs_check_method=pass_all
6492 ;;
6493 esac
6494 ;;
6495
6496 tpf*)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499 esac
6500
6501 fi
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6503 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6504 file_magic_cmd=$lt_cv_file_magic_cmd
6505 deplibs_check_method=$lt_cv_deplibs_check_method
6506 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519 if test -n "$ac_tool_prefix"; then
6520 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6521 set dummy ${ac_tool_prefix}ar; ac_word=$2
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if ${ac_cv_prog_AR+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 if test -n "$AR"; then
6528 ac_cv_prog_AR="$AR" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537 ac_cv_prog_AR="${ac_tool_prefix}ar"
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6540 fi
6541 done
6542 done
6543 IFS=$as_save_IFS
6544
6545 fi
6546 fi
6547 AR=$ac_cv_prog_AR
6548 if test -n "$AR"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6550 $as_echo "$AR" >&6; }
6551 else
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6554 fi
6555
6556
6557 fi
6558 if test -z "$ac_cv_prog_AR"; then
6559 ac_ct_AR=$AR
6560 # Extract the first word of "ar", so it can be a program name with args.
6561 set dummy ar; ac_word=$2
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563 $as_echo_n "checking for $ac_word... " >&6; }
6564 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6567 if test -n "$ac_ct_AR"; then
6568 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6569 else
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 for as_dir in $PATH
6572 do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6577 ac_cv_prog_ac_ct_AR="ar"
6578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 break 2
6580 fi
6581 done
6582 done
6583 IFS=$as_save_IFS
6584
6585 fi
6586 fi
6587 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6588 if test -n "$ac_ct_AR"; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6590 $as_echo "$ac_ct_AR" >&6; }
6591 else
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593 $as_echo "no" >&6; }
6594 fi
6595
6596 if test "x$ac_ct_AR" = x; then
6597 AR="false"
6598 else
6599 case $cross_compiling:$ac_tool_warned in
6600 yes:)
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6603 ac_tool_warned=yes ;;
6604 esac
6605 AR=$ac_ct_AR
6606 fi
6607 else
6608 AR="$ac_cv_prog_AR"
6609 fi
6610
6611 test -z "$AR" && AR=ar
6612 test -z "$AR_FLAGS" && AR_FLAGS=cru
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}strip; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_STRIP+:} false; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 if test -n "$STRIP"; then
6633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 STRIP=$ac_cv_prog_STRIP
6653 if test -n "$STRIP"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6655 $as_echo "$STRIP" >&6; }
6656 else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6659 fi
6660
6661
6662 fi
6663 if test -z "$ac_cv_prog_STRIP"; then
6664 ac_ct_STRIP=$STRIP
6665 # Extract the first word of "strip", so it can be a program name with args.
6666 set dummy strip; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 if test -n "$ac_ct_STRIP"; then
6673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_STRIP="strip"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690 fi
6691 fi
6692 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6693 if test -n "$ac_ct_STRIP"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6695 $as_echo "$ac_ct_STRIP" >&6; }
6696 else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6699 fi
6700
6701 if test "x$ac_ct_STRIP" = x; then
6702 STRIP=":"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705 yes:)
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710 STRIP=$ac_ct_STRIP
6711 fi
6712 else
6713 STRIP="$ac_cv_prog_STRIP"
6714 fi
6715
6716 test -z "$STRIP" && STRIP=:
6717
6718
6719
6720
6721
6722
6723 if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6725 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_prog_RANLIB+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 if test -n "$RANLIB"; then
6732 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6733 else
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6736 do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745 done
6746 done
6747 IFS=$as_save_IFS
6748
6749 fi
6750 fi
6751 RANLIB=$ac_cv_prog_RANLIB
6752 if test -n "$RANLIB"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6754 $as_echo "$RANLIB" >&6; }
6755 else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6758 fi
6759
6760
6761 fi
6762 if test -z "$ac_cv_prog_RANLIB"; then
6763 ac_ct_RANLIB=$RANLIB
6764 # Extract the first word of "ranlib", so it can be a program name with args.
6765 set dummy ranlib; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 if test -n "$ac_ct_RANLIB"; then
6772 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_ac_ct_RANLIB="ranlib"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6784 fi
6785 done
6786 done
6787 IFS=$as_save_IFS
6788
6789 fi
6790 fi
6791 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6792 if test -n "$ac_ct_RANLIB"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6794 $as_echo "$ac_ct_RANLIB" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6798 fi
6799
6800 if test "x$ac_ct_RANLIB" = x; then
6801 RANLIB=":"
6802 else
6803 case $cross_compiling:$ac_tool_warned in
6804 yes:)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned=yes ;;
6808 esac
6809 RANLIB=$ac_ct_RANLIB
6810 fi
6811 else
6812 RANLIB="$ac_cv_prog_RANLIB"
6813 fi
6814
6815 test -z "$RANLIB" && RANLIB=:
6816
6817
6818
6819
6820
6821
6822 # Determine commands to create old-style static archives.
6823 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6824 old_postinstall_cmds='chmod 644 $oldlib'
6825 old_postuninstall_cmds=
6826
6827 if test -n "$RANLIB"; then
6828 case $host_os in
6829 openbsd*)
6830 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6831 ;;
6832 *)
6833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6834 ;;
6835 esac
6836 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6837 fi
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872 # If no C compiler was specified, use CC.
6873 LTCC=${LTCC-"$CC"}
6874
6875 # If no C compiler flags were specified, use CFLAGS.
6876 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6877
6878 # Allow CC to be a program name with arguments.
6879 compiler=$CC
6880
6881
6882 # Check for command to grab the raw symbol name followed by C symbol from nm.
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6884 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6885 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888
6889 # These are sane defaults that work on at least a few old systems.
6890 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6891
6892 # Character class describing NM global symbol codes.
6893 symcode='[BCDEGRST]'
6894
6895 # Regexp to match symbols that can be accessed directly from C.
6896 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6897
6898 # Define system-specific variables.
6899 case $host_os in
6900 aix*)
6901 symcode='[BCDT]'
6902 ;;
6903 cygwin* | mingw* | pw32* | cegcc*)
6904 symcode='[ABCDGISTW]'
6905 ;;
6906 hpux*)
6907 if test "$host_cpu" = ia64; then
6908 symcode='[ABCDEGRST]'
6909 fi
6910 ;;
6911 irix* | nonstopux*)
6912 symcode='[BCDEGRST]'
6913 ;;
6914 osf*)
6915 symcode='[BCDEGQRST]'
6916 ;;
6917 solaris*)
6918 symcode='[BDRT]'
6919 ;;
6920 sco3.2v5*)
6921 symcode='[DT]'
6922 ;;
6923 sysv4.2uw2*)
6924 symcode='[DT]'
6925 ;;
6926 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6927 symcode='[ABDT]'
6928 ;;
6929 sysv4)
6930 symcode='[DFNSTU]'
6931 ;;
6932 esac
6933
6934 # If we're using GNU nm, then use its standard symbol codes.
6935 case `$NM -V 2>&1` in
6936 *GNU* | *'with BFD'*)
6937 symcode='[ABCDGIRSTW]' ;;
6938 esac
6939
6940 # Transform an extracted symbol line into a proper C declaration.
6941 # Some systems (esp. on ia64) link data and code symbols differently,
6942 # so use this general approach.
6943 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6944
6945 # Transform an extracted symbol line into symbol name and symbol address
6946 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6947 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6948
6949 # Handle CRLF in mingw tool chain
6950 opt_cr=
6951 case $build_os in
6952 mingw*)
6953 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6954 ;;
6955 esac
6956
6957 # Try without a prefix underscore, then with it.
6958 for ac_symprfx in "" "_"; do
6959
6960 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6961 symxfrm="\\1 $ac_symprfx\\2 \\2"
6962
6963 # Write the raw and C identifiers.
6964 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6965 # Fake it for dumpbin and say T for any non-static function
6966 # and D for any global variable.
6967 # Also find C++ and __fastcall symbols from MSVC++,
6968 # which start with @ or ?.
6969 lt_cv_sys_global_symbol_pipe="$AWK '"\
6970 " {last_section=section; section=\$ 3};"\
6971 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6972 " \$ 0!~/External *\|/{next};"\
6973 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6974 " {if(hide[section]) next};"\
6975 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6976 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6977 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6978 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6979 " ' prfx=^$ac_symprfx"
6980 else
6981 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6982 fi
6983
6984 # Check to see that the pipe works correctly.
6985 pipe_works=no
6986
6987 rm -f conftest*
6988 cat > conftest.$ac_ext <<_LT_EOF
6989 #ifdef __cplusplus
6990 extern "C" {
6991 #endif
6992 char nm_test_var;
6993 void nm_test_func(void);
6994 void nm_test_func(void){}
6995 #ifdef __cplusplus
6996 }
6997 #endif
6998 int main(){nm_test_var='a';nm_test_func();return(0);}
6999 _LT_EOF
7000
7001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7002 (eval $ac_compile) 2>&5
7003 ac_status=$?
7004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7005 test $ac_status = 0; }; then
7006 # Now try to grab the symbols.
7007 nlist=conftest.nm
7008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7009 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7010 ac_status=$?
7011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7012 test $ac_status = 0; } && test -s "$nlist"; then
7013 # Try sorting and uniquifying the output.
7014 if sort "$nlist" | uniq > "$nlist"T; then
7015 mv -f "$nlist"T "$nlist"
7016 else
7017 rm -f "$nlist"T
7018 fi
7019
7020 # Make sure that we snagged all the symbols we need.
7021 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7022 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7023 cat <<_LT_EOF > conftest.$ac_ext
7024 #ifdef __cplusplus
7025 extern "C" {
7026 #endif
7027
7028 _LT_EOF
7029 # Now generate the symbol file.
7030 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7031
7032 cat <<_LT_EOF >> conftest.$ac_ext
7033
7034 /* The mapping between symbol names and symbols. */
7035 const struct {
7036 const char *name;
7037 void *address;
7038 }
7039 lt__PROGRAM__LTX_preloaded_symbols[] =
7040 {
7041 { "@PROGRAM@", (void *) 0 },
7042 _LT_EOF
7043 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7044 cat <<\_LT_EOF >> conftest.$ac_ext
7045 {0, (void *) 0}
7046 };
7047
7048 /* This works around a problem in FreeBSD linker */
7049 #ifdef FREEBSD_WORKAROUND
7050 static const void *lt_preloaded_setup() {
7051 return lt__PROGRAM__LTX_preloaded_symbols;
7052 }
7053 #endif
7054
7055 #ifdef __cplusplus
7056 }
7057 #endif
7058 _LT_EOF
7059 # Now try linking the two files.
7060 mv conftest.$ac_objext conftstm.$ac_objext
7061 lt_save_LIBS="$LIBS"
7062 lt_save_CFLAGS="$CFLAGS"
7063 LIBS="conftstm.$ac_objext"
7064 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7066 (eval $ac_link) 2>&5
7067 ac_status=$?
7068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7069 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7070 pipe_works=yes
7071 fi
7072 LIBS="$lt_save_LIBS"
7073 CFLAGS="$lt_save_CFLAGS"
7074 else
7075 echo "cannot find nm_test_func in $nlist" >&5
7076 fi
7077 else
7078 echo "cannot find nm_test_var in $nlist" >&5
7079 fi
7080 else
7081 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7082 fi
7083 else
7084 echo "$progname: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7086 fi
7087 rm -rf conftest* conftst*
7088
7089 # Do not use the global_symbol_pipe unless it works.
7090 if test "$pipe_works" = yes; then
7091 break
7092 else
7093 lt_cv_sys_global_symbol_pipe=
7094 fi
7095 done
7096
7097 fi
7098
7099 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7100 lt_cv_sys_global_symbol_to_cdecl=
7101 fi
7102 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7104 $as_echo "failed" >&6; }
7105 else
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7107 $as_echo "ok" >&6; }
7108 fi
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131 # Check whether --enable-libtool-lock was given.
7132 if test "${enable_libtool_lock+set}" = set; then :
7133 enableval=$enable_libtool_lock;
7134 fi
7135
7136 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7137
7138 # Some flags need to be propagated to the compiler or linker for good
7139 # libtool support.
7140 case $host in
7141 ia64-*-hpux*)
7142 # Find out which ABI we are using.
7143 echo 'int i;' > conftest.$ac_ext
7144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7145 (eval $ac_compile) 2>&5
7146 ac_status=$?
7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148 test $ac_status = 0; }; then
7149 case `/usr/bin/file conftest.$ac_objext` in
7150 *ELF-32*)
7151 HPUX_IA64_MODE="32"
7152 ;;
7153 *ELF-64*)
7154 HPUX_IA64_MODE="64"
7155 ;;
7156 esac
7157 fi
7158 rm -rf conftest*
7159 ;;
7160 *-*-irix6*)
7161 # Find out which ABI we are using.
7162 echo '#line 7162 "configure"' > conftest.$ac_ext
7163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7164 (eval $ac_compile) 2>&5
7165 ac_status=$?
7166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7167 test $ac_status = 0; }; then
7168 if test "$lt_cv_prog_gnu_ld" = yes; then
7169 case `/usr/bin/file conftest.$ac_objext` in
7170 *32-bit*)
7171 LD="${LD-ld} -melf32bsmip"
7172 ;;
7173 *N32*)
7174 LD="${LD-ld} -melf32bmipn32"
7175 ;;
7176 *64-bit*)
7177 LD="${LD-ld} -melf64bmip"
7178 ;;
7179 esac
7180 else
7181 case `/usr/bin/file conftest.$ac_objext` in
7182 *32-bit*)
7183 LD="${LD-ld} -32"
7184 ;;
7185 *N32*)
7186 LD="${LD-ld} -n32"
7187 ;;
7188 *64-bit*)
7189 LD="${LD-ld} -64"
7190 ;;
7191 esac
7192 fi
7193 fi
7194 rm -rf conftest*
7195 ;;
7196
7197 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7198 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7199 # Find out which ABI we are using.
7200 echo 'int i;' > conftest.$ac_ext
7201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7202 (eval $ac_compile) 2>&5
7203 ac_status=$?
7204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7205 test $ac_status = 0; }; then
7206 case `/usr/bin/file conftest.o` in
7207 *32-bit*)
7208 case $host in
7209 x86_64-*kfreebsd*-gnu)
7210 LD="${LD-ld} -m elf_i386_fbsd"
7211 ;;
7212 x86_64-*linux*)
7213 LD="${LD-ld} -m elf_i386"
7214 ;;
7215 ppc64-*linux*|powerpc64-*linux*)
7216 LD="${LD-ld} -m elf32ppclinux"
7217 ;;
7218 s390x-*linux*)
7219 LD="${LD-ld} -m elf_s390"
7220 ;;
7221 sparc64-*linux*)
7222 LD="${LD-ld} -m elf32_sparc"
7223 ;;
7224 esac
7225 ;;
7226 *64-bit*)
7227 case $host in
7228 x86_64-*kfreebsd*-gnu)
7229 LD="${LD-ld} -m elf_x86_64_fbsd"
7230 ;;
7231 x86_64-*linux*)
7232 LD="${LD-ld} -m elf_x86_64"
7233 ;;
7234 ppc*-*linux*|powerpc*-*linux*)
7235 LD="${LD-ld} -m elf64ppc"
7236 ;;
7237 s390*-*linux*|s390*-*tpf*)
7238 LD="${LD-ld} -m elf64_s390"
7239 ;;
7240 sparc*-*linux*)
7241 LD="${LD-ld} -m elf64_sparc"
7242 ;;
7243 esac
7244 ;;
7245 esac
7246 fi
7247 rm -rf conftest*
7248 ;;
7249
7250 *-*-sco3.2v5*)
7251 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7252 SAVE_CFLAGS="$CFLAGS"
7253 CFLAGS="$CFLAGS -belf"
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7255 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7256 if ${lt_cv_cc_needs_belf+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 ac_ext=c
7260 ac_cpp='$CPP $CPPFLAGS'
7261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267
7268 int
7269 main ()
7270 {
7271
7272 ;
7273 return 0;
7274 }
7275 _ACEOF
7276 if ac_fn_c_try_link "$LINENO"; then :
7277 lt_cv_cc_needs_belf=yes
7278 else
7279 lt_cv_cc_needs_belf=no
7280 fi
7281 rm -f core conftest.err conftest.$ac_objext \
7282 conftest$ac_exeext conftest.$ac_ext
7283 ac_ext=c
7284 ac_cpp='$CPP $CPPFLAGS'
7285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7288
7289 fi
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7291 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7292 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7293 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7294 CFLAGS="$SAVE_CFLAGS"
7295 fi
7296 ;;
7297 sparc*-*solaris*)
7298 # Find out which ABI we are using.
7299 echo 'int i;' > conftest.$ac_ext
7300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7301 (eval $ac_compile) 2>&5
7302 ac_status=$?
7303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7304 test $ac_status = 0; }; then
7305 case `/usr/bin/file conftest.o` in
7306 *64-bit*)
7307 case $lt_cv_prog_gnu_ld in
7308 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7309 *)
7310 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7311 LD="${LD-ld} -64"
7312 fi
7313 ;;
7314 esac
7315 ;;
7316 esac
7317 fi
7318 rm -rf conftest*
7319 ;;
7320 esac
7321
7322 need_locks="$enable_libtool_lock"
7323
7324
7325 case $host_os in
7326 rhapsody* | darwin*)
7327 if test -n "$ac_tool_prefix"; then
7328 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7329 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 if test -n "$DSYMUTIL"; then
7336 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7348 fi
7349 done
7350 done
7351 IFS=$as_save_IFS
7352
7353 fi
7354 fi
7355 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7356 if test -n "$DSYMUTIL"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7358 $as_echo "$DSYMUTIL" >&6; }
7359 else
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7362 fi
7363
7364
7365 fi
7366 if test -z "$ac_cv_prog_DSYMUTIL"; then
7367 ac_ct_DSYMUTIL=$DSYMUTIL
7368 # Extract the first word of "dsymutil", so it can be a program name with args.
7369 set dummy dsymutil; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 if test -n "$ac_ct_DSYMUTIL"; then
7376 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7388 fi
7389 done
7390 done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
7395 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7396 if test -n "$ac_ct_DSYMUTIL"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7398 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7399 else
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7402 fi
7403
7404 if test "x$ac_ct_DSYMUTIL" = x; then
7405 DSYMUTIL=":"
7406 else
7407 case $cross_compiling:$ac_tool_warned in
7408 yes:)
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411 ac_tool_warned=yes ;;
7412 esac
7413 DSYMUTIL=$ac_ct_DSYMUTIL
7414 fi
7415 else
7416 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7417 fi
7418
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7421 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_NMEDIT+:} false; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 if test -n "$NMEDIT"; then
7428 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441 done
7442 done
7443 IFS=$as_save_IFS
7444
7445 fi
7446 fi
7447 NMEDIT=$ac_cv_prog_NMEDIT
7448 if test -n "$NMEDIT"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7450 $as_echo "$NMEDIT" >&6; }
7451 else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7454 fi
7455
7456
7457 fi
7458 if test -z "$ac_cv_prog_NMEDIT"; then
7459 ac_ct_NMEDIT=$NMEDIT
7460 # Extract the first word of "nmedit", so it can be a program name with args.
7461 set dummy nmedit; 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_ac_ct_NMEDIT+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 if test -n "$ac_ct_NMEDIT"; then
7468 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7477 ac_cv_prog_ac_ct_NMEDIT="nmedit"
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 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7488 if test -n "$ac_ct_NMEDIT"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7490 $as_echo "$ac_ct_NMEDIT" >&6; }
7491 else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7494 fi
7495
7496 if test "x$ac_ct_NMEDIT" = x; then
7497 NMEDIT=":"
7498 else
7499 case $cross_compiling:$ac_tool_warned in
7500 yes:)
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503 ac_tool_warned=yes ;;
7504 esac
7505 NMEDIT=$ac_ct_NMEDIT
7506 fi
7507 else
7508 NMEDIT="$ac_cv_prog_NMEDIT"
7509 fi
7510
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_LIPO+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 if test -n "$LIPO"; then
7520 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533 done
7534 done
7535 IFS=$as_save_IFS
7536
7537 fi
7538 fi
7539 LIPO=$ac_cv_prog_LIPO
7540 if test -n "$LIPO"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7542 $as_echo "$LIPO" >&6; }
7543 else
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7546 fi
7547
7548
7549 fi
7550 if test -z "$ac_cv_prog_LIPO"; then
7551 ac_ct_LIPO=$LIPO
7552 # Extract the first word of "lipo", so it can be a program name with args.
7553 set dummy lipo; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 if test -n "$ac_ct_LIPO"; then
7560 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7561 else
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7564 do
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_prog_ac_ct_LIPO="lipo"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7572 fi
7573 done
7574 done
7575 IFS=$as_save_IFS
7576
7577 fi
7578 fi
7579 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7580 if test -n "$ac_ct_LIPO"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7582 $as_echo "$ac_ct_LIPO" >&6; }
7583 else
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7586 fi
7587
7588 if test "x$ac_ct_LIPO" = x; then
7589 LIPO=":"
7590 else
7591 case $cross_compiling:$ac_tool_warned in
7592 yes:)
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned=yes ;;
7596 esac
7597 LIPO=$ac_ct_LIPO
7598 fi
7599 else
7600 LIPO="$ac_cv_prog_LIPO"
7601 fi
7602
7603 if test -n "$ac_tool_prefix"; then
7604 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7605 set dummy ${ac_tool_prefix}otool; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if ${ac_cv_prog_OTOOL+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 if test -n "$OTOOL"; then
7612 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7624 fi
7625 done
7626 done
7627 IFS=$as_save_IFS
7628
7629 fi
7630 fi
7631 OTOOL=$ac_cv_prog_OTOOL
7632 if test -n "$OTOOL"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7634 $as_echo "$OTOOL" >&6; }
7635 else
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639
7640
7641 fi
7642 if test -z "$ac_cv_prog_OTOOL"; then
7643 ac_ct_OTOOL=$OTOOL
7644 # Extract the first word of "otool", so it can be a program name with args.
7645 set dummy otool; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7649 $as_echo_n "(cached) " >&6
7650 else
7651 if test -n "$ac_ct_OTOOL"; then
7652 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_prog_ac_ct_OTOOL="otool"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 break 2
7664 fi
7665 done
7666 done
7667 IFS=$as_save_IFS
7668
7669 fi
7670 fi
7671 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7672 if test -n "$ac_ct_OTOOL"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7674 $as_echo "$ac_ct_OTOOL" >&6; }
7675 else
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7678 fi
7679
7680 if test "x$ac_ct_OTOOL" = x; then
7681 OTOOL=":"
7682 else
7683 case $cross_compiling:$ac_tool_warned in
7684 yes:)
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687 ac_tool_warned=yes ;;
7688 esac
7689 OTOOL=$ac_ct_OTOOL
7690 fi
7691 else
7692 OTOOL="$ac_cv_prog_OTOOL"
7693 fi
7694
7695 if test -n "$ac_tool_prefix"; then
7696 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7697 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if ${ac_cv_prog_OTOOL64+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 if test -n "$OTOOL64"; then
7704 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7716 fi
7717 done
7718 done
7719 IFS=$as_save_IFS
7720
7721 fi
7722 fi
7723 OTOOL64=$ac_cv_prog_OTOOL64
7724 if test -n "$OTOOL64"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7726 $as_echo "$OTOOL64" >&6; }
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731
7732
7733 fi
7734 if test -z "$ac_cv_prog_OTOOL64"; then
7735 ac_ct_OTOOL64=$OTOOL64
7736 # Extract the first word of "otool64", so it can be a program name with args.
7737 set dummy otool64; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7741 $as_echo_n "(cached) " >&6
7742 else
7743 if test -n "$ac_ct_OTOOL64"; then
7744 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7745 else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7748 do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7753 ac_cv_prog_ac_ct_OTOOL64="otool64"
7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 break 2
7756 fi
7757 done
7758 done
7759 IFS=$as_save_IFS
7760
7761 fi
7762 fi
7763 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7764 if test -n "$ac_ct_OTOOL64"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7766 $as_echo "$ac_ct_OTOOL64" >&6; }
7767 else
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7770 fi
7771
7772 if test "x$ac_ct_OTOOL64" = x; then
7773 OTOOL64=":"
7774 else
7775 case $cross_compiling:$ac_tool_warned in
7776 yes:)
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7779 ac_tool_warned=yes ;;
7780 esac
7781 OTOOL64=$ac_ct_OTOOL64
7782 fi
7783 else
7784 OTOOL64="$ac_cv_prog_OTOOL64"
7785 fi
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7814 $as_echo_n "checking for -single_module linker flag... " >&6; }
7815 if ${lt_cv_apple_cc_single_mod+:} false; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 lt_cv_apple_cc_single_mod=no
7819 if test -z "${LT_MULTI_MODULE}"; then
7820 # By default we will add the -single_module flag. You can override
7821 # by either setting the environment variable LT_MULTI_MODULE
7822 # non-empty at configure time, or by adding -multi_module to the
7823 # link flags.
7824 rm -rf libconftest.dylib*
7825 echo "int foo(void){return 1;}" > conftest.c
7826 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7827 -dynamiclib -Wl,-single_module conftest.c" >&5
7828 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7829 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7830 _lt_result=$?
7831 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7832 lt_cv_apple_cc_single_mod=yes
7833 else
7834 cat conftest.err >&5
7835 fi
7836 rm -rf libconftest.dylib*
7837 rm -f conftest.*
7838 fi
7839 fi
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7841 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7843 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7844 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 lt_cv_ld_exported_symbols_list=no
7848 save_LDFLAGS=$LDFLAGS
7849 echo "_main" > conftest.sym
7850 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853
7854 int
7855 main ()
7856 {
7857
7858 ;
7859 return 0;
7860 }
7861 _ACEOF
7862 if ac_fn_c_try_link "$LINENO"; then :
7863 lt_cv_ld_exported_symbols_list=yes
7864 else
7865 lt_cv_ld_exported_symbols_list=no
7866 fi
7867 rm -f core conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869 LDFLAGS="$save_LDFLAGS"
7870
7871 fi
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7873 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7874 case $host_os in
7875 rhapsody* | darwin1.[012])
7876 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7877 darwin1.*)
7878 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7879 darwin*) # darwin 5.x on
7880 # if running on 10.5 or later, the deployment target defaults
7881 # to the OS version, if on x86, and 10.4, the deployment
7882 # target defaults to 10.4. Don't you love it?
7883 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7884 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7885 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7886 10.[012]*)
7887 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7888 10.*)
7889 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7890 esac
7891 ;;
7892 esac
7893 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7894 _lt_dar_single_mod='$single_module'
7895 fi
7896 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7897 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7898 else
7899 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7900 fi
7901 if test "$DSYMUTIL" != ":"; then
7902 _lt_dsymutil='~$DSYMUTIL $lib || :'
7903 else
7904 _lt_dsymutil=
7905 fi
7906 ;;
7907 esac
7908
7909 for ac_header in dlfcn.h
7910 do :
7911 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7912 "
7913 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7914 cat >>confdefs.h <<_ACEOF
7915 #define HAVE_DLFCN_H 1
7916 _ACEOF
7917
7918 fi
7919
7920 done
7921
7922
7923
7924 # Set options
7925
7926
7927
7928 enable_dlopen=no
7929
7930
7931 enable_win32_dll=no
7932
7933
7934
7935
7936
7937 # Check whether --with-pic was given.
7938 if test "${with_pic+set}" = set; then :
7939 withval=$with_pic; pic_mode="$withval"
7940 else
7941 pic_mode=default
7942 fi
7943
7944
7945 test -z "$pic_mode" && pic_mode=default
7946
7947
7948
7949
7950
7951
7952
7953 # Check whether --enable-fast-install was given.
7954 if test "${enable_fast_install+set}" = set; then :
7955 enableval=$enable_fast_install; p=${PACKAGE-default}
7956 case $enableval in
7957 yes) enable_fast_install=yes ;;
7958 no) enable_fast_install=no ;;
7959 *)
7960 enable_fast_install=no
7961 # Look at the argument we got. We use all the common list separators.
7962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7963 for pkg in $enableval; do
7964 IFS="$lt_save_ifs"
7965 if test "X$pkg" = "X$p"; then
7966 enable_fast_install=yes
7967 fi
7968 done
7969 IFS="$lt_save_ifs"
7970 ;;
7971 esac
7972 else
7973 enable_fast_install=yes
7974 fi
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986 # This can be used to rebuild libtool when needed
7987 LIBTOOL_DEPS="$ltmain"
7988
7989 # Always use our own libtool.
7990 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016 test -z "$LN_S" && LN_S="ln -s"
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031 if test -n "${ZSH_VERSION+set}" ; then
8032 setopt NO_GLOB_SUBST
8033 fi
8034
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8036 $as_echo_n "checking for objdir... " >&6; }
8037 if ${lt_cv_objdir+:} false; then :
8038 $as_echo_n "(cached) " >&6
8039 else
8040 rm -f .libs 2>/dev/null
8041 mkdir .libs 2>/dev/null
8042 if test -d .libs; then
8043 lt_cv_objdir=.libs
8044 else
8045 # MS-DOS does not allow filenames that begin with a dot.
8046 lt_cv_objdir=_libs
8047 fi
8048 rmdir .libs 2>/dev/null
8049 fi
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8051 $as_echo "$lt_cv_objdir" >&6; }
8052 objdir=$lt_cv_objdir
8053
8054
8055
8056
8057
8058 cat >>confdefs.h <<_ACEOF
8059 #define LT_OBJDIR "$lt_cv_objdir/"
8060 _ACEOF
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078 case $host_os in
8079 aix3*)
8080 # AIX sometimes has problems with the GCC collect2 program. For some
8081 # reason, if we set the COLLECT_NAMES environment variable, the problems
8082 # vanish in a puff of smoke.
8083 if test "X${COLLECT_NAMES+set}" != Xset; then
8084 COLLECT_NAMES=
8085 export COLLECT_NAMES
8086 fi
8087 ;;
8088 esac
8089
8090 # Sed substitution that helps us do robust quoting. It backslashifies
8091 # metacharacters that are still active within double-quoted strings.
8092 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8093
8094 # Same as above, but do not quote variable references.
8095 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8096
8097 # Sed substitution to delay expansion of an escaped shell variable in a
8098 # double_quote_subst'ed string.
8099 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8100
8101 # Sed substitution to delay expansion of an escaped single quote.
8102 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8103
8104 # Sed substitution to avoid accidental globbing in evaled expressions
8105 no_glob_subst='s/\*/\\\*/g'
8106
8107 # Global variables:
8108 ofile=libtool
8109 can_build_shared=yes
8110
8111 # All known linkers require a `.a' archive for static linking (except MSVC,
8112 # which needs '.lib').
8113 libext=a
8114
8115 with_gnu_ld="$lt_cv_prog_gnu_ld"
8116
8117 old_CC="$CC"
8118 old_CFLAGS="$CFLAGS"
8119
8120 # Set sane defaults for various variables
8121 test -z "$CC" && CC=cc
8122 test -z "$LTCC" && LTCC=$CC
8123 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8124 test -z "$LD" && LD=ld
8125 test -z "$ac_objext" && ac_objext=o
8126
8127 for cc_temp in $compiler""; do
8128 case $cc_temp in
8129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8131 \-*) ;;
8132 *) break;;
8133 esac
8134 done
8135 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8136
8137
8138 # Only perform the check for file, if the check method requires it
8139 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8140 case $deplibs_check_method in
8141 file_magic*)
8142 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8144 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8145 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 case $MAGIC_CMD in
8149 [\\/*] | ?:[\\/]*)
8150 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8151 ;;
8152 *)
8153 lt_save_MAGIC_CMD="$MAGIC_CMD"
8154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8155 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8156 for ac_dir in $ac_dummy; do
8157 IFS="$lt_save_ifs"
8158 test -z "$ac_dir" && ac_dir=.
8159 if test -f $ac_dir/${ac_tool_prefix}file; then
8160 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8161 if test -n "$file_magic_test_file"; then
8162 case $deplibs_check_method in
8163 "file_magic "*)
8164 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8166 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8167 $EGREP "$file_magic_regex" > /dev/null; then
8168 :
8169 else
8170 cat <<_LT_EOF 1>&2
8171
8172 *** Warning: the command libtool uses to detect shared libraries,
8173 *** $file_magic_cmd, produces output that libtool cannot recognize.
8174 *** The result is that libtool may fail to recognize shared libraries
8175 *** as such. This will affect the creation of libtool libraries that
8176 *** depend on shared libraries, but programs linked with such libtool
8177 *** libraries will work regardless of this problem. Nevertheless, you
8178 *** may want to report the problem to your system manager and/or to
8179 *** bug-libtool@gnu.org
8180
8181 _LT_EOF
8182 fi ;;
8183 esac
8184 fi
8185 break
8186 fi
8187 done
8188 IFS="$lt_save_ifs"
8189 MAGIC_CMD="$lt_save_MAGIC_CMD"
8190 ;;
8191 esac
8192 fi
8193
8194 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8195 if test -n "$MAGIC_CMD"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8197 $as_echo "$MAGIC_CMD" >&6; }
8198 else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8201 fi
8202
8203
8204
8205
8206
8207 if test -z "$lt_cv_path_MAGIC_CMD"; then
8208 if test -n "$ac_tool_prefix"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8210 $as_echo_n "checking for file... " >&6; }
8211 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 case $MAGIC_CMD in
8215 [\\/*] | ?:[\\/]*)
8216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8217 ;;
8218 *)
8219 lt_save_MAGIC_CMD="$MAGIC_CMD"
8220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8222 for ac_dir in $ac_dummy; do
8223 IFS="$lt_save_ifs"
8224 test -z "$ac_dir" && ac_dir=.
8225 if test -f $ac_dir/file; then
8226 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8227 if test -n "$file_magic_test_file"; then
8228 case $deplibs_check_method in
8229 "file_magic "*)
8230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8233 $EGREP "$file_magic_regex" > /dev/null; then
8234 :
8235 else
8236 cat <<_LT_EOF 1>&2
8237
8238 *** Warning: the command libtool uses to detect shared libraries,
8239 *** $file_magic_cmd, produces output that libtool cannot recognize.
8240 *** The result is that libtool may fail to recognize shared libraries
8241 *** as such. This will affect the creation of libtool libraries that
8242 *** depend on shared libraries, but programs linked with such libtool
8243 *** libraries will work regardless of this problem. Nevertheless, you
8244 *** may want to report the problem to your system manager and/or to
8245 *** bug-libtool@gnu.org
8246
8247 _LT_EOF
8248 fi ;;
8249 esac
8250 fi
8251 break
8252 fi
8253 done
8254 IFS="$lt_save_ifs"
8255 MAGIC_CMD="$lt_save_MAGIC_CMD"
8256 ;;
8257 esac
8258 fi
8259
8260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8261 if test -n "$MAGIC_CMD"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8263 $as_echo "$MAGIC_CMD" >&6; }
8264 else
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8267 fi
8268
8269
8270 else
8271 MAGIC_CMD=:
8272 fi
8273 fi
8274
8275 fi
8276 ;;
8277 esac
8278
8279 # Use C for the default configuration in the libtool script
8280
8281 lt_save_CC="$CC"
8282 ac_ext=c
8283 ac_cpp='$CPP $CPPFLAGS'
8284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8287
8288
8289 # Source file extension for C test sources.
8290 ac_ext=c
8291
8292 # Object file extension for compiled C test sources.
8293 objext=o
8294 objext=$objext
8295
8296 # Code to be used in simple compile tests
8297 lt_simple_compile_test_code="int some_variable = 0;"
8298
8299 # Code to be used in simple link tests
8300 lt_simple_link_test_code='int main(){return(0);}'
8301
8302
8303
8304
8305
8306
8307
8308 # If no C compiler was specified, use CC.
8309 LTCC=${LTCC-"$CC"}
8310
8311 # If no C compiler flags were specified, use CFLAGS.
8312 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8313
8314 # Allow CC to be a program name with arguments.
8315 compiler=$CC
8316
8317 # Save the default compiler, since it gets overwritten when the other
8318 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8319 compiler_DEFAULT=$CC
8320
8321 # save warnings/boilerplate of simple test code
8322 ac_outfile=conftest.$ac_objext
8323 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8324 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8325 _lt_compiler_boilerplate=`cat conftest.err`
8326 $RM conftest*
8327
8328 ac_outfile=conftest.$ac_objext
8329 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8330 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8331 _lt_linker_boilerplate=`cat conftest.err`
8332 $RM -r conftest*
8333
8334
8335 if test -n "$compiler"; then
8336
8337 lt_prog_compiler_no_builtin_flag=
8338
8339 if test "$GCC" = yes; then
8340 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8341
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8343 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8344 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 lt_cv_prog_compiler_rtti_exceptions=no
8348 ac_outfile=conftest.$ac_objext
8349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8350 lt_compiler_flag="-fno-rtti -fno-exceptions"
8351 # Insert the option either (1) after the last *FLAGS variable, or
8352 # (2) before a word containing "conftest.", or (3) at the end.
8353 # Note that $ac_compile itself does not contain backslashes and begins
8354 # with a dollar sign (not a hyphen), so the echo should work correctly.
8355 # The option is referenced via a variable to avoid confusing sed.
8356 lt_compile=`echo "$ac_compile" | $SED \
8357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8359 -e 's:$: $lt_compiler_flag:'`
8360 (eval echo "\"\$as_me:8360: $lt_compile\"" >&5)
8361 (eval "$lt_compile" 2>conftest.err)
8362 ac_status=$?
8363 cat conftest.err >&5
8364 echo "$as_me:8364: \$? = $ac_status" >&5
8365 if (exit $ac_status) && test -s "$ac_outfile"; then
8366 # The compiler can only warn and ignore the option if not recognized
8367 # So say no if there are warnings other than the usual output.
8368 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8370 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8371 lt_cv_prog_compiler_rtti_exceptions=yes
8372 fi
8373 fi
8374 $RM conftest*
8375
8376 fi
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8378 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8379
8380 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8381 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8382 else
8383 :
8384 fi
8385
8386 fi
8387
8388
8389
8390
8391
8392
8393 lt_prog_compiler_wl=
8394 lt_prog_compiler_pic=
8395 lt_prog_compiler_static=
8396
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8398 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8399
8400 if test "$GCC" = yes; then
8401 lt_prog_compiler_wl='-Wl,'
8402 lt_prog_compiler_static='-static'
8403
8404 case $host_os in
8405 aix*)
8406 # All AIX code is PIC.
8407 if test "$host_cpu" = ia64; then
8408 # AIX 5 now supports IA64 processor
8409 lt_prog_compiler_static='-Bstatic'
8410 fi
8411 ;;
8412
8413 amigaos*)
8414 case $host_cpu in
8415 powerpc)
8416 # see comment about AmigaOS4 .so support
8417 lt_prog_compiler_pic='-fPIC'
8418 ;;
8419 m68k)
8420 # FIXME: we need at least 68020 code to build shared libraries, but
8421 # adding the `-m68020' flag to GCC prevents building anything better,
8422 # like `-m68040'.
8423 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8424 ;;
8425 esac
8426 ;;
8427
8428 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8429 # PIC is the default for these OSes.
8430 ;;
8431
8432 mingw* | cygwin* | pw32* | os2* | cegcc*)
8433 # This hack is so that the source file can tell whether it is being
8434 # built for inclusion in a dll (and should export symbols for example).
8435 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8436 # (--disable-auto-import) libraries
8437 lt_prog_compiler_pic='-DDLL_EXPORT'
8438 ;;
8439
8440 darwin* | rhapsody*)
8441 # PIC is the default on this platform
8442 # Common symbols not allowed in MH_DYLIB files
8443 lt_prog_compiler_pic='-fno-common'
8444 ;;
8445
8446 hpux*)
8447 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8448 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8449 # sets the default TLS model and affects inlining.
8450 case $host_cpu in
8451 hppa*64*)
8452 # +Z the default
8453 ;;
8454 *)
8455 lt_prog_compiler_pic='-fPIC'
8456 ;;
8457 esac
8458 ;;
8459
8460 interix[3-9]*)
8461 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8462 # Instead, we relocate shared libraries at runtime.
8463 ;;
8464
8465 msdosdjgpp*)
8466 # Just because we use GCC doesn't mean we suddenly get shared libraries
8467 # on systems that don't support them.
8468 lt_prog_compiler_can_build_shared=no
8469 enable_shared=no
8470 ;;
8471
8472 *nto* | *qnx*)
8473 # QNX uses GNU C++, but need to define -shared option too, otherwise
8474 # it will coredump.
8475 lt_prog_compiler_pic='-fPIC -shared'
8476 ;;
8477
8478 sysv4*MP*)
8479 if test -d /usr/nec; then
8480 lt_prog_compiler_pic=-Kconform_pic
8481 fi
8482 ;;
8483
8484 *)
8485 lt_prog_compiler_pic='-fPIC'
8486 ;;
8487 esac
8488 else
8489 # PORTME Check for flag to pass linker flags through the system compiler.
8490 case $host_os in
8491 aix*)
8492 lt_prog_compiler_wl='-Wl,'
8493 if test "$host_cpu" = ia64; then
8494 # AIX 5 now supports IA64 processor
8495 lt_prog_compiler_static='-Bstatic'
8496 else
8497 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8498 fi
8499 ;;
8500
8501 mingw* | cygwin* | pw32* | os2* | cegcc*)
8502 # This hack is so that the source file can tell whether it is being
8503 # built for inclusion in a dll (and should export symbols for example).
8504 lt_prog_compiler_pic='-DDLL_EXPORT'
8505 ;;
8506
8507 hpux9* | hpux10* | hpux11*)
8508 lt_prog_compiler_wl='-Wl,'
8509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8510 # not for PA HP-UX.
8511 case $host_cpu in
8512 hppa*64*|ia64*)
8513 # +Z the default
8514 ;;
8515 *)
8516 lt_prog_compiler_pic='+Z'
8517 ;;
8518 esac
8519 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8520 lt_prog_compiler_static='${wl}-a ${wl}archive'
8521 ;;
8522
8523 irix5* | irix6* | nonstopux*)
8524 lt_prog_compiler_wl='-Wl,'
8525 # PIC (with -KPIC) is the default.
8526 lt_prog_compiler_static='-non_shared'
8527 ;;
8528
8529 linux* | k*bsd*-gnu)
8530 case $cc_basename in
8531 # old Intel for x86_64 which still supported -KPIC.
8532 ecc*)
8533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_pic='-KPIC'
8535 lt_prog_compiler_static='-static'
8536 ;;
8537 # icc used to be incompatible with GCC.
8538 # ICC 10 doesn't accept -KPIC any more.
8539 icc* | ifort*)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-fPIC'
8542 lt_prog_compiler_static='-static'
8543 ;;
8544 # Lahey Fortran 8.1.
8545 lf95*)
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='--shared'
8548 lt_prog_compiler_static='--static'
8549 ;;
8550 pgcc* | pgf77* | pgf90* | pgf95*)
8551 # Portland Group compilers (*not* the Pentium gcc compiler,
8552 # which looks to be a dead project)
8553 lt_prog_compiler_wl='-Wl,'
8554 lt_prog_compiler_pic='-fpic'
8555 lt_prog_compiler_static='-Bstatic'
8556 ;;
8557 ccc*)
8558 lt_prog_compiler_wl='-Wl,'
8559 # All Alpha code is PIC.
8560 lt_prog_compiler_static='-non_shared'
8561 ;;
8562 xl*)
8563 # IBM XL C 8.0/Fortran 10.1 on PPC
8564 lt_prog_compiler_wl='-Wl,'
8565 lt_prog_compiler_pic='-qpic'
8566 lt_prog_compiler_static='-qstaticlink'
8567 ;;
8568 *)
8569 case `$CC -V 2>&1 | sed 5q` in
8570 *Sun\ C*)
8571 # Sun C 5.9
8572 lt_prog_compiler_pic='-KPIC'
8573 lt_prog_compiler_static='-Bstatic'
8574 lt_prog_compiler_wl='-Wl,'
8575 ;;
8576 *Sun\ F*)
8577 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8578 lt_prog_compiler_pic='-KPIC'
8579 lt_prog_compiler_static='-Bstatic'
8580 lt_prog_compiler_wl=''
8581 ;;
8582 esac
8583 ;;
8584 esac
8585 ;;
8586
8587 newsos6)
8588 lt_prog_compiler_pic='-KPIC'
8589 lt_prog_compiler_static='-Bstatic'
8590 ;;
8591
8592 *nto* | *qnx*)
8593 # QNX uses GNU C++, but need to define -shared option too, otherwise
8594 # it will coredump.
8595 lt_prog_compiler_pic='-fPIC -shared'
8596 ;;
8597
8598 osf3* | osf4* | osf5*)
8599 lt_prog_compiler_wl='-Wl,'
8600 # All OSF/1 code is PIC.
8601 lt_prog_compiler_static='-non_shared'
8602 ;;
8603
8604 rdos*)
8605 lt_prog_compiler_static='-non_shared'
8606 ;;
8607
8608 solaris*)
8609 lt_prog_compiler_pic='-KPIC'
8610 lt_prog_compiler_static='-Bstatic'
8611 case $cc_basename in
8612 f77* | f90* | f95*)
8613 lt_prog_compiler_wl='-Qoption ld ';;
8614 *)
8615 lt_prog_compiler_wl='-Wl,';;
8616 esac
8617 ;;
8618
8619 sunos4*)
8620 lt_prog_compiler_wl='-Qoption ld '
8621 lt_prog_compiler_pic='-PIC'
8622 lt_prog_compiler_static='-Bstatic'
8623 ;;
8624
8625 sysv4 | sysv4.2uw2* | sysv4.3*)
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_pic='-KPIC'
8628 lt_prog_compiler_static='-Bstatic'
8629 ;;
8630
8631 sysv4*MP*)
8632 if test -d /usr/nec ;then
8633 lt_prog_compiler_pic='-Kconform_pic'
8634 lt_prog_compiler_static='-Bstatic'
8635 fi
8636 ;;
8637
8638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8639 lt_prog_compiler_wl='-Wl,'
8640 lt_prog_compiler_pic='-KPIC'
8641 lt_prog_compiler_static='-Bstatic'
8642 ;;
8643
8644 unicos*)
8645 lt_prog_compiler_wl='-Wl,'
8646 lt_prog_compiler_can_build_shared=no
8647 ;;
8648
8649 uts4*)
8650 lt_prog_compiler_pic='-pic'
8651 lt_prog_compiler_static='-Bstatic'
8652 ;;
8653
8654 *)
8655 lt_prog_compiler_can_build_shared=no
8656 ;;
8657 esac
8658 fi
8659
8660 case $host_os in
8661 # For platforms which do not support PIC, -DPIC is meaningless:
8662 *djgpp*)
8663 lt_prog_compiler_pic=
8664 ;;
8665 *)
8666 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8667 ;;
8668 esac
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8670 $as_echo "$lt_prog_compiler_pic" >&6; }
8671
8672
8673
8674
8675
8676
8677 #
8678 # Check to make sure the PIC flag actually works.
8679 #
8680 if test -n "$lt_prog_compiler_pic"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8682 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8683 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8684 $as_echo_n "(cached) " >&6
8685 else
8686 lt_cv_prog_compiler_pic_works=no
8687 ac_outfile=conftest.$ac_objext
8688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8689 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8690 # Insert the option either (1) after the last *FLAGS variable, or
8691 # (2) before a word containing "conftest.", or (3) at the end.
8692 # Note that $ac_compile itself does not contain backslashes and begins
8693 # with a dollar sign (not a hyphen), so the echo should work correctly.
8694 # The option is referenced via a variable to avoid confusing sed.
8695 lt_compile=`echo "$ac_compile" | $SED \
8696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8698 -e 's:$: $lt_compiler_flag:'`
8699 (eval echo "\"\$as_me:8699: $lt_compile\"" >&5)
8700 (eval "$lt_compile" 2>conftest.err)
8701 ac_status=$?
8702 cat conftest.err >&5
8703 echo "$as_me:8703: \$? = $ac_status" >&5
8704 if (exit $ac_status) && test -s "$ac_outfile"; then
8705 # The compiler can only warn and ignore the option if not recognized
8706 # So say no if there are warnings other than the usual output.
8707 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8710 lt_cv_prog_compiler_pic_works=yes
8711 fi
8712 fi
8713 $RM conftest*
8714
8715 fi
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8717 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8718
8719 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8720 case $lt_prog_compiler_pic in
8721 "" | " "*) ;;
8722 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8723 esac
8724 else
8725 lt_prog_compiler_pic=
8726 lt_prog_compiler_can_build_shared=no
8727 fi
8728
8729 fi
8730
8731
8732
8733
8734
8735
8736 #
8737 # Check to make sure the static flag actually works.
8738 #
8739 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8741 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8742 if ${lt_cv_prog_compiler_static_works+:} false; then :
8743 $as_echo_n "(cached) " >&6
8744 else
8745 lt_cv_prog_compiler_static_works=no
8746 save_LDFLAGS="$LDFLAGS"
8747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8750 # The linker can only warn and ignore the option if not recognized
8751 # So say no if there are warnings
8752 if test -s conftest.err; then
8753 # Append any errors to the config.log.
8754 cat conftest.err 1>&5
8755 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8757 if diff conftest.exp conftest.er2 >/dev/null; then
8758 lt_cv_prog_compiler_static_works=yes
8759 fi
8760 else
8761 lt_cv_prog_compiler_static_works=yes
8762 fi
8763 fi
8764 $RM -r conftest*
8765 LDFLAGS="$save_LDFLAGS"
8766
8767 fi
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8769 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8770
8771 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8772 :
8773 else
8774 lt_prog_compiler_static=
8775 fi
8776
8777
8778
8779
8780
8781
8782
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8784 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8785 if ${lt_cv_prog_compiler_c_o+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 lt_cv_prog_compiler_c_o=no
8789 $RM -r conftest 2>/dev/null
8790 mkdir conftest
8791 cd conftest
8792 mkdir out
8793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8794
8795 lt_compiler_flag="-o out/conftest2.$ac_objext"
8796 # Insert the option either (1) after the last *FLAGS variable, or
8797 # (2) before a word containing "conftest.", or (3) at the end.
8798 # Note that $ac_compile itself does not contain backslashes and begins
8799 # with a dollar sign (not a hyphen), so the echo should work correctly.
8800 lt_compile=`echo "$ac_compile" | $SED \
8801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8803 -e 's:$: $lt_compiler_flag:'`
8804 (eval echo "\"\$as_me:8804: $lt_compile\"" >&5)
8805 (eval "$lt_compile" 2>out/conftest.err)
8806 ac_status=$?
8807 cat out/conftest.err >&5
8808 echo "$as_me:8808: \$? = $ac_status" >&5
8809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8810 then
8811 # The compiler can only warn and ignore the option if not recognized
8812 # So say no if there are warnings
8813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8816 lt_cv_prog_compiler_c_o=yes
8817 fi
8818 fi
8819 chmod u+w . 2>&5
8820 $RM conftest*
8821 # SGI C++ compiler will create directory out/ii_files/ for
8822 # template instantiation
8823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8824 $RM out/* && rmdir out
8825 cd ..
8826 $RM -r conftest
8827 $RM conftest*
8828
8829 fi
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8831 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8832
8833
8834
8835
8836
8837
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8839 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8840 if ${lt_cv_prog_compiler_c_o+:} false; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 lt_cv_prog_compiler_c_o=no
8844 $RM -r conftest 2>/dev/null
8845 mkdir conftest
8846 cd conftest
8847 mkdir out
8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849
8850 lt_compiler_flag="-o out/conftest2.$ac_objext"
8851 # Insert the option either (1) after the last *FLAGS variable, or
8852 # (2) before a word containing "conftest.", or (3) at the end.
8853 # Note that $ac_compile itself does not contain backslashes and begins
8854 # with a dollar sign (not a hyphen), so the echo should work correctly.
8855 lt_compile=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
8859 (eval echo "\"\$as_me:8859: $lt_compile\"" >&5)
8860 (eval "$lt_compile" 2>out/conftest.err)
8861 ac_status=$?
8862 cat out/conftest.err >&5
8863 echo "$as_me:8863: \$? = $ac_status" >&5
8864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8865 then
8866 # The compiler can only warn and ignore the option if not recognized
8867 # So say no if there are warnings
8868 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8871 lt_cv_prog_compiler_c_o=yes
8872 fi
8873 fi
8874 chmod u+w . 2>&5
8875 $RM conftest*
8876 # SGI C++ compiler will create directory out/ii_files/ for
8877 # template instantiation
8878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8879 $RM out/* && rmdir out
8880 cd ..
8881 $RM -r conftest
8882 $RM conftest*
8883
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8886 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8887
8888
8889
8890
8891 hard_links="nottested"
8892 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8893 # do not overwrite the value of need_locks provided by the user
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8895 $as_echo_n "checking if we can lock with hard links... " >&6; }
8896 hard_links=yes
8897 $RM conftest*
8898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8899 touch conftest.a
8900 ln conftest.a conftest.b 2>&5 || hard_links=no
8901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8903 $as_echo "$hard_links" >&6; }
8904 if test "$hard_links" = no; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8906 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8907 need_locks=warn
8908 fi
8909 else
8910 need_locks=no
8911 fi
8912
8913
8914
8915
8916
8917
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8919 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8920
8921 runpath_var=
8922 allow_undefined_flag=
8923 always_export_symbols=no
8924 archive_cmds=
8925 archive_expsym_cmds=
8926 compiler_needs_object=no
8927 enable_shared_with_static_runtimes=no
8928 export_dynamic_flag_spec=
8929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8930 hardcode_automatic=no
8931 hardcode_direct=no
8932 hardcode_direct_absolute=no
8933 hardcode_libdir_flag_spec=
8934 hardcode_libdir_flag_spec_ld=
8935 hardcode_libdir_separator=
8936 hardcode_minus_L=no
8937 hardcode_shlibpath_var=unsupported
8938 inherit_rpath=no
8939 link_all_deplibs=unknown
8940 module_cmds=
8941 module_expsym_cmds=
8942 old_archive_from_new_cmds=
8943 old_archive_from_expsyms_cmds=
8944 thread_safe_flag_spec=
8945 whole_archive_flag_spec=
8946 # include_expsyms should be a list of space-separated symbols to be *always*
8947 # included in the symbol list
8948 include_expsyms=
8949 # exclude_expsyms can be an extended regexp of symbols to exclude
8950 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8951 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8952 # as well as any symbol that contains `d'.
8953 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8955 # platforms (ab)use it in PIC code, but their linkers get confused if
8956 # the symbol is explicitly referenced. Since portable code cannot
8957 # rely on this symbol name, it's probably fine to never include it in
8958 # preloaded symbol tables.
8959 # Exclude shared library initialization/finalization symbols.
8960 extract_expsyms_cmds=
8961
8962 case $host_os in
8963 cygwin* | mingw* | pw32* | cegcc*)
8964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8965 # When not using gcc, we currently assume that we are using
8966 # Microsoft Visual C++.
8967 if test "$GCC" != yes; then
8968 with_gnu_ld=no
8969 fi
8970 ;;
8971 interix*)
8972 # we just hope/assume this is gcc and not c89 (= MSVC++)
8973 with_gnu_ld=yes
8974 ;;
8975 openbsd*)
8976 with_gnu_ld=no
8977 ;;
8978 esac
8979
8980 ld_shlibs=yes
8981 if test "$with_gnu_ld" = yes; then
8982 # If archive_cmds runs LD, not CC, wlarc should be empty
8983 wlarc='${wl}'
8984
8985 # Set some defaults for GNU ld with shared library support. These
8986 # are reset later if shared libraries are not supported. Putting them
8987 # here allows them to be overridden if necessary.
8988 runpath_var=LD_RUN_PATH
8989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8990 export_dynamic_flag_spec='${wl}--export-dynamic'
8991 # ancient GNU ld didn't support --whole-archive et. al.
8992 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8993 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8994 else
8995 whole_archive_flag_spec=
8996 fi
8997 supports_anon_versioning=no
8998 case `$LD -v 2>&1` in
8999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9002 *\ 2.11.*) ;; # other 2.11 versions
9003 *) supports_anon_versioning=yes ;;
9004 esac
9005
9006 # See if GNU ld supports shared libraries.
9007 case $host_os in
9008 aix[3-9]*)
9009 # On AIX/PPC, the GNU linker is very broken
9010 if test "$host_cpu" != ia64; then
9011 ld_shlibs=no
9012 cat <<_LT_EOF 1>&2
9013
9014 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9015 *** to be unable to reliably create shared libraries on AIX.
9016 *** Therefore, libtool is disabling shared libraries support. If you
9017 *** really care for shared libraries, you may want to modify your PATH
9018 *** so that a non-GNU linker is found, and then restart.
9019
9020 _LT_EOF
9021 fi
9022 ;;
9023
9024 amigaos*)
9025 case $host_cpu in
9026 powerpc)
9027 # see comment about AmigaOS4 .so support
9028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 archive_expsym_cmds=''
9030 ;;
9031 m68k)
9032 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)'
9033 hardcode_libdir_flag_spec='-L$libdir'
9034 hardcode_minus_L=yes
9035 ;;
9036 esac
9037 ;;
9038
9039 beos*)
9040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9041 allow_undefined_flag=unsupported
9042 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9043 # support --undefined. This deserves some investigation. FIXME
9044 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045 else
9046 ld_shlibs=no
9047 fi
9048 ;;
9049
9050 cygwin* | mingw* | pw32* | cegcc*)
9051 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9052 # as there is no search path for DLLs.
9053 hardcode_libdir_flag_spec='-L$libdir'
9054 allow_undefined_flag=unsupported
9055 always_export_symbols=no
9056 enable_shared_with_static_runtimes=yes
9057 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9058
9059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9061 # If the export-symbols file already is a .def file (1st line
9062 # is EXPORTS), use it as is; otherwise, prepend...
9063 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9064 cp $export_symbols $output_objdir/$soname.def;
9065 else
9066 echo EXPORTS > $output_objdir/$soname.def;
9067 cat $export_symbols >> $output_objdir/$soname.def;
9068 fi~
9069 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9070 else
9071 ld_shlibs=no
9072 fi
9073 ;;
9074
9075 interix[3-9]*)
9076 hardcode_direct=no
9077 hardcode_shlibpath_var=no
9078 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9079 export_dynamic_flag_spec='${wl}-E'
9080 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9081 # Instead, shared libraries are loaded at an image base (0x10000000 by
9082 # default) and relocated if they conflict, which is a slow very memory
9083 # consuming and fragmenting process. To avoid this, we pick a random,
9084 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9085 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9086 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9087 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'
9088 ;;
9089
9090 gnu* | linux* | tpf* | k*bsd*-gnu)
9091 tmp_diet=no
9092 if test "$host_os" = linux-dietlibc; then
9093 case $cc_basename in
9094 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9095 esac
9096 fi
9097 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9098 && test "$tmp_diet" = no
9099 then
9100 tmp_addflag=
9101 tmp_sharedflag='-shared'
9102 case $cc_basename,$host_cpu in
9103 pgcc*) # Portland Group C compiler
9104 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9105 tmp_addflag=' $pic_flag'
9106 ;;
9107 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9108 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9109 tmp_addflag=' $pic_flag -Mnomain' ;;
9110 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9111 tmp_addflag=' -i_dynamic' ;;
9112 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9113 tmp_addflag=' -i_dynamic -nofor_main' ;;
9114 ifc* | ifort*) # Intel Fortran compiler
9115 tmp_addflag=' -nofor_main' ;;
9116 lf95*) # Lahey Fortran 8.1
9117 whole_archive_flag_spec=
9118 tmp_sharedflag='--shared' ;;
9119 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9120 tmp_sharedflag='-qmkshrobj'
9121 tmp_addflag= ;;
9122 esac
9123 case `$CC -V 2>&1 | sed 5q` in
9124 *Sun\ C*) # Sun C 5.9
9125 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9126 compiler_needs_object=yes
9127 tmp_sharedflag='-G' ;;
9128 *Sun\ F*) # Sun Fortran 8.3
9129 tmp_sharedflag='-G' ;;
9130 esac
9131 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132
9133 if test "x$supports_anon_versioning" = xyes; then
9134 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9135 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9136 echo "local: *; };" >> $output_objdir/$libname.ver~
9137 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9138 fi
9139
9140 case $cc_basename in
9141 xlf*)
9142 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9143 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9144 hardcode_libdir_flag_spec=
9145 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9146 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9147 if test "x$supports_anon_versioning" = xyes; then
9148 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9150 echo "local: *; };" >> $output_objdir/$libname.ver~
9151 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9152 fi
9153 ;;
9154 esac
9155 else
9156 ld_shlibs=no
9157 fi
9158 ;;
9159
9160 netbsd*)
9161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9162 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9163 wlarc=
9164 else
9165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9167 fi
9168 ;;
9169
9170 solaris*)
9171 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9172 ld_shlibs=no
9173 cat <<_LT_EOF 1>&2
9174
9175 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9176 *** create shared libraries on Solaris systems. Therefore, libtool
9177 *** is disabling shared libraries support. We urge you to upgrade GNU
9178 *** binutils to release 2.9.1 or newer. Another option is to modify
9179 *** your PATH or compiler configuration so that the native linker is
9180 *** used, and then restart.
9181
9182 _LT_EOF
9183 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9186 else
9187 ld_shlibs=no
9188 fi
9189 ;;
9190
9191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9192 case `$LD -v 2>&1` in
9193 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9194 ld_shlibs=no
9195 cat <<_LT_EOF 1>&2
9196
9197 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9198 *** reliably create shared libraries on SCO systems. Therefore, libtool
9199 *** is disabling shared libraries support. We urge you to upgrade GNU
9200 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9201 *** your PATH or compiler configuration so that the native linker is
9202 *** used, and then restart.
9203
9204 _LT_EOF
9205 ;;
9206 *)
9207 # For security reasons, it is highly recommended that you always
9208 # use absolute paths for naming shared libraries, and exclude the
9209 # DT_RUNPATH tag from executables and libraries. But doing so
9210 # requires that you compile everything twice, which is a pain.
9211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9215 else
9216 ld_shlibs=no
9217 fi
9218 ;;
9219 esac
9220 ;;
9221
9222 sunos4*)
9223 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9224 wlarc=
9225 hardcode_direct=yes
9226 hardcode_shlibpath_var=no
9227 ;;
9228
9229 *)
9230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9232 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9233 else
9234 ld_shlibs=no
9235 fi
9236 ;;
9237 esac
9238
9239 if test "$ld_shlibs" = no; then
9240 runpath_var=
9241 hardcode_libdir_flag_spec=
9242 export_dynamic_flag_spec=
9243 whole_archive_flag_spec=
9244 fi
9245 else
9246 # PORTME fill in a description of your system's linker (not GNU ld)
9247 case $host_os in
9248 aix3*)
9249 allow_undefined_flag=unsupported
9250 always_export_symbols=yes
9251 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'
9252 # Note: this linker hardcodes the directories in LIBPATH if there
9253 # are no directories specified by -L.
9254 hardcode_minus_L=yes
9255 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9256 # Neither direct hardcoding nor static linking is supported with a
9257 # broken collect2.
9258 hardcode_direct=unsupported
9259 fi
9260 ;;
9261
9262 aix[4-9]*)
9263 if test "$host_cpu" = ia64; then
9264 # On IA64, the linker does run time linking by default, so we don't
9265 # have to do anything special.
9266 aix_use_runtimelinking=no
9267 exp_sym_flag='-Bexport'
9268 no_entry_flag=""
9269 else
9270 # If we're using GNU nm, then we don't want the "-C" option.
9271 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9272 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9273 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9274 else
9275 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9276 fi
9277 aix_use_runtimelinking=no
9278
9279 # Test if we are trying to use run time linking or normal
9280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9281 # need to do runtime linking.
9282 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9283 for ld_flag in $LDFLAGS; do
9284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9285 aix_use_runtimelinking=yes
9286 break
9287 fi
9288 done
9289 ;;
9290 esac
9291
9292 exp_sym_flag='-bexport'
9293 no_entry_flag='-bnoentry'
9294 fi
9295
9296 # When large executables or shared objects are built, AIX ld can
9297 # have problems creating the table of contents. If linking a library
9298 # or program results in "error TOC overflow" add -mminimal-toc to
9299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9301
9302 archive_cmds=''
9303 hardcode_direct=yes
9304 hardcode_direct_absolute=yes
9305 hardcode_libdir_separator=':'
9306 link_all_deplibs=yes
9307 file_list_spec='${wl}-f,'
9308
9309 if test "$GCC" = yes; then
9310 case $host_os in aix4.[012]|aix4.[012].*)
9311 # We only want to do this on AIX 4.2 and lower, the check
9312 # below for broken collect2 doesn't work under 4.3+
9313 collect2name=`${CC} -print-prog-name=collect2`
9314 if test -f "$collect2name" &&
9315 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9316 then
9317 # We have reworked collect2
9318 :
9319 else
9320 # We have old collect2
9321 hardcode_direct=unsupported
9322 # It fails to find uninstalled libraries when the uninstalled
9323 # path is not listed in the libpath. Setting hardcode_minus_L
9324 # to unsupported forces relinking
9325 hardcode_minus_L=yes
9326 hardcode_libdir_flag_spec='-L$libdir'
9327 hardcode_libdir_separator=
9328 fi
9329 ;;
9330 esac
9331 shared_flag='-shared'
9332 if test "$aix_use_runtimelinking" = yes; then
9333 shared_flag="$shared_flag "'${wl}-G'
9334 fi
9335 else
9336 # not using gcc
9337 if test "$host_cpu" = ia64; then
9338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9339 # chokes on -Wl,-G. The following line is correct:
9340 shared_flag='-G'
9341 else
9342 if test "$aix_use_runtimelinking" = yes; then
9343 shared_flag='${wl}-G'
9344 else
9345 shared_flag='${wl}-bM:SRE'
9346 fi
9347 fi
9348 fi
9349
9350 export_dynamic_flag_spec='${wl}-bexpall'
9351 # It seems that -bexpall does not export symbols beginning with
9352 # underscore (_), so it is better to generate a list of symbols to export.
9353 always_export_symbols=yes
9354 if test "$aix_use_runtimelinking" = yes; then
9355 # Warning - without using the other runtime loading flags (-brtl),
9356 # -berok will link without error, but may produce a broken library.
9357 allow_undefined_flag='-berok'
9358 # Determine the default libpath from the value encoded in an
9359 # empty executable.
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362
9363 int
9364 main ()
9365 {
9366
9367 ;
9368 return 0;
9369 }
9370 _ACEOF
9371 if ac_fn_c_try_link "$LINENO"; then :
9372
9373 lt_aix_libpath_sed='
9374 /Import File Strings/,/^$/ {
9375 /^0/ {
9376 s/^0 *\(.*\)$/\1/
9377 p
9378 }
9379 }'
9380 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9381 # Check for a 64-bit object if we didn't find anything.
9382 if test -z "$aix_libpath"; then
9383 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9384 fi
9385 fi
9386 rm -f core conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9389
9390 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9391 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9392 else
9393 if test "$host_cpu" = ia64; then
9394 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9395 allow_undefined_flag="-z nodefs"
9396 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"
9397 else
9398 # Determine the default libpath from the value encoded in an
9399 # empty executable.
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402
9403 int
9404 main ()
9405 {
9406
9407 ;
9408 return 0;
9409 }
9410 _ACEOF
9411 if ac_fn_c_try_link "$LINENO"; then :
9412
9413 lt_aix_libpath_sed='
9414 /Import File Strings/,/^$/ {
9415 /^0/ {
9416 s/^0 *\(.*\)$/\1/
9417 p
9418 }
9419 }'
9420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9421 # Check for a 64-bit object if we didn't find anything.
9422 if test -z "$aix_libpath"; then
9423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9424 fi
9425 fi
9426 rm -f core conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext conftest.$ac_ext
9428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9429
9430 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9431 # Warning - without using the other run time loading flags,
9432 # -berok will link without error, but may produce a broken library.
9433 no_undefined_flag=' ${wl}-bernotok'
9434 allow_undefined_flag=' ${wl}-berok'
9435 # Exported symbols can be pulled into shared objects from archives
9436 whole_archive_flag_spec='$convenience'
9437 archive_cmds_need_lc=yes
9438 # This is similar to how AIX traditionally builds its shared libraries.
9439 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9440 fi
9441 fi
9442 ;;
9443
9444 amigaos*)
9445 case $host_cpu in
9446 powerpc)
9447 # see comment about AmigaOS4 .so support
9448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 archive_expsym_cmds=''
9450 ;;
9451 m68k)
9452 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)'
9453 hardcode_libdir_flag_spec='-L$libdir'
9454 hardcode_minus_L=yes
9455 ;;
9456 esac
9457 ;;
9458
9459 bsdi[45]*)
9460 export_dynamic_flag_spec=-rdynamic
9461 ;;
9462
9463 cygwin* | mingw* | pw32* | cegcc*)
9464 # When not using gcc, we currently assume that we are using
9465 # Microsoft Visual C++.
9466 # hardcode_libdir_flag_spec is actually meaningless, as there is
9467 # no search path for DLLs.
9468 hardcode_libdir_flag_spec=' '
9469 allow_undefined_flag=unsupported
9470 # Tell ltmain to make .lib files, not .a files.
9471 libext=lib
9472 # Tell ltmain to make .dll files, not .so files.
9473 shrext_cmds=".dll"
9474 # FIXME: Setting linknames here is a bad hack.
9475 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9476 # The linker will automatically build a .lib file if we build a DLL.
9477 old_archive_from_new_cmds='true'
9478 # FIXME: Should let the user specify the lib program.
9479 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9480 fix_srcfile_path='`cygpath -w "$srcfile"`'
9481 enable_shared_with_static_runtimes=yes
9482 ;;
9483
9484 darwin* | rhapsody*)
9485
9486
9487 archive_cmds_need_lc=no
9488 hardcode_direct=no
9489 hardcode_automatic=yes
9490 hardcode_shlibpath_var=unsupported
9491 whole_archive_flag_spec=''
9492 link_all_deplibs=yes
9493 allow_undefined_flag="$_lt_dar_allow_undefined"
9494 case $cc_basename in
9495 ifort*) _lt_dar_can_shared=yes ;;
9496 *) _lt_dar_can_shared=$GCC ;;
9497 esac
9498 if test "$_lt_dar_can_shared" = "yes"; then
9499 output_verbose_link_cmd=echo
9500 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9501 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9502 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}"
9503 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}"
9504
9505 else
9506 ld_shlibs=no
9507 fi
9508
9509 ;;
9510
9511 dgux*)
9512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513 hardcode_libdir_flag_spec='-L$libdir'
9514 hardcode_shlibpath_var=no
9515 ;;
9516
9517 freebsd1*)
9518 ld_shlibs=no
9519 ;;
9520
9521 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9522 # support. Future versions do this automatically, but an explicit c++rt0.o
9523 # does not break anything, and helps significantly (at the cost of a little
9524 # extra space).
9525 freebsd2.2*)
9526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9527 hardcode_libdir_flag_spec='-R$libdir'
9528 hardcode_direct=yes
9529 hardcode_shlibpath_var=no
9530 ;;
9531
9532 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9533 freebsd2*)
9534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9535 hardcode_direct=yes
9536 hardcode_minus_L=yes
9537 hardcode_shlibpath_var=no
9538 ;;
9539
9540 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9541 freebsd* | dragonfly*)
9542 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9543 hardcode_libdir_flag_spec='-R$libdir'
9544 hardcode_direct=yes
9545 hardcode_shlibpath_var=no
9546 ;;
9547
9548 hpux9*)
9549 if test "$GCC" = yes; then
9550 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9551 else
9552 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9553 fi
9554 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9555 hardcode_libdir_separator=:
9556 hardcode_direct=yes
9557
9558 # hardcode_minus_L: Not really in the search PATH,
9559 # but as the default location of the library.
9560 hardcode_minus_L=yes
9561 export_dynamic_flag_spec='${wl}-E'
9562 ;;
9563
9564 hpux10*)
9565 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9566 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9567 else
9568 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9569 fi
9570 if test "$with_gnu_ld" = no; then
9571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9572 hardcode_libdir_flag_spec_ld='+b $libdir'
9573 hardcode_libdir_separator=:
9574 hardcode_direct=yes
9575 hardcode_direct_absolute=yes
9576 export_dynamic_flag_spec='${wl}-E'
9577 # hardcode_minus_L: Not really in the search PATH,
9578 # but as the default location of the library.
9579 hardcode_minus_L=yes
9580 fi
9581 ;;
9582
9583 hpux11*)
9584 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9585 case $host_cpu in
9586 hppa*64*)
9587 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9588 ;;
9589 ia64*)
9590 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9591 ;;
9592 *)
9593 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9594 ;;
9595 esac
9596 else
9597 case $host_cpu in
9598 hppa*64*)
9599 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9600 ;;
9601 ia64*)
9602 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9603 ;;
9604 *)
9605 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9606 ;;
9607 esac
9608 fi
9609 if test "$with_gnu_ld" = no; then
9610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9611 hardcode_libdir_separator=:
9612
9613 case $host_cpu in
9614 hppa*64*|ia64*)
9615 hardcode_direct=no
9616 hardcode_shlibpath_var=no
9617 ;;
9618 *)
9619 hardcode_direct=yes
9620 hardcode_direct_absolute=yes
9621 export_dynamic_flag_spec='${wl}-E'
9622
9623 # hardcode_minus_L: Not really in the search PATH,
9624 # but as the default location of the library.
9625 hardcode_minus_L=yes
9626 ;;
9627 esac
9628 fi
9629 ;;
9630
9631 irix5* | irix6* | nonstopux*)
9632 if test "$GCC" = yes; then
9633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9634 # Try to use the -exported_symbol ld option, if it does not
9635 # work, assume that -exports_file does not work either and
9636 # implicitly export all symbols.
9637 save_LDFLAGS="$LDFLAGS"
9638 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9641 int foo(void) {}
9642 _ACEOF
9643 if ac_fn_c_try_link "$LINENO"; then :
9644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9645
9646 fi
9647 rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 LDFLAGS="$save_LDFLAGS"
9650 else
9651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9653 fi
9654 archive_cmds_need_lc='no'
9655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9656 hardcode_libdir_separator=:
9657 inherit_rpath=yes
9658 link_all_deplibs=yes
9659 ;;
9660
9661 netbsd*)
9662 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9664 else
9665 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9666 fi
9667 hardcode_libdir_flag_spec='-R$libdir'
9668 hardcode_direct=yes
9669 hardcode_shlibpath_var=no
9670 ;;
9671
9672 newsos6)
9673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674 hardcode_direct=yes
9675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9676 hardcode_libdir_separator=:
9677 hardcode_shlibpath_var=no
9678 ;;
9679
9680 *nto* | *qnx*)
9681 ;;
9682
9683 openbsd*)
9684 if test -f /usr/libexec/ld.so; then
9685 hardcode_direct=yes
9686 hardcode_shlibpath_var=no
9687 hardcode_direct_absolute=yes
9688 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9691 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9692 export_dynamic_flag_spec='${wl}-E'
9693 else
9694 case $host_os in
9695 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_libdir_flag_spec='-R$libdir'
9698 ;;
9699 *)
9700 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9702 ;;
9703 esac
9704 fi
9705 else
9706 ld_shlibs=no
9707 fi
9708 ;;
9709
9710 os2*)
9711 hardcode_libdir_flag_spec='-L$libdir'
9712 hardcode_minus_L=yes
9713 allow_undefined_flag=unsupported
9714 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9715 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9716 ;;
9717
9718 osf3*)
9719 if test "$GCC" = yes; then
9720 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9721 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9722 else
9723 allow_undefined_flag=' -expect_unresolved \*'
9724 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9725 fi
9726 archive_cmds_need_lc='no'
9727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9728 hardcode_libdir_separator=:
9729 ;;
9730
9731 osf4* | osf5*) # as osf3* with the addition of -msym flag
9732 if test "$GCC" = yes; then
9733 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9734 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9736 else
9737 allow_undefined_flag=' -expect_unresolved \*'
9738 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9739 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~
9740 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9741
9742 # Both c and cxx compiler support -rpath directly
9743 hardcode_libdir_flag_spec='-rpath $libdir'
9744 fi
9745 archive_cmds_need_lc='no'
9746 hardcode_libdir_separator=:
9747 ;;
9748
9749 solaris*)
9750 no_undefined_flag=' -z defs'
9751 if test "$GCC" = yes; then
9752 wlarc='${wl}'
9753 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9755 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9756 else
9757 case `$CC -V 2>&1` in
9758 *"Compilers 5.0"*)
9759 wlarc=''
9760 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9761 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9762 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9763 ;;
9764 *)
9765 wlarc='${wl}'
9766 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9767 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9768 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9769 ;;
9770 esac
9771 fi
9772 hardcode_libdir_flag_spec='-R$libdir'
9773 hardcode_shlibpath_var=no
9774 case $host_os in
9775 solaris2.[0-5] | solaris2.[0-5].*) ;;
9776 *)
9777 # The compiler driver will combine and reorder linker options,
9778 # but understands `-z linker_flag'. GCC discards it without `$wl',
9779 # but is careful enough not to reorder.
9780 # Supported since Solaris 2.6 (maybe 2.5.1?)
9781 if test "$GCC" = yes; then
9782 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9783 else
9784 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9785 fi
9786 ;;
9787 esac
9788 link_all_deplibs=yes
9789 ;;
9790
9791 sunos4*)
9792 if test "x$host_vendor" = xsequent; then
9793 # Use $CC to link under sequent, because it throws in some extra .o
9794 # files that make .init and .fini sections work.
9795 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9796 else
9797 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9798 fi
9799 hardcode_libdir_flag_spec='-L$libdir'
9800 hardcode_direct=yes
9801 hardcode_minus_L=yes
9802 hardcode_shlibpath_var=no
9803 ;;
9804
9805 sysv4)
9806 case $host_vendor in
9807 sni)
9808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809 hardcode_direct=yes # is this really true???
9810 ;;
9811 siemens)
9812 ## LD is ld it makes a PLAMLIB
9813 ## CC just makes a GrossModule.
9814 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9815 reload_cmds='$CC -r -o $output$reload_objs'
9816 hardcode_direct=no
9817 ;;
9818 motorola)
9819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9820 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9821 ;;
9822 esac
9823 runpath_var='LD_RUN_PATH'
9824 hardcode_shlibpath_var=no
9825 ;;
9826
9827 sysv4.3*)
9828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9829 hardcode_shlibpath_var=no
9830 export_dynamic_flag_spec='-Bexport'
9831 ;;
9832
9833 sysv4*MP*)
9834 if test -d /usr/nec; then
9835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9836 hardcode_shlibpath_var=no
9837 runpath_var=LD_RUN_PATH
9838 hardcode_runpath_var=yes
9839 ld_shlibs=yes
9840 fi
9841 ;;
9842
9843 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9844 no_undefined_flag='${wl}-z,text'
9845 archive_cmds_need_lc=no
9846 hardcode_shlibpath_var=no
9847 runpath_var='LD_RUN_PATH'
9848
9849 if test "$GCC" = yes; then
9850 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9851 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9852 else
9853 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9854 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9855 fi
9856 ;;
9857
9858 sysv5* | sco3.2v5* | sco5v6*)
9859 # Note: We can NOT use -z defs as we might desire, because we do not
9860 # link with -lc, and that would cause any symbols used from libc to
9861 # always be unresolved, which means just about no library would
9862 # ever link correctly. If we're not using GNU ld we use -z text
9863 # though, which does catch some bad symbols but isn't as heavy-handed
9864 # as -z defs.
9865 no_undefined_flag='${wl}-z,text'
9866 allow_undefined_flag='${wl}-z,nodefs'
9867 archive_cmds_need_lc=no
9868 hardcode_shlibpath_var=no
9869 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9870 hardcode_libdir_separator=':'
9871 link_all_deplibs=yes
9872 export_dynamic_flag_spec='${wl}-Bexport'
9873 runpath_var='LD_RUN_PATH'
9874
9875 if test "$GCC" = yes; then
9876 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9877 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9878 else
9879 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9880 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9881 fi
9882 ;;
9883
9884 uts4*)
9885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886 hardcode_libdir_flag_spec='-L$libdir'
9887 hardcode_shlibpath_var=no
9888 ;;
9889
9890 *)
9891 ld_shlibs=no
9892 ;;
9893 esac
9894
9895 if test x$host_vendor = xsni; then
9896 case $host in
9897 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9898 export_dynamic_flag_spec='${wl}-Blargedynsym'
9899 ;;
9900 esac
9901 fi
9902 fi
9903
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9905 $as_echo "$ld_shlibs" >&6; }
9906 test "$ld_shlibs" = no && can_build_shared=no
9907
9908 with_gnu_ld=$with_gnu_ld
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924 #
9925 # Do we need to explicitly link libc?
9926 #
9927 case "x$archive_cmds_need_lc" in
9928 x|xyes)
9929 # Assume -lc should be added
9930 archive_cmds_need_lc=yes
9931
9932 if test "$enable_shared" = yes && test "$GCC" = yes; then
9933 case $archive_cmds in
9934 *'~'*)
9935 # FIXME: we may have to deal with multi-command sequences.
9936 ;;
9937 '$CC '*)
9938 # Test whether the compiler implicitly links with -lc since on some
9939 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9940 # to ld, don't add -lc before -lgcc.
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9942 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9943 $RM conftest*
9944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9945
9946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9947 (eval $ac_compile) 2>&5
9948 ac_status=$?
9949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9950 test $ac_status = 0; } 2>conftest.err; then
9951 soname=conftest
9952 lib=conftest
9953 libobjs=conftest.$ac_objext
9954 deplibs=
9955 wl=$lt_prog_compiler_wl
9956 pic_flag=$lt_prog_compiler_pic
9957 compiler_flags=-v
9958 linker_flags=-v
9959 verstring=
9960 output_objdir=.
9961 libname=conftest
9962 lt_save_allow_undefined_flag=$allow_undefined_flag
9963 allow_undefined_flag=
9964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9965 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9966 ac_status=$?
9967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9968 test $ac_status = 0; }
9969 then
9970 archive_cmds_need_lc=no
9971 else
9972 archive_cmds_need_lc=yes
9973 fi
9974 allow_undefined_flag=$lt_save_allow_undefined_flag
9975 else
9976 cat conftest.err 1>&5
9977 fi
9978 $RM conftest*
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9980 $as_echo "$archive_cmds_need_lc" >&6; }
9981 ;;
9982 esac
9983 fi
9984 ;;
9985 esac
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10144 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10145
10146 if test "$GCC" = yes; then
10147 case $host_os in
10148 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10149 *) lt_awk_arg="/^libraries:/" ;;
10150 esac
10151 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10152 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10153 # if the path contains ";" then we assume it to be the separator
10154 # otherwise default to the standard path separator (i.e. ":") - it is
10155 # assumed that no part of a normal pathname contains ";" but that should
10156 # okay in the real world where ";" in dirpaths is itself problematic.
10157 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10158 else
10159 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10160 fi
10161 # Ok, now we have the path, separated by spaces, we can step through it
10162 # and add multilib dir if necessary.
10163 lt_tmp_lt_search_path_spec=
10164 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10165 for lt_sys_path in $lt_search_path_spec; do
10166 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10167 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10168 else
10169 test -d "$lt_sys_path" && \
10170 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10171 fi
10172 done
10173 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10174 BEGIN {RS=" "; FS="/|\n";} {
10175 lt_foo="";
10176 lt_count=0;
10177 for (lt_i = NF; lt_i > 0; lt_i--) {
10178 if ($lt_i != "" && $lt_i != ".") {
10179 if ($lt_i == "..") {
10180 lt_count++;
10181 } else {
10182 if (lt_count == 0) {
10183 lt_foo="/" $lt_i lt_foo;
10184 } else {
10185 lt_count--;
10186 }
10187 }
10188 }
10189 }
10190 if (lt_foo != "") { lt_freq[lt_foo]++; }
10191 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10192 }'`
10193 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10194 else
10195 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10196 fi
10197 library_names_spec=
10198 libname_spec='lib$name'
10199 soname_spec=
10200 shrext_cmds=".so"
10201 postinstall_cmds=
10202 postuninstall_cmds=
10203 finish_cmds=
10204 finish_eval=
10205 shlibpath_var=
10206 shlibpath_overrides_runpath=unknown
10207 version_type=none
10208 dynamic_linker="$host_os ld.so"
10209 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10210 need_lib_prefix=unknown
10211 hardcode_into_libs=no
10212
10213 # when you set need_version to no, make sure it does not cause -set_version
10214 # flags to be left without arguments
10215 need_version=unknown
10216
10217 case $host_os in
10218 aix3*)
10219 version_type=linux
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10221 shlibpath_var=LIBPATH
10222
10223 # AIX 3 has no versioning support, so we append a major version to the name.
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 ;;
10226
10227 aix[4-9]*)
10228 version_type=linux
10229 need_lib_prefix=no
10230 need_version=no
10231 hardcode_into_libs=yes
10232 if test "$host_cpu" = ia64; then
10233 # AIX 5 supports IA64
10234 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 else
10237 # With GCC up to 2.95.x, collect2 would create an import file
10238 # for dependence libraries. The import file would start with
10239 # the line `#! .'. This would cause the generated library to
10240 # depend on `.', always an invalid library. This was fixed in
10241 # development snapshots of GCC prior to 3.0.
10242 case $host_os in
10243 aix4 | aix4.[01] | aix4.[01].*)
10244 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10245 echo ' yes '
10246 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10247 :
10248 else
10249 can_build_shared=no
10250 fi
10251 ;;
10252 esac
10253 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10254 # soname into executable. Probably we can add versioning support to
10255 # collect2, so additional links can be useful in future.
10256 if test "$aix_use_runtimelinking" = yes; then
10257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10258 # instead of lib<name>.a to let people know that these are not
10259 # typical AIX shared libraries.
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261 else
10262 # We preserve .a as extension for shared libraries through AIX4.2
10263 # and later when we are not doing run time linking.
10264 library_names_spec='${libname}${release}.a $libname.a'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 fi
10267 shlibpath_var=LIBPATH
10268 fi
10269 ;;
10270
10271 amigaos*)
10272 case $host_cpu in
10273 powerpc)
10274 # Since July 2007 AmigaOS4 officially supports .so libraries.
10275 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 ;;
10278 m68k)
10279 library_names_spec='$libname.ixlibrary $libname.a'
10280 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10281 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10282 ;;
10283 esac
10284 ;;
10285
10286 beos*)
10287 library_names_spec='${libname}${shared_ext}'
10288 dynamic_linker="$host_os ld.so"
10289 shlibpath_var=LIBRARY_PATH
10290 ;;
10291
10292 bsdi[45]*)
10293 version_type=linux
10294 need_version=no
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10300 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10301 # the default ld.so.conf also contains /usr/contrib/lib and
10302 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10303 # libtool to hard-code these into programs
10304 ;;
10305
10306 cygwin* | mingw* | pw32* | cegcc*)
10307 version_type=windows
10308 shrext_cmds=".dll"
10309 need_version=no
10310 need_lib_prefix=no
10311
10312 case $GCC,$host_os in
10313 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10314 library_names_spec='$libname.dll.a'
10315 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10316 postinstall_cmds='base_file=`basename \${file}`~
10317 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10318 dldir=$destdir/`dirname \$dlpath`~
10319 test -d \$dldir || mkdir -p \$dldir~
10320 $install_prog $dir/$dlname \$dldir/$dlname~
10321 chmod a+x \$dldir/$dlname~
10322 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10323 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10324 fi'
10325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10326 dlpath=$dir/\$dldll~
10327 $RM \$dlpath'
10328 shlibpath_overrides_runpath=yes
10329
10330 case $host_os in
10331 cygwin*)
10332 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10333 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10334 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10335 ;;
10336 mingw* | cegcc*)
10337 # MinGW DLLs use traditional 'lib' prefix
10338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10339 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10340 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10341 # It is most probably a Windows format PATH printed by
10342 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10343 # path with ; separators, and with drive letters. We can handle the
10344 # drive letters (cygwin fileutils understands them), so leave them,
10345 # especially as we might pass files found there to a mingw objdump,
10346 # which wouldn't understand a cygwinified path. Ahh.
10347 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10348 else
10349 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10350 fi
10351 ;;
10352 pw32*)
10353 # pw32 DLLs use 'pw' prefix rather than 'lib'
10354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10355 ;;
10356 esac
10357 ;;
10358
10359 *)
10360 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10361 ;;
10362 esac
10363 dynamic_linker='Win32 ld.exe'
10364 # FIXME: first we should search . and the directory the executable is in
10365 shlibpath_var=PATH
10366 ;;
10367
10368 darwin* | rhapsody*)
10369 dynamic_linker="$host_os dyld"
10370 version_type=darwin
10371 need_lib_prefix=no
10372 need_version=no
10373 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10374 soname_spec='${libname}${release}${major}$shared_ext'
10375 shlibpath_overrides_runpath=yes
10376 shlibpath_var=DYLD_LIBRARY_PATH
10377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10378
10379 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10380 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10381 ;;
10382
10383 dgux*)
10384 version_type=linux
10385 need_lib_prefix=no
10386 need_version=no
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 ;;
10391
10392 freebsd1*)
10393 dynamic_linker=no
10394 ;;
10395
10396 freebsd* | dragonfly*)
10397 # DragonFly does not have aout. When/if they implement a new
10398 # versioning mechanism, adjust this.
10399 if test -x /usr/bin/objformat; then
10400 objformat=`/usr/bin/objformat`
10401 else
10402 case $host_os in
10403 freebsd[123]*) objformat=aout ;;
10404 *) objformat=elf ;;
10405 esac
10406 fi
10407 version_type=freebsd-$objformat
10408 case $version_type in
10409 freebsd-elf*)
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10411 need_version=no
10412 need_lib_prefix=no
10413 ;;
10414 freebsd-*)
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10416 need_version=yes
10417 ;;
10418 esac
10419 shlibpath_var=LD_LIBRARY_PATH
10420 case $host_os in
10421 freebsd2*)
10422 shlibpath_overrides_runpath=yes
10423 ;;
10424 freebsd3.[01]* | freebsdelf3.[01]*)
10425 shlibpath_overrides_runpath=yes
10426 hardcode_into_libs=yes
10427 ;;
10428 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10429 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10430 shlibpath_overrides_runpath=no
10431 hardcode_into_libs=yes
10432 ;;
10433 *) # from 4.6 on, and DragonFly
10434 shlibpath_overrides_runpath=yes
10435 hardcode_into_libs=yes
10436 ;;
10437 esac
10438 ;;
10439
10440 gnu*)
10441 version_type=linux
10442 need_lib_prefix=no
10443 need_version=no
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10445 soname_spec='${libname}${release}${shared_ext}$major'
10446 shlibpath_var=LD_LIBRARY_PATH
10447 hardcode_into_libs=yes
10448 ;;
10449
10450 hpux9* | hpux10* | hpux11*)
10451 # Give a soname corresponding to the major version so that dld.sl refuses to
10452 # link against other versions.
10453 version_type=sunos
10454 need_lib_prefix=no
10455 need_version=no
10456 case $host_cpu in
10457 ia64*)
10458 shrext_cmds='.so'
10459 hardcode_into_libs=yes
10460 dynamic_linker="$host_os dld.so"
10461 shlibpath_var=LD_LIBRARY_PATH
10462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 if test "X$HPUX_IA64_MODE" = X32; then
10466 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10467 else
10468 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10469 fi
10470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10471 ;;
10472 hppa*64*)
10473 shrext_cmds='.sl'
10474 hardcode_into_libs=yes
10475 dynamic_linker="$host_os dld.sl"
10476 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10477 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479 soname_spec='${libname}${release}${shared_ext}$major'
10480 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10482 ;;
10483 *)
10484 shrext_cmds='.sl'
10485 dynamic_linker="$host_os dld.sl"
10486 shlibpath_var=SHLIB_PATH
10487 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 ;;
10491 esac
10492 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10493 postinstall_cmds='chmod 555 $lib'
10494 ;;
10495
10496 interix[3-9]*)
10497 version_type=linux
10498 need_lib_prefix=no
10499 need_version=no
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10501 soname_spec='${libname}${release}${shared_ext}$major'
10502 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 shlibpath_overrides_runpath=no
10505 hardcode_into_libs=yes
10506 ;;
10507
10508 irix5* | irix6* | nonstopux*)
10509 case $host_os in
10510 nonstopux*) version_type=nonstopux ;;
10511 *)
10512 if test "$lt_cv_prog_gnu_ld" = yes; then
10513 version_type=linux
10514 else
10515 version_type=irix
10516 fi ;;
10517 esac
10518 need_lib_prefix=no
10519 need_version=no
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10522 case $host_os in
10523 irix5* | nonstopux*)
10524 libsuff= shlibsuff=
10525 ;;
10526 *)
10527 case $LD in # libtool.m4 will add one of these switches to LD
10528 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10529 libsuff= shlibsuff= libmagic=32-bit;;
10530 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10531 libsuff=32 shlibsuff=N32 libmagic=N32;;
10532 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10533 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10534 *) libsuff= shlibsuff= libmagic=never-match;;
10535 esac
10536 ;;
10537 esac
10538 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10539 shlibpath_overrides_runpath=no
10540 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10541 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10542 hardcode_into_libs=yes
10543 ;;
10544
10545 # No shared lib support for Linux oldld, aout, or coff.
10546 linux*oldld* | linux*aout* | linux*coff*)
10547 dynamic_linker=no
10548 ;;
10549
10550 # This must be Linux ELF.
10551 linux* | k*bsd*-gnu)
10552 version_type=linux
10553 need_lib_prefix=no
10554 need_version=no
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 soname_spec='${libname}${release}${shared_ext}$major'
10557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 shlibpath_overrides_runpath=no
10560 # Some binutils ld are patched to set DT_RUNPATH
10561 save_LDFLAGS=$LDFLAGS
10562 save_libdir=$libdir
10563 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10564 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10567
10568 int
10569 main ()
10570 {
10571
10572 ;
10573 return 0;
10574 }
10575 _ACEOF
10576 if ac_fn_c_try_link "$LINENO"; then :
10577 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10578 shlibpath_overrides_runpath=yes
10579 fi
10580 fi
10581 rm -f core conftest.err conftest.$ac_objext \
10582 conftest$ac_exeext conftest.$ac_ext
10583 LDFLAGS=$save_LDFLAGS
10584 libdir=$save_libdir
10585
10586 # This implies no fast_install, which is unacceptable.
10587 # Some rework will be needed to allow for fast_install
10588 # before this can be enabled.
10589 hardcode_into_libs=yes
10590
10591 # Add ABI-specific directories to the system library path.
10592 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10593
10594 # Append ld.so.conf contents to the search path
10595 if test -f /etc/ld.so.conf; then
10596 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10597 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10598 fi
10599
10600 # We used to test for /lib/ld.so.1 and disable shared libraries on
10601 # powerpc, because MkLinux only supported shared libraries with the
10602 # GNU dynamic linker. Since this was broken with cross compilers,
10603 # most powerpc-linux boxes support dynamic linking these days and
10604 # people can always --disable-shared, the test was removed, and we
10605 # assume the GNU/Linux dynamic linker is in use.
10606 dynamic_linker='GNU/Linux ld.so'
10607 ;;
10608
10609 netbsd*)
10610 version_type=sunos
10611 need_lib_prefix=no
10612 need_version=no
10613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10616 dynamic_linker='NetBSD (a.out) ld.so'
10617 else
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 dynamic_linker='NetBSD ld.elf_so'
10621 fi
10622 shlibpath_var=LD_LIBRARY_PATH
10623 shlibpath_overrides_runpath=yes
10624 hardcode_into_libs=yes
10625 ;;
10626
10627 newsos6)
10628 version_type=linux
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath=yes
10632 ;;
10633
10634 *nto* | *qnx*)
10635 version_type=qnx
10636 need_lib_prefix=no
10637 need_version=no
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 soname_spec='${libname}${release}${shared_ext}$major'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 shlibpath_overrides_runpath=no
10642 hardcode_into_libs=yes
10643 dynamic_linker='ldqnx.so'
10644 ;;
10645
10646 openbsd*)
10647 version_type=sunos
10648 sys_lib_dlsearch_path_spec="/usr/lib"
10649 need_lib_prefix=no
10650 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10651 case $host_os in
10652 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10653 *) need_version=no ;;
10654 esac
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10657 shlibpath_var=LD_LIBRARY_PATH
10658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10659 case $host_os in
10660 openbsd2.[89] | openbsd2.[89].*)
10661 shlibpath_overrides_runpath=no
10662 ;;
10663 *)
10664 shlibpath_overrides_runpath=yes
10665 ;;
10666 esac
10667 else
10668 shlibpath_overrides_runpath=yes
10669 fi
10670 ;;
10671
10672 os2*)
10673 libname_spec='$name'
10674 shrext_cmds=".dll"
10675 need_lib_prefix=no
10676 library_names_spec='$libname${shared_ext} $libname.a'
10677 dynamic_linker='OS/2 ld.exe'
10678 shlibpath_var=LIBPATH
10679 ;;
10680
10681 osf3* | osf4* | osf5*)
10682 version_type=osf
10683 need_lib_prefix=no
10684 need_version=no
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 shlibpath_var=LD_LIBRARY_PATH
10688 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10689 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10690 ;;
10691
10692 rdos*)
10693 dynamic_linker=no
10694 ;;
10695
10696 solaris*)
10697 version_type=linux
10698 need_lib_prefix=no
10699 need_version=no
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 shlibpath_var=LD_LIBRARY_PATH
10703 shlibpath_overrides_runpath=yes
10704 hardcode_into_libs=yes
10705 # ldd complains unless libraries are executable
10706 postinstall_cmds='chmod +x $lib'
10707 ;;
10708
10709 sunos4*)
10710 version_type=sunos
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath=yes
10715 if test "$with_gnu_ld" = yes; then
10716 need_lib_prefix=no
10717 fi
10718 need_version=yes
10719 ;;
10720
10721 sysv4 | sysv4.3*)
10722 version_type=linux
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 shlibpath_var=LD_LIBRARY_PATH
10726 case $host_vendor in
10727 sni)
10728 shlibpath_overrides_runpath=no
10729 need_lib_prefix=no
10730 runpath_var=LD_RUN_PATH
10731 ;;
10732 siemens)
10733 need_lib_prefix=no
10734 ;;
10735 motorola)
10736 need_lib_prefix=no
10737 need_version=no
10738 shlibpath_overrides_runpath=no
10739 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10740 ;;
10741 esac
10742 ;;
10743
10744 sysv4*MP*)
10745 if test -d /usr/nec ;then
10746 version_type=linux
10747 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10748 soname_spec='$libname${shared_ext}.$major'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 fi
10751 ;;
10752
10753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10754 version_type=freebsd-elf
10755 need_lib_prefix=no
10756 need_version=no
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=yes
10761 hardcode_into_libs=yes
10762 if test "$with_gnu_ld" = yes; then
10763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10764 else
10765 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10766 case $host_os in
10767 sco3.2v5*)
10768 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10769 ;;
10770 esac
10771 fi
10772 sys_lib_dlsearch_path_spec='/usr/lib'
10773 ;;
10774
10775 tpf*)
10776 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10777 version_type=linux
10778 need_lib_prefix=no
10779 need_version=no
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 shlibpath_overrides_runpath=no
10783 hardcode_into_libs=yes
10784 ;;
10785
10786 uts4*)
10787 version_type=linux
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 ;;
10792
10793 *)
10794 dynamic_linker=no
10795 ;;
10796 esac
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10798 $as_echo "$dynamic_linker" >&6; }
10799 test "$dynamic_linker" = no && can_build_shared=no
10800
10801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10802 if test "$GCC" = yes; then
10803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10804 fi
10805
10806 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10807 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10808 fi
10809 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10810 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10811 fi
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10900 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10901 hardcode_action=
10902 if test -n "$hardcode_libdir_flag_spec" ||
10903 test -n "$runpath_var" ||
10904 test "X$hardcode_automatic" = "Xyes" ; then
10905
10906 # We can hardcode non-existent directories.
10907 if test "$hardcode_direct" != no &&
10908 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10909 # have to relink, otherwise we might link with an installed library
10910 # when we should be linking with a yet-to-be-installed one
10911 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10912 test "$hardcode_minus_L" != no; then
10913 # Linking always hardcodes the temporary library directory.
10914 hardcode_action=relink
10915 else
10916 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10917 hardcode_action=immediate
10918 fi
10919 else
10920 # We cannot hardcode anything, or else we can only hardcode existing
10921 # directories.
10922 hardcode_action=unsupported
10923 fi
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10925 $as_echo "$hardcode_action" >&6; }
10926
10927 if test "$hardcode_action" = relink ||
10928 test "$inherit_rpath" = yes; then
10929 # Fast installation is not supported
10930 enable_fast_install=no
10931 elif test "$shlibpath_overrides_runpath" = yes ||
10932 test "$enable_shared" = no; then
10933 # Fast installation is not necessary
10934 enable_fast_install=needless
10935 fi
10936
10937
10938
10939
10940
10941
10942 if test "x$enable_dlopen" != xyes; then
10943 enable_dlopen=unknown
10944 enable_dlopen_self=unknown
10945 enable_dlopen_self_static=unknown
10946 else
10947 lt_cv_dlopen=no
10948 lt_cv_dlopen_libs=
10949
10950 case $host_os in
10951 beos*)
10952 lt_cv_dlopen="load_add_on"
10953 lt_cv_dlopen_libs=
10954 lt_cv_dlopen_self=yes
10955 ;;
10956
10957 mingw* | pw32* | cegcc*)
10958 lt_cv_dlopen="LoadLibrary"
10959 lt_cv_dlopen_libs=
10960 ;;
10961
10962 cygwin*)
10963 lt_cv_dlopen="dlopen"
10964 lt_cv_dlopen_libs=
10965 ;;
10966
10967 darwin*)
10968 # if libdl is installed we need to link against it
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10970 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10971 if ${ac_cv_lib_dl_dlopen+:} false; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 ac_check_lib_save_LIBS=$LIBS
10975 LIBS="-ldl $LIBS"
10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h. */
10978
10979 /* Override any GCC internal prototype to avoid an error.
10980 Use char because int might match the return type of a GCC
10981 builtin and then its argument prototype would still apply. */
10982 #ifdef __cplusplus
10983 extern "C"
10984 #endif
10985 char dlopen ();
10986 int
10987 main ()
10988 {
10989 return dlopen ();
10990 ;
10991 return 0;
10992 }
10993 _ACEOF
10994 if ac_fn_c_try_link "$LINENO"; then :
10995 ac_cv_lib_dl_dlopen=yes
10996 else
10997 ac_cv_lib_dl_dlopen=no
10998 fi
10999 rm -f core conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11001 LIBS=$ac_check_lib_save_LIBS
11002 fi
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11005 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11007 else
11008
11009 lt_cv_dlopen="dyld"
11010 lt_cv_dlopen_libs=
11011 lt_cv_dlopen_self=yes
11012
11013 fi
11014
11015 ;;
11016
11017 *)
11018 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11019 if test "x$ac_cv_func_shl_load" = xyes; then :
11020 lt_cv_dlopen="shl_load"
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11023 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11024 if ${ac_cv_lib_dld_shl_load+:} false; then :
11025 $as_echo_n "(cached) " >&6
11026 else
11027 ac_check_lib_save_LIBS=$LIBS
11028 LIBS="-ldld $LIBS"
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11031
11032 /* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
11035 #ifdef __cplusplus
11036 extern "C"
11037 #endif
11038 char shl_load ();
11039 int
11040 main ()
11041 {
11042 return shl_load ();
11043 ;
11044 return 0;
11045 }
11046 _ACEOF
11047 if ac_fn_c_try_link "$LINENO"; then :
11048 ac_cv_lib_dld_shl_load=yes
11049 else
11050 ac_cv_lib_dld_shl_load=no
11051 fi
11052 rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054 LIBS=$ac_check_lib_save_LIBS
11055 fi
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11057 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11058 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11059 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11060 else
11061 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11062 if test "x$ac_cv_func_dlopen" = xyes; then :
11063 lt_cv_dlopen="dlopen"
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11066 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11067 if ${ac_cv_lib_dl_dlopen+:} false; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 ac_check_lib_save_LIBS=$LIBS
11071 LIBS="-ldl $LIBS"
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11074
11075 /* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11078 #ifdef __cplusplus
11079 extern "C"
11080 #endif
11081 char dlopen ();
11082 int
11083 main ()
11084 {
11085 return dlopen ();
11086 ;
11087 return 0;
11088 }
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"; then :
11091 ac_cv_lib_dl_dlopen=yes
11092 else
11093 ac_cv_lib_dl_dlopen=no
11094 fi
11095 rm -f core conftest.err conftest.$ac_objext \
11096 conftest$ac_exeext conftest.$ac_ext
11097 LIBS=$ac_check_lib_save_LIBS
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11101 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11103 else
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11105 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11106 if ${ac_cv_lib_svld_dlopen+:} false; then :
11107 $as_echo_n "(cached) " >&6
11108 else
11109 ac_check_lib_save_LIBS=$LIBS
11110 LIBS="-lsvld $LIBS"
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11113
11114 /* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
11117 #ifdef __cplusplus
11118 extern "C"
11119 #endif
11120 char dlopen ();
11121 int
11122 main ()
11123 {
11124 return dlopen ();
11125 ;
11126 return 0;
11127 }
11128 _ACEOF
11129 if ac_fn_c_try_link "$LINENO"; then :
11130 ac_cv_lib_svld_dlopen=yes
11131 else
11132 ac_cv_lib_svld_dlopen=no
11133 fi
11134 rm -f core conftest.err conftest.$ac_objext \
11135 conftest$ac_exeext conftest.$ac_ext
11136 LIBS=$ac_check_lib_save_LIBS
11137 fi
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11139 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11140 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11142 else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11144 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11145 if ${ac_cv_lib_dld_dld_link+:} false; then :
11146 $as_echo_n "(cached) " >&6
11147 else
11148 ac_check_lib_save_LIBS=$LIBS
11149 LIBS="-ldld $LIBS"
11150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h. */
11152
11153 /* Override any GCC internal prototype to avoid an error.
11154 Use char because int might match the return type of a GCC
11155 builtin and then its argument prototype would still apply. */
11156 #ifdef __cplusplus
11157 extern "C"
11158 #endif
11159 char dld_link ();
11160 int
11161 main ()
11162 {
11163 return dld_link ();
11164 ;
11165 return 0;
11166 }
11167 _ACEOF
11168 if ac_fn_c_try_link "$LINENO"; then :
11169 ac_cv_lib_dld_dld_link=yes
11170 else
11171 ac_cv_lib_dld_dld_link=no
11172 fi
11173 rm -f core conftest.err conftest.$ac_objext \
11174 conftest$ac_exeext conftest.$ac_ext
11175 LIBS=$ac_check_lib_save_LIBS
11176 fi
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11178 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11179 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11180 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11181 fi
11182
11183
11184 fi
11185
11186
11187 fi
11188
11189
11190 fi
11191
11192
11193 fi
11194
11195
11196 fi
11197
11198 ;;
11199 esac
11200
11201 if test "x$lt_cv_dlopen" != xno; then
11202 enable_dlopen=yes
11203 else
11204 enable_dlopen=no
11205 fi
11206
11207 case $lt_cv_dlopen in
11208 dlopen)
11209 save_CPPFLAGS="$CPPFLAGS"
11210 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11211
11212 save_LDFLAGS="$LDFLAGS"
11213 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11214
11215 save_LIBS="$LIBS"
11216 LIBS="$lt_cv_dlopen_libs $LIBS"
11217
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11219 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11220 if ${lt_cv_dlopen_self+:} false; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 if test "$cross_compiling" = yes; then :
11224 lt_cv_dlopen_self=cross
11225 else
11226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11227 lt_status=$lt_dlunknown
11228 cat > conftest.$ac_ext <<_LT_EOF
11229 #line 11229 "configure"
11230 #include "confdefs.h"
11231
11232 #if HAVE_DLFCN_H
11233 #include <dlfcn.h>
11234 #endif
11235
11236 #include <stdio.h>
11237
11238 #ifdef RTLD_GLOBAL
11239 # define LT_DLGLOBAL RTLD_GLOBAL
11240 #else
11241 # ifdef DL_GLOBAL
11242 # define LT_DLGLOBAL DL_GLOBAL
11243 # else
11244 # define LT_DLGLOBAL 0
11245 # endif
11246 #endif
11247
11248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11249 find out it does not work in some platform. */
11250 #ifndef LT_DLLAZY_OR_NOW
11251 # ifdef RTLD_LAZY
11252 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11253 # else
11254 # ifdef DL_LAZY
11255 # define LT_DLLAZY_OR_NOW DL_LAZY
11256 # else
11257 # ifdef RTLD_NOW
11258 # define LT_DLLAZY_OR_NOW RTLD_NOW
11259 # else
11260 # ifdef DL_NOW
11261 # define LT_DLLAZY_OR_NOW DL_NOW
11262 # else
11263 # define LT_DLLAZY_OR_NOW 0
11264 # endif
11265 # endif
11266 # endif
11267 # endif
11268 #endif
11269
11270 void fnord() { int i=42;}
11271 int main ()
11272 {
11273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11274 int status = $lt_dlunknown;
11275
11276 if (self)
11277 {
11278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11279 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11280 /* dlclose (self); */
11281 }
11282 else
11283 puts (dlerror ());
11284
11285 return status;
11286 }
11287 _LT_EOF
11288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11289 (eval $ac_link) 2>&5
11290 ac_status=$?
11291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11292 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11293 (./conftest; exit; ) >&5 2>/dev/null
11294 lt_status=$?
11295 case x$lt_status in
11296 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11297 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11298 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11299 esac
11300 else :
11301 # compilation failed
11302 lt_cv_dlopen_self=no
11303 fi
11304 fi
11305 rm -fr conftest*
11306
11307
11308 fi
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11310 $as_echo "$lt_cv_dlopen_self" >&6; }
11311
11312 if test "x$lt_cv_dlopen_self" = xyes; then
11313 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11315 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11316 if ${lt_cv_dlopen_self_static+:} false; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 if test "$cross_compiling" = yes; then :
11320 lt_cv_dlopen_self_static=cross
11321 else
11322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11323 lt_status=$lt_dlunknown
11324 cat > conftest.$ac_ext <<_LT_EOF
11325 #line 11325 "configure"
11326 #include "confdefs.h"
11327
11328 #if HAVE_DLFCN_H
11329 #include <dlfcn.h>
11330 #endif
11331
11332 #include <stdio.h>
11333
11334 #ifdef RTLD_GLOBAL
11335 # define LT_DLGLOBAL RTLD_GLOBAL
11336 #else
11337 # ifdef DL_GLOBAL
11338 # define LT_DLGLOBAL DL_GLOBAL
11339 # else
11340 # define LT_DLGLOBAL 0
11341 # endif
11342 #endif
11343
11344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11345 find out it does not work in some platform. */
11346 #ifndef LT_DLLAZY_OR_NOW
11347 # ifdef RTLD_LAZY
11348 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11349 # else
11350 # ifdef DL_LAZY
11351 # define LT_DLLAZY_OR_NOW DL_LAZY
11352 # else
11353 # ifdef RTLD_NOW
11354 # define LT_DLLAZY_OR_NOW RTLD_NOW
11355 # else
11356 # ifdef DL_NOW
11357 # define LT_DLLAZY_OR_NOW DL_NOW
11358 # else
11359 # define LT_DLLAZY_OR_NOW 0
11360 # endif
11361 # endif
11362 # endif
11363 # endif
11364 #endif
11365
11366 void fnord() { int i=42;}
11367 int main ()
11368 {
11369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11370 int status = $lt_dlunknown;
11371
11372 if (self)
11373 {
11374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11375 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11376 /* dlclose (self); */
11377 }
11378 else
11379 puts (dlerror ());
11380
11381 return status;
11382 }
11383 _LT_EOF
11384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11385 (eval $ac_link) 2>&5
11386 ac_status=$?
11387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11388 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11389 (./conftest; exit; ) >&5 2>/dev/null
11390 lt_status=$?
11391 case x$lt_status in
11392 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11393 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11394 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11395 esac
11396 else :
11397 # compilation failed
11398 lt_cv_dlopen_self_static=no
11399 fi
11400 fi
11401 rm -fr conftest*
11402
11403
11404 fi
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11406 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11407 fi
11408
11409 CPPFLAGS="$save_CPPFLAGS"
11410 LDFLAGS="$save_LDFLAGS"
11411 LIBS="$save_LIBS"
11412 ;;
11413 esac
11414
11415 case $lt_cv_dlopen_self in
11416 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11417 *) enable_dlopen_self=unknown ;;
11418 esac
11419
11420 case $lt_cv_dlopen_self_static in
11421 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11422 *) enable_dlopen_self_static=unknown ;;
11423 esac
11424 fi
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442 striplib=
11443 old_striplib=
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11445 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11446 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11447 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11448 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11450 $as_echo "yes" >&6; }
11451 else
11452 # FIXME - insert some real tests, host_os isn't really good enough
11453 case $host_os in
11454 darwin*)
11455 if test -n "$STRIP" ; then
11456 striplib="$STRIP -x"
11457 old_striplib="$STRIP -S"
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11459 $as_echo "yes" >&6; }
11460 else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462 $as_echo "no" >&6; }
11463 fi
11464 ;;
11465 *)
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11468 ;;
11469 esac
11470 fi
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483 # Report which library types will actually be built
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11485 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11487 $as_echo "$can_build_shared" >&6; }
11488
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11490 $as_echo_n "checking whether to build shared libraries... " >&6; }
11491 test "$can_build_shared" = "no" && enable_shared=no
11492
11493 # On AIX, shared libraries and static libraries use the same namespace, and
11494 # are all built from PIC.
11495 case $host_os in
11496 aix3*)
11497 test "$enable_shared" = yes && enable_static=no
11498 if test -n "$RANLIB"; then
11499 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11500 postinstall_cmds='$RANLIB $lib'
11501 fi
11502 ;;
11503
11504 aix[4-9]*)
11505 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11506 test "$enable_shared" = yes && enable_static=no
11507 fi
11508 ;;
11509 esac
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11511 $as_echo "$enable_shared" >&6; }
11512
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11514 $as_echo_n "checking whether to build static libraries... " >&6; }
11515 # Make sure either enable_shared or enable_static is yes.
11516 test "$enable_shared" = yes || enable_static=yes
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11518 $as_echo "$enable_static" >&6; }
11519
11520
11521
11522
11523 fi
11524 ac_ext=c
11525 ac_cpp='$CPP $CPPFLAGS'
11526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11529
11530 CC="$lt_save_CC"
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544 ac_config_commands="$ac_config_commands libtool"
11545
11546
11547
11548
11549 # Only expand once:
11550
11551
11552
11553 LIBTOOL="$LIBTOOL --silent"
11554
11555 case "$host_os" in
11556 *cygwin*)
11557
11558 cat >>confdefs.h <<_ACEOF
11559 #define CYGWIN 1
11560 _ACEOF
11561
11562
11563 cat >>confdefs.h <<_ACEOF
11564 #define WINDOWS 1
11565 _ACEOF
11566
11567 ;;
11568 *mingw*)
11569
11570 cat >>confdefs.h <<_ACEOF
11571 #define MINGW 1
11572 _ACEOF
11573
11574
11575 cat >>confdefs.h <<_ACEOF
11576 #define WINDOWS 1
11577 _ACEOF
11578
11579 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
11580 if test "x$ac_cv_header_windows_h" = xyes; then :
11581
11582 else
11583 as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5
11584 fi
11585
11586
11587 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11588 if test "x$ac_cv_header_winsock2_h" = xyes; then :
11589
11590 else
11591 as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5
11592 fi
11593
11594
11595
11596 cat >>confdefs.h <<_ACEOF
11597 #define HAVE_WINSOCK2_H 1
11598 _ACEOF
11599
11600
11601 cat >>confdefs.h <<_ACEOF
11602 #define HAVE_WINSOCK_H 1
11603 _ACEOF
11604
11605 LIBS="$LIBS -lws2_32 -liphlpapi"
11606 is_mingw="yes"
11607 ;;
11608 *interix*)
11609 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
11610 ;;
11611 *solaris*)
11612 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
11613 ;;
11614 *)
11615 ;;
11616 esac
11617
11618 if test "$is_mingw" = "yes"; then
11619 MINGW_TRUE=
11620 MINGW_FALSE='#'
11621 else
11622 MINGW_TRUE='#'
11623 MINGW_FALSE=
11624 fi
11625
11626
11627
11628 # backwards support for IRC_CFLAGS
11629 CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
11630
11631 if test "$libexecdir" = '${exec_prefix}/libexec' &&
11632 test "$localstatedir" = '${prefix}/var'; then
11633 libexecdir='${bindir}'
11634 localstatedir='${prefix}'
11635 fi
11636
11637 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11638 if test "x$ac_cv_type_pid_t" = xyes; then :
11639
11640 else
11641
11642 cat >>confdefs.h <<_ACEOF
11643 #define pid_t int
11644 _ACEOF
11645
11646 fi
11647
11648 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11649 if test "x$ac_cv_type_size_t" = xyes; then :
11650
11651 else
11652
11653 cat >>confdefs.h <<_ACEOF
11654 #define size_t unsigned int
11655 _ACEOF
11656
11657 fi
11658
11659 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11660 if test "x$ac_cv_type_ssize_t" = xyes; then :
11661
11662 else
11663
11664 cat >>confdefs.h <<_ACEOF
11665 #define ssize_t int
11666 _ACEOF
11667
11668 fi
11669
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11671 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11672 if ${ac_cv_type_uid_t+:} false; then :
11673 $as_echo_n "(cached) " >&6
11674 else
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11677 #include <sys/types.h>
11678
11679 _ACEOF
11680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11681 $EGREP "uid_t" >/dev/null 2>&1; then :
11682 ac_cv_type_uid_t=yes
11683 else
11684 ac_cv_type_uid_t=no
11685 fi
11686 rm -f conftest*
11687
11688 fi
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11690 $as_echo "$ac_cv_type_uid_t" >&6; }
11691 if test $ac_cv_type_uid_t = no; then
11692
11693 $as_echo "#define uid_t int" >>confdefs.h
11694
11695
11696 $as_echo "#define gid_t int" >>confdefs.h
11697
11698 fi
11699
11700
11701
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11703 $as_echo_n "checking for ANSI C header files... " >&6; }
11704 if ${ac_cv_header_stdc+:} false; then :
11705 $as_echo_n "(cached) " >&6
11706 else
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11709 #include <stdlib.h>
11710 #include <stdarg.h>
11711 #include <string.h>
11712 #include <float.h>
11713
11714 int
11715 main ()
11716 {
11717
11718 ;
11719 return 0;
11720 }
11721 _ACEOF
11722 if ac_fn_c_try_compile "$LINENO"; then :
11723 ac_cv_header_stdc=yes
11724 else
11725 ac_cv_header_stdc=no
11726 fi
11727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11728
11729 if test $ac_cv_header_stdc = yes; then
11730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11733 #include <string.h>
11734
11735 _ACEOF
11736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11737 $EGREP "memchr" >/dev/null 2>&1; then :
11738
11739 else
11740 ac_cv_header_stdc=no
11741 fi
11742 rm -f conftest*
11743
11744 fi
11745
11746 if test $ac_cv_header_stdc = yes; then
11747 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11750 #include <stdlib.h>
11751
11752 _ACEOF
11753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11754 $EGREP "free" >/dev/null 2>&1; then :
11755
11756 else
11757 ac_cv_header_stdc=no
11758 fi
11759 rm -f conftest*
11760
11761 fi
11762
11763 if test $ac_cv_header_stdc = yes; then
11764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11765 if test "$cross_compiling" = yes; then :
11766 :
11767 else
11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769 /* end confdefs.h. */
11770 #include <ctype.h>
11771 #include <stdlib.h>
11772 #if ((' ' & 0x0FF) == 0x020)
11773 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11774 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11775 #else
11776 # define ISLOWER(c) \
11777 (('a' <= (c) && (c) <= 'i') \
11778 || ('j' <= (c) && (c) <= 'r') \
11779 || ('s' <= (c) && (c) <= 'z'))
11780 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11781 #endif
11782
11783 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11784 int
11785 main ()
11786 {
11787 int i;
11788 for (i = 0; i < 256; i++)
11789 if (XOR (islower (i), ISLOWER (i))
11790 || toupper (i) != TOUPPER (i))
11791 return 2;
11792 return 0;
11793 }
11794 _ACEOF
11795 if ac_fn_c_try_run "$LINENO"; then :
11796
11797 else
11798 ac_cv_header_stdc=no
11799 fi
11800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11801 conftest.$ac_objext conftest.beam conftest.$ac_ext
11802 fi
11803
11804 fi
11805 fi
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11807 $as_echo "$ac_cv_header_stdc" >&6; }
11808 if test $ac_cv_header_stdc = yes; then
11809
11810 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11811
11812 fi
11813
11814
11815 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
11816 do :
11817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11818 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11819 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11820 cat >>confdefs.h <<_ACEOF
11821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11822 _ACEOF
11823
11824 fi
11825
11826 done
11827
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11829 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11830 if ${ac_cv_header_time+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11835 #include <sys/types.h>
11836 #include <sys/time.h>
11837 #include <time.h>
11838
11839 int
11840 main ()
11841 {
11842 if ((struct tm *) 0)
11843 return 0;
11844 ;
11845 return 0;
11846 }
11847 _ACEOF
11848 if ac_fn_c_try_compile "$LINENO"; then :
11849 ac_cv_header_time=yes
11850 else
11851 ac_cv_header_time=no
11852 fi
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 fi
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11856 $as_echo "$ac_cv_header_time" >&6; }
11857 if test $ac_cv_header_time = yes; then
11858
11859 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11860
11861 fi
11862
11863
11864
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11866 $as_echo_n "checking for library containing socket... " >&6; }
11867 if ${ac_cv_search_socket+:} false; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 ac_func_search_save_LIBS=$LIBS
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873
11874 /* Override any GCC internal prototype to avoid an error.
11875 Use char because int might match the return type of a GCC
11876 builtin and then its argument prototype would still apply. */
11877 #ifdef __cplusplus
11878 extern "C"
11879 #endif
11880 char socket ();
11881 int
11882 main ()
11883 {
11884 return socket ();
11885 ;
11886 return 0;
11887 }
11888 _ACEOF
11889 for ac_lib in '' socket; do
11890 if test -z "$ac_lib"; then
11891 ac_res="none required"
11892 else
11893 ac_res=-l$ac_lib
11894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11895 fi
11896 if ac_fn_c_try_link "$LINENO"; then :
11897 ac_cv_search_socket=$ac_res
11898 fi
11899 rm -f core conftest.err conftest.$ac_objext \
11900 conftest$ac_exeext
11901 if ${ac_cv_search_socket+:} false; then :
11902 break
11903 fi
11904 done
11905 if ${ac_cv_search_socket+:} false; then :
11906
11907 else
11908 ac_cv_search_socket=no
11909 fi
11910 rm conftest.$ac_ext
11911 LIBS=$ac_func_search_save_LIBS
11912 fi
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11914 $as_echo "$ac_cv_search_socket" >&6; }
11915 ac_res=$ac_cv_search_socket
11916 if test "$ac_res" != no; then :
11917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11918
11919 fi
11920
11921
11922
11923 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
11924 #ifdef HAVE_SYS_TYPES_H
11925 #include <sys/types.h>
11926 #endif
11927 #ifdef HAVE_SYS_SOCKET_H
11928 #include <sys/socket.h>
11929 #endif
11930 #ifdef HAVE_WINSOCK2_H
11931 #include <winsock2.h>
11932 #endif
11933
11934 "
11935 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11936
11937 $as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
11938
11939 fi
11940
11941
11942 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11943 #include <sys/socket.h>
11944 "
11945 if test "x$ac_cv_type_socklen_t" = xyes; then :
11946 rb_cv_socklen_t=socklen_t
11947 else
11948
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
11950 $as_echo_n "checking for socklen_t equivalent... " >&6; }
11951 if ${rb_cv_socklen_t+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954
11955 # Systems have either "struct sockaddr *" or
11956 # "void *" as the second argument to getpeername
11957 rb_cv_socklen_t=
11958 for arg2 in "struct sockaddr" void; do
11959 for t in int size_t unsigned long "unsigned long"; do
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962
11963 #ifdef HAVE_SYS_TYPES_H
11964 #include <sys/types.h>
11965 #endif
11966 #ifdef HAVE_SYS_SOCKET_H
11967 #include <sys/socket.h>
11968 #endif
11969 #ifdef HAVE_WINSOCK2_H
11970 #include <winsock2.h>
11971 #endif
11972 int getpeername (int, $arg2 *, $t *);
11973
11974 int
11975 main ()
11976 {
11977
11978 $t len;
11979 getpeername(0,0,&len);
11980
11981 ;
11982 return 0;
11983 }
11984 _ACEOF
11985 if ac_fn_c_try_compile "$LINENO"; then :
11986
11987 rb_cv_socklen_t="$t"
11988 break
11989
11990 fi
11991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 done
11993 done
11994
11995 if test "x$rb_cv_socklen_t" = x; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
11997 $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
11998 rb_cv_socklen_t=int
11999 fi
12000
12001 fi
12002
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
12004 $as_echo "$rb_cv_socklen_t" >&6; }
12005 fi
12006
12007
12008 rb_socklen_t=$rb_cv_socklen_t
12009
12010
12011
12012
12013
12014 # Check whether --enable-ipv6 was given.
12015 if test "${enable_ipv6+set}" = set; then :
12016 enableval=$enable_ipv6; ipv6=$enableval
12017 else
12018 ipv6=yes
12019 fi
12020
12021
12022 if test x$ipv6 != xyes; then
12023 have_v6="no"
12024 else
12025
12026 have_v6=yes
12027
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
12029 $as_echo_n "checking for INET6 protocol support... " >&6; }
12030 if ${rb_cv_proto_inet6+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032 else
12033
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12036
12037 #include <sys/types.h>
12038 #include <sys/socket.h>
12039
12040 #ifndef PF_INET6
12041 #error Missing PF_INET6
12042 #endif
12043 #ifndef AF_INET6
12044 #error Mlssing AF_INET6
12045 #endif
12046
12047 _ACEOF
12048 if ac_fn_c_try_cpp "$LINENO"; then :
12049
12050 rb_cv_proto_inet6=yes
12051
12052 else
12053
12054 rb_cv_proto_inet6=no
12055
12056 fi
12057 rm -f conftest.err conftest.i conftest.$ac_ext
12058
12059 fi
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
12061 $as_echo "$rb_cv_proto_inet6" >&6; }
12062
12063 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
12064
12065 else :
12066
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
12068 $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
12069 have_v6=no
12070
12071 fi
12072
12073
12074 if test "X$have_v6" = "Xyes"; then
12075
12076 rb_have_sockaddr_in6=
12077 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
12078 #include <sys/types.h>
12079 #include <sys/socket.h>
12080 #include <netinet/in.h>
12081
12082 "
12083 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
12084
12085 cat >>confdefs.h <<_ACEOF
12086 #define HAVE_STRUCT_SOCKADDR_IN6 1
12087 _ACEOF
12088
12089
12090 rb_have_sockaddr_in6=yes
12091
12092 else
12093
12094 rb_have_sockaddr_in6=no
12095
12096 fi
12097
12098
12099 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
12100
12101 else :
12102
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
12104 $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
12105 have_v6=no
12106
12107 fi
12108
12109 fi
12110
12111 fi
12112
12113 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
12114 #include <sys/types.h>
12115 #include <sys/socket.h>
12116
12117 "
12118 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
12119
12120 cat >>confdefs.h <<_ACEOF
12121 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12122 _ACEOF
12123
12124
12125 rb_have_sockaddr_storage=yes
12126
12127 fi
12128
12129
12130
12131 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
12132 if test "x$ac_cv_header_stdarg_h" = xyes; then :
12133
12134 else
12135 as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
12136 fi
12137
12138
12139
12140 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
12141 #include <sys/socket.h>
12142 "
12143 if test "x$ac_cv_type_sa_family_t" = xyes; then :
12144
12145 else
12146
12147 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
12148
12149 fi
12150
12151
12152
12153 for ac_func in 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
12154 do :
12155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12156 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12157 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12158 cat >>confdefs.h <<_ACEOF
12159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12160 _ACEOF
12161
12162 fi
12163 done
12164
12165
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
12167 $as_echo_n "checking for library containing nanosleep... " >&6; }
12168 if ${ac_cv_search_nanosleep+:} false; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 ac_func_search_save_LIBS=$LIBS
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12174
12175 /* Override any GCC internal prototype to avoid an error.
12176 Use char because int might match the return type of a GCC
12177 builtin and then its argument prototype would still apply. */
12178 #ifdef __cplusplus
12179 extern "C"
12180 #endif
12181 char nanosleep ();
12182 int
12183 main ()
12184 {
12185 return nanosleep ();
12186 ;
12187 return 0;
12188 }
12189 _ACEOF
12190 for ac_lib in '' rt posix4; do
12191 if test -z "$ac_lib"; then
12192 ac_res="none required"
12193 else
12194 ac_res=-l$ac_lib
12195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12196 fi
12197 if ac_fn_c_try_link "$LINENO"; then :
12198 ac_cv_search_nanosleep=$ac_res
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext
12202 if ${ac_cv_search_nanosleep+:} false; then :
12203 break
12204 fi
12205 done
12206 if ${ac_cv_search_nanosleep+:} false; then :
12207
12208 else
12209 ac_cv_search_nanosleep=no
12210 fi
12211 rm conftest.$ac_ext
12212 LIBS=$ac_func_search_save_LIBS
12213 fi
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
12215 $as_echo "$ac_cv_search_nanosleep" >&6; }
12216 ac_res=$ac_cv_search_nanosleep
12217 if test "$ac_res" != no; then :
12218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12219
12220 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
12221
12222 fi
12223
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
12225 $as_echo_n "checking for library containing timer_create... " >&6; }
12226 if ${ac_cv_search_timer_create+:} false; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 ac_func_search_save_LIBS=$LIBS
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12232
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12236 #ifdef __cplusplus
12237 extern "C"
12238 #endif
12239 char timer_create ();
12240 int
12241 main ()
12242 {
12243 return timer_create ();
12244 ;
12245 return 0;
12246 }
12247 _ACEOF
12248 for ac_lib in '' rt; do
12249 if test -z "$ac_lib"; then
12250 ac_res="none required"
12251 else
12252 ac_res=-l$ac_lib
12253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12254 fi
12255 if ac_fn_c_try_link "$LINENO"; then :
12256 ac_cv_search_timer_create=$ac_res
12257 fi
12258 rm -f core conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext
12260 if ${ac_cv_search_timer_create+:} false; then :
12261 break
12262 fi
12263 done
12264 if ${ac_cv_search_timer_create+:} false; then :
12265
12266 else
12267 ac_cv_search_timer_create=no
12268 fi
12269 rm conftest.$ac_ext
12270 LIBS=$ac_func_search_save_LIBS
12271 fi
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
12273 $as_echo "$ac_cv_search_timer_create" >&6; }
12274 ac_res=$ac_cv_search_timer_create
12275 if test "$ac_res" != no; then :
12276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12277
12278 $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
12279
12280 fi
12281
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
12283 $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
12284 if ${rb__cv_timer_create_works+:} false; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 if test "$cross_compiling" = yes; then :
12288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12290 as_fn_error $? "cannot run test program while cross compiling
12291 See \`config.log' for more details" "$LINENO" 5; }
12292 else
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12295
12296 #ifdef HAVE_TIME_H
12297 #include <time.h>
12298 #endif
12299 #ifdef HAVE_SIGNAL_H
12300 #include <signal.h>
12301 #endif
12302 #ifdef HAVE_UNISTD_H
12303 #include <unistd.h>
12304 #endif
12305 int main(int argc, char *argv[])
12306 {
12307 #if HAVE_TIMER_CREATE
12308 struct sigevent ev;
12309 timer_t timer;
12310 ev.sigev_notify = SIGEV_SIGNAL;
12311 ev.sigev_signo = SIGVTALRM;
12312 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
12313 return 1;
12314 }
12315 #else
12316 return 1;
12317 #endif
12318 return 0;
12319 }
12320
12321 _ACEOF
12322 if ac_fn_c_try_run "$LINENO"; then :
12323 rb__cv_timer_create_works=yes
12324 else
12325 rb__cv_timer_create_works=no
12326 fi
12327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12328 conftest.$ac_objext conftest.beam conftest.$ac_ext
12329 fi
12330
12331
12332 fi
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
12334 $as_echo "$rb__cv_timer_create_works" >&6; }
12335 case $rb__cv_timer_create_works in
12336 yes)
12337 $as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
12338 ;;
12339 esac
12340
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
12342 $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
12343 if ${rb__cv_timerfd_create_works+:} false; then :
12344 $as_echo_n "(cached) " >&6
12345 else
12346 if test "$cross_compiling" = yes; then :
12347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12349 as_fn_error $? "cannot run test program while cross compiling
12350 See \`config.log' for more details" "$LINENO" 5; }
12351 else
12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353 /* end confdefs.h. */
12354
12355 #ifdef HAVE_TIME_H
12356 #include <time.h>
12357 #endif
12358 #ifdef HAVE_SIGNAL_H
12359 #include <signal.h>
12360 #endif
12361 #ifdef HAVE_UNISTD_H
12362 #include <unistd.h>
12363 #endif
12364 #ifdef HAVE_SYS_TIMERFD_H
12365 #include <sys/timerfd.h>
12366 #endif
12367 int main(int argc, char *argv[])
12368 {
12369 #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
12370 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
12371 return 1;
12372 }
12373 #else
12374 return 1;
12375 #endif
12376 return 0;
12377 }
12378
12379 _ACEOF
12380 if ac_fn_c_try_run "$LINENO"; then :
12381 rb__cv_timerfd_create_works=yes
12382 else
12383 rb__cv_timerfd_create_works=no
12384 fi
12385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12386 conftest.$ac_objext conftest.beam conftest.$ac_ext
12387 fi
12388
12389
12390 fi
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
12392 $as_echo "$rb__cv_timerfd_create_works" >&6; }
12393 case $rb__cv_timerfd_create_works in
12394 yes)
12395 $as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
12396 ;;
12397 esac
12398
12399
12400 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12401 # for constant arguments. Useless!
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12403 $as_echo_n "checking for working alloca.h... " >&6; }
12404 if ${ac_cv_working_alloca_h+:} false; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12409 #include <alloca.h>
12410 int
12411 main ()
12412 {
12413 char *p = (char *) alloca (2 * sizeof (int));
12414 if (p) return 0;
12415 ;
12416 return 0;
12417 }
12418 _ACEOF
12419 if ac_fn_c_try_link "$LINENO"; then :
12420 ac_cv_working_alloca_h=yes
12421 else
12422 ac_cv_working_alloca_h=no
12423 fi
12424 rm -f core conftest.err conftest.$ac_objext \
12425 conftest$ac_exeext conftest.$ac_ext
12426 fi
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12428 $as_echo "$ac_cv_working_alloca_h" >&6; }
12429 if test $ac_cv_working_alloca_h = yes; then
12430
12431 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12432
12433 fi
12434
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12436 $as_echo_n "checking for alloca... " >&6; }
12437 if ${ac_cv_func_alloca_works+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442 #ifdef __GNUC__
12443 # define alloca __builtin_alloca
12444 #else
12445 # ifdef _MSC_VER
12446 # include <malloc.h>
12447 # define alloca _alloca
12448 # else
12449 # ifdef HAVE_ALLOCA_H
12450 # include <alloca.h>
12451 # else
12452 # ifdef _AIX
12453 #pragma alloca
12454 # else
12455 # ifndef alloca /* predefined by HP cc +Olibcalls */
12456 void *alloca (size_t);
12457 # endif
12458 # endif
12459 # endif
12460 # endif
12461 #endif
12462
12463 int
12464 main ()
12465 {
12466 char *p = (char *) alloca (1);
12467 if (p) return 0;
12468 ;
12469 return 0;
12470 }
12471 _ACEOF
12472 if ac_fn_c_try_link "$LINENO"; then :
12473 ac_cv_func_alloca_works=yes
12474 else
12475 ac_cv_func_alloca_works=no
12476 fi
12477 rm -f core conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
12479 fi
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12481 $as_echo "$ac_cv_func_alloca_works" >&6; }
12482
12483 if test $ac_cv_func_alloca_works = yes; then
12484
12485 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12486
12487 else
12488 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12489 # that cause trouble. Some versions do not even contain alloca or
12490 # contain a buggy version. If you still want to use their alloca,
12491 # use ar to extract alloca.o from them instead of compiling alloca.c.
12492
12493 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12494
12495 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12496
12497
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12499 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12500 if ${ac_cv_os_cray+:} false; then :
12501 $as_echo_n "(cached) " >&6
12502 else
12503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h. */
12505 #if defined CRAY && ! defined CRAY2
12506 webecray
12507 #else
12508 wenotbecray
12509 #endif
12510
12511 _ACEOF
12512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12513 $EGREP "webecray" >/dev/null 2>&1; then :
12514 ac_cv_os_cray=yes
12515 else
12516 ac_cv_os_cray=no
12517 fi
12518 rm -f conftest*
12519
12520 fi
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12522 $as_echo "$ac_cv_os_cray" >&6; }
12523 if test $ac_cv_os_cray = yes; then
12524 for ac_func in _getb67 GETB67 getb67; do
12525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12526 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12527 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12528
12529 cat >>confdefs.h <<_ACEOF
12530 #define CRAY_STACKSEG_END $ac_func
12531 _ACEOF
12532
12533 break
12534 fi
12535
12536 done
12537 fi
12538
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12540 $as_echo_n "checking stack direction for C alloca... " >&6; }
12541 if ${ac_cv_c_stack_direction+:} false; then :
12542 $as_echo_n "(cached) " >&6
12543 else
12544 if test "$cross_compiling" = yes; then :
12545 ac_cv_c_stack_direction=0
12546 else
12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12549 $ac_includes_default
12550 int
12551 find_stack_direction ()
12552 {
12553 static char *addr = 0;
12554 auto char dummy;
12555 if (addr == 0)
12556 {
12557 addr = &dummy;
12558 return find_stack_direction ();
12559 }
12560 else
12561 return (&dummy > addr) ? 1 : -1;
12562 }
12563
12564 int
12565 main ()
12566 {
12567 return find_stack_direction () < 0;
12568 }
12569 _ACEOF
12570 if ac_fn_c_try_run "$LINENO"; then :
12571 ac_cv_c_stack_direction=1
12572 else
12573 ac_cv_c_stack_direction=-1
12574 fi
12575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12576 conftest.$ac_objext conftest.beam conftest.$ac_ext
12577 fi
12578
12579 fi
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12581 $as_echo "$ac_cv_c_stack_direction" >&6; }
12582 cat >>confdefs.h <<_ACEOF
12583 #define STACK_DIRECTION $ac_cv_c_stack_direction
12584 _ACEOF
12585
12586
12587 fi
12588
12589 for ac_header in vfork.h
12590 do :
12591 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12592 if test "x$ac_cv_header_vfork_h" = xyes; then :
12593 cat >>confdefs.h <<_ACEOF
12594 #define HAVE_VFORK_H 1
12595 _ACEOF
12596
12597 fi
12598
12599 done
12600
12601 for ac_func in fork vfork
12602 do :
12603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12604 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12605 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12606 cat >>confdefs.h <<_ACEOF
12607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12608 _ACEOF
12609
12610 fi
12611 done
12612
12613 if test "x$ac_cv_func_fork" = xyes; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12615 $as_echo_n "checking for working fork... " >&6; }
12616 if ${ac_cv_func_fork_works+:} false; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 if test "$cross_compiling" = yes; then :
12620 ac_cv_func_fork_works=cross
12621 else
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12624 $ac_includes_default
12625 int
12626 main ()
12627 {
12628
12629 /* By Ruediger Kuhlmann. */
12630 return fork () < 0;
12631
12632 ;
12633 return 0;
12634 }
12635 _ACEOF
12636 if ac_fn_c_try_run "$LINENO"; then :
12637 ac_cv_func_fork_works=yes
12638 else
12639 ac_cv_func_fork_works=no
12640 fi
12641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12642 conftest.$ac_objext conftest.beam conftest.$ac_ext
12643 fi
12644
12645 fi
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12647 $as_echo "$ac_cv_func_fork_works" >&6; }
12648
12649 else
12650 ac_cv_func_fork_works=$ac_cv_func_fork
12651 fi
12652 if test "x$ac_cv_func_fork_works" = xcross; then
12653 case $host in
12654 *-*-amigaos* | *-*-msdosdjgpp*)
12655 # Override, as these systems have only a dummy fork() stub
12656 ac_cv_func_fork_works=no
12657 ;;
12658 *)
12659 ac_cv_func_fork_works=yes
12660 ;;
12661 esac
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12663 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12664 fi
12665 ac_cv_func_vfork_works=$ac_cv_func_vfork
12666 if test "x$ac_cv_func_vfork" = xyes; then
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12668 $as_echo_n "checking for working vfork... " >&6; }
12669 if ${ac_cv_func_vfork_works+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 if test "$cross_compiling" = yes; then :
12673 ac_cv_func_vfork_works=cross
12674 else
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677 /* Thanks to Paul Eggert for this test. */
12678 $ac_includes_default
12679 #include <sys/wait.h>
12680 #ifdef HAVE_VFORK_H
12681 # include <vfork.h>
12682 #endif
12683 /* On some sparc systems, changes by the child to local and incoming
12684 argument registers are propagated back to the parent. The compiler
12685 is told about this with #include <vfork.h>, but some compilers
12686 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12687 static variable whose address is put into a register that is
12688 clobbered by the vfork. */
12689 static void
12690 #ifdef __cplusplus
12691 sparc_address_test (int arg)
12692 # else
12693 sparc_address_test (arg) int arg;
12694 #endif
12695 {
12696 static pid_t child;
12697 if (!child) {
12698 child = vfork ();
12699 if (child < 0) {
12700 perror ("vfork");
12701 _exit(2);
12702 }
12703 if (!child) {
12704 arg = getpid();
12705 write(-1, "", 0);
12706 _exit (arg);
12707 }
12708 }
12709 }
12710
12711 int
12712 main ()
12713 {
12714 pid_t parent = getpid ();
12715 pid_t child;
12716
12717 sparc_address_test (0);
12718
12719 child = vfork ();
12720
12721 if (child == 0) {
12722 /* Here is another test for sparc vfork register problems. This
12723 test uses lots of local variables, at least as many local
12724 variables as main has allocated so far including compiler
12725 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12726 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12727 reuse the register of parent for one of the local variables,
12728 since it will think that parent can't possibly be used any more
12729 in this routine. Assigning to the local variable will thus
12730 munge parent in the parent process. */
12731 pid_t
12732 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12733 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12734 /* Convince the compiler that p..p7 are live; otherwise, it might
12735 use the same hardware register for all 8 local variables. */
12736 if (p != p1 || p != p2 || p != p3 || p != p4
12737 || p != p5 || p != p6 || p != p7)
12738 _exit(1);
12739
12740 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12741 from child file descriptors. If the child closes a descriptor
12742 before it execs or exits, this munges the parent's descriptor
12743 as well. Test for this by closing stdout in the child. */
12744 _exit(close(fileno(stdout)) != 0);
12745 } else {
12746 int status;
12747 struct stat st;
12748
12749 while (wait(&status) != child)
12750 ;
12751 return (
12752 /* Was there some problem with vforking? */
12753 child < 0
12754
12755 /* Did the child fail? (This shouldn't happen.) */
12756 || status
12757
12758 /* Did the vfork/compiler bug occur? */
12759 || parent != getpid()
12760
12761 /* Did the file descriptor bug occur? */
12762 || fstat(fileno(stdout), &st) != 0
12763 );
12764 }
12765 }
12766 _ACEOF
12767 if ac_fn_c_try_run "$LINENO"; then :
12768 ac_cv_func_vfork_works=yes
12769 else
12770 ac_cv_func_vfork_works=no
12771 fi
12772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12773 conftest.$ac_objext conftest.beam conftest.$ac_ext
12774 fi
12775
12776 fi
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12778 $as_echo "$ac_cv_func_vfork_works" >&6; }
12779
12780 fi;
12781 if test "x$ac_cv_func_fork_works" = xcross; then
12782 ac_cv_func_vfork_works=$ac_cv_func_vfork
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12784 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12785 fi
12786
12787 if test "x$ac_cv_func_vfork_works" = xyes; then
12788
12789 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12790
12791 else
12792
12793 $as_echo "#define vfork fork" >>confdefs.h
12794
12795 fi
12796 if test "x$ac_cv_func_fork_works" = xyes; then
12797
12798 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12799
12800 fi
12801
12802
12803
12804
12805 for ac_header in $ac_header_list
12806 do :
12807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12808 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12809 "
12810 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12811 cat >>confdefs.h <<_ACEOF
12812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12813 _ACEOF
12814
12815 fi
12816
12817 done
12818
12819
12820
12821
12822
12823
12824
12825
12826 for ac_func in getpagesize
12827 do :
12828 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12829 if test "x$ac_cv_func_getpagesize" = xyes; then :
12830 cat >>confdefs.h <<_ACEOF
12831 #define HAVE_GETPAGESIZE 1
12832 _ACEOF
12833
12834 fi
12835 done
12836
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12838 $as_echo_n "checking for working mmap... " >&6; }
12839 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12840 $as_echo_n "(cached) " >&6
12841 else
12842 if test "$cross_compiling" = yes; then :
12843 ac_cv_func_mmap_fixed_mapped=no
12844 else
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12847 $ac_includes_default
12848 /* malloc might have been renamed as rpl_malloc. */
12849 #undef malloc
12850
12851 /* Thanks to Mike Haertel and Jim Avera for this test.
12852 Here is a matrix of mmap possibilities:
12853 mmap private not fixed
12854 mmap private fixed at somewhere currently unmapped
12855 mmap private fixed at somewhere already mapped
12856 mmap shared not fixed
12857 mmap shared fixed at somewhere currently unmapped
12858 mmap shared fixed at somewhere already mapped
12859 For private mappings, we should verify that changes cannot be read()
12860 back from the file, nor mmap's back from the file at a different
12861 address. (There have been systems where private was not correctly
12862 implemented like the infamous i386 svr4.0, and systems where the
12863 VM page cache was not coherent with the file system buffer cache
12864 like early versions of FreeBSD and possibly contemporary NetBSD.)
12865 For shared mappings, we should conversely verify that changes get
12866 propagated back to all the places they're supposed to be.
12867
12868 Grep wants private fixed already mapped.
12869 The main things grep needs to know about mmap are:
12870 * does it exist and is it safe to write into the mmap'd area
12871 * how to use it (BSD variants) */
12872
12873 #include <fcntl.h>
12874 #include <sys/mman.h>
12875
12876 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12877 char *malloc ();
12878 #endif
12879
12880 /* This mess was copied from the GNU getpagesize.h. */
12881 #ifndef HAVE_GETPAGESIZE
12882 # ifdef _SC_PAGESIZE
12883 # define getpagesize() sysconf(_SC_PAGESIZE)
12884 # else /* no _SC_PAGESIZE */
12885 # ifdef HAVE_SYS_PARAM_H
12886 # include <sys/param.h>
12887 # ifdef EXEC_PAGESIZE
12888 # define getpagesize() EXEC_PAGESIZE
12889 # else /* no EXEC_PAGESIZE */
12890 # ifdef NBPG
12891 # define getpagesize() NBPG * CLSIZE
12892 # ifndef CLSIZE
12893 # define CLSIZE 1
12894 # endif /* no CLSIZE */
12895 # else /* no NBPG */
12896 # ifdef NBPC
12897 # define getpagesize() NBPC
12898 # else /* no NBPC */
12899 # ifdef PAGESIZE
12900 # define getpagesize() PAGESIZE
12901 # endif /* PAGESIZE */
12902 # endif /* no NBPC */
12903 # endif /* no NBPG */
12904 # endif /* no EXEC_PAGESIZE */
12905 # else /* no HAVE_SYS_PARAM_H */
12906 # define getpagesize() 8192 /* punt totally */
12907 # endif /* no HAVE_SYS_PARAM_H */
12908 # endif /* no _SC_PAGESIZE */
12909
12910 #endif /* no HAVE_GETPAGESIZE */
12911
12912 int
12913 main ()
12914 {
12915 char *data, *data2, *data3;
12916 const char *cdata2;
12917 int i, pagesize;
12918 int fd, fd2;
12919
12920 pagesize = getpagesize ();
12921
12922 /* First, make a file with some known garbage in it. */
12923 data = (char *) malloc (pagesize);
12924 if (!data)
12925 return 1;
12926 for (i = 0; i < pagesize; ++i)
12927 *(data + i) = rand ();
12928 umask (0);
12929 fd = creat ("conftest.mmap", 0600);
12930 if (fd < 0)
12931 return 2;
12932 if (write (fd, data, pagesize) != pagesize)
12933 return 3;
12934 close (fd);
12935
12936 /* Next, check that the tail of a page is zero-filled. File must have
12937 non-zero length, otherwise we risk SIGBUS for entire page. */
12938 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12939 if (fd2 < 0)
12940 return 4;
12941 cdata2 = "";
12942 if (write (fd2, cdata2, 1) != 1)
12943 return 5;
12944 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12945 if (data2 == MAP_FAILED)
12946 return 6;
12947 for (i = 0; i < pagesize; ++i)
12948 if (*(data2 + i))
12949 return 7;
12950 close (fd2);
12951 if (munmap (data2, pagesize))
12952 return 8;
12953
12954 /* Next, try to mmap the file at a fixed address which already has
12955 something else allocated at it. If we can, also make sure that
12956 we see the same garbage. */
12957 fd = open ("conftest.mmap", O_RDWR);
12958 if (fd < 0)
12959 return 9;
12960 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12961 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12962 return 10;
12963 for (i = 0; i < pagesize; ++i)
12964 if (*(data + i) != *(data2 + i))
12965 return 11;
12966
12967 /* Finally, make sure that changes to the mapped area do not
12968 percolate back to the file as seen by read(). (This is a bug on
12969 some variants of i386 svr4.0.) */
12970 for (i = 0; i < pagesize; ++i)
12971 *(data2 + i) = *(data2 + i) + 1;
12972 data3 = (char *) malloc (pagesize);
12973 if (!data3)
12974 return 12;
12975 if (read (fd, data3, pagesize) != pagesize)
12976 return 13;
12977 for (i = 0; i < pagesize; ++i)
12978 if (*(data + i) != *(data3 + i))
12979 return 14;
12980 close (fd);
12981 return 0;
12982 }
12983 _ACEOF
12984 if ac_fn_c_try_run "$LINENO"; then :
12985 ac_cv_func_mmap_fixed_mapped=yes
12986 else
12987 ac_cv_func_mmap_fixed_mapped=no
12988 fi
12989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12990 conftest.$ac_objext conftest.beam conftest.$ac_ext
12991 fi
12992
12993 fi
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12995 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12996 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12997
12998 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12999
13000 fi
13001 rm -f conftest.mmap conftest.txt
13002
13003
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
13005 $as_echo_n "checking for /dev/poll... " >&6; }
13006 if test -c "/dev/poll"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13008 $as_echo "yes" >&6; }
13009
13010 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13011
13012 else
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13015 fi
13016
13017
13018 if test "$is_mingw" = "yes"; then
13019
13020 $as_echo "#define HAVE_WIN32 1" >>confdefs.h
13021
13022 fi
13023
13024
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13026 $as_echo_n "checking for OpenSSL... " >&6; }
13027 # Check whether --enable-openssl was given.
13028 if test "${enable_openssl+set}" = set; then :
13029 enableval=$enable_openssl; cf_enable_openssl=$enableval
13030 else
13031 cf_enable_openssl="auto"
13032 fi
13033
13034
13035 if test "$cf_enable_openssl" != "no" ; then
13036 cf_openssl_basedir=""
13037 if test "$cf_enable_openssl" != "auto" &&
13038 test "$cf_enable_openssl" != "yes" ; then
13039 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
13040 else
13041 for dirs in /usr/local/ssl /usr/pkg /usr/local \
13042 /usr/local/openssl ; do
13043 if test -f "${dirs}/include/openssl/opensslv.h" ; then
13044 cf_openssl_basedir="${dirs}"
13045 break
13046 fi
13047 done
13048 unset dirs
13049 fi
13050 if test ! -z "$cf_openssl_basedir"; then
13051 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
13052 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
13053 SSL_LIBS="-L${cf_openssl_basedir}/lib"
13054 else
13055 cf_openssl_basedir=""
13056 fi
13057 else
13058 if test -f "/usr/include/openssl/opensslv.h" ; then
13059 cf_openssl_basedir="/usr"
13060 fi
13061 fi
13062
13063 if test ! -z "$cf_openssl_basedir"; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13065 $as_echo "$cf_openssl_basedir" >&6; }
13066 cf_enable_openssl="yes"
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
13069 $as_echo "not found. Specify a correct path?" >&6; }
13070 cf_enable_openssl="no"
13071 fi
13072 unset cf_openssl_basedir
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13075 $as_echo "disabled" >&6; }
13076 fi
13077
13078 save_CPPFLAGS="$CPPFLAGS"
13079 CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
13080 save_LIBS="$LIBS"
13081 LIBS="$LIBS $SSL_LIBS"
13082 if test "$cf_enable_openssl" != no; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
13084 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
13085 if test "$cross_compiling" = yes; then :
13086 cf_enable_openssl=no
13087 else
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13090 #include <openssl/opensslv.h>
13091 #include <stdlib.h>
13092 int
13093 main ()
13094 {
13095 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
13096 exit(0); else exit(1);
13097 ;
13098 return 0;
13099 }
13100 _ACEOF
13101 if ac_fn_c_try_run "$LINENO"; then :
13102 cf_enable_openssl=yes
13103 else
13104 cf_enable_openssl=no
13105 fi
13106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13107 conftest.$ac_objext conftest.beam conftest.$ac_ext
13108 fi
13109
13110
13111 if test "$cf_enable_openssl" != no; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13113 $as_echo "found" >&6; }
13114 else
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13116 $as_echo "no - OpenSSL support disabled" >&6; }
13117 fi
13118
13119 fi
13120
13121
13122 if test "$cf_enable_openssl" != no; then
13123 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
13125 $as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
13126 if ${ac_cv_lib_crypto_RAND_status+:} false; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 ac_check_lib_save_LIBS=$LIBS
13130 LIBS="-lcrypto $LIBS"
13131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13133
13134 /* Override any GCC internal prototype to avoid an error.
13135 Use char because int might match the return type of a GCC
13136 builtin and then its argument prototype would still apply. */
13137 #ifdef __cplusplus
13138 extern "C"
13139 #endif
13140 char RAND_status ();
13141 int
13142 main ()
13143 {
13144 return RAND_status ();
13145 ;
13146 return 0;
13147 }
13148 _ACEOF
13149 if ac_fn_c_try_link "$LINENO"; then :
13150 ac_cv_lib_crypto_RAND_status=yes
13151 else
13152 ac_cv_lib_crypto_RAND_status=no
13153 fi
13154 rm -f core conftest.err conftest.$ac_objext \
13155 conftest$ac_exeext conftest.$ac_ext
13156 LIBS=$ac_check_lib_save_LIBS
13157 fi
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
13159 $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
13160 if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then :
13161 cf_enable_openssl=yes
13162 else
13163 cf_enable_openssl=no
13164 fi
13165
13166 fi
13167
13168 if test "$cf_enable_openssl" != no; then
13169 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
13171 $as_echo_n "checking for SSL_read in -lssl... " >&6; }
13172 if ${ac_cv_lib_ssl_SSL_read+:} false; then :
13173 $as_echo_n "(cached) " >&6
13174 else
13175 ac_check_lib_save_LIBS=$LIBS
13176 LIBS="-lssl -lcrypto $LIBS"
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13179
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13183 #ifdef __cplusplus
13184 extern "C"
13185 #endif
13186 char SSL_read ();
13187 int
13188 main ()
13189 {
13190 return SSL_read ();
13191 ;
13192 return 0;
13193 }
13194 _ACEOF
13195 if ac_fn_c_try_link "$LINENO"; then :
13196 ac_cv_lib_ssl_SSL_read=yes
13197 else
13198 ac_cv_lib_ssl_SSL_read=no
13199 fi
13200 rm -f core conftest.err conftest.$ac_objext \
13201 conftest$ac_exeext conftest.$ac_ext
13202 LIBS=$ac_check_lib_save_LIBS
13203 fi
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
13205 $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
13206 if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then :
13207 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
13208 else
13209 cf_enable_openssl=no
13210 fi
13211
13212 fi
13213
13214
13215
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
13217 $as_echo_n "checking for GnuTLS... " >&6; }
13218 # Check whether --enable-gnutls was given.
13219 if test "${enable_gnutls+set}" = set; then :
13220 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
13221 else
13222 cf_enable_gnutls="auto"
13223 fi
13224
13225
13226 if test "$cf_enable_gnutls" != no; then
13227
13228
13229 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13230 if test -n "$ac_tool_prefix"; then
13231 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13232 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234 $as_echo_n "checking for $ac_word... " >&6; }
13235 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13236 $as_echo_n "(cached) " >&6
13237 else
13238 case $PKG_CONFIG in
13239 [\\/]* | ?:[\\/]*)
13240 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13241 ;;
13242 *)
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13245 do
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13250 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 break 2
13253 fi
13254 done
13255 done
13256 IFS=$as_save_IFS
13257
13258 ;;
13259 esac
13260 fi
13261 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13262 if test -n "$PKG_CONFIG"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13264 $as_echo "$PKG_CONFIG" >&6; }
13265 else
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13268 fi
13269
13270
13271 fi
13272 if test -z "$ac_cv_path_PKG_CONFIG"; then
13273 ac_pt_PKG_CONFIG=$PKG_CONFIG
13274 # Extract the first word of "pkg-config", so it can be a program name with args.
13275 set dummy pkg-config; ac_word=$2
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277 $as_echo_n "checking for $ac_word... " >&6; }
13278 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13279 $as_echo_n "(cached) " >&6
13280 else
13281 case $ac_pt_PKG_CONFIG in
13282 [\\/]* | ?:[\\/]*)
13283 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13284 ;;
13285 *)
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13288 do
13289 IFS=$as_save_IFS
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13293 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13295 break 2
13296 fi
13297 done
13298 done
13299 IFS=$as_save_IFS
13300
13301 ;;
13302 esac
13303 fi
13304 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13305 if test -n "$ac_pt_PKG_CONFIG"; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13307 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13308 else
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310 $as_echo "no" >&6; }
13311 fi
13312
13313 if test "x$ac_pt_PKG_CONFIG" = x; then
13314 PKG_CONFIG=""
13315 else
13316 case $cross_compiling:$ac_tool_warned in
13317 yes:)
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13320 ac_tool_warned=yes ;;
13321 esac
13322 PKG_CONFIG=$ac_pt_PKG_CONFIG
13323 fi
13324 else
13325 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13326 fi
13327
13328 fi
13329 if test -n "$PKG_CONFIG"; then
13330 _pkg_min_version=0.9.0
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13332 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13333 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13335 $as_echo "yes" >&6; }
13336 else
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338 $as_echo "no" >&6; }
13339 PKG_CONFIG=""
13340 fi
13341
13342 fi
13343
13344 pkg_failed=no
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13346 $as_echo_n "checking for GNUTLS... " >&6; }
13347
13348 if test -n "$GNUTLS_CFLAGS"; then
13349 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13350 elif test -n "$PKG_CONFIG"; then
13351 if test -n "$PKG_CONFIG" && \
13352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13353 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13354 ac_status=$?
13355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13356 test $ac_status = 0; }; then
13357 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
13358 else
13359 pkg_failed=yes
13360 fi
13361 else
13362 pkg_failed=untried
13363 fi
13364 if test -n "$GNUTLS_LIBS"; then
13365 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13366 elif test -n "$PKG_CONFIG"; then
13367 if test -n "$PKG_CONFIG" && \
13368 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13369 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13370 ac_status=$?
13371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13372 test $ac_status = 0; }; then
13373 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
13374 else
13375 pkg_failed=yes
13376 fi
13377 else
13378 pkg_failed=untried
13379 fi
13380
13381
13382
13383 if test $pkg_failed = yes; then
13384
13385 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13386 _pkg_short_errors_supported=yes
13387 else
13388 _pkg_short_errors_supported=no
13389 fi
13390 if test $_pkg_short_errors_supported = yes; then
13391 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls" 2>&1`
13392 else
13393 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls" 2>&1`
13394 fi
13395 # Put the nasty error message in config.log where it belongs
13396 echo "$GNUTLS_PKG_ERRORS" >&5
13397
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399 $as_echo "no" >&6; }
13400 cf_enable_gnutls="no"
13401 elif test $pkg_failed = untried; then
13402 cf_enable_gnutls="no"
13403 else
13404 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13405 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13407 $as_echo "yes" >&6; }
13408
13409 cf_enable_gnutls="yes"
13410
13411 fi
13412 fi
13413
13414 if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
13415 cf_enable_gnutls="no"
13416 fi
13417
13418 if test x"$cf_enable_openssl" != xno; then
13419
13420 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
13421
13422 GNUTLS_CFLAGS=""
13423 GNUTLS_LIBS=""
13424 SSL_TYPE="openssl"
13425 elif test x"$cf_enable_gnutls" != xno; then
13426
13427 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
13428
13429 SSL_LIBS=""
13430 SSL_CFLAGS=""
13431 SSL_TYPE="gnutls"
13432 fi
13433
13434
13435
13436
13437 CPPFLAGS="$save_CPPFLAGS"
13438 LIBS="$save_LIBS"
13439
13440
13441
13442
13443
13444
13445 # Check whether --enable-assert was given.
13446 if test "${enable_assert+set}" = set; then :
13447 enableval=$enable_assert; assert=$enableval
13448 else
13449 assert=no
13450 fi
13451
13452
13453 if test "$assert" = no; then
13454
13455 $as_echo "#define NDEBUG 1" >>confdefs.h
13456
13457 elif test "$assert" = soft; then
13458
13459 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
13460
13461
13462 $as_echo "#define NDEBUG 1" >>confdefs.h
13463
13464 elif test "$assert" = yes; then
13465 assert = "hard";
13466 fi
13467
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
13469 $as_echo_n "checking if you want to do a profile build... " >&6; }
13470 # Check whether --enable-profile was given.
13471 if test "${enable_profile+set}" = set; then :
13472 enableval=$enable_profile; profile=$enableval
13473 else
13474 profile=no
13475 fi
13476
13477
13478 if test "$profile" = yes; then
13479 if test "$ac_cv_c_compiler_gnu" = yes; then
13480 CFLAGS="$CFLAGS -pg -static"
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
13482 $as_echo "yes, adding -pg -static" >&6; }
13483
13484 $as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
13485
13486 else
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
13488 $as_echo "no, profile builds only work with gcc" >&6; }
13489 fi
13490 else
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492 $as_echo "no" >&6; }
13493 fi
13494
13495 # Check whether --enable-balloc was given.
13496 if test "${enable_balloc+set}" = set; then :
13497 enableval=$enable_balloc; balloc=$enableval
13498 else
13499 balloc=yes
13500 fi
13501
13502
13503 if test "$balloc" = no; then
13504
13505 $as_echo "#define NOBALLOC 1" >>confdefs.h
13506
13507 fi
13508
13509 # Check whether --enable-warnings was given.
13510 if test "${enable_warnings+set}" = set; then :
13511 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"
13512 fi
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524 if test "$prefix" = "NONE"; then
13525
13526 cat >>confdefs.h <<_ACEOF
13527 #define RB_PREFIX "$ac_default_prefix"
13528 _ACEOF
13529
13530
13531 else
13532
13533
13534 prefix=`echo $prefix | sed 's/\/$//'`
13535
13536 cat >>confdefs.h <<_ACEOF
13537 #define RB_PREFIX "$prefix"
13538 _ACEOF
13539
13540
13541 fi
13542
13543
13544
13545 ac_config_commands="$ac_config_commands include/librb-config.h"
13546
13547
13548
13549 ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
13550
13551
13552 cat >confcache <<\_ACEOF
13553 # This file is a shell script that caches the results of configure
13554 # tests run on this system so they can be shared between configure
13555 # scripts and configure runs, see configure's option --config-cache.
13556 # It is not useful on other systems. If it contains results you don't
13557 # want to keep, you may remove or edit it.
13558 #
13559 # config.status only pays attention to the cache file if you give it
13560 # the --recheck option to rerun configure.
13561 #
13562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13564 # following values.
13565
13566 _ACEOF
13567
13568 # The following way of writing the cache mishandles newlines in values,
13569 # but we know of no workaround that is simple, portable, and efficient.
13570 # So, we kill variables containing newlines.
13571 # Ultrix sh set writes to stderr and can't be redirected directly,
13572 # and sets the high bit in the cache file unless we assign to the vars.
13573 (
13574 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13575 eval ac_val=\$$ac_var
13576 case $ac_val in #(
13577 *${as_nl}*)
13578 case $ac_var in #(
13579 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13580 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13581 esac
13582 case $ac_var in #(
13583 _ | IFS | as_nl) ;; #(
13584 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13585 *) { eval $ac_var=; unset $ac_var;} ;;
13586 esac ;;
13587 esac
13588 done
13589
13590 (set) 2>&1 |
13591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13592 *${as_nl}ac_space=\ *)
13593 # `set' does not quote correctly, so add quotes: double-quote
13594 # substitution turns \\\\ into \\, and sed turns \\ into \.
13595 sed -n \
13596 "s/'/'\\\\''/g;
13597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13598 ;; #(
13599 *)
13600 # `set' quotes correctly as required by POSIX, so do not add quotes.
13601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13602 ;;
13603 esac |
13604 sort
13605 ) |
13606 sed '
13607 /^ac_cv_env_/b end
13608 t clear
13609 :clear
13610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13611 t end
13612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13613 :end' >>confcache
13614 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13615 if test -w "$cache_file"; then
13616 if test "x$cache_file" != "x/dev/null"; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13618 $as_echo "$as_me: updating cache $cache_file" >&6;}
13619 if test ! -f "$cache_file" || test -h "$cache_file"; then
13620 cat confcache >"$cache_file"
13621 else
13622 case $cache_file in #(
13623 */* | ?:*)
13624 mv -f confcache "$cache_file"$$ &&
13625 mv -f "$cache_file"$$ "$cache_file" ;; #(
13626 *)
13627 mv -f confcache "$cache_file" ;;
13628 esac
13629 fi
13630 fi
13631 else
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13633 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13634 fi
13635 fi
13636 rm -f confcache
13637
13638 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13639 # Let make expand exec_prefix.
13640 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13641
13642 DEFS=-DHAVE_CONFIG_H
13643
13644 ac_libobjs=
13645 ac_ltlibobjs=
13646 U=
13647 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13648 # 1. Remove the extension, and $U if already installed.
13649 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13650 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13652 # will be set to the directory where LIBOBJS objects are built.
13653 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13654 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13655 done
13656 LIBOBJS=$ac_libobjs
13657
13658 LTLIBOBJS=$ac_ltlibobjs
13659
13660
13661 if test -n "$EXEEXT"; then
13662 am__EXEEXT_TRUE=
13663 am__EXEEXT_FALSE='#'
13664 else
13665 am__EXEEXT_TRUE='#'
13666 am__EXEEXT_FALSE=
13667 fi
13668
13669 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13670 as_fn_error $? "conditional \"AMDEP\" was never defined.
13671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13672 fi
13673 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13674 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13676 fi
13677 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13678 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13680 fi
13681 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
13682 as_fn_error $? "conditional \"MINGW\" was never defined.
13683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13684 fi
13685
13686 : "${CONFIG_STATUS=./config.status}"
13687 ac_write_fail=0
13688 ac_clean_files_save=$ac_clean_files
13689 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13691 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13692 as_write_fail=0
13693 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13694 #! $SHELL
13695 # Generated by $as_me.
13696 # Run this file to recreate the current configuration.
13697 # Compiler output produced by configure, useful for debugging
13698 # configure, is in config.log if it exists.
13699
13700 debug=false
13701 ac_cs_recheck=false
13702 ac_cs_silent=false
13703
13704 SHELL=\${CONFIG_SHELL-$SHELL}
13705 export SHELL
13706 _ASEOF
13707 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13708 ## -------------------- ##
13709 ## M4sh Initialization. ##
13710 ## -------------------- ##
13711
13712 # Be more Bourne compatible
13713 DUALCASE=1; export DUALCASE # for MKS sh
13714 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13715 emulate sh
13716 NULLCMD=:
13717 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13718 # is contrary to our usage. Disable this feature.
13719 alias -g '${1+"$@"}'='"$@"'
13720 setopt NO_GLOB_SUBST
13721 else
13722 case `(set -o) 2>/dev/null` in #(
13723 *posix*) :
13724 set -o posix ;; #(
13725 *) :
13726 ;;
13727 esac
13728 fi
13729
13730
13731 as_nl='
13732 '
13733 export as_nl
13734 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13735 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13736 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13737 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13738 # Prefer a ksh shell builtin over an external printf program on Solaris,
13739 # but without wasting forks for bash or zsh.
13740 if test -z "$BASH_VERSION$ZSH_VERSION" \
13741 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13742 as_echo='print -r --'
13743 as_echo_n='print -rn --'
13744 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13745 as_echo='printf %s\n'
13746 as_echo_n='printf %s'
13747 else
13748 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13749 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13750 as_echo_n='/usr/ucb/echo -n'
13751 else
13752 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13753 as_echo_n_body='eval
13754 arg=$1;
13755 case $arg in #(
13756 *"$as_nl"*)
13757 expr "X$arg" : "X\\(.*\\)$as_nl";
13758 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13759 esac;
13760 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13761 '
13762 export as_echo_n_body
13763 as_echo_n='sh -c $as_echo_n_body as_echo'
13764 fi
13765 export as_echo_body
13766 as_echo='sh -c $as_echo_body as_echo'
13767 fi
13768
13769 # The user is always right.
13770 if test "${PATH_SEPARATOR+set}" != set; then
13771 PATH_SEPARATOR=:
13772 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13773 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13774 PATH_SEPARATOR=';'
13775 }
13776 fi
13777
13778
13779 # IFS
13780 # We need space, tab and new line, in precisely that order. Quoting is
13781 # there to prevent editors from complaining about space-tab.
13782 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13783 # splitting by setting IFS to empty value.)
13784 IFS=" "" $as_nl"
13785
13786 # Find who we are. Look in the path if we contain no directory separator.
13787 as_myself=
13788 case $0 in #((
13789 *[\\/]* ) as_myself=$0 ;;
13790 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13791 for as_dir in $PATH
13792 do
13793 IFS=$as_save_IFS
13794 test -z "$as_dir" && as_dir=.
13795 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13796 done
13797 IFS=$as_save_IFS
13798
13799 ;;
13800 esac
13801 # We did not find ourselves, most probably we were run as `sh COMMAND'
13802 # in which case we are not to be found in the path.
13803 if test "x$as_myself" = x; then
13804 as_myself=$0
13805 fi
13806 if test ! -f "$as_myself"; then
13807 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13808 exit 1
13809 fi
13810
13811 # Unset variables that we do not need and which cause bugs (e.g. in
13812 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13813 # suppresses any "Segmentation fault" message there. '((' could
13814 # trigger a bug in pdksh 5.2.14.
13815 for as_var in BASH_ENV ENV MAIL MAILPATH
13816 do eval test x\${$as_var+set} = xset \
13817 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13818 done
13819 PS1='$ '
13820 PS2='> '
13821 PS4='+ '
13822
13823 # NLS nuisances.
13824 LC_ALL=C
13825 export LC_ALL
13826 LANGUAGE=C
13827 export LANGUAGE
13828
13829 # CDPATH.
13830 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13831
13832
13833 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13834 # ----------------------------------------
13835 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13836 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13837 # script with STATUS, using 1 if that was 0.
13838 as_fn_error ()
13839 {
13840 as_status=$1; test $as_status -eq 0 && as_status=1
13841 if test "$4"; then
13842 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13843 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13844 fi
13845 $as_echo "$as_me: error: $2" >&2
13846 as_fn_exit $as_status
13847 } # as_fn_error
13848
13849
13850 # as_fn_set_status STATUS
13851 # -----------------------
13852 # Set $? to STATUS, without forking.
13853 as_fn_set_status ()
13854 {
13855 return $1
13856 } # as_fn_set_status
13857
13858 # as_fn_exit STATUS
13859 # -----------------
13860 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13861 as_fn_exit ()
13862 {
13863 set +e
13864 as_fn_set_status $1
13865 exit $1
13866 } # as_fn_exit
13867
13868 # as_fn_unset VAR
13869 # ---------------
13870 # Portably unset VAR.
13871 as_fn_unset ()
13872 {
13873 { eval $1=; unset $1;}
13874 }
13875 as_unset=as_fn_unset
13876 # as_fn_append VAR VALUE
13877 # ----------------------
13878 # Append the text in VALUE to the end of the definition contained in VAR. Take
13879 # advantage of any shell optimizations that allow amortized linear growth over
13880 # repeated appends, instead of the typical quadratic growth present in naive
13881 # implementations.
13882 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13883 eval 'as_fn_append ()
13884 {
13885 eval $1+=\$2
13886 }'
13887 else
13888 as_fn_append ()
13889 {
13890 eval $1=\$$1\$2
13891 }
13892 fi # as_fn_append
13893
13894 # as_fn_arith ARG...
13895 # ------------------
13896 # Perform arithmetic evaluation on the ARGs, and store the result in the
13897 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13898 # must be portable across $(()) and expr.
13899 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13900 eval 'as_fn_arith ()
13901 {
13902 as_val=$(( $* ))
13903 }'
13904 else
13905 as_fn_arith ()
13906 {
13907 as_val=`expr "$@" || test $? -eq 1`
13908 }
13909 fi # as_fn_arith
13910
13911
13912 if expr a : '\(a\)' >/dev/null 2>&1 &&
13913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13914 as_expr=expr
13915 else
13916 as_expr=false
13917 fi
13918
13919 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13920 as_basename=basename
13921 else
13922 as_basename=false
13923 fi
13924
13925 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13926 as_dirname=dirname
13927 else
13928 as_dirname=false
13929 fi
13930
13931 as_me=`$as_basename -- "$0" ||
13932 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13933 X"$0" : 'X\(//\)$' \| \
13934 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13935 $as_echo X/"$0" |
13936 sed '/^.*\/\([^/][^/]*\)\/*$/{
13937 s//\1/
13938 q
13939 }
13940 /^X\/\(\/\/\)$/{
13941 s//\1/
13942 q
13943 }
13944 /^X\/\(\/\).*/{
13945 s//\1/
13946 q
13947 }
13948 s/.*/./; q'`
13949
13950 # Avoid depending upon Character Ranges.
13951 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13952 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13953 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13954 as_cr_digits='0123456789'
13955 as_cr_alnum=$as_cr_Letters$as_cr_digits
13956
13957 ECHO_C= ECHO_N= ECHO_T=
13958 case `echo -n x` in #(((((
13959 -n*)
13960 case `echo 'xy\c'` in
13961 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13962 xy) ECHO_C='\c';;
13963 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13964 ECHO_T=' ';;
13965 esac;;
13966 *)
13967 ECHO_N='-n';;
13968 esac
13969
13970 rm -f conf$$ conf$$.exe conf$$.file
13971 if test -d conf$$.dir; then
13972 rm -f conf$$.dir/conf$$.file
13973 else
13974 rm -f conf$$.dir
13975 mkdir conf$$.dir 2>/dev/null
13976 fi
13977 if (echo >conf$$.file) 2>/dev/null; then
13978 if ln -s conf$$.file conf$$ 2>/dev/null; then
13979 as_ln_s='ln -s'
13980 # ... but there are two gotchas:
13981 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13982 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13983 # In both cases, we have to default to `cp -p'.
13984 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13985 as_ln_s='cp -p'
13986 elif ln conf$$.file conf$$ 2>/dev/null; then
13987 as_ln_s=ln
13988 else
13989 as_ln_s='cp -p'
13990 fi
13991 else
13992 as_ln_s='cp -p'
13993 fi
13994 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13995 rmdir conf$$.dir 2>/dev/null
13996
13997
13998 # as_fn_mkdir_p
13999 # -------------
14000 # Create "$as_dir" as a directory, including parents if necessary.
14001 as_fn_mkdir_p ()
14002 {
14003
14004 case $as_dir in #(
14005 -*) as_dir=./$as_dir;;
14006 esac
14007 test -d "$as_dir" || eval $as_mkdir_p || {
14008 as_dirs=
14009 while :; do
14010 case $as_dir in #(
14011 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14012 *) as_qdir=$as_dir;;
14013 esac
14014 as_dirs="'$as_qdir' $as_dirs"
14015 as_dir=`$as_dirname -- "$as_dir" ||
14016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14017 X"$as_dir" : 'X\(//\)[^/]' \| \
14018 X"$as_dir" : 'X\(//\)$' \| \
14019 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14020 $as_echo X"$as_dir" |
14021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14022 s//\1/
14023 q
14024 }
14025 /^X\(\/\/\)[^/].*/{
14026 s//\1/
14027 q
14028 }
14029 /^X\(\/\/\)$/{
14030 s//\1/
14031 q
14032 }
14033 /^X\(\/\).*/{
14034 s//\1/
14035 q
14036 }
14037 s/.*/./; q'`
14038 test -d "$as_dir" && break
14039 done
14040 test -z "$as_dirs" || eval "mkdir $as_dirs"
14041 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14042
14043
14044 } # as_fn_mkdir_p
14045 if mkdir -p . 2>/dev/null; then
14046 as_mkdir_p='mkdir -p "$as_dir"'
14047 else
14048 test -d ./-p && rmdir ./-p
14049 as_mkdir_p=false
14050 fi
14051
14052 if test -x / >/dev/null 2>&1; then
14053 as_test_x='test -x'
14054 else
14055 if ls -dL / >/dev/null 2>&1; then
14056 as_ls_L_option=L
14057 else
14058 as_ls_L_option=
14059 fi
14060 as_test_x='
14061 eval sh -c '\''
14062 if test -d "$1"; then
14063 test -d "$1/.";
14064 else
14065 case $1 in #(
14066 -*)set "./$1";;
14067 esac;
14068 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14069 ???[sx]*):;;*)false;;esac;fi
14070 '\'' sh
14071 '
14072 fi
14073 as_executable_p=$as_test_x
14074
14075 # Sed expression to map a string onto a valid CPP name.
14076 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14077
14078 # Sed expression to map a string onto a valid variable name.
14079 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14080
14081
14082 exec 6>&1
14083 ## ----------------------------------- ##
14084 ## Main body of $CONFIG_STATUS script. ##
14085 ## ----------------------------------- ##
14086 _ASEOF
14087 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14088
14089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14090 # Save the log message, to keep $0 and so on meaningful, and to
14091 # report actual input values of CONFIG_FILES etc. instead of their
14092 # values after options handling.
14093 ac_log="
14094 This file was extended by libratbox $as_me devel, which was
14095 generated by GNU Autoconf 2.68. Invocation command line was
14096
14097 CONFIG_FILES = $CONFIG_FILES
14098 CONFIG_HEADERS = $CONFIG_HEADERS
14099 CONFIG_LINKS = $CONFIG_LINKS
14100 CONFIG_COMMANDS = $CONFIG_COMMANDS
14101 $ $0 $@
14102
14103 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14104 "
14105
14106 _ACEOF
14107
14108 case $ac_config_files in *"
14109 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14110 esac
14111
14112 case $ac_config_headers in *"
14113 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14114 esac
14115
14116
14117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14118 # Files that config.status was made for.
14119 config_files="$ac_config_files"
14120 config_headers="$ac_config_headers"
14121 config_commands="$ac_config_commands"
14122
14123 _ACEOF
14124
14125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14126 ac_cs_usage="\
14127 \`$as_me' instantiates files and other configuration actions
14128 from templates according to the current configuration. Unless the files
14129 and actions are specified as TAGs, all are instantiated by default.
14130
14131 Usage: $0 [OPTION]... [TAG]...
14132
14133 -h, --help print this help, then exit
14134 -V, --version print version number and configuration settings, then exit
14135 --config print configuration, then exit
14136 -q, --quiet, --silent
14137 do not print progress messages
14138 -d, --debug don't remove temporary files
14139 --recheck update $as_me by reconfiguring in the same conditions
14140 --file=FILE[:TEMPLATE]
14141 instantiate the configuration file FILE
14142 --header=FILE[:TEMPLATE]
14143 instantiate the configuration header FILE
14144
14145 Configuration files:
14146 $config_files
14147
14148 Configuration headers:
14149 $config_headers
14150
14151 Configuration commands:
14152 $config_commands
14153
14154 Report bugs to the package provider."
14155
14156 _ACEOF
14157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14158 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14159 ac_cs_version="\\
14160 libratbox config.status devel
14161 configured by $0, generated by GNU Autoconf 2.68,
14162 with options \\"\$ac_cs_config\\"
14163
14164 Copyright (C) 2010 Free Software Foundation, Inc.
14165 This config.status script is free software; the Free Software Foundation
14166 gives unlimited permission to copy, distribute and modify it."
14167
14168 ac_pwd='$ac_pwd'
14169 srcdir='$srcdir'
14170 INSTALL='$INSTALL'
14171 MKDIR_P='$MKDIR_P'
14172 AWK='$AWK'
14173 test -n "\$AWK" || AWK=awk
14174 _ACEOF
14175
14176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14177 # The default lists apply if the user does not specify any file.
14178 ac_need_defaults=:
14179 while test $# != 0
14180 do
14181 case $1 in
14182 --*=?*)
14183 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14184 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14185 ac_shift=:
14186 ;;
14187 --*=)
14188 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14189 ac_optarg=
14190 ac_shift=:
14191 ;;
14192 *)
14193 ac_option=$1
14194 ac_optarg=$2
14195 ac_shift=shift
14196 ;;
14197 esac
14198
14199 case $ac_option in
14200 # Handling of the options.
14201 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14202 ac_cs_recheck=: ;;
14203 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14204 $as_echo "$ac_cs_version"; exit ;;
14205 --config | --confi | --conf | --con | --co | --c )
14206 $as_echo "$ac_cs_config"; exit ;;
14207 --debug | --debu | --deb | --de | --d | -d )
14208 debug=: ;;
14209 --file | --fil | --fi | --f )
14210 $ac_shift
14211 case $ac_optarg in
14212 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14213 '') as_fn_error $? "missing file argument" ;;
14214 esac
14215 as_fn_append CONFIG_FILES " '$ac_optarg'"
14216 ac_need_defaults=false;;
14217 --header | --heade | --head | --hea )
14218 $ac_shift
14219 case $ac_optarg in
14220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14221 esac
14222 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14223 ac_need_defaults=false;;
14224 --he | --h)
14225 # Conflict between --help and --header
14226 as_fn_error $? "ambiguous option: \`$1'
14227 Try \`$0 --help' for more information.";;
14228 --help | --hel | -h )
14229 $as_echo "$ac_cs_usage"; exit ;;
14230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14231 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14232 ac_cs_silent=: ;;
14233
14234 # This is an error.
14235 -*) as_fn_error $? "unrecognized option: \`$1'
14236 Try \`$0 --help' for more information." ;;
14237
14238 *) as_fn_append ac_config_targets " $1"
14239 ac_need_defaults=false ;;
14240
14241 esac
14242 shift
14243 done
14244
14245 ac_configure_extra_args=
14246
14247 if $ac_cs_silent; then
14248 exec 6>/dev/null
14249 ac_configure_extra_args="$ac_configure_extra_args --silent"
14250 fi
14251
14252 _ACEOF
14253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14254 if \$ac_cs_recheck; then
14255 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14256 shift
14257 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14258 CONFIG_SHELL='$SHELL'
14259 export CONFIG_SHELL
14260 exec "\$@"
14261 fi
14262
14263 _ACEOF
14264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14265 exec 5>>config.log
14266 {
14267 echo
14268 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14269 ## Running $as_me. ##
14270 _ASBOX
14271 $as_echo "$ac_log"
14272 } >&5
14273
14274 _ACEOF
14275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14276 #
14277 # INIT-COMMANDS
14278 #
14279 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14280
14281
14282 # The HP-UX ksh and POSIX shell print the target directory to stdout
14283 # if CDPATH is set.
14284 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14285
14286 sed_quote_subst='$sed_quote_subst'
14287 double_quote_subst='$double_quote_subst'
14288 delay_variable_subst='$delay_variable_subst'
14289 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14290 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14291 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14292 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14293 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14294 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14295 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14296 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14297 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14298 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14299 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14300 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14301 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14302 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14303 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14304 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14305 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14306 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14307 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14308 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14309 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14310 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14311 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14312 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14313 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14314 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14315 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14316 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14317 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14318 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14319 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14320 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14321 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14322 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14323 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14324 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14325 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14326 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14327 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14328 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14329 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14330 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14331 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14332 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14333 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14334 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14335 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14336 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14337 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14338 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14339 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14340 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14341 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14342 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14343 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14344 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14345 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14346 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14347 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14348 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14349 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14350 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14351 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14352 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14353 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14354 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14355 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14356 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14357 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14358 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14359 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14360 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14361 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14362 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14363 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14364 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14365 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14366 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14367 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14368 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14369 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14370 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14371 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14372 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14373 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14374 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14375 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14376 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14377 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14378 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14379 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14380 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14381 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14382 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14383 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14384 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14385 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14386 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14387 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14388 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14389 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14390 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14391 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14392 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14393 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14394 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14395 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14396 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14397 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14398 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14399 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14400 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14401 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14402 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14403 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14404 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14405 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14406 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14407
14408 LTCC='$LTCC'
14409 LTCFLAGS='$LTCFLAGS'
14410 compiler='$compiler_DEFAULT'
14411
14412 # Quote evaled strings.
14413 for var in SED \
14414 GREP \
14415 EGREP \
14416 FGREP \
14417 LD \
14418 NM \
14419 LN_S \
14420 lt_SP2NL \
14421 lt_NL2SP \
14422 reload_flag \
14423 OBJDUMP \
14424 deplibs_check_method \
14425 file_magic_cmd \
14426 AR \
14427 AR_FLAGS \
14428 STRIP \
14429 RANLIB \
14430 CC \
14431 CFLAGS \
14432 compiler \
14433 lt_cv_sys_global_symbol_pipe \
14434 lt_cv_sys_global_symbol_to_cdecl \
14435 lt_cv_sys_global_symbol_to_c_name_address \
14436 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14437 SHELL \
14438 ECHO \
14439 lt_prog_compiler_no_builtin_flag \
14440 lt_prog_compiler_wl \
14441 lt_prog_compiler_pic \
14442 lt_prog_compiler_static \
14443 lt_cv_prog_compiler_c_o \
14444 need_locks \
14445 DSYMUTIL \
14446 NMEDIT \
14447 LIPO \
14448 OTOOL \
14449 OTOOL64 \
14450 shrext_cmds \
14451 export_dynamic_flag_spec \
14452 whole_archive_flag_spec \
14453 compiler_needs_object \
14454 with_gnu_ld \
14455 allow_undefined_flag \
14456 no_undefined_flag \
14457 hardcode_libdir_flag_spec \
14458 hardcode_libdir_flag_spec_ld \
14459 hardcode_libdir_separator \
14460 fix_srcfile_path \
14461 exclude_expsyms \
14462 include_expsyms \
14463 file_list_spec \
14464 variables_saved_for_relink \
14465 libname_spec \
14466 library_names_spec \
14467 soname_spec \
14468 finish_eval \
14469 old_striplib \
14470 striplib; do
14471 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14472 *[\\\\\\\`\\"\\\$]*)
14473 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14474 ;;
14475 *)
14476 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14477 ;;
14478 esac
14479 done
14480
14481 # Double-quote double-evaled strings.
14482 for var in reload_cmds \
14483 old_postinstall_cmds \
14484 old_postuninstall_cmds \
14485 old_archive_cmds \
14486 extract_expsyms_cmds \
14487 old_archive_from_new_cmds \
14488 old_archive_from_expsyms_cmds \
14489 archive_cmds \
14490 archive_expsym_cmds \
14491 module_cmds \
14492 module_expsym_cmds \
14493 export_symbols_cmds \
14494 prelink_cmds \
14495 postinstall_cmds \
14496 postuninstall_cmds \
14497 finish_cmds \
14498 sys_lib_search_path_spec \
14499 sys_lib_dlsearch_path_spec; do
14500 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14501 *[\\\\\\\`\\"\\\$]*)
14502 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14503 ;;
14504 *)
14505 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14506 ;;
14507 esac
14508 done
14509
14510 # Fix-up fallback echo if it was mangled by the above quoting rules.
14511 case \$lt_ECHO in
14512 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14513 ;;
14514 esac
14515
14516 ac_aux_dir='$ac_aux_dir'
14517 xsi_shell='$xsi_shell'
14518 lt_shell_append='$lt_shell_append'
14519
14520 # See if we are running on zsh, and set the options which allow our
14521 # commands through without removal of \ escapes INIT.
14522 if test -n "\${ZSH_VERSION+set}" ; then
14523 setopt NO_GLOB_SUBST
14524 fi
14525
14526
14527 PACKAGE='$PACKAGE'
14528 VERSION='$VERSION'
14529 TIMESTAMP='$TIMESTAMP'
14530 RM='$RM'
14531 ofile='$ofile'
14532
14533
14534
14535
14536 if test x$ac_cv_header_stdc = xyes; then
14537 rb_header_stdc=yes
14538 fi
14539 if test x$ac_cv_header_stdlib_h = xyes; then
14540 rb_header_stdlib_h=yes
14541 fi
14542 if test x$ac_cv_header_string_h = xyes; then
14543 rb_header_string_h=yes
14544 fi
14545 if test x$ac_cv_header_memory_h = xyes; then
14546 rb_header_memory_h=yes
14547 fi
14548 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
14549 rb_alloca_h="$ac_cv_working_alloca_h"
14550 else
14551 rb_alloc_h="$ac_cv_header_alloca_h"
14552 fi
14553 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
14554 rb_sockaddr_sa_len=yes
14555 fi
14556 if test x$ac_cv_header_sys_socket_h = xyes; then
14557 rb_sys_socket_h=yes
14558 fi
14559 if test x$ac_cv_header_sys_types_h = xyes; then
14560 rb_sys_types_h=yes
14561 fi
14562 if test x$ac_cv_header_sys_stat_h = xyes; then
14563 rb_sys_stat_h=yes
14564 fi
14565 if test x$ac_cv_header_sys_time_h = xyes; then
14566 rb_sys_time_h=yes
14567 fi
14568 if test x$ac_cv_header_time = xyes; then
14569 rb_time_h=yes
14570 fi
14571
14572 if test x$ac_cv_header_stdint_h = xyes; then
14573 rb_stdint_h=yes
14574 fi
14575 if test x$ac_cv_header_inttypes_h = xyes; then
14576 rb_inttypes_h=yes
14577 fi
14578 if test x$ac_cv_header_netinet_in_h = xyes; then
14579 rb_netinet_in_h=yes
14580 fi
14581
14582 if test x$ac_cv_header_crypt_h = xyes; then
14583 rb_crypt_h=yes
14584 fi
14585 if test x$ac_cv_header_errno_h = xyes; then
14586 rb_errno_h=yes
14587 fi
14588 if test x$ac_cv_header_unistd_h = xyes; then
14589 rb_unistd_h=yes
14590 fi
14591 if test x$ac_cv_header_windows_h = xyes; then
14592 rb_windows_h=yes
14593 fi
14594 if test x$ac_cv_header_winsock2_h = xyes; then
14595 rb_winsock2_h=yes
14596 fi
14597
14598 rb_socklen_t=$rb_socklen_t
14599
14600 if test "x$rb_have_sockaddr_storage" = "xyes"; then
14601 rb_sockaddr_storage="yes"
14602 else
14603 rb_sockaddr_storage="no"
14604 fi
14605
14606 rb_have_ipv6="$have_v6"
14607
14608 rb_mv="$MV"
14609 rb_rm="$RM"
14610
14611
14612
14613
14614
14615
14616 _ACEOF
14617
14618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14619
14620 # Handling of arguments.
14621 for ac_config_target in $ac_config_targets
14622 do
14623 case $ac_config_target in
14624 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
14625 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14626 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14627 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
14628 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14629 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14630 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
14631
14632 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14633 esac
14634 done
14635
14636
14637 # If the user did not use the arguments to specify the items to instantiate,
14638 # then the envvar interface is used. Set only those that are not.
14639 # We use the long form for the default assignment because of an extremely
14640 # bizarre bug on SunOS 4.1.3.
14641 if $ac_need_defaults; then
14642 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14643 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14644 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14645 fi
14646
14647 # Have a temporary directory for convenience. Make it in the build tree
14648 # simply because there is no reason against having it here, and in addition,
14649 # creating and moving files from /tmp can sometimes cause problems.
14650 # Hook for its removal unless debugging.
14651 # Note that there is a small window in which the directory will not be cleaned:
14652 # after its creation but before its name has been assigned to `$tmp'.
14653 $debug ||
14654 {
14655 tmp= ac_tmp=
14656 trap 'exit_status=$?
14657 : "${ac_tmp:=$tmp}"
14658 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14659 ' 0
14660 trap 'as_fn_exit 1' 1 2 13 15
14661 }
14662 # Create a (secure) tmp directory for tmp files.
14663
14664 {
14665 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14666 test -d "$tmp"
14667 } ||
14668 {
14669 tmp=./conf$$-$RANDOM
14670 (umask 077 && mkdir "$tmp")
14671 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14672 ac_tmp=$tmp
14673
14674 # Set up the scripts for CONFIG_FILES section.
14675 # No need to generate them if there are no CONFIG_FILES.
14676 # This happens for instance with `./config.status config.h'.
14677 if test -n "$CONFIG_FILES"; then
14678
14679
14680 ac_cr=`echo X | tr X '\015'`
14681 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14682 # But we know of no other shell where ac_cr would be empty at this
14683 # point, so we can use a bashism as a fallback.
14684 if test "x$ac_cr" = x; then
14685 eval ac_cr=\$\'\\r\'
14686 fi
14687 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14688 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14689 ac_cs_awk_cr='\\r'
14690 else
14691 ac_cs_awk_cr=$ac_cr
14692 fi
14693
14694 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14695 _ACEOF
14696
14697
14698 {
14699 echo "cat >conf$$subs.awk <<_ACEOF" &&
14700 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14701 echo "_ACEOF"
14702 } >conf$$subs.sh ||
14703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14704 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14705 ac_delim='%!_!# '
14706 for ac_last_try in false false false false false :; do
14707 . ./conf$$subs.sh ||
14708 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14709
14710 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14711 if test $ac_delim_n = $ac_delim_num; then
14712 break
14713 elif $ac_last_try; then
14714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14715 else
14716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14717 fi
14718 done
14719 rm -f conf$$subs.sh
14720
14721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14722 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14723 _ACEOF
14724 sed -n '
14725 h
14726 s/^/S["/; s/!.*/"]=/
14727 p
14728 g
14729 s/^[^!]*!//
14730 :repl
14731 t repl
14732 s/'"$ac_delim"'$//
14733 t delim
14734 :nl
14735 h
14736 s/\(.\{148\}\)..*/\1/
14737 t more1
14738 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14739 p
14740 n
14741 b repl
14742 :more1
14743 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14744 p
14745 g
14746 s/.\{148\}//
14747 t nl
14748 :delim
14749 h
14750 s/\(.\{148\}\)..*/\1/
14751 t more2
14752 s/["\\]/\\&/g; s/^/"/; s/$/"/
14753 p
14754 b
14755 :more2
14756 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14757 p
14758 g
14759 s/.\{148\}//
14760 t delim
14761 ' <conf$$subs.awk | sed '
14762 /^[^""]/{
14763 N
14764 s/\n//
14765 }
14766 ' >>$CONFIG_STATUS || ac_write_fail=1
14767 rm -f conf$$subs.awk
14768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14769 _ACAWK
14770 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14771 for (key in S) S_is_set[key] = 1
14772 FS = "\a"
14773
14774 }
14775 {
14776 line = $ 0
14777 nfields = split(line, field, "@")
14778 substed = 0
14779 len = length(field[1])
14780 for (i = 2; i < nfields; i++) {
14781 key = field[i]
14782 keylen = length(key)
14783 if (S_is_set[key]) {
14784 value = S[key]
14785 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14786 len += length(value) + length(field[++i])
14787 substed = 1
14788 } else
14789 len += 1 + keylen
14790 }
14791
14792 print line
14793 }
14794
14795 _ACAWK
14796 _ACEOF
14797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14798 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14799 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14800 else
14801 cat
14802 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14803 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14804 _ACEOF
14805
14806 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14807 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14808 # trailing colons and then remove the whole line if VPATH becomes empty
14809 # (actually we leave an empty line to preserve line numbers).
14810 if test "x$srcdir" = x.; then
14811 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14812 h
14813 s///
14814 s/^/:/
14815 s/[ ]*$/:/
14816 s/:\$(srcdir):/:/g
14817 s/:\${srcdir}:/:/g
14818 s/:@srcdir@:/:/g
14819 s/^:*//
14820 s/:*$//
14821 x
14822 s/\(=[ ]*\).*/\1/
14823 G
14824 s/\n//
14825 s/^[^=]*=[ ]*$//
14826 }'
14827 fi
14828
14829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14830 fi # test -n "$CONFIG_FILES"
14831
14832 # Set up the scripts for CONFIG_HEADERS section.
14833 # No need to generate them if there are no CONFIG_HEADERS.
14834 # This happens for instance with `./config.status Makefile'.
14835 if test -n "$CONFIG_HEADERS"; then
14836 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14837 BEGIN {
14838 _ACEOF
14839
14840 # Transform confdefs.h into an awk script `defines.awk', embedded as
14841 # here-document in config.status, that substitutes the proper values into
14842 # config.h.in to produce config.h.
14843
14844 # Create a delimiter string that does not exist in confdefs.h, to ease
14845 # handling of long lines.
14846 ac_delim='%!_!# '
14847 for ac_last_try in false false :; do
14848 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14849 if test -z "$ac_tt"; then
14850 break
14851 elif $ac_last_try; then
14852 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14853 else
14854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14855 fi
14856 done
14857
14858 # For the awk script, D is an array of macro values keyed by name,
14859 # likewise P contains macro parameters if any. Preserve backslash
14860 # newline sequences.
14861
14862 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14863 sed -n '
14864 s/.\{148\}/&'"$ac_delim"'/g
14865 t rset
14866 :rset
14867 s/^[ ]*#[ ]*define[ ][ ]*/ /
14868 t def
14869 d
14870 :def
14871 s/\\$//
14872 t bsnl
14873 s/["\\]/\\&/g
14874 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14875 D["\1"]=" \3"/p
14876 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14877 d
14878 :bsnl
14879 s/["\\]/\\&/g
14880 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14881 D["\1"]=" \3\\\\\\n"\\/p
14882 t cont
14883 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14884 t cont
14885 d
14886 :cont
14887 n
14888 s/.\{148\}/&'"$ac_delim"'/g
14889 t clear
14890 :clear
14891 s/\\$//
14892 t bsnlc
14893 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14894 d
14895 :bsnlc
14896 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14897 b cont
14898 ' <confdefs.h | sed '
14899 s/'"$ac_delim"'/"\\\
14900 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14901
14902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14903 for (key in D) D_is_set[key] = 1
14904 FS = "\a"
14905 }
14906 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14907 line = \$ 0
14908 split(line, arg, " ")
14909 if (arg[1] == "#") {
14910 defundef = arg[2]
14911 mac1 = arg[3]
14912 } else {
14913 defundef = substr(arg[1], 2)
14914 mac1 = arg[2]
14915 }
14916 split(mac1, mac2, "(") #)
14917 macro = mac2[1]
14918 prefix = substr(line, 1, index(line, defundef) - 1)
14919 if (D_is_set[macro]) {
14920 # Preserve the white space surrounding the "#".
14921 print prefix "define", macro P[macro] D[macro]
14922 next
14923 } else {
14924 # Replace #undef with comments. This is necessary, for example,
14925 # in the case of _POSIX_SOURCE, which is predefined and required
14926 # on some systems where configure will not decide to define it.
14927 if (defundef == "undef") {
14928 print "/*", prefix defundef, macro, "*/"
14929 next
14930 }
14931 }
14932 }
14933 { print }
14934 _ACAWK
14935 _ACEOF
14936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14937 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14938 fi # test -n "$CONFIG_HEADERS"
14939
14940
14941 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14942 shift
14943 for ac_tag
14944 do
14945 case $ac_tag in
14946 :[FHLC]) ac_mode=$ac_tag; continue;;
14947 esac
14948 case $ac_mode$ac_tag in
14949 :[FHL]*:*);;
14950 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14951 :[FH]-) ac_tag=-:-;;
14952 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14953 esac
14954 ac_save_IFS=$IFS
14955 IFS=:
14956 set x $ac_tag
14957 IFS=$ac_save_IFS
14958 shift
14959 ac_file=$1
14960 shift
14961
14962 case $ac_mode in
14963 :L) ac_source=$1;;
14964 :[FH])
14965 ac_file_inputs=
14966 for ac_f
14967 do
14968 case $ac_f in
14969 -) ac_f="$ac_tmp/stdin";;
14970 *) # Look for the file first in the build tree, then in the source tree
14971 # (if the path is not absolute). The absolute path cannot be DOS-style,
14972 # because $ac_f cannot contain `:'.
14973 test -f "$ac_f" ||
14974 case $ac_f in
14975 [\\/$]*) false;;
14976 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14977 esac ||
14978 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14979 esac
14980 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14981 as_fn_append ac_file_inputs " '$ac_f'"
14982 done
14983
14984 # Let's still pretend it is `configure' which instantiates (i.e., don't
14985 # use $as_me), people would be surprised to read:
14986 # /* config.h. Generated by config.status. */
14987 configure_input='Generated from '`
14988 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14989 `' by configure.'
14990 if test x"$ac_file" != x-; then
14991 configure_input="$ac_file. $configure_input"
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14993 $as_echo "$as_me: creating $ac_file" >&6;}
14994 fi
14995 # Neutralize special characters interpreted by sed in replacement strings.
14996 case $configure_input in #(
14997 *\&* | *\|* | *\\* )
14998 ac_sed_conf_input=`$as_echo "$configure_input" |
14999 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15000 *) ac_sed_conf_input=$configure_input;;
15001 esac
15002
15003 case $ac_tag in
15004 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15006 esac
15007 ;;
15008 esac
15009
15010 ac_dir=`$as_dirname -- "$ac_file" ||
15011 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15012 X"$ac_file" : 'X\(//\)[^/]' \| \
15013 X"$ac_file" : 'X\(//\)$' \| \
15014 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15015 $as_echo X"$ac_file" |
15016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15017 s//\1/
15018 q
15019 }
15020 /^X\(\/\/\)[^/].*/{
15021 s//\1/
15022 q
15023 }
15024 /^X\(\/\/\)$/{
15025 s//\1/
15026 q
15027 }
15028 /^X\(\/\).*/{
15029 s//\1/
15030 q
15031 }
15032 s/.*/./; q'`
15033 as_dir="$ac_dir"; as_fn_mkdir_p
15034 ac_builddir=.
15035
15036 case "$ac_dir" in
15037 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15038 *)
15039 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15040 # A ".." for each directory in $ac_dir_suffix.
15041 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15042 case $ac_top_builddir_sub in
15043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15045 esac ;;
15046 esac
15047 ac_abs_top_builddir=$ac_pwd
15048 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15049 # for backward compatibility:
15050 ac_top_builddir=$ac_top_build_prefix
15051
15052 case $srcdir in
15053 .) # We are building in place.
15054 ac_srcdir=.
15055 ac_top_srcdir=$ac_top_builddir_sub
15056 ac_abs_top_srcdir=$ac_pwd ;;
15057 [\\/]* | ?:[\\/]* ) # Absolute name.
15058 ac_srcdir=$srcdir$ac_dir_suffix;
15059 ac_top_srcdir=$srcdir
15060 ac_abs_top_srcdir=$srcdir ;;
15061 *) # Relative name.
15062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15063 ac_top_srcdir=$ac_top_build_prefix$srcdir
15064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15065 esac
15066 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15067
15068
15069 case $ac_mode in
15070 :F)
15071 #
15072 # CONFIG_FILE
15073 #
15074
15075 case $INSTALL in
15076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15077 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15078 esac
15079 ac_MKDIR_P=$MKDIR_P
15080 case $MKDIR_P in
15081 [\\/$]* | ?:[\\/]* ) ;;
15082 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15083 esac
15084 _ACEOF
15085
15086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15087 # If the template does not know about datarootdir, expand it.
15088 # FIXME: This hack should be removed a few years after 2.60.
15089 ac_datarootdir_hack=; ac_datarootdir_seen=
15090 ac_sed_dataroot='
15091 /datarootdir/ {
15092 p
15093 q
15094 }
15095 /@datadir@/p
15096 /@docdir@/p
15097 /@infodir@/p
15098 /@localedir@/p
15099 /@mandir@/p'
15100 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15101 *datarootdir*) ac_datarootdir_seen=yes;;
15102 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15104 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15105 _ACEOF
15106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15107 ac_datarootdir_hack='
15108 s&@datadir@&$datadir&g
15109 s&@docdir@&$docdir&g
15110 s&@infodir@&$infodir&g
15111 s&@localedir@&$localedir&g
15112 s&@mandir@&$mandir&g
15113 s&\\\${datarootdir}&$datarootdir&g' ;;
15114 esac
15115 _ACEOF
15116
15117 # Neutralize VPATH when `$srcdir' = `.'.
15118 # Shell code in configure.ac might set extrasub.
15119 # FIXME: do we really want to maintain this feature?
15120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15121 ac_sed_extra="$ac_vpsub
15122 $extrasub
15123 _ACEOF
15124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15125 :t
15126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15127 s|@configure_input@|$ac_sed_conf_input|;t t
15128 s&@top_builddir@&$ac_top_builddir_sub&;t t
15129 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15130 s&@srcdir@&$ac_srcdir&;t t
15131 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15132 s&@top_srcdir@&$ac_top_srcdir&;t t
15133 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15134 s&@builddir@&$ac_builddir&;t t
15135 s&@abs_builddir@&$ac_abs_builddir&;t t
15136 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15137 s&@INSTALL@&$ac_INSTALL&;t t
15138 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15139 $ac_datarootdir_hack
15140 "
15141 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15142 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15143
15144 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15145 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15147 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15149 which seems to be undefined. Please make sure it is defined" >&5
15150 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15151 which seems to be undefined. Please make sure it is defined" >&2;}
15152
15153 rm -f "$ac_tmp/stdin"
15154 case $ac_file in
15155 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15156 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15157 esac \
15158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15159 ;;
15160 :H)
15161 #
15162 # CONFIG_HEADER
15163 #
15164 if test x"$ac_file" != x-; then
15165 {
15166 $as_echo "/* $configure_input */" \
15167 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15168 } >"$ac_tmp/config.h" \
15169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15170 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15172 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15173 else
15174 rm -f "$ac_file"
15175 mv "$ac_tmp/config.h" "$ac_file" \
15176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15177 fi
15178 else
15179 $as_echo "/* $configure_input */" \
15180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15181 || as_fn_error $? "could not create -" "$LINENO" 5
15182 fi
15183 # Compute "$ac_file"'s index in $config_headers.
15184 _am_arg="$ac_file"
15185 _am_stamp_count=1
15186 for _am_header in $config_headers :; do
15187 case $_am_header in
15188 $_am_arg | $_am_arg:* )
15189 break ;;
15190 * )
15191 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15192 esac
15193 done
15194 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15195 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15196 X"$_am_arg" : 'X\(//\)[^/]' \| \
15197 X"$_am_arg" : 'X\(//\)$' \| \
15198 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15199 $as_echo X"$_am_arg" |
15200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15201 s//\1/
15202 q
15203 }
15204 /^X\(\/\/\)[^/].*/{
15205 s//\1/
15206 q
15207 }
15208 /^X\(\/\/\)$/{
15209 s//\1/
15210 q
15211 }
15212 /^X\(\/\).*/{
15213 s//\1/
15214 q
15215 }
15216 s/.*/./; q'`/stamp-h$_am_stamp_count
15217 ;;
15218
15219 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15220 $as_echo "$as_me: executing $ac_file commands" >&6;}
15221 ;;
15222 esac
15223
15224
15225 case $ac_file$ac_mode in
15226 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15227 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15228 # are listed without --file. Let's play safe and only enable the eval
15229 # if we detect the quoting.
15230 case $CONFIG_FILES in
15231 *\'*) eval set x "$CONFIG_FILES" ;;
15232 *) set x $CONFIG_FILES ;;
15233 esac
15234 shift
15235 for mf
15236 do
15237 # Strip MF so we end up with the name of the file.
15238 mf=`echo "$mf" | sed -e 's/:.*$//'`
15239 # Check whether this is an Automake generated Makefile or not.
15240 # We used to match only the files named `Makefile.in', but
15241 # some people rename them; so instead we look at the file content.
15242 # Grep'ing the first line is not enough: some people post-process
15243 # each Makefile.in and add a new line on top of each file to say so.
15244 # Grep'ing the whole file is not good either: AIX grep has a line
15245 # limit of 2048, but all sed's we know have understand at least 4000.
15246 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15247 dirpart=`$as_dirname -- "$mf" ||
15248 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15249 X"$mf" : 'X\(//\)[^/]' \| \
15250 X"$mf" : 'X\(//\)$' \| \
15251 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15252 $as_echo X"$mf" |
15253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15254 s//\1/
15255 q
15256 }
15257 /^X\(\/\/\)[^/].*/{
15258 s//\1/
15259 q
15260 }
15261 /^X\(\/\/\)$/{
15262 s//\1/
15263 q
15264 }
15265 /^X\(\/\).*/{
15266 s//\1/
15267 q
15268 }
15269 s/.*/./; q'`
15270 else
15271 continue
15272 fi
15273 # Extract the definition of DEPDIR, am__include, and am__quote
15274 # from the Makefile without running `make'.
15275 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15276 test -z "$DEPDIR" && continue
15277 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15278 test -z "am__include" && continue
15279 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15280 # When using ansi2knr, U may be empty or an underscore; expand it
15281 U=`sed -n 's/^U = //p' < "$mf"`
15282 # Find all dependency output files, they are included files with
15283 # $(DEPDIR) in their names. We invoke sed twice because it is the
15284 # simplest approach to changing $(DEPDIR) to its actual value in the
15285 # expansion.
15286 for file in `sed -n "
15287 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15288 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15289 # Make sure the directory exists.
15290 test -f "$dirpart/$file" && continue
15291 fdir=`$as_dirname -- "$file" ||
15292 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15293 X"$file" : 'X\(//\)[^/]' \| \
15294 X"$file" : 'X\(//\)$' \| \
15295 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15296 $as_echo X"$file" |
15297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15298 s//\1/
15299 q
15300 }
15301 /^X\(\/\/\)[^/].*/{
15302 s//\1/
15303 q
15304 }
15305 /^X\(\/\/\)$/{
15306 s//\1/
15307 q
15308 }
15309 /^X\(\/\).*/{
15310 s//\1/
15311 q
15312 }
15313 s/.*/./; q'`
15314 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15315 # echo "creating $dirpart/$file"
15316 echo '# dummy' > "$dirpart/$file"
15317 done
15318 done
15319 }
15320 ;;
15321 "libtool":C)
15322
15323 # See if we are running on zsh, and set the options which allow our
15324 # commands through without removal of \ escapes.
15325 if test -n "${ZSH_VERSION+set}" ; then
15326 setopt NO_GLOB_SUBST
15327 fi
15328
15329 cfgfile="${ofile}T"
15330 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15331 $RM "$cfgfile"
15332
15333 cat <<_LT_EOF >> "$cfgfile"
15334 #! $SHELL
15335
15336 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15337 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15338 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15339 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15340 #
15341 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15342 # 2006, 2007, 2008 Free Software Foundation, Inc.
15343 # Written by Gordon Matzigkeit, 1996
15344 #
15345 # This file is part of GNU Libtool.
15346 #
15347 # GNU Libtool is free software; you can redistribute it and/or
15348 # modify it under the terms of the GNU General Public License as
15349 # published by the Free Software Foundation; either version 2 of
15350 # the License, or (at your option) any later version.
15351 #
15352 # As a special exception to the GNU General Public License,
15353 # if you distribute this file as part of a program or library that
15354 # is built using GNU Libtool, you may include this file under the
15355 # same distribution terms that you use for the rest of that program.
15356 #
15357 # GNU Libtool is distributed in the hope that it will be useful,
15358 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15359 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15360 # GNU General Public License for more details.
15361 #
15362 # You should have received a copy of the GNU General Public License
15363 # along with GNU Libtool; see the file COPYING. If not, a copy
15364 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15365 # obtained by writing to the Free Software Foundation, Inc.,
15366 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15367
15368
15369 # The names of the tagged configurations supported by this script.
15370 available_tags=""
15371
15372 # ### BEGIN LIBTOOL CONFIG
15373
15374 # Whether or not to build static libraries.
15375 build_old_libs=$enable_static
15376
15377 # Whether or not to build shared libraries.
15378 build_libtool_libs=$enable_shared
15379
15380 # Which release of libtool.m4 was used?
15381 macro_version=$macro_version
15382 macro_revision=$macro_revision
15383
15384 # What type of objects to build.
15385 pic_mode=$pic_mode
15386
15387 # Whether or not to optimize for fast installation.
15388 fast_install=$enable_fast_install
15389
15390 # The host system.
15391 host_alias=$host_alias
15392 host=$host
15393 host_os=$host_os
15394
15395 # The build system.
15396 build_alias=$build_alias
15397 build=$build
15398 build_os=$build_os
15399
15400 # A sed program that does not truncate output.
15401 SED=$lt_SED
15402
15403 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15404 Xsed="\$SED -e 1s/^X//"
15405
15406 # A grep program that handles long lines.
15407 GREP=$lt_GREP
15408
15409 # An ERE matcher.
15410 EGREP=$lt_EGREP
15411
15412 # A literal string matcher.
15413 FGREP=$lt_FGREP
15414
15415 # A BSD- or MS-compatible name lister.
15416 NM=$lt_NM
15417
15418 # Whether we need soft or hard links.
15419 LN_S=$lt_LN_S
15420
15421 # What is the maximum length of a command?
15422 max_cmd_len=$max_cmd_len
15423
15424 # Object file suffix (normally "o").
15425 objext=$ac_objext
15426
15427 # Executable file suffix (normally "").
15428 exeext=$exeext
15429
15430 # whether the shell understands "unset".
15431 lt_unset=$lt_unset
15432
15433 # turn spaces into newlines.
15434 SP2NL=$lt_lt_SP2NL
15435
15436 # turn newlines into spaces.
15437 NL2SP=$lt_lt_NL2SP
15438
15439 # How to create reloadable object files.
15440 reload_flag=$lt_reload_flag
15441 reload_cmds=$lt_reload_cmds
15442
15443 # An object symbol dumper.
15444 OBJDUMP=$lt_OBJDUMP
15445
15446 # Method to check whether dependent libraries are shared objects.
15447 deplibs_check_method=$lt_deplibs_check_method
15448
15449 # Command to use when deplibs_check_method == "file_magic".
15450 file_magic_cmd=$lt_file_magic_cmd
15451
15452 # The archiver.
15453 AR=$lt_AR
15454 AR_FLAGS=$lt_AR_FLAGS
15455
15456 # A symbol stripping program.
15457 STRIP=$lt_STRIP
15458
15459 # Commands used to install an old-style archive.
15460 RANLIB=$lt_RANLIB
15461 old_postinstall_cmds=$lt_old_postinstall_cmds
15462 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15463
15464 # A C compiler.
15465 LTCC=$lt_CC
15466
15467 # LTCC compiler flags.
15468 LTCFLAGS=$lt_CFLAGS
15469
15470 # Take the output of nm and produce a listing of raw symbols and C names.
15471 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15472
15473 # Transform the output of nm in a proper C declaration.
15474 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15475
15476 # Transform the output of nm in a C name address pair.
15477 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15478
15479 # Transform the output of nm in a C name address pair when lib prefix is needed.
15480 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15481
15482 # The name of the directory that contains temporary libtool files.
15483 objdir=$objdir
15484
15485 # Shell to use when invoking shell scripts.
15486 SHELL=$lt_SHELL
15487
15488 # An echo program that does not interpret backslashes.
15489 ECHO=$lt_ECHO
15490
15491 # Used to examine libraries when file_magic_cmd begins with "file".
15492 MAGIC_CMD=$MAGIC_CMD
15493
15494 # Must we lock files when doing compilation?
15495 need_locks=$lt_need_locks
15496
15497 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15498 DSYMUTIL=$lt_DSYMUTIL
15499
15500 # Tool to change global to local symbols on Mac OS X.
15501 NMEDIT=$lt_NMEDIT
15502
15503 # Tool to manipulate fat objects and archives on Mac OS X.
15504 LIPO=$lt_LIPO
15505
15506 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15507 OTOOL=$lt_OTOOL
15508
15509 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15510 OTOOL64=$lt_OTOOL64
15511
15512 # Old archive suffix (normally "a").
15513 libext=$libext
15514
15515 # Shared library suffix (normally ".so").
15516 shrext_cmds=$lt_shrext_cmds
15517
15518 # The commands to extract the exported symbol list from a shared archive.
15519 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15520
15521 # Variables whose values should be saved in libtool wrapper scripts and
15522 # restored at link time.
15523 variables_saved_for_relink=$lt_variables_saved_for_relink
15524
15525 # Do we need the "lib" prefix for modules?
15526 need_lib_prefix=$need_lib_prefix
15527
15528 # Do we need a version for libraries?
15529 need_version=$need_version
15530
15531 # Library versioning type.
15532 version_type=$version_type
15533
15534 # Shared library runtime path variable.
15535 runpath_var=$runpath_var
15536
15537 # Shared library path variable.
15538 shlibpath_var=$shlibpath_var
15539
15540 # Is shlibpath searched before the hard-coded library search path?
15541 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15542
15543 # Format of library name prefix.
15544 libname_spec=$lt_libname_spec
15545
15546 # List of archive names. First name is the real one, the rest are links.
15547 # The last name is the one that the linker finds with -lNAME
15548 library_names_spec=$lt_library_names_spec
15549
15550 # The coded name of the library, if different from the real name.
15551 soname_spec=$lt_soname_spec
15552
15553 # Command to use after installation of a shared archive.
15554 postinstall_cmds=$lt_postinstall_cmds
15555
15556 # Command to use after uninstallation of a shared archive.
15557 postuninstall_cmds=$lt_postuninstall_cmds
15558
15559 # Commands used to finish a libtool library installation in a directory.
15560 finish_cmds=$lt_finish_cmds
15561
15562 # As "finish_cmds", except a single script fragment to be evaled but
15563 # not shown.
15564 finish_eval=$lt_finish_eval
15565
15566 # Whether we should hardcode library paths into libraries.
15567 hardcode_into_libs=$hardcode_into_libs
15568
15569 # Compile-time system search path for libraries.
15570 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15571
15572 # Run-time system search path for libraries.
15573 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15574
15575 # Whether dlopen is supported.
15576 dlopen_support=$enable_dlopen
15577
15578 # Whether dlopen of programs is supported.
15579 dlopen_self=$enable_dlopen_self
15580
15581 # Whether dlopen of statically linked programs is supported.
15582 dlopen_self_static=$enable_dlopen_self_static
15583
15584 # Commands to strip libraries.
15585 old_striplib=$lt_old_striplib
15586 striplib=$lt_striplib
15587
15588
15589 # The linker used to build libraries.
15590 LD=$lt_LD
15591
15592 # Commands used to build an old-style archive.
15593 old_archive_cmds=$lt_old_archive_cmds
15594
15595 # A language specific compiler.
15596 CC=$lt_compiler
15597
15598 # Is the compiler the GNU compiler?
15599 with_gcc=$GCC
15600
15601 # Compiler flag to turn off builtin functions.
15602 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15603
15604 # How to pass a linker flag through the compiler.
15605 wl=$lt_lt_prog_compiler_wl
15606
15607 # Additional compiler flags for building library objects.
15608 pic_flag=$lt_lt_prog_compiler_pic
15609
15610 # Compiler flag to prevent dynamic linking.
15611 link_static_flag=$lt_lt_prog_compiler_static
15612
15613 # Does compiler simultaneously support -c and -o options?
15614 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15615
15616 # Whether or not to add -lc for building shared libraries.
15617 build_libtool_need_lc=$archive_cmds_need_lc
15618
15619 # Whether or not to disallow shared libs when runtime libs are static.
15620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15621
15622 # Compiler flag to allow reflexive dlopens.
15623 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15624
15625 # Compiler flag to generate shared objects directly from archives.
15626 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15627
15628 # Whether the compiler copes with passing no objects directly.
15629 compiler_needs_object=$lt_compiler_needs_object
15630
15631 # Create an old-style archive from a shared archive.
15632 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15633
15634 # Create a temporary old-style archive to link instead of a shared archive.
15635 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15636
15637 # Commands used to build a shared archive.
15638 archive_cmds=$lt_archive_cmds
15639 archive_expsym_cmds=$lt_archive_expsym_cmds
15640
15641 # Commands used to build a loadable module if different from building
15642 # a shared archive.
15643 module_cmds=$lt_module_cmds
15644 module_expsym_cmds=$lt_module_expsym_cmds
15645
15646 # Whether we are building with GNU ld or not.
15647 with_gnu_ld=$lt_with_gnu_ld
15648
15649 # Flag that allows shared libraries with undefined symbols to be built.
15650 allow_undefined_flag=$lt_allow_undefined_flag
15651
15652 # Flag that enforces no undefined symbols.
15653 no_undefined_flag=$lt_no_undefined_flag
15654
15655 # Flag to hardcode \$libdir into a binary during linking.
15656 # This must work even if \$libdir does not exist
15657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15658
15659 # If ld is used when linking, flag to hardcode \$libdir into a binary
15660 # during linking. This must work even if \$libdir does not exist.
15661 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15662
15663 # Whether we need a single "-rpath" flag with a separated argument.
15664 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15665
15666 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15667 # DIR into the resulting binary.
15668 hardcode_direct=$hardcode_direct
15669
15670 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15671 # DIR into the resulting binary and the resulting library dependency is
15672 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15673 # library is relocated.
15674 hardcode_direct_absolute=$hardcode_direct_absolute
15675
15676 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15677 # into the resulting binary.
15678 hardcode_minus_L=$hardcode_minus_L
15679
15680 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15681 # into the resulting binary.
15682 hardcode_shlibpath_var=$hardcode_shlibpath_var
15683
15684 # Set to "yes" if building a shared library automatically hardcodes DIR
15685 # into the library and all subsequent libraries and executables linked
15686 # against it.
15687 hardcode_automatic=$hardcode_automatic
15688
15689 # Set to yes if linker adds runtime paths of dependent libraries
15690 # to runtime path list.
15691 inherit_rpath=$inherit_rpath
15692
15693 # Whether libtool must link a program against all its dependency libraries.
15694 link_all_deplibs=$link_all_deplibs
15695
15696 # Fix the shell variable \$srcfile for the compiler.
15697 fix_srcfile_path=$lt_fix_srcfile_path
15698
15699 # Set to "yes" if exported symbols are required.
15700 always_export_symbols=$always_export_symbols
15701
15702 # The commands to list exported symbols.
15703 export_symbols_cmds=$lt_export_symbols_cmds
15704
15705 # Symbols that should not be listed in the preloaded symbols.
15706 exclude_expsyms=$lt_exclude_expsyms
15707
15708 # Symbols that must always be exported.
15709 include_expsyms=$lt_include_expsyms
15710
15711 # Commands necessary for linking programs (against libraries) with templates.
15712 prelink_cmds=$lt_prelink_cmds
15713
15714 # Specify filename containing input files.
15715 file_list_spec=$lt_file_list_spec
15716
15717 # How to hardcode a shared library path into an executable.
15718 hardcode_action=$hardcode_action
15719
15720 # ### END LIBTOOL CONFIG
15721
15722 _LT_EOF
15723
15724 case $host_os in
15725 aix3*)
15726 cat <<\_LT_EOF >> "$cfgfile"
15727 # AIX sometimes has problems with the GCC collect2 program. For some
15728 # reason, if we set the COLLECT_NAMES environment variable, the problems
15729 # vanish in a puff of smoke.
15730 if test "X${COLLECT_NAMES+set}" != Xset; then
15731 COLLECT_NAMES=
15732 export COLLECT_NAMES
15733 fi
15734 _LT_EOF
15735 ;;
15736 esac
15737
15738
15739 ltmain="$ac_aux_dir/ltmain.sh"
15740
15741
15742 # We use sed instead of cat because bash on DJGPP gets confused if
15743 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15744 # text mode, it properly converts lines to CR/LF. This bash problem
15745 # is reportedly fixed, but why not run on old versions too?
15746 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15747 || (rm -f "$cfgfile"; exit 1)
15748
15749 case $xsi_shell in
15750 yes)
15751 cat << \_LT_EOF >> "$cfgfile"
15752
15753 # func_dirname file append nondir_replacement
15754 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15755 # otherwise set result to NONDIR_REPLACEMENT.
15756 func_dirname ()
15757 {
15758 case ${1} in
15759 */*) func_dirname_result="${1%/*}${2}" ;;
15760 * ) func_dirname_result="${3}" ;;
15761 esac
15762 }
15763
15764 # func_basename file
15765 func_basename ()
15766 {
15767 func_basename_result="${1##*/}"
15768 }
15769
15770 # func_dirname_and_basename file append nondir_replacement
15771 # perform func_basename and func_dirname in a single function
15772 # call:
15773 # dirname: Compute the dirname of FILE. If nonempty,
15774 # add APPEND to the result, otherwise set result
15775 # to NONDIR_REPLACEMENT.
15776 # value returned in "$func_dirname_result"
15777 # basename: Compute filename of FILE.
15778 # value retuned in "$func_basename_result"
15779 # Implementation must be kept synchronized with func_dirname
15780 # and func_basename. For efficiency, we do not delegate to
15781 # those functions but instead duplicate the functionality here.
15782 func_dirname_and_basename ()
15783 {
15784 case ${1} in
15785 */*) func_dirname_result="${1%/*}${2}" ;;
15786 * ) func_dirname_result="${3}" ;;
15787 esac
15788 func_basename_result="${1##*/}"
15789 }
15790
15791 # func_stripname prefix suffix name
15792 # strip PREFIX and SUFFIX off of NAME.
15793 # PREFIX and SUFFIX must not contain globbing or regex special
15794 # characters, hashes, percent signs, but SUFFIX may contain a leading
15795 # dot (in which case that matches only a dot).
15796 func_stripname ()
15797 {
15798 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15799 # positional parameters, so assign one to ordinary parameter first.
15800 func_stripname_result=${3}
15801 func_stripname_result=${func_stripname_result#"${1}"}
15802 func_stripname_result=${func_stripname_result%"${2}"}
15803 }
15804
15805 # func_opt_split
15806 func_opt_split ()
15807 {
15808 func_opt_split_opt=${1%%=*}
15809 func_opt_split_arg=${1#*=}
15810 }
15811
15812 # func_lo2o object
15813 func_lo2o ()
15814 {
15815 case ${1} in
15816 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15817 *) func_lo2o_result=${1} ;;
15818 esac
15819 }
15820
15821 # func_xform libobj-or-source
15822 func_xform ()
15823 {
15824 func_xform_result=${1%.*}.lo
15825 }
15826
15827 # func_arith arithmetic-term...
15828 func_arith ()
15829 {
15830 func_arith_result=$(( $* ))
15831 }
15832
15833 # func_len string
15834 # STRING may not start with a hyphen.
15835 func_len ()
15836 {
15837 func_len_result=${#1}
15838 }
15839
15840 _LT_EOF
15841 ;;
15842 *) # Bourne compatible functions.
15843 cat << \_LT_EOF >> "$cfgfile"
15844
15845 # func_dirname file append nondir_replacement
15846 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15847 # otherwise set result to NONDIR_REPLACEMENT.
15848 func_dirname ()
15849 {
15850 # Extract subdirectory from the argument.
15851 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15852 if test "X$func_dirname_result" = "X${1}"; then
15853 func_dirname_result="${3}"
15854 else
15855 func_dirname_result="$func_dirname_result${2}"
15856 fi
15857 }
15858
15859 # func_basename file
15860 func_basename ()
15861 {
15862 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15863 }
15864
15865
15866 # func_stripname prefix suffix name
15867 # strip PREFIX and SUFFIX off of NAME.
15868 # PREFIX and SUFFIX must not contain globbing or regex special
15869 # characters, hashes, percent signs, but SUFFIX may contain a leading
15870 # dot (in which case that matches only a dot).
15871 # func_strip_suffix prefix name
15872 func_stripname ()
15873 {
15874 case ${2} in
15875 .*) func_stripname_result=`$ECHO "X${3}" \
15876 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15877 *) func_stripname_result=`$ECHO "X${3}" \
15878 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15879 esac
15880 }
15881
15882 # sed scripts:
15883 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15884 my_sed_long_arg='1s/^-[^=]*=//'
15885
15886 # func_opt_split
15887 func_opt_split ()
15888 {
15889 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15890 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15891 }
15892
15893 # func_lo2o object
15894 func_lo2o ()
15895 {
15896 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15897 }
15898
15899 # func_xform libobj-or-source
15900 func_xform ()
15901 {
15902 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15903 }
15904
15905 # func_arith arithmetic-term...
15906 func_arith ()
15907 {
15908 func_arith_result=`expr "$@"`
15909 }
15910
15911 # func_len string
15912 # STRING may not start with a hyphen.
15913 func_len ()
15914 {
15915 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15916 }
15917
15918 _LT_EOF
15919 esac
15920
15921 case $lt_shell_append in
15922 yes)
15923 cat << \_LT_EOF >> "$cfgfile"
15924
15925 # func_append var value
15926 # Append VALUE to the end of shell variable VAR.
15927 func_append ()
15928 {
15929 eval "$1+=\$2"
15930 }
15931 _LT_EOF
15932 ;;
15933 *)
15934 cat << \_LT_EOF >> "$cfgfile"
15935
15936 # func_append var value
15937 # Append VALUE to the end of shell variable VAR.
15938 func_append ()
15939 {
15940 eval "$1=\$$1\$2"
15941 }
15942
15943 _LT_EOF
15944 ;;
15945 esac
15946
15947
15948 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15949 || (rm -f "$cfgfile"; exit 1)
15950
15951 mv -f "$cfgfile" "$ofile" ||
15952 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15953 chmod +x "$ofile"
15954
15955 ;;
15956 "include/librb-config.h":C)
15957 outfile=include/librb-config.h.tmp
15958 cat > $outfile <<\_______EOF
15959 /*
15960 * librb-config.h: libratbox config file. Please modify configure.ac
15961 */
15962
15963 #ifndef __LIBRB_CONFIG_H
15964 #define __LIBRB_CONFIG_H
15965
15966 _______EOF
15967
15968 if test "x$rb_have_ipv6" = "xyes"; then
15969 echo "#define RB_IPV6 1" >> $outfile
15970 fi
15971
15972 if test "x$rb_windows_h" = "xyes"; then
15973 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
15974 echo '#include <windows.h>' >> $outfile
15975 echo '#include <winsock2.h>' >> $outfile
15976 echo '#include <iphlpapi.h>' >> $outfile
15977 fi
15978
15979 if test "x$rb_alloca_h" = "xyes"; then
15980 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
15981 fi
15982
15983 if test "x$rb_header_stdc" = "xyes"; then
15984 echo '#include <stdlib.h>' >> $outfile
15985 echo '#include <stddef.h>' >> $outfile
15986 elif test "x$rb_header_stdlib" = "xyes"; then
15987 echo '#include <stdlib.h>' >> $outfile
15988 fi
15989
15990 if test "x$rb_header_string_h" = "xyes"; then
15991 echo '#include <string.h>' >> $outfile
15992 fi
15993
15994 if test "x$rb_stdint_h" = "xyes"; then
15995 echo '#include <stdint.h>' >> $outfile
15996 fi
15997
15998 if test "x$rb_inttypes_h" = "xyes"; then
15999 echo '#include <inttypes.h>' >> $outfile
16000 fi
16001
16002 if test "x$rb_sys_types_h" = "xyes"; then
16003 echo '#include <sys/types.h>' >> $outfile
16004 fi
16005 if test "x$rb_sys_time_h" = "xyes"; then
16006 echo '#include <sys/time.h>' >> $outfile
16007 fi
16008 if test "x$rb_sys_stat_h" = "xyes"; then
16009 echo '#include <sys/stat.h>' >> $outfile
16010 fi
16011 if test "x$rb_time_h" = "xyes"; then
16012 echo '#include <time.h>' >> $outfile
16013 fi
16014
16015 if test "x$rb_sys_socket_h" = "xyes"; then
16016 echo '#include <sys/socket.h>' >> $outfile
16017 fi
16018
16019 if test "x$rb_netinet_in_h" = "xyes"; then
16020 echo '#include <netinet/in.h>' >> $outfile
16021 fi
16022
16023 if test "x$rb_arpa_inet_h" = "xyes"; then
16024 echo '#include <arpa/inet.h>' >> $outfile
16025 fi
16026
16027 if test "x$rb_unistd_h" = "xyes"; then
16028 echo '#include <unistd.h>' >> $outfile
16029 fi
16030
16031 if test "x$rb_crypt_h" = "xyes"; then
16032 echo '#include <crypt.h>' >> $outfile
16033 fi
16034
16035 if test "x$rb_errno_h" = "xyes"; then
16036 echo '#include <errno.h>' >> $outfile
16037 fi
16038
16039 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
16040
16041
16042 if test "x$rb_sockaddr_sa_len" = "xyes"; then
16043 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
16044 fi
16045
16046 if test "x$rb_sockaddr_storage" = "xyes"; then
16047 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
16048 else
16049 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
16050 fi
16051
16052 cat >> $outfile <<\_______EOF
16053 #endif /* __LIBRB_CONFIG_H */
16054 _______EOF
16055
16056 if cmp -s $outfile include/librb-config.h; then
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
16058 $as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
16059 ${rb_rm} -f $outfile
16060 else
16061 ${rb_mv} $outfile include/librb-config.h
16062 fi
16063
16064 ;;
16065
16066 esac
16067 done # for ac_tag
16068
16069
16070 as_fn_exit 0
16071 _ACEOF
16072 ac_clean_files=$ac_clean_files_save
16073
16074 test $ac_write_fail = 0 ||
16075 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16076
16077
16078 # configure is writing to config.log, and then calls config.status.
16079 # config.status does its own redirection, appending to config.log.
16080 # Unfortunately, on DOS this fails, as config.log is still kept open
16081 # by configure, so config.status won't be able to write to it; its
16082 # output is simply discarded. So we exec the FD to /dev/null,
16083 # effectively closing config.log, so it can be properly (re)opened and
16084 # appended to by config.status. When coming back to configure, we
16085 # need to make the FD available again.
16086 if test "$no_create" != yes; then
16087 ac_cs_success=:
16088 ac_config_status_args=
16089 test "$silent" = yes &&
16090 ac_config_status_args="$ac_config_status_args --quiet"
16091 exec 5>/dev/null
16092 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16093 exec 5>>config.log
16094 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16095 # would make configure fail if this is the last instruction.
16096 $ac_cs_success || as_fn_exit 1
16097 fi
16098 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16100 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16101 fi
16102
16103
16104
16105 echo
16106 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
16107 echo
16108
16109 echo "Installing into: $prefix"
16110
16111 echo "IPv6 support ................... $have_v6"
16112 echo "Assert debugging ............... $assert"
16113 echo "Block allocator ................ $balloc"
16114 echo "SSL Type........................ $SSL_TYPE"
16115 echo
16116