]> jfr.im git - irc/rqf/shadowircd.git/blob - libratbox/configure
Add SHA256/SHA512 support to crypt.c and fix up the MD5 component (it seemed to have...
[irc/rqf/shadowircd.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 # Handle Gentoo/FreeBSD as it was Linux
10408 case $host_vendor in
10409 gentoo)
10410 version_type=linux ;;
10411 *)
10412 version_type=freebsd-$objformat ;;
10413 esac
10414
10415 case $version_type in
10416 freebsd-elf*)
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10418 need_version=no
10419 need_lib_prefix=no
10420 ;;
10421 freebsd-*)
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10423 need_version=yes
10424 ;;
10425 linux)
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 need_lib_prefix=no
10429 need_version=no
10430 ;;
10431 esac
10432 shlibpath_var=LD_LIBRARY_PATH
10433 case $host_os in
10434 freebsd2*)
10435 shlibpath_overrides_runpath=yes
10436 ;;
10437 freebsd3.[01]* | freebsdelf3.[01]*)
10438 shlibpath_overrides_runpath=yes
10439 hardcode_into_libs=yes
10440 ;;
10441 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10442 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10443 shlibpath_overrides_runpath=no
10444 hardcode_into_libs=yes
10445 ;;
10446 *) # from 4.6 on, and DragonFly
10447 shlibpath_overrides_runpath=yes
10448 hardcode_into_libs=yes
10449 ;;
10450 esac
10451 ;;
10452
10453 gnu*)
10454 version_type=linux
10455 need_lib_prefix=no
10456 need_version=no
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 shlibpath_var=LD_LIBRARY_PATH
10460 hardcode_into_libs=yes
10461 ;;
10462
10463 hpux9* | hpux10* | hpux11*)
10464 # Give a soname corresponding to the major version so that dld.sl refuses to
10465 # link against other versions.
10466 version_type=sunos
10467 need_lib_prefix=no
10468 need_version=no
10469 case $host_cpu in
10470 ia64*)
10471 shrext_cmds='.so'
10472 hardcode_into_libs=yes
10473 dynamic_linker="$host_os dld.so"
10474 shlibpath_var=LD_LIBRARY_PATH
10475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10477 soname_spec='${libname}${release}${shared_ext}$major'
10478 if test "X$HPUX_IA64_MODE" = X32; then
10479 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10480 else
10481 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10482 fi
10483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10484 ;;
10485 hppa*64*)
10486 shrext_cmds='.sl'
10487 hardcode_into_libs=yes
10488 dynamic_linker="$host_os dld.sl"
10489 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10492 soname_spec='${libname}${release}${shared_ext}$major'
10493 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10495 ;;
10496 *)
10497 shrext_cmds='.sl'
10498 dynamic_linker="$host_os dld.sl"
10499 shlibpath_var=SHLIB_PATH
10500 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502 soname_spec='${libname}${release}${shared_ext}$major'
10503 ;;
10504 esac
10505 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10506 postinstall_cmds='chmod 555 $lib'
10507 ;;
10508
10509 interix[3-9]*)
10510 version_type=linux
10511 need_lib_prefix=no
10512 need_version=no
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10516 shlibpath_var=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath=no
10518 hardcode_into_libs=yes
10519 ;;
10520
10521 irix5* | irix6* | nonstopux*)
10522 case $host_os in
10523 nonstopux*) version_type=nonstopux ;;
10524 *)
10525 if test "$lt_cv_prog_gnu_ld" = yes; then
10526 version_type=linux
10527 else
10528 version_type=irix
10529 fi ;;
10530 esac
10531 need_lib_prefix=no
10532 need_version=no
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10535 case $host_os in
10536 irix5* | nonstopux*)
10537 libsuff= shlibsuff=
10538 ;;
10539 *)
10540 case $LD in # libtool.m4 will add one of these switches to LD
10541 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10542 libsuff= shlibsuff= libmagic=32-bit;;
10543 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10544 libsuff=32 shlibsuff=N32 libmagic=N32;;
10545 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10546 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10547 *) libsuff= shlibsuff= libmagic=never-match;;
10548 esac
10549 ;;
10550 esac
10551 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10552 shlibpath_overrides_runpath=no
10553 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10554 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10555 hardcode_into_libs=yes
10556 ;;
10557
10558 # No shared lib support for Linux oldld, aout, or coff.
10559 linux*oldld* | linux*aout* | linux*coff*)
10560 dynamic_linker=no
10561 ;;
10562
10563 # This must be Linux ELF.
10564 linux* | k*bsd*-gnu)
10565 version_type=linux
10566 need_lib_prefix=no
10567 need_version=no
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 shlibpath_overrides_runpath=no
10573 # Some binutils ld are patched to set DT_RUNPATH
10574 save_LDFLAGS=$LDFLAGS
10575 save_libdir=$libdir
10576 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10577 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10580
10581 int
10582 main ()
10583 {
10584
10585 ;
10586 return 0;
10587 }
10588 _ACEOF
10589 if ac_fn_c_try_link "$LINENO"; then :
10590 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10591 shlibpath_overrides_runpath=yes
10592 fi
10593 fi
10594 rm -f core conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10596 LDFLAGS=$save_LDFLAGS
10597 libdir=$save_libdir
10598
10599 # This implies no fast_install, which is unacceptable.
10600 # Some rework will be needed to allow for fast_install
10601 # before this can be enabled.
10602 hardcode_into_libs=yes
10603
10604 # Append ld.so.conf contents to the search path
10605 if test -f /etc/ld.so.conf; then
10606 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' ' '`
10607 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10608 fi
10609
10610 # We used to test for /lib/ld.so.1 and disable shared libraries on
10611 # powerpc, because MkLinux only supported shared libraries with the
10612 # GNU dynamic linker. Since this was broken with cross compilers,
10613 # most powerpc-linux boxes support dynamic linking these days and
10614 # people can always --disable-shared, the test was removed, and we
10615 # assume the GNU/Linux dynamic linker is in use.
10616 dynamic_linker='GNU/Linux ld.so'
10617 ;;
10618
10619 netbsd*)
10620 version_type=sunos
10621 need_lib_prefix=no
10622 need_version=no
10623 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10626 dynamic_linker='NetBSD (a.out) ld.so'
10627 else
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 dynamic_linker='NetBSD ld.elf_so'
10631 fi
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=yes
10634 hardcode_into_libs=yes
10635 ;;
10636
10637 newsos6)
10638 version_type=linux
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 shlibpath_overrides_runpath=yes
10642 ;;
10643
10644 *nto* | *qnx*)
10645 version_type=qnx
10646 need_lib_prefix=no
10647 need_version=no
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649 soname_spec='${libname}${release}${shared_ext}$major'
10650 shlibpath_var=LD_LIBRARY_PATH
10651 shlibpath_overrides_runpath=no
10652 hardcode_into_libs=yes
10653 dynamic_linker='ldqnx.so'
10654 ;;
10655
10656 openbsd*)
10657 version_type=sunos
10658 sys_lib_dlsearch_path_spec="/usr/lib"
10659 need_lib_prefix=no
10660 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10661 case $host_os in
10662 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10663 *) need_version=no ;;
10664 esac
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10669 case $host_os in
10670 openbsd2.[89] | openbsd2.[89].*)
10671 shlibpath_overrides_runpath=no
10672 ;;
10673 *)
10674 shlibpath_overrides_runpath=yes
10675 ;;
10676 esac
10677 else
10678 shlibpath_overrides_runpath=yes
10679 fi
10680 ;;
10681
10682 os2*)
10683 libname_spec='$name'
10684 shrext_cmds=".dll"
10685 need_lib_prefix=no
10686 library_names_spec='$libname${shared_ext} $libname.a'
10687 dynamic_linker='OS/2 ld.exe'
10688 shlibpath_var=LIBPATH
10689 ;;
10690
10691 osf3* | osf4* | osf5*)
10692 version_type=osf
10693 need_lib_prefix=no
10694 need_version=no
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697 shlibpath_var=LD_LIBRARY_PATH
10698 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10699 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10700 ;;
10701
10702 rdos*)
10703 dynamic_linker=no
10704 ;;
10705
10706 solaris*)
10707 version_type=linux
10708 need_lib_prefix=no
10709 need_version=no
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 shlibpath_overrides_runpath=yes
10714 hardcode_into_libs=yes
10715 # ldd complains unless libraries are executable
10716 postinstall_cmds='chmod +x $lib'
10717 ;;
10718
10719 sunos4*)
10720 version_type=sunos
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10722 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10723 shlibpath_var=LD_LIBRARY_PATH
10724 shlibpath_overrides_runpath=yes
10725 if test "$with_gnu_ld" = yes; then
10726 need_lib_prefix=no
10727 fi
10728 need_version=yes
10729 ;;
10730
10731 sysv4 | sysv4.3*)
10732 version_type=linux
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 case $host_vendor in
10737 sni)
10738 shlibpath_overrides_runpath=no
10739 need_lib_prefix=no
10740 runpath_var=LD_RUN_PATH
10741 ;;
10742 siemens)
10743 need_lib_prefix=no
10744 ;;
10745 motorola)
10746 need_lib_prefix=no
10747 need_version=no
10748 shlibpath_overrides_runpath=no
10749 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10750 ;;
10751 esac
10752 ;;
10753
10754 sysv4*MP*)
10755 if test -d /usr/nec ;then
10756 version_type=linux
10757 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10758 soname_spec='$libname${shared_ext}.$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 fi
10761 ;;
10762
10763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10764 version_type=freebsd-elf
10765 need_lib_prefix=no
10766 need_version=no
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 shlibpath_overrides_runpath=yes
10771 hardcode_into_libs=yes
10772 if test "$with_gnu_ld" = yes; then
10773 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10774 else
10775 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10776 case $host_os in
10777 sco3.2v5*)
10778 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10779 ;;
10780 esac
10781 fi
10782 sys_lib_dlsearch_path_spec='/usr/lib'
10783 ;;
10784
10785 tpf*)
10786 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10787 version_type=linux
10788 need_lib_prefix=no
10789 need_version=no
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 shlibpath_var=LD_LIBRARY_PATH
10792 shlibpath_overrides_runpath=no
10793 hardcode_into_libs=yes
10794 ;;
10795
10796 uts4*)
10797 version_type=linux
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 shlibpath_var=LD_LIBRARY_PATH
10801 ;;
10802
10803 *)
10804 dynamic_linker=no
10805 ;;
10806 esac
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10808 $as_echo "$dynamic_linker" >&6; }
10809 test "$dynamic_linker" = no && can_build_shared=no
10810
10811 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10812 if test "$GCC" = yes; then
10813 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10814 fi
10815
10816 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10817 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10818 fi
10819 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10820 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10821 fi
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10910 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10911 hardcode_action=
10912 if test -n "$hardcode_libdir_flag_spec" ||
10913 test -n "$runpath_var" ||
10914 test "X$hardcode_automatic" = "Xyes" ; then
10915
10916 # We can hardcode non-existent directories.
10917 if test "$hardcode_direct" != no &&
10918 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10919 # have to relink, otherwise we might link with an installed library
10920 # when we should be linking with a yet-to-be-installed one
10921 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10922 test "$hardcode_minus_L" != no; then
10923 # Linking always hardcodes the temporary library directory.
10924 hardcode_action=relink
10925 else
10926 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10927 hardcode_action=immediate
10928 fi
10929 else
10930 # We cannot hardcode anything, or else we can only hardcode existing
10931 # directories.
10932 hardcode_action=unsupported
10933 fi
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10935 $as_echo "$hardcode_action" >&6; }
10936
10937 if test "$hardcode_action" = relink ||
10938 test "$inherit_rpath" = yes; then
10939 # Fast installation is not supported
10940 enable_fast_install=no
10941 elif test "$shlibpath_overrides_runpath" = yes ||
10942 test "$enable_shared" = no; then
10943 # Fast installation is not necessary
10944 enable_fast_install=needless
10945 fi
10946
10947
10948
10949
10950
10951
10952 if test "x$enable_dlopen" != xyes; then
10953 enable_dlopen=unknown
10954 enable_dlopen_self=unknown
10955 enable_dlopen_self_static=unknown
10956 else
10957 lt_cv_dlopen=no
10958 lt_cv_dlopen_libs=
10959
10960 case $host_os in
10961 beos*)
10962 lt_cv_dlopen="load_add_on"
10963 lt_cv_dlopen_libs=
10964 lt_cv_dlopen_self=yes
10965 ;;
10966
10967 mingw* | pw32* | cegcc*)
10968 lt_cv_dlopen="LoadLibrary"
10969 lt_cv_dlopen_libs=
10970 ;;
10971
10972 cygwin*)
10973 lt_cv_dlopen="dlopen"
10974 lt_cv_dlopen_libs=
10975 ;;
10976
10977 darwin*)
10978 # if libdl is installed we need to link against it
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10980 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10981 if ${ac_cv_lib_dl_dlopen+:} false; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-ldl $LIBS"
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10988
10989 /* Override any GCC internal prototype to avoid an error.
10990 Use char because int might match the return type of a GCC
10991 builtin and then its argument prototype would still apply. */
10992 #ifdef __cplusplus
10993 extern "C"
10994 #endif
10995 char dlopen ();
10996 int
10997 main ()
10998 {
10999 return dlopen ();
11000 ;
11001 return 0;
11002 }
11003 _ACEOF
11004 if ac_fn_c_try_link "$LINENO"; then :
11005 ac_cv_lib_dl_dlopen=yes
11006 else
11007 ac_cv_lib_dl_dlopen=no
11008 fi
11009 rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011 LIBS=$ac_check_lib_save_LIBS
11012 fi
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11014 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11015 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11017 else
11018
11019 lt_cv_dlopen="dyld"
11020 lt_cv_dlopen_libs=
11021 lt_cv_dlopen_self=yes
11022
11023 fi
11024
11025 ;;
11026
11027 *)
11028 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11029 if test "x$ac_cv_func_shl_load" = xyes; then :
11030 lt_cv_dlopen="shl_load"
11031 else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11033 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11034 if ${ac_cv_lib_dld_shl_load+:} false; then :
11035 $as_echo_n "(cached) " >&6
11036 else
11037 ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-ldld $LIBS"
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11041
11042 /* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11045 #ifdef __cplusplus
11046 extern "C"
11047 #endif
11048 char shl_load ();
11049 int
11050 main ()
11051 {
11052 return shl_load ();
11053 ;
11054 return 0;
11055 }
11056 _ACEOF
11057 if ac_fn_c_try_link "$LINENO"; then :
11058 ac_cv_lib_dld_shl_load=yes
11059 else
11060 ac_cv_lib_dld_shl_load=no
11061 fi
11062 rm -f core conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11064 LIBS=$ac_check_lib_save_LIBS
11065 fi
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11067 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11068 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11069 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11070 else
11071 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11072 if test "x$ac_cv_func_dlopen" = xyes; then :
11073 lt_cv_dlopen="dlopen"
11074 else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11076 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11077 if ${ac_cv_lib_dl_dlopen+:} false; then :
11078 $as_echo_n "(cached) " >&6
11079 else
11080 ac_check_lib_save_LIBS=$LIBS
11081 LIBS="-ldl $LIBS"
11082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h. */
11084
11085 /* Override any GCC internal prototype to avoid an error.
11086 Use char because int might match the return type of a GCC
11087 builtin and then its argument prototype would still apply. */
11088 #ifdef __cplusplus
11089 extern "C"
11090 #endif
11091 char dlopen ();
11092 int
11093 main ()
11094 {
11095 return dlopen ();
11096 ;
11097 return 0;
11098 }
11099 _ACEOF
11100 if ac_fn_c_try_link "$LINENO"; then :
11101 ac_cv_lib_dl_dlopen=yes
11102 else
11103 ac_cv_lib_dl_dlopen=no
11104 fi
11105 rm -f core conftest.err conftest.$ac_objext \
11106 conftest$ac_exeext conftest.$ac_ext
11107 LIBS=$ac_check_lib_save_LIBS
11108 fi
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11110 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11111 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11113 else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11115 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11116 if ${ac_cv_lib_svld_dlopen+:} false; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 ac_check_lib_save_LIBS=$LIBS
11120 LIBS="-lsvld $LIBS"
11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11123
11124 /* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11127 #ifdef __cplusplus
11128 extern "C"
11129 #endif
11130 char dlopen ();
11131 int
11132 main ()
11133 {
11134 return dlopen ();
11135 ;
11136 return 0;
11137 }
11138 _ACEOF
11139 if ac_fn_c_try_link "$LINENO"; then :
11140 ac_cv_lib_svld_dlopen=yes
11141 else
11142 ac_cv_lib_svld_dlopen=no
11143 fi
11144 rm -f core conftest.err conftest.$ac_objext \
11145 conftest$ac_exeext conftest.$ac_ext
11146 LIBS=$ac_check_lib_save_LIBS
11147 fi
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11149 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11150 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11152 else
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11154 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11155 if ${ac_cv_lib_dld_dld_link+:} false; then :
11156 $as_echo_n "(cached) " >&6
11157 else
11158 ac_check_lib_save_LIBS=$LIBS
11159 LIBS="-ldld $LIBS"
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h. */
11162
11163 /* Override any GCC internal prototype to avoid an error.
11164 Use char because int might match the return type of a GCC
11165 builtin and then its argument prototype would still apply. */
11166 #ifdef __cplusplus
11167 extern "C"
11168 #endif
11169 char dld_link ();
11170 int
11171 main ()
11172 {
11173 return dld_link ();
11174 ;
11175 return 0;
11176 }
11177 _ACEOF
11178 if ac_fn_c_try_link "$LINENO"; then :
11179 ac_cv_lib_dld_dld_link=yes
11180 else
11181 ac_cv_lib_dld_dld_link=no
11182 fi
11183 rm -f core conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11185 LIBS=$ac_check_lib_save_LIBS
11186 fi
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11188 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11189 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11190 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11191 fi
11192
11193
11194 fi
11195
11196
11197 fi
11198
11199
11200 fi
11201
11202
11203 fi
11204
11205
11206 fi
11207
11208 ;;
11209 esac
11210
11211 if test "x$lt_cv_dlopen" != xno; then
11212 enable_dlopen=yes
11213 else
11214 enable_dlopen=no
11215 fi
11216
11217 case $lt_cv_dlopen in
11218 dlopen)
11219 save_CPPFLAGS="$CPPFLAGS"
11220 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11221
11222 save_LDFLAGS="$LDFLAGS"
11223 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11224
11225 save_LIBS="$LIBS"
11226 LIBS="$lt_cv_dlopen_libs $LIBS"
11227
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11229 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11230 if ${lt_cv_dlopen_self+:} false; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 if test "$cross_compiling" = yes; then :
11234 lt_cv_dlopen_self=cross
11235 else
11236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11237 lt_status=$lt_dlunknown
11238 cat > conftest.$ac_ext <<_LT_EOF
11239 #line 11239 "configure"
11240 #include "confdefs.h"
11241
11242 #if HAVE_DLFCN_H
11243 #include <dlfcn.h>
11244 #endif
11245
11246 #include <stdio.h>
11247
11248 #ifdef RTLD_GLOBAL
11249 # define LT_DLGLOBAL RTLD_GLOBAL
11250 #else
11251 # ifdef DL_GLOBAL
11252 # define LT_DLGLOBAL DL_GLOBAL
11253 # else
11254 # define LT_DLGLOBAL 0
11255 # endif
11256 #endif
11257
11258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11259 find out it does not work in some platform. */
11260 #ifndef LT_DLLAZY_OR_NOW
11261 # ifdef RTLD_LAZY
11262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11263 # else
11264 # ifdef DL_LAZY
11265 # define LT_DLLAZY_OR_NOW DL_LAZY
11266 # else
11267 # ifdef RTLD_NOW
11268 # define LT_DLLAZY_OR_NOW RTLD_NOW
11269 # else
11270 # ifdef DL_NOW
11271 # define LT_DLLAZY_OR_NOW DL_NOW
11272 # else
11273 # define LT_DLLAZY_OR_NOW 0
11274 # endif
11275 # endif
11276 # endif
11277 # endif
11278 #endif
11279
11280 void fnord() { int i=42;}
11281 int main ()
11282 {
11283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11284 int status = $lt_dlunknown;
11285
11286 if (self)
11287 {
11288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11289 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11290 /* dlclose (self); */
11291 }
11292 else
11293 puts (dlerror ());
11294
11295 return status;
11296 }
11297 _LT_EOF
11298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11299 (eval $ac_link) 2>&5
11300 ac_status=$?
11301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11302 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11303 (./conftest; exit; ) >&5 2>/dev/null
11304 lt_status=$?
11305 case x$lt_status in
11306 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11307 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11308 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11309 esac
11310 else :
11311 # compilation failed
11312 lt_cv_dlopen_self=no
11313 fi
11314 fi
11315 rm -fr conftest*
11316
11317
11318 fi
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11320 $as_echo "$lt_cv_dlopen_self" >&6; }
11321
11322 if test "x$lt_cv_dlopen_self" = xyes; then
11323 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11325 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11326 if ${lt_cv_dlopen_self_static+:} false; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11329 if test "$cross_compiling" = yes; then :
11330 lt_cv_dlopen_self_static=cross
11331 else
11332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11333 lt_status=$lt_dlunknown
11334 cat > conftest.$ac_ext <<_LT_EOF
11335 #line 11335 "configure"
11336 #include "confdefs.h"
11337
11338 #if HAVE_DLFCN_H
11339 #include <dlfcn.h>
11340 #endif
11341
11342 #include <stdio.h>
11343
11344 #ifdef RTLD_GLOBAL
11345 # define LT_DLGLOBAL RTLD_GLOBAL
11346 #else
11347 # ifdef DL_GLOBAL
11348 # define LT_DLGLOBAL DL_GLOBAL
11349 # else
11350 # define LT_DLGLOBAL 0
11351 # endif
11352 #endif
11353
11354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11355 find out it does not work in some platform. */
11356 #ifndef LT_DLLAZY_OR_NOW
11357 # ifdef RTLD_LAZY
11358 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11359 # else
11360 # ifdef DL_LAZY
11361 # define LT_DLLAZY_OR_NOW DL_LAZY
11362 # else
11363 # ifdef RTLD_NOW
11364 # define LT_DLLAZY_OR_NOW RTLD_NOW
11365 # else
11366 # ifdef DL_NOW
11367 # define LT_DLLAZY_OR_NOW DL_NOW
11368 # else
11369 # define LT_DLLAZY_OR_NOW 0
11370 # endif
11371 # endif
11372 # endif
11373 # endif
11374 #endif
11375
11376 void fnord() { int i=42;}
11377 int main ()
11378 {
11379 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11380 int status = $lt_dlunknown;
11381
11382 if (self)
11383 {
11384 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11385 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11386 /* dlclose (self); */
11387 }
11388 else
11389 puts (dlerror ());
11390
11391 return status;
11392 }
11393 _LT_EOF
11394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11395 (eval $ac_link) 2>&5
11396 ac_status=$?
11397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11398 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11399 (./conftest; exit; ) >&5 2>/dev/null
11400 lt_status=$?
11401 case x$lt_status in
11402 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11403 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11404 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11405 esac
11406 else :
11407 # compilation failed
11408 lt_cv_dlopen_self_static=no
11409 fi
11410 fi
11411 rm -fr conftest*
11412
11413
11414 fi
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11416 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11417 fi
11418
11419 CPPFLAGS="$save_CPPFLAGS"
11420 LDFLAGS="$save_LDFLAGS"
11421 LIBS="$save_LIBS"
11422 ;;
11423 esac
11424
11425 case $lt_cv_dlopen_self in
11426 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11427 *) enable_dlopen_self=unknown ;;
11428 esac
11429
11430 case $lt_cv_dlopen_self_static in
11431 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11432 *) enable_dlopen_self_static=unknown ;;
11433 esac
11434 fi
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452 striplib=
11453 old_striplib=
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11455 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11456 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11457 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11458 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11460 $as_echo "yes" >&6; }
11461 else
11462 # FIXME - insert some real tests, host_os isn't really good enough
11463 case $host_os in
11464 darwin*)
11465 if test -n "$STRIP" ; then
11466 striplib="$STRIP -x"
11467 old_striplib="$STRIP -S"
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11469 $as_echo "yes" >&6; }
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11473 fi
11474 ;;
11475 *)
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11478 ;;
11479 esac
11480 fi
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493 # Report which library types will actually be built
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11495 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11497 $as_echo "$can_build_shared" >&6; }
11498
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11500 $as_echo_n "checking whether to build shared libraries... " >&6; }
11501 test "$can_build_shared" = "no" && enable_shared=no
11502
11503 # On AIX, shared libraries and static libraries use the same namespace, and
11504 # are all built from PIC.
11505 case $host_os in
11506 aix3*)
11507 test "$enable_shared" = yes && enable_static=no
11508 if test -n "$RANLIB"; then
11509 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11510 postinstall_cmds='$RANLIB $lib'
11511 fi
11512 ;;
11513
11514 aix[4-9]*)
11515 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11516 test "$enable_shared" = yes && enable_static=no
11517 fi
11518 ;;
11519 esac
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11521 $as_echo "$enable_shared" >&6; }
11522
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11524 $as_echo_n "checking whether to build static libraries... " >&6; }
11525 # Make sure either enable_shared or enable_static is yes.
11526 test "$enable_shared" = yes || enable_static=yes
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11528 $as_echo "$enable_static" >&6; }
11529
11530
11531
11532
11533 fi
11534 ac_ext=c
11535 ac_cpp='$CPP $CPPFLAGS'
11536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11539
11540 CC="$lt_save_CC"
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554 ac_config_commands="$ac_config_commands libtool"
11555
11556
11557
11558
11559 # Only expand once:
11560
11561
11562
11563 LIBTOOL="$LIBTOOL --silent"
11564
11565 case "$host_os" in
11566 *cygwin*)
11567
11568 cat >>confdefs.h <<_ACEOF
11569 #define CYGWIN 1
11570 _ACEOF
11571
11572
11573 cat >>confdefs.h <<_ACEOF
11574 #define WINDOWS 1
11575 _ACEOF
11576
11577 ;;
11578 *mingw*)
11579
11580 cat >>confdefs.h <<_ACEOF
11581 #define MINGW 1
11582 _ACEOF
11583
11584
11585 cat >>confdefs.h <<_ACEOF
11586 #define WINDOWS 1
11587 _ACEOF
11588
11589 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
11590 if test "x$ac_cv_header_windows_h" = xyes; then :
11591
11592 else
11593 as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5
11594 fi
11595
11596
11597 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11598 if test "x$ac_cv_header_winsock2_h" = xyes; then :
11599
11600 else
11601 as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5
11602 fi
11603
11604
11605
11606 cat >>confdefs.h <<_ACEOF
11607 #define HAVE_WINSOCK2_H 1
11608 _ACEOF
11609
11610
11611 cat >>confdefs.h <<_ACEOF
11612 #define HAVE_WINSOCK_H 1
11613 _ACEOF
11614
11615 LIBS="$LIBS -lws2_32 -liphlpapi"
11616 is_mingw="yes"
11617 ;;
11618 *interix*)
11619 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
11620 ;;
11621 *solaris*)
11622 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
11623 ;;
11624 *)
11625 ;;
11626 esac
11627
11628 if test "$is_mingw" = "yes"; then
11629 MINGW_TRUE=
11630 MINGW_FALSE='#'
11631 else
11632 MINGW_TRUE='#'
11633 MINGW_FALSE=
11634 fi
11635
11636
11637
11638 # backwards support for IRC_CFLAGS
11639 CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
11640
11641 if test "$libexecdir" = '${exec_prefix}/libexec' &&
11642 test "$localstatedir" = '${prefix}/var'; then
11643 libexecdir='${bindir}'
11644 localstatedir='${prefix}'
11645 fi
11646
11647 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11648 if test "x$ac_cv_type_pid_t" = xyes; then :
11649
11650 else
11651
11652 cat >>confdefs.h <<_ACEOF
11653 #define pid_t int
11654 _ACEOF
11655
11656 fi
11657
11658 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11659 if test "x$ac_cv_type_size_t" = xyes; then :
11660
11661 else
11662
11663 cat >>confdefs.h <<_ACEOF
11664 #define size_t unsigned int
11665 _ACEOF
11666
11667 fi
11668
11669 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11670 if test "x$ac_cv_type_ssize_t" = xyes; then :
11671
11672 else
11673
11674 cat >>confdefs.h <<_ACEOF
11675 #define ssize_t int
11676 _ACEOF
11677
11678 fi
11679
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11681 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11682 if ${ac_cv_type_uid_t+:} false; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11687 #include <sys/types.h>
11688
11689 _ACEOF
11690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11691 $EGREP "uid_t" >/dev/null 2>&1; then :
11692 ac_cv_type_uid_t=yes
11693 else
11694 ac_cv_type_uid_t=no
11695 fi
11696 rm -f conftest*
11697
11698 fi
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11700 $as_echo "$ac_cv_type_uid_t" >&6; }
11701 if test $ac_cv_type_uid_t = no; then
11702
11703 $as_echo "#define uid_t int" >>confdefs.h
11704
11705
11706 $as_echo "#define gid_t int" >>confdefs.h
11707
11708 fi
11709
11710
11711
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11713 $as_echo_n "checking for ANSI C header files... " >&6; }
11714 if ${ac_cv_header_stdc+:} false; then :
11715 $as_echo_n "(cached) " >&6
11716 else
11717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11718 /* end confdefs.h. */
11719 #include <stdlib.h>
11720 #include <stdarg.h>
11721 #include <string.h>
11722 #include <float.h>
11723
11724 int
11725 main ()
11726 {
11727
11728 ;
11729 return 0;
11730 }
11731 _ACEOF
11732 if ac_fn_c_try_compile "$LINENO"; then :
11733 ac_cv_header_stdc=yes
11734 else
11735 ac_cv_header_stdc=no
11736 fi
11737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11738
11739 if test $ac_cv_header_stdc = yes; then
11740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742 /* end confdefs.h. */
11743 #include <string.h>
11744
11745 _ACEOF
11746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11747 $EGREP "memchr" >/dev/null 2>&1; then :
11748
11749 else
11750 ac_cv_header_stdc=no
11751 fi
11752 rm -f conftest*
11753
11754 fi
11755
11756 if test $ac_cv_header_stdc = yes; then
11757 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760 #include <stdlib.h>
11761
11762 _ACEOF
11763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11764 $EGREP "free" >/dev/null 2>&1; then :
11765
11766 else
11767 ac_cv_header_stdc=no
11768 fi
11769 rm -f conftest*
11770
11771 fi
11772
11773 if test $ac_cv_header_stdc = yes; then
11774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11775 if test "$cross_compiling" = yes; then :
11776 :
11777 else
11778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779 /* end confdefs.h. */
11780 #include <ctype.h>
11781 #include <stdlib.h>
11782 #if ((' ' & 0x0FF) == 0x020)
11783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11785 #else
11786 # define ISLOWER(c) \
11787 (('a' <= (c) && (c) <= 'i') \
11788 || ('j' <= (c) && (c) <= 'r') \
11789 || ('s' <= (c) && (c) <= 'z'))
11790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11791 #endif
11792
11793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11794 int
11795 main ()
11796 {
11797 int i;
11798 for (i = 0; i < 256; i++)
11799 if (XOR (islower (i), ISLOWER (i))
11800 || toupper (i) != TOUPPER (i))
11801 return 2;
11802 return 0;
11803 }
11804 _ACEOF
11805 if ac_fn_c_try_run "$LINENO"; then :
11806
11807 else
11808 ac_cv_header_stdc=no
11809 fi
11810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11811 conftest.$ac_objext conftest.beam conftest.$ac_ext
11812 fi
11813
11814 fi
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11817 $as_echo "$ac_cv_header_stdc" >&6; }
11818 if test $ac_cv_header_stdc = yes; then
11819
11820 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11821
11822 fi
11823
11824
11825 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
11826 do :
11827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11828 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11829 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11830 cat >>confdefs.h <<_ACEOF
11831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11832 _ACEOF
11833
11834 fi
11835
11836 done
11837
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11839 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11840 if ${ac_cv_header_time+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11845 #include <sys/types.h>
11846 #include <sys/time.h>
11847 #include <time.h>
11848
11849 int
11850 main ()
11851 {
11852 if ((struct tm *) 0)
11853 return 0;
11854 ;
11855 return 0;
11856 }
11857 _ACEOF
11858 if ac_fn_c_try_compile "$LINENO"; then :
11859 ac_cv_header_time=yes
11860 else
11861 ac_cv_header_time=no
11862 fi
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 fi
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11866 $as_echo "$ac_cv_header_time" >&6; }
11867 if test $ac_cv_header_time = yes; then
11868
11869 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11870
11871 fi
11872
11873
11874
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11876 $as_echo_n "checking for library containing socket... " >&6; }
11877 if ${ac_cv_search_socket+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 ac_func_search_save_LIBS=$LIBS
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11883
11884 /* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11887 #ifdef __cplusplus
11888 extern "C"
11889 #endif
11890 char socket ();
11891 int
11892 main ()
11893 {
11894 return socket ();
11895 ;
11896 return 0;
11897 }
11898 _ACEOF
11899 for ac_lib in '' socket; do
11900 if test -z "$ac_lib"; then
11901 ac_res="none required"
11902 else
11903 ac_res=-l$ac_lib
11904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11905 fi
11906 if ac_fn_c_try_link "$LINENO"; then :
11907 ac_cv_search_socket=$ac_res
11908 fi
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext
11911 if ${ac_cv_search_socket+:} false; then :
11912 break
11913 fi
11914 done
11915 if ${ac_cv_search_socket+:} false; then :
11916
11917 else
11918 ac_cv_search_socket=no
11919 fi
11920 rm conftest.$ac_ext
11921 LIBS=$ac_func_search_save_LIBS
11922 fi
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11924 $as_echo "$ac_cv_search_socket" >&6; }
11925 ac_res=$ac_cv_search_socket
11926 if test "$ac_res" != no; then :
11927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11928
11929 fi
11930
11931
11932
11933 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
11934 #ifdef HAVE_SYS_TYPES_H
11935 #include <sys/types.h>
11936 #endif
11937 #ifdef HAVE_SYS_SOCKET_H
11938 #include <sys/socket.h>
11939 #endif
11940 #ifdef HAVE_WINSOCK2_H
11941 #include <winsock2.h>
11942 #endif
11943
11944 "
11945 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11946
11947 $as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
11948
11949 fi
11950
11951
11952 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11953 #include <sys/socket.h>
11954 "
11955 if test "x$ac_cv_type_socklen_t" = xyes; then :
11956 rb_cv_socklen_t=socklen_t
11957 else
11958
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
11960 $as_echo_n "checking for socklen_t equivalent... " >&6; }
11961 if ${rb_cv_socklen_t+:} false; then :
11962 $as_echo_n "(cached) " >&6
11963 else
11964
11965 # Systems have either "struct sockaddr *" or
11966 # "void *" as the second argument to getpeername
11967 rb_cv_socklen_t=
11968 for arg2 in "struct sockaddr" void; do
11969 for t in int size_t unsigned long "unsigned long"; do
11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11972
11973 #ifdef HAVE_SYS_TYPES_H
11974 #include <sys/types.h>
11975 #endif
11976 #ifdef HAVE_SYS_SOCKET_H
11977 #include <sys/socket.h>
11978 #endif
11979 #ifdef HAVE_WINSOCK2_H
11980 #include <winsock2.h>
11981 #endif
11982 int getpeername (int, $arg2 *, $t *);
11983
11984 int
11985 main ()
11986 {
11987
11988 $t len;
11989 getpeername(0,0,&len);
11990
11991 ;
11992 return 0;
11993 }
11994 _ACEOF
11995 if ac_fn_c_try_compile "$LINENO"; then :
11996
11997 rb_cv_socklen_t="$t"
11998 break
11999
12000 fi
12001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12002 done
12003 done
12004
12005 if test "x$rb_cv_socklen_t" = x; then
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
12007 $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
12008 rb_cv_socklen_t=int
12009 fi
12010
12011 fi
12012
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
12014 $as_echo "$rb_cv_socklen_t" >&6; }
12015 fi
12016
12017
12018 rb_socklen_t=$rb_cv_socklen_t
12019
12020
12021
12022
12023
12024 # Check whether --enable-ipv6 was given.
12025 if test "${enable_ipv6+set}" = set; then :
12026 enableval=$enable_ipv6; ipv6=$enableval
12027 else
12028 ipv6=yes
12029 fi
12030
12031
12032 if test x$ipv6 != xyes; then
12033 have_v6="no"
12034 else
12035
12036 have_v6=yes
12037
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
12039 $as_echo_n "checking for INET6 protocol support... " >&6; }
12040 if ${rb_cv_proto_inet6+:} false; then :
12041 $as_echo_n "(cached) " >&6
12042 else
12043
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12046
12047 #include <sys/types.h>
12048 #include <sys/socket.h>
12049
12050 #ifndef PF_INET6
12051 #error Missing PF_INET6
12052 #endif
12053 #ifndef AF_INET6
12054 #error Mlssing AF_INET6
12055 #endif
12056
12057 _ACEOF
12058 if ac_fn_c_try_cpp "$LINENO"; then :
12059
12060 rb_cv_proto_inet6=yes
12061
12062 else
12063
12064 rb_cv_proto_inet6=no
12065
12066 fi
12067 rm -f conftest.err conftest.i conftest.$ac_ext
12068
12069 fi
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
12071 $as_echo "$rb_cv_proto_inet6" >&6; }
12072
12073 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
12074
12075 else :
12076
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
12078 $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
12079 have_v6=no
12080
12081 fi
12082
12083
12084 if test "X$have_v6" = "Xyes"; then
12085
12086 rb_have_sockaddr_in6=
12087 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
12088 #include <sys/types.h>
12089 #include <sys/socket.h>
12090 #include <netinet/in.h>
12091
12092 "
12093 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
12094
12095 cat >>confdefs.h <<_ACEOF
12096 #define HAVE_STRUCT_SOCKADDR_IN6 1
12097 _ACEOF
12098
12099
12100 rb_have_sockaddr_in6=yes
12101
12102 else
12103
12104 rb_have_sockaddr_in6=no
12105
12106 fi
12107
12108
12109 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
12110
12111 else :
12112
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
12114 $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
12115 have_v6=no
12116
12117 fi
12118
12119 fi
12120
12121 fi
12122
12123 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
12124 #include <sys/types.h>
12125 #include <sys/socket.h>
12126
12127 "
12128 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
12129
12130 cat >>confdefs.h <<_ACEOF
12131 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12132 _ACEOF
12133
12134
12135 rb_have_sockaddr_storage=yes
12136
12137 fi
12138
12139
12140
12141 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
12142 if test "x$ac_cv_header_stdarg_h" = xyes; then :
12143
12144 else
12145 as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
12146 fi
12147
12148
12149
12150 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
12151 #include <sys/socket.h>
12152 "
12153 if test "x$ac_cv_type_sa_family_t" = xyes; then :
12154
12155 else
12156
12157 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
12158
12159 fi
12160
12161
12162
12163 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
12164 do :
12165 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12166 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12167 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12168 cat >>confdefs.h <<_ACEOF
12169 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12170 _ACEOF
12171
12172 fi
12173 done
12174
12175
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
12177 $as_echo_n "checking for library containing nanosleep... " >&6; }
12178 if ${ac_cv_search_nanosleep+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 ac_func_search_save_LIBS=$LIBS
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12184
12185 /* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
12188 #ifdef __cplusplus
12189 extern "C"
12190 #endif
12191 char nanosleep ();
12192 int
12193 main ()
12194 {
12195 return nanosleep ();
12196 ;
12197 return 0;
12198 }
12199 _ACEOF
12200 for ac_lib in '' rt posix4; do
12201 if test -z "$ac_lib"; then
12202 ac_res="none required"
12203 else
12204 ac_res=-l$ac_lib
12205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12206 fi
12207 if ac_fn_c_try_link "$LINENO"; then :
12208 ac_cv_search_nanosleep=$ac_res
12209 fi
12210 rm -f core conftest.err conftest.$ac_objext \
12211 conftest$ac_exeext
12212 if ${ac_cv_search_nanosleep+:} false; then :
12213 break
12214 fi
12215 done
12216 if ${ac_cv_search_nanosleep+:} false; then :
12217
12218 else
12219 ac_cv_search_nanosleep=no
12220 fi
12221 rm conftest.$ac_ext
12222 LIBS=$ac_func_search_save_LIBS
12223 fi
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
12225 $as_echo "$ac_cv_search_nanosleep" >&6; }
12226 ac_res=$ac_cv_search_nanosleep
12227 if test "$ac_res" != no; then :
12228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12229
12230 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
12231
12232 fi
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
12235 $as_echo_n "checking for library containing timer_create... " >&6; }
12236 if ${ac_cv_search_timer_create+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 ac_func_search_save_LIBS=$LIBS
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12242
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12246 #ifdef __cplusplus
12247 extern "C"
12248 #endif
12249 char timer_create ();
12250 int
12251 main ()
12252 {
12253 return timer_create ();
12254 ;
12255 return 0;
12256 }
12257 _ACEOF
12258 for ac_lib in '' rt; do
12259 if test -z "$ac_lib"; then
12260 ac_res="none required"
12261 else
12262 ac_res=-l$ac_lib
12263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12264 fi
12265 if ac_fn_c_try_link "$LINENO"; then :
12266 ac_cv_search_timer_create=$ac_res
12267 fi
12268 rm -f core conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext
12270 if ${ac_cv_search_timer_create+:} false; then :
12271 break
12272 fi
12273 done
12274 if ${ac_cv_search_timer_create+:} false; then :
12275
12276 else
12277 ac_cv_search_timer_create=no
12278 fi
12279 rm conftest.$ac_ext
12280 LIBS=$ac_func_search_save_LIBS
12281 fi
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
12283 $as_echo "$ac_cv_search_timer_create" >&6; }
12284 ac_res=$ac_cv_search_timer_create
12285 if test "$ac_res" != no; then :
12286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12287
12288 $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
12289
12290 fi
12291
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
12293 $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
12294 if ${rb__cv_timer_create_works+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 if test "$cross_compiling" = yes; then :
12298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12300 as_fn_error $? "cannot run test program while cross compiling
12301 See \`config.log' for more details" "$LINENO" 5; }
12302 else
12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12305
12306 #ifdef HAVE_TIME_H
12307 #include <time.h>
12308 #endif
12309 #ifdef HAVE_SIGNAL_H
12310 #include <signal.h>
12311 #endif
12312 #ifdef HAVE_UNISTD_H
12313 #include <unistd.h>
12314 #endif
12315 int main(int argc, char *argv[])
12316 {
12317 #if HAVE_TIMER_CREATE
12318 struct sigevent ev;
12319 timer_t timer;
12320 ev.sigev_notify = SIGEV_SIGNAL;
12321 ev.sigev_signo = SIGVTALRM;
12322 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
12323 return 1;
12324 }
12325 #else
12326 return 1;
12327 #endif
12328 return 0;
12329 }
12330
12331 _ACEOF
12332 if ac_fn_c_try_run "$LINENO"; then :
12333 rb__cv_timer_create_works=yes
12334 else
12335 rb__cv_timer_create_works=no
12336 fi
12337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12338 conftest.$ac_objext conftest.beam conftest.$ac_ext
12339 fi
12340
12341
12342 fi
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
12344 $as_echo "$rb__cv_timer_create_works" >&6; }
12345 case $rb__cv_timer_create_works in
12346 yes)
12347 $as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
12348 ;;
12349 esac
12350
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
12352 $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
12353 if ${rb__cv_timerfd_create_works+:} false; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 if test "$cross_compiling" = yes; then :
12357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12359 as_fn_error $? "cannot run test program while cross compiling
12360 See \`config.log' for more details" "$LINENO" 5; }
12361 else
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12364
12365 #ifdef HAVE_TIME_H
12366 #include <time.h>
12367 #endif
12368 #ifdef HAVE_SIGNAL_H
12369 #include <signal.h>
12370 #endif
12371 #ifdef HAVE_UNISTD_H
12372 #include <unistd.h>
12373 #endif
12374 #ifdef HAVE_SYS_TIMERFD_H
12375 #include <sys/timerfd.h>
12376 #endif
12377 int main(int argc, char *argv[])
12378 {
12379 #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
12380 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
12381 return 1;
12382 }
12383 #else
12384 return 1;
12385 #endif
12386 return 0;
12387 }
12388
12389 _ACEOF
12390 if ac_fn_c_try_run "$LINENO"; then :
12391 rb__cv_timerfd_create_works=yes
12392 else
12393 rb__cv_timerfd_create_works=no
12394 fi
12395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12396 conftest.$ac_objext conftest.beam conftest.$ac_ext
12397 fi
12398
12399
12400 fi
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
12402 $as_echo "$rb__cv_timerfd_create_works" >&6; }
12403 case $rb__cv_timerfd_create_works in
12404 yes)
12405 $as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
12406 ;;
12407 esac
12408
12409
12410 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12411 # for constant arguments. Useless!
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12413 $as_echo_n "checking for working alloca.h... " >&6; }
12414 if ${ac_cv_working_alloca_h+:} false; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12419 #include <alloca.h>
12420 int
12421 main ()
12422 {
12423 char *p = (char *) alloca (2 * sizeof (int));
12424 if (p) return 0;
12425 ;
12426 return 0;
12427 }
12428 _ACEOF
12429 if ac_fn_c_try_link "$LINENO"; then :
12430 ac_cv_working_alloca_h=yes
12431 else
12432 ac_cv_working_alloca_h=no
12433 fi
12434 rm -f core conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext conftest.$ac_ext
12436 fi
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12438 $as_echo "$ac_cv_working_alloca_h" >&6; }
12439 if test $ac_cv_working_alloca_h = yes; then
12440
12441 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12442
12443 fi
12444
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12446 $as_echo_n "checking for alloca... " >&6; }
12447 if ${ac_cv_func_alloca_works+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12452 #ifdef __GNUC__
12453 # define alloca __builtin_alloca
12454 #else
12455 # ifdef _MSC_VER
12456 # include <malloc.h>
12457 # define alloca _alloca
12458 # else
12459 # ifdef HAVE_ALLOCA_H
12460 # include <alloca.h>
12461 # else
12462 # ifdef _AIX
12463 #pragma alloca
12464 # else
12465 # ifndef alloca /* predefined by HP cc +Olibcalls */
12466 void *alloca (size_t);
12467 # endif
12468 # endif
12469 # endif
12470 # endif
12471 #endif
12472
12473 int
12474 main ()
12475 {
12476 char *p = (char *) alloca (1);
12477 if (p) return 0;
12478 ;
12479 return 0;
12480 }
12481 _ACEOF
12482 if ac_fn_c_try_link "$LINENO"; then :
12483 ac_cv_func_alloca_works=yes
12484 else
12485 ac_cv_func_alloca_works=no
12486 fi
12487 rm -f core conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
12489 fi
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12491 $as_echo "$ac_cv_func_alloca_works" >&6; }
12492
12493 if test $ac_cv_func_alloca_works = yes; then
12494
12495 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12496
12497 else
12498 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12499 # that cause trouble. Some versions do not even contain alloca or
12500 # contain a buggy version. If you still want to use their alloca,
12501 # use ar to extract alloca.o from them instead of compiling alloca.c.
12502
12503 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12504
12505 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12506
12507
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12509 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12510 if ${ac_cv_os_cray+:} false; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515 #if defined CRAY && ! defined CRAY2
12516 webecray
12517 #else
12518 wenotbecray
12519 #endif
12520
12521 _ACEOF
12522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12523 $EGREP "webecray" >/dev/null 2>&1; then :
12524 ac_cv_os_cray=yes
12525 else
12526 ac_cv_os_cray=no
12527 fi
12528 rm -f conftest*
12529
12530 fi
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12532 $as_echo "$ac_cv_os_cray" >&6; }
12533 if test $ac_cv_os_cray = yes; then
12534 for ac_func in _getb67 GETB67 getb67; do
12535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12536 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12537 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12538
12539 cat >>confdefs.h <<_ACEOF
12540 #define CRAY_STACKSEG_END $ac_func
12541 _ACEOF
12542
12543 break
12544 fi
12545
12546 done
12547 fi
12548
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12550 $as_echo_n "checking stack direction for C alloca... " >&6; }
12551 if ${ac_cv_c_stack_direction+:} false; then :
12552 $as_echo_n "(cached) " >&6
12553 else
12554 if test "$cross_compiling" = yes; then :
12555 ac_cv_c_stack_direction=0
12556 else
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559 $ac_includes_default
12560 int
12561 find_stack_direction ()
12562 {
12563 static char *addr = 0;
12564 auto char dummy;
12565 if (addr == 0)
12566 {
12567 addr = &dummy;
12568 return find_stack_direction ();
12569 }
12570 else
12571 return (&dummy > addr) ? 1 : -1;
12572 }
12573
12574 int
12575 main ()
12576 {
12577 return find_stack_direction () < 0;
12578 }
12579 _ACEOF
12580 if ac_fn_c_try_run "$LINENO"; then :
12581 ac_cv_c_stack_direction=1
12582 else
12583 ac_cv_c_stack_direction=-1
12584 fi
12585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12586 conftest.$ac_objext conftest.beam conftest.$ac_ext
12587 fi
12588
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12591 $as_echo "$ac_cv_c_stack_direction" >&6; }
12592 cat >>confdefs.h <<_ACEOF
12593 #define STACK_DIRECTION $ac_cv_c_stack_direction
12594 _ACEOF
12595
12596
12597 fi
12598
12599 for ac_header in vfork.h
12600 do :
12601 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12602 if test "x$ac_cv_header_vfork_h" = xyes; then :
12603 cat >>confdefs.h <<_ACEOF
12604 #define HAVE_VFORK_H 1
12605 _ACEOF
12606
12607 fi
12608
12609 done
12610
12611 for ac_func in fork vfork
12612 do :
12613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12615 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12616 cat >>confdefs.h <<_ACEOF
12617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12618 _ACEOF
12619
12620 fi
12621 done
12622
12623 if test "x$ac_cv_func_fork" = xyes; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12625 $as_echo_n "checking for working fork... " >&6; }
12626 if ${ac_cv_func_fork_works+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629 if test "$cross_compiling" = yes; then :
12630 ac_cv_func_fork_works=cross
12631 else
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 $ac_includes_default
12635 int
12636 main ()
12637 {
12638
12639 /* By Ruediger Kuhlmann. */
12640 return fork () < 0;
12641
12642 ;
12643 return 0;
12644 }
12645 _ACEOF
12646 if ac_fn_c_try_run "$LINENO"; then :
12647 ac_cv_func_fork_works=yes
12648 else
12649 ac_cv_func_fork_works=no
12650 fi
12651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12652 conftest.$ac_objext conftest.beam conftest.$ac_ext
12653 fi
12654
12655 fi
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12657 $as_echo "$ac_cv_func_fork_works" >&6; }
12658
12659 else
12660 ac_cv_func_fork_works=$ac_cv_func_fork
12661 fi
12662 if test "x$ac_cv_func_fork_works" = xcross; then
12663 case $host in
12664 *-*-amigaos* | *-*-msdosdjgpp*)
12665 # Override, as these systems have only a dummy fork() stub
12666 ac_cv_func_fork_works=no
12667 ;;
12668 *)
12669 ac_cv_func_fork_works=yes
12670 ;;
12671 esac
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12673 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12674 fi
12675 ac_cv_func_vfork_works=$ac_cv_func_vfork
12676 if test "x$ac_cv_func_vfork" = xyes; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12678 $as_echo_n "checking for working vfork... " >&6; }
12679 if ${ac_cv_func_vfork_works+:} false; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 if test "$cross_compiling" = yes; then :
12683 ac_cv_func_vfork_works=cross
12684 else
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12687 /* Thanks to Paul Eggert for this test. */
12688 $ac_includes_default
12689 #include <sys/wait.h>
12690 #ifdef HAVE_VFORK_H
12691 # include <vfork.h>
12692 #endif
12693 /* On some sparc systems, changes by the child to local and incoming
12694 argument registers are propagated back to the parent. The compiler
12695 is told about this with #include <vfork.h>, but some compilers
12696 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12697 static variable whose address is put into a register that is
12698 clobbered by the vfork. */
12699 static void
12700 #ifdef __cplusplus
12701 sparc_address_test (int arg)
12702 # else
12703 sparc_address_test (arg) int arg;
12704 #endif
12705 {
12706 static pid_t child;
12707 if (!child) {
12708 child = vfork ();
12709 if (child < 0) {
12710 perror ("vfork");
12711 _exit(2);
12712 }
12713 if (!child) {
12714 arg = getpid();
12715 write(-1, "", 0);
12716 _exit (arg);
12717 }
12718 }
12719 }
12720
12721 int
12722 main ()
12723 {
12724 pid_t parent = getpid ();
12725 pid_t child;
12726
12727 sparc_address_test (0);
12728
12729 child = vfork ();
12730
12731 if (child == 0) {
12732 /* Here is another test for sparc vfork register problems. This
12733 test uses lots of local variables, at least as many local
12734 variables as main has allocated so far including compiler
12735 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12736 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12737 reuse the register of parent for one of the local variables,
12738 since it will think that parent can't possibly be used any more
12739 in this routine. Assigning to the local variable will thus
12740 munge parent in the parent process. */
12741 pid_t
12742 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12743 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12744 /* Convince the compiler that p..p7 are live; otherwise, it might
12745 use the same hardware register for all 8 local variables. */
12746 if (p != p1 || p != p2 || p != p3 || p != p4
12747 || p != p5 || p != p6 || p != p7)
12748 _exit(1);
12749
12750 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12751 from child file descriptors. If the child closes a descriptor
12752 before it execs or exits, this munges the parent's descriptor
12753 as well. Test for this by closing stdout in the child. */
12754 _exit(close(fileno(stdout)) != 0);
12755 } else {
12756 int status;
12757 struct stat st;
12758
12759 while (wait(&status) != child)
12760 ;
12761 return (
12762 /* Was there some problem with vforking? */
12763 child < 0
12764
12765 /* Did the child fail? (This shouldn't happen.) */
12766 || status
12767
12768 /* Did the vfork/compiler bug occur? */
12769 || parent != getpid()
12770
12771 /* Did the file descriptor bug occur? */
12772 || fstat(fileno(stdout), &st) != 0
12773 );
12774 }
12775 }
12776 _ACEOF
12777 if ac_fn_c_try_run "$LINENO"; then :
12778 ac_cv_func_vfork_works=yes
12779 else
12780 ac_cv_func_vfork_works=no
12781 fi
12782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12783 conftest.$ac_objext conftest.beam conftest.$ac_ext
12784 fi
12785
12786 fi
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12788 $as_echo "$ac_cv_func_vfork_works" >&6; }
12789
12790 fi;
12791 if test "x$ac_cv_func_fork_works" = xcross; then
12792 ac_cv_func_vfork_works=$ac_cv_func_vfork
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12794 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12795 fi
12796
12797 if test "x$ac_cv_func_vfork_works" = xyes; then
12798
12799 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12800
12801 else
12802
12803 $as_echo "#define vfork fork" >>confdefs.h
12804
12805 fi
12806 if test "x$ac_cv_func_fork_works" = xyes; then
12807
12808 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12809
12810 fi
12811
12812
12813
12814
12815 for ac_header in $ac_header_list
12816 do :
12817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12818 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12819 "
12820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12821 cat >>confdefs.h <<_ACEOF
12822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12823 _ACEOF
12824
12825 fi
12826
12827 done
12828
12829
12830
12831
12832
12833
12834
12835
12836 for ac_func in getpagesize
12837 do :
12838 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12839 if test "x$ac_cv_func_getpagesize" = xyes; then :
12840 cat >>confdefs.h <<_ACEOF
12841 #define HAVE_GETPAGESIZE 1
12842 _ACEOF
12843
12844 fi
12845 done
12846
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12848 $as_echo_n "checking for working mmap... " >&6; }
12849 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12850 $as_echo_n "(cached) " >&6
12851 else
12852 if test "$cross_compiling" = yes; then :
12853 ac_cv_func_mmap_fixed_mapped=no
12854 else
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12857 $ac_includes_default
12858 /* malloc might have been renamed as rpl_malloc. */
12859 #undef malloc
12860
12861 /* Thanks to Mike Haertel and Jim Avera for this test.
12862 Here is a matrix of mmap possibilities:
12863 mmap private not fixed
12864 mmap private fixed at somewhere currently unmapped
12865 mmap private fixed at somewhere already mapped
12866 mmap shared not fixed
12867 mmap shared fixed at somewhere currently unmapped
12868 mmap shared fixed at somewhere already mapped
12869 For private mappings, we should verify that changes cannot be read()
12870 back from the file, nor mmap's back from the file at a different
12871 address. (There have been systems where private was not correctly
12872 implemented like the infamous i386 svr4.0, and systems where the
12873 VM page cache was not coherent with the file system buffer cache
12874 like early versions of FreeBSD and possibly contemporary NetBSD.)
12875 For shared mappings, we should conversely verify that changes get
12876 propagated back to all the places they're supposed to be.
12877
12878 Grep wants private fixed already mapped.
12879 The main things grep needs to know about mmap are:
12880 * does it exist and is it safe to write into the mmap'd area
12881 * how to use it (BSD variants) */
12882
12883 #include <fcntl.h>
12884 #include <sys/mman.h>
12885
12886 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12887 char *malloc ();
12888 #endif
12889
12890 /* This mess was copied from the GNU getpagesize.h. */
12891 #ifndef HAVE_GETPAGESIZE
12892 # ifdef _SC_PAGESIZE
12893 # define getpagesize() sysconf(_SC_PAGESIZE)
12894 # else /* no _SC_PAGESIZE */
12895 # ifdef HAVE_SYS_PARAM_H
12896 # include <sys/param.h>
12897 # ifdef EXEC_PAGESIZE
12898 # define getpagesize() EXEC_PAGESIZE
12899 # else /* no EXEC_PAGESIZE */
12900 # ifdef NBPG
12901 # define getpagesize() NBPG * CLSIZE
12902 # ifndef CLSIZE
12903 # define CLSIZE 1
12904 # endif /* no CLSIZE */
12905 # else /* no NBPG */
12906 # ifdef NBPC
12907 # define getpagesize() NBPC
12908 # else /* no NBPC */
12909 # ifdef PAGESIZE
12910 # define getpagesize() PAGESIZE
12911 # endif /* PAGESIZE */
12912 # endif /* no NBPC */
12913 # endif /* no NBPG */
12914 # endif /* no EXEC_PAGESIZE */
12915 # else /* no HAVE_SYS_PARAM_H */
12916 # define getpagesize() 8192 /* punt totally */
12917 # endif /* no HAVE_SYS_PARAM_H */
12918 # endif /* no _SC_PAGESIZE */
12919
12920 #endif /* no HAVE_GETPAGESIZE */
12921
12922 int
12923 main ()
12924 {
12925 char *data, *data2, *data3;
12926 const char *cdata2;
12927 int i, pagesize;
12928 int fd, fd2;
12929
12930 pagesize = getpagesize ();
12931
12932 /* First, make a file with some known garbage in it. */
12933 data = (char *) malloc (pagesize);
12934 if (!data)
12935 return 1;
12936 for (i = 0; i < pagesize; ++i)
12937 *(data + i) = rand ();
12938 umask (0);
12939 fd = creat ("conftest.mmap", 0600);
12940 if (fd < 0)
12941 return 2;
12942 if (write (fd, data, pagesize) != pagesize)
12943 return 3;
12944 close (fd);
12945
12946 /* Next, check that the tail of a page is zero-filled. File must have
12947 non-zero length, otherwise we risk SIGBUS for entire page. */
12948 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12949 if (fd2 < 0)
12950 return 4;
12951 cdata2 = "";
12952 if (write (fd2, cdata2, 1) != 1)
12953 return 5;
12954 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12955 if (data2 == MAP_FAILED)
12956 return 6;
12957 for (i = 0; i < pagesize; ++i)
12958 if (*(data2 + i))
12959 return 7;
12960 close (fd2);
12961 if (munmap (data2, pagesize))
12962 return 8;
12963
12964 /* Next, try to mmap the file at a fixed address which already has
12965 something else allocated at it. If we can, also make sure that
12966 we see the same garbage. */
12967 fd = open ("conftest.mmap", O_RDWR);
12968 if (fd < 0)
12969 return 9;
12970 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12971 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12972 return 10;
12973 for (i = 0; i < pagesize; ++i)
12974 if (*(data + i) != *(data2 + i))
12975 return 11;
12976
12977 /* Finally, make sure that changes to the mapped area do not
12978 percolate back to the file as seen by read(). (This is a bug on
12979 some variants of i386 svr4.0.) */
12980 for (i = 0; i < pagesize; ++i)
12981 *(data2 + i) = *(data2 + i) + 1;
12982 data3 = (char *) malloc (pagesize);
12983 if (!data3)
12984 return 12;
12985 if (read (fd, data3, pagesize) != pagesize)
12986 return 13;
12987 for (i = 0; i < pagesize; ++i)
12988 if (*(data + i) != *(data3 + i))
12989 return 14;
12990 close (fd);
12991 return 0;
12992 }
12993 _ACEOF
12994 if ac_fn_c_try_run "$LINENO"; then :
12995 ac_cv_func_mmap_fixed_mapped=yes
12996 else
12997 ac_cv_func_mmap_fixed_mapped=no
12998 fi
12999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13000 conftest.$ac_objext conftest.beam conftest.$ac_ext
13001 fi
13002
13003 fi
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13005 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13006 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13007
13008 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13009
13010 fi
13011 rm -f conftest.mmap conftest.txt
13012
13013
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
13015 $as_echo_n "checking for /dev/poll... " >&6; }
13016 if test -c "/dev/poll"; then
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13018 $as_echo "yes" >&6; }
13019
13020 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13021
13022 else
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 $as_echo "no" >&6; }
13025 fi
13026
13027
13028 if test "$is_mingw" = "yes"; then
13029
13030 $as_echo "#define HAVE_WIN32 1" >>confdefs.h
13031
13032 fi
13033
13034
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13036 $as_echo_n "checking for OpenSSL... " >&6; }
13037 # Check whether --enable-openssl was given.
13038 if test "${enable_openssl+set}" = set; then :
13039 enableval=$enable_openssl; cf_enable_openssl=$enableval
13040 else
13041 cf_enable_openssl="auto"
13042 fi
13043
13044
13045 if test "$cf_enable_openssl" != "no" ; then
13046 cf_openssl_basedir=""
13047 if test "$cf_enable_openssl" != "auto" &&
13048 test "$cf_enable_openssl" != "yes" ; then
13049 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
13050 else
13051 for dirs in /usr/local/ssl /usr/pkg /usr/local \
13052 /usr/local/openssl ; do
13053 if test -f "${dirs}/include/openssl/opensslv.h" ; then
13054 cf_openssl_basedir="${dirs}"
13055 break
13056 fi
13057 done
13058 unset dirs
13059 fi
13060 if test ! -z "$cf_openssl_basedir"; then
13061 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
13062 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
13063 SSL_LIBS="-L${cf_openssl_basedir}/lib"
13064 else
13065 cf_openssl_basedir=""
13066 fi
13067 else
13068 if test -f "/usr/include/openssl/opensslv.h" ; then
13069 cf_openssl_basedir="/usr"
13070 fi
13071 fi
13072
13073 if test ! -z "$cf_openssl_basedir"; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13075 $as_echo "$cf_openssl_basedir" >&6; }
13076 cf_enable_openssl="yes"
13077 else
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
13079 $as_echo "not found. Specify a correct path?" >&6; }
13080 cf_enable_openssl="no"
13081 fi
13082 unset cf_openssl_basedir
13083 else
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13085 $as_echo "disabled" >&6; }
13086 fi
13087
13088 save_CPPFLAGS="$CPPFLAGS"
13089 CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
13090 save_LIBS="$LIBS"
13091 LIBS="$LIBS $SSL_LIBS"
13092 if test "$cf_enable_openssl" != no; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
13094 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
13095 if test "$cross_compiling" = yes; then :
13096 cf_enable_openssl=no
13097 else
13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13100 #include <openssl/opensslv.h>
13101 #include <stdlib.h>
13102 int
13103 main ()
13104 {
13105 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
13106 exit(0); else exit(1);
13107 ;
13108 return 0;
13109 }
13110 _ACEOF
13111 if ac_fn_c_try_run "$LINENO"; then :
13112 cf_enable_openssl=yes
13113 else
13114 cf_enable_openssl=no
13115 fi
13116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13117 conftest.$ac_objext conftest.beam conftest.$ac_ext
13118 fi
13119
13120
13121 if test "$cf_enable_openssl" != no; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13123 $as_echo "found" >&6; }
13124 else
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13126 $as_echo "no - OpenSSL support disabled" >&6; }
13127 fi
13128
13129 fi
13130
13131
13132 if test "$cf_enable_openssl" != no; then
13133 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
13135 $as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
13136 if ${ac_cv_lib_crypto_RAND_status+:} false; then :
13137 $as_echo_n "(cached) " >&6
13138 else
13139 ac_check_lib_save_LIBS=$LIBS
13140 LIBS="-lcrypto $LIBS"
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13143
13144 /* Override any GCC internal prototype to avoid an error.
13145 Use char because int might match the return type of a GCC
13146 builtin and then its argument prototype would still apply. */
13147 #ifdef __cplusplus
13148 extern "C"
13149 #endif
13150 char RAND_status ();
13151 int
13152 main ()
13153 {
13154 return RAND_status ();
13155 ;
13156 return 0;
13157 }
13158 _ACEOF
13159 if ac_fn_c_try_link "$LINENO"; then :
13160 ac_cv_lib_crypto_RAND_status=yes
13161 else
13162 ac_cv_lib_crypto_RAND_status=no
13163 fi
13164 rm -f core conftest.err conftest.$ac_objext \
13165 conftest$ac_exeext conftest.$ac_ext
13166 LIBS=$ac_check_lib_save_LIBS
13167 fi
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
13169 $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
13170 if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then :
13171 cf_enable_openssl=yes
13172 else
13173 cf_enable_openssl=no
13174 fi
13175
13176 fi
13177
13178 if test "$cf_enable_openssl" != no; then
13179 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
13181 $as_echo_n "checking for SSL_read in -lssl... " >&6; }
13182 if ${ac_cv_lib_ssl_SSL_read+:} false; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 ac_check_lib_save_LIBS=$LIBS
13186 LIBS="-lssl -lcrypto $LIBS"
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13189
13190 /* Override any GCC internal prototype to avoid an error.
13191 Use char because int might match the return type of a GCC
13192 builtin and then its argument prototype would still apply. */
13193 #ifdef __cplusplus
13194 extern "C"
13195 #endif
13196 char SSL_read ();
13197 int
13198 main ()
13199 {
13200 return SSL_read ();
13201 ;
13202 return 0;
13203 }
13204 _ACEOF
13205 if ac_fn_c_try_link "$LINENO"; then :
13206 ac_cv_lib_ssl_SSL_read=yes
13207 else
13208 ac_cv_lib_ssl_SSL_read=no
13209 fi
13210 rm -f core conftest.err conftest.$ac_objext \
13211 conftest$ac_exeext conftest.$ac_ext
13212 LIBS=$ac_check_lib_save_LIBS
13213 fi
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
13215 $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
13216 if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then :
13217 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
13218 else
13219 cf_enable_openssl=no
13220 fi
13221
13222 fi
13223
13224
13225
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
13227 $as_echo_n "checking for GnuTLS... " >&6; }
13228 # Check whether --enable-gnutls was given.
13229 if test "${enable_gnutls+set}" = set; then :
13230 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
13231 else
13232 cf_enable_gnutls="auto"
13233 fi
13234
13235
13236 if test "$cf_enable_gnutls" != no; then
13237
13238
13239 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13240 if test -n "$ac_tool_prefix"; then
13241 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13242 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13244 $as_echo_n "checking for $ac_word... " >&6; }
13245 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 case $PKG_CONFIG in
13249 [\\/]* | ?:[\\/]*)
13250 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13251 ;;
13252 *)
13253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13254 for as_dir in $PATH
13255 do
13256 IFS=$as_save_IFS
13257 test -z "$as_dir" && as_dir=.
13258 for ac_exec_ext in '' $ac_executable_extensions; do
13259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13260 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 break 2
13263 fi
13264 done
13265 done
13266 IFS=$as_save_IFS
13267
13268 ;;
13269 esac
13270 fi
13271 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13272 if test -n "$PKG_CONFIG"; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13274 $as_echo "$PKG_CONFIG" >&6; }
13275 else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13278 fi
13279
13280
13281 fi
13282 if test -z "$ac_cv_path_PKG_CONFIG"; then
13283 ac_pt_PKG_CONFIG=$PKG_CONFIG
13284 # Extract the first word of "pkg-config", so it can be a program name with args.
13285 set dummy pkg-config; ac_word=$2
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13287 $as_echo_n "checking for $ac_word... " >&6; }
13288 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13291 case $ac_pt_PKG_CONFIG in
13292 [\\/]* | ?:[\\/]*)
13293 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13294 ;;
13295 *)
13296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297 for as_dir in $PATH
13298 do
13299 IFS=$as_save_IFS
13300 test -z "$as_dir" && as_dir=.
13301 for ac_exec_ext in '' $ac_executable_extensions; do
13302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13303 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13305 break 2
13306 fi
13307 done
13308 done
13309 IFS=$as_save_IFS
13310
13311 ;;
13312 esac
13313 fi
13314 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13315 if test -n "$ac_pt_PKG_CONFIG"; then
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13317 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13318 else
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320 $as_echo "no" >&6; }
13321 fi
13322
13323 if test "x$ac_pt_PKG_CONFIG" = x; then
13324 PKG_CONFIG=""
13325 else
13326 case $cross_compiling:$ac_tool_warned in
13327 yes:)
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13330 ac_tool_warned=yes ;;
13331 esac
13332 PKG_CONFIG=$ac_pt_PKG_CONFIG
13333 fi
13334 else
13335 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13336 fi
13337
13338 fi
13339 if test -n "$PKG_CONFIG"; then
13340 _pkg_min_version=0.9.0
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13342 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13343 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13345 $as_echo "yes" >&6; }
13346 else
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348 $as_echo "no" >&6; }
13349 PKG_CONFIG=""
13350 fi
13351
13352 fi
13353
13354 pkg_failed=no
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13356 $as_echo_n "checking for GNUTLS... " >&6; }
13357
13358 if test -n "$GNUTLS_CFLAGS"; then
13359 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13360 elif test -n "$PKG_CONFIG"; then
13361 if test -n "$PKG_CONFIG" && \
13362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13363 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13364 ac_status=$?
13365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13366 test $ac_status = 0; }; then
13367 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
13368 else
13369 pkg_failed=yes
13370 fi
13371 else
13372 pkg_failed=untried
13373 fi
13374 if test -n "$GNUTLS_LIBS"; then
13375 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13376 elif test -n "$PKG_CONFIG"; then
13377 if test -n "$PKG_CONFIG" && \
13378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13379 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13380 ac_status=$?
13381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13382 test $ac_status = 0; }; then
13383 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
13384 else
13385 pkg_failed=yes
13386 fi
13387 else
13388 pkg_failed=untried
13389 fi
13390
13391
13392
13393 if test $pkg_failed = yes; then
13394
13395 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13396 _pkg_short_errors_supported=yes
13397 else
13398 _pkg_short_errors_supported=no
13399 fi
13400 if test $_pkg_short_errors_supported = yes; then
13401 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls" 2>&1`
13402 else
13403 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls" 2>&1`
13404 fi
13405 # Put the nasty error message in config.log where it belongs
13406 echo "$GNUTLS_PKG_ERRORS" >&5
13407
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409 $as_echo "no" >&6; }
13410 cf_enable_gnutls="no"
13411 elif test $pkg_failed = untried; then
13412 cf_enable_gnutls="no"
13413 else
13414 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13415 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13417 $as_echo "yes" >&6; }
13418
13419 cf_enable_gnutls="yes"
13420
13421 fi
13422 fi
13423
13424 if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
13425 cf_enable_gnutls="no"
13426 fi
13427
13428 if test x"$cf_enable_openssl" != xno; then
13429
13430 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
13431
13432 GNUTLS_CFLAGS=""
13433 GNUTLS_LIBS=""
13434 SSL_TYPE="openssl"
13435 elif test x"$cf_enable_gnutls" != xno; then
13436
13437 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
13438
13439 SSL_LIBS=""
13440 SSL_CFLAGS=""
13441 SSL_TYPE="gnutls"
13442 fi
13443
13444
13445
13446
13447 CPPFLAGS="$save_CPPFLAGS"
13448 LIBS="$save_LIBS"
13449
13450
13451
13452
13453
13454
13455 # Check whether --enable-assert was given.
13456 if test "${enable_assert+set}" = set; then :
13457 enableval=$enable_assert; assert=$enableval
13458 else
13459 assert=no
13460 fi
13461
13462
13463 if test "$assert" = no; then
13464
13465 $as_echo "#define NDEBUG 1" >>confdefs.h
13466
13467 elif test "$assert" = soft; then
13468
13469 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
13470
13471
13472 $as_echo "#define NDEBUG 1" >>confdefs.h
13473
13474 elif test "$assert" = yes; then
13475 assert = "hard";
13476 fi
13477
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
13479 $as_echo_n "checking if you want to do a profile build... " >&6; }
13480 # Check whether --enable-profile was given.
13481 if test "${enable_profile+set}" = set; then :
13482 enableval=$enable_profile; profile=$enableval
13483 else
13484 profile=no
13485 fi
13486
13487
13488 if test "$profile" = yes; then
13489 if test "$ac_cv_c_compiler_gnu" = yes; then
13490 CFLAGS="$CFLAGS -pg -static"
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
13492 $as_echo "yes, adding -pg -static" >&6; }
13493
13494 $as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
13495
13496 else
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
13498 $as_echo "no, profile builds only work with gcc" >&6; }
13499 fi
13500 else
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13502 $as_echo "no" >&6; }
13503 fi
13504
13505 # Check whether --enable-balloc was given.
13506 if test "${enable_balloc+set}" = set; then :
13507 enableval=$enable_balloc; balloc=$enableval
13508 else
13509 balloc=yes
13510 fi
13511
13512
13513 if test "$balloc" = no; then
13514
13515 $as_echo "#define NOBALLOC 1" >>confdefs.h
13516
13517 fi
13518
13519 # Check whether --enable-warnings was given.
13520 if test "${enable_warnings+set}" = set; then :
13521 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"
13522 fi
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534 if test "$prefix" = "NONE"; then
13535
13536 cat >>confdefs.h <<_ACEOF
13537 #define RB_PREFIX "$ac_default_prefix"
13538 _ACEOF
13539
13540
13541 else
13542
13543
13544 prefix=`echo $prefix | sed 's/\/$//'`
13545
13546 cat >>confdefs.h <<_ACEOF
13547 #define RB_PREFIX "$prefix"
13548 _ACEOF
13549
13550
13551 fi
13552
13553
13554
13555 ac_config_commands="$ac_config_commands include/librb-config.h"
13556
13557
13558
13559 ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
13560
13561
13562 cat >confcache <<\_ACEOF
13563 # This file is a shell script that caches the results of configure
13564 # tests run on this system so they can be shared between configure
13565 # scripts and configure runs, see configure's option --config-cache.
13566 # It is not useful on other systems. If it contains results you don't
13567 # want to keep, you may remove or edit it.
13568 #
13569 # config.status only pays attention to the cache file if you give it
13570 # the --recheck option to rerun configure.
13571 #
13572 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13573 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13574 # following values.
13575
13576 _ACEOF
13577
13578 # The following way of writing the cache mishandles newlines in values,
13579 # but we know of no workaround that is simple, portable, and efficient.
13580 # So, we kill variables containing newlines.
13581 # Ultrix sh set writes to stderr and can't be redirected directly,
13582 # and sets the high bit in the cache file unless we assign to the vars.
13583 (
13584 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13585 eval ac_val=\$$ac_var
13586 case $ac_val in #(
13587 *${as_nl}*)
13588 case $ac_var in #(
13589 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13590 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13591 esac
13592 case $ac_var in #(
13593 _ | IFS | as_nl) ;; #(
13594 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13595 *) { eval $ac_var=; unset $ac_var;} ;;
13596 esac ;;
13597 esac
13598 done
13599
13600 (set) 2>&1 |
13601 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13602 *${as_nl}ac_space=\ *)
13603 # `set' does not quote correctly, so add quotes: double-quote
13604 # substitution turns \\\\ into \\, and sed turns \\ into \.
13605 sed -n \
13606 "s/'/'\\\\''/g;
13607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13608 ;; #(
13609 *)
13610 # `set' quotes correctly as required by POSIX, so do not add quotes.
13611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13612 ;;
13613 esac |
13614 sort
13615 ) |
13616 sed '
13617 /^ac_cv_env_/b end
13618 t clear
13619 :clear
13620 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13621 t end
13622 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13623 :end' >>confcache
13624 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13625 if test -w "$cache_file"; then
13626 if test "x$cache_file" != "x/dev/null"; then
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13628 $as_echo "$as_me: updating cache $cache_file" >&6;}
13629 if test ! -f "$cache_file" || test -h "$cache_file"; then
13630 cat confcache >"$cache_file"
13631 else
13632 case $cache_file in #(
13633 */* | ?:*)
13634 mv -f confcache "$cache_file"$$ &&
13635 mv -f "$cache_file"$$ "$cache_file" ;; #(
13636 *)
13637 mv -f confcache "$cache_file" ;;
13638 esac
13639 fi
13640 fi
13641 else
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13643 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13644 fi
13645 fi
13646 rm -f confcache
13647
13648 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13649 # Let make expand exec_prefix.
13650 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13651
13652 DEFS=-DHAVE_CONFIG_H
13653
13654 ac_libobjs=
13655 ac_ltlibobjs=
13656 U=
13657 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13658 # 1. Remove the extension, and $U if already installed.
13659 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13660 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13661 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13662 # will be set to the directory where LIBOBJS objects are built.
13663 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13664 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13665 done
13666 LIBOBJS=$ac_libobjs
13667
13668 LTLIBOBJS=$ac_ltlibobjs
13669
13670
13671 if test -n "$EXEEXT"; then
13672 am__EXEEXT_TRUE=
13673 am__EXEEXT_FALSE='#'
13674 else
13675 am__EXEEXT_TRUE='#'
13676 am__EXEEXT_FALSE=
13677 fi
13678
13679 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13680 as_fn_error $? "conditional \"AMDEP\" was never defined.
13681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13682 fi
13683 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13684 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13686 fi
13687 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13688 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13690 fi
13691 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
13692 as_fn_error $? "conditional \"MINGW\" was never defined.
13693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13694 fi
13695
13696 : "${CONFIG_STATUS=./config.status}"
13697 ac_write_fail=0
13698 ac_clean_files_save=$ac_clean_files
13699 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13701 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13702 as_write_fail=0
13703 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13704 #! $SHELL
13705 # Generated by $as_me.
13706 # Run this file to recreate the current configuration.
13707 # Compiler output produced by configure, useful for debugging
13708 # configure, is in config.log if it exists.
13709
13710 debug=false
13711 ac_cs_recheck=false
13712 ac_cs_silent=false
13713
13714 SHELL=\${CONFIG_SHELL-$SHELL}
13715 export SHELL
13716 _ASEOF
13717 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13718 ## -------------------- ##
13719 ## M4sh Initialization. ##
13720 ## -------------------- ##
13721
13722 # Be more Bourne compatible
13723 DUALCASE=1; export DUALCASE # for MKS sh
13724 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13725 emulate sh
13726 NULLCMD=:
13727 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13728 # is contrary to our usage. Disable this feature.
13729 alias -g '${1+"$@"}'='"$@"'
13730 setopt NO_GLOB_SUBST
13731 else
13732 case `(set -o) 2>/dev/null` in #(
13733 *posix*) :
13734 set -o posix ;; #(
13735 *) :
13736 ;;
13737 esac
13738 fi
13739
13740
13741 as_nl='
13742 '
13743 export as_nl
13744 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13745 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13746 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13747 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13748 # Prefer a ksh shell builtin over an external printf program on Solaris,
13749 # but without wasting forks for bash or zsh.
13750 if test -z "$BASH_VERSION$ZSH_VERSION" \
13751 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13752 as_echo='print -r --'
13753 as_echo_n='print -rn --'
13754 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13755 as_echo='printf %s\n'
13756 as_echo_n='printf %s'
13757 else
13758 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13759 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13760 as_echo_n='/usr/ucb/echo -n'
13761 else
13762 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13763 as_echo_n_body='eval
13764 arg=$1;
13765 case $arg in #(
13766 *"$as_nl"*)
13767 expr "X$arg" : "X\\(.*\\)$as_nl";
13768 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13769 esac;
13770 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13771 '
13772 export as_echo_n_body
13773 as_echo_n='sh -c $as_echo_n_body as_echo'
13774 fi
13775 export as_echo_body
13776 as_echo='sh -c $as_echo_body as_echo'
13777 fi
13778
13779 # The user is always right.
13780 if test "${PATH_SEPARATOR+set}" != set; then
13781 PATH_SEPARATOR=:
13782 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13783 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13784 PATH_SEPARATOR=';'
13785 }
13786 fi
13787
13788
13789 # IFS
13790 # We need space, tab and new line, in precisely that order. Quoting is
13791 # there to prevent editors from complaining about space-tab.
13792 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13793 # splitting by setting IFS to empty value.)
13794 IFS=" "" $as_nl"
13795
13796 # Find who we are. Look in the path if we contain no directory separator.
13797 as_myself=
13798 case $0 in #((
13799 *[\\/]* ) as_myself=$0 ;;
13800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801 for as_dir in $PATH
13802 do
13803 IFS=$as_save_IFS
13804 test -z "$as_dir" && as_dir=.
13805 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13806 done
13807 IFS=$as_save_IFS
13808
13809 ;;
13810 esac
13811 # We did not find ourselves, most probably we were run as `sh COMMAND'
13812 # in which case we are not to be found in the path.
13813 if test "x$as_myself" = x; then
13814 as_myself=$0
13815 fi
13816 if test ! -f "$as_myself"; then
13817 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13818 exit 1
13819 fi
13820
13821 # Unset variables that we do not need and which cause bugs (e.g. in
13822 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13823 # suppresses any "Segmentation fault" message there. '((' could
13824 # trigger a bug in pdksh 5.2.14.
13825 for as_var in BASH_ENV ENV MAIL MAILPATH
13826 do eval test x\${$as_var+set} = xset \
13827 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13828 done
13829 PS1='$ '
13830 PS2='> '
13831 PS4='+ '
13832
13833 # NLS nuisances.
13834 LC_ALL=C
13835 export LC_ALL
13836 LANGUAGE=C
13837 export LANGUAGE
13838
13839 # CDPATH.
13840 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13841
13842
13843 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13844 # ----------------------------------------
13845 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13846 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13847 # script with STATUS, using 1 if that was 0.
13848 as_fn_error ()
13849 {
13850 as_status=$1; test $as_status -eq 0 && as_status=1
13851 if test "$4"; then
13852 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13853 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13854 fi
13855 $as_echo "$as_me: error: $2" >&2
13856 as_fn_exit $as_status
13857 } # as_fn_error
13858
13859
13860 # as_fn_set_status STATUS
13861 # -----------------------
13862 # Set $? to STATUS, without forking.
13863 as_fn_set_status ()
13864 {
13865 return $1
13866 } # as_fn_set_status
13867
13868 # as_fn_exit STATUS
13869 # -----------------
13870 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13871 as_fn_exit ()
13872 {
13873 set +e
13874 as_fn_set_status $1
13875 exit $1
13876 } # as_fn_exit
13877
13878 # as_fn_unset VAR
13879 # ---------------
13880 # Portably unset VAR.
13881 as_fn_unset ()
13882 {
13883 { eval $1=; unset $1;}
13884 }
13885 as_unset=as_fn_unset
13886 # as_fn_append VAR VALUE
13887 # ----------------------
13888 # Append the text in VALUE to the end of the definition contained in VAR. Take
13889 # advantage of any shell optimizations that allow amortized linear growth over
13890 # repeated appends, instead of the typical quadratic growth present in naive
13891 # implementations.
13892 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13893 eval 'as_fn_append ()
13894 {
13895 eval $1+=\$2
13896 }'
13897 else
13898 as_fn_append ()
13899 {
13900 eval $1=\$$1\$2
13901 }
13902 fi # as_fn_append
13903
13904 # as_fn_arith ARG...
13905 # ------------------
13906 # Perform arithmetic evaluation on the ARGs, and store the result in the
13907 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13908 # must be portable across $(()) and expr.
13909 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13910 eval 'as_fn_arith ()
13911 {
13912 as_val=$(( $* ))
13913 }'
13914 else
13915 as_fn_arith ()
13916 {
13917 as_val=`expr "$@" || test $? -eq 1`
13918 }
13919 fi # as_fn_arith
13920
13921
13922 if expr a : '\(a\)' >/dev/null 2>&1 &&
13923 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13924 as_expr=expr
13925 else
13926 as_expr=false
13927 fi
13928
13929 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13930 as_basename=basename
13931 else
13932 as_basename=false
13933 fi
13934
13935 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13936 as_dirname=dirname
13937 else
13938 as_dirname=false
13939 fi
13940
13941 as_me=`$as_basename -- "$0" ||
13942 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13943 X"$0" : 'X\(//\)$' \| \
13944 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13945 $as_echo X/"$0" |
13946 sed '/^.*\/\([^/][^/]*\)\/*$/{
13947 s//\1/
13948 q
13949 }
13950 /^X\/\(\/\/\)$/{
13951 s//\1/
13952 q
13953 }
13954 /^X\/\(\/\).*/{
13955 s//\1/
13956 q
13957 }
13958 s/.*/./; q'`
13959
13960 # Avoid depending upon Character Ranges.
13961 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13962 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13963 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13964 as_cr_digits='0123456789'
13965 as_cr_alnum=$as_cr_Letters$as_cr_digits
13966
13967 ECHO_C= ECHO_N= ECHO_T=
13968 case `echo -n x` in #(((((
13969 -n*)
13970 case `echo 'xy\c'` in
13971 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13972 xy) ECHO_C='\c';;
13973 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13974 ECHO_T=' ';;
13975 esac;;
13976 *)
13977 ECHO_N='-n';;
13978 esac
13979
13980 rm -f conf$$ conf$$.exe conf$$.file
13981 if test -d conf$$.dir; then
13982 rm -f conf$$.dir/conf$$.file
13983 else
13984 rm -f conf$$.dir
13985 mkdir conf$$.dir 2>/dev/null
13986 fi
13987 if (echo >conf$$.file) 2>/dev/null; then
13988 if ln -s conf$$.file conf$$ 2>/dev/null; then
13989 as_ln_s='ln -s'
13990 # ... but there are two gotchas:
13991 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13992 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13993 # In both cases, we have to default to `cp -p'.
13994 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13995 as_ln_s='cp -p'
13996 elif ln conf$$.file conf$$ 2>/dev/null; then
13997 as_ln_s=ln
13998 else
13999 as_ln_s='cp -p'
14000 fi
14001 else
14002 as_ln_s='cp -p'
14003 fi
14004 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14005 rmdir conf$$.dir 2>/dev/null
14006
14007
14008 # as_fn_mkdir_p
14009 # -------------
14010 # Create "$as_dir" as a directory, including parents if necessary.
14011 as_fn_mkdir_p ()
14012 {
14013
14014 case $as_dir in #(
14015 -*) as_dir=./$as_dir;;
14016 esac
14017 test -d "$as_dir" || eval $as_mkdir_p || {
14018 as_dirs=
14019 while :; do
14020 case $as_dir in #(
14021 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14022 *) as_qdir=$as_dir;;
14023 esac
14024 as_dirs="'$as_qdir' $as_dirs"
14025 as_dir=`$as_dirname -- "$as_dir" ||
14026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14027 X"$as_dir" : 'X\(//\)[^/]' \| \
14028 X"$as_dir" : 'X\(//\)$' \| \
14029 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14030 $as_echo X"$as_dir" |
14031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14032 s//\1/
14033 q
14034 }
14035 /^X\(\/\/\)[^/].*/{
14036 s//\1/
14037 q
14038 }
14039 /^X\(\/\/\)$/{
14040 s//\1/
14041 q
14042 }
14043 /^X\(\/\).*/{
14044 s//\1/
14045 q
14046 }
14047 s/.*/./; q'`
14048 test -d "$as_dir" && break
14049 done
14050 test -z "$as_dirs" || eval "mkdir $as_dirs"
14051 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14052
14053
14054 } # as_fn_mkdir_p
14055 if mkdir -p . 2>/dev/null; then
14056 as_mkdir_p='mkdir -p "$as_dir"'
14057 else
14058 test -d ./-p && rmdir ./-p
14059 as_mkdir_p=false
14060 fi
14061
14062 if test -x / >/dev/null 2>&1; then
14063 as_test_x='test -x'
14064 else
14065 if ls -dL / >/dev/null 2>&1; then
14066 as_ls_L_option=L
14067 else
14068 as_ls_L_option=
14069 fi
14070 as_test_x='
14071 eval sh -c '\''
14072 if test -d "$1"; then
14073 test -d "$1/.";
14074 else
14075 case $1 in #(
14076 -*)set "./$1";;
14077 esac;
14078 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14079 ???[sx]*):;;*)false;;esac;fi
14080 '\'' sh
14081 '
14082 fi
14083 as_executable_p=$as_test_x
14084
14085 # Sed expression to map a string onto a valid CPP name.
14086 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14087
14088 # Sed expression to map a string onto a valid variable name.
14089 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14090
14091
14092 exec 6>&1
14093 ## ----------------------------------- ##
14094 ## Main body of $CONFIG_STATUS script. ##
14095 ## ----------------------------------- ##
14096 _ASEOF
14097 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14098
14099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14100 # Save the log message, to keep $0 and so on meaningful, and to
14101 # report actual input values of CONFIG_FILES etc. instead of their
14102 # values after options handling.
14103 ac_log="
14104 This file was extended by libratbox $as_me devel, which was
14105 generated by GNU Autoconf 2.68. Invocation command line was
14106
14107 CONFIG_FILES = $CONFIG_FILES
14108 CONFIG_HEADERS = $CONFIG_HEADERS
14109 CONFIG_LINKS = $CONFIG_LINKS
14110 CONFIG_COMMANDS = $CONFIG_COMMANDS
14111 $ $0 $@
14112
14113 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14114 "
14115
14116 _ACEOF
14117
14118 case $ac_config_files in *"
14119 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14120 esac
14121
14122 case $ac_config_headers in *"
14123 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14124 esac
14125
14126
14127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14128 # Files that config.status was made for.
14129 config_files="$ac_config_files"
14130 config_headers="$ac_config_headers"
14131 config_commands="$ac_config_commands"
14132
14133 _ACEOF
14134
14135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14136 ac_cs_usage="\
14137 \`$as_me' instantiates files and other configuration actions
14138 from templates according to the current configuration. Unless the files
14139 and actions are specified as TAGs, all are instantiated by default.
14140
14141 Usage: $0 [OPTION]... [TAG]...
14142
14143 -h, --help print this help, then exit
14144 -V, --version print version number and configuration settings, then exit
14145 --config print configuration, then exit
14146 -q, --quiet, --silent
14147 do not print progress messages
14148 -d, --debug don't remove temporary files
14149 --recheck update $as_me by reconfiguring in the same conditions
14150 --file=FILE[:TEMPLATE]
14151 instantiate the configuration file FILE
14152 --header=FILE[:TEMPLATE]
14153 instantiate the configuration header FILE
14154
14155 Configuration files:
14156 $config_files
14157
14158 Configuration headers:
14159 $config_headers
14160
14161 Configuration commands:
14162 $config_commands
14163
14164 Report bugs to the package provider."
14165
14166 _ACEOF
14167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14168 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14169 ac_cs_version="\\
14170 libratbox config.status devel
14171 configured by $0, generated by GNU Autoconf 2.68,
14172 with options \\"\$ac_cs_config\\"
14173
14174 Copyright (C) 2010 Free Software Foundation, Inc.
14175 This config.status script is free software; the Free Software Foundation
14176 gives unlimited permission to copy, distribute and modify it."
14177
14178 ac_pwd='$ac_pwd'
14179 srcdir='$srcdir'
14180 INSTALL='$INSTALL'
14181 MKDIR_P='$MKDIR_P'
14182 AWK='$AWK'
14183 test -n "\$AWK" || AWK=awk
14184 _ACEOF
14185
14186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14187 # The default lists apply if the user does not specify any file.
14188 ac_need_defaults=:
14189 while test $# != 0
14190 do
14191 case $1 in
14192 --*=?*)
14193 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14194 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14195 ac_shift=:
14196 ;;
14197 --*=)
14198 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14199 ac_optarg=
14200 ac_shift=:
14201 ;;
14202 *)
14203 ac_option=$1
14204 ac_optarg=$2
14205 ac_shift=shift
14206 ;;
14207 esac
14208
14209 case $ac_option in
14210 # Handling of the options.
14211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14212 ac_cs_recheck=: ;;
14213 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14214 $as_echo "$ac_cs_version"; exit ;;
14215 --config | --confi | --conf | --con | --co | --c )
14216 $as_echo "$ac_cs_config"; exit ;;
14217 --debug | --debu | --deb | --de | --d | -d )
14218 debug=: ;;
14219 --file | --fil | --fi | --f )
14220 $ac_shift
14221 case $ac_optarg in
14222 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14223 '') as_fn_error $? "missing file argument" ;;
14224 esac
14225 as_fn_append CONFIG_FILES " '$ac_optarg'"
14226 ac_need_defaults=false;;
14227 --header | --heade | --head | --hea )
14228 $ac_shift
14229 case $ac_optarg in
14230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14231 esac
14232 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14233 ac_need_defaults=false;;
14234 --he | --h)
14235 # Conflict between --help and --header
14236 as_fn_error $? "ambiguous option: \`$1'
14237 Try \`$0 --help' for more information.";;
14238 --help | --hel | -h )
14239 $as_echo "$ac_cs_usage"; exit ;;
14240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14241 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14242 ac_cs_silent=: ;;
14243
14244 # This is an error.
14245 -*) as_fn_error $? "unrecognized option: \`$1'
14246 Try \`$0 --help' for more information." ;;
14247
14248 *) as_fn_append ac_config_targets " $1"
14249 ac_need_defaults=false ;;
14250
14251 esac
14252 shift
14253 done
14254
14255 ac_configure_extra_args=
14256
14257 if $ac_cs_silent; then
14258 exec 6>/dev/null
14259 ac_configure_extra_args="$ac_configure_extra_args --silent"
14260 fi
14261
14262 _ACEOF
14263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14264 if \$ac_cs_recheck; then
14265 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14266 shift
14267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14268 CONFIG_SHELL='$SHELL'
14269 export CONFIG_SHELL
14270 exec "\$@"
14271 fi
14272
14273 _ACEOF
14274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14275 exec 5>>config.log
14276 {
14277 echo
14278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14279 ## Running $as_me. ##
14280 _ASBOX
14281 $as_echo "$ac_log"
14282 } >&5
14283
14284 _ACEOF
14285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14286 #
14287 # INIT-COMMANDS
14288 #
14289 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14290
14291
14292 # The HP-UX ksh and POSIX shell print the target directory to stdout
14293 # if CDPATH is set.
14294 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14295
14296 sed_quote_subst='$sed_quote_subst'
14297 double_quote_subst='$double_quote_subst'
14298 delay_variable_subst='$delay_variable_subst'
14299 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14300 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14301 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14302 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14303 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14304 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14305 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14306 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14307 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14308 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14309 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14310 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14311 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14312 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14313 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14314 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14315 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14316 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14317 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14318 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14319 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14320 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14321 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14322 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14323 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14324 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14325 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14326 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14327 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14328 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14329 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14330 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14331 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14332 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14333 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14334 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14335 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14336 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14337 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14338 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14339 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14340 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14341 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14342 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14343 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"`'
14344 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"`'
14345 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14346 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14347 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14348 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14349 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14350 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14351 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14352 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14353 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14354 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14355 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14356 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14357 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14358 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14359 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14360 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14361 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14362 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14363 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14364 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14365 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14366 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14367 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14368 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14369 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14370 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14371 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14372 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14373 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14374 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14375 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14376 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14377 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14378 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14379 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14380 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14381 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14382 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14383 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14384 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14385 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14386 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14387 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14388 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14389 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14390 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14391 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14392 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14393 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14394 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14395 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14396 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14397 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14398 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14399 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14400 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14401 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14402 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14403 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14404 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14405 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14406 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14407 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14408 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14409 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14410 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14411 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14412 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14413 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14414 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14415 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14416 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14417
14418 LTCC='$LTCC'
14419 LTCFLAGS='$LTCFLAGS'
14420 compiler='$compiler_DEFAULT'
14421
14422 # Quote evaled strings.
14423 for var in SED \
14424 GREP \
14425 EGREP \
14426 FGREP \
14427 LD \
14428 NM \
14429 LN_S \
14430 lt_SP2NL \
14431 lt_NL2SP \
14432 reload_flag \
14433 OBJDUMP \
14434 deplibs_check_method \
14435 file_magic_cmd \
14436 AR \
14437 AR_FLAGS \
14438 STRIP \
14439 RANLIB \
14440 CC \
14441 CFLAGS \
14442 compiler \
14443 lt_cv_sys_global_symbol_pipe \
14444 lt_cv_sys_global_symbol_to_cdecl \
14445 lt_cv_sys_global_symbol_to_c_name_address \
14446 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14447 SHELL \
14448 ECHO \
14449 lt_prog_compiler_no_builtin_flag \
14450 lt_prog_compiler_wl \
14451 lt_prog_compiler_pic \
14452 lt_prog_compiler_static \
14453 lt_cv_prog_compiler_c_o \
14454 need_locks \
14455 DSYMUTIL \
14456 NMEDIT \
14457 LIPO \
14458 OTOOL \
14459 OTOOL64 \
14460 shrext_cmds \
14461 export_dynamic_flag_spec \
14462 whole_archive_flag_spec \
14463 compiler_needs_object \
14464 with_gnu_ld \
14465 allow_undefined_flag \
14466 no_undefined_flag \
14467 hardcode_libdir_flag_spec \
14468 hardcode_libdir_flag_spec_ld \
14469 hardcode_libdir_separator \
14470 fix_srcfile_path \
14471 exclude_expsyms \
14472 include_expsyms \
14473 file_list_spec \
14474 variables_saved_for_relink \
14475 libname_spec \
14476 library_names_spec \
14477 soname_spec \
14478 finish_eval \
14479 old_striplib \
14480 striplib; do
14481 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14482 *[\\\\\\\`\\"\\\$]*)
14483 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14484 ;;
14485 *)
14486 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14487 ;;
14488 esac
14489 done
14490
14491 # Double-quote double-evaled strings.
14492 for var in reload_cmds \
14493 old_postinstall_cmds \
14494 old_postuninstall_cmds \
14495 old_archive_cmds \
14496 extract_expsyms_cmds \
14497 old_archive_from_new_cmds \
14498 old_archive_from_expsyms_cmds \
14499 archive_cmds \
14500 archive_expsym_cmds \
14501 module_cmds \
14502 module_expsym_cmds \
14503 export_symbols_cmds \
14504 prelink_cmds \
14505 postinstall_cmds \
14506 postuninstall_cmds \
14507 finish_cmds \
14508 sys_lib_search_path_spec \
14509 sys_lib_dlsearch_path_spec; do
14510 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14511 *[\\\\\\\`\\"\\\$]*)
14512 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14513 ;;
14514 *)
14515 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14516 ;;
14517 esac
14518 done
14519
14520 # Fix-up fallback echo if it was mangled by the above quoting rules.
14521 case \$lt_ECHO in
14522 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14523 ;;
14524 esac
14525
14526 ac_aux_dir='$ac_aux_dir'
14527 xsi_shell='$xsi_shell'
14528 lt_shell_append='$lt_shell_append'
14529
14530 # See if we are running on zsh, and set the options which allow our
14531 # commands through without removal of \ escapes INIT.
14532 if test -n "\${ZSH_VERSION+set}" ; then
14533 setopt NO_GLOB_SUBST
14534 fi
14535
14536
14537 PACKAGE='$PACKAGE'
14538 VERSION='$VERSION'
14539 TIMESTAMP='$TIMESTAMP'
14540 RM='$RM'
14541 ofile='$ofile'
14542
14543
14544
14545
14546 if test x$ac_cv_header_stdc = xyes; then
14547 rb_header_stdc=yes
14548 fi
14549 if test x$ac_cv_header_stdlib_h = xyes; then
14550 rb_header_stdlib_h=yes
14551 fi
14552 if test x$ac_cv_header_string_h = xyes; then
14553 rb_header_string_h=yes
14554 fi
14555 if test x$ac_cv_header_memory_h = xyes; then
14556 rb_header_memory_h=yes
14557 fi
14558 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
14559 rb_alloca_h="$ac_cv_working_alloca_h"
14560 else
14561 rb_alloc_h="$ac_cv_header_alloca_h"
14562 fi
14563 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
14564 rb_sockaddr_sa_len=yes
14565 fi
14566 if test x$ac_cv_header_sys_socket_h = xyes; then
14567 rb_sys_socket_h=yes
14568 fi
14569 if test x$ac_cv_header_sys_types_h = xyes; then
14570 rb_sys_types_h=yes
14571 fi
14572 if test x$ac_cv_header_sys_stat_h = xyes; then
14573 rb_sys_stat_h=yes
14574 fi
14575 if test x$ac_cv_header_sys_time_h = xyes; then
14576 rb_sys_time_h=yes
14577 fi
14578 if test x$ac_cv_header_time = xyes; then
14579 rb_time_h=yes
14580 fi
14581
14582 if test x$ac_cv_header_stdint_h = xyes; then
14583 rb_stdint_h=yes
14584 fi
14585 if test x$ac_cv_header_inttypes_h = xyes; then
14586 rb_inttypes_h=yes
14587 fi
14588 if test x$ac_cv_header_netinet_in_h = xyes; then
14589 rb_netinet_in_h=yes
14590 fi
14591
14592 if test x$ac_cv_header_crypt_h = xyes; then
14593 rb_crypt_h=yes
14594 fi
14595 if test x$ac_cv_header_errno_h = xyes; then
14596 rb_errno_h=yes
14597 fi
14598 if test x$ac_cv_header_unistd_h = xyes; then
14599 rb_unistd_h=yes
14600 fi
14601 if test x$ac_cv_header_windows_h = xyes; then
14602 rb_windows_h=yes
14603 fi
14604 if test x$ac_cv_header_winsock2_h = xyes; then
14605 rb_winsock2_h=yes
14606 fi
14607
14608 rb_socklen_t=$rb_socklen_t
14609
14610 if test "x$rb_have_sockaddr_storage" = "xyes"; then
14611 rb_sockaddr_storage="yes"
14612 else
14613 rb_sockaddr_storage="no"
14614 fi
14615
14616 rb_have_ipv6="$have_v6"
14617
14618 rb_mv="$MV"
14619 rb_rm="$RM"
14620
14621
14622
14623
14624
14625
14626 _ACEOF
14627
14628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14629
14630 # Handling of arguments.
14631 for ac_config_target in $ac_config_targets
14632 do
14633 case $ac_config_target in
14634 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
14635 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14636 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14637 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
14638 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14639 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14640 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
14641
14642 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14643 esac
14644 done
14645
14646
14647 # If the user did not use the arguments to specify the items to instantiate,
14648 # then the envvar interface is used. Set only those that are not.
14649 # We use the long form for the default assignment because of an extremely
14650 # bizarre bug on SunOS 4.1.3.
14651 if $ac_need_defaults; then
14652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14655 fi
14656
14657 # Have a temporary directory for convenience. Make it in the build tree
14658 # simply because there is no reason against having it here, and in addition,
14659 # creating and moving files from /tmp can sometimes cause problems.
14660 # Hook for its removal unless debugging.
14661 # Note that there is a small window in which the directory will not be cleaned:
14662 # after its creation but before its name has been assigned to `$tmp'.
14663 $debug ||
14664 {
14665 tmp= ac_tmp=
14666 trap 'exit_status=$?
14667 : "${ac_tmp:=$tmp}"
14668 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14669 ' 0
14670 trap 'as_fn_exit 1' 1 2 13 15
14671 }
14672 # Create a (secure) tmp directory for tmp files.
14673
14674 {
14675 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14676 test -d "$tmp"
14677 } ||
14678 {
14679 tmp=./conf$$-$RANDOM
14680 (umask 077 && mkdir "$tmp")
14681 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14682 ac_tmp=$tmp
14683
14684 # Set up the scripts for CONFIG_FILES section.
14685 # No need to generate them if there are no CONFIG_FILES.
14686 # This happens for instance with `./config.status config.h'.
14687 if test -n "$CONFIG_FILES"; then
14688
14689
14690 ac_cr=`echo X | tr X '\015'`
14691 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14692 # But we know of no other shell where ac_cr would be empty at this
14693 # point, so we can use a bashism as a fallback.
14694 if test "x$ac_cr" = x; then
14695 eval ac_cr=\$\'\\r\'
14696 fi
14697 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14698 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14699 ac_cs_awk_cr='\\r'
14700 else
14701 ac_cs_awk_cr=$ac_cr
14702 fi
14703
14704 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14705 _ACEOF
14706
14707
14708 {
14709 echo "cat >conf$$subs.awk <<_ACEOF" &&
14710 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14711 echo "_ACEOF"
14712 } >conf$$subs.sh ||
14713 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14714 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14715 ac_delim='%!_!# '
14716 for ac_last_try in false false false false false :; do
14717 . ./conf$$subs.sh ||
14718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14719
14720 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14721 if test $ac_delim_n = $ac_delim_num; then
14722 break
14723 elif $ac_last_try; then
14724 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14725 else
14726 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14727 fi
14728 done
14729 rm -f conf$$subs.sh
14730
14731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14732 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14733 _ACEOF
14734 sed -n '
14735 h
14736 s/^/S["/; s/!.*/"]=/
14737 p
14738 g
14739 s/^[^!]*!//
14740 :repl
14741 t repl
14742 s/'"$ac_delim"'$//
14743 t delim
14744 :nl
14745 h
14746 s/\(.\{148\}\)..*/\1/
14747 t more1
14748 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14749 p
14750 n
14751 b repl
14752 :more1
14753 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14754 p
14755 g
14756 s/.\{148\}//
14757 t nl
14758 :delim
14759 h
14760 s/\(.\{148\}\)..*/\1/
14761 t more2
14762 s/["\\]/\\&/g; s/^/"/; s/$/"/
14763 p
14764 b
14765 :more2
14766 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14767 p
14768 g
14769 s/.\{148\}//
14770 t delim
14771 ' <conf$$subs.awk | sed '
14772 /^[^""]/{
14773 N
14774 s/\n//
14775 }
14776 ' >>$CONFIG_STATUS || ac_write_fail=1
14777 rm -f conf$$subs.awk
14778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14779 _ACAWK
14780 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14781 for (key in S) S_is_set[key] = 1
14782 FS = "\a"
14783
14784 }
14785 {
14786 line = $ 0
14787 nfields = split(line, field, "@")
14788 substed = 0
14789 len = length(field[1])
14790 for (i = 2; i < nfields; i++) {
14791 key = field[i]
14792 keylen = length(key)
14793 if (S_is_set[key]) {
14794 value = S[key]
14795 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14796 len += length(value) + length(field[++i])
14797 substed = 1
14798 } else
14799 len += 1 + keylen
14800 }
14801
14802 print line
14803 }
14804
14805 _ACAWK
14806 _ACEOF
14807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14808 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14809 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14810 else
14811 cat
14812 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14813 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14814 _ACEOF
14815
14816 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14817 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14818 # trailing colons and then remove the whole line if VPATH becomes empty
14819 # (actually we leave an empty line to preserve line numbers).
14820 if test "x$srcdir" = x.; then
14821 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14822 h
14823 s///
14824 s/^/:/
14825 s/[ ]*$/:/
14826 s/:\$(srcdir):/:/g
14827 s/:\${srcdir}:/:/g
14828 s/:@srcdir@:/:/g
14829 s/^:*//
14830 s/:*$//
14831 x
14832 s/\(=[ ]*\).*/\1/
14833 G
14834 s/\n//
14835 s/^[^=]*=[ ]*$//
14836 }'
14837 fi
14838
14839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14840 fi # test -n "$CONFIG_FILES"
14841
14842 # Set up the scripts for CONFIG_HEADERS section.
14843 # No need to generate them if there are no CONFIG_HEADERS.
14844 # This happens for instance with `./config.status Makefile'.
14845 if test -n "$CONFIG_HEADERS"; then
14846 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14847 BEGIN {
14848 _ACEOF
14849
14850 # Transform confdefs.h into an awk script `defines.awk', embedded as
14851 # here-document in config.status, that substitutes the proper values into
14852 # config.h.in to produce config.h.
14853
14854 # Create a delimiter string that does not exist in confdefs.h, to ease
14855 # handling of long lines.
14856 ac_delim='%!_!# '
14857 for ac_last_try in false false :; do
14858 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14859 if test -z "$ac_tt"; then
14860 break
14861 elif $ac_last_try; then
14862 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14863 else
14864 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14865 fi
14866 done
14867
14868 # For the awk script, D is an array of macro values keyed by name,
14869 # likewise P contains macro parameters if any. Preserve backslash
14870 # newline sequences.
14871
14872 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14873 sed -n '
14874 s/.\{148\}/&'"$ac_delim"'/g
14875 t rset
14876 :rset
14877 s/^[ ]*#[ ]*define[ ][ ]*/ /
14878 t def
14879 d
14880 :def
14881 s/\\$//
14882 t bsnl
14883 s/["\\]/\\&/g
14884 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14885 D["\1"]=" \3"/p
14886 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14887 d
14888 :bsnl
14889 s/["\\]/\\&/g
14890 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14891 D["\1"]=" \3\\\\\\n"\\/p
14892 t cont
14893 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14894 t cont
14895 d
14896 :cont
14897 n
14898 s/.\{148\}/&'"$ac_delim"'/g
14899 t clear
14900 :clear
14901 s/\\$//
14902 t bsnlc
14903 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14904 d
14905 :bsnlc
14906 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14907 b cont
14908 ' <confdefs.h | sed '
14909 s/'"$ac_delim"'/"\\\
14910 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14911
14912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14913 for (key in D) D_is_set[key] = 1
14914 FS = "\a"
14915 }
14916 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14917 line = \$ 0
14918 split(line, arg, " ")
14919 if (arg[1] == "#") {
14920 defundef = arg[2]
14921 mac1 = arg[3]
14922 } else {
14923 defundef = substr(arg[1], 2)
14924 mac1 = arg[2]
14925 }
14926 split(mac1, mac2, "(") #)
14927 macro = mac2[1]
14928 prefix = substr(line, 1, index(line, defundef) - 1)
14929 if (D_is_set[macro]) {
14930 # Preserve the white space surrounding the "#".
14931 print prefix "define", macro P[macro] D[macro]
14932 next
14933 } else {
14934 # Replace #undef with comments. This is necessary, for example,
14935 # in the case of _POSIX_SOURCE, which is predefined and required
14936 # on some systems where configure will not decide to define it.
14937 if (defundef == "undef") {
14938 print "/*", prefix defundef, macro, "*/"
14939 next
14940 }
14941 }
14942 }
14943 { print }
14944 _ACAWK
14945 _ACEOF
14946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14947 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14948 fi # test -n "$CONFIG_HEADERS"
14949
14950
14951 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14952 shift
14953 for ac_tag
14954 do
14955 case $ac_tag in
14956 :[FHLC]) ac_mode=$ac_tag; continue;;
14957 esac
14958 case $ac_mode$ac_tag in
14959 :[FHL]*:*);;
14960 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14961 :[FH]-) ac_tag=-:-;;
14962 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14963 esac
14964 ac_save_IFS=$IFS
14965 IFS=:
14966 set x $ac_tag
14967 IFS=$ac_save_IFS
14968 shift
14969 ac_file=$1
14970 shift
14971
14972 case $ac_mode in
14973 :L) ac_source=$1;;
14974 :[FH])
14975 ac_file_inputs=
14976 for ac_f
14977 do
14978 case $ac_f in
14979 -) ac_f="$ac_tmp/stdin";;
14980 *) # Look for the file first in the build tree, then in the source tree
14981 # (if the path is not absolute). The absolute path cannot be DOS-style,
14982 # because $ac_f cannot contain `:'.
14983 test -f "$ac_f" ||
14984 case $ac_f in
14985 [\\/$]*) false;;
14986 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14987 esac ||
14988 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14989 esac
14990 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14991 as_fn_append ac_file_inputs " '$ac_f'"
14992 done
14993
14994 # Let's still pretend it is `configure' which instantiates (i.e., don't
14995 # use $as_me), people would be surprised to read:
14996 # /* config.h. Generated by config.status. */
14997 configure_input='Generated from '`
14998 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14999 `' by configure.'
15000 if test x"$ac_file" != x-; then
15001 configure_input="$ac_file. $configure_input"
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15003 $as_echo "$as_me: creating $ac_file" >&6;}
15004 fi
15005 # Neutralize special characters interpreted by sed in replacement strings.
15006 case $configure_input in #(
15007 *\&* | *\|* | *\\* )
15008 ac_sed_conf_input=`$as_echo "$configure_input" |
15009 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15010 *) ac_sed_conf_input=$configure_input;;
15011 esac
15012
15013 case $ac_tag in
15014 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15016 esac
15017 ;;
15018 esac
15019
15020 ac_dir=`$as_dirname -- "$ac_file" ||
15021 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15022 X"$ac_file" : 'X\(//\)[^/]' \| \
15023 X"$ac_file" : 'X\(//\)$' \| \
15024 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15025 $as_echo X"$ac_file" |
15026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15027 s//\1/
15028 q
15029 }
15030 /^X\(\/\/\)[^/].*/{
15031 s//\1/
15032 q
15033 }
15034 /^X\(\/\/\)$/{
15035 s//\1/
15036 q
15037 }
15038 /^X\(\/\).*/{
15039 s//\1/
15040 q
15041 }
15042 s/.*/./; q'`
15043 as_dir="$ac_dir"; as_fn_mkdir_p
15044 ac_builddir=.
15045
15046 case "$ac_dir" in
15047 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15048 *)
15049 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15050 # A ".." for each directory in $ac_dir_suffix.
15051 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15052 case $ac_top_builddir_sub in
15053 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15054 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15055 esac ;;
15056 esac
15057 ac_abs_top_builddir=$ac_pwd
15058 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15059 # for backward compatibility:
15060 ac_top_builddir=$ac_top_build_prefix
15061
15062 case $srcdir in
15063 .) # We are building in place.
15064 ac_srcdir=.
15065 ac_top_srcdir=$ac_top_builddir_sub
15066 ac_abs_top_srcdir=$ac_pwd ;;
15067 [\\/]* | ?:[\\/]* ) # Absolute name.
15068 ac_srcdir=$srcdir$ac_dir_suffix;
15069 ac_top_srcdir=$srcdir
15070 ac_abs_top_srcdir=$srcdir ;;
15071 *) # Relative name.
15072 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15073 ac_top_srcdir=$ac_top_build_prefix$srcdir
15074 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15075 esac
15076 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15077
15078
15079 case $ac_mode in
15080 :F)
15081 #
15082 # CONFIG_FILE
15083 #
15084
15085 case $INSTALL in
15086 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15087 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15088 esac
15089 ac_MKDIR_P=$MKDIR_P
15090 case $MKDIR_P in
15091 [\\/$]* | ?:[\\/]* ) ;;
15092 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15093 esac
15094 _ACEOF
15095
15096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15097 # If the template does not know about datarootdir, expand it.
15098 # FIXME: This hack should be removed a few years after 2.60.
15099 ac_datarootdir_hack=; ac_datarootdir_seen=
15100 ac_sed_dataroot='
15101 /datarootdir/ {
15102 p
15103 q
15104 }
15105 /@datadir@/p
15106 /@docdir@/p
15107 /@infodir@/p
15108 /@localedir@/p
15109 /@mandir@/p'
15110 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15111 *datarootdir*) ac_datarootdir_seen=yes;;
15112 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15114 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15115 _ACEOF
15116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15117 ac_datarootdir_hack='
15118 s&@datadir@&$datadir&g
15119 s&@docdir@&$docdir&g
15120 s&@infodir@&$infodir&g
15121 s&@localedir@&$localedir&g
15122 s&@mandir@&$mandir&g
15123 s&\\\${datarootdir}&$datarootdir&g' ;;
15124 esac
15125 _ACEOF
15126
15127 # Neutralize VPATH when `$srcdir' = `.'.
15128 # Shell code in configure.ac might set extrasub.
15129 # FIXME: do we really want to maintain this feature?
15130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15131 ac_sed_extra="$ac_vpsub
15132 $extrasub
15133 _ACEOF
15134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15135 :t
15136 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15137 s|@configure_input@|$ac_sed_conf_input|;t t
15138 s&@top_builddir@&$ac_top_builddir_sub&;t t
15139 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15140 s&@srcdir@&$ac_srcdir&;t t
15141 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15142 s&@top_srcdir@&$ac_top_srcdir&;t t
15143 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15144 s&@builddir@&$ac_builddir&;t t
15145 s&@abs_builddir@&$ac_abs_builddir&;t t
15146 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15147 s&@INSTALL@&$ac_INSTALL&;t t
15148 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15149 $ac_datarootdir_hack
15150 "
15151 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15152 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15153
15154 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15155 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15156 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15157 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15159 which seems to be undefined. Please make sure it is defined" >&5
15160 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15161 which seems to be undefined. Please make sure it is defined" >&2;}
15162
15163 rm -f "$ac_tmp/stdin"
15164 case $ac_file in
15165 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15166 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15167 esac \
15168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15169 ;;
15170 :H)
15171 #
15172 # CONFIG_HEADER
15173 #
15174 if test x"$ac_file" != x-; then
15175 {
15176 $as_echo "/* $configure_input */" \
15177 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15178 } >"$ac_tmp/config.h" \
15179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15180 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15182 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15183 else
15184 rm -f "$ac_file"
15185 mv "$ac_tmp/config.h" "$ac_file" \
15186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15187 fi
15188 else
15189 $as_echo "/* $configure_input */" \
15190 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15191 || as_fn_error $? "could not create -" "$LINENO" 5
15192 fi
15193 # Compute "$ac_file"'s index in $config_headers.
15194 _am_arg="$ac_file"
15195 _am_stamp_count=1
15196 for _am_header in $config_headers :; do
15197 case $_am_header in
15198 $_am_arg | $_am_arg:* )
15199 break ;;
15200 * )
15201 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15202 esac
15203 done
15204 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15205 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15206 X"$_am_arg" : 'X\(//\)[^/]' \| \
15207 X"$_am_arg" : 'X\(//\)$' \| \
15208 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15209 $as_echo X"$_am_arg" |
15210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15211 s//\1/
15212 q
15213 }
15214 /^X\(\/\/\)[^/].*/{
15215 s//\1/
15216 q
15217 }
15218 /^X\(\/\/\)$/{
15219 s//\1/
15220 q
15221 }
15222 /^X\(\/\).*/{
15223 s//\1/
15224 q
15225 }
15226 s/.*/./; q'`/stamp-h$_am_stamp_count
15227 ;;
15228
15229 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15230 $as_echo "$as_me: executing $ac_file commands" >&6;}
15231 ;;
15232 esac
15233
15234
15235 case $ac_file$ac_mode in
15236 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15237 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15238 # are listed without --file. Let's play safe and only enable the eval
15239 # if we detect the quoting.
15240 case $CONFIG_FILES in
15241 *\'*) eval set x "$CONFIG_FILES" ;;
15242 *) set x $CONFIG_FILES ;;
15243 esac
15244 shift
15245 for mf
15246 do
15247 # Strip MF so we end up with the name of the file.
15248 mf=`echo "$mf" | sed -e 's/:.*$//'`
15249 # Check whether this is an Automake generated Makefile or not.
15250 # We used to match only the files named `Makefile.in', but
15251 # some people rename them; so instead we look at the file content.
15252 # Grep'ing the first line is not enough: some people post-process
15253 # each Makefile.in and add a new line on top of each file to say so.
15254 # Grep'ing the whole file is not good either: AIX grep has a line
15255 # limit of 2048, but all sed's we know have understand at least 4000.
15256 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15257 dirpart=`$as_dirname -- "$mf" ||
15258 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15259 X"$mf" : 'X\(//\)[^/]' \| \
15260 X"$mf" : 'X\(//\)$' \| \
15261 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15262 $as_echo X"$mf" |
15263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15264 s//\1/
15265 q
15266 }
15267 /^X\(\/\/\)[^/].*/{
15268 s//\1/
15269 q
15270 }
15271 /^X\(\/\/\)$/{
15272 s//\1/
15273 q
15274 }
15275 /^X\(\/\).*/{
15276 s//\1/
15277 q
15278 }
15279 s/.*/./; q'`
15280 else
15281 continue
15282 fi
15283 # Extract the definition of DEPDIR, am__include, and am__quote
15284 # from the Makefile without running `make'.
15285 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15286 test -z "$DEPDIR" && continue
15287 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15288 test -z "am__include" && continue
15289 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15290 # When using ansi2knr, U may be empty or an underscore; expand it
15291 U=`sed -n 's/^U = //p' < "$mf"`
15292 # Find all dependency output files, they are included files with
15293 # $(DEPDIR) in their names. We invoke sed twice because it is the
15294 # simplest approach to changing $(DEPDIR) to its actual value in the
15295 # expansion.
15296 for file in `sed -n "
15297 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15298 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15299 # Make sure the directory exists.
15300 test -f "$dirpart/$file" && continue
15301 fdir=`$as_dirname -- "$file" ||
15302 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15303 X"$file" : 'X\(//\)[^/]' \| \
15304 X"$file" : 'X\(//\)$' \| \
15305 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15306 $as_echo X"$file" |
15307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15308 s//\1/
15309 q
15310 }
15311 /^X\(\/\/\)[^/].*/{
15312 s//\1/
15313 q
15314 }
15315 /^X\(\/\/\)$/{
15316 s//\1/
15317 q
15318 }
15319 /^X\(\/\).*/{
15320 s//\1/
15321 q
15322 }
15323 s/.*/./; q'`
15324 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15325 # echo "creating $dirpart/$file"
15326 echo '# dummy' > "$dirpart/$file"
15327 done
15328 done
15329 }
15330 ;;
15331 "libtool":C)
15332
15333 # See if we are running on zsh, and set the options which allow our
15334 # commands through without removal of \ escapes.
15335 if test -n "${ZSH_VERSION+set}" ; then
15336 setopt NO_GLOB_SUBST
15337 fi
15338
15339 cfgfile="${ofile}T"
15340 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15341 $RM "$cfgfile"
15342
15343 cat <<_LT_EOF >> "$cfgfile"
15344 #! $SHELL
15345
15346 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15347 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15348 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15349 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15350 #
15351 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15352 # 2006, 2007, 2008 Free Software Foundation, Inc.
15353 # Written by Gordon Matzigkeit, 1996
15354 #
15355 # This file is part of GNU Libtool.
15356 #
15357 # GNU Libtool is free software; you can redistribute it and/or
15358 # modify it under the terms of the GNU General Public License as
15359 # published by the Free Software Foundation; either version 2 of
15360 # the License, or (at your option) any later version.
15361 #
15362 # As a special exception to the GNU General Public License,
15363 # if you distribute this file as part of a program or library that
15364 # is built using GNU Libtool, you may include this file under the
15365 # same distribution terms that you use for the rest of that program.
15366 #
15367 # GNU Libtool is distributed in the hope that it will be useful,
15368 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15369 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15370 # GNU General Public License for more details.
15371 #
15372 # You should have received a copy of the GNU General Public License
15373 # along with GNU Libtool; see the file COPYING. If not, a copy
15374 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15375 # obtained by writing to the Free Software Foundation, Inc.,
15376 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15377
15378
15379 # The names of the tagged configurations supported by this script.
15380 available_tags=""
15381
15382 # ### BEGIN LIBTOOL CONFIG
15383
15384 # Whether or not to build static libraries.
15385 build_old_libs=$enable_static
15386
15387 # Whether or not to build shared libraries.
15388 build_libtool_libs=$enable_shared
15389
15390 # Which release of libtool.m4 was used?
15391 macro_version=$macro_version
15392 macro_revision=$macro_revision
15393
15394 # What type of objects to build.
15395 pic_mode=$pic_mode
15396
15397 # Whether or not to optimize for fast installation.
15398 fast_install=$enable_fast_install
15399
15400 # The host system.
15401 host_alias=$host_alias
15402 host=$host
15403 host_os=$host_os
15404
15405 # The build system.
15406 build_alias=$build_alias
15407 build=$build
15408 build_os=$build_os
15409
15410 # A sed program that does not truncate output.
15411 SED=$lt_SED
15412
15413 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15414 Xsed="\$SED -e 1s/^X//"
15415
15416 # A grep program that handles long lines.
15417 GREP=$lt_GREP
15418
15419 # An ERE matcher.
15420 EGREP=$lt_EGREP
15421
15422 # A literal string matcher.
15423 FGREP=$lt_FGREP
15424
15425 # A BSD- or MS-compatible name lister.
15426 NM=$lt_NM
15427
15428 # Whether we need soft or hard links.
15429 LN_S=$lt_LN_S
15430
15431 # What is the maximum length of a command?
15432 max_cmd_len=$max_cmd_len
15433
15434 # Object file suffix (normally "o").
15435 objext=$ac_objext
15436
15437 # Executable file suffix (normally "").
15438 exeext=$exeext
15439
15440 # whether the shell understands "unset".
15441 lt_unset=$lt_unset
15442
15443 # turn spaces into newlines.
15444 SP2NL=$lt_lt_SP2NL
15445
15446 # turn newlines into spaces.
15447 NL2SP=$lt_lt_NL2SP
15448
15449 # How to create reloadable object files.
15450 reload_flag=$lt_reload_flag
15451 reload_cmds=$lt_reload_cmds
15452
15453 # An object symbol dumper.
15454 OBJDUMP=$lt_OBJDUMP
15455
15456 # Method to check whether dependent libraries are shared objects.
15457 deplibs_check_method=$lt_deplibs_check_method
15458
15459 # Command to use when deplibs_check_method == "file_magic".
15460 file_magic_cmd=$lt_file_magic_cmd
15461
15462 # The archiver.
15463 AR=$lt_AR
15464 AR_FLAGS=$lt_AR_FLAGS
15465
15466 # A symbol stripping program.
15467 STRIP=$lt_STRIP
15468
15469 # Commands used to install an old-style archive.
15470 RANLIB=$lt_RANLIB
15471 old_postinstall_cmds=$lt_old_postinstall_cmds
15472 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15473
15474 # A C compiler.
15475 LTCC=$lt_CC
15476
15477 # LTCC compiler flags.
15478 LTCFLAGS=$lt_CFLAGS
15479
15480 # Take the output of nm and produce a listing of raw symbols and C names.
15481 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15482
15483 # Transform the output of nm in a proper C declaration.
15484 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15485
15486 # Transform the output of nm in a C name address pair.
15487 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15488
15489 # Transform the output of nm in a C name address pair when lib prefix is needed.
15490 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15491
15492 # The name of the directory that contains temporary libtool files.
15493 objdir=$objdir
15494
15495 # Shell to use when invoking shell scripts.
15496 SHELL=$lt_SHELL
15497
15498 # An echo program that does not interpret backslashes.
15499 ECHO=$lt_ECHO
15500
15501 # Used to examine libraries when file_magic_cmd begins with "file".
15502 MAGIC_CMD=$MAGIC_CMD
15503
15504 # Must we lock files when doing compilation?
15505 need_locks=$lt_need_locks
15506
15507 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15508 DSYMUTIL=$lt_DSYMUTIL
15509
15510 # Tool to change global to local symbols on Mac OS X.
15511 NMEDIT=$lt_NMEDIT
15512
15513 # Tool to manipulate fat objects and archives on Mac OS X.
15514 LIPO=$lt_LIPO
15515
15516 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15517 OTOOL=$lt_OTOOL
15518
15519 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15520 OTOOL64=$lt_OTOOL64
15521
15522 # Old archive suffix (normally "a").
15523 libext=$libext
15524
15525 # Shared library suffix (normally ".so").
15526 shrext_cmds=$lt_shrext_cmds
15527
15528 # The commands to extract the exported symbol list from a shared archive.
15529 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15530
15531 # Variables whose values should be saved in libtool wrapper scripts and
15532 # restored at link time.
15533 variables_saved_for_relink=$lt_variables_saved_for_relink
15534
15535 # Do we need the "lib" prefix for modules?
15536 need_lib_prefix=$need_lib_prefix
15537
15538 # Do we need a version for libraries?
15539 need_version=$need_version
15540
15541 # Library versioning type.
15542 version_type=$version_type
15543
15544 # Shared library runtime path variable.
15545 runpath_var=$runpath_var
15546
15547 # Shared library path variable.
15548 shlibpath_var=$shlibpath_var
15549
15550 # Is shlibpath searched before the hard-coded library search path?
15551 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15552
15553 # Format of library name prefix.
15554 libname_spec=$lt_libname_spec
15555
15556 # List of archive names. First name is the real one, the rest are links.
15557 # The last name is the one that the linker finds with -lNAME
15558 library_names_spec=$lt_library_names_spec
15559
15560 # The coded name of the library, if different from the real name.
15561 soname_spec=$lt_soname_spec
15562
15563 # Command to use after installation of a shared archive.
15564 postinstall_cmds=$lt_postinstall_cmds
15565
15566 # Command to use after uninstallation of a shared archive.
15567 postuninstall_cmds=$lt_postuninstall_cmds
15568
15569 # Commands used to finish a libtool library installation in a directory.
15570 finish_cmds=$lt_finish_cmds
15571
15572 # As "finish_cmds", except a single script fragment to be evaled but
15573 # not shown.
15574 finish_eval=$lt_finish_eval
15575
15576 # Whether we should hardcode library paths into libraries.
15577 hardcode_into_libs=$hardcode_into_libs
15578
15579 # Compile-time system search path for libraries.
15580 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15581
15582 # Run-time system search path for libraries.
15583 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15584
15585 # Whether dlopen is supported.
15586 dlopen_support=$enable_dlopen
15587
15588 # Whether dlopen of programs is supported.
15589 dlopen_self=$enable_dlopen_self
15590
15591 # Whether dlopen of statically linked programs is supported.
15592 dlopen_self_static=$enable_dlopen_self_static
15593
15594 # Commands to strip libraries.
15595 old_striplib=$lt_old_striplib
15596 striplib=$lt_striplib
15597
15598
15599 # The linker used to build libraries.
15600 LD=$lt_LD
15601
15602 # Commands used to build an old-style archive.
15603 old_archive_cmds=$lt_old_archive_cmds
15604
15605 # A language specific compiler.
15606 CC=$lt_compiler
15607
15608 # Is the compiler the GNU compiler?
15609 with_gcc=$GCC
15610
15611 # Compiler flag to turn off builtin functions.
15612 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15613
15614 # How to pass a linker flag through the compiler.
15615 wl=$lt_lt_prog_compiler_wl
15616
15617 # Additional compiler flags for building library objects.
15618 pic_flag=$lt_lt_prog_compiler_pic
15619
15620 # Compiler flag to prevent dynamic linking.
15621 link_static_flag=$lt_lt_prog_compiler_static
15622
15623 # Does compiler simultaneously support -c and -o options?
15624 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15625
15626 # Whether or not to add -lc for building shared libraries.
15627 build_libtool_need_lc=$archive_cmds_need_lc
15628
15629 # Whether or not to disallow shared libs when runtime libs are static.
15630 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15631
15632 # Compiler flag to allow reflexive dlopens.
15633 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15634
15635 # Compiler flag to generate shared objects directly from archives.
15636 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15637
15638 # Whether the compiler copes with passing no objects directly.
15639 compiler_needs_object=$lt_compiler_needs_object
15640
15641 # Create an old-style archive from a shared archive.
15642 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15643
15644 # Create a temporary old-style archive to link instead of a shared archive.
15645 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15646
15647 # Commands used to build a shared archive.
15648 archive_cmds=$lt_archive_cmds
15649 archive_expsym_cmds=$lt_archive_expsym_cmds
15650
15651 # Commands used to build a loadable module if different from building
15652 # a shared archive.
15653 module_cmds=$lt_module_cmds
15654 module_expsym_cmds=$lt_module_expsym_cmds
15655
15656 # Whether we are building with GNU ld or not.
15657 with_gnu_ld=$lt_with_gnu_ld
15658
15659 # Flag that allows shared libraries with undefined symbols to be built.
15660 allow_undefined_flag=$lt_allow_undefined_flag
15661
15662 # Flag that enforces no undefined symbols.
15663 no_undefined_flag=$lt_no_undefined_flag
15664
15665 # Flag to hardcode \$libdir into a binary during linking.
15666 # This must work even if \$libdir does not exist
15667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15668
15669 # If ld is used when linking, flag to hardcode \$libdir into a binary
15670 # during linking. This must work even if \$libdir does not exist.
15671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15672
15673 # Whether we need a single "-rpath" flag with a separated argument.
15674 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15675
15676 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15677 # DIR into the resulting binary.
15678 hardcode_direct=$hardcode_direct
15679
15680 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15681 # DIR into the resulting binary and the resulting library dependency is
15682 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15683 # library is relocated.
15684 hardcode_direct_absolute=$hardcode_direct_absolute
15685
15686 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15687 # into the resulting binary.
15688 hardcode_minus_L=$hardcode_minus_L
15689
15690 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15691 # into the resulting binary.
15692 hardcode_shlibpath_var=$hardcode_shlibpath_var
15693
15694 # Set to "yes" if building a shared library automatically hardcodes DIR
15695 # into the library and all subsequent libraries and executables linked
15696 # against it.
15697 hardcode_automatic=$hardcode_automatic
15698
15699 # Set to yes if linker adds runtime paths of dependent libraries
15700 # to runtime path list.
15701 inherit_rpath=$inherit_rpath
15702
15703 # Whether libtool must link a program against all its dependency libraries.
15704 link_all_deplibs=$link_all_deplibs
15705
15706 # Fix the shell variable \$srcfile for the compiler.
15707 fix_srcfile_path=$lt_fix_srcfile_path
15708
15709 # Set to "yes" if exported symbols are required.
15710 always_export_symbols=$always_export_symbols
15711
15712 # The commands to list exported symbols.
15713 export_symbols_cmds=$lt_export_symbols_cmds
15714
15715 # Symbols that should not be listed in the preloaded symbols.
15716 exclude_expsyms=$lt_exclude_expsyms
15717
15718 # Symbols that must always be exported.
15719 include_expsyms=$lt_include_expsyms
15720
15721 # Commands necessary for linking programs (against libraries) with templates.
15722 prelink_cmds=$lt_prelink_cmds
15723
15724 # Specify filename containing input files.
15725 file_list_spec=$lt_file_list_spec
15726
15727 # How to hardcode a shared library path into an executable.
15728 hardcode_action=$hardcode_action
15729
15730 # ### END LIBTOOL CONFIG
15731
15732 _LT_EOF
15733
15734 case $host_os in
15735 aix3*)
15736 cat <<\_LT_EOF >> "$cfgfile"
15737 # AIX sometimes has problems with the GCC collect2 program. For some
15738 # reason, if we set the COLLECT_NAMES environment variable, the problems
15739 # vanish in a puff of smoke.
15740 if test "X${COLLECT_NAMES+set}" != Xset; then
15741 COLLECT_NAMES=
15742 export COLLECT_NAMES
15743 fi
15744 _LT_EOF
15745 ;;
15746 esac
15747
15748
15749 ltmain="$ac_aux_dir/ltmain.sh"
15750
15751
15752 # We use sed instead of cat because bash on DJGPP gets confused if
15753 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15754 # text mode, it properly converts lines to CR/LF. This bash problem
15755 # is reportedly fixed, but why not run on old versions too?
15756 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15757 || (rm -f "$cfgfile"; exit 1)
15758
15759 case $xsi_shell in
15760 yes)
15761 cat << \_LT_EOF >> "$cfgfile"
15762
15763 # func_dirname file append nondir_replacement
15764 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15765 # otherwise set result to NONDIR_REPLACEMENT.
15766 func_dirname ()
15767 {
15768 case ${1} in
15769 */*) func_dirname_result="${1%/*}${2}" ;;
15770 * ) func_dirname_result="${3}" ;;
15771 esac
15772 }
15773
15774 # func_basename file
15775 func_basename ()
15776 {
15777 func_basename_result="${1##*/}"
15778 }
15779
15780 # func_dirname_and_basename file append nondir_replacement
15781 # perform func_basename and func_dirname in a single function
15782 # call:
15783 # dirname: Compute the dirname of FILE. If nonempty,
15784 # add APPEND to the result, otherwise set result
15785 # to NONDIR_REPLACEMENT.
15786 # value returned in "$func_dirname_result"
15787 # basename: Compute filename of FILE.
15788 # value retuned in "$func_basename_result"
15789 # Implementation must be kept synchronized with func_dirname
15790 # and func_basename. For efficiency, we do not delegate to
15791 # those functions but instead duplicate the functionality here.
15792 func_dirname_and_basename ()
15793 {
15794 case ${1} in
15795 */*) func_dirname_result="${1%/*}${2}" ;;
15796 * ) func_dirname_result="${3}" ;;
15797 esac
15798 func_basename_result="${1##*/}"
15799 }
15800
15801 # func_stripname prefix suffix name
15802 # strip PREFIX and SUFFIX off of NAME.
15803 # PREFIX and SUFFIX must not contain globbing or regex special
15804 # characters, hashes, percent signs, but SUFFIX may contain a leading
15805 # dot (in which case that matches only a dot).
15806 func_stripname ()
15807 {
15808 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15809 # positional parameters, so assign one to ordinary parameter first.
15810 func_stripname_result=${3}
15811 func_stripname_result=${func_stripname_result#"${1}"}
15812 func_stripname_result=${func_stripname_result%"${2}"}
15813 }
15814
15815 # func_opt_split
15816 func_opt_split ()
15817 {
15818 func_opt_split_opt=${1%%=*}
15819 func_opt_split_arg=${1#*=}
15820 }
15821
15822 # func_lo2o object
15823 func_lo2o ()
15824 {
15825 case ${1} in
15826 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15827 *) func_lo2o_result=${1} ;;
15828 esac
15829 }
15830
15831 # func_xform libobj-or-source
15832 func_xform ()
15833 {
15834 func_xform_result=${1%.*}.lo
15835 }
15836
15837 # func_arith arithmetic-term...
15838 func_arith ()
15839 {
15840 func_arith_result=$(( $* ))
15841 }
15842
15843 # func_len string
15844 # STRING may not start with a hyphen.
15845 func_len ()
15846 {
15847 func_len_result=${#1}
15848 }
15849
15850 _LT_EOF
15851 ;;
15852 *) # Bourne compatible functions.
15853 cat << \_LT_EOF >> "$cfgfile"
15854
15855 # func_dirname file append nondir_replacement
15856 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15857 # otherwise set result to NONDIR_REPLACEMENT.
15858 func_dirname ()
15859 {
15860 # Extract subdirectory from the argument.
15861 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15862 if test "X$func_dirname_result" = "X${1}"; then
15863 func_dirname_result="${3}"
15864 else
15865 func_dirname_result="$func_dirname_result${2}"
15866 fi
15867 }
15868
15869 # func_basename file
15870 func_basename ()
15871 {
15872 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15873 }
15874
15875
15876 # func_stripname prefix suffix name
15877 # strip PREFIX and SUFFIX off of NAME.
15878 # PREFIX and SUFFIX must not contain globbing or regex special
15879 # characters, hashes, percent signs, but SUFFIX may contain a leading
15880 # dot (in which case that matches only a dot).
15881 # func_strip_suffix prefix name
15882 func_stripname ()
15883 {
15884 case ${2} in
15885 .*) func_stripname_result=`$ECHO "X${3}" \
15886 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15887 *) func_stripname_result=`$ECHO "X${3}" \
15888 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15889 esac
15890 }
15891
15892 # sed scripts:
15893 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15894 my_sed_long_arg='1s/^-[^=]*=//'
15895
15896 # func_opt_split
15897 func_opt_split ()
15898 {
15899 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15900 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15901 }
15902
15903 # func_lo2o object
15904 func_lo2o ()
15905 {
15906 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15907 }
15908
15909 # func_xform libobj-or-source
15910 func_xform ()
15911 {
15912 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15913 }
15914
15915 # func_arith arithmetic-term...
15916 func_arith ()
15917 {
15918 func_arith_result=`expr "$@"`
15919 }
15920
15921 # func_len string
15922 # STRING may not start with a hyphen.
15923 func_len ()
15924 {
15925 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15926 }
15927
15928 _LT_EOF
15929 esac
15930
15931 case $lt_shell_append in
15932 yes)
15933 cat << \_LT_EOF >> "$cfgfile"
15934
15935 # func_append var value
15936 # Append VALUE to the end of shell variable VAR.
15937 func_append ()
15938 {
15939 eval "$1+=\$2"
15940 }
15941 _LT_EOF
15942 ;;
15943 *)
15944 cat << \_LT_EOF >> "$cfgfile"
15945
15946 # func_append var value
15947 # Append VALUE to the end of shell variable VAR.
15948 func_append ()
15949 {
15950 eval "$1=\$$1\$2"
15951 }
15952
15953 _LT_EOF
15954 ;;
15955 esac
15956
15957
15958 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15959 || (rm -f "$cfgfile"; exit 1)
15960
15961 mv -f "$cfgfile" "$ofile" ||
15962 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15963 chmod +x "$ofile"
15964
15965 ;;
15966 "include/librb-config.h":C)
15967 outfile=include/librb-config.h.tmp
15968 cat > $outfile <<\_______EOF
15969 /*
15970 * librb-config.h: libratbox config file. Please modify configure.ac
15971 */
15972
15973 #ifndef __LIBRB_CONFIG_H
15974 #define __LIBRB_CONFIG_H
15975
15976 _______EOF
15977
15978 if test "x$rb_have_ipv6" = "xyes"; then
15979 echo "#define RB_IPV6 1" >> $outfile
15980 fi
15981
15982 if test "x$rb_windows_h" = "xyes"; then
15983 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
15984 echo '#include <windows.h>' >> $outfile
15985 echo '#include <winsock2.h>' >> $outfile
15986 echo '#include <iphlpapi.h>' >> $outfile
15987 fi
15988
15989 if test "x$rb_alloca_h" = "xyes"; then
15990 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
15991 fi
15992
15993 if test "x$rb_header_stdc" = "xyes"; then
15994 echo '#include <stdlib.h>' >> $outfile
15995 echo '#include <stddef.h>' >> $outfile
15996 elif test "x$rb_header_stdlib" = "xyes"; then
15997 echo '#include <stdlib.h>' >> $outfile
15998 fi
15999
16000 if test "x$rb_header_string_h" = "xyes"; then
16001 echo '#include <string.h>' >> $outfile
16002 fi
16003
16004 if test "x$rb_stdint_h" = "xyes"; then
16005 echo '#include <stdint.h>' >> $outfile
16006 fi
16007
16008 if test "x$rb_inttypes_h" = "xyes"; then
16009 echo '#include <inttypes.h>' >> $outfile
16010 fi
16011
16012 if test "x$rb_sys_types_h" = "xyes"; then
16013 echo '#include <sys/types.h>' >> $outfile
16014 fi
16015 if test "x$rb_sys_time_h" = "xyes"; then
16016 echo '#include <sys/time.h>' >> $outfile
16017 fi
16018 if test "x$rb_sys_stat_h" = "xyes"; then
16019 echo '#include <sys/stat.h>' >> $outfile
16020 fi
16021 if test "x$rb_time_h" = "xyes"; then
16022 echo '#include <time.h>' >> $outfile
16023 fi
16024
16025 if test "x$rb_sys_socket_h" = "xyes"; then
16026 echo '#include <sys/socket.h>' >> $outfile
16027 fi
16028
16029 if test "x$rb_netinet_in_h" = "xyes"; then
16030 echo '#include <netinet/in.h>' >> $outfile
16031 fi
16032
16033 if test "x$rb_arpa_inet_h" = "xyes"; then
16034 echo '#include <arpa/inet.h>' >> $outfile
16035 fi
16036
16037 if test "x$rb_unistd_h" = "xyes"; then
16038 echo '#include <unistd.h>' >> $outfile
16039 fi
16040
16041 if test "x$rb_crypt_h" = "xyes"; then
16042 echo '#include <crypt.h>' >> $outfile
16043 fi
16044
16045 if test "x$rb_errno_h" = "xyes"; then
16046 echo '#include <errno.h>' >> $outfile
16047 fi
16048
16049 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
16050
16051
16052 if test "x$rb_sockaddr_sa_len" = "xyes"; then
16053 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
16054 fi
16055
16056 if test "x$rb_sockaddr_storage" = "xyes"; then
16057 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
16058 else
16059 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
16060 fi
16061
16062 cat >> $outfile <<\_______EOF
16063 #endif /* __LIBRB_CONFIG_H */
16064 _______EOF
16065
16066 if cmp -s $outfile include/librb-config.h; then
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
16068 $as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
16069 ${rb_rm} -f $outfile
16070 else
16071 ${rb_mv} $outfile include/librb-config.h
16072 fi
16073
16074 ;;
16075
16076 esac
16077 done # for ac_tag
16078
16079
16080 as_fn_exit 0
16081 _ACEOF
16082 ac_clean_files=$ac_clean_files_save
16083
16084 test $ac_write_fail = 0 ||
16085 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16086
16087
16088 # configure is writing to config.log, and then calls config.status.
16089 # config.status does its own redirection, appending to config.log.
16090 # Unfortunately, on DOS this fails, as config.log is still kept open
16091 # by configure, so config.status won't be able to write to it; its
16092 # output is simply discarded. So we exec the FD to /dev/null,
16093 # effectively closing config.log, so it can be properly (re)opened and
16094 # appended to by config.status. When coming back to configure, we
16095 # need to make the FD available again.
16096 if test "$no_create" != yes; then
16097 ac_cs_success=:
16098 ac_config_status_args=
16099 test "$silent" = yes &&
16100 ac_config_status_args="$ac_config_status_args --quiet"
16101 exec 5>/dev/null
16102 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16103 exec 5>>config.log
16104 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16105 # would make configure fail if this is the last instruction.
16106 $ac_cs_success || as_fn_exit 1
16107 fi
16108 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16110 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16111 fi
16112
16113
16114
16115 echo
16116 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
16117 echo
16118
16119 echo "Installing into: $prefix"
16120
16121 echo "IPv6 support ................... $have_v6"
16122 echo "Assert debugging ............... $assert"
16123 echo "Block allocator ................ $balloc"
16124 echo "SSL Type........................ $SSL_TYPE"
16125 echo
16126