ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/configure
Revision: 1106
Committed: Tue Nov 2 15:10:53 2010 UTC (13 years, 4 months ago) by michael
Original Path: ircd-hybrid-7.3/configure
File size: 492749 byte(s)
Log Message:
- Fixed broken configure test for sigio
- Update libtool to latest 2.4 release

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1095 2010-08-02 20:14:21Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for ircd-hybrid 7.3-rc1.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # Foundation, Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55 else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
72 fi
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" "" $as_nl"
93
94 # Find who we are. Look in the path if we contain no directory separator.
95 as_myself=
96 case $0 in #((
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
105 IFS=$as_save_IFS
106
107 ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112 as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
117 fi
118
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 emulate sh
143 NULLCMD=:
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 setopt NO_GLOB_SUBST
148 else
149 case \`(set -o) 2>/dev/null\` in #(
150 *posix*) :
151 set -o posix ;; #(
152 *) :
153 ;;
154 esac
155 fi
156 "
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
162
163 exitcode=0
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170 else
171 exitcode=1; echo positional parameters were not saved.
172 fi
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null; then :
188 as_have_required=yes
189 else
190 as_have_required=no
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193
194 else
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199 IFS=$as_save_IFS
200 test -z "$as_dir" && as_dir=.
201 as_found=:
202 case $as_dir in #(
203 /*)
204 for as_base in sh bash ksh sh5; do
205 # Try only shells that exist, to save several forks.
206 as_shell=$as_dir/$as_base
207 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 CONFIG_SHELL=$as_shell as_have_required=yes
210 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211 break 2
212 fi
213 fi
214 done;;
215 esac
216 as_found=false
217 done
218 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
219 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
220 CONFIG_SHELL=$SHELL as_have_required=yes
221 fi; }
222 IFS=$as_save_IFS
223
224
225 if test "x$CONFIG_SHELL" != x; then :
226 # We cannot yet assume a decent shell, so we have to provide a
227 # neutralization value for shells without unset; and this also
228 # works around shells that cannot unset nonexistent variables.
229 # Preserve -v and -x to the replacement shell.
230 BASH_ENV=/dev/null
231 ENV=/dev/null
232 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
233 export CONFIG_SHELL
234 case $- in # ((((
235 *v*x* | *x*v* ) as_opts=-vx ;;
236 *v* ) as_opts=-v ;;
237 *x* ) as_opts=-x ;;
238 * ) as_opts= ;;
239 esac
240 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
241 fi
242
243 if test x$as_have_required = xno; then :
244 $as_echo "$0: This script requires a shell more modern than all"
245 $as_echo "$0: the shells that I found on your system."
246 if test x${ZSH_VERSION+set} = xset ; then
247 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
248 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 else
250 $as_echo "$0: Please tell bug-autoconf@gnu.org and
251 $0: bugs@ircd-hybrid.org about your system, including any
252 $0: error possibly output before this message. Then install
253 $0: a modern shell, or manually run the script under such a
254 $0: shell if you do have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 lt_ltdl_dir='libltdl'
549
550 SHELL=${CONFIG_SHELL-/bin/sh}
551
552
553 test -n "$DJDIR" || exec 7<&0 </dev/null
554 exec 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572
573 # Identity of this package.
574 PACKAGE_NAME='ircd-hybrid'
575 PACKAGE_TARNAME='ircd-hybrid'
576 PACKAGE_VERSION='7.3-rc1'
577 PACKAGE_STRING='ircd-hybrid 7.3-rc1'
578 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
579 PACKAGE_URL=''
580
581 ac_unique_file="src/ircd.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_func_list=
619 ac_header_list=
620 ac_subst_vars='ltdl_LTLIBOBJS
621 ltdl_LIBOBJS
622 am__EXEEXT_FALSE
623 am__EXEEXT_TRUE
624 LTLIBOBJS
625 LIBOBJS
626 LOCALSTATEDIR
627 DATADIR
628 LIBDIR
629 SYSCONFDIR
630 PREFIX
631 EFNET_FALSE
632 EFNET_TRUE
633 ENABLE_SSL_FALSE
634 ENABLE_SSL_TRUE
635 ENABLE_PCRE_FALSE
636 ENABLE_PCRE_TRUE
637 LTDLOPEN
638 LT_CONFIG_H
639 CONVENIENCE_LTDL_FALSE
640 CONVENIENCE_LTDL_TRUE
641 INSTALL_LTDL_FALSE
642 INSTALL_LTDL_TRUE
643 ARGZ_H
644 sys_symbol_underscore
645 LIBADD_DL
646 LT_DLPREOPEN
647 LIBADD_DLD_LINK
648 LIBADD_SHL_LOAD
649 LIBADD_DLOPEN
650 LT_DLLOADERS
651 INCLTDL
652 LTDLINCL
653 LTDLDEPS
654 LIBLTDL
655 CPP
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 MANIFEST_TOOL
662 RANLIB
663 ac_ct_AR
664 AR
665 DLLTOOL
666 OBJDUMP
667 LN_S
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LD
672 FGREP
673 EGREP
674 GREP
675 SED
676 host_os
677 host_vendor
678 host_cpu
679 host
680 build_os
681 build_vendor
682 build_cpu
683 build
684 LIBTOOL
685 LEXLIB
686 LEX_OUTPUT_ROOT
687 LEX
688 YFLAGS
689 YACC
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 AMDEPBACKSLASH
694 AMDEP_FALSE
695 AMDEP_TRUE
696 am__quote
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 MAINT
707 MAINTAINER_MODE_FALSE
708 MAINTAINER_MODE_TRUE
709 am__untar
710 am__tar
711 AMTAR
712 am__leading_dot
713 SET_MAKE
714 AWK
715 mkdir_p
716 MKDIR_P
717 INSTALL_STRIP_PROGRAM
718 STRIP
719 install_sh
720 MAKEINFO
721 AUTOHEADER
722 AUTOMAKE
723 AUTOCONF
724 ACLOCAL
725 VERSION
726 PACKAGE
727 CYGPATH_W
728 am__isrc
729 INSTALL_DATA
730 INSTALL_SCRIPT
731 INSTALL_PROGRAM
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_maintainer_mode
774 enable_dependency_tracking
775 enable_static
776 enable_shared
777 with_pic
778 enable_fast_install
779 with_gnu_ld
780 with_sysroot
781 enable_libtool_lock
782 with_included_ltdl
783 with_ltdl_include
784 with_ltdl_lib
785 enable_ltdl_install
786 with_zlib_path
787 enable_zlib
788 with_libpcre_path
789 enable_libpcre
790 enable_openssl
791 enable_assert
792 enable_small_net
793 enable_kqueue
794 enable_epoll
795 enable_devpoll
796 enable_rtsigio
797 enable_poll
798 enable_select
799 with_nicklen
800 with_topiclen
801 with_syslog_facility
802 enable_efnet
803 enable_halfops
804 enable_debugging
805 enable_warnings
806 enable_syslog
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 YACC
817 YFLAGS
818 CPP'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 ;;
1225
1226 esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1232 fi
1233
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240 fi
1241
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1247 do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1262
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1275 If a cross compiler is detected then cross compile mode will be used" >&2
1276 elif test "x$build_alias" != "x$host_alias"; then
1277 cross_compiling=yes
1278 fi
1279 fi
1280
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284 test "$silent" = yes && exec 6>/dev/null
1285
1286
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $? "working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\).*/{
1318 s//\1/
1319 q
1320 }
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1325 fi
1326 else
1327 ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 fi
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 srcdir=.
1340 fi
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1353
1354 #
1355 # Report the --help message.
1356 #
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361 \`configure' configures ircd-hybrid 7.3-rc1 to adapt to many kinds of systems.
1362
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1367
1368 Defaults for the options are specified in brackets.
1369
1370 Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 [PREFIX]
1386
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1391
1392 For better control, use the options below.
1393
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1415
1416 cat <<\_ACEOF
1417
1418 Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
1423 System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of ircd-hybrid 7.3-rc1:";;
1432 esac
1433 cat <<\_ACEOF
1434
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-maintainer-mode enable make rules and dependencies not useful
1440 (and sometimes confusing) to the casual installer
1441 --disable-dependency-tracking speeds up one-time build
1442 --enable-dependency-tracking do not reject slow dependency extractors
1443 --enable-static[=PKGS] build static libraries [default=no]
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-fast-install[=PKGS]
1446 optimize for fast installation [default=yes]
1447 --disable-libtool-lock avoid locking (might break parallel builds)
1448 --enable-ltdl-install install libltdl
1449 --disable-zlib Disable ziplinks support
1450 --disable-libpcre Disable PCRE support
1451 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1452 --disable-openssl Disable OpenSSL support.
1453 --enable-assert Enable assert() statements
1454 --enable-small-net Enable small network support.
1455 --enable-kqueue Force kqueue usage.
1456 --enable-epoll Force epoll usage.
1457 --enable-devpoll Force devpoll usage.
1458 --enable-rtsigio Force rtsigio usage.
1459 --enable-poll Force poll usage.
1460 --enable-select Force select usage.
1461 --enable-efnet For IRCDs running on EFnet.
1462 --enable-halfops Enable halfops support.
1463 --enable-debugging Enable debugging.
1464 --enable-warnings Enable compiler warnings.
1465 --enable-syslog="EVENTS"
1466 Enable syslog for events: users oper (space
1467 separated in quotes; default: disabled).
1468
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-pic try to use only PIC/non-PIC objects [default=use
1473 both]
1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1475 --with-sysroot=DIR Search for dependent libraries within DIR
1476 (or the compiler's sysroot if not specified).
1477 --with-included-ltdl use the GNU ltdl sources included here
1478 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1479 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1480 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1481 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1482 --with-nicklen=<value> Set nickname length (default 9).
1483 --with-topiclen=<value> Set topic length (default 160).
1484 --with-syslog-facility=LOG
1485 Define the syslog facility to use (default:
1486 LOG_LOCAL4)
1487
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 YACC The `Yet Another Compiler Compiler' implementation to use.
1497 Defaults to the first program found out of: `bison -y', `byacc',
1498 `yacc'.
1499 YFLAGS The list of arguments that will be passed by default to $YACC.
1500 This script will default YFLAGS to the empty string to avoid a
1501 default value of `-d' given by some make applications.
1502 CPP C preprocessor
1503
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1506
1507 Report bugs to <bugs@ircd-hybrid.org>.
1508 _ACEOF
1509 ac_status=$?
1510 fi
1511
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" ||
1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 continue
1518 ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 ircd-hybrid configure 7.3-rc1
1571 generated by GNU Autoconf 2.68
1572
1573 Copyright (C) 2010 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1578 fi
1579
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1583
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext
1591 if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1
1616 fi
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1619
1620 } # ac_fn_c_try_compile
1621
1622 # ac_fn_c_try_link LINENO
1623 # -----------------------
1624 # Try to link conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_link ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext conftest$ac_exeext
1629 if { { ac_try="$ac_link"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_link") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest$ac_exeext && {
1648 test "$cross_compiling" = yes ||
1649 $as_test_x conftest$ac_exeext
1650 }; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657 fi
1658 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1659 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1660 # interfere with the next link command; also delete a directory that is
1661 # left behind by Apple's compiler. We do this before executing the actions.
1662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_link
1667
1668 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1669 # -------------------------------------------------------
1670 # Tests whether HEADER exists and can be compiled using the include files in
1671 # INCLUDES, setting the cache variable VAR accordingly.
1672 ac_fn_c_check_header_compile ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \${$3+:} false; then :
1678 $as_echo_n "(cached) " >&6
1679 else
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 $4
1683 #include <$2>
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"; then :
1686 eval "$3=yes"
1687 else
1688 eval "$3=no"
1689 fi
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 fi
1692 eval ac_res=\$$3
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
1697 } # ac_fn_c_check_header_compile
1698
1699 # ac_fn_c_try_cpp LINENO
1700 # ----------------------
1701 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_cpp ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_cpp conftest.$ac_ext"
1706 case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } > conftest.i && {
1721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730 fi
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_cpp
1735
1736 # ac_fn_c_try_run LINENO
1737 # ----------------------
1738 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1739 # that executables *can* be run.
1740 ac_fn_c_try_run ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_link"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754 { { case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_try") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; }; }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: program exited with status $ac_status" >&5
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=$ac_status
1771 fi
1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
1775
1776 } # ac_fn_c_try_run
1777
1778 # ac_fn_c_check_func LINENO FUNC VAR
1779 # ----------------------------------
1780 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1781 ac_fn_c_check_func ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788 else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1793 #define $2 innocuous_$2
1794
1795 /* System header to define __stub macros and hopefully few prototypes,
1796 which can conflict with char $2 (); below.
1797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1798 <limits.h> exists even on freestanding compilers. */
1799
1800 #ifdef __STDC__
1801 # include <limits.h>
1802 #else
1803 # include <assert.h>
1804 #endif
1805
1806 #undef $2
1807
1808 /* Override any GCC internal prototype to avoid an error.
1809 Use char because int might match the return type of a GCC
1810 builtin and then its argument prototype would still apply. */
1811 #ifdef __cplusplus
1812 extern "C"
1813 #endif
1814 char $2 ();
1815 /* The GNU C library defines this for functions which it implements
1816 to always fail with ENOSYS. Some functions are actually named
1817 something starting with __ and the normal name is an alias. */
1818 #if defined __stub_$2 || defined __stub___$2
1819 choke me
1820 #endif
1821
1822 int
1823 main ()
1824 {
1825 return $2 ();
1826 ;
1827 return 0;
1828 }
1829 _ACEOF
1830 if ac_fn_c_try_link "$LINENO"; then :
1831 eval "$3=yes"
1832 else
1833 eval "$3=no"
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext \
1836 conftest$ac_exeext conftest.$ac_ext
1837 fi
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842
1843 } # ac_fn_c_check_func
1844
1845 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1846 # ---------------------------------------------
1847 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1848 # accordingly.
1849 ac_fn_c_check_decl ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 as_decl_name=`echo $2|sed 's/ *(.*//'`
1853 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1855 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1856 if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1858 else
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 $4
1862 int
1863 main ()
1864 {
1865 #ifndef $as_decl_name
1866 #ifdef __cplusplus
1867 (void) $as_decl_use;
1868 #else
1869 (void) $as_decl_name;
1870 #endif
1871 #endif
1872
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878 eval "$3=yes"
1879 else
1880 eval "$3=no"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 fi
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889 } # ac_fn_c_check_decl
1890
1891 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1892 # -------------------------------------------
1893 # Tests whether TYPE exists after having included INCLUDES, setting cache
1894 # variable VAR accordingly.
1895 ac_fn_c_check_type ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \${$3+:} false; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 eval "$3=no"
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 $4
1907 int
1908 main ()
1909 {
1910 if (sizeof ($2))
1911 return 0;
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $4
1920 int
1921 main ()
1922 {
1923 if (sizeof (($2)))
1924 return 0;
1925 ;
1926 return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930
1931 else
1932 eval "$3=yes"
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 fi
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943 } # ac_fn_c_check_type
1944
1945 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1946 # ----------------------------------------------------
1947 # Tries to find if the field MEMBER exists in type AGGR, after including
1948 # INCLUDES, setting cache variable VAR accordingly.
1949 ac_fn_c_check_member ()
1950 {
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1953 $as_echo_n "checking for $2.$3... " >&6; }
1954 if eval \${$4+:} false; then :
1955 $as_echo_n "(cached) " >&6
1956 else
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 $5
1960 int
1961 main ()
1962 {
1963 static $2 ac_aggr;
1964 if (ac_aggr.$3)
1965 return 0;
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 eval "$4=yes"
1972 else
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $5
1976 int
1977 main ()
1978 {
1979 static $2 ac_aggr;
1980 if (sizeof ac_aggr.$3)
1981 return 0;
1982 ;
1983 return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 eval "$4=yes"
1988 else
1989 eval "$4=no"
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 fi
1995 eval ac_res=\$$4
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000 } # ac_fn_c_check_member
2001
2002 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2003 # -------------------------------------------------------
2004 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2005 # the include files in INCLUDES and setting the cache variable VAR
2006 # accordingly.
2007 ac_fn_c_check_header_mongrel ()
2008 {
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 if eval \${$3+:} false; then :
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2015 fi
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 else
2020 # Is the header compilable?
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2022 $as_echo_n "checking $2 usability... " >&6; }
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 #include <$2>
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_header_compiler=yes
2030 else
2031 ac_header_compiler=no
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2035 $as_echo "$ac_header_compiler" >&6; }
2036
2037 # Is the header present?
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2039 $as_echo_n "checking $2 presence... " >&6; }
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 #include <$2>
2043 _ACEOF
2044 if ac_fn_c_try_cpp "$LINENO"; then :
2045 ac_header_preproc=yes
2046 else
2047 ac_header_preproc=no
2048 fi
2049 rm -f conftest.err conftest.i conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2051 $as_echo "$ac_header_preproc" >&6; }
2052
2053 # So? What about this header?
2054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2055 yes:no: )
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2057 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2059 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2060 ;;
2061 no:yes:* )
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2063 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2065 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2067 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2069 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2071 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2072 ( $as_echo "## ----------------------------------- ##
2073 ## Report this to bugs@ircd-hybrid.org ##
2074 ## ----------------------------------- ##"
2075 ) | sed "s/^/$as_me: WARNING: /" >&2
2076 ;;
2077 esac
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 eval "$3=\$ac_header_compiler"
2084 fi
2085 eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 fi
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090
2091 } # ac_fn_c_check_header_mongrel
2092 cat >config.log <<_ACEOF
2093 This file contains any messages produced by compilers while
2094 running configure, to aid debugging if configure makes a mistake.
2095
2096 It was created by ircd-hybrid $as_me 7.3-rc1, which was
2097 generated by GNU Autoconf 2.68. Invocation command line was
2098
2099 $ $0 $@
2100
2101 _ACEOF
2102 exec 5>>config.log
2103 {
2104 cat <<_ASUNAME
2105 ## --------- ##
2106 ## Platform. ##
2107 ## --------- ##
2108
2109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2114
2115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2116 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2117
2118 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2119 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2121 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2122 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2123 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2124 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2125
2126 _ASUNAME
2127
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2130 do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 $as_echo "PATH: $as_dir"
2134 done
2135 IFS=$as_save_IFS
2136
2137 } >&5
2138
2139 cat >&5 <<_ACEOF
2140
2141
2142 ## ----------- ##
2143 ## Core tests. ##
2144 ## ----------- ##
2145
2146 _ACEOF
2147
2148
2149 # Keep a trace of the command line.
2150 # Strip out --no-create and --no-recursion so they do not pile up.
2151 # Strip out --silent because we don't want to record it for future runs.
2152 # Also quote any args containing shell meta-characters.
2153 # Make two passes to allow for proper duplicate-argument suppression.
2154 ac_configure_args=
2155 ac_configure_args0=
2156 ac_configure_args1=
2157 ac_must_keep_next=false
2158 for ac_pass in 1 2
2159 do
2160 for ac_arg
2161 do
2162 case $ac_arg in
2163 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2165 | -silent | --silent | --silen | --sile | --sil)
2166 continue ;;
2167 *\'*)
2168 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 esac
2170 case $ac_pass in
2171 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2172 2)
2173 as_fn_append ac_configure_args1 " '$ac_arg'"
2174 if test $ac_must_keep_next = true; then
2175 ac_must_keep_next=false # Got value, back to normal.
2176 else
2177 case $ac_arg in
2178 *=* | --config-cache | -C | -disable-* | --disable-* \
2179 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2180 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2181 | -with-* | --with-* | -without-* | --without-* | --x)
2182 case "$ac_configure_args0 " in
2183 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2184 esac
2185 ;;
2186 -* ) ac_must_keep_next=true ;;
2187 esac
2188 fi
2189 as_fn_append ac_configure_args " '$ac_arg'"
2190 ;;
2191 esac
2192 done
2193 done
2194 { ac_configure_args0=; unset ac_configure_args0;}
2195 { ac_configure_args1=; unset ac_configure_args1;}
2196
2197 # When interrupted or exit'd, cleanup temporary files, and complete
2198 # config.log. We remove comments because anyway the quotes in there
2199 # would cause problems or look ugly.
2200 # WARNING: Use '\'' to represent an apostrophe within the trap.
2201 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2202 trap 'exit_status=$?
2203 # Save into config.log some information that might help in debugging.
2204 {
2205 echo
2206
2207 $as_echo "## ---------------- ##
2208 ## Cache variables. ##
2209 ## ---------------- ##"
2210 echo
2211 # The following way of writing the cache mishandles newlines in values,
2212 (
2213 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2214 eval ac_val=\$$ac_var
2215 case $ac_val in #(
2216 *${as_nl}*)
2217 case $ac_var in #(
2218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2219 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2220 esac
2221 case $ac_var in #(
2222 _ | IFS | as_nl) ;; #(
2223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2224 *) { eval $ac_var=; unset $ac_var;} ;;
2225 esac ;;
2226 esac
2227 done
2228 (set) 2>&1 |
2229 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2230 *${as_nl}ac_space=\ *)
2231 sed -n \
2232 "s/'\''/'\''\\\\'\'''\''/g;
2233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2234 ;; #(
2235 *)
2236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2237 ;;
2238 esac |
2239 sort
2240 )
2241 echo
2242
2243 $as_echo "## ----------------- ##
2244 ## Output variables. ##
2245 ## ----------------- ##"
2246 echo
2247 for ac_var in $ac_subst_vars
2248 do
2249 eval ac_val=\$$ac_var
2250 case $ac_val in
2251 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2252 esac
2253 $as_echo "$ac_var='\''$ac_val'\''"
2254 done | sort
2255 echo
2256
2257 if test -n "$ac_subst_files"; then
2258 $as_echo "## ------------------- ##
2259 ## File substitutions. ##
2260 ## ------------------- ##"
2261 echo
2262 for ac_var in $ac_subst_files
2263 do
2264 eval ac_val=\$$ac_var
2265 case $ac_val in
2266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267 esac
2268 $as_echo "$ac_var='\''$ac_val'\''"
2269 done | sort
2270 echo
2271 fi
2272
2273 if test -s confdefs.h; then
2274 $as_echo "## ----------- ##
2275 ## confdefs.h. ##
2276 ## ----------- ##"
2277 echo
2278 cat confdefs.h
2279 echo
2280 fi
2281 test "$ac_signal" != 0 &&
2282 $as_echo "$as_me: caught signal $ac_signal"
2283 $as_echo "$as_me: exit $exit_status"
2284 } >&5
2285 rm -f core *.core core.conftest.* &&
2286 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2287 exit $exit_status
2288 ' 0
2289 for ac_signal in 1 2 13 15; do
2290 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2291 done
2292 ac_signal=0
2293
2294 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2295 rm -f -r conftest* confdefs.h
2296
2297 $as_echo "/* confdefs.h */" > confdefs.h
2298
2299 # Predefined preprocessor variables.
2300
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_NAME "$PACKAGE_NAME"
2303 _ACEOF
2304
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2307 _ACEOF
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2311 _ACEOF
2312
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_STRING "$PACKAGE_STRING"
2315 _ACEOF
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2319 _ACEOF
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_URL "$PACKAGE_URL"
2323 _ACEOF
2324
2325
2326 # Let the site file select an alternate cache file if it wants to.
2327 # Prefer an explicitly selected file to automatically selected ones.
2328 ac_site_file1=NONE
2329 ac_site_file2=NONE
2330 if test -n "$CONFIG_SITE"; then
2331 # We do not want a PATH search for config.site.
2332 case $CONFIG_SITE in #((
2333 -*) ac_site_file1=./$CONFIG_SITE;;
2334 */*) ac_site_file1=$CONFIG_SITE;;
2335 *) ac_site_file1=./$CONFIG_SITE;;
2336 esac
2337 elif test "x$prefix" != xNONE; then
2338 ac_site_file1=$prefix/share/config.site
2339 ac_site_file2=$prefix/etc/config.site
2340 else
2341 ac_site_file1=$ac_default_prefix/share/config.site
2342 ac_site_file2=$ac_default_prefix/etc/config.site
2343 fi
2344 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2345 do
2346 test "x$ac_site_file" = xNONE && continue
2347 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2349 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2350 sed 's/^/| /' "$ac_site_file" >&5
2351 . "$ac_site_file" \
2352 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 as_fn_error $? "failed to load site script $ac_site_file
2355 See \`config.log' for more details" "$LINENO" 5; }
2356 fi
2357 done
2358
2359 if test -r "$cache_file"; then
2360 # Some versions of bash will fail to source /dev/null (special files
2361 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2362 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364 $as_echo "$as_me: loading cache $cache_file" >&6;}
2365 case $cache_file in
2366 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367 *) . "./$cache_file";;
2368 esac
2369 fi
2370 else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372 $as_echo "$as_me: creating cache $cache_file" >&6;}
2373 >$cache_file
2374 fi
2375
2376 as_fn_append ac_func_list " mmap"
2377 as_fn_append ac_func_list " strtok_r"
2378 as_fn_append ac_func_list " usleep"
2379 as_fn_append ac_func_list " strlcat"
2380 as_fn_append ac_func_list " strlcpy"
2381 as_fn_append ac_header_list " crypt.h"
2382 as_fn_append ac_header_list " inttypes.h"
2383 as_fn_append ac_header_list " stdint.h"
2384 as_fn_append ac_header_list " sys/resource.h"
2385 as_fn_append ac_header_list " sys/param.h"
2386 as_fn_append ac_header_list " errno.h"
2387 as_fn_append ac_header_list " sys/syslog.h"
2388 as_fn_append ac_header_list " types.h"
2389 as_fn_append ac_header_list " socket.h"
2390 as_fn_append ac_header_list " sys/wait.h"
2391 as_fn_append ac_header_list " wait.h"
2392 as_fn_append ac_header_list " link.h"
2393 # Check that the precious variables saved in the cache have kept the same
2394 # value.
2395 ac_cache_corrupted=false
2396 for ac_var in $ac_precious_vars; do
2397 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2398 eval ac_new_set=\$ac_env_${ac_var}_set
2399 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2400 eval ac_new_val=\$ac_env_${ac_var}_value
2401 case $ac_old_set,$ac_new_set in
2402 set,)
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2405 ac_cache_corrupted=: ;;
2406 ,set)
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2408 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2409 ac_cache_corrupted=: ;;
2410 ,);;
2411 *)
2412 if test "x$ac_old_val" != "x$ac_new_val"; then
2413 # differences in whitespace do not lead to failure.
2414 ac_old_val_w=`echo x $ac_old_val`
2415 ac_new_val_w=`echo x $ac_new_val`
2416 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2418 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2419 ac_cache_corrupted=:
2420 else
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2422 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2423 eval $ac_var=\$ac_old_val
2424 fi
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2426 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2428 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2429 fi;;
2430 esac
2431 # Pass precious variables to config.status.
2432 if test "$ac_new_set" = set; then
2433 case $ac_new_val in
2434 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2435 *) ac_arg=$ac_var=$ac_new_val ;;
2436 esac
2437 case " $ac_configure_args " in
2438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2439 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2440 esac
2441 fi
2442 done
2443 if $ac_cache_corrupted; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2447 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2448 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2449 fi
2450 ## -------------------- ##
2451 ## Main body of script. ##
2452 ## -------------------- ##
2453
2454 ac_ext=c
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459
2460
2461 am__api_version='1.11'
2462
2463 ac_aux_dir=
2464 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2465 if test -f "$ac_dir/install-sh"; then
2466 ac_aux_dir=$ac_dir
2467 ac_install_sh="$ac_aux_dir/install-sh -c"
2468 break
2469 elif test -f "$ac_dir/install.sh"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/install.sh -c"
2472 break
2473 elif test -f "$ac_dir/shtool"; then
2474 ac_aux_dir=$ac_dir
2475 ac_install_sh="$ac_aux_dir/shtool install -c"
2476 break
2477 fi
2478 done
2479 if test -z "$ac_aux_dir"; then
2480 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2481 fi
2482
2483 # These three variables are undocumented and unsupported,
2484 # and are intended to be withdrawn in a future Autoconf release.
2485 # They can cause serious problems if a builder's source tree is in a directory
2486 # whose full name contains unusual characters.
2487 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2488 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2489 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2490
2491
2492 # Find a good install program. We prefer a C program (faster),
2493 # so one script is as good as another. But avoid the broken or
2494 # incompatible versions:
2495 # SysV /etc/install, /usr/sbin/install
2496 # SunOS /usr/etc/install
2497 # IRIX /sbin/install
2498 # AIX /bin/install
2499 # AmigaOS /C/install, which installs bootblocks on floppy discs
2500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503 # OS/2's system install, which has a completely different semantic
2504 # ./install, which can be erroneously created by make from ./install.sh.
2505 # Reject install programs that cannot install multiple files.
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2507 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2508 if test -z "$INSTALL"; then
2509 if ${ac_cv_path_install+:} false; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 # Account for people who put trailing slashes in PATH elements.
2518 case $as_dir/ in #((
2519 ./ | .// | /[cC]/* | \
2520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2521 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2522 /usr/ucb/* ) ;;
2523 *)
2524 # OSF1 and SCO ODT 3.0 have their own names for install.
2525 # Don't use installbsd from OSF since it installs stuff as root
2526 # by default.
2527 for ac_prog in ginstall scoinst install; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2530 if test $ac_prog = install &&
2531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # AIX install. It has an incompatible calling convention.
2533 :
2534 elif test $ac_prog = install &&
2535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # program-specific install script used by HP pwplus--don't use.
2537 :
2538 else
2539 rm -rf conftest.one conftest.two conftest.dir
2540 echo one > conftest.one
2541 echo two > conftest.two
2542 mkdir conftest.dir
2543 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2544 test -s conftest.one && test -s conftest.two &&
2545 test -s conftest.dir/conftest.one &&
2546 test -s conftest.dir/conftest.two
2547 then
2548 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2549 break 3
2550 fi
2551 fi
2552 fi
2553 done
2554 done
2555 ;;
2556 esac
2557
2558 done
2559 IFS=$as_save_IFS
2560
2561 rm -rf conftest.one conftest.two conftest.dir
2562
2563 fi
2564 if test "${ac_cv_path_install+set}" = set; then
2565 INSTALL=$ac_cv_path_install
2566 else
2567 # As a last resort, use the slow shell script. Don't cache a
2568 # value for INSTALL within a source directory, because that will
2569 # break other packages using the cache if that directory is
2570 # removed, or if the value is a relative name.
2571 INSTALL=$ac_install_sh
2572 fi
2573 fi
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2575 $as_echo "$INSTALL" >&6; }
2576
2577 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2578 # It thinks the first close brace ends the variable substitution.
2579 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2580
2581 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2582
2583 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2584
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2586 $as_echo_n "checking whether build environment is sane... " >&6; }
2587 # Just in case
2588 sleep 1
2589 echo timestamp > conftest.file
2590 # Reject unsafe characters in $srcdir or the absolute working directory
2591 # name. Accept space and tab only in the latter.
2592 am_lf='
2593 '
2594 case `pwd` in
2595 *[\\\"\#\$\&\'\`$am_lf]*)
2596 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2597 esac
2598 case $srcdir in
2599 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2600 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2601 esac
2602
2603 # Do `set' in a subshell so we don't clobber the current shell's
2604 # arguments. Must try -L first in case configure is actually a
2605 # symlink; some systems play weird games with the mod time of symlinks
2606 # (eg FreeBSD returns the mod time of the symlink's containing
2607 # directory).
2608 if (
2609 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2610 if test "$*" = "X"; then
2611 # -L didn't work.
2612 set X `ls -t "$srcdir/configure" conftest.file`
2613 fi
2614 rm -f conftest.file
2615 if test "$*" != "X $srcdir/configure conftest.file" \
2616 && test "$*" != "X conftest.file $srcdir/configure"; then
2617
2618 # If neither matched, then we have a broken ls. This can happen
2619 # if, for instance, CONFIG_SHELL is bash and it inherits a
2620 # broken ls alias from the environment. This has actually
2621 # happened. Such a system could not be considered "sane".
2622 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2623 alias in your environment" "$LINENO" 5
2624 fi
2625
2626 test "$2" = conftest.file
2627 )
2628 then
2629 # Ok.
2630 :
2631 else
2632 as_fn_error $? "newly created file is older than distributed files!
2633 Check your system clock" "$LINENO" 5
2634 fi
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2636 $as_echo "yes" >&6; }
2637 test "$program_prefix" != NONE &&
2638 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2639 # Use a double $ so make ignores it.
2640 test "$program_suffix" != NONE &&
2641 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2642 # Double any \ or $.
2643 # By default was `s,x,x', remove it if useless.
2644 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2645 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2646
2647 # expand $ac_aux_dir to an absolute path
2648 am_aux_dir=`cd $ac_aux_dir && pwd`
2649
2650 if test x"${MISSING+set}" != xset; then
2651 case $am_aux_dir in
2652 *\ * | *\ *)
2653 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2654 *)
2655 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2656 esac
2657 fi
2658 # Use eval to expand $SHELL
2659 if eval "$MISSING --run true"; then
2660 am_missing_run="$MISSING --run "
2661 else
2662 am_missing_run=
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2664 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2665 fi
2666
2667 if test x"${install_sh}" != xset; then
2668 case $am_aux_dir in
2669 *\ * | *\ *)
2670 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2671 *)
2672 install_sh="\${SHELL} $am_aux_dir/install-sh"
2673 esac
2674 fi
2675
2676 # Installed binaries are usually stripped using `strip' when the user
2677 # run `make install-strip'. However `strip' might not be the right
2678 # tool to use in cross-compilation environments, therefore Automake
2679 # will honor the `STRIP' environment variable to overrule this program.
2680 if test "$cross_compiling" != no; then
2681 if test -n "$ac_tool_prefix"; then
2682 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2683 set dummy ${ac_tool_prefix}strip; ac_word=$2
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if ${ac_cv_prog_STRIP+:} false; then :
2687 $as_echo_n "(cached) " >&6
2688 else
2689 if test -n "$STRIP"; then
2690 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703 done
2704 done
2705 IFS=$as_save_IFS
2706
2707 fi
2708 fi
2709 STRIP=$ac_cv_prog_STRIP
2710 if test -n "$STRIP"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2712 $as_echo "$STRIP" >&6; }
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2716 fi
2717
2718
2719 fi
2720 if test -z "$ac_cv_prog_STRIP"; then
2721 ac_ct_STRIP=$STRIP
2722 # Extract the first word of "strip", so it can be a program name with args.
2723 set dummy strip; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 if test -n "$ac_ct_STRIP"; then
2730 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_ac_ct_STRIP="strip"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2742 fi
2743 done
2744 done
2745 IFS=$as_save_IFS
2746
2747 fi
2748 fi
2749 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2750 if test -n "$ac_ct_STRIP"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2752 $as_echo "$ac_ct_STRIP" >&6; }
2753 else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2756 fi
2757
2758 if test "x$ac_ct_STRIP" = x; then
2759 STRIP=":"
2760 else
2761 case $cross_compiling:$ac_tool_warned in
2762 yes:)
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2765 ac_tool_warned=yes ;;
2766 esac
2767 STRIP=$ac_ct_STRIP
2768 fi
2769 else
2770 STRIP="$ac_cv_prog_STRIP"
2771 fi
2772
2773 fi
2774 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2775
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2777 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2778 if test -z "$MKDIR_P"; then
2779 if ${ac_cv_path_mkdir+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2784 do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_prog in mkdir gmkdir; do
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2790 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2791 'mkdir (GNU coreutils) '* | \
2792 'mkdir (coreutils) '* | \
2793 'mkdir (fileutils) '4.1*)
2794 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2795 break 3;;
2796 esac
2797 done
2798 done
2799 done
2800 IFS=$as_save_IFS
2801
2802 fi
2803
2804 test -d ./--version && rmdir ./--version
2805 if test "${ac_cv_path_mkdir+set}" = set; then
2806 MKDIR_P="$ac_cv_path_mkdir -p"
2807 else
2808 # As a last resort, use the slow shell script. Don't cache a
2809 # value for MKDIR_P within a source directory, because that will
2810 # break other packages using the cache if that directory is
2811 # removed, or if the value is a relative name.
2812 MKDIR_P="$ac_install_sh -d"
2813 fi
2814 fi
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2816 $as_echo "$MKDIR_P" >&6; }
2817
2818 mkdir_p="$MKDIR_P"
2819 case $mkdir_p in
2820 [\\/$]* | ?:[\\/]*) ;;
2821 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2822 esac
2823
2824 for ac_prog in gawk mawk nawk awk
2825 do
2826 # Extract the first word of "$ac_prog", so it can be a program name with args.
2827 set dummy $ac_prog; ac_word=$2
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if ${ac_cv_prog_AWK+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 if test -n "$AWK"; then
2834 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_AWK="$ac_prog"
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847 done
2848 done
2849 IFS=$as_save_IFS
2850
2851 fi
2852 fi
2853 AWK=$ac_cv_prog_AWK
2854 if test -n "$AWK"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2856 $as_echo "$AWK" >&6; }
2857 else
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2860 fi
2861
2862
2863 test -n "$AWK" && break
2864 done
2865
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2867 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2868 set x ${MAKE-make}
2869 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2870 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 cat >conftest.make <<\_ACEOF
2874 SHELL = /bin/sh
2875 all:
2876 @echo '@@@%%%=$(MAKE)=@@@%%%'
2877 _ACEOF
2878 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2879 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2880 *@@@%%%=?*=@@@%%%*)
2881 eval ac_cv_prog_make_${ac_make}_set=yes;;
2882 *)
2883 eval ac_cv_prog_make_${ac_make}_set=no;;
2884 esac
2885 rm -f conftest.make
2886 fi
2887 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889 $as_echo "yes" >&6; }
2890 SET_MAKE=
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2894 SET_MAKE="MAKE=${MAKE-make}"
2895 fi
2896
2897 rm -rf .tst 2>/dev/null
2898 mkdir .tst 2>/dev/null
2899 if test -d .tst; then
2900 am__leading_dot=.
2901 else
2902 am__leading_dot=_
2903 fi
2904 rmdir .tst 2>/dev/null
2905
2906 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2907 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2908 # is not polluted with repeated "-I."
2909 am__isrc=' -I$(srcdir)'
2910 # test to see if srcdir already configured
2911 if test -f $srcdir/config.status; then
2912 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2913 fi
2914 fi
2915
2916 # test whether we have cygpath
2917 if test -z "$CYGPATH_W"; then
2918 if (cygpath --version) >/dev/null 2>/dev/null; then
2919 CYGPATH_W='cygpath -w'
2920 else
2921 CYGPATH_W=echo
2922 fi
2923 fi
2924
2925
2926 # Define the identity of the package.
2927 PACKAGE='ircd-hybrid'
2928 VERSION='7.3-rc1'
2929
2930
2931 cat >>confdefs.h <<_ACEOF
2932 #define PACKAGE "$PACKAGE"
2933 _ACEOF
2934
2935
2936 cat >>confdefs.h <<_ACEOF
2937 #define VERSION "$VERSION"
2938 _ACEOF
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2970 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2971 # Check whether --enable-maintainer-mode was given.
2972 if test "${enable_maintainer_mode+set}" = set; then :
2973 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2974 else
2975 USE_MAINTAINER_MODE=no
2976 fi
2977
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2979 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2980 if test $USE_MAINTAINER_MODE = yes; then
2981 MAINTAINER_MODE_TRUE=
2982 MAINTAINER_MODE_FALSE='#'
2983 else
2984 MAINTAINER_MODE_TRUE='#'
2985 MAINTAINER_MODE_FALSE=
2986 fi
2987
2988 MAINT=$MAINTAINER_MODE_TRUE
2989
2990
2991 ac_config_headers="$ac_config_headers config.h"
2992
2993
2994
2995 # Checks for programs.
2996 DEPDIR="${am__leading_dot}deps"
2997
2998 ac_config_commands="$ac_config_commands depfiles"
2999
3000
3001 am_make=${MAKE-make}
3002 cat > confinc << 'END'
3003 am__doit:
3004 @echo this is the am__doit target
3005 .PHONY: am__doit
3006 END
3007 # If we don't find an include directive, just comment out the code.
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3009 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3010 am__include="#"
3011 am__quote=
3012 _am_result=none
3013 # First try GNU make style include.
3014 echo "include confinc" > confmf
3015 # Ignore all kinds of additional output from `make'.
3016 case `$am_make -s -f confmf 2> /dev/null` in #(
3017 *the\ am__doit\ target*)
3018 am__include=include
3019 am__quote=
3020 _am_result=GNU
3021 ;;
3022 esac
3023 # Now try BSD make style include.
3024 if test "$am__include" = "#"; then
3025 echo '.include "confinc"' > confmf
3026 case `$am_make -s -f confmf 2> /dev/null` in #(
3027 *the\ am__doit\ target*)
3028 am__include=.include
3029 am__quote="\""
3030 _am_result=BSD
3031 ;;
3032 esac
3033 fi
3034
3035
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3037 $as_echo "$_am_result" >&6; }
3038 rm -f confinc confmf
3039
3040 # Check whether --enable-dependency-tracking was given.
3041 if test "${enable_dependency_tracking+set}" = set; then :
3042 enableval=$enable_dependency_tracking;
3043 fi
3044
3045 if test "x$enable_dependency_tracking" != xno; then
3046 am_depcomp="$ac_aux_dir/depcomp"
3047 AMDEPBACKSLASH='\'
3048 fi
3049 if test "x$enable_dependency_tracking" != xno; then
3050 AMDEP_TRUE=
3051 AMDEP_FALSE='#'
3052 else
3053 AMDEP_TRUE='#'
3054 AMDEP_FALSE=
3055 fi
3056
3057
3058 ac_ext=c
3059 ac_cpp='$CPP $CPPFLAGS'
3060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_CC+:} false; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087 IFS=$as_save_IFS
3088
3089 fi
3090 fi
3091 CC=$ac_cv_prog_CC
3092 if test -n "$CC"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094 $as_echo "$CC" >&6; }
3095 else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3098 fi
3099
3100
3101 fi
3102 if test -z "$ac_cv_prog_CC"; then
3103 ac_ct_CC=$CC
3104 # Extract the first word of "gcc", so it can be a program name with args.
3105 set dummy gcc; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3109 $as_echo_n "(cached) " >&6
3110 else
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 ac_cv_prog_ac_ct_CC="gcc"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132 if test -n "$ac_ct_CC"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3134 $as_echo "$ac_ct_CC" >&6; }
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 fi
3139
3140 if test "x$ac_ct_CC" = x; then
3141 CC=""
3142 else
3143 case $cross_compiling:$ac_tool_warned in
3144 yes:)
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3147 ac_tool_warned=yes ;;
3148 esac
3149 CC=$ac_ct_CC
3150 fi
3151 else
3152 CC="$ac_cv_prog_CC"
3153 fi
3154
3155 if test -z "$CC"; then
3156 if test -n "$ac_tool_prefix"; then
3157 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3158 set dummy ${ac_tool_prefix}cc; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_CC+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 if test -n "$CC"; then
3165 ac_cv_prog_CC="$CC" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174 ac_cv_prog_CC="${ac_tool_prefix}cc"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178 done
3179 done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 CC=$ac_cv_prog_CC
3185 if test -n "$CC"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3187 $as_echo "$CC" >&6; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193
3194 fi
3195 fi
3196 if test -z "$CC"; then
3197 # Extract the first word of "cc", so it can be a program name with args.
3198 set dummy cc; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if ${ac_cv_prog_CC+:} false; then :
3202 $as_echo_n "(cached) " >&6
3203 else
3204 if test -n "$CC"; then
3205 ac_cv_prog_CC="$CC" # Let the user override the test.
3206 else
3207 ac_prog_rejected=no
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3210 do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3216 ac_prog_rejected=yes
3217 continue
3218 fi
3219 ac_cv_prog_CC="cc"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223 done
3224 done
3225 IFS=$as_save_IFS
3226
3227 if test $ac_prog_rejected = yes; then
3228 # We found a bogon in the path, so make sure we never use it.
3229 set dummy $ac_cv_prog_CC
3230 shift
3231 if test $# != 0; then
3232 # We chose a different compiler from the bogus one.
3233 # However, it has the same basename, so the bogon will be chosen
3234 # first if we set CC to just the basename; use the full file name.
3235 shift
3236 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3237 fi
3238 fi
3239 fi
3240 fi
3241 CC=$ac_cv_prog_CC
3242 if test -n "$CC"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244 $as_echo "$CC" >&6; }
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3248 fi
3249
3250
3251 fi
3252 if test -z "$CC"; then
3253 if test -n "$ac_tool_prefix"; then
3254 for ac_prog in cl.exe
3255 do
3256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_CC+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 if test -n "$CC"; then
3264 ac_cv_prog_CC="$CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3276 fi
3277 done
3278 done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 CC=$ac_cv_prog_CC
3284 if test -n "$CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292
3293 test -n "$CC" && break
3294 done
3295 fi
3296 if test -z "$CC"; then
3297 ac_ct_CC=$CC
3298 for ac_prog in cl.exe
3299 do
3300 # Extract the first word of "$ac_prog", so it can be a program name with args.
3301 set dummy $ac_prog; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 if test -n "$ac_ct_CC"; then
3308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317 ac_cv_prog_ac_ct_CC="$ac_prog"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323 IFS=$as_save_IFS
3324
3325 fi
3326 fi
3327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3328 if test -n "$ac_ct_CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3330 $as_echo "$ac_ct_CC" >&6; }
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336
3337 test -n "$ac_ct_CC" && break
3338 done
3339
3340 if test "x$ac_ct_CC" = x; then
3341 CC=""
3342 else
3343 case $cross_compiling:$ac_tool_warned in
3344 yes:)
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3347 ac_tool_warned=yes ;;
3348 esac
3349 CC=$ac_ct_CC
3350 fi
3351 fi
3352
3353 fi
3354
3355
3356 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error $? "no acceptable C compiler found in \$PATH
3359 See \`config.log' for more details" "$LINENO" 5; }
3360
3361 # Provide some information about the compiler.
3362 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3363 set X $ac_compile
3364 ac_compiler=$2
3365 for ac_option in --version -v -V -qversion; do
3366 { { ac_try="$ac_compiler $ac_option >&5"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372 $as_echo "$ac_try_echo"; } >&5
3373 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3374 ac_status=$?
3375 if test -s conftest.err; then
3376 sed '10a\
3377 ... rest of stderr output deleted ...
3378 10q' conftest.err >conftest.er1
3379 cat conftest.er1 >&5
3380 fi
3381 rm -f conftest.er1 conftest.err
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }
3384 done
3385
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3388
3389 int
3390 main ()
3391 {
3392
3393 ;
3394 return 0;
3395 }
3396 _ACEOF
3397 ac_clean_files_save=$ac_clean_files
3398 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3399 # Try to create an executable without -o first, disregard a.out.
3400 # It will help us diagnose broken compilers, and finding out an intuition
3401 # of exeext.
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3403 $as_echo_n "checking whether the C compiler works... " >&6; }
3404 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3405
3406 # The possible output files:
3407 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3408
3409 ac_rmfiles=
3410 for ac_file in $ac_files
3411 do
3412 case $ac_file in
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3414 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3415 esac
3416 done
3417 rm -f $ac_rmfiles
3418
3419 if { { ac_try="$ac_link_default"
3420 case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_link_default") 2>&5
3427 ac_status=$?
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; then :
3430 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3431 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3432 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3433 # so that the user can short-circuit this test for compilers unknown to
3434 # Autoconf.
3435 for ac_file in $ac_files ''
3436 do
3437 test -f "$ac_file" || continue
3438 case $ac_file in
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3440 ;;
3441 [ab].out )
3442 # We found the default executable, but exeext='' is most
3443 # certainly right.
3444 break;;
3445 *.* )
3446 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3447 then :; else
3448 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3449 fi
3450 # We set ac_cv_exeext here because the later test for it is not
3451 # safe: cross compilers may not add the suffix if given an `-o'
3452 # argument, so we may need to know it at that point already.
3453 # Even if this section looks crufty: it has the advantage of
3454 # actually working.
3455 break;;
3456 * )
3457 break;;
3458 esac
3459 done
3460 test "$ac_cv_exeext" = no && ac_cv_exeext=
3461
3462 else
3463 ac_file=''
3464 fi
3465 if test -z "$ac_file"; then :
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3468 $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error 77 "C compiler cannot create executables
3474 See \`config.log' for more details" "$LINENO" 5; }
3475 else
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3477 $as_echo "yes" >&6; }
3478 fi
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3480 $as_echo_n "checking for C compiler default output file name... " >&6; }
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3482 $as_echo "$ac_file" >&6; }
3483 ac_exeext=$ac_cv_exeext
3484
3485 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3486 ac_clean_files=$ac_clean_files_save
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3488 $as_echo_n "checking for suffix of executables... " >&6; }
3489 if { { ac_try="$ac_link"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495 $as_echo "$ac_try_echo"; } >&5
3496 (eval "$ac_link") 2>&5
3497 ac_status=$?
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }; then :
3500 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3501 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3502 # work properly (i.e., refer to `conftest.exe'), while it won't with
3503 # `rm'.
3504 for ac_file in conftest.exe conftest conftest.*; do
3505 test -f "$ac_file" || continue
3506 case $ac_file in
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3508 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509 break;;
3510 * ) break;;
3511 esac
3512 done
3513 else
3514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3517 See \`config.log' for more details" "$LINENO" 5; }
3518 fi
3519 rm -f conftest conftest$ac_cv_exeext
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3521 $as_echo "$ac_cv_exeext" >&6; }
3522
3523 rm -f conftest.$ac_ext
3524 EXEEXT=$ac_cv_exeext
3525 ac_exeext=$EXEEXT
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528 #include <stdio.h>
3529 int
3530 main ()
3531 {
3532 FILE *f = fopen ("conftest.out", "w");
3533 return ferror (f) || fclose (f) != 0;
3534
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 ac_clean_files="$ac_clean_files conftest.out"
3540 # Check that the compiler produces executables we can run. If not, either
3541 # the compiler is broken, or we cross compile.
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3543 $as_echo_n "checking whether we are cross compiling... " >&6; }
3544 if test "$cross_compiling" != yes; then
3545 { { ac_try="$ac_link"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552 (eval "$ac_link") 2>&5
3553 ac_status=$?
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }
3556 if { ac_try='./conftest$ac_cv_exeext'
3557 { { case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_try") 2>&5
3564 ac_status=$?
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }; }; then
3567 cross_compiling=no
3568 else
3569 if test "$cross_compiling" = maybe; then
3570 cross_compiling=yes
3571 else
3572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 as_fn_error $? "cannot run C compiled programs.
3575 If you meant to cross compile, use \`--host'.
3576 See \`config.log' for more details" "$LINENO" 5; }
3577 fi
3578 fi
3579 fi
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3581 $as_echo "$cross_compiling" >&6; }
3582
3583 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3584 ac_clean_files=$ac_clean_files_save
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3586 $as_echo_n "checking for suffix of object files... " >&6; }
3587 if ${ac_cv_objext+:} false; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592
3593 int
3594 main ()
3595 {
3596
3597 ;
3598 return 0;
3599 }
3600 _ACEOF
3601 rm -f conftest.o conftest.obj
3602 if { { ac_try="$ac_compile"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_compile") 2>&5
3610 ac_status=$?
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }; then :
3613 for ac_file in conftest.o conftest.obj conftest.*; do
3614 test -f "$ac_file" || continue;
3615 case $ac_file in
3616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3617 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3618 break;;
3619 esac
3620 done
3621 else
3622 $as_echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 as_fn_error $? "cannot compute suffix of object files: cannot compile
3628 See \`config.log' for more details" "$LINENO" 5; }
3629 fi
3630 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3631 fi
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3633 $as_echo "$ac_cv_objext" >&6; }
3634 OBJEXT=$ac_cv_objext
3635 ac_objext=$OBJEXT
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3637 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3638 if ${ac_cv_c_compiler_gnu+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643
3644 int
3645 main ()
3646 {
3647 #ifndef __GNUC__
3648 choke me
3649 #endif
3650
3651 ;
3652 return 0;
3653 }
3654 _ACEOF
3655 if ac_fn_c_try_compile "$LINENO"; then :
3656 ac_compiler_gnu=yes
3657 else
3658 ac_compiler_gnu=no
3659 fi
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3662
3663 fi
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3665 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3666 if test $ac_compiler_gnu = yes; then
3667 GCC=yes
3668 else
3669 GCC=
3670 fi
3671 ac_test_CFLAGS=${CFLAGS+set}
3672 ac_save_CFLAGS=$CFLAGS
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3674 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3675 if ${ac_cv_prog_cc_g+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 ac_save_c_werror_flag=$ac_c_werror_flag
3679 ac_c_werror_flag=yes
3680 ac_cv_prog_cc_g=no
3681 CFLAGS="-g"
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684
3685 int
3686 main ()
3687 {
3688
3689 ;
3690 return 0;
3691 }
3692 _ACEOF
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694 ac_cv_prog_cc_g=yes
3695 else
3696 CFLAGS=""
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699
3700 int
3701 main ()
3702 {
3703
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 if ac_fn_c_try_compile "$LINENO"; then :
3709
3710 else
3711 ac_c_werror_flag=$ac_save_c_werror_flag
3712 CFLAGS="-g"
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715
3716 int
3717 main ()
3718 {
3719
3720 ;
3721 return 0;
3722 }
3723 _ACEOF
3724 if ac_fn_c_try_compile "$LINENO"; then :
3725 ac_cv_prog_cc_g=yes
3726 fi
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 fi
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 fi
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 ac_c_werror_flag=$ac_save_c_werror_flag
3733 fi
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3735 $as_echo "$ac_cv_prog_cc_g" >&6; }
3736 if test "$ac_test_CFLAGS" = set; then
3737 CFLAGS=$ac_save_CFLAGS
3738 elif test $ac_cv_prog_cc_g = yes; then
3739 if test "$GCC" = yes; then
3740 CFLAGS="-g -O2"
3741 else
3742 CFLAGS="-g"
3743 fi
3744 else
3745 if test "$GCC" = yes; then
3746 CFLAGS="-O2"
3747 else
3748 CFLAGS=
3749 fi
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3752 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3753 if ${ac_cv_prog_cc_c89+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 ac_cv_prog_cc_c89=no
3757 ac_save_CC=$CC
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3760 #include <stdarg.h>
3761 #include <stdio.h>
3762 #include <sys/types.h>
3763 #include <sys/stat.h>
3764 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3765 struct buf { int x; };
3766 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3767 static char *e (p, i)
3768 char **p;
3769 int i;
3770 {
3771 return p[i];
3772 }
3773 static char *f (char * (*g) (char **, int), char **p, ...)
3774 {
3775 char *s;
3776 va_list v;
3777 va_start (v,p);
3778 s = g (p, va_arg (v,int));
3779 va_end (v);
3780 return s;
3781 }
3782
3783 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3784 function prototypes and stuff, but not '\xHH' hex character constants.
3785 These don't provoke an error unfortunately, instead are silently treated
3786 as 'x'. The following induces an error, until -std is added to get
3787 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3788 array size at least. It's necessary to write '\x00'==0 to get something
3789 that's true only with -std. */
3790 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3791
3792 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3793 inside strings and character constants. */
3794 #define FOO(x) 'x'
3795 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3796
3797 int test (int i, double x);
3798 struct s1 {int (*f) (int a);};
3799 struct s2 {int (*f) (double a);};
3800 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3801 int argc;
3802 char **argv;
3803 int
3804 main ()
3805 {
3806 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3807 ;
3808 return 0;
3809 }
3810 _ACEOF
3811 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3812 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3813 do
3814 CC="$ac_save_CC $ac_arg"
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_cv_prog_cc_c89=$ac_arg
3817 fi
3818 rm -f core conftest.err conftest.$ac_objext
3819 test "x$ac_cv_prog_cc_c89" != "xno" && break
3820 done
3821 rm -f conftest.$ac_ext
3822 CC=$ac_save_CC
3823
3824 fi
3825 # AC_CACHE_VAL
3826 case "x$ac_cv_prog_cc_c89" in
3827 x)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3829 $as_echo "none needed" >&6; } ;;
3830 xno)
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3832 $as_echo "unsupported" >&6; } ;;
3833 *)
3834 CC="$CC $ac_cv_prog_cc_c89"
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3836 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3837 esac
3838 if test "x$ac_cv_prog_cc_c89" != xno; then :
3839
3840 fi
3841
3842 ac_ext=c
3843 ac_cpp='$CPP $CPPFLAGS'
3844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847
3848 depcc="$CC" am_compiler_list=
3849
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3851 $as_echo_n "checking dependency style of $depcc... " >&6; }
3852 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3856 # We make a subdir and do the tests there. Otherwise we can end up
3857 # making bogus files that we don't know about and never remove. For
3858 # instance it was reported that on HP-UX the gcc test will end up
3859 # making a dummy file named `D' -- because `-MD' means `put the output
3860 # in D'.
3861 mkdir conftest.dir
3862 # Copy depcomp to subdir because otherwise we won't find it if we're
3863 # using a relative directory.
3864 cp "$am_depcomp" conftest.dir
3865 cd conftest.dir
3866 # We will build objects and dependencies in a subdirectory because
3867 # it helps to detect inapplicable dependency modes. For instance
3868 # both Tru64's cc and ICC support -MD to output dependencies as a
3869 # side effect of compilation, but ICC will put the dependencies in
3870 # the current directory while Tru64 will put them in the object
3871 # directory.
3872 mkdir sub
3873
3874 am_cv_CC_dependencies_compiler_type=none
3875 if test "$am_compiler_list" = ""; then
3876 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3877 fi
3878 am__universal=false
3879 case " $depcc " in #(
3880 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3881 esac
3882
3883 for depmode in $am_compiler_list; do
3884 # Setup a source with many dependencies, because some compilers
3885 # like to wrap large dependency lists on column 80 (with \), and
3886 # we should not choose a depcomp mode which is confused by this.
3887 #
3888 # We need to recreate these files for each test, as the compiler may
3889 # overwrite some of them when testing with obscure command lines.
3890 # This happens at least with the AIX C compiler.
3891 : > sub/conftest.c
3892 for i in 1 2 3 4 5 6; do
3893 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3894 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3895 # Solaris 8's {/usr,}/bin/sh.
3896 touch sub/conftst$i.h
3897 done
3898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3899
3900 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3901 # mode. It turns out that the SunPro C++ compiler does not properly
3902 # handle `-M -o', and we need to detect this. Also, some Intel
3903 # versions had trouble with output in subdirs
3904 am__obj=sub/conftest.${OBJEXT-o}
3905 am__minus_obj="-o $am__obj"
3906 case $depmode in
3907 gcc)
3908 # This depmode causes a compiler race in universal mode.
3909 test "$am__universal" = false || continue
3910 ;;
3911 nosideeffect)
3912 # after this tag, mechanisms are not by side-effect, so they'll
3913 # only be used when explicitly requested
3914 if test "x$enable_dependency_tracking" = xyes; then
3915 continue
3916 else
3917 break
3918 fi
3919 ;;
3920 msvisualcpp | msvcmsys)
3921 # This compiler won't grok `-c -o', but also, the minuso test has
3922 # not run yet. These depmodes are late enough in the game, and
3923 # so weak that their functioning should not be impacted.
3924 am__obj=conftest.${OBJEXT-o}
3925 am__minus_obj=
3926 ;;
3927 none) break ;;
3928 esac
3929 if depmode=$depmode \
3930 source=sub/conftest.c object=$am__obj \
3931 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3932 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3933 >/dev/null 2>conftest.err &&
3934 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3935 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3936 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3937 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3938 # icc doesn't choke on unknown options, it will just issue warnings
3939 # or remarks (even with -Werror). So we grep stderr for any message
3940 # that says an option was ignored or not supported.
3941 # When given -MP, icc 7.0 and 7.1 complain thusly:
3942 # icc: Command line warning: ignoring option '-M'; no argument required
3943 # The diagnosis changed in icc 8.0:
3944 # icc: Command line remark: option '-MP' not supported
3945 if (grep 'ignoring option' conftest.err ||
3946 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3947 am_cv_CC_dependencies_compiler_type=$depmode
3948 break
3949 fi
3950 fi
3951 done
3952
3953 cd ..
3954 rm -rf conftest.dir
3955 else
3956 am_cv_CC_dependencies_compiler_type=none
3957 fi
3958
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3961 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3962 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3963
3964 if
3965 test "x$enable_dependency_tracking" != xno \
3966 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3967 am__fastdepCC_TRUE=
3968 am__fastdepCC_FALSE='#'
3969 else
3970 am__fastdepCC_TRUE='#'
3971 am__fastdepCC_FALSE=
3972 fi
3973
3974
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3976 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3977 if ${ac_cv_prog_cc_c99+:} false; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 ac_cv_prog_cc_c99=no
3981 ac_save_CC=$CC
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3984 #include <stdarg.h>
3985 #include <stdbool.h>
3986 #include <stdlib.h>
3987 #include <wchar.h>
3988 #include <stdio.h>
3989
3990 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3991 #define debug(...) fprintf (stderr, __VA_ARGS__)
3992 #define showlist(...) puts (#__VA_ARGS__)
3993 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3994 static void
3995 test_varargs_macros (void)
3996 {
3997 int x = 1234;
3998 int y = 5678;
3999 debug ("Flag");
4000 debug ("X = %d\n", x);
4001 showlist (The first, second, and third items.);
4002 report (x>y, "x is %d but y is %d", x, y);
4003 }
4004
4005 // Check long long types.
4006 #define BIG64 18446744073709551615ull
4007 #define BIG32 4294967295ul
4008 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4009 #if !BIG_OK
4010 your preprocessor is broken;
4011 #endif
4012 #if BIG_OK
4013 #else
4014 your preprocessor is broken;
4015 #endif
4016 static long long int bignum = -9223372036854775807LL;
4017 static unsigned long long int ubignum = BIG64;
4018
4019 struct incomplete_array
4020 {
4021 int datasize;
4022 double data[];
4023 };
4024
4025 struct named_init {
4026 int number;
4027 const wchar_t *name;
4028 double average;
4029 };
4030
4031 typedef const char *ccp;
4032
4033 static inline int
4034 test_restrict (ccp restrict text)
4035 {
4036 // See if C++-style comments work.
4037 // Iterate through items via the restricted pointer.
4038 // Also check for declarations in for loops.
4039 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4040 continue;
4041 return 0;
4042 }
4043
4044 // Check varargs and va_copy.
4045 static void
4046 test_varargs (const char *format, ...)
4047 {
4048 va_list args;
4049 va_start (args, format);
4050 va_list args_copy;
4051 va_copy (args_copy, args);
4052
4053 const char *str;
4054 int number;
4055 float fnumber;
4056
4057 while (*format)
4058 {
4059 switch (*format++)
4060 {
4061 case 's': // string
4062 str = va_arg (args_copy, const char *);
4063 break;
4064 case 'd': // int
4065 number = va_arg (args_copy, int);
4066 break;
4067 case 'f': // float
4068 fnumber = va_arg (args_copy, double);
4069 break;
4070 default:
4071 break;
4072 }
4073 }
4074 va_end (args_copy);
4075 va_end (args);
4076 }
4077
4078 int
4079 main ()
4080 {
4081
4082 // Check bool.
4083 _Bool success = false;
4084
4085 // Check restrict.
4086 if (test_restrict ("String literal") == 0)
4087 success = true;
4088 char *restrict newvar = "Another string";
4089
4090 // Check varargs.
4091 test_varargs ("s, d' f .", "string", 65, 34.234);
4092 test_varargs_macros ();
4093
4094 // Check flexible array members.
4095 struct incomplete_array *ia =
4096 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4097 ia->datasize = 10;
4098 for (int i = 0; i < ia->datasize; ++i)
4099 ia->data[i] = i * 1.234;
4100
4101 // Check named initializers.
4102 struct named_init ni = {
4103 .number = 34,
4104 .name = L"Test wide string",
4105 .average = 543.34343,
4106 };
4107
4108 ni.number = 58;
4109
4110 int dynamic_array[ni.number];
4111 dynamic_array[ni.number - 1] = 543;
4112
4113 // work around unused variable warnings
4114 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4115 || dynamic_array[ni.number - 1] != 543);
4116
4117 ;
4118 return 0;
4119 }
4120 _ACEOF
4121 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4122 do
4123 CC="$ac_save_CC $ac_arg"
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_cv_prog_cc_c99=$ac_arg
4126 fi
4127 rm -f core conftest.err conftest.$ac_objext
4128 test "x$ac_cv_prog_cc_c99" != "xno" && break
4129 done
4130 rm -f conftest.$ac_ext
4131 CC=$ac_save_CC
4132
4133 fi
4134 # AC_CACHE_VAL
4135 case "x$ac_cv_prog_cc_c99" in
4136 x)
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4138 $as_echo "none needed" >&6; } ;;
4139 xno)
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4141 $as_echo "unsupported" >&6; } ;;
4142 *)
4143 CC="$CC $ac_cv_prog_cc_c99"
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4145 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4146 esac
4147 if test "x$ac_cv_prog_cc_c99" != xno; then :
4148
4149 fi
4150
4151
4152 if test "$ac_cv_prog_cc_c99" = "no"; then :
4153 as_fn_error $? "no C99 compiler found. Aborting." "$LINENO" 5
4154 fi
4155 for ac_prog in 'bison -y' byacc
4156 do
4157 # Extract the first word of "$ac_prog", so it can be a program name with args.
4158 set dummy $ac_prog; ac_word=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if ${ac_cv_prog_YACC+:} false; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 if test -n "$YACC"; then
4165 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174 ac_cv_prog_YACC="$ac_prog"
4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4177 fi
4178 done
4179 done
4180 IFS=$as_save_IFS
4181
4182 fi
4183 fi
4184 YACC=$ac_cv_prog_YACC
4185 if test -n "$YACC"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4187 $as_echo "$YACC" >&6; }
4188 else
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4191 fi
4192
4193
4194 test -n "$YACC" && break
4195 done
4196 test -n "$YACC" || YACC="yacc"
4197
4198
4199 for ac_prog in flex lex
4200 do
4201 # Extract the first word of "$ac_prog", so it can be a program name with args.
4202 set dummy $ac_prog; ac_word=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if ${ac_cv_prog_LEX+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 if test -n "$LEX"; then
4209 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_LEX="$ac_prog"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222 done
4223 done
4224 IFS=$as_save_IFS
4225
4226 fi
4227 fi
4228 LEX=$ac_cv_prog_LEX
4229 if test -n "$LEX"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4231 $as_echo "$LEX" >&6; }
4232 else
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4235 fi
4236
4237
4238 test -n "$LEX" && break
4239 done
4240 test -n "$LEX" || LEX=":"
4241
4242 if test "x$LEX" != "x:"; then
4243 cat >conftest.l <<_ACEOF
4244 %%
4245 a { ECHO; }
4246 b { REJECT; }
4247 c { yymore (); }
4248 d { yyless (1); }
4249 e { yyless (input () != 0); }
4250 f { unput (yytext[0]); }
4251 . { BEGIN INITIAL; }
4252 %%
4253 #ifdef YYTEXT_POINTER
4254 extern char *yytext;
4255 #endif
4256 int
4257 main (void)
4258 {
4259 return ! yylex () + ! yywrap ();
4260 }
4261 _ACEOF
4262 { { ac_try="$LEX conftest.l"
4263 case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266 esac
4267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4268 $as_echo "$ac_try_echo"; } >&5
4269 (eval "$LEX conftest.l") 2>&5
4270 ac_status=$?
4271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4272 test $ac_status = 0; }
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4274 $as_echo_n "checking lex output file root... " >&6; }
4275 if ${ac_cv_prog_lex_root+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278
4279 if test -f lex.yy.c; then
4280 ac_cv_prog_lex_root=lex.yy
4281 elif test -f lexyy.c; then
4282 ac_cv_prog_lex_root=lexyy
4283 else
4284 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4285 fi
4286 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4288 $as_echo "$ac_cv_prog_lex_root" >&6; }
4289 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4290
4291 if test -z "${LEXLIB+set}"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4293 $as_echo_n "checking lex library... " >&6; }
4294 if ${ac_cv_lib_lex+:} false; then :
4295 $as_echo_n "(cached) " >&6
4296 else
4297
4298 ac_save_LIBS=$LIBS
4299 ac_cv_lib_lex='none needed'
4300 for ac_lib in '' -lfl -ll; do
4301 LIBS="$ac_lib $ac_save_LIBS"
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 `cat $LEX_OUTPUT_ROOT.c`
4305 _ACEOF
4306 if ac_fn_c_try_link "$LINENO"; then :
4307 ac_cv_lib_lex=$ac_lib
4308 fi
4309 rm -f core conftest.err conftest.$ac_objext \
4310 conftest$ac_exeext conftest.$ac_ext
4311 test "$ac_cv_lib_lex" != 'none needed' && break
4312 done
4313 LIBS=$ac_save_LIBS
4314
4315 fi
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4317 $as_echo "$ac_cv_lib_lex" >&6; }
4318 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4319 fi
4320
4321
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4323 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4324 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 # POSIX says lex can declare yytext either as a pointer or an array; the
4328 # default is implementation-dependent. Figure out which it is, since
4329 # not all implementations provide the %pointer and %array declarations.
4330 ac_cv_prog_lex_yytext_pointer=no
4331 ac_save_LIBS=$LIBS
4332 LIBS="$LEXLIB $ac_save_LIBS"
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335
4336 #define YYTEXT_POINTER 1
4337 `cat $LEX_OUTPUT_ROOT.c`
4338 _ACEOF
4339 if ac_fn_c_try_link "$LINENO"; then :
4340 ac_cv_prog_lex_yytext_pointer=yes
4341 fi
4342 rm -f core conftest.err conftest.$ac_objext \
4343 conftest$ac_exeext conftest.$ac_ext
4344 LIBS=$ac_save_LIBS
4345
4346 fi
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4348 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4349 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4350
4351 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4352
4353 fi
4354 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4355
4356 fi
4357 if test "$LEX" = :; then
4358 LEX=${am_missing_run}flex
4359 fi
4360
4361
4362 # Initializing libtool.
4363
4364
4365
4366
4367
4368
4369
4370 case `pwd` in
4371 *\ * | *\ *)
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4373 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4374 esac
4375
4376
4377
4378 macro_version='2.4'
4379 macro_revision='1.3293'
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393 ltmain="$ac_aux_dir/ltmain.sh"
4394
4395 # Make sure we can run config.sub.
4396 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4397 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4398
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4400 $as_echo_n "checking build system type... " >&6; }
4401 if ${ac_cv_build+:} false; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 ac_build_alias=$build_alias
4405 test "x$ac_build_alias" = x &&
4406 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4407 test "x$ac_build_alias" = x &&
4408 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4409 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4410 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4411
4412 fi
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4414 $as_echo "$ac_cv_build" >&6; }
4415 case $ac_cv_build in
4416 *-*-*) ;;
4417 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4418 esac
4419 build=$ac_cv_build
4420 ac_save_IFS=$IFS; IFS='-'
4421 set x $ac_cv_build
4422 shift
4423 build_cpu=$1
4424 build_vendor=$2
4425 shift; shift
4426 # Remember, the first character of IFS is used to create $*,
4427 # except with old shells:
4428 build_os=$*
4429 IFS=$ac_save_IFS
4430 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4431
4432
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4434 $as_echo_n "checking host system type... " >&6; }
4435 if ${ac_cv_host+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 if test "x$host_alias" = x; then
4439 ac_cv_host=$ac_cv_build
4440 else
4441 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4442 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4443 fi
4444
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4447 $as_echo "$ac_cv_host" >&6; }
4448 case $ac_cv_host in
4449 *-*-*) ;;
4450 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4451 esac
4452 host=$ac_cv_host
4453 ac_save_IFS=$IFS; IFS='-'
4454 set x $ac_cv_host
4455 shift
4456 host_cpu=$1
4457 host_vendor=$2
4458 shift; shift
4459 # Remember, the first character of IFS is used to create $*,
4460 # except with old shells:
4461 host_os=$*
4462 IFS=$ac_save_IFS
4463 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4464
4465
4466 # Backslashify metacharacters that are still active within
4467 # double-quoted strings.
4468 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4469
4470 # Same as above, but do not quote variable references.
4471 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4472
4473 # Sed substitution to delay expansion of an escaped shell variable in a
4474 # double_quote_subst'ed string.
4475 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4476
4477 # Sed substitution to delay expansion of an escaped single quote.
4478 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4479
4480 # Sed substitution to avoid accidental globbing in evaled expressions
4481 no_glob_subst='s/\*/\\\*/g'
4482
4483 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4484 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4485 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4486
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4488 $as_echo_n "checking how to print strings... " >&6; }
4489 # Test print first, because it will be a builtin if present.
4490 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4491 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4492 ECHO='print -r --'
4493 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4494 ECHO='printf %s\n'
4495 else
4496 # Use this function as a fallback that always works.
4497 func_fallback_echo ()
4498 {
4499 eval 'cat <<_LTECHO_EOF
4500 $1
4501 _LTECHO_EOF'
4502 }
4503 ECHO='func_fallback_echo'
4504 fi
4505
4506 # func_echo_all arg...
4507 # Invoke $ECHO with all args, space-separated.
4508 func_echo_all ()
4509 {
4510 $ECHO ""
4511 }
4512
4513 case "$ECHO" in
4514 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4515 $as_echo "printf" >&6; } ;;
4516 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4517 $as_echo "print -r" >&6; } ;;
4518 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4519 $as_echo "cat" >&6; } ;;
4520 esac
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4536 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4537 if ${ac_cv_path_SED+:} false; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4541 for ac_i in 1 2 3 4 5 6 7; do
4542 ac_script="$ac_script$as_nl$ac_script"
4543 done
4544 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4545 { ac_script=; unset ac_script;}
4546 if test -z "$SED"; then
4547 ac_path_SED_found=false
4548 # Loop through the user's path and test for each of PROGNAME-LIST
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_prog in sed gsed; do
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4557 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4558 # Check for GNU ac_path_SED and select it if it is found.
4559 # Check for GNU $ac_path_SED
4560 case `"$ac_path_SED" --version 2>&1` in
4561 *GNU*)
4562 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4563 *)
4564 ac_count=0
4565 $as_echo_n 0123456789 >"conftest.in"
4566 while :
4567 do
4568 cat "conftest.in" "conftest.in" >"conftest.tmp"
4569 mv "conftest.tmp" "conftest.in"
4570 cp "conftest.in" "conftest.nl"
4571 $as_echo '' >> "conftest.nl"
4572 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4573 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4574 as_fn_arith $ac_count + 1 && ac_count=$as_val
4575 if test $ac_count -gt ${ac_path_SED_max-0}; then
4576 # Best one so far, save it but keep looking for a better one
4577 ac_cv_path_SED="$ac_path_SED"
4578 ac_path_SED_max=$ac_count
4579 fi
4580 # 10*(2^10) chars as input seems more than enough
4581 test $ac_count -gt 10 && break
4582 done
4583 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4584 esac
4585
4586 $ac_path_SED_found && break 3
4587 done
4588 done
4589 done
4590 IFS=$as_save_IFS
4591 if test -z "$ac_cv_path_SED"; then
4592 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4593 fi
4594 else
4595 ac_cv_path_SED=$SED
4596 fi
4597
4598 fi
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4600 $as_echo "$ac_cv_path_SED" >&6; }
4601 SED="$ac_cv_path_SED"
4602 rm -f conftest.sed
4603
4604 test -z "$SED" && SED=sed
4605 Xsed="$SED -e 1s/^X//"
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4618 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4619 if ${ac_cv_path_GREP+:} false; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 if test -z "$GREP"; then
4623 ac_path_GREP_found=false
4624 # Loop through the user's path and test for each of PROGNAME-LIST
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4627 do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_prog in grep ggrep; do
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4633 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4634 # Check for GNU ac_path_GREP and select it if it is found.
4635 # Check for GNU $ac_path_GREP
4636 case `"$ac_path_GREP" --version 2>&1` in
4637 *GNU*)
4638 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4639 *)
4640 ac_count=0
4641 $as_echo_n 0123456789 >"conftest.in"
4642 while :
4643 do
4644 cat "conftest.in" "conftest.in" >"conftest.tmp"
4645 mv "conftest.tmp" "conftest.in"
4646 cp "conftest.in" "conftest.nl"
4647 $as_echo 'GREP' >> "conftest.nl"
4648 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4650 as_fn_arith $ac_count + 1 && ac_count=$as_val
4651 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4652 # Best one so far, save it but keep looking for a better one
4653 ac_cv_path_GREP="$ac_path_GREP"
4654 ac_path_GREP_max=$ac_count
4655 fi
4656 # 10*(2^10) chars as input seems more than enough
4657 test $ac_count -gt 10 && break
4658 done
4659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4660 esac
4661
4662 $ac_path_GREP_found && break 3
4663 done
4664 done
4665 done
4666 IFS=$as_save_IFS
4667 if test -z "$ac_cv_path_GREP"; then
4668 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4669 fi
4670 else
4671 ac_cv_path_GREP=$GREP
4672 fi
4673
4674 fi
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4676 $as_echo "$ac_cv_path_GREP" >&6; }
4677 GREP="$ac_cv_path_GREP"
4678
4679
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4681 $as_echo_n "checking for egrep... " >&6; }
4682 if ${ac_cv_path_EGREP+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4686 then ac_cv_path_EGREP="$GREP -E"
4687 else
4688 if test -z "$EGREP"; then
4689 ac_path_EGREP_found=false
4690 # Loop through the user's path and test for each of PROGNAME-LIST
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4693 do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_prog in egrep; do
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4699 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4700 # Check for GNU ac_path_EGREP and select it if it is found.
4701 # Check for GNU $ac_path_EGREP
4702 case `"$ac_path_EGREP" --version 2>&1` in
4703 *GNU*)
4704 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4705 *)
4706 ac_count=0
4707 $as_echo_n 0123456789 >"conftest.in"
4708 while :
4709 do
4710 cat "conftest.in" "conftest.in" >"conftest.tmp"
4711 mv "conftest.tmp" "conftest.in"
4712 cp "conftest.in" "conftest.nl"
4713 $as_echo 'EGREP' >> "conftest.nl"
4714 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4716 as_fn_arith $ac_count + 1 && ac_count=$as_val
4717 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4718 # Best one so far, save it but keep looking for a better one
4719 ac_cv_path_EGREP="$ac_path_EGREP"
4720 ac_path_EGREP_max=$ac_count
4721 fi
4722 # 10*(2^10) chars as input seems more than enough
4723 test $ac_count -gt 10 && break
4724 done
4725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4726 esac
4727
4728 $ac_path_EGREP_found && break 3
4729 done
4730 done
4731 done
4732 IFS=$as_save_IFS
4733 if test -z "$ac_cv_path_EGREP"; then
4734 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4735 fi
4736 else
4737 ac_cv_path_EGREP=$EGREP
4738 fi
4739
4740 fi
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4743 $as_echo "$ac_cv_path_EGREP" >&6; }
4744 EGREP="$ac_cv_path_EGREP"
4745
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4748 $as_echo_n "checking for fgrep... " >&6; }
4749 if ${ac_cv_path_FGREP+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4753 then ac_cv_path_FGREP="$GREP -F"
4754 else
4755 if test -z "$FGREP"; then
4756 ac_path_FGREP_found=false
4757 # Loop through the user's path and test for each of PROGNAME-LIST
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4760 do
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_prog in fgrep; do
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4766 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4767 # Check for GNU ac_path_FGREP and select it if it is found.
4768 # Check for GNU $ac_path_FGREP
4769 case `"$ac_path_FGREP" --version 2>&1` in
4770 *GNU*)
4771 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4772 *)
4773 ac_count=0
4774 $as_echo_n 0123456789 >"conftest.in"
4775 while :
4776 do
4777 cat "conftest.in" "conftest.in" >"conftest.tmp"
4778 mv "conftest.tmp" "conftest.in"
4779 cp "conftest.in" "conftest.nl"
4780 $as_echo 'FGREP' >> "conftest.nl"
4781 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4783 as_fn_arith $ac_count + 1 && ac_count=$as_val
4784 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4785 # Best one so far, save it but keep looking for a better one
4786 ac_cv_path_FGREP="$ac_path_FGREP"
4787 ac_path_FGREP_max=$ac_count
4788 fi
4789 # 10*(2^10) chars as input seems more than enough
4790 test $ac_count -gt 10 && break
4791 done
4792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4793 esac
4794
4795 $ac_path_FGREP_found && break 3
4796 done
4797 done
4798 done
4799 IFS=$as_save_IFS
4800 if test -z "$ac_cv_path_FGREP"; then
4801 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4802 fi
4803 else
4804 ac_cv_path_FGREP=$FGREP
4805 fi
4806
4807 fi
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4810 $as_echo "$ac_cv_path_FGREP" >&6; }
4811 FGREP="$ac_cv_path_FGREP"
4812
4813
4814 test -z "$GREP" && GREP=grep
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834 # Check whether --with-gnu-ld was given.
4835 if test "${with_gnu_ld+set}" = set; then :
4836 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4837 else
4838 with_gnu_ld=no
4839 fi
4840
4841 ac_prog=ld
4842 if test "$GCC" = yes; then
4843 # Check if gcc -print-prog-name=ld gives a path.
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4845 $as_echo_n "checking for ld used by $CC... " >&6; }
4846 case $host in
4847 *-*-mingw*)
4848 # gcc leaves a trailing carriage return which upsets mingw
4849 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4850 *)
4851 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4852 esac
4853 case $ac_prog in
4854 # Accept absolute paths.
4855 [\\/]* | ?:[\\/]*)
4856 re_direlt='/[^/][^/]*/\.\./'
4857 # Canonicalize the pathname of ld
4858 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4859 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4860 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4861 done
4862 test -z "$LD" && LD="$ac_prog"
4863 ;;
4864 "")
4865 # If it fails, then pretend we aren't using GCC.
4866 ac_prog=ld
4867 ;;
4868 *)
4869 # If it is relative, then search for the first ld in PATH.
4870 with_gnu_ld=unknown
4871 ;;
4872 esac
4873 elif test "$with_gnu_ld" = yes; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4875 $as_echo_n "checking for GNU ld... " >&6; }
4876 else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4878 $as_echo_n "checking for non-GNU ld... " >&6; }
4879 fi
4880 if ${lt_cv_path_LD+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 if test -z "$LD"; then
4884 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4885 for ac_dir in $PATH; do
4886 IFS="$lt_save_ifs"
4887 test -z "$ac_dir" && ac_dir=.
4888 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4889 lt_cv_path_LD="$ac_dir/$ac_prog"
4890 # Check to see if the program is GNU ld. I'd rather use --version,
4891 # but apparently some variants of GNU ld only accept -v.
4892 # Break only if it was the GNU/non-GNU ld that we prefer.
4893 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4894 *GNU* | *'with BFD'*)
4895 test "$with_gnu_ld" != no && break
4896 ;;
4897 *)
4898 test "$with_gnu_ld" != yes && break
4899 ;;
4900 esac
4901 fi
4902 done
4903 IFS="$lt_save_ifs"
4904 else
4905 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4906 fi
4907 fi
4908
4909 LD="$lt_cv_path_LD"
4910 if test -n "$LD"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4912 $as_echo "$LD" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4916 fi
4917 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4919 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4920 if ${lt_cv_prog_gnu_ld+:} false; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4924 case `$LD -v 2>&1 </dev/null` in
4925 *GNU* | *'with BFD'*)
4926 lt_cv_prog_gnu_ld=yes
4927 ;;
4928 *)
4929 lt_cv_prog_gnu_ld=no
4930 ;;
4931 esac
4932 fi
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4934 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4935 with_gnu_ld=$lt_cv_prog_gnu_ld
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4946 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4947 if ${lt_cv_path_NM+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 if test -n "$NM"; then
4951 # Let the user override the test.
4952 lt_cv_path_NM="$NM"
4953 else
4954 lt_nm_to_check="${ac_tool_prefix}nm"
4955 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4956 lt_nm_to_check="$lt_nm_to_check nm"
4957 fi
4958 for lt_tmp_nm in $lt_nm_to_check; do
4959 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4960 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4961 IFS="$lt_save_ifs"
4962 test -z "$ac_dir" && ac_dir=.
4963 tmp_nm="$ac_dir/$lt_tmp_nm"
4964 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4965 # Check to see if the nm accepts a BSD-compat flag.
4966 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4967 # nm: unknown option "B" ignored
4968 # Tru64's nm complains that /dev/null is an invalid object file
4969 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4970 */dev/null* | *'Invalid file or object type'*)
4971 lt_cv_path_NM="$tmp_nm -B"
4972 break
4973 ;;
4974 *)
4975 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4976 */dev/null*)
4977 lt_cv_path_NM="$tmp_nm -p"
4978 break
4979 ;;
4980 *)
4981 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4982 continue # so that we can try to find one that supports BSD flags
4983 ;;
4984 esac
4985 ;;
4986 esac
4987 fi
4988 done
4989 IFS="$lt_save_ifs"
4990 done
4991 : ${lt_cv_path_NM=no}
4992 fi
4993 fi
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4995 $as_echo "$lt_cv_path_NM" >&6; }
4996 if test "$lt_cv_path_NM" != "no"; then
4997 NM="$lt_cv_path_NM"
4998 else
4999 # Didn't find any BSD compatible name lister, look for dumpbin.
5000 if test -n "$DUMPBIN"; then :
5001 # Let the user override the test.
5002 else
5003 if test -n "$ac_tool_prefix"; then
5004 for ac_prog in dumpbin "link -dump"
5005 do
5006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_DUMPBIN+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -n "$DUMPBIN"; then
5014 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5018 do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5026 fi
5027 done
5028 done
5029 IFS=$as_save_IFS
5030
5031 fi
5032 fi
5033 DUMPBIN=$ac_cv_prog_DUMPBIN
5034 if test -n "$DUMPBIN"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5036 $as_echo "$DUMPBIN" >&6; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5040 fi
5041
5042
5043 test -n "$DUMPBIN" && break
5044 done
5045 fi
5046 if test -z "$DUMPBIN"; then
5047 ac_ct_DUMPBIN=$DUMPBIN
5048 for ac_prog in dumpbin "link -dump"
5049 do
5050 # Extract the first word of "$ac_prog", so it can be a program name with args.
5051 set dummy $ac_prog; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if test -n "$ac_ct_DUMPBIN"; then
5058 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5070 fi
5071 done
5072 done
5073 IFS=$as_save_IFS
5074
5075 fi
5076 fi
5077 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5078 if test -n "$ac_ct_DUMPBIN"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5080 $as_echo "$ac_ct_DUMPBIN" >&6; }
5081 else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5084 fi
5085
5086
5087 test -n "$ac_ct_DUMPBIN" && break
5088 done
5089
5090 if test "x$ac_ct_DUMPBIN" = x; then
5091 DUMPBIN=":"
5092 else
5093 case $cross_compiling:$ac_tool_warned in
5094 yes:)
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5097 ac_tool_warned=yes ;;
5098 esac
5099 DUMPBIN=$ac_ct_DUMPBIN
5100 fi
5101 fi
5102
5103 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5104 *COFF*)
5105 DUMPBIN="$DUMPBIN -symbols"
5106 ;;
5107 *)
5108 DUMPBIN=:
5109 ;;
5110 esac
5111 fi
5112
5113 if test "$DUMPBIN" != ":"; then
5114 NM="$DUMPBIN"
5115 fi
5116 fi
5117 test -z "$NM" && NM=nm
5118
5119
5120
5121
5122
5123
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5125 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5126 if ${lt_cv_nm_interface+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 lt_cv_nm_interface="BSD nm"
5130 echo "int some_variable = 0;" > conftest.$ac_ext
5131 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5132 (eval "$ac_compile" 2>conftest.err)
5133 cat conftest.err >&5
5134 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5135 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5136 cat conftest.err >&5
5137 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5138 cat conftest.out >&5
5139 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5140 lt_cv_nm_interface="MS dumpbin"
5141 fi
5142 rm -f conftest*
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5145 $as_echo "$lt_cv_nm_interface" >&6; }
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5148 $as_echo_n "checking whether ln -s works... " >&6; }
5149 LN_S=$as_ln_s
5150 if test "$LN_S" = "ln -s"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5152 $as_echo "yes" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5155 $as_echo "no, using $LN_S" >&6; }
5156 fi
5157
5158 # find the maximum length of command line arguments
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5160 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5161 if ${lt_cv_sys_max_cmd_len+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 i=0
5165 teststring="ABCD"
5166
5167 case $build_os in
5168 msdosdjgpp*)
5169 # On DJGPP, this test can blow up pretty badly due to problems in libc
5170 # (any single argument exceeding 2000 bytes causes a buffer overrun
5171 # during glob expansion). Even if it were fixed, the result of this
5172 # check would be larger than it should be.
5173 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5174 ;;
5175
5176 gnu*)
5177 # Under GNU Hurd, this test is not required because there is
5178 # no limit to the length of command line arguments.
5179 # Libtool will interpret -1 as no limit whatsoever
5180 lt_cv_sys_max_cmd_len=-1;
5181 ;;
5182
5183 cygwin* | mingw* | cegcc*)
5184 # On Win9x/ME, this test blows up -- it succeeds, but takes
5185 # about 5 minutes as the teststring grows exponentially.
5186 # Worse, since 9x/ME are not pre-emptively multitasking,
5187 # you end up with a "frozen" computer, even though with patience
5188 # the test eventually succeeds (with a max line length of 256k).
5189 # Instead, let's just punt: use the minimum linelength reported by
5190 # all of the supported platforms: 8192 (on NT/2K/XP).
5191 lt_cv_sys_max_cmd_len=8192;
5192 ;;
5193
5194 mint*)
5195 # On MiNT this can take a long time and run out of memory.
5196 lt_cv_sys_max_cmd_len=8192;
5197 ;;
5198
5199 amigaos*)
5200 # On AmigaOS with pdksh, this test takes hours, literally.
5201 # So we just punt and use a minimum line length of 8192.
5202 lt_cv_sys_max_cmd_len=8192;
5203 ;;
5204
5205 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5206 # This has been around since 386BSD, at least. Likely further.
5207 if test -x /sbin/sysctl; then
5208 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5209 elif test -x /usr/sbin/sysctl; then
5210 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5211 else
5212 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5213 fi
5214 # And add a safety zone
5215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5217 ;;
5218
5219 interix*)
5220 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5221 lt_cv_sys_max_cmd_len=196608
5222 ;;
5223
5224 osf*)
5225 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5226 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5227 # nice to cause kernel panics so lets avoid the loop below.
5228 # First set a reasonable default.
5229 lt_cv_sys_max_cmd_len=16384
5230 #
5231 if test -x /sbin/sysconfig; then
5232 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5233 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5234 esac
5235 fi
5236 ;;
5237 sco3.2v5*)
5238 lt_cv_sys_max_cmd_len=102400
5239 ;;
5240 sysv5* | sco5v6* | sysv4.2uw2*)
5241 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5242 if test -n "$kargmax"; then
5243 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5244 else
5245 lt_cv_sys_max_cmd_len=32768
5246 fi
5247 ;;
5248 *)
5249 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5250 if test -n "$lt_cv_sys_max_cmd_len"; then
5251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5253 else
5254 # Make teststring a little bigger before we do anything with it.
5255 # a 1K string should be a reasonable start.
5256 for i in 1 2 3 4 5 6 7 8 ; do
5257 teststring=$teststring$teststring
5258 done
5259 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5260 # If test is not a shell built-in, we'll probably end up computing a
5261 # maximum length that is only half of the actual maximum length, but
5262 # we can't tell.
5263 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5264 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5265 test $i != 17 # 1/2 MB should be enough
5266 do
5267 i=`expr $i + 1`
5268 teststring=$teststring$teststring
5269 done
5270 # Only check the string length outside the loop.
5271 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5272 teststring=
5273 # Add a significant safety factor because C++ compilers can tack on
5274 # massive amounts of additional arguments before passing them to the
5275 # linker. It appears as though 1/2 is a usable value.
5276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5277 fi
5278 ;;
5279 esac
5280
5281 fi
5282
5283 if test -n $lt_cv_sys_max_cmd_len ; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5285 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5288 $as_echo "none" >&6; }
5289 fi
5290 max_cmd_len=$lt_cv_sys_max_cmd_len
5291
5292
5293
5294
5295
5296
5297 : ${CP="cp -f"}
5298 : ${MV="mv -f"}
5299 : ${RM="rm -f"}
5300
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5302 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5303 # Try some XSI features
5304 xsi_shell=no
5305 ( _lt_dummy="a/b/c"
5306 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5307 = c,a/b,b/c, \
5308 && eval 'test $(( 1 + 1 )) -eq 2 \
5309 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5310 && xsi_shell=yes
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5312 $as_echo "$xsi_shell" >&6; }
5313
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5316 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5317 lt_shell_append=no
5318 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5319 >/dev/null 2>&1 \
5320 && lt_shell_append=yes
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5322 $as_echo "$lt_shell_append" >&6; }
5323
5324
5325 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5326 lt_unset=unset
5327 else
5328 lt_unset=false
5329 fi
5330
5331
5332
5333
5334
5335 # test EBCDIC or ASCII
5336 case `echo X|tr X '\101'` in
5337 A) # ASCII based system
5338 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5339 lt_SP2NL='tr \040 \012'
5340 lt_NL2SP='tr \015\012 \040\040'
5341 ;;
5342 *) # EBCDIC based system
5343 lt_SP2NL='tr \100 \n'
5344 lt_NL2SP='tr \r\n \100\100'
5345 ;;
5346 esac
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5357 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5358 if ${lt_cv_to_host_file_cmd+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 case $host in
5362 *-*-mingw* )
5363 case $build in
5364 *-*-mingw* ) # actually msys
5365 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5366 ;;
5367 *-*-cygwin* )
5368 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5369 ;;
5370 * ) # otherwise, assume *nix
5371 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5372 ;;
5373 esac
5374 ;;
5375 *-*-cygwin* )
5376 case $build in
5377 *-*-mingw* ) # actually msys
5378 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5379 ;;
5380 *-*-cygwin* )
5381 lt_cv_to_host_file_cmd=func_convert_file_noop
5382 ;;
5383 * ) # otherwise, assume *nix
5384 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5385 ;;
5386 esac
5387 ;;
5388 * ) # unhandled hosts (and "normal" native builds)
5389 lt_cv_to_host_file_cmd=func_convert_file_noop
5390 ;;
5391 esac
5392
5393 fi
5394
5395 to_host_file_cmd=$lt_cv_to_host_file_cmd
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5397 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5398
5399
5400
5401
5402
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5404 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5405 if ${lt_cv_to_tool_file_cmd+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 #assume ordinary cross tools, or native build.
5409 lt_cv_to_tool_file_cmd=func_convert_file_noop
5410 case $host in
5411 *-*-mingw* )
5412 case $build in
5413 *-*-mingw* ) # actually msys
5414 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5415 ;;
5416 esac
5417 ;;
5418 esac
5419
5420 fi
5421
5422 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5424 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5425
5426
5427
5428
5429
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5431 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5432 if ${lt_cv_ld_reload_flag+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 lt_cv_ld_reload_flag='-r'
5436 fi
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5438 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5439 reload_flag=$lt_cv_ld_reload_flag
5440 case $reload_flag in
5441 "" | " "*) ;;
5442 *) reload_flag=" $reload_flag" ;;
5443 esac
5444 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5445 case $host_os in
5446 cygwin* | mingw* | pw32* | cegcc*)
5447 if test "$GCC" != yes; then
5448 reload_cmds=false
5449 fi
5450 ;;
5451 darwin*)
5452 if test "$GCC" = yes; then
5453 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5454 else
5455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5456 fi
5457 ;;
5458 esac
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468 if test -n "$ac_tool_prefix"; then
5469 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5470 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_prog_OBJDUMP+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$OBJDUMP"; then
5477 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5489 fi
5490 done
5491 done
5492 IFS=$as_save_IFS
5493
5494 fi
5495 fi
5496 OBJDUMP=$ac_cv_prog_OBJDUMP
5497 if test -n "$OBJDUMP"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5499 $as_echo "$OBJDUMP" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5503 fi
5504
5505
5506 fi
5507 if test -z "$ac_cv_prog_OBJDUMP"; then
5508 ac_ct_OBJDUMP=$OBJDUMP
5509 # Extract the first word of "objdump", so it can be a program name with args.
5510 set dummy objdump; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 if test -n "$ac_ct_OBJDUMP"; then
5517 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5518 else
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5521 do
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5529 fi
5530 done
5531 done
5532 IFS=$as_save_IFS
5533
5534 fi
5535 fi
5536 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5537 if test -n "$ac_ct_OBJDUMP"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5539 $as_echo "$ac_ct_OBJDUMP" >&6; }
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5543 fi
5544
5545 if test "x$ac_ct_OBJDUMP" = x; then
5546 OBJDUMP="false"
5547 else
5548 case $cross_compiling:$ac_tool_warned in
5549 yes:)
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552 ac_tool_warned=yes ;;
5553 esac
5554 OBJDUMP=$ac_ct_OBJDUMP
5555 fi
5556 else
5557 OBJDUMP="$ac_cv_prog_OBJDUMP"
5558 fi
5559
5560 test -z "$OBJDUMP" && OBJDUMP=objdump
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5571 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5572 if ${lt_cv_deplibs_check_method+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 lt_cv_file_magic_cmd='$MAGIC_CMD'
5576 lt_cv_file_magic_test_file=
5577 lt_cv_deplibs_check_method='unknown'
5578 # Need to set the preceding variable on all platforms that support
5579 # interlibrary dependencies.
5580 # 'none' -- dependencies not supported.
5581 # `unknown' -- same as none, but documents that we really don't know.
5582 # 'pass_all' -- all dependencies passed with no checks.
5583 # 'test_compile' -- check by making test program.
5584 # 'file_magic [[regex]]' -- check by looking for files in library path
5585 # which responds to the $file_magic_cmd with a given extended regex.
5586 # If you have `file' or equivalent on your system and you're not sure
5587 # whether `pass_all' will *always* work, you probably want this one.
5588
5589 case $host_os in
5590 aix[4-9]*)
5591 lt_cv_deplibs_check_method=pass_all
5592 ;;
5593
5594 beos*)
5595 lt_cv_deplibs_check_method=pass_all
5596 ;;
5597
5598 bsdi[45]*)
5599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5600 lt_cv_file_magic_cmd='/usr/bin/file -L'
5601 lt_cv_file_magic_test_file=/shlib/libc.so
5602 ;;
5603
5604 cygwin*)
5605 # func_win32_libid is a shell function defined in ltmain.sh
5606 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5607 lt_cv_file_magic_cmd='func_win32_libid'
5608 ;;
5609
5610 mingw* | pw32*)
5611 # Base MSYS/MinGW do not provide the 'file' command needed by
5612 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5613 # unless we find 'file', for example because we are cross-compiling.
5614 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5615 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5616 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5617 lt_cv_file_magic_cmd='func_win32_libid'
5618 else
5619 # Keep this pattern in sync with the one in func_win32_libid.
5620 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5621 lt_cv_file_magic_cmd='$OBJDUMP -f'
5622 fi
5623 ;;
5624
5625 cegcc*)
5626 # use the weaker test based on 'objdump'. See mingw*.
5627 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5628 lt_cv_file_magic_cmd='$OBJDUMP -f'
5629 ;;
5630
5631 darwin* | rhapsody*)
5632 lt_cv_deplibs_check_method=pass_all
5633 ;;
5634
5635 freebsd* | dragonfly*)
5636 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5637 case $host_cpu in
5638 i*86 )
5639 # Not sure whether the presence of OpenBSD here was a mistake.
5640 # Let's accept both of them until this is cleared up.
5641 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5642 lt_cv_file_magic_cmd=/usr/bin/file
5643 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5644 ;;
5645 esac
5646 else
5647 lt_cv_deplibs_check_method=pass_all
5648 fi
5649 ;;
5650
5651 gnu*)
5652 lt_cv_deplibs_check_method=pass_all
5653 ;;
5654
5655 haiku*)
5656 lt_cv_deplibs_check_method=pass_all
5657 ;;
5658
5659 hpux10.20* | hpux11*)
5660 lt_cv_file_magic_cmd=/usr/bin/file
5661 case $host_cpu in
5662 ia64*)
5663 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5664 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5665 ;;
5666 hppa*64*)
5667 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5668 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5669 ;;
5670 *)
5671 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5672 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5673 ;;
5674 esac
5675 ;;
5676
5677 interix[3-9]*)
5678 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5680 ;;
5681
5682 irix5* | irix6* | nonstopux*)
5683 case $LD in
5684 *-32|*"-32 ") libmagic=32-bit;;
5685 *-n32|*"-n32 ") libmagic=N32;;
5686 *-64|*"-64 ") libmagic=64-bit;;
5687 *) libmagic=never-match;;
5688 esac
5689 lt_cv_deplibs_check_method=pass_all
5690 ;;
5691
5692 # This must be Linux ELF.
5693 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5694 lt_cv_deplibs_check_method=pass_all
5695 ;;
5696
5697 netbsd*)
5698 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5700 else
5701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5702 fi
5703 ;;
5704
5705 newos6*)
5706 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5707 lt_cv_file_magic_cmd=/usr/bin/file
5708 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5709 ;;
5710
5711 *nto* | *qnx*)
5712 lt_cv_deplibs_check_method=pass_all
5713 ;;
5714
5715 openbsd*)
5716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5718 else
5719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5720 fi
5721 ;;
5722
5723 osf3* | osf4* | osf5*)
5724 lt_cv_deplibs_check_method=pass_all
5725 ;;
5726
5727 rdos*)
5728 lt_cv_deplibs_check_method=pass_all
5729 ;;
5730
5731 solaris*)
5732 lt_cv_deplibs_check_method=pass_all
5733 ;;
5734
5735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5736 lt_cv_deplibs_check_method=pass_all
5737 ;;
5738
5739 sysv4 | sysv4.3*)
5740 case $host_vendor in
5741 motorola)
5742 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]'
5743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5744 ;;
5745 ncr)
5746 lt_cv_deplibs_check_method=pass_all
5747 ;;
5748 sequent)
5749 lt_cv_file_magic_cmd='/bin/file'
5750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5751 ;;
5752 sni)
5753 lt_cv_file_magic_cmd='/bin/file'
5754 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5755 lt_cv_file_magic_test_file=/lib/libc.so
5756 ;;
5757 siemens)
5758 lt_cv_deplibs_check_method=pass_all
5759 ;;
5760 pc)
5761 lt_cv_deplibs_check_method=pass_all
5762 ;;
5763 esac
5764 ;;
5765
5766 tpf*)
5767 lt_cv_deplibs_check_method=pass_all
5768 ;;
5769 esac
5770
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5773 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5774
5775 file_magic_glob=
5776 want_nocaseglob=no
5777 if test "$build" = "$host"; then
5778 case $host_os in
5779 mingw* | pw32*)
5780 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5781 want_nocaseglob=yes
5782 else
5783 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5784 fi
5785 ;;
5786 esac
5787 fi
5788
5789 file_magic_cmd=$lt_cv_file_magic_cmd
5790 deplibs_check_method=$lt_cv_deplibs_check_method
5791 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814 if test -n "$ac_tool_prefix"; then
5815 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5816 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_DLLTOOL+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if test -n "$DLLTOOL"; then
5823 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5827 do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5835 fi
5836 done
5837 done
5838 IFS=$as_save_IFS
5839
5840 fi
5841 fi
5842 DLLTOOL=$ac_cv_prog_DLLTOOL
5843 if test -n "$DLLTOOL"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5845 $as_echo "$DLLTOOL" >&6; }
5846 else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5849 fi
5850
5851
5852 fi
5853 if test -z "$ac_cv_prog_DLLTOOL"; then
5854 ac_ct_DLLTOOL=$DLLTOOL
5855 # Extract the first word of "dlltool", so it can be a program name with args.
5856 set dummy dlltool; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 if test -n "$ac_ct_DLLTOOL"; then
5863 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876 done
5877 done
5878 IFS=$as_save_IFS
5879
5880 fi
5881 fi
5882 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5883 if test -n "$ac_ct_DLLTOOL"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5885 $as_echo "$ac_ct_DLLTOOL" >&6; }
5886 else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5889 fi
5890
5891 if test "x$ac_ct_DLLTOOL" = x; then
5892 DLLTOOL="false"
5893 else
5894 case $cross_compiling:$ac_tool_warned in
5895 yes:)
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5899 esac
5900 DLLTOOL=$ac_ct_DLLTOOL
5901 fi
5902 else
5903 DLLTOOL="$ac_cv_prog_DLLTOOL"
5904 fi
5905
5906 test -z "$DLLTOOL" && DLLTOOL=dlltool
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5918 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5919 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 lt_cv_sharedlib_from_linklib_cmd='unknown'
5923
5924 case $host_os in
5925 cygwin* | mingw* | pw32* | cegcc*)
5926 # two different shell functions defined in ltmain.sh
5927 # decide which to use based on capabilities of $DLLTOOL
5928 case `$DLLTOOL --help 2>&1` in
5929 *--identify-strict*)
5930 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5931 ;;
5932 *)
5933 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5934 ;;
5935 esac
5936 ;;
5937 *)
5938 # fallback: assume linklib IS sharedlib
5939 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5940 ;;
5941 esac
5942
5943 fi
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5945 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5946 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5947 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5948
5949
5950
5951
5952
5953
5954
5955 if test -n "$ac_tool_prefix"; then
5956 for ac_prog in ar
5957 do
5958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if ${ac_cv_prog_AR+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 if test -n "$AR"; then
5966 ac_cv_prog_AR="$AR" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 AR=$ac_cv_prog_AR
5986 if test -n "$AR"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5988 $as_echo "$AR" >&6; }
5989 else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5992 fi
5993
5994
5995 test -n "$AR" && break
5996 done
5997 fi
5998 if test -z "$AR"; then
5999 ac_ct_AR=$AR
6000 for ac_prog in ar
6001 do
6002 # Extract the first word of "$ac_prog", so it can be a program name with args.
6003 set dummy $ac_prog; ac_word=$2
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005 $as_echo_n "checking for $ac_word... " >&6; }
6006 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 if test -n "$ac_ct_AR"; then
6010 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6011 else
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6014 do
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6019 ac_cv_prog_ac_ct_AR="$ac_prog"
6020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 break 2
6022 fi
6023 done
6024 done
6025 IFS=$as_save_IFS
6026
6027 fi
6028 fi
6029 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6030 if test -n "$ac_ct_AR"; then
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6032 $as_echo "$ac_ct_AR" >&6; }
6033 else
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035 $as_echo "no" >&6; }
6036 fi
6037
6038
6039 test -n "$ac_ct_AR" && break
6040 done
6041
6042 if test "x$ac_ct_AR" = x; then
6043 AR="false"
6044 else
6045 case $cross_compiling:$ac_tool_warned in
6046 yes:)
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6049 ac_tool_warned=yes ;;
6050 esac
6051 AR=$ac_ct_AR
6052 fi
6053 fi
6054
6055 : ${AR=ar}
6056 : ${AR_FLAGS=cru}
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6069 $as_echo_n "checking for archiver @FILE support... " >&6; }
6070 if ${lt_cv_ar_at_file+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 lt_cv_ar_at_file=no
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076
6077 int
6078 main ()
6079 {
6080
6081 ;
6082 return 0;
6083 }
6084 _ACEOF
6085 if ac_fn_c_try_compile "$LINENO"; then :
6086 echo conftest.$ac_objext > conftest.lst
6087 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6089 (eval $lt_ar_try) 2>&5
6090 ac_status=$?
6091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6092 test $ac_status = 0; }
6093 if test "$ac_status" -eq 0; then
6094 # Ensure the archiver fails upon bogus file names.
6095 rm -f conftest.$ac_objext libconftest.a
6096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6097 (eval $lt_ar_try) 2>&5
6098 ac_status=$?
6099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6100 test $ac_status = 0; }
6101 if test "$ac_status" -ne 0; then
6102 lt_cv_ar_at_file=@
6103 fi
6104 fi
6105 rm -f conftest.* libconftest.a
6106
6107 fi
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109
6110 fi
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6112 $as_echo "$lt_cv_ar_at_file" >&6; }
6113
6114 if test "x$lt_cv_ar_at_file" = xno; then
6115 archiver_list_spec=
6116 else
6117 archiver_list_spec=$lt_cv_ar_at_file
6118 fi
6119
6120
6121
6122
6123
6124
6125
6126 if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}strip; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if ${ac_cv_prog_STRIP+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 if test -n "$STRIP"; then
6135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 STRIP=$ac_cv_prog_STRIP
6155 if test -n "$STRIP"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6157 $as_echo "$STRIP" >&6; }
6158 else
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6161 fi
6162
6163
6164 fi
6165 if test -z "$ac_cv_prog_STRIP"; then
6166 ac_ct_STRIP=$STRIP
6167 # Extract the first word of "strip", so it can be a program name with args.
6168 set dummy strip; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 if test -n "$ac_ct_STRIP"; then
6175 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_ac_ct_STRIP="strip"
6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6187 fi
6188 done
6189 done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6195 if test -n "$ac_ct_STRIP"; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6197 $as_echo "$ac_ct_STRIP" >&6; }
6198 else
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6201 fi
6202
6203 if test "x$ac_ct_STRIP" = x; then
6204 STRIP=":"
6205 else
6206 case $cross_compiling:$ac_tool_warned in
6207 yes:)
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6211 esac
6212 STRIP=$ac_ct_STRIP
6213 fi
6214 else
6215 STRIP="$ac_cv_prog_STRIP"
6216 fi
6217
6218 test -z "$STRIP" && STRIP=:
6219
6220
6221
6222
6223
6224
6225 if test -n "$ac_tool_prefix"; then
6226 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6227 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_RANLIB+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 if test -n "$RANLIB"; then
6234 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6243 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 break 2
6246 fi
6247 done
6248 done
6249 IFS=$as_save_IFS
6250
6251 fi
6252 fi
6253 RANLIB=$ac_cv_prog_RANLIB
6254 if test -n "$RANLIB"; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6256 $as_echo "$RANLIB" >&6; }
6257 else
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6260 fi
6261
6262
6263 fi
6264 if test -z "$ac_cv_prog_RANLIB"; then
6265 ac_ct_RANLIB=$RANLIB
6266 # Extract the first word of "ranlib", so it can be a program name with args.
6267 set dummy ranlib; ac_word=$2
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269 $as_echo_n "checking for $ac_word... " >&6; }
6270 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6271 $as_echo_n "(cached) " >&6
6272 else
6273 if test -n "$ac_ct_RANLIB"; then
6274 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6275 else
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6278 do
6279 IFS=$as_save_IFS
6280 test -z "$as_dir" && as_dir=.
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6283 ac_cv_prog_ac_ct_RANLIB="ranlib"
6284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 break 2
6286 fi
6287 done
6288 done
6289 IFS=$as_save_IFS
6290
6291 fi
6292 fi
6293 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6294 if test -n "$ac_ct_RANLIB"; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6296 $as_echo "$ac_ct_RANLIB" >&6; }
6297 else
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299 $as_echo "no" >&6; }
6300 fi
6301
6302 if test "x$ac_ct_RANLIB" = x; then
6303 RANLIB=":"
6304 else
6305 case $cross_compiling:$ac_tool_warned in
6306 yes:)
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6309 ac_tool_warned=yes ;;
6310 esac
6311 RANLIB=$ac_ct_RANLIB
6312 fi
6313 else
6314 RANLIB="$ac_cv_prog_RANLIB"
6315 fi
6316
6317 test -z "$RANLIB" && RANLIB=:
6318
6319
6320
6321
6322
6323
6324 # Determine commands to create old-style static archives.
6325 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6326 old_postinstall_cmds='chmod 644 $oldlib'
6327 old_postuninstall_cmds=
6328
6329 if test -n "$RANLIB"; then
6330 case $host_os in
6331 openbsd*)
6332 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6333 ;;
6334 *)
6335 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6336 ;;
6337 esac
6338 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6339 fi
6340
6341 case $host_os in
6342 darwin*)
6343 lock_old_archive_extraction=yes ;;
6344 *)
6345 lock_old_archive_extraction=no ;;
6346 esac
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386 # If no C compiler was specified, use CC.
6387 LTCC=${LTCC-"$CC"}
6388
6389 # If no C compiler flags were specified, use CFLAGS.
6390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6391
6392 # Allow CC to be a program name with arguments.
6393 compiler=$CC
6394
6395
6396 # Check for command to grab the raw symbol name followed by C symbol from nm.
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6398 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6399 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402
6403 # These are sane defaults that work on at least a few old systems.
6404 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6405
6406 # Character class describing NM global symbol codes.
6407 symcode='[BCDEGRST]'
6408
6409 # Regexp to match symbols that can be accessed directly from C.
6410 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6411
6412 # Define system-specific variables.
6413 case $host_os in
6414 aix*)
6415 symcode='[BCDT]'
6416 ;;
6417 cygwin* | mingw* | pw32* | cegcc*)
6418 symcode='[ABCDGISTW]'
6419 ;;
6420 hpux*)
6421 if test "$host_cpu" = ia64; then
6422 symcode='[ABCDEGRST]'
6423 fi
6424 ;;
6425 irix* | nonstopux*)
6426 symcode='[BCDEGRST]'
6427 ;;
6428 osf*)
6429 symcode='[BCDEGQRST]'
6430 ;;
6431 solaris*)
6432 symcode='[BDRT]'
6433 ;;
6434 sco3.2v5*)
6435 symcode='[DT]'
6436 ;;
6437 sysv4.2uw2*)
6438 symcode='[DT]'
6439 ;;
6440 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6441 symcode='[ABDT]'
6442 ;;
6443 sysv4)
6444 symcode='[DFNSTU]'
6445 ;;
6446 esac
6447
6448 # If we're using GNU nm, then use its standard symbol codes.
6449 case `$NM -V 2>&1` in
6450 *GNU* | *'with BFD'*)
6451 symcode='[ABCDGIRSTW]' ;;
6452 esac
6453
6454 # Transform an extracted symbol line into a proper C declaration.
6455 # Some systems (esp. on ia64) link data and code symbols differently,
6456 # so use this general approach.
6457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6458
6459 # Transform an extracted symbol line into symbol name and symbol address
6460 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6461 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'"
6462
6463 # Handle CRLF in mingw tool chain
6464 opt_cr=
6465 case $build_os in
6466 mingw*)
6467 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6468 ;;
6469 esac
6470
6471 # Try without a prefix underscore, then with it.
6472 for ac_symprfx in "" "_"; do
6473
6474 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6475 symxfrm="\\1 $ac_symprfx\\2 \\2"
6476
6477 # Write the raw and C identifiers.
6478 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6479 # Fake it for dumpbin and say T for any non-static function
6480 # and D for any global variable.
6481 # Also find C++ and __fastcall symbols from MSVC++,
6482 # which start with @ or ?.
6483 lt_cv_sys_global_symbol_pipe="$AWK '"\
6484 " {last_section=section; section=\$ 3};"\
6485 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6486 " \$ 0!~/External *\|/{next};"\
6487 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6488 " {if(hide[section]) next};"\
6489 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6490 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6491 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6492 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6493 " ' prfx=^$ac_symprfx"
6494 else
6495 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6496 fi
6497 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6498
6499 # Check to see that the pipe works correctly.
6500 pipe_works=no
6501
6502 rm -f conftest*
6503 cat > conftest.$ac_ext <<_LT_EOF
6504 #ifdef __cplusplus
6505 extern "C" {
6506 #endif
6507 char nm_test_var;
6508 void nm_test_func(void);
6509 void nm_test_func(void){}
6510 #ifdef __cplusplus
6511 }
6512 #endif
6513 int main(){nm_test_var='a';nm_test_func();return(0);}
6514 _LT_EOF
6515
6516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6517 (eval $ac_compile) 2>&5
6518 ac_status=$?
6519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520 test $ac_status = 0; }; then
6521 # Now try to grab the symbols.
6522 nlist=conftest.nm
6523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6524 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6525 ac_status=$?
6526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527 test $ac_status = 0; } && test -s "$nlist"; then
6528 # Try sorting and uniquifying the output.
6529 if sort "$nlist" | uniq > "$nlist"T; then
6530 mv -f "$nlist"T "$nlist"
6531 else
6532 rm -f "$nlist"T
6533 fi
6534
6535 # Make sure that we snagged all the symbols we need.
6536 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6537 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6538 cat <<_LT_EOF > conftest.$ac_ext
6539 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6540 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6541 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6542 relocations are performed -- see ld's documentation on pseudo-relocs. */
6543 # define LT_DLSYM_CONST
6544 #elif defined(__osf__)
6545 /* This system does not cope well with relocations in const data. */
6546 # define LT_DLSYM_CONST
6547 #else
6548 # define LT_DLSYM_CONST const
6549 #endif
6550
6551 #ifdef __cplusplus
6552 extern "C" {
6553 #endif
6554
6555 _LT_EOF
6556 # Now generate the symbol file.
6557 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6558
6559 cat <<_LT_EOF >> conftest.$ac_ext
6560
6561 /* The mapping between symbol names and symbols. */
6562 LT_DLSYM_CONST struct {
6563 const char *name;
6564 void *address;
6565 }
6566 lt__PROGRAM__LTX_preloaded_symbols[] =
6567 {
6568 { "@PROGRAM@", (void *) 0 },
6569 _LT_EOF
6570 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6571 cat <<\_LT_EOF >> conftest.$ac_ext
6572 {0, (void *) 0}
6573 };
6574
6575 /* This works around a problem in FreeBSD linker */
6576 #ifdef FREEBSD_WORKAROUND
6577 static const void *lt_preloaded_setup() {
6578 return lt__PROGRAM__LTX_preloaded_symbols;
6579 }
6580 #endif
6581
6582 #ifdef __cplusplus
6583 }
6584 #endif
6585 _LT_EOF
6586 # Now try linking the two files.
6587 mv conftest.$ac_objext conftstm.$ac_objext
6588 lt_globsym_save_LIBS=$LIBS
6589 lt_globsym_save_CFLAGS=$CFLAGS
6590 LIBS="conftstm.$ac_objext"
6591 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6593 (eval $ac_link) 2>&5
6594 ac_status=$?
6595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6597 pipe_works=yes
6598 fi
6599 LIBS=$lt_globsym_save_LIBS
6600 CFLAGS=$lt_globsym_save_CFLAGS
6601 else
6602 echo "cannot find nm_test_func in $nlist" >&5
6603 fi
6604 else
6605 echo "cannot find nm_test_var in $nlist" >&5
6606 fi
6607 else
6608 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6609 fi
6610 else
6611 echo "$progname: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6613 fi
6614 rm -rf conftest* conftst*
6615
6616 # Do not use the global_symbol_pipe unless it works.
6617 if test "$pipe_works" = yes; then
6618 break
6619 else
6620 lt_cv_sys_global_symbol_pipe=
6621 fi
6622 done
6623
6624 fi
6625
6626 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6627 lt_cv_sys_global_symbol_to_cdecl=
6628 fi
6629 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6631 $as_echo "failed" >&6; }
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6634 $as_echo "ok" >&6; }
6635 fi
6636
6637 # Response file support.
6638 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6639 nm_file_list_spec='@'
6640 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6641 nm_file_list_spec='@'
6642 fi
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6671 $as_echo_n "checking for sysroot... " >&6; }
6672
6673 # Check whether --with-sysroot was given.
6674 if test "${with_sysroot+set}" = set; then :
6675 withval=$with_sysroot;
6676 else
6677 with_sysroot=no
6678 fi
6679
6680
6681 lt_sysroot=
6682 case ${with_sysroot} in #(
6683 yes)
6684 if test "$GCC" = yes; then
6685 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6686 fi
6687 ;; #(
6688 /*)
6689 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6690 ;; #(
6691 no|'')
6692 ;; #(
6693 *)
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6695 $as_echo "${with_sysroot}" >&6; }
6696 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6697 ;;
6698 esac
6699
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6701 $as_echo "${lt_sysroot:-no}" >&6; }
6702
6703
6704
6705
6706
6707 # Check whether --enable-libtool-lock was given.
6708 if test "${enable_libtool_lock+set}" = set; then :
6709 enableval=$enable_libtool_lock;
6710 fi
6711
6712 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6713
6714 # Some flags need to be propagated to the compiler or linker for good
6715 # libtool support.
6716 case $host in
6717 ia64-*-hpux*)
6718 # Find out which ABI we are using.
6719 echo 'int i;' > conftest.$ac_ext
6720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6721 (eval $ac_compile) 2>&5
6722 ac_status=$?
6723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724 test $ac_status = 0; }; then
6725 case `/usr/bin/file conftest.$ac_objext` in
6726 *ELF-32*)
6727 HPUX_IA64_MODE="32"
6728 ;;
6729 *ELF-64*)
6730 HPUX_IA64_MODE="64"
6731 ;;
6732 esac
6733 fi
6734 rm -rf conftest*
6735 ;;
6736 *-*-irix6*)
6737 # Find out which ABI we are using.
6738 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6740 (eval $ac_compile) 2>&5
6741 ac_status=$?
6742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743 test $ac_status = 0; }; then
6744 if test "$lt_cv_prog_gnu_ld" = yes; then
6745 case `/usr/bin/file conftest.$ac_objext` in
6746 *32-bit*)
6747 LD="${LD-ld} -melf32bsmip"
6748 ;;
6749 *N32*)
6750 LD="${LD-ld} -melf32bmipn32"
6751 ;;
6752 *64-bit*)
6753 LD="${LD-ld} -melf64bmip"
6754 ;;
6755 esac
6756 else
6757 case `/usr/bin/file conftest.$ac_objext` in
6758 *32-bit*)
6759 LD="${LD-ld} -32"
6760 ;;
6761 *N32*)
6762 LD="${LD-ld} -n32"
6763 ;;
6764 *64-bit*)
6765 LD="${LD-ld} -64"
6766 ;;
6767 esac
6768 fi
6769 fi
6770 rm -rf conftest*
6771 ;;
6772
6773 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6774 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6775 # Find out which ABI we are using.
6776 echo 'int i;' > conftest.$ac_ext
6777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6778 (eval $ac_compile) 2>&5
6779 ac_status=$?
6780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6781 test $ac_status = 0; }; then
6782 case `/usr/bin/file conftest.o` in
6783 *32-bit*)
6784 case $host in
6785 x86_64-*kfreebsd*-gnu)
6786 LD="${LD-ld} -m elf_i386_fbsd"
6787 ;;
6788 x86_64-*linux*)
6789 LD="${LD-ld} -m elf_i386"
6790 ;;
6791 ppc64-*linux*|powerpc64-*linux*)
6792 LD="${LD-ld} -m elf32ppclinux"
6793 ;;
6794 s390x-*linux*)
6795 LD="${LD-ld} -m elf_s390"
6796 ;;
6797 sparc64-*linux*)
6798 LD="${LD-ld} -m elf32_sparc"
6799 ;;
6800 esac
6801 ;;
6802 *64-bit*)
6803 case $host in
6804 x86_64-*kfreebsd*-gnu)
6805 LD="${LD-ld} -m elf_x86_64_fbsd"
6806 ;;
6807 x86_64-*linux*)
6808 LD="${LD-ld} -m elf_x86_64"
6809 ;;
6810 ppc*-*linux*|powerpc*-*linux*)
6811 LD="${LD-ld} -m elf64ppc"
6812 ;;
6813 s390*-*linux*|s390*-*tpf*)
6814 LD="${LD-ld} -m elf64_s390"
6815 ;;
6816 sparc*-*linux*)
6817 LD="${LD-ld} -m elf64_sparc"
6818 ;;
6819 esac
6820 ;;
6821 esac
6822 fi
6823 rm -rf conftest*
6824 ;;
6825
6826 *-*-sco3.2v5*)
6827 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6828 SAVE_CFLAGS="$CFLAGS"
6829 CFLAGS="$CFLAGS -belf"
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6831 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6832 if ${lt_cv_cc_needs_belf+:} false; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 ac_ext=c
6836 ac_cpp='$CPP $CPPFLAGS'
6837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6840
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843
6844 int
6845 main ()
6846 {
6847
6848 ;
6849 return 0;
6850 }
6851 _ACEOF
6852 if ac_fn_c_try_link "$LINENO"; then :
6853 lt_cv_cc_needs_belf=yes
6854 else
6855 lt_cv_cc_needs_belf=no
6856 fi
6857 rm -f core conftest.err conftest.$ac_objext \
6858 conftest$ac_exeext conftest.$ac_ext
6859 ac_ext=c
6860 ac_cpp='$CPP $CPPFLAGS'
6861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6864
6865 fi
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6867 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6868 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6869 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6870 CFLAGS="$SAVE_CFLAGS"
6871 fi
6872 ;;
6873 sparc*-*solaris*)
6874 # Find out which ABI we are using.
6875 echo 'int i;' > conftest.$ac_ext
6876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6877 (eval $ac_compile) 2>&5
6878 ac_status=$?
6879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6880 test $ac_status = 0; }; then
6881 case `/usr/bin/file conftest.o` in
6882 *64-bit*)
6883 case $lt_cv_prog_gnu_ld in
6884 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6885 *)
6886 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6887 LD="${LD-ld} -64"
6888 fi
6889 ;;
6890 esac
6891 ;;
6892 esac
6893 fi
6894 rm -rf conftest*
6895 ;;
6896 esac
6897
6898 need_locks="$enable_libtool_lock"
6899
6900 if test -n "$ac_tool_prefix"; then
6901 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6902 set dummy ${ac_tool_prefix}mt; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 if test -n "$MANIFEST_TOOL"; then
6909 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922 done
6923 done
6924 IFS=$as_save_IFS
6925
6926 fi
6927 fi
6928 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6929 if test -n "$MANIFEST_TOOL"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6931 $as_echo "$MANIFEST_TOOL" >&6; }
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6935 fi
6936
6937
6938 fi
6939 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6940 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6941 # Extract the first word of "mt", so it can be a program name with args.
6942 set dummy mt; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test -n "$ac_ct_MANIFEST_TOOL"; then
6949 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962 done
6963 done
6964 IFS=$as_save_IFS
6965
6966 fi
6967 fi
6968 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6969 if test -n "$ac_ct_MANIFEST_TOOL"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6971 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6975 fi
6976
6977 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6978 MANIFEST_TOOL=":"
6979 else
6980 case $cross_compiling:$ac_tool_warned in
6981 yes:)
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984 ac_tool_warned=yes ;;
6985 esac
6986 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6987 fi
6988 else
6989 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6990 fi
6991
6992 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6994 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6995 if ${lt_cv_path_mainfest_tool+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 lt_cv_path_mainfest_tool=no
6999 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7000 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7001 cat conftest.err >&5
7002 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7003 lt_cv_path_mainfest_tool=yes
7004 fi
7005 rm -f conftest*
7006 fi
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7008 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7009 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7010 MANIFEST_TOOL=:
7011 fi
7012
7013
7014
7015
7016
7017
7018 case $host_os in
7019 rhapsody* | darwin*)
7020 if test -n "$ac_tool_prefix"; then
7021 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7022 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 if test -n "$DSYMUTIL"; then
7029 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 break 2
7041 fi
7042 done
7043 done
7044 IFS=$as_save_IFS
7045
7046 fi
7047 fi
7048 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7049 if test -n "$DSYMUTIL"; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7051 $as_echo "$DSYMUTIL" >&6; }
7052 else
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7055 fi
7056
7057
7058 fi
7059 if test -z "$ac_cv_prog_DSYMUTIL"; then
7060 ac_ct_DSYMUTIL=$DSYMUTIL
7061 # Extract the first word of "dsymutil", so it can be a program name with args.
7062 set dummy dsymutil; ac_word=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7068 if test -n "$ac_ct_DSYMUTIL"; then
7069 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7081 fi
7082 done
7083 done
7084 IFS=$as_save_IFS
7085
7086 fi
7087 fi
7088 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7089 if test -n "$ac_ct_DSYMUTIL"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7091 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7092 else
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7095 fi
7096
7097 if test "x$ac_ct_DSYMUTIL" = x; then
7098 DSYMUTIL=":"
7099 else
7100 case $cross_compiling:$ac_tool_warned in
7101 yes:)
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7104 ac_tool_warned=yes ;;
7105 esac
7106 DSYMUTIL=$ac_ct_DSYMUTIL
7107 fi
7108 else
7109 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7110 fi
7111
7112 if test -n "$ac_tool_prefix"; then
7113 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7114 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116 $as_echo_n "checking for $ac_word... " >&6; }
7117 if ${ac_cv_prog_NMEDIT+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 if test -n "$NMEDIT"; then
7121 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7122 else
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7125 do
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7130 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 break 2
7133 fi
7134 done
7135 done
7136 IFS=$as_save_IFS
7137
7138 fi
7139 fi
7140 NMEDIT=$ac_cv_prog_NMEDIT
7141 if test -n "$NMEDIT"; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7143 $as_echo "$NMEDIT" >&6; }
7144 else
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7147 fi
7148
7149
7150 fi
7151 if test -z "$ac_cv_prog_NMEDIT"; then
7152 ac_ct_NMEDIT=$NMEDIT
7153 # Extract the first word of "nmedit", so it can be a program name with args.
7154 set dummy nmedit; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 if test -n "$ac_ct_NMEDIT"; then
7161 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7162 else
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7170 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 break 2
7173 fi
7174 done
7175 done
7176 IFS=$as_save_IFS
7177
7178 fi
7179 fi
7180 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7181 if test -n "$ac_ct_NMEDIT"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7183 $as_echo "$ac_ct_NMEDIT" >&6; }
7184 else
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7187 fi
7188
7189 if test "x$ac_ct_NMEDIT" = x; then
7190 NMEDIT=":"
7191 else
7192 case $cross_compiling:$ac_tool_warned in
7193 yes:)
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7196 ac_tool_warned=yes ;;
7197 esac
7198 NMEDIT=$ac_ct_NMEDIT
7199 fi
7200 else
7201 NMEDIT="$ac_cv_prog_NMEDIT"
7202 fi
7203
7204 if test -n "$ac_tool_prefix"; then
7205 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7206 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if ${ac_cv_prog_LIPO+:} false; then :
7210 $as_echo_n "(cached) " >&6
7211 else
7212 if test -n "$LIPO"; then
7213 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 break 2
7225 fi
7226 done
7227 done
7228 IFS=$as_save_IFS
7229
7230 fi
7231 fi
7232 LIPO=$ac_cv_prog_LIPO
7233 if test -n "$LIPO"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7235 $as_echo "$LIPO" >&6; }
7236 else
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7239 fi
7240
7241
7242 fi
7243 if test -z "$ac_cv_prog_LIPO"; then
7244 ac_ct_LIPO=$LIPO
7245 # Extract the first word of "lipo", so it can be a program name with args.
7246 set dummy lipo; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 if test -n "$ac_ct_LIPO"; then
7253 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_prog_ac_ct_LIPO="lipo"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266 done
7267 done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7273 if test -n "$ac_ct_LIPO"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7275 $as_echo "$ac_ct_LIPO" >&6; }
7276 else
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281 if test "x$ac_ct_LIPO" = x; then
7282 LIPO=":"
7283 else
7284 case $cross_compiling:$ac_tool_warned in
7285 yes:)
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7288 ac_tool_warned=yes ;;
7289 esac
7290 LIPO=$ac_ct_LIPO
7291 fi
7292 else
7293 LIPO="$ac_cv_prog_LIPO"
7294 fi
7295
7296 if test -n "$ac_tool_prefix"; then
7297 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7298 set dummy ${ac_tool_prefix}otool; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if ${ac_cv_prog_OTOOL+:} false; then :
7302 $as_echo_n "(cached) " >&6
7303 else
7304 if test -n "$OTOOL"; then
7305 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7306 else
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7309 do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7314 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318 done
7319 done
7320 IFS=$as_save_IFS
7321
7322 fi
7323 fi
7324 OTOOL=$ac_cv_prog_OTOOL
7325 if test -n "$OTOOL"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7327 $as_echo "$OTOOL" >&6; }
7328 else
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7331 fi
7332
7333
7334 fi
7335 if test -z "$ac_cv_prog_OTOOL"; then
7336 ac_ct_OTOOL=$OTOOL
7337 # Extract the first word of "otool", so it can be a program name with args.
7338 set dummy otool; ac_word=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 if test -n "$ac_ct_OTOOL"; then
7345 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_prog_ac_ct_OTOOL="otool"
7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7357 fi
7358 done
7359 done
7360 IFS=$as_save_IFS
7361
7362 fi
7363 fi
7364 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7365 if test -n "$ac_ct_OTOOL"; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7367 $as_echo "$ac_ct_OTOOL" >&6; }
7368 else
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7371 fi
7372
7373 if test "x$ac_ct_OTOOL" = x; then
7374 OTOOL=":"
7375 else
7376 case $cross_compiling:$ac_tool_warned in
7377 yes:)
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7380 ac_tool_warned=yes ;;
7381 esac
7382 OTOOL=$ac_ct_OTOOL
7383 fi
7384 else
7385 OTOOL="$ac_cv_prog_OTOOL"
7386 fi
7387
7388 if test -n "$ac_tool_prefix"; then
7389 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7390 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_prog_OTOOL64+:} false; then :
7394 $as_echo_n "(cached) " >&6
7395 else
7396 if test -n "$OTOOL64"; then
7397 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410 done
7411 done
7412 IFS=$as_save_IFS
7413
7414 fi
7415 fi
7416 OTOOL64=$ac_cv_prog_OTOOL64
7417 if test -n "$OTOOL64"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7419 $as_echo "$OTOOL64" >&6; }
7420 else
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7423 fi
7424
7425
7426 fi
7427 if test -z "$ac_cv_prog_OTOOL64"; then
7428 ac_ct_OTOOL64=$OTOOL64
7429 # Extract the first word of "otool64", so it can be a program name with args.
7430 set dummy otool64; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 if test -n "$ac_ct_OTOOL64"; then
7437 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442 IFS=$as_save_IFS
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446 ac_cv_prog_ac_ct_OTOOL64="otool64"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 break 2
7449 fi
7450 done
7451 done
7452 IFS=$as_save_IFS
7453
7454 fi
7455 fi
7456 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7457 if test -n "$ac_ct_OTOOL64"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7459 $as_echo "$ac_ct_OTOOL64" >&6; }
7460 else
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464
7465 if test "x$ac_ct_OTOOL64" = x; then
7466 OTOOL64=":"
7467 else
7468 case $cross_compiling:$ac_tool_warned in
7469 yes:)
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7472 ac_tool_warned=yes ;;
7473 esac
7474 OTOOL64=$ac_ct_OTOOL64
7475 fi
7476 else
7477 OTOOL64="$ac_cv_prog_OTOOL64"
7478 fi
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7507 $as_echo_n "checking for -single_module linker flag... " >&6; }
7508 if ${lt_cv_apple_cc_single_mod+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 lt_cv_apple_cc_single_mod=no
7512 if test -z "${LT_MULTI_MODULE}"; then
7513 # By default we will add the -single_module flag. You can override
7514 # by either setting the environment variable LT_MULTI_MODULE
7515 # non-empty at configure time, or by adding -multi_module to the
7516 # link flags.
7517 rm -rf libconftest.dylib*
7518 echo "int foo(void){return 1;}" > conftest.c
7519 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7520 -dynamiclib -Wl,-single_module conftest.c" >&5
7521 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7522 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7523 _lt_result=$?
7524 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7525 lt_cv_apple_cc_single_mod=yes
7526 else
7527 cat conftest.err >&5
7528 fi
7529 rm -rf libconftest.dylib*
7530 rm -f conftest.*
7531 fi
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7534 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7536 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7537 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 lt_cv_ld_exported_symbols_list=no
7541 save_LDFLAGS=$LDFLAGS
7542 echo "_main" > conftest.sym
7543 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546
7547 int
7548 main ()
7549 {
7550
7551 ;
7552 return 0;
7553 }
7554 _ACEOF
7555 if ac_fn_c_try_link "$LINENO"; then :
7556 lt_cv_ld_exported_symbols_list=yes
7557 else
7558 lt_cv_ld_exported_symbols_list=no
7559 fi
7560 rm -f core conftest.err conftest.$ac_objext \
7561 conftest$ac_exeext conftest.$ac_ext
7562 LDFLAGS="$save_LDFLAGS"
7563
7564 fi
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7566 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7568 $as_echo_n "checking for -force_load linker flag... " >&6; }
7569 if ${lt_cv_ld_force_load+:} false; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 lt_cv_ld_force_load=no
7573 cat > conftest.c << _LT_EOF
7574 int forced_loaded() { return 2;}
7575 _LT_EOF
7576 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7577 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7578 echo "$AR cru libconftest.a conftest.o" >&5
7579 $AR cru libconftest.a conftest.o 2>&5
7580 echo "$RANLIB libconftest.a" >&5
7581 $RANLIB libconftest.a 2>&5
7582 cat > conftest.c << _LT_EOF
7583 int main() { return 0;}
7584 _LT_EOF
7585 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7586 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7587 _lt_result=$?
7588 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7589 lt_cv_ld_force_load=yes
7590 else
7591 cat conftest.err >&5
7592 fi
7593 rm -f conftest.err libconftest.a conftest conftest.c
7594 rm -rf conftest.dSYM
7595
7596 fi
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7598 $as_echo "$lt_cv_ld_force_load" >&6; }
7599 case $host_os in
7600 rhapsody* | darwin1.[012])
7601 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7602 darwin1.*)
7603 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7604 darwin*) # darwin 5.x on
7605 # if running on 10.5 or later, the deployment target defaults
7606 # to the OS version, if on x86, and 10.4, the deployment
7607 # target defaults to 10.4. Don't you love it?
7608 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7609 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7610 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7611 10.[012]*)
7612 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7613 10.*)
7614 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7615 esac
7616 ;;
7617 esac
7618 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7619 _lt_dar_single_mod='$single_module'
7620 fi
7621 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7622 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7623 else
7624 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7625 fi
7626 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7627 _lt_dsymutil='~$DSYMUTIL $lib || :'
7628 else
7629 _lt_dsymutil=
7630 fi
7631 ;;
7632 esac
7633
7634 ac_ext=c
7635 ac_cpp='$CPP $CPPFLAGS'
7636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7640 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7641 # On Suns, sometimes $CPP names a directory.
7642 if test -n "$CPP" && test -d "$CPP"; then
7643 CPP=
7644 fi
7645 if test -z "$CPP"; then
7646 if ${ac_cv_prog_CPP+:} false; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 # Double quotes because CPP needs to be expanded
7650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7651 do
7652 ac_preproc_ok=false
7653 for ac_c_preproc_warn_flag in '' yes
7654 do
7655 # Use a header file that comes with gcc, so configuring glibc
7656 # with a fresh cross-compiler works.
7657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7658 # <limits.h> exists even on freestanding compilers.
7659 # On the NeXT, cc -E runs the code through the compiler's parser,
7660 # not just through cpp. "Syntax error" is here to catch this case.
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 #ifdef __STDC__
7664 # include <limits.h>
7665 #else
7666 # include <assert.h>
7667 #endif
7668 Syntax error
7669 _ACEOF
7670 if ac_fn_c_try_cpp "$LINENO"; then :
7671
7672 else
7673 # Broken: fails on valid input.
7674 continue
7675 fi
7676 rm -f conftest.err conftest.i conftest.$ac_ext
7677
7678 # OK, works on sane cases. Now check whether nonexistent headers
7679 # can be detected and how.
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 #include <ac_nonexistent.h>
7683 _ACEOF
7684 if ac_fn_c_try_cpp "$LINENO"; then :
7685 # Broken: success on invalid input.
7686 continue
7687 else
7688 # Passes both tests.
7689 ac_preproc_ok=:
7690 break
7691 fi
7692 rm -f conftest.err conftest.i conftest.$ac_ext
7693
7694 done
7695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7696 rm -f conftest.i conftest.err conftest.$ac_ext
7697 if $ac_preproc_ok; then :
7698 break
7699 fi
7700
7701 done
7702 ac_cv_prog_CPP=$CPP
7703
7704 fi
7705 CPP=$ac_cv_prog_CPP
7706 else
7707 ac_cv_prog_CPP=$CPP
7708 fi
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7710 $as_echo "$CPP" >&6; }
7711 ac_preproc_ok=false
7712 for ac_c_preproc_warn_flag in '' yes
7713 do
7714 # Use a header file that comes with gcc, so configuring glibc
7715 # with a fresh cross-compiler works.
7716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7717 # <limits.h> exists even on freestanding compilers.
7718 # On the NeXT, cc -E runs the code through the compiler's parser,
7719 # not just through cpp. "Syntax error" is here to catch this case.
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722 #ifdef __STDC__
7723 # include <limits.h>
7724 #else
7725 # include <assert.h>
7726 #endif
7727 Syntax error
7728 _ACEOF
7729 if ac_fn_c_try_cpp "$LINENO"; then :
7730
7731 else
7732 # Broken: fails on valid input.
7733 continue
7734 fi
7735 rm -f conftest.err conftest.i conftest.$ac_ext
7736
7737 # OK, works on sane cases. Now check whether nonexistent headers
7738 # can be detected and how.
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7741 #include <ac_nonexistent.h>
7742 _ACEOF
7743 if ac_fn_c_try_cpp "$LINENO"; then :
7744 # Broken: success on invalid input.
7745 continue
7746 else
7747 # Passes both tests.
7748 ac_preproc_ok=:
7749 break
7750 fi
7751 rm -f conftest.err conftest.i conftest.$ac_ext
7752
7753 done
7754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7755 rm -f conftest.i conftest.err conftest.$ac_ext
7756 if $ac_preproc_ok; then :
7757
7758 else
7759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7761 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7762 See \`config.log' for more details" "$LINENO" 5; }
7763 fi
7764
7765 ac_ext=c
7766 ac_cpp='$CPP $CPPFLAGS'
7767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7770
7771
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7773 $as_echo_n "checking for ANSI C header files... " >&6; }
7774 if ${ac_cv_header_stdc+:} false; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779 #include <stdlib.h>
7780 #include <stdarg.h>
7781 #include <string.h>
7782 #include <float.h>
7783
7784 int
7785 main ()
7786 {
7787
7788 ;
7789 return 0;
7790 }
7791 _ACEOF
7792 if ac_fn_c_try_compile "$LINENO"; then :
7793 ac_cv_header_stdc=yes
7794 else
7795 ac_cv_header_stdc=no
7796 fi
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798
7799 if test $ac_cv_header_stdc = yes; then
7800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7803 #include <string.h>
7804
7805 _ACEOF
7806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7807 $EGREP "memchr" >/dev/null 2>&1; then :
7808
7809 else
7810 ac_cv_header_stdc=no
7811 fi
7812 rm -f conftest*
7813
7814 fi
7815
7816 if test $ac_cv_header_stdc = yes; then
7817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7820 #include <stdlib.h>
7821
7822 _ACEOF
7823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7824 $EGREP "free" >/dev/null 2>&1; then :
7825
7826 else
7827 ac_cv_header_stdc=no
7828 fi
7829 rm -f conftest*
7830
7831 fi
7832
7833 if test $ac_cv_header_stdc = yes; then
7834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7835 if test "$cross_compiling" = yes; then :
7836 :
7837 else
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7840 #include <ctype.h>
7841 #include <stdlib.h>
7842 #if ((' ' & 0x0FF) == 0x020)
7843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7845 #else
7846 # define ISLOWER(c) \
7847 (('a' <= (c) && (c) <= 'i') \
7848 || ('j' <= (c) && (c) <= 'r') \
7849 || ('s' <= (c) && (c) <= 'z'))
7850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7851 #endif
7852
7853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7854 int
7855 main ()
7856 {
7857 int i;
7858 for (i = 0; i < 256; i++)
7859 if (XOR (islower (i), ISLOWER (i))
7860 || toupper (i) != TOUPPER (i))
7861 return 2;
7862 return 0;
7863 }
7864 _ACEOF
7865 if ac_fn_c_try_run "$LINENO"; then :
7866
7867 else
7868 ac_cv_header_stdc=no
7869 fi
7870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7871 conftest.$ac_objext conftest.beam conftest.$ac_ext
7872 fi
7873
7874 fi
7875 fi
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7877 $as_echo "$ac_cv_header_stdc" >&6; }
7878 if test $ac_cv_header_stdc = yes; then
7879
7880 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7881
7882 fi
7883
7884 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7885 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7886 inttypes.h stdint.h unistd.h
7887 do :
7888 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7889 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7890 "
7891 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7892 cat >>confdefs.h <<_ACEOF
7893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7894 _ACEOF
7895
7896 fi
7897
7898 done
7899
7900
7901 for ac_header in dlfcn.h
7902 do :
7903 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7904 "
7905 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7906 cat >>confdefs.h <<_ACEOF
7907 #define HAVE_DLFCN_H 1
7908 _ACEOF
7909
7910 fi
7911
7912 done
7913
7914
7915
7916
7917
7918 # Set options
7919 enable_dlopen=yes
7920 # Check whether --enable-static was given.
7921 if test "${enable_static+set}" = set; then :
7922 enableval=$enable_static; p=${PACKAGE-default}
7923 case $enableval in
7924 yes) enable_static=yes ;;
7925 no) enable_static=no ;;
7926 *)
7927 enable_static=no
7928 # Look at the argument we got. We use all the common list separators.
7929 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7930 for pkg in $enableval; do
7931 IFS="$lt_save_ifs"
7932 if test "X$pkg" = "X$p"; then
7933 enable_static=yes
7934 fi
7935 done
7936 IFS="$lt_save_ifs"
7937 ;;
7938 esac
7939 else
7940 enable_static=no
7941 fi
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953 enable_win32_dll=no
7954
7955
7956 # Check whether --enable-shared was given.
7957 if test "${enable_shared+set}" = set; then :
7958 enableval=$enable_shared; p=${PACKAGE-default}
7959 case $enableval in
7960 yes) enable_shared=yes ;;
7961 no) enable_shared=no ;;
7962 *)
7963 enable_shared=no
7964 # Look at the argument we got. We use all the common list separators.
7965 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7966 for pkg in $enableval; do
7967 IFS="$lt_save_ifs"
7968 if test "X$pkg" = "X$p"; then
7969 enable_shared=yes
7970 fi
7971 done
7972 IFS="$lt_save_ifs"
7973 ;;
7974 esac
7975 else
7976 enable_shared=yes
7977 fi
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989 # Check whether --with-pic was given.
7990 if test "${with_pic+set}" = set; then :
7991 withval=$with_pic; pic_mode="$withval"
7992 else
7993 pic_mode=default
7994 fi
7995
7996
7997 test -z "$pic_mode" && pic_mode=default
7998
7999
8000
8001
8002
8003
8004
8005 # Check whether --enable-fast-install was given.
8006 if test "${enable_fast_install+set}" = set; then :
8007 enableval=$enable_fast_install; p=${PACKAGE-default}
8008 case $enableval in
8009 yes) enable_fast_install=yes ;;
8010 no) enable_fast_install=no ;;
8011 *)
8012 enable_fast_install=no
8013 # Look at the argument we got. We use all the common list separators.
8014 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8015 for pkg in $enableval; do
8016 IFS="$lt_save_ifs"
8017 if test "X$pkg" = "X$p"; then
8018 enable_fast_install=yes
8019 fi
8020 done
8021 IFS="$lt_save_ifs"
8022 ;;
8023 esac
8024 else
8025 enable_fast_install=yes
8026 fi
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 # This can be used to rebuild libtool when needed
8039 LIBTOOL_DEPS="$ltmain"
8040
8041 # Always use our own libtool.
8042 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069 test -z "$LN_S" && LN_S="ln -s"
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084 if test -n "${ZSH_VERSION+set}" ; then
8085 setopt NO_GLOB_SUBST
8086 fi
8087
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8089 $as_echo_n "checking for objdir... " >&6; }
8090 if ${lt_cv_objdir+:} false; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 rm -f .libs 2>/dev/null
8094 mkdir .libs 2>/dev/null
8095 if test -d .libs; then
8096 lt_cv_objdir=.libs
8097 else
8098 # MS-DOS does not allow filenames that begin with a dot.
8099 lt_cv_objdir=_libs
8100 fi
8101 rmdir .libs 2>/dev/null
8102 fi
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8104 $as_echo "$lt_cv_objdir" >&6; }
8105 objdir=$lt_cv_objdir
8106
8107
8108
8109
8110
8111 cat >>confdefs.h <<_ACEOF
8112 #define LT_OBJDIR "$lt_cv_objdir/"
8113 _ACEOF
8114
8115
8116
8117
8118 case $host_os in
8119 aix3*)
8120 # AIX sometimes has problems with the GCC collect2 program. For some
8121 # reason, if we set the COLLECT_NAMES environment variable, the problems
8122 # vanish in a puff of smoke.
8123 if test "X${COLLECT_NAMES+set}" != Xset; then
8124 COLLECT_NAMES=
8125 export COLLECT_NAMES
8126 fi
8127 ;;
8128 esac
8129
8130 # Global variables:
8131 ofile=libtool
8132 can_build_shared=yes
8133
8134 # All known linkers require a `.a' archive for static linking (except MSVC,
8135 # which needs '.lib').
8136 libext=a
8137
8138 with_gnu_ld="$lt_cv_prog_gnu_ld"
8139
8140 old_CC="$CC"
8141 old_CFLAGS="$CFLAGS"
8142
8143 # Set sane defaults for various variables
8144 test -z "$CC" && CC=cc
8145 test -z "$LTCC" && LTCC=$CC
8146 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8147 test -z "$LD" && LD=ld
8148 test -z "$ac_objext" && ac_objext=o
8149
8150 for cc_temp in $compiler""; do
8151 case $cc_temp in
8152 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8153 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8154 \-*) ;;
8155 *) break;;
8156 esac
8157 done
8158 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8159
8160
8161 # Only perform the check for file, if the check method requires it
8162 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8163 case $deplibs_check_method in
8164 file_magic*)
8165 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8167 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8168 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 case $MAGIC_CMD in
8172 [\\/*] | ?:[\\/]*)
8173 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8174 ;;
8175 *)
8176 lt_save_MAGIC_CMD="$MAGIC_CMD"
8177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8178 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8179 for ac_dir in $ac_dummy; do
8180 IFS="$lt_save_ifs"
8181 test -z "$ac_dir" && ac_dir=.
8182 if test -f $ac_dir/${ac_tool_prefix}file; then
8183 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8184 if test -n "$file_magic_test_file"; then
8185 case $deplibs_check_method in
8186 "file_magic "*)
8187 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8189 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8190 $EGREP "$file_magic_regex" > /dev/null; then
8191 :
8192 else
8193 cat <<_LT_EOF 1>&2
8194
8195 *** Warning: the command libtool uses to detect shared libraries,
8196 *** $file_magic_cmd, produces output that libtool cannot recognize.
8197 *** The result is that libtool may fail to recognize shared libraries
8198 *** as such. This will affect the creation of libtool libraries that
8199 *** depend on shared libraries, but programs linked with such libtool
8200 *** libraries will work regardless of this problem. Nevertheless, you
8201 *** may want to report the problem to your system manager and/or to
8202 *** bug-libtool@gnu.org
8203
8204 _LT_EOF
8205 fi ;;
8206 esac
8207 fi
8208 break
8209 fi
8210 done
8211 IFS="$lt_save_ifs"
8212 MAGIC_CMD="$lt_save_MAGIC_CMD"
8213 ;;
8214 esac
8215 fi
8216
8217 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8218 if test -n "$MAGIC_CMD"; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8220 $as_echo "$MAGIC_CMD" >&6; }
8221 else
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 $as_echo "no" >&6; }
8224 fi
8225
8226
8227
8228
8229
8230 if test -z "$lt_cv_path_MAGIC_CMD"; then
8231 if test -n "$ac_tool_prefix"; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8233 $as_echo_n "checking for file... " >&6; }
8234 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 case $MAGIC_CMD in
8238 [\\/*] | ?:[\\/]*)
8239 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8240 ;;
8241 *)
8242 lt_save_MAGIC_CMD="$MAGIC_CMD"
8243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8244 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8245 for ac_dir in $ac_dummy; do
8246 IFS="$lt_save_ifs"
8247 test -z "$ac_dir" && ac_dir=.
8248 if test -f $ac_dir/file; then
8249 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8250 if test -n "$file_magic_test_file"; then
8251 case $deplibs_check_method in
8252 "file_magic "*)
8253 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8255 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8256 $EGREP "$file_magic_regex" > /dev/null; then
8257 :
8258 else
8259 cat <<_LT_EOF 1>&2
8260
8261 *** Warning: the command libtool uses to detect shared libraries,
8262 *** $file_magic_cmd, produces output that libtool cannot recognize.
8263 *** The result is that libtool may fail to recognize shared libraries
8264 *** as such. This will affect the creation of libtool libraries that
8265 *** depend on shared libraries, but programs linked with such libtool
8266 *** libraries will work regardless of this problem. Nevertheless, you
8267 *** may want to report the problem to your system manager and/or to
8268 *** bug-libtool@gnu.org
8269
8270 _LT_EOF
8271 fi ;;
8272 esac
8273 fi
8274 break
8275 fi
8276 done
8277 IFS="$lt_save_ifs"
8278 MAGIC_CMD="$lt_save_MAGIC_CMD"
8279 ;;
8280 esac
8281 fi
8282
8283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8284 if test -n "$MAGIC_CMD"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8286 $as_echo "$MAGIC_CMD" >&6; }
8287 else
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8290 fi
8291
8292
8293 else
8294 MAGIC_CMD=:
8295 fi
8296 fi
8297
8298 fi
8299 ;;
8300 esac
8301
8302 # Use C for the default configuration in the libtool script
8303
8304 lt_save_CC="$CC"
8305 ac_ext=c
8306 ac_cpp='$CPP $CPPFLAGS'
8307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8310
8311
8312 # Source file extension for C test sources.
8313 ac_ext=c
8314
8315 # Object file extension for compiled C test sources.
8316 objext=o
8317 objext=$objext
8318
8319 # Code to be used in simple compile tests
8320 lt_simple_compile_test_code="int some_variable = 0;"
8321
8322 # Code to be used in simple link tests
8323 lt_simple_link_test_code='int main(){return(0);}'
8324
8325
8326
8327
8328
8329
8330
8331 # If no C compiler was specified, use CC.
8332 LTCC=${LTCC-"$CC"}
8333
8334 # If no C compiler flags were specified, use CFLAGS.
8335 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8336
8337 # Allow CC to be a program name with arguments.
8338 compiler=$CC
8339
8340 # Save the default compiler, since it gets overwritten when the other
8341 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8342 compiler_DEFAULT=$CC
8343
8344 # save warnings/boilerplate of simple test code
8345 ac_outfile=conftest.$ac_objext
8346 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8347 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8348 _lt_compiler_boilerplate=`cat conftest.err`
8349 $RM conftest*
8350
8351 ac_outfile=conftest.$ac_objext
8352 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8353 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8354 _lt_linker_boilerplate=`cat conftest.err`
8355 $RM -r conftest*
8356
8357
8358 if test -n "$compiler"; then
8359
8360 lt_prog_compiler_no_builtin_flag=
8361
8362 if test "$GCC" = yes; then
8363 case $cc_basename in
8364 nvcc*)
8365 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8366 *)
8367 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8368 esac
8369
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8371 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8372 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 lt_cv_prog_compiler_rtti_exceptions=no
8376 ac_outfile=conftest.$ac_objext
8377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8378 lt_compiler_flag="-fno-rtti -fno-exceptions"
8379 # Insert the option either (1) after the last *FLAGS variable, or
8380 # (2) before a word containing "conftest.", or (3) at the end.
8381 # Note that $ac_compile itself does not contain backslashes and begins
8382 # with a dollar sign (not a hyphen), so the echo should work correctly.
8383 # The option is referenced via a variable to avoid confusing sed.
8384 lt_compile=`echo "$ac_compile" | $SED \
8385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8387 -e 's:$: $lt_compiler_flag:'`
8388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8389 (eval "$lt_compile" 2>conftest.err)
8390 ac_status=$?
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 if (exit $ac_status) && test -s "$ac_outfile"; then
8394 # The compiler can only warn and ignore the option if not recognized
8395 # So say no if there are warnings other than the usual output.
8396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8399 lt_cv_prog_compiler_rtti_exceptions=yes
8400 fi
8401 fi
8402 $RM conftest*
8403
8404 fi
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8406 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8407
8408 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8409 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8410 else
8411 :
8412 fi
8413
8414 fi
8415
8416
8417
8418
8419
8420
8421 lt_prog_compiler_wl=
8422 lt_prog_compiler_pic=
8423 lt_prog_compiler_static=
8424
8425
8426 if test "$GCC" = yes; then
8427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_static='-static'
8429
8430 case $host_os in
8431 aix*)
8432 # All AIX code is PIC.
8433 if test "$host_cpu" = ia64; then
8434 # AIX 5 now supports IA64 processor
8435 lt_prog_compiler_static='-Bstatic'
8436 fi
8437 ;;
8438
8439 amigaos*)
8440 case $host_cpu in
8441 powerpc)
8442 # see comment about AmigaOS4 .so support
8443 lt_prog_compiler_pic='-fPIC'
8444 ;;
8445 m68k)
8446 # FIXME: we need at least 68020 code to build shared libraries, but
8447 # adding the `-m68020' flag to GCC prevents building anything better,
8448 # like `-m68040'.
8449 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8450 ;;
8451 esac
8452 ;;
8453
8454 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8455 # PIC is the default for these OSes.
8456 ;;
8457
8458 mingw* | cygwin* | pw32* | os2* | cegcc*)
8459 # This hack is so that the source file can tell whether it is being
8460 # built for inclusion in a dll (and should export symbols for example).
8461 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8462 # (--disable-auto-import) libraries
8463 lt_prog_compiler_pic='-DDLL_EXPORT'
8464 ;;
8465
8466 darwin* | rhapsody*)
8467 # PIC is the default on this platform
8468 # Common symbols not allowed in MH_DYLIB files
8469 lt_prog_compiler_pic='-fno-common'
8470 ;;
8471
8472 haiku*)
8473 # PIC is the default for Haiku.
8474 # The "-static" flag exists, but is broken.
8475 lt_prog_compiler_static=
8476 ;;
8477
8478 hpux*)
8479 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8480 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8481 # sets the default TLS model and affects inlining.
8482 case $host_cpu in
8483 hppa*64*)
8484 # +Z the default
8485 ;;
8486 *)
8487 lt_prog_compiler_pic='-fPIC'
8488 ;;
8489 esac
8490 ;;
8491
8492 interix[3-9]*)
8493 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8494 # Instead, we relocate shared libraries at runtime.
8495 ;;
8496
8497 msdosdjgpp*)
8498 # Just because we use GCC doesn't mean we suddenly get shared libraries
8499 # on systems that don't support them.
8500 lt_prog_compiler_can_build_shared=no
8501 enable_shared=no
8502 ;;
8503
8504 *nto* | *qnx*)
8505 # QNX uses GNU C++, but need to define -shared option too, otherwise
8506 # it will coredump.
8507 lt_prog_compiler_pic='-fPIC -shared'
8508 ;;
8509
8510 sysv4*MP*)
8511 if test -d /usr/nec; then
8512 lt_prog_compiler_pic=-Kconform_pic
8513 fi
8514 ;;
8515
8516 *)
8517 lt_prog_compiler_pic='-fPIC'
8518 ;;
8519 esac
8520
8521 case $cc_basename in
8522 nvcc*) # Cuda Compiler Driver 2.2
8523 lt_prog_compiler_wl='-Xlinker '
8524 lt_prog_compiler_pic='-Xcompiler -fPIC'
8525 ;;
8526 esac
8527 else
8528 # PORTME Check for flag to pass linker flags through the system compiler.
8529 case $host_os in
8530 aix*)
8531 lt_prog_compiler_wl='-Wl,'
8532 if test "$host_cpu" = ia64; then
8533 # AIX 5 now supports IA64 processor
8534 lt_prog_compiler_static='-Bstatic'
8535 else
8536 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8537 fi
8538 ;;
8539
8540 mingw* | cygwin* | pw32* | os2* | cegcc*)
8541 # This hack is so that the source file can tell whether it is being
8542 # built for inclusion in a dll (and should export symbols for example).
8543 lt_prog_compiler_pic='-DDLL_EXPORT'
8544 ;;
8545
8546 hpux9* | hpux10* | hpux11*)
8547 lt_prog_compiler_wl='-Wl,'
8548 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8549 # not for PA HP-UX.
8550 case $host_cpu in
8551 hppa*64*|ia64*)
8552 # +Z the default
8553 ;;
8554 *)
8555 lt_prog_compiler_pic='+Z'
8556 ;;
8557 esac
8558 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8559 lt_prog_compiler_static='${wl}-a ${wl}archive'
8560 ;;
8561
8562 irix5* | irix6* | nonstopux*)
8563 lt_prog_compiler_wl='-Wl,'
8564 # PIC (with -KPIC) is the default.
8565 lt_prog_compiler_static='-non_shared'
8566 ;;
8567
8568 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8569 case $cc_basename in
8570 # old Intel for x86_64 which still supported -KPIC.
8571 ecc*)
8572 lt_prog_compiler_wl='-Wl,'
8573 lt_prog_compiler_pic='-KPIC'
8574 lt_prog_compiler_static='-static'
8575 ;;
8576 # icc used to be incompatible with GCC.
8577 # ICC 10 doesn't accept -KPIC any more.
8578 icc* | ifort*)
8579 lt_prog_compiler_wl='-Wl,'
8580 lt_prog_compiler_pic='-fPIC'
8581 lt_prog_compiler_static='-static'
8582 ;;
8583 # Lahey Fortran 8.1.
8584 lf95*)
8585 lt_prog_compiler_wl='-Wl,'
8586 lt_prog_compiler_pic='--shared'
8587 lt_prog_compiler_static='--static'
8588 ;;
8589 nagfor*)
8590 # NAG Fortran compiler
8591 lt_prog_compiler_wl='-Wl,-Wl,,'
8592 lt_prog_compiler_pic='-PIC'
8593 lt_prog_compiler_static='-Bstatic'
8594 ;;
8595 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8596 # Portland Group compilers (*not* the Pentium gcc compiler,
8597 # which looks to be a dead project)
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_pic='-fpic'
8600 lt_prog_compiler_static='-Bstatic'
8601 ;;
8602 ccc*)
8603 lt_prog_compiler_wl='-Wl,'
8604 # All Alpha code is PIC.
8605 lt_prog_compiler_static='-non_shared'
8606 ;;
8607 xl* | bgxl* | bgf* | mpixl*)
8608 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8609 lt_prog_compiler_wl='-Wl,'
8610 lt_prog_compiler_pic='-qpic'
8611 lt_prog_compiler_static='-qstaticlink'
8612 ;;
8613 *)
8614 case `$CC -V 2>&1 | sed 5q` in
8615 *Sun\ F* | *Sun*Fortran*)
8616 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8617 lt_prog_compiler_pic='-KPIC'
8618 lt_prog_compiler_static='-Bstatic'
8619 lt_prog_compiler_wl=''
8620 ;;
8621 *Sun\ C*)
8622 # Sun C 5.9
8623 lt_prog_compiler_pic='-KPIC'
8624 lt_prog_compiler_static='-Bstatic'
8625 lt_prog_compiler_wl='-Wl,'
8626 ;;
8627 esac
8628 ;;
8629 esac
8630 ;;
8631
8632 newsos6)
8633 lt_prog_compiler_pic='-KPIC'
8634 lt_prog_compiler_static='-Bstatic'
8635 ;;
8636
8637 *nto* | *qnx*)
8638 # QNX uses GNU C++, but need to define -shared option too, otherwise
8639 # it will coredump.
8640 lt_prog_compiler_pic='-fPIC -shared'
8641 ;;
8642
8643 osf3* | osf4* | osf5*)
8644 lt_prog_compiler_wl='-Wl,'
8645 # All OSF/1 code is PIC.
8646 lt_prog_compiler_static='-non_shared'
8647 ;;
8648
8649 rdos*)
8650 lt_prog_compiler_static='-non_shared'
8651 ;;
8652
8653 solaris*)
8654 lt_prog_compiler_pic='-KPIC'
8655 lt_prog_compiler_static='-Bstatic'
8656 case $cc_basename in
8657 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8658 lt_prog_compiler_wl='-Qoption ld ';;
8659 *)
8660 lt_prog_compiler_wl='-Wl,';;
8661 esac
8662 ;;
8663
8664 sunos4*)
8665 lt_prog_compiler_wl='-Qoption ld '
8666 lt_prog_compiler_pic='-PIC'
8667 lt_prog_compiler_static='-Bstatic'
8668 ;;
8669
8670 sysv4 | sysv4.2uw2* | sysv4.3*)
8671 lt_prog_compiler_wl='-Wl,'
8672 lt_prog_compiler_pic='-KPIC'
8673 lt_prog_compiler_static='-Bstatic'
8674 ;;
8675
8676 sysv4*MP*)
8677 if test -d /usr/nec ;then
8678 lt_prog_compiler_pic='-Kconform_pic'
8679 lt_prog_compiler_static='-Bstatic'
8680 fi
8681 ;;
8682
8683 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='-KPIC'
8686 lt_prog_compiler_static='-Bstatic'
8687 ;;
8688
8689 unicos*)
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_can_build_shared=no
8692 ;;
8693
8694 uts4*)
8695 lt_prog_compiler_pic='-pic'
8696 lt_prog_compiler_static='-Bstatic'
8697 ;;
8698
8699 *)
8700 lt_prog_compiler_can_build_shared=no
8701 ;;
8702 esac
8703 fi
8704
8705 case $host_os in
8706 # For platforms which do not support PIC, -DPIC is meaningless:
8707 *djgpp*)
8708 lt_prog_compiler_pic=
8709 ;;
8710 *)
8711 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8712 ;;
8713 esac
8714
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8716 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8717 if ${lt_cv_prog_compiler_pic+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8721 fi
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8723 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8724 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8725
8726 #
8727 # Check to make sure the PIC flag actually works.
8728 #
8729 if test -n "$lt_prog_compiler_pic"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8731 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8732 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8733 $as_echo_n "(cached) " >&6
8734 else
8735 lt_cv_prog_compiler_pic_works=no
8736 ac_outfile=conftest.$ac_objext
8737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8738 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8739 # Insert the option either (1) after the last *FLAGS variable, or
8740 # (2) before a word containing "conftest.", or (3) at the end.
8741 # Note that $ac_compile itself does not contain backslashes and begins
8742 # with a dollar sign (not a hyphen), so the echo should work correctly.
8743 # The option is referenced via a variable to avoid confusing sed.
8744 lt_compile=`echo "$ac_compile" | $SED \
8745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8747 -e 's:$: $lt_compiler_flag:'`
8748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8749 (eval "$lt_compile" 2>conftest.err)
8750 ac_status=$?
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 if (exit $ac_status) && test -s "$ac_outfile"; then
8754 # The compiler can only warn and ignore the option if not recognized
8755 # So say no if there are warnings other than the usual output.
8756 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8758 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8759 lt_cv_prog_compiler_pic_works=yes
8760 fi
8761 fi
8762 $RM conftest*
8763
8764 fi
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8766 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8767
8768 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8769 case $lt_prog_compiler_pic in
8770 "" | " "*) ;;
8771 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8772 esac
8773 else
8774 lt_prog_compiler_pic=
8775 lt_prog_compiler_can_build_shared=no
8776 fi
8777
8778 fi
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790 #
8791 # Check to make sure the static flag actually works.
8792 #
8793 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8795 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8796 if ${lt_cv_prog_compiler_static_works+:} false; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 lt_cv_prog_compiler_static_works=no
8800 save_LDFLAGS="$LDFLAGS"
8801 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8802 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8803 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8804 # The linker can only warn and ignore the option if not recognized
8805 # So say no if there are warnings
8806 if test -s conftest.err; then
8807 # Append any errors to the config.log.
8808 cat conftest.err 1>&5
8809 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8811 if diff conftest.exp conftest.er2 >/dev/null; then
8812 lt_cv_prog_compiler_static_works=yes
8813 fi
8814 else
8815 lt_cv_prog_compiler_static_works=yes
8816 fi
8817 fi
8818 $RM -r conftest*
8819 LDFLAGS="$save_LDFLAGS"
8820
8821 fi
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8823 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8824
8825 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8826 :
8827 else
8828 lt_prog_compiler_static=
8829 fi
8830
8831
8832
8833
8834
8835
8836
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8838 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8839 if ${lt_cv_prog_compiler_c_o+:} false; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 lt_cv_prog_compiler_c_o=no
8843 $RM -r conftest 2>/dev/null
8844 mkdir conftest
8845 cd conftest
8846 mkdir out
8847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8848
8849 lt_compiler_flag="-o out/conftest2.$ac_objext"
8850 # Insert the option either (1) after the last *FLAGS variable, or
8851 # (2) before a word containing "conftest.", or (3) at the end.
8852 # Note that $ac_compile itself does not contain backslashes and begins
8853 # with a dollar sign (not a hyphen), so the echo should work correctly.
8854 lt_compile=`echo "$ac_compile" | $SED \
8855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857 -e 's:$: $lt_compiler_flag:'`
8858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8859 (eval "$lt_compile" 2>out/conftest.err)
8860 ac_status=$?
8861 cat out/conftest.err >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8864 then
8865 # The compiler can only warn and ignore the option if not recognized
8866 # So say no if there are warnings
8867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8870 lt_cv_prog_compiler_c_o=yes
8871 fi
8872 fi
8873 chmod u+w . 2>&5
8874 $RM conftest*
8875 # SGI C++ compiler will create directory out/ii_files/ for
8876 # template instantiation
8877 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8878 $RM out/* && rmdir out
8879 cd ..
8880 $RM -r conftest
8881 $RM conftest*
8882
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8885 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8886
8887
8888
8889
8890
8891
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8893 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8894 if ${lt_cv_prog_compiler_c_o+:} false; then :
8895 $as_echo_n "(cached) " >&6
8896 else
8897 lt_cv_prog_compiler_c_o=no
8898 $RM -r conftest 2>/dev/null
8899 mkdir conftest
8900 cd conftest
8901 mkdir out
8902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8903
8904 lt_compiler_flag="-o out/conftest2.$ac_objext"
8905 # Insert the option either (1) after the last *FLAGS variable, or
8906 # (2) before a word containing "conftest.", or (3) at the end.
8907 # Note that $ac_compile itself does not contain backslashes and begins
8908 # with a dollar sign (not a hyphen), so the echo should work correctly.
8909 lt_compile=`echo "$ac_compile" | $SED \
8910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8912 -e 's:$: $lt_compiler_flag:'`
8913 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8914 (eval "$lt_compile" 2>out/conftest.err)
8915 ac_status=$?
8916 cat out/conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8919 then
8920 # The compiler can only warn and ignore the option if not recognized
8921 # So say no if there are warnings
8922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8923 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8924 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8925 lt_cv_prog_compiler_c_o=yes
8926 fi
8927 fi
8928 chmod u+w . 2>&5
8929 $RM conftest*
8930 # SGI C++ compiler will create directory out/ii_files/ for
8931 # template instantiation
8932 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8933 $RM out/* && rmdir out
8934 cd ..
8935 $RM -r conftest
8936 $RM conftest*
8937
8938 fi
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8940 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8941
8942
8943
8944
8945 hard_links="nottested"
8946 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8947 # do not overwrite the value of need_locks provided by the user
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8949 $as_echo_n "checking if we can lock with hard links... " >&6; }
8950 hard_links=yes
8951 $RM conftest*
8952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8953 touch conftest.a
8954 ln conftest.a conftest.b 2>&5 || hard_links=no
8955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8957 $as_echo "$hard_links" >&6; }
8958 if test "$hard_links" = no; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8960 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8961 need_locks=warn
8962 fi
8963 else
8964 need_locks=no
8965 fi
8966
8967
8968
8969
8970
8971
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8973 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8974
8975 runpath_var=
8976 allow_undefined_flag=
8977 always_export_symbols=no
8978 archive_cmds=
8979 archive_expsym_cmds=
8980 compiler_needs_object=no
8981 enable_shared_with_static_runtimes=no
8982 export_dynamic_flag_spec=
8983 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8984 hardcode_automatic=no
8985 hardcode_direct=no
8986 hardcode_direct_absolute=no
8987 hardcode_libdir_flag_spec=
8988 hardcode_libdir_flag_spec_ld=
8989 hardcode_libdir_separator=
8990 hardcode_minus_L=no
8991 hardcode_shlibpath_var=unsupported
8992 inherit_rpath=no
8993 link_all_deplibs=unknown
8994 module_cmds=
8995 module_expsym_cmds=
8996 old_archive_from_new_cmds=
8997 old_archive_from_expsyms_cmds=
8998 thread_safe_flag_spec=
8999 whole_archive_flag_spec=
9000 # include_expsyms should be a list of space-separated symbols to be *always*
9001 # included in the symbol list
9002 include_expsyms=
9003 # exclude_expsyms can be an extended regexp of symbols to exclude
9004 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9005 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9006 # as well as any symbol that contains `d'.
9007 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9008 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9009 # platforms (ab)use it in PIC code, but their linkers get confused if
9010 # the symbol is explicitly referenced. Since portable code cannot
9011 # rely on this symbol name, it's probably fine to never include it in
9012 # preloaded symbol tables.
9013 # Exclude shared library initialization/finalization symbols.
9014 extract_expsyms_cmds=
9015
9016 case $host_os in
9017 cygwin* | mingw* | pw32* | cegcc*)
9018 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9019 # When not using gcc, we currently assume that we are using
9020 # Microsoft Visual C++.
9021 if test "$GCC" != yes; then
9022 with_gnu_ld=no
9023 fi
9024 ;;
9025 interix*)
9026 # we just hope/assume this is gcc and not c89 (= MSVC++)
9027 with_gnu_ld=yes
9028 ;;
9029 openbsd*)
9030 with_gnu_ld=no
9031 ;;
9032 esac
9033
9034 ld_shlibs=yes
9035
9036 # On some targets, GNU ld is compatible enough with the native linker
9037 # that we're better off using the native interface for both.
9038 lt_use_gnu_ld_interface=no
9039 if test "$with_gnu_ld" = yes; then
9040 case $host_os in
9041 aix*)
9042 # The AIX port of GNU ld has always aspired to compatibility
9043 # with the native linker. However, as the warning in the GNU ld
9044 # block says, versions before 2.19.5* couldn't really create working
9045 # shared libraries, regardless of the interface used.
9046 case `$LD -v 2>&1` in
9047 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9048 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9049 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9050 *)
9051 lt_use_gnu_ld_interface=yes
9052 ;;
9053 esac
9054 ;;
9055 *)
9056 lt_use_gnu_ld_interface=yes
9057 ;;
9058 esac
9059 fi
9060
9061 if test "$lt_use_gnu_ld_interface" = yes; then
9062 # If archive_cmds runs LD, not CC, wlarc should be empty
9063 wlarc='${wl}'
9064
9065 # Set some defaults for GNU ld with shared library support. These
9066 # are reset later if shared libraries are not supported. Putting them
9067 # here allows them to be overridden if necessary.
9068 runpath_var=LD_RUN_PATH
9069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9070 export_dynamic_flag_spec='${wl}--export-dynamic'
9071 # ancient GNU ld didn't support --whole-archive et. al.
9072 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9073 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9074 else
9075 whole_archive_flag_spec=
9076 fi
9077 supports_anon_versioning=no
9078 case `$LD -v 2>&1` in
9079 *GNU\ gold*) supports_anon_versioning=yes ;;
9080 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9081 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9082 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9083 *\ 2.11.*) ;; # other 2.11 versions
9084 *) supports_anon_versioning=yes ;;
9085 esac
9086
9087 # See if GNU ld supports shared libraries.
9088 case $host_os in
9089 aix[3-9]*)
9090 # On AIX/PPC, the GNU linker is very broken
9091 if test "$host_cpu" != ia64; then
9092 ld_shlibs=no
9093 cat <<_LT_EOF 1>&2
9094
9095 *** Warning: the GNU linker, at least up to release 2.19, is reported
9096 *** to be unable to reliably create shared libraries on AIX.
9097 *** Therefore, libtool is disabling shared libraries support. If you
9098 *** really care for shared libraries, you may want to install binutils
9099 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9100 *** You will then need to restart the configuration process.
9101
9102 _LT_EOF
9103 fi
9104 ;;
9105
9106 amigaos*)
9107 case $host_cpu in
9108 powerpc)
9109 # see comment about AmigaOS4 .so support
9110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9111 archive_expsym_cmds=''
9112 ;;
9113 m68k)
9114 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)'
9115 hardcode_libdir_flag_spec='-L$libdir'
9116 hardcode_minus_L=yes
9117 ;;
9118 esac
9119 ;;
9120
9121 beos*)
9122 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9123 allow_undefined_flag=unsupported
9124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9125 # support --undefined. This deserves some investigation. FIXME
9126 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9127 else
9128 ld_shlibs=no
9129 fi
9130 ;;
9131
9132 cygwin* | mingw* | pw32* | cegcc*)
9133 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9134 # as there is no search path for DLLs.
9135 hardcode_libdir_flag_spec='-L$libdir'
9136 export_dynamic_flag_spec='${wl}--export-all-symbols'
9137 allow_undefined_flag=unsupported
9138 always_export_symbols=no
9139 enable_shared_with_static_runtimes=yes
9140 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9141 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9142
9143 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9145 # If the export-symbols file already is a .def file (1st line
9146 # is EXPORTS), use it as is; otherwise, prepend...
9147 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9148 cp $export_symbols $output_objdir/$soname.def;
9149 else
9150 echo EXPORTS > $output_objdir/$soname.def;
9151 cat $export_symbols >> $output_objdir/$soname.def;
9152 fi~
9153 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9154 else
9155 ld_shlibs=no
9156 fi
9157 ;;
9158
9159 haiku*)
9160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9161 link_all_deplibs=yes
9162 ;;
9163
9164 interix[3-9]*)
9165 hardcode_direct=no
9166 hardcode_shlibpath_var=no
9167 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9168 export_dynamic_flag_spec='${wl}-E'
9169 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9170 # Instead, shared libraries are loaded at an image base (0x10000000 by
9171 # default) and relocated if they conflict, which is a slow very memory
9172 # consuming and fragmenting process. To avoid this, we pick a random,
9173 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9174 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9176 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'
9177 ;;
9178
9179 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9180 tmp_diet=no
9181 if test "$host_os" = linux-dietlibc; then
9182 case $cc_basename in
9183 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9184 esac
9185 fi
9186 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9187 && test "$tmp_diet" = no
9188 then
9189 tmp_addflag=' $pic_flag'
9190 tmp_sharedflag='-shared'
9191 case $cc_basename,$host_cpu in
9192 pgcc*) # Portland Group C compiler
9193 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9194 tmp_addflag=' $pic_flag'
9195 ;;
9196 pgf77* | pgf90* | pgf95* | pgfortran*)
9197 # Portland Group f77 and f90 compilers
9198 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9199 tmp_addflag=' $pic_flag -Mnomain' ;;
9200 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9201 tmp_addflag=' -i_dynamic' ;;
9202 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9203 tmp_addflag=' -i_dynamic -nofor_main' ;;
9204 ifc* | ifort*) # Intel Fortran compiler
9205 tmp_addflag=' -nofor_main' ;;
9206 lf95*) # Lahey Fortran 8.1
9207 whole_archive_flag_spec=
9208 tmp_sharedflag='--shared' ;;
9209 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9210 tmp_sharedflag='-qmkshrobj'
9211 tmp_addflag= ;;
9212 nvcc*) # Cuda Compiler Driver 2.2
9213 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9214 compiler_needs_object=yes
9215 ;;
9216 esac
9217 case `$CC -V 2>&1 | sed 5q` in
9218 *Sun\ C*) # Sun C 5.9
9219 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9220 compiler_needs_object=yes
9221 tmp_sharedflag='-G' ;;
9222 *Sun\ F*) # Sun Fortran 8.3
9223 tmp_sharedflag='-G' ;;
9224 esac
9225 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226
9227 if test "x$supports_anon_versioning" = xyes; then
9228 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9229 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9230 echo "local: *; };" >> $output_objdir/$libname.ver~
9231 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9232 fi
9233
9234 case $cc_basename in
9235 xlf* | bgf* | bgxlf* | mpixlf*)
9236 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9237 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9238 hardcode_libdir_flag_spec=
9239 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9240 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9241 if test "x$supports_anon_versioning" = xyes; then
9242 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9243 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9244 echo "local: *; };" >> $output_objdir/$libname.ver~
9245 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9246 fi
9247 ;;
9248 esac
9249 else
9250 ld_shlibs=no
9251 fi
9252 ;;
9253
9254 netbsd*)
9255 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9256 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9257 wlarc=
9258 else
9259 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9261 fi
9262 ;;
9263
9264 solaris*)
9265 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9266 ld_shlibs=no
9267 cat <<_LT_EOF 1>&2
9268
9269 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9270 *** create shared libraries on Solaris systems. Therefore, libtool
9271 *** is disabling shared libraries support. We urge you to upgrade GNU
9272 *** binutils to release 2.9.1 or newer. Another option is to modify
9273 *** your PATH or compiler configuration so that the native linker is
9274 *** used, and then restart.
9275
9276 _LT_EOF
9277 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9278 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9279 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9280 else
9281 ld_shlibs=no
9282 fi
9283 ;;
9284
9285 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9286 case `$LD -v 2>&1` in
9287 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9288 ld_shlibs=no
9289 cat <<_LT_EOF 1>&2
9290
9291 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9292 *** reliably create shared libraries on SCO systems. Therefore, libtool
9293 *** is disabling shared libraries support. We urge you to upgrade GNU
9294 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9295 *** your PATH or compiler configuration so that the native linker is
9296 *** used, and then restart.
9297
9298 _LT_EOF
9299 ;;
9300 *)
9301 # For security reasons, it is highly recommended that you always
9302 # use absolute paths for naming shared libraries, and exclude the
9303 # DT_RUNPATH tag from executables and libraries. But doing so
9304 # requires that you compile everything twice, which is a pain.
9305 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9309 else
9310 ld_shlibs=no
9311 fi
9312 ;;
9313 esac
9314 ;;
9315
9316 sunos4*)
9317 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9318 wlarc=
9319 hardcode_direct=yes
9320 hardcode_shlibpath_var=no
9321 ;;
9322
9323 *)
9324 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9325 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9327 else
9328 ld_shlibs=no
9329 fi
9330 ;;
9331 esac
9332
9333 if test "$ld_shlibs" = no; then
9334 runpath_var=
9335 hardcode_libdir_flag_spec=
9336 export_dynamic_flag_spec=
9337 whole_archive_flag_spec=
9338 fi
9339 else
9340 # PORTME fill in a description of your system's linker (not GNU ld)
9341 case $host_os in
9342 aix3*)
9343 allow_undefined_flag=unsupported
9344 always_export_symbols=yes
9345 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'
9346 # Note: this linker hardcodes the directories in LIBPATH if there
9347 # are no directories specified by -L.
9348 hardcode_minus_L=yes
9349 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9350 # Neither direct hardcoding nor static linking is supported with a
9351 # broken collect2.
9352 hardcode_direct=unsupported
9353 fi
9354 ;;
9355
9356 aix[4-9]*)
9357 if test "$host_cpu" = ia64; then
9358 # On IA64, the linker does run time linking by default, so we don't
9359 # have to do anything special.
9360 aix_use_runtimelinking=no
9361 exp_sym_flag='-Bexport'
9362 no_entry_flag=""
9363 else
9364 # If we're using GNU nm, then we don't want the "-C" option.
9365 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9366 # Also, AIX nm treats weak defined symbols like other global
9367 # defined symbols, whereas GNU nm marks them as "W".
9368 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9369 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9370 else
9371 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'
9372 fi
9373 aix_use_runtimelinking=no
9374
9375 # Test if we are trying to use run time linking or normal
9376 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9377 # need to do runtime linking.
9378 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9379 for ld_flag in $LDFLAGS; do
9380 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9381 aix_use_runtimelinking=yes
9382 break
9383 fi
9384 done
9385 ;;
9386 esac
9387
9388 exp_sym_flag='-bexport'
9389 no_entry_flag='-bnoentry'
9390 fi
9391
9392 # When large executables or shared objects are built, AIX ld can
9393 # have problems creating the table of contents. If linking a library
9394 # or program results in "error TOC overflow" add -mminimal-toc to
9395 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9396 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9397
9398 archive_cmds=''
9399 hardcode_direct=yes
9400 hardcode_direct_absolute=yes
9401 hardcode_libdir_separator=':'
9402 link_all_deplibs=yes
9403 file_list_spec='${wl}-f,'
9404
9405 if test "$GCC" = yes; then
9406 case $host_os in aix4.[012]|aix4.[012].*)
9407 # We only want to do this on AIX 4.2 and lower, the check
9408 # below for broken collect2 doesn't work under 4.3+
9409 collect2name=`${CC} -print-prog-name=collect2`
9410 if test -f "$collect2name" &&
9411 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9412 then
9413 # We have reworked collect2
9414 :
9415 else
9416 # We have old collect2
9417 hardcode_direct=unsupported
9418 # It fails to find uninstalled libraries when the uninstalled
9419 # path is not listed in the libpath. Setting hardcode_minus_L
9420 # to unsupported forces relinking
9421 hardcode_minus_L=yes
9422 hardcode_libdir_flag_spec='-L$libdir'
9423 hardcode_libdir_separator=
9424 fi
9425 ;;
9426 esac
9427 shared_flag='-shared'
9428 if test "$aix_use_runtimelinking" = yes; then
9429 shared_flag="$shared_flag "'${wl}-G'
9430 fi
9431 else
9432 # not using gcc
9433 if test "$host_cpu" = ia64; then
9434 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9435 # chokes on -Wl,-G. The following line is correct:
9436 shared_flag='-G'
9437 else
9438 if test "$aix_use_runtimelinking" = yes; then
9439 shared_flag='${wl}-G'
9440 else
9441 shared_flag='${wl}-bM:SRE'
9442 fi
9443 fi
9444 fi
9445
9446 export_dynamic_flag_spec='${wl}-bexpall'
9447 # It seems that -bexpall does not export symbols beginning with
9448 # underscore (_), so it is better to generate a list of symbols to export.
9449 always_export_symbols=yes
9450 if test "$aix_use_runtimelinking" = yes; then
9451 # Warning - without using the other runtime loading flags (-brtl),
9452 # -berok will link without error, but may produce a broken library.
9453 allow_undefined_flag='-berok'
9454 # Determine the default libpath from the value encoded in an
9455 # empty executable.
9456 if test "${lt_cv_aix_libpath+set}" = set; then
9457 aix_libpath=$lt_cv_aix_libpath
9458 else
9459 if ${lt_cv_aix_libpath_+:} false; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464
9465 int
9466 main ()
9467 {
9468
9469 ;
9470 return 0;
9471 }
9472 _ACEOF
9473 if ac_fn_c_try_link "$LINENO"; then :
9474
9475 lt_aix_libpath_sed='
9476 /Import File Strings/,/^$/ {
9477 /^0/ {
9478 s/^0 *\([^ ]*\) *$/\1/
9479 p
9480 }
9481 }'
9482 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9483 # Check for a 64-bit object if we didn't find anything.
9484 if test -z "$lt_cv_aix_libpath_"; then
9485 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9486 fi
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 if test -z "$lt_cv_aix_libpath_"; then
9491 lt_cv_aix_libpath_="/usr/lib:/lib"
9492 fi
9493
9494 fi
9495
9496 aix_libpath=$lt_cv_aix_libpath_
9497 fi
9498
9499 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9500 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9501 else
9502 if test "$host_cpu" = ia64; then
9503 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9504 allow_undefined_flag="-z nodefs"
9505 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"
9506 else
9507 # Determine the default libpath from the value encoded in an
9508 # empty executable.
9509 if test "${lt_cv_aix_libpath+set}" = set; then
9510 aix_libpath=$lt_cv_aix_libpath
9511 else
9512 if ${lt_cv_aix_libpath_+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9517
9518 int
9519 main ()
9520 {
9521
9522 ;
9523 return 0;
9524 }
9525 _ACEOF
9526 if ac_fn_c_try_link "$LINENO"; then :
9527
9528 lt_aix_libpath_sed='
9529 /Import File Strings/,/^$/ {
9530 /^0/ {
9531 s/^0 *\([^ ]*\) *$/\1/
9532 p
9533 }
9534 }'
9535 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9536 # Check for a 64-bit object if we didn't find anything.
9537 if test -z "$lt_cv_aix_libpath_"; then
9538 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9539 fi
9540 fi
9541 rm -f core conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext conftest.$ac_ext
9543 if test -z "$lt_cv_aix_libpath_"; then
9544 lt_cv_aix_libpath_="/usr/lib:/lib"
9545 fi
9546
9547 fi
9548
9549 aix_libpath=$lt_cv_aix_libpath_
9550 fi
9551
9552 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9553 # Warning - without using the other run time loading flags,
9554 # -berok will link without error, but may produce a broken library.
9555 no_undefined_flag=' ${wl}-bernotok'
9556 allow_undefined_flag=' ${wl}-berok'
9557 if test "$with_gnu_ld" = yes; then
9558 # We only use this code for GNU lds that support --whole-archive.
9559 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9560 else
9561 # Exported symbols can be pulled into shared objects from archives
9562 whole_archive_flag_spec='$convenience'
9563 fi
9564 archive_cmds_need_lc=yes
9565 # This is similar to how AIX traditionally builds its shared libraries.
9566 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'
9567 fi
9568 fi
9569 ;;
9570
9571 amigaos*)
9572 case $host_cpu in
9573 powerpc)
9574 # see comment about AmigaOS4 .so support
9575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576 archive_expsym_cmds=''
9577 ;;
9578 m68k)
9579 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)'
9580 hardcode_libdir_flag_spec='-L$libdir'
9581 hardcode_minus_L=yes
9582 ;;
9583 esac
9584 ;;
9585
9586 bsdi[45]*)
9587 export_dynamic_flag_spec=-rdynamic
9588 ;;
9589
9590 cygwin* | mingw* | pw32* | cegcc*)
9591 # When not using gcc, we currently assume that we are using
9592 # Microsoft Visual C++.
9593 # hardcode_libdir_flag_spec is actually meaningless, as there is
9594 # no search path for DLLs.
9595 case $cc_basename in
9596 cl*)
9597 # Native MSVC
9598 hardcode_libdir_flag_spec=' '
9599 allow_undefined_flag=unsupported
9600 always_export_symbols=yes
9601 file_list_spec='@'
9602 # Tell ltmain to make .lib files, not .a files.
9603 libext=lib
9604 # Tell ltmain to make .dll files, not .so files.
9605 shrext_cmds=".dll"
9606 # FIXME: Setting linknames here is a bad hack.
9607 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9608 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9609 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9610 else
9611 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9612 fi~
9613 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9614 linknames='
9615 # The linker will not automatically build a static lib if we build a DLL.
9616 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9617 enable_shared_with_static_runtimes=yes
9618 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9619 # Don't use ranlib
9620 old_postinstall_cmds='chmod 644 $oldlib'
9621 postlink_cmds='lt_outputfile="@OUTPUT@"~
9622 lt_tool_outputfile="@TOOL_OUTPUT@"~
9623 case $lt_outputfile in
9624 *.exe|*.EXE) ;;
9625 *)
9626 lt_outputfile="$lt_outputfile.exe"
9627 lt_tool_outputfile="$lt_tool_outputfile.exe"
9628 ;;
9629 esac~
9630 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9631 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9632 $RM "$lt_outputfile.manifest";
9633 fi'
9634 ;;
9635 *)
9636 # Assume MSVC wrapper
9637 hardcode_libdir_flag_spec=' '
9638 allow_undefined_flag=unsupported
9639 # Tell ltmain to make .lib files, not .a files.
9640 libext=lib
9641 # Tell ltmain to make .dll files, not .so files.
9642 shrext_cmds=".dll"
9643 # FIXME: Setting linknames here is a bad hack.
9644 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9645 # The linker will automatically build a .lib file if we build a DLL.
9646 old_archive_from_new_cmds='true'
9647 # FIXME: Should let the user specify the lib program.
9648 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9649 enable_shared_with_static_runtimes=yes
9650 ;;
9651 esac
9652 ;;
9653
9654 darwin* | rhapsody*)
9655
9656
9657 archive_cmds_need_lc=no
9658 hardcode_direct=no
9659 hardcode_automatic=yes
9660 hardcode_shlibpath_var=unsupported
9661 if test "$lt_cv_ld_force_load" = "yes"; then
9662 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9663 else
9664 whole_archive_flag_spec=''
9665 fi
9666 link_all_deplibs=yes
9667 allow_undefined_flag="$_lt_dar_allow_undefined"
9668 case $cc_basename in
9669 ifort*) _lt_dar_can_shared=yes ;;
9670 *) _lt_dar_can_shared=$GCC ;;
9671 esac
9672 if test "$_lt_dar_can_shared" = "yes"; then
9673 output_verbose_link_cmd=func_echo_all
9674 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9675 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9676 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}"
9677 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}"
9678
9679 else
9680 ld_shlibs=no
9681 fi
9682
9683 ;;
9684
9685 dgux*)
9686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687 hardcode_libdir_flag_spec='-L$libdir'
9688 hardcode_shlibpath_var=no
9689 ;;
9690
9691 freebsd1*)
9692 ld_shlibs=no
9693 ;;
9694
9695 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9696 # support. Future versions do this automatically, but an explicit c++rt0.o
9697 # does not break anything, and helps significantly (at the cost of a little
9698 # extra space).
9699 freebsd2.2*)
9700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9701 hardcode_libdir_flag_spec='-R$libdir'
9702 hardcode_direct=yes
9703 hardcode_shlibpath_var=no
9704 ;;
9705
9706 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9707 freebsd2*)
9708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_direct=yes
9710 hardcode_minus_L=yes
9711 hardcode_shlibpath_var=no
9712 ;;
9713
9714 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9715 freebsd* | dragonfly*)
9716 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9717 hardcode_libdir_flag_spec='-R$libdir'
9718 hardcode_direct=yes
9719 hardcode_shlibpath_var=no
9720 ;;
9721
9722 hpux9*)
9723 if test "$GCC" = yes; then
9724 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9725 else
9726 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'
9727 fi
9728 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9729 hardcode_libdir_separator=:
9730 hardcode_direct=yes
9731
9732 # hardcode_minus_L: Not really in the search PATH,
9733 # but as the default location of the library.
9734 hardcode_minus_L=yes
9735 export_dynamic_flag_spec='${wl}-E'
9736 ;;
9737
9738 hpux10*)
9739 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9740 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9741 else
9742 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9743 fi
9744 if test "$with_gnu_ld" = no; then
9745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9746 hardcode_libdir_flag_spec_ld='+b $libdir'
9747 hardcode_libdir_separator=:
9748 hardcode_direct=yes
9749 hardcode_direct_absolute=yes
9750 export_dynamic_flag_spec='${wl}-E'
9751 # hardcode_minus_L: Not really in the search PATH,
9752 # but as the default location of the library.
9753 hardcode_minus_L=yes
9754 fi
9755 ;;
9756
9757 hpux11*)
9758 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9759 case $host_cpu in
9760 hppa*64*)
9761 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9762 ;;
9763 ia64*)
9764 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9765 ;;
9766 *)
9767 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9768 ;;
9769 esac
9770 else
9771 case $host_cpu in
9772 hppa*64*)
9773 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 ;;
9775 ia64*)
9776 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9777 ;;
9778 *)
9779
9780 # Older versions of the 11.00 compiler do not understand -b yet
9781 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9783 $as_echo_n "checking if $CC understands -b... " >&6; }
9784 if ${lt_cv_prog_compiler__b+:} false; then :
9785 $as_echo_n "(cached) " >&6
9786 else
9787 lt_cv_prog_compiler__b=no
9788 save_LDFLAGS="$LDFLAGS"
9789 LDFLAGS="$LDFLAGS -b"
9790 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9792 # The linker can only warn and ignore the option if not recognized
9793 # So say no if there are warnings
9794 if test -s conftest.err; then
9795 # Append any errors to the config.log.
9796 cat conftest.err 1>&5
9797 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9799 if diff conftest.exp conftest.er2 >/dev/null; then
9800 lt_cv_prog_compiler__b=yes
9801 fi
9802 else
9803 lt_cv_prog_compiler__b=yes
9804 fi
9805 fi
9806 $RM -r conftest*
9807 LDFLAGS="$save_LDFLAGS"
9808
9809 fi
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9811 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9812
9813 if test x"$lt_cv_prog_compiler__b" = xyes; then
9814 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9815 else
9816 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9817 fi
9818
9819 ;;
9820 esac
9821 fi
9822 if test "$with_gnu_ld" = no; then
9823 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9824 hardcode_libdir_separator=:
9825
9826 case $host_cpu in
9827 hppa*64*|ia64*)
9828 hardcode_direct=no
9829 hardcode_shlibpath_var=no
9830 ;;
9831 *)
9832 hardcode_direct=yes
9833 hardcode_direct_absolute=yes
9834 export_dynamic_flag_spec='${wl}-E'
9835
9836 # hardcode_minus_L: Not really in the search PATH,
9837 # but as the default location of the library.
9838 hardcode_minus_L=yes
9839 ;;
9840 esac
9841 fi
9842 ;;
9843
9844 irix5* | irix6* | nonstopux*)
9845 if test "$GCC" = yes; then
9846 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9847 # Try to use the -exported_symbol ld option, if it does not
9848 # work, assume that -exports_file does not work either and
9849 # implicitly export all symbols.
9850 # This should be the same for all languages, so no per-tag cache variable.
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9852 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9853 if ${lt_cv_irix_exported_symbol+:} false; then :
9854 $as_echo_n "(cached) " >&6
9855 else
9856 save_LDFLAGS="$LDFLAGS"
9857 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h. */
9860 int foo (void) { return 0; }
9861 _ACEOF
9862 if ac_fn_c_try_link "$LINENO"; then :
9863 lt_cv_irix_exported_symbol=yes
9864 else
9865 lt_cv_irix_exported_symbol=no
9866 fi
9867 rm -f core conftest.err conftest.$ac_objext \
9868 conftest$ac_exeext conftest.$ac_ext
9869 LDFLAGS="$save_LDFLAGS"
9870 fi
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9872 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9873 if test "$lt_cv_irix_exported_symbol" = yes; then
9874 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9875 fi
9876 else
9877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9878 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9879 fi
9880 archive_cmds_need_lc='no'
9881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9882 hardcode_libdir_separator=:
9883 inherit_rpath=yes
9884 link_all_deplibs=yes
9885 ;;
9886
9887 netbsd*)
9888 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9889 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9890 else
9891 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9892 fi
9893 hardcode_libdir_flag_spec='-R$libdir'
9894 hardcode_direct=yes
9895 hardcode_shlibpath_var=no
9896 ;;
9897
9898 newsos6)
9899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9900 hardcode_direct=yes
9901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9902 hardcode_libdir_separator=:
9903 hardcode_shlibpath_var=no
9904 ;;
9905
9906 *nto* | *qnx*)
9907 ;;
9908
9909 openbsd*)
9910 if test -f /usr/libexec/ld.so; then
9911 hardcode_direct=yes
9912 hardcode_shlibpath_var=no
9913 hardcode_direct_absolute=yes
9914 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9915 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9916 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9917 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9918 export_dynamic_flag_spec='${wl}-E'
9919 else
9920 case $host_os in
9921 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9923 hardcode_libdir_flag_spec='-R$libdir'
9924 ;;
9925 *)
9926 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9927 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9928 ;;
9929 esac
9930 fi
9931 else
9932 ld_shlibs=no
9933 fi
9934 ;;
9935
9936 os2*)
9937 hardcode_libdir_flag_spec='-L$libdir'
9938 hardcode_minus_L=yes
9939 allow_undefined_flag=unsupported
9940 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'
9941 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9942 ;;
9943
9944 osf3*)
9945 if test "$GCC" = yes; then
9946 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9947 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9948 else
9949 allow_undefined_flag=' -expect_unresolved \*'
9950 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9951 fi
9952 archive_cmds_need_lc='no'
9953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9954 hardcode_libdir_separator=:
9955 ;;
9956
9957 osf4* | osf5*) # as osf3* with the addition of -msym flag
9958 if test "$GCC" = yes; then
9959 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9960 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9962 else
9963 allow_undefined_flag=' -expect_unresolved \*'
9964 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9965 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~
9966 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9967
9968 # Both c and cxx compiler support -rpath directly
9969 hardcode_libdir_flag_spec='-rpath $libdir'
9970 fi
9971 archive_cmds_need_lc='no'
9972 hardcode_libdir_separator=:
9973 ;;
9974
9975 solaris*)
9976 no_undefined_flag=' -z defs'
9977 if test "$GCC" = yes; then
9978 wlarc='${wl}'
9979 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9980 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9981 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9982 else
9983 case `$CC -V 2>&1` in
9984 *"Compilers 5.0"*)
9985 wlarc=''
9986 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9987 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9988 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9989 ;;
9990 *)
9991 wlarc='${wl}'
9992 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9993 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9994 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9995 ;;
9996 esac
9997 fi
9998 hardcode_libdir_flag_spec='-R$libdir'
9999 hardcode_shlibpath_var=no
10000 case $host_os in
10001 solaris2.[0-5] | solaris2.[0-5].*) ;;
10002 *)
10003 # The compiler driver will combine and reorder linker options,
10004 # but understands `-z linker_flag'. GCC discards it without `$wl',
10005 # but is careful enough not to reorder.
10006 # Supported since Solaris 2.6 (maybe 2.5.1?)
10007 if test "$GCC" = yes; then
10008 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10009 else
10010 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10011 fi
10012 ;;
10013 esac
10014 link_all_deplibs=yes
10015 ;;
10016
10017 sunos4*)
10018 if test "x$host_vendor" = xsequent; then
10019 # Use $CC to link under sequent, because it throws in some extra .o
10020 # files that make .init and .fini sections work.
10021 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10022 else
10023 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10024 fi
10025 hardcode_libdir_flag_spec='-L$libdir'
10026 hardcode_direct=yes
10027 hardcode_minus_L=yes
10028 hardcode_shlibpath_var=no
10029 ;;
10030
10031 sysv4)
10032 case $host_vendor in
10033 sni)
10034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035 hardcode_direct=yes # is this really true???
10036 ;;
10037 siemens)
10038 ## LD is ld it makes a PLAMLIB
10039 ## CC just makes a GrossModule.
10040 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10041 reload_cmds='$CC -r -o $output$reload_objs'
10042 hardcode_direct=no
10043 ;;
10044 motorola)
10045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10046 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10047 ;;
10048 esac
10049 runpath_var='LD_RUN_PATH'
10050 hardcode_shlibpath_var=no
10051 ;;
10052
10053 sysv4.3*)
10054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055 hardcode_shlibpath_var=no
10056 export_dynamic_flag_spec='-Bexport'
10057 ;;
10058
10059 sysv4*MP*)
10060 if test -d /usr/nec; then
10061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062 hardcode_shlibpath_var=no
10063 runpath_var=LD_RUN_PATH
10064 hardcode_runpath_var=yes
10065 ld_shlibs=yes
10066 fi
10067 ;;
10068
10069 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10070 no_undefined_flag='${wl}-z,text'
10071 archive_cmds_need_lc=no
10072 hardcode_shlibpath_var=no
10073 runpath_var='LD_RUN_PATH'
10074
10075 if test "$GCC" = yes; then
10076 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10077 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10078 else
10079 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 fi
10082 ;;
10083
10084 sysv5* | sco3.2v5* | sco5v6*)
10085 # Note: We can NOT use -z defs as we might desire, because we do not
10086 # link with -lc, and that would cause any symbols used from libc to
10087 # always be unresolved, which means just about no library would
10088 # ever link correctly. If we're not using GNU ld we use -z text
10089 # though, which does catch some bad symbols but isn't as heavy-handed
10090 # as -z defs.
10091 no_undefined_flag='${wl}-z,text'
10092 allow_undefined_flag='${wl}-z,nodefs'
10093 archive_cmds_need_lc=no
10094 hardcode_shlibpath_var=no
10095 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10096 hardcode_libdir_separator=':'
10097 link_all_deplibs=yes
10098 export_dynamic_flag_spec='${wl}-Bexport'
10099 runpath_var='LD_RUN_PATH'
10100
10101 if test "$GCC" = yes; then
10102 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10103 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10104 else
10105 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 fi
10108 ;;
10109
10110 uts4*)
10111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10112 hardcode_libdir_flag_spec='-L$libdir'
10113 hardcode_shlibpath_var=no
10114 ;;
10115
10116 *)
10117 ld_shlibs=no
10118 ;;
10119 esac
10120
10121 if test x$host_vendor = xsni; then
10122 case $host in
10123 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10124 export_dynamic_flag_spec='${wl}-Blargedynsym'
10125 ;;
10126 esac
10127 fi
10128 fi
10129
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10131 $as_echo "$ld_shlibs" >&6; }
10132 test "$ld_shlibs" = no && can_build_shared=no
10133
10134 with_gnu_ld=$with_gnu_ld
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150 #
10151 # Do we need to explicitly link libc?
10152 #
10153 case "x$archive_cmds_need_lc" in
10154 x|xyes)
10155 # Assume -lc should be added
10156 archive_cmds_need_lc=yes
10157
10158 if test "$enable_shared" = yes && test "$GCC" = yes; then
10159 case $archive_cmds in
10160 *'~'*)
10161 # FIXME: we may have to deal with multi-command sequences.
10162 ;;
10163 '$CC '*)
10164 # Test whether the compiler implicitly links with -lc since on some
10165 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10166 # to ld, don't add -lc before -lgcc.
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10168 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10169 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10170 $as_echo_n "(cached) " >&6
10171 else
10172 $RM conftest*
10173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10174
10175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10176 (eval $ac_compile) 2>&5
10177 ac_status=$?
10178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10179 test $ac_status = 0; } 2>conftest.err; then
10180 soname=conftest
10181 lib=conftest
10182 libobjs=conftest.$ac_objext
10183 deplibs=
10184 wl=$lt_prog_compiler_wl
10185 pic_flag=$lt_prog_compiler_pic
10186 compiler_flags=-v
10187 linker_flags=-v
10188 verstring=
10189 output_objdir=.
10190 libname=conftest
10191 lt_save_allow_undefined_flag=$allow_undefined_flag
10192 allow_undefined_flag=
10193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10194 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10195 ac_status=$?
10196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10197 test $ac_status = 0; }
10198 then
10199 lt_cv_archive_cmds_need_lc=no
10200 else
10201 lt_cv_archive_cmds_need_lc=yes
10202 fi
10203 allow_undefined_flag=$lt_save_allow_undefined_flag
10204 else
10205 cat conftest.err 1>&5
10206 fi
10207 $RM conftest*
10208
10209 fi
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10211 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10212 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10213 ;;
10214 esac
10215 fi
10216 ;;
10217 esac
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10376 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10377
10378 if test "$GCC" = yes; then
10379 case $host_os in
10380 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10381 *) lt_awk_arg="/^libraries:/" ;;
10382 esac
10383 case $host_os in
10384 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10385 *) lt_sed_strip_eq="s,=/,/,g" ;;
10386 esac
10387 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10388 case $lt_search_path_spec in
10389 *\;*)
10390 # if the path contains ";" then we assume it to be the separator
10391 # otherwise default to the standard path separator (i.e. ":") - it is
10392 # assumed that no part of a normal pathname contains ";" but that should
10393 # okay in the real world where ";" in dirpaths is itself problematic.
10394 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10395 ;;
10396 *)
10397 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10398 ;;
10399 esac
10400 # Ok, now we have the path, separated by spaces, we can step through it
10401 # and add multilib dir if necessary.
10402 lt_tmp_lt_search_path_spec=
10403 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10404 for lt_sys_path in $lt_search_path_spec; do
10405 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10406 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10407 else
10408 test -d "$lt_sys_path" && \
10409 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10410 fi
10411 done
10412 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10413 BEGIN {RS=" "; FS="/|\n";} {
10414 lt_foo="";
10415 lt_count=0;
10416 for (lt_i = NF; lt_i > 0; lt_i--) {
10417 if ($lt_i != "" && $lt_i != ".") {
10418 if ($lt_i == "..") {
10419 lt_count++;
10420 } else {
10421 if (lt_count == 0) {
10422 lt_foo="/" $lt_i lt_foo;
10423 } else {
10424 lt_count--;
10425 }
10426 }
10427 }
10428 }
10429 if (lt_foo != "") { lt_freq[lt_foo]++; }
10430 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10431 }'`
10432 # AWK program above erroneously prepends '/' to C:/dos/paths
10433 # for these hosts.
10434 case $host_os in
10435 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10436 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10437 esac
10438 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10439 else
10440 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10441 fi
10442 library_names_spec=
10443 libname_spec='lib$name'
10444 soname_spec=
10445 shrext_cmds=".so"
10446 postinstall_cmds=
10447 postuninstall_cmds=
10448 finish_cmds=
10449 finish_eval=
10450 shlibpath_var=
10451 shlibpath_overrides_runpath=unknown
10452 version_type=none
10453 dynamic_linker="$host_os ld.so"
10454 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10455 need_lib_prefix=unknown
10456 hardcode_into_libs=no
10457
10458 # when you set need_version to no, make sure it does not cause -set_version
10459 # flags to be left without arguments
10460 need_version=unknown
10461
10462 case $host_os in
10463 aix3*)
10464 version_type=linux
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10466 shlibpath_var=LIBPATH
10467
10468 # AIX 3 has no versioning support, so we append a major version to the name.
10469 soname_spec='${libname}${release}${shared_ext}$major'
10470 ;;
10471
10472 aix[4-9]*)
10473 version_type=linux
10474 need_lib_prefix=no
10475 need_version=no
10476 hardcode_into_libs=yes
10477 if test "$host_cpu" = ia64; then
10478 # AIX 5 supports IA64
10479 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10480 shlibpath_var=LD_LIBRARY_PATH
10481 else
10482 # With GCC up to 2.95.x, collect2 would create an import file
10483 # for dependence libraries. The import file would start with
10484 # the line `#! .'. This would cause the generated library to
10485 # depend on `.', always an invalid library. This was fixed in
10486 # development snapshots of GCC prior to 3.0.
10487 case $host_os in
10488 aix4 | aix4.[01] | aix4.[01].*)
10489 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10490 echo ' yes '
10491 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10492 :
10493 else
10494 can_build_shared=no
10495 fi
10496 ;;
10497 esac
10498 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10499 # soname into executable. Probably we can add versioning support to
10500 # collect2, so additional links can be useful in future.
10501 if test "$aix_use_runtimelinking" = yes; then
10502 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10503 # instead of lib<name>.a to let people know that these are not
10504 # typical AIX shared libraries.
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506 else
10507 # We preserve .a as extension for shared libraries through AIX4.2
10508 # and later when we are not doing run time linking.
10509 library_names_spec='${libname}${release}.a $libname.a'
10510 soname_spec='${libname}${release}${shared_ext}$major'
10511 fi
10512 shlibpath_var=LIBPATH
10513 fi
10514 ;;
10515
10516 amigaos*)
10517 case $host_cpu in
10518 powerpc)
10519 # Since July 2007 AmigaOS4 officially supports .so libraries.
10520 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522 ;;
10523 m68k)
10524 library_names_spec='$libname.ixlibrary $libname.a'
10525 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10526 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10527 ;;
10528 esac
10529 ;;
10530
10531 beos*)
10532 library_names_spec='${libname}${shared_ext}'
10533 dynamic_linker="$host_os ld.so"
10534 shlibpath_var=LIBRARY_PATH
10535 ;;
10536
10537 bsdi[45]*)
10538 version_type=linux
10539 need_version=no
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 soname_spec='${libname}${release}${shared_ext}$major'
10542 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10543 shlibpath_var=LD_LIBRARY_PATH
10544 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10545 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10546 # the default ld.so.conf also contains /usr/contrib/lib and
10547 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10548 # libtool to hard-code these into programs
10549 ;;
10550
10551 cygwin* | mingw* | pw32* | cegcc*)
10552 version_type=windows
10553 shrext_cmds=".dll"
10554 need_version=no
10555 need_lib_prefix=no
10556
10557 case $GCC,$cc_basename in
10558 yes,*)
10559 # gcc
10560 library_names_spec='$libname.dll.a'
10561 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10562 postinstall_cmds='base_file=`basename \${file}`~
10563 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10564 dldir=$destdir/`dirname \$dlpath`~
10565 test -d \$dldir || mkdir -p \$dldir~
10566 $install_prog $dir/$dlname \$dldir/$dlname~
10567 chmod a+x \$dldir/$dlname~
10568 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10569 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10570 fi'
10571 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10572 dlpath=$dir/\$dldll~
10573 $RM \$dlpath'
10574 shlibpath_overrides_runpath=yes
10575
10576 case $host_os in
10577 cygwin*)
10578 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10579 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10580
10581 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10582 ;;
10583 mingw* | cegcc*)
10584 # MinGW DLLs use traditional 'lib' prefix
10585 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10586 ;;
10587 pw32*)
10588 # pw32 DLLs use 'pw' prefix rather than 'lib'
10589 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10590 ;;
10591 esac
10592 dynamic_linker='Win32 ld.exe'
10593 ;;
10594
10595 *,cl*)
10596 # Native MSVC
10597 libname_spec='$name'
10598 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10599 library_names_spec='${libname}.dll.lib'
10600
10601 case $build_os in
10602 mingw*)
10603 sys_lib_search_path_spec=
10604 lt_save_ifs=$IFS
10605 IFS=';'
10606 for lt_path in $LIB
10607 do
10608 IFS=$lt_save_ifs
10609 # Let DOS variable expansion print the short 8.3 style file name.
10610 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10611 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10612 done
10613 IFS=$lt_save_ifs
10614 # Convert to MSYS style.
10615 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10616 ;;
10617 cygwin*)
10618 # Convert to unix form, then to dos form, then back to unix form
10619 # but this time dos style (no spaces!) so that the unix form looks
10620 # like /cygdrive/c/PROGRA~1:/cygdr...
10621 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10622 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10623 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10624 ;;
10625 *)
10626 sys_lib_search_path_spec="$LIB"
10627 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10628 # It is most probably a Windows format PATH.
10629 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10630 else
10631 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10632 fi
10633 # FIXME: find the short name or the path components, as spaces are
10634 # common. (e.g. "Program Files" -> "PROGRA~1")
10635 ;;
10636 esac
10637
10638 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10639 postinstall_cmds='base_file=`basename \${file}`~
10640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10641 dldir=$destdir/`dirname \$dlpath`~
10642 test -d \$dldir || mkdir -p \$dldir~
10643 $install_prog $dir/$dlname \$dldir/$dlname'
10644 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10645 dlpath=$dir/\$dldll~
10646 $RM \$dlpath'
10647 shlibpath_overrides_runpath=yes
10648 dynamic_linker='Win32 link.exe'
10649 ;;
10650
10651 *)
10652 # Assume MSVC wrapper
10653 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10654 dynamic_linker='Win32 ld.exe'
10655 ;;
10656 esac
10657 # FIXME: first we should search . and the directory the executable is in
10658 shlibpath_var=PATH
10659 ;;
10660
10661 darwin* | rhapsody*)
10662 dynamic_linker="$host_os dyld"
10663 version_type=darwin
10664 need_lib_prefix=no
10665 need_version=no
10666 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10667 soname_spec='${libname}${release}${major}$shared_ext'
10668 shlibpath_overrides_runpath=yes
10669 shlibpath_var=DYLD_LIBRARY_PATH
10670 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10671
10672 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10673 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10674 ;;
10675
10676 dgux*)
10677 version_type=linux
10678 need_lib_prefix=no
10679 need_version=no
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 ;;
10684
10685 freebsd1*)
10686 dynamic_linker=no
10687 ;;
10688
10689 freebsd* | dragonfly*)
10690 # DragonFly does not have aout. When/if they implement a new
10691 # versioning mechanism, adjust this.
10692 if test -x /usr/bin/objformat; then
10693 objformat=`/usr/bin/objformat`
10694 else
10695 case $host_os in
10696 freebsd[123]*) objformat=aout ;;
10697 *) objformat=elf ;;
10698 esac
10699 fi
10700 version_type=freebsd-$objformat
10701 case $version_type in
10702 freebsd-elf*)
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10704 need_version=no
10705 need_lib_prefix=no
10706 ;;
10707 freebsd-*)
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10709 need_version=yes
10710 ;;
10711 esac
10712 shlibpath_var=LD_LIBRARY_PATH
10713 case $host_os in
10714 freebsd2*)
10715 shlibpath_overrides_runpath=yes
10716 ;;
10717 freebsd3.[01]* | freebsdelf3.[01]*)
10718 shlibpath_overrides_runpath=yes
10719 hardcode_into_libs=yes
10720 ;;
10721 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10722 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10723 shlibpath_overrides_runpath=no
10724 hardcode_into_libs=yes
10725 ;;
10726 *) # from 4.6 on, and DragonFly
10727 shlibpath_overrides_runpath=yes
10728 hardcode_into_libs=yes
10729 ;;
10730 esac
10731 ;;
10732
10733 gnu*)
10734 version_type=linux
10735 need_lib_prefix=no
10736 need_version=no
10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10738 soname_spec='${libname}${release}${shared_ext}$major'
10739 shlibpath_var=LD_LIBRARY_PATH
10740 hardcode_into_libs=yes
10741 ;;
10742
10743 haiku*)
10744 version_type=linux
10745 need_lib_prefix=no
10746 need_version=no
10747 dynamic_linker="$host_os runtime_loader"
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 shlibpath_var=LIBRARY_PATH
10751 shlibpath_overrides_runpath=yes
10752 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10753 hardcode_into_libs=yes
10754 ;;
10755
10756 hpux9* | hpux10* | hpux11*)
10757 # Give a soname corresponding to the major version so that dld.sl refuses to
10758 # link against other versions.
10759 version_type=sunos
10760 need_lib_prefix=no
10761 need_version=no
10762 case $host_cpu in
10763 ia64*)
10764 shrext_cmds='.so'
10765 hardcode_into_libs=yes
10766 dynamic_linker="$host_os dld.so"
10767 shlibpath_var=LD_LIBRARY_PATH
10768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10770 soname_spec='${libname}${release}${shared_ext}$major'
10771 if test "X$HPUX_IA64_MODE" = X32; then
10772 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10773 else
10774 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10775 fi
10776 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10777 ;;
10778 hppa*64*)
10779 shrext_cmds='.sl'
10780 hardcode_into_libs=yes
10781 dynamic_linker="$host_os dld.sl"
10782 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785 soname_spec='${libname}${release}${shared_ext}$major'
10786 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10788 ;;
10789 *)
10790 shrext_cmds='.sl'
10791 dynamic_linker="$host_os dld.sl"
10792 shlibpath_var=SHLIB_PATH
10793 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795 soname_spec='${libname}${release}${shared_ext}$major'
10796 ;;
10797 esac
10798 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10799 postinstall_cmds='chmod 555 $lib'
10800 # or fails outright, so override atomically:
10801 install_override_mode=555
10802 ;;
10803
10804 interix[3-9]*)
10805 version_type=linux
10806 need_lib_prefix=no
10807 need_version=no
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10809 soname_spec='${libname}${release}${shared_ext}$major'
10810 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10811 shlibpath_var=LD_LIBRARY_PATH
10812 shlibpath_overrides_runpath=no
10813 hardcode_into_libs=yes
10814 ;;
10815
10816 irix5* | irix6* | nonstopux*)
10817 case $host_os in
10818 nonstopux*) version_type=nonstopux ;;
10819 *)
10820 if test "$lt_cv_prog_gnu_ld" = yes; then
10821 version_type=linux
10822 else
10823 version_type=irix
10824 fi ;;
10825 esac
10826 need_lib_prefix=no
10827 need_version=no
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10830 case $host_os in
10831 irix5* | nonstopux*)
10832 libsuff= shlibsuff=
10833 ;;
10834 *)
10835 case $LD in # libtool.m4 will add one of these switches to LD
10836 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10837 libsuff= shlibsuff= libmagic=32-bit;;
10838 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10839 libsuff=32 shlibsuff=N32 libmagic=N32;;
10840 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10841 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10842 *) libsuff= shlibsuff= libmagic=never-match;;
10843 esac
10844 ;;
10845 esac
10846 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10847 shlibpath_overrides_runpath=no
10848 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10849 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10850 hardcode_into_libs=yes
10851 ;;
10852
10853 # No shared lib support for Linux oldld, aout, or coff.
10854 linux*oldld* | linux*aout* | linux*coff*)
10855 dynamic_linker=no
10856 ;;
10857
10858 # This must be Linux ELF.
10859 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10860 version_type=linux
10861 need_lib_prefix=no
10862 need_version=no
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10866 shlibpath_var=LD_LIBRARY_PATH
10867 shlibpath_overrides_runpath=no
10868
10869 # Some binutils ld are patched to set DT_RUNPATH
10870 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 lt_cv_shlibpath_overrides_runpath=no
10874 save_LDFLAGS=$LDFLAGS
10875 save_libdir=$libdir
10876 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10877 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h. */
10880
10881 int
10882 main ()
10883 {
10884
10885 ;
10886 return 0;
10887 }
10888 _ACEOF
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10891 lt_cv_shlibpath_overrides_runpath=yes
10892 fi
10893 fi
10894 rm -f core conftest.err conftest.$ac_objext \
10895 conftest$ac_exeext conftest.$ac_ext
10896 LDFLAGS=$save_LDFLAGS
10897 libdir=$save_libdir
10898
10899 fi
10900
10901 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10902
10903 # This implies no fast_install, which is unacceptable.
10904 # Some rework will be needed to allow for fast_install
10905 # before this can be enabled.
10906 hardcode_into_libs=yes
10907
10908 # Append ld.so.conf contents to the search path
10909 if test -f /etc/ld.so.conf; then
10910 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10911 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10912 fi
10913
10914 # We used to test for /lib/ld.so.1 and disable shared libraries on
10915 # powerpc, because MkLinux only supported shared libraries with the
10916 # GNU dynamic linker. Since this was broken with cross compilers,
10917 # most powerpc-linux boxes support dynamic linking these days and
10918 # people can always --disable-shared, the test was removed, and we
10919 # assume the GNU/Linux dynamic linker is in use.
10920 dynamic_linker='GNU/Linux ld.so'
10921 ;;
10922
10923 netbsd*)
10924 version_type=sunos
10925 need_lib_prefix=no
10926 need_version=no
10927 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10930 dynamic_linker='NetBSD (a.out) ld.so'
10931 else
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10933 soname_spec='${libname}${release}${shared_ext}$major'
10934 dynamic_linker='NetBSD ld.elf_so'
10935 fi
10936 shlibpath_var=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath=yes
10938 hardcode_into_libs=yes
10939 ;;
10940
10941 newsos6)
10942 version_type=linux
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath=yes
10946 ;;
10947
10948 *nto* | *qnx*)
10949 version_type=qnx
10950 need_lib_prefix=no
10951 need_version=no
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953 soname_spec='${libname}${release}${shared_ext}$major'
10954 shlibpath_var=LD_LIBRARY_PATH
10955 shlibpath_overrides_runpath=no
10956 hardcode_into_libs=yes
10957 dynamic_linker='ldqnx.so'
10958 ;;
10959
10960 openbsd*)
10961 version_type=sunos
10962 sys_lib_dlsearch_path_spec="/usr/lib"
10963 need_lib_prefix=no
10964 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10965 case $host_os in
10966 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10967 *) need_version=no ;;
10968 esac
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10971 shlibpath_var=LD_LIBRARY_PATH
10972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10973 case $host_os in
10974 openbsd2.[89] | openbsd2.[89].*)
10975 shlibpath_overrides_runpath=no
10976 ;;
10977 *)
10978 shlibpath_overrides_runpath=yes
10979 ;;
10980 esac
10981 else
10982 shlibpath_overrides_runpath=yes
10983 fi
10984 ;;
10985
10986 os2*)
10987 libname_spec='$name'
10988 shrext_cmds=".dll"
10989 need_lib_prefix=no
10990 library_names_spec='$libname${shared_ext} $libname.a'
10991 dynamic_linker='OS/2 ld.exe'
10992 shlibpath_var=LIBPATH
10993 ;;
10994
10995 osf3* | osf4* | osf5*)
10996 version_type=osf
10997 need_lib_prefix=no
10998 need_version=no
10999 soname_spec='${libname}${release}${shared_ext}$major'
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001 shlibpath_var=LD_LIBRARY_PATH
11002 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11003 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11004 ;;
11005
11006 rdos*)
11007 dynamic_linker=no
11008 ;;
11009
11010 solaris*)
11011 version_type=linux
11012 need_lib_prefix=no
11013 need_version=no
11014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11015 soname_spec='${libname}${release}${shared_ext}$major'
11016 shlibpath_var=LD_LIBRARY_PATH
11017 shlibpath_overrides_runpath=yes
11018 hardcode_into_libs=yes
11019 # ldd complains unless libraries are executable
11020 postinstall_cmds='chmod +x $lib'
11021 ;;
11022
11023 sunos4*)
11024 version_type=sunos
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11026 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 shlibpath_overrides_runpath=yes
11029 if test "$with_gnu_ld" = yes; then
11030 need_lib_prefix=no
11031 fi
11032 need_version=yes
11033 ;;
11034
11035 sysv4 | sysv4.3*)
11036 version_type=linux
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038 soname_spec='${libname}${release}${shared_ext}$major'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 case $host_vendor in
11041 sni)
11042 shlibpath_overrides_runpath=no
11043 need_lib_prefix=no
11044 runpath_var=LD_RUN_PATH
11045 ;;
11046 siemens)
11047 need_lib_prefix=no
11048 ;;
11049 motorola)
11050 need_lib_prefix=no
11051 need_version=no
11052 shlibpath_overrides_runpath=no
11053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11054 ;;
11055 esac
11056 ;;
11057
11058 sysv4*MP*)
11059 if test -d /usr/nec ;then
11060 version_type=linux
11061 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11062 soname_spec='$libname${shared_ext}.$major'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 fi
11065 ;;
11066
11067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11068 version_type=freebsd-elf
11069 need_lib_prefix=no
11070 need_version=no
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11072 soname_spec='${libname}${release}${shared_ext}$major'
11073 shlibpath_var=LD_LIBRARY_PATH
11074 shlibpath_overrides_runpath=yes
11075 hardcode_into_libs=yes
11076 if test "$with_gnu_ld" = yes; then
11077 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11078 else
11079 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11080 case $host_os in
11081 sco3.2v5*)
11082 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11083 ;;
11084 esac
11085 fi
11086 sys_lib_dlsearch_path_spec='/usr/lib'
11087 ;;
11088
11089 tpf*)
11090 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11091 version_type=linux
11092 need_lib_prefix=no
11093 need_version=no
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 shlibpath_overrides_runpath=no
11097 hardcode_into_libs=yes
11098 ;;
11099
11100 uts4*)
11101 version_type=linux
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 ;;
11106
11107 *)
11108 dynamic_linker=no
11109 ;;
11110 esac
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11112 $as_echo "$dynamic_linker" >&6; }
11113 test "$dynamic_linker" = no && can_build_shared=no
11114
11115 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11116 if test "$GCC" = yes; then
11117 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11118 fi
11119
11120 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11121 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11122 fi
11123 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11124 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11125 fi
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11219 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11220 hardcode_action=
11221 if test -n "$hardcode_libdir_flag_spec" ||
11222 test -n "$runpath_var" ||
11223 test "X$hardcode_automatic" = "Xyes" ; then
11224
11225 # We can hardcode non-existent directories.
11226 if test "$hardcode_direct" != no &&
11227 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11228 # have to relink, otherwise we might link with an installed library
11229 # when we should be linking with a yet-to-be-installed one
11230 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11231 test "$hardcode_minus_L" != no; then
11232 # Linking always hardcodes the temporary library directory.
11233 hardcode_action=relink
11234 else
11235 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11236 hardcode_action=immediate
11237 fi
11238 else
11239 # We cannot hardcode anything, or else we can only hardcode existing
11240 # directories.
11241 hardcode_action=unsupported
11242 fi
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11244 $as_echo "$hardcode_action" >&6; }
11245
11246 if test "$hardcode_action" = relink ||
11247 test "$inherit_rpath" = yes; then
11248 # Fast installation is not supported
11249 enable_fast_install=no
11250 elif test "$shlibpath_overrides_runpath" = yes ||
11251 test "$enable_shared" = no; then
11252 # Fast installation is not necessary
11253 enable_fast_install=needless
11254 fi
11255
11256
11257
11258
11259
11260
11261 if test "x$enable_dlopen" != xyes; then
11262 enable_dlopen=unknown
11263 enable_dlopen_self=unknown
11264 enable_dlopen_self_static=unknown
11265 else
11266 lt_cv_dlopen=no
11267 lt_cv_dlopen_libs=
11268
11269 case $host_os in
11270 beos*)
11271 lt_cv_dlopen="load_add_on"
11272 lt_cv_dlopen_libs=
11273 lt_cv_dlopen_self=yes
11274 ;;
11275
11276 mingw* | pw32* | cegcc*)
11277 lt_cv_dlopen="LoadLibrary"
11278 lt_cv_dlopen_libs=
11279 ;;
11280
11281 cygwin*)
11282 lt_cv_dlopen="dlopen"
11283 lt_cv_dlopen_libs=
11284 ;;
11285
11286 darwin*)
11287 # if libdl is installed we need to link against it
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11289 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11290 if ${ac_cv_lib_dl_dlopen+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293 ac_check_lib_save_LIBS=$LIBS
11294 LIBS="-ldl $LIBS"
11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11297
11298 /* Override any GCC internal prototype to avoid an error.
11299 Use char because int might match the return type of a GCC
11300 builtin and then its argument prototype would still apply. */
11301 #ifdef __cplusplus
11302 extern "C"
11303 #endif
11304 char dlopen ();
11305 int
11306 main ()
11307 {
11308 return dlopen ();
11309 ;
11310 return 0;
11311 }
11312 _ACEOF
11313 if ac_fn_c_try_link "$LINENO"; then :
11314 ac_cv_lib_dl_dlopen=yes
11315 else
11316 ac_cv_lib_dl_dlopen=no
11317 fi
11318 rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320 LIBS=$ac_check_lib_save_LIBS
11321 fi
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11323 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11324 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11326 else
11327
11328 lt_cv_dlopen="dyld"
11329 lt_cv_dlopen_libs=
11330 lt_cv_dlopen_self=yes
11331
11332 fi
11333
11334 ;;
11335
11336 *)
11337 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11338 if test "x$ac_cv_func_shl_load" = xyes; then :
11339 lt_cv_dlopen="shl_load"
11340 else
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11342 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11343 if ${ac_cv_lib_dld_shl_load+:} false; then :
11344 $as_echo_n "(cached) " >&6
11345 else
11346 ac_check_lib_save_LIBS=$LIBS
11347 LIBS="-ldld $LIBS"
11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349 /* end confdefs.h. */
11350
11351 /* Override any GCC internal prototype to avoid an error.
11352 Use char because int might match the return type of a GCC
11353 builtin and then its argument prototype would still apply. */
11354 #ifdef __cplusplus
11355 extern "C"
11356 #endif
11357 char shl_load ();
11358 int
11359 main ()
11360 {
11361 return shl_load ();
11362 ;
11363 return 0;
11364 }
11365 _ACEOF
11366 if ac_fn_c_try_link "$LINENO"; then :
11367 ac_cv_lib_dld_shl_load=yes
11368 else
11369 ac_cv_lib_dld_shl_load=no
11370 fi
11371 rm -f core conftest.err conftest.$ac_objext \
11372 conftest$ac_exeext conftest.$ac_ext
11373 LIBS=$ac_check_lib_save_LIBS
11374 fi
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11376 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11377 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11378 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11379 else
11380 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11381 if test "x$ac_cv_func_dlopen" = xyes; then :
11382 lt_cv_dlopen="dlopen"
11383 else
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11385 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11386 if ${ac_cv_lib_dl_dlopen+:} false; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11389 ac_check_lib_save_LIBS=$LIBS
11390 LIBS="-ldl $LIBS"
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11393
11394 /* Override any GCC internal prototype to avoid an error.
11395 Use char because int might match the return type of a GCC
11396 builtin and then its argument prototype would still apply. */
11397 #ifdef __cplusplus
11398 extern "C"
11399 #endif
11400 char dlopen ();
11401 int
11402 main ()
11403 {
11404 return dlopen ();
11405 ;
11406 return 0;
11407 }
11408 _ACEOF
11409 if ac_fn_c_try_link "$LINENO"; then :
11410 ac_cv_lib_dl_dlopen=yes
11411 else
11412 ac_cv_lib_dl_dlopen=no
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11416 LIBS=$ac_check_lib_save_LIBS
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11419 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11420 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11422 else
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11424 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11425 if ${ac_cv_lib_svld_dlopen+:} false; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11428 ac_check_lib_save_LIBS=$LIBS
11429 LIBS="-lsvld $LIBS"
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11432
11433 /* Override any GCC internal prototype to avoid an error.
11434 Use char because int might match the return type of a GCC
11435 builtin and then its argument prototype would still apply. */
11436 #ifdef __cplusplus
11437 extern "C"
11438 #endif
11439 char dlopen ();
11440 int
11441 main ()
11442 {
11443 return dlopen ();
11444 ;
11445 return 0;
11446 }
11447 _ACEOF
11448 if ac_fn_c_try_link "$LINENO"; then :
11449 ac_cv_lib_svld_dlopen=yes
11450 else
11451 ac_cv_lib_svld_dlopen=no
11452 fi
11453 rm -f core conftest.err conftest.$ac_objext \
11454 conftest$ac_exeext conftest.$ac_ext
11455 LIBS=$ac_check_lib_save_LIBS
11456 fi
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11458 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11459 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11460 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11461 else
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11463 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11464 if ${ac_cv_lib_dld_dld_link+:} false; then :
11465 $as_echo_n "(cached) " >&6
11466 else
11467 ac_check_lib_save_LIBS=$LIBS
11468 LIBS="-ldld $LIBS"
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11471
11472 /* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
11475 #ifdef __cplusplus
11476 extern "C"
11477 #endif
11478 char dld_link ();
11479 int
11480 main ()
11481 {
11482 return dld_link ();
11483 ;
11484 return 0;
11485 }
11486 _ACEOF
11487 if ac_fn_c_try_link "$LINENO"; then :
11488 ac_cv_lib_dld_dld_link=yes
11489 else
11490 ac_cv_lib_dld_dld_link=no
11491 fi
11492 rm -f core conftest.err conftest.$ac_objext \
11493 conftest$ac_exeext conftest.$ac_ext
11494 LIBS=$ac_check_lib_save_LIBS
11495 fi
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11497 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11498 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11499 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11500 fi
11501
11502
11503 fi
11504
11505
11506 fi
11507
11508
11509 fi
11510
11511
11512 fi
11513
11514
11515 fi
11516
11517 ;;
11518 esac
11519
11520 if test "x$lt_cv_dlopen" != xno; then
11521 enable_dlopen=yes
11522 else
11523 enable_dlopen=no
11524 fi
11525
11526 case $lt_cv_dlopen in
11527 dlopen)
11528 save_CPPFLAGS="$CPPFLAGS"
11529 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11530
11531 save_LDFLAGS="$LDFLAGS"
11532 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11533
11534 save_LIBS="$LIBS"
11535 LIBS="$lt_cv_dlopen_libs $LIBS"
11536
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11538 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11539 if ${lt_cv_dlopen_self+:} false; then :
11540 $as_echo_n "(cached) " >&6
11541 else
11542 if test "$cross_compiling" = yes; then :
11543 lt_cv_dlopen_self=cross
11544 else
11545 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11546 lt_status=$lt_dlunknown
11547 cat > conftest.$ac_ext <<_LT_EOF
11548 #line $LINENO "configure"
11549 #include "confdefs.h"
11550
11551 #if HAVE_DLFCN_H
11552 #include <dlfcn.h>
11553 #endif
11554
11555 #include <stdio.h>
11556
11557 #ifdef RTLD_GLOBAL
11558 # define LT_DLGLOBAL RTLD_GLOBAL
11559 #else
11560 # ifdef DL_GLOBAL
11561 # define LT_DLGLOBAL DL_GLOBAL
11562 # else
11563 # define LT_DLGLOBAL 0
11564 # endif
11565 #endif
11566
11567 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11568 find out it does not work in some platform. */
11569 #ifndef LT_DLLAZY_OR_NOW
11570 # ifdef RTLD_LAZY
11571 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11572 # else
11573 # ifdef DL_LAZY
11574 # define LT_DLLAZY_OR_NOW DL_LAZY
11575 # else
11576 # ifdef RTLD_NOW
11577 # define LT_DLLAZY_OR_NOW RTLD_NOW
11578 # else
11579 # ifdef DL_NOW
11580 # define LT_DLLAZY_OR_NOW DL_NOW
11581 # else
11582 # define LT_DLLAZY_OR_NOW 0
11583 # endif
11584 # endif
11585 # endif
11586 # endif
11587 #endif
11588
11589 /* When -fvisbility=hidden is used, assume the code has been annotated
11590 correspondingly for the symbols needed. */
11591 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11592 int fnord () __attribute__((visibility("default")));
11593 #endif
11594
11595 int fnord () { return 42; }
11596 int main ()
11597 {
11598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11599 int status = $lt_dlunknown;
11600
11601 if (self)
11602 {
11603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11604 else
11605 {
11606 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11607 else puts (dlerror ());
11608 }
11609 /* dlclose (self); */
11610 }
11611 else
11612 puts (dlerror ());
11613
11614 return status;
11615 }
11616 _LT_EOF
11617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11618 (eval $ac_link) 2>&5
11619 ac_status=$?
11620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11621 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11622 (./conftest; exit; ) >&5 2>/dev/null
11623 lt_status=$?
11624 case x$lt_status in
11625 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11626 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11627 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11628 esac
11629 else :
11630 # compilation failed
11631 lt_cv_dlopen_self=no
11632 fi
11633 fi
11634 rm -fr conftest*
11635
11636
11637 fi
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11639 $as_echo "$lt_cv_dlopen_self" >&6; }
11640
11641 if test "x$lt_cv_dlopen_self" = xyes; then
11642 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11644 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11645 if ${lt_cv_dlopen_self_static+:} false; then :
11646 $as_echo_n "(cached) " >&6
11647 else
11648 if test "$cross_compiling" = yes; then :
11649 lt_cv_dlopen_self_static=cross
11650 else
11651 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11652 lt_status=$lt_dlunknown
11653 cat > conftest.$ac_ext <<_LT_EOF
11654 #line $LINENO "configure"
11655 #include "confdefs.h"
11656
11657 #if HAVE_DLFCN_H
11658 #include <dlfcn.h>
11659 #endif
11660
11661 #include <stdio.h>
11662
11663 #ifdef RTLD_GLOBAL
11664 # define LT_DLGLOBAL RTLD_GLOBAL
11665 #else
11666 # ifdef DL_GLOBAL
11667 # define LT_DLGLOBAL DL_GLOBAL
11668 # else
11669 # define LT_DLGLOBAL 0
11670 # endif
11671 #endif
11672
11673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11674 find out it does not work in some platform. */
11675 #ifndef LT_DLLAZY_OR_NOW
11676 # ifdef RTLD_LAZY
11677 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11678 # else
11679 # ifdef DL_LAZY
11680 # define LT_DLLAZY_OR_NOW DL_LAZY
11681 # else
11682 # ifdef RTLD_NOW
11683 # define LT_DLLAZY_OR_NOW RTLD_NOW
11684 # else
11685 # ifdef DL_NOW
11686 # define LT_DLLAZY_OR_NOW DL_NOW
11687 # else
11688 # define LT_DLLAZY_OR_NOW 0
11689 # endif
11690 # endif
11691 # endif
11692 # endif
11693 #endif
11694
11695 /* When -fvisbility=hidden is used, assume the code has been annotated
11696 correspondingly for the symbols needed. */
11697 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11698 int fnord () __attribute__((visibility("default")));
11699 #endif
11700
11701 int fnord () { return 42; }
11702 int main ()
11703 {
11704 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11705 int status = $lt_dlunknown;
11706
11707 if (self)
11708 {
11709 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11710 else
11711 {
11712 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11713 else puts (dlerror ());
11714 }
11715 /* dlclose (self); */
11716 }
11717 else
11718 puts (dlerror ());
11719
11720 return status;
11721 }
11722 _LT_EOF
11723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11724 (eval $ac_link) 2>&5
11725 ac_status=$?
11726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11727 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11728 (./conftest; exit; ) >&5 2>/dev/null
11729 lt_status=$?
11730 case x$lt_status in
11731 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11732 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11733 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11734 esac
11735 else :
11736 # compilation failed
11737 lt_cv_dlopen_self_static=no
11738 fi
11739 fi
11740 rm -fr conftest*
11741
11742
11743 fi
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11745 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11746 fi
11747
11748 CPPFLAGS="$save_CPPFLAGS"
11749 LDFLAGS="$save_LDFLAGS"
11750 LIBS="$save_LIBS"
11751 ;;
11752 esac
11753
11754 case $lt_cv_dlopen_self in
11755 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11756 *) enable_dlopen_self=unknown ;;
11757 esac
11758
11759 case $lt_cv_dlopen_self_static in
11760 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11761 *) enable_dlopen_self_static=unknown ;;
11762 esac
11763 fi
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781 striplib=
11782 old_striplib=
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11784 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11785 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11786 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11787 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789 $as_echo "yes" >&6; }
11790 else
11791 # FIXME - insert some real tests, host_os isn't really good enough
11792 case $host_os in
11793 darwin*)
11794 if test -n "$STRIP" ; then
11795 striplib="$STRIP -x"
11796 old_striplib="$STRIP -S"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11798 $as_echo "yes" >&6; }
11799 else
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11802 fi
11803 ;;
11804 *)
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11807 ;;
11808 esac
11809 fi
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822 # Report which library types will actually be built
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11824 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11826 $as_echo "$can_build_shared" >&6; }
11827
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11829 $as_echo_n "checking whether to build shared libraries... " >&6; }
11830 test "$can_build_shared" = "no" && enable_shared=no
11831
11832 # On AIX, shared libraries and static libraries use the same namespace, and
11833 # are all built from PIC.
11834 case $host_os in
11835 aix3*)
11836 test "$enable_shared" = yes && enable_static=no
11837 if test -n "$RANLIB"; then
11838 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11839 postinstall_cmds='$RANLIB $lib'
11840 fi
11841 ;;
11842
11843 aix[4-9]*)
11844 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11845 test "$enable_shared" = yes && enable_static=no
11846 fi
11847 ;;
11848 esac
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11850 $as_echo "$enable_shared" >&6; }
11851
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11853 $as_echo_n "checking whether to build static libraries... " >&6; }
11854 # Make sure either enable_shared or enable_static is yes.
11855 test "$enable_shared" = yes || enable_static=yes
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11857 $as_echo "$enable_static" >&6; }
11858
11859
11860
11861
11862 fi
11863 ac_ext=c
11864 ac_cpp='$CPP $CPPFLAGS'
11865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11868
11869 CC="$lt_save_CC"
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883 ac_config_commands="$ac_config_commands libtool"
11884
11885
11886
11887
11888 # Only expand once:
11889
11890
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11892 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11893 if ${libltdl_cv_shlibext+:} false; then :
11894 $as_echo_n "(cached) " >&6
11895 else
11896
11897 module=yes
11898 eval libltdl_cv_shlibext=$shrext_cmds
11899
11900 fi
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11902 $as_echo "$libltdl_cv_shlibext" >&6; }
11903 if test -n "$libltdl_cv_shlibext"; then
11904
11905 cat >>confdefs.h <<_ACEOF
11906 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11907 _ACEOF
11908
11909 fi
11910
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11912 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11913 if ${lt_cv_module_path_var+:} false; then :
11914 $as_echo_n "(cached) " >&6
11915 else
11916 lt_cv_module_path_var="$shlibpath_var"
11917 fi
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11919 $as_echo "$lt_cv_module_path_var" >&6; }
11920 if test -n "$lt_cv_module_path_var"; then
11921
11922 cat >>confdefs.h <<_ACEOF
11923 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11924 _ACEOF
11925
11926 fi
11927
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11929 $as_echo_n "checking for the default library search path... " >&6; }
11930 if ${lt_cv_sys_dlsearch_path+:} false; then :
11931 $as_echo_n "(cached) " >&6
11932 else
11933 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11934 fi
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11936 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11937 if test -n "$lt_cv_sys_dlsearch_path"; then
11938 sys_dlsearch_path=
11939 for dir in $lt_cv_sys_dlsearch_path; do
11940 if test -z "$sys_dlsearch_path"; then
11941 sys_dlsearch_path="$dir"
11942 else
11943 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11944 fi
11945 done
11946
11947 cat >>confdefs.h <<_ACEOF
11948 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11949 _ACEOF
11950
11951 fi
11952
11953
11954 LT_DLLOADERS=
11955
11956
11957 ac_ext=c
11958 ac_cpp='$CPP $CPPFLAGS'
11959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11962
11963
11964 LIBADD_DLOPEN=
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11966 $as_echo_n "checking for library containing dlopen... " >&6; }
11967 if ${ac_cv_search_dlopen+:} false; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 ac_func_search_save_LIBS=$LIBS
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h. */
11973
11974 /* Override any GCC internal prototype to avoid an error.
11975 Use char because int might match the return type of a GCC
11976 builtin and then its argument prototype would still apply. */
11977 #ifdef __cplusplus
11978 extern "C"
11979 #endif
11980 char dlopen ();
11981 int
11982 main ()
11983 {
11984 return dlopen ();
11985 ;
11986 return 0;
11987 }
11988 _ACEOF
11989 for ac_lib in '' dl; do
11990 if test -z "$ac_lib"; then
11991 ac_res="none required"
11992 else
11993 ac_res=-l$ac_lib
11994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11995 fi
11996 if ac_fn_c_try_link "$LINENO"; then :
11997 ac_cv_search_dlopen=$ac_res
11998 fi
11999 rm -f core conftest.err conftest.$ac_objext \
12000 conftest$ac_exeext
12001 if ${ac_cv_search_dlopen+:} false; then :
12002 break
12003 fi
12004 done
12005 if ${ac_cv_search_dlopen+:} false; then :
12006
12007 else
12008 ac_cv_search_dlopen=no
12009 fi
12010 rm conftest.$ac_ext
12011 LIBS=$ac_func_search_save_LIBS
12012 fi
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12014 $as_echo "$ac_cv_search_dlopen" >&6; }
12015 ac_res=$ac_cv_search_dlopen
12016 if test "$ac_res" != no; then :
12017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12018
12019 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12020
12021 if test "$ac_cv_search_dlopen" != "none required" ; then
12022 LIBADD_DLOPEN="-ldl"
12023 fi
12024 libltdl_cv_lib_dl_dlopen="yes"
12025 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12026 else
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h. */
12029 #if HAVE_DLFCN_H
12030 # include <dlfcn.h>
12031 #endif
12032
12033 int
12034 main ()
12035 {
12036 dlopen(0, 0);
12037 ;
12038 return 0;
12039 }
12040 _ACEOF
12041 if ac_fn_c_try_link "$LINENO"; then :
12042
12043 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12044
12045 libltdl_cv_func_dlopen="yes"
12046 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12047 else
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12049 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12050 if ${ac_cv_lib_svld_dlopen+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 ac_check_lib_save_LIBS=$LIBS
12054 LIBS="-lsvld $LIBS"
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12057
12058 /* Override any GCC internal prototype to avoid an error.
12059 Use char because int might match the return type of a GCC
12060 builtin and then its argument prototype would still apply. */
12061 #ifdef __cplusplus
12062 extern "C"
12063 #endif
12064 char dlopen ();
12065 int
12066 main ()
12067 {
12068 return dlopen ();
12069 ;
12070 return 0;
12071 }
12072 _ACEOF
12073 if ac_fn_c_try_link "$LINENO"; then :
12074 ac_cv_lib_svld_dlopen=yes
12075 else
12076 ac_cv_lib_svld_dlopen=no
12077 fi
12078 rm -f core conftest.err conftest.$ac_objext \
12079 conftest$ac_exeext conftest.$ac_ext
12080 LIBS=$ac_check_lib_save_LIBS
12081 fi
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12083 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12084 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12085
12086 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12087
12088 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12089 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12090 fi
12091
12092 fi
12093 rm -f core conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext
12095 fi
12096
12097 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12098 then
12099 lt_save_LIBS="$LIBS"
12100 LIBS="$LIBS $LIBADD_DLOPEN"
12101 for ac_func in dlerror
12102 do :
12103 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12104 if test "x$ac_cv_func_dlerror" = xyes; then :
12105 cat >>confdefs.h <<_ACEOF
12106 #define HAVE_DLERROR 1
12107 _ACEOF
12108
12109 fi
12110 done
12111
12112 LIBS="$lt_save_LIBS"
12113 fi
12114
12115
12116 LIBADD_SHL_LOAD=
12117 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12118 if test "x$ac_cv_func_shl_load" = xyes; then :
12119
12120 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12121
12122 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12123 else
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12125 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12126 if ${ac_cv_lib_dld_shl_load+:} false; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129 ac_check_lib_save_LIBS=$LIBS
12130 LIBS="-ldld $LIBS"
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133
12134 /* Override any GCC internal prototype to avoid an error.
12135 Use char because int might match the return type of a GCC
12136 builtin and then its argument prototype would still apply. */
12137 #ifdef __cplusplus
12138 extern "C"
12139 #endif
12140 char shl_load ();
12141 int
12142 main ()
12143 {
12144 return shl_load ();
12145 ;
12146 return 0;
12147 }
12148 _ACEOF
12149 if ac_fn_c_try_link "$LINENO"; then :
12150 ac_cv_lib_dld_shl_load=yes
12151 else
12152 ac_cv_lib_dld_shl_load=no
12153 fi
12154 rm -f core conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
12156 LIBS=$ac_check_lib_save_LIBS
12157 fi
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12159 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12160 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12161
12162 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12163
12164 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12165 LIBADD_SHL_LOAD="-ldld"
12166 fi
12167
12168 fi
12169
12170
12171
12172 case $host_os in
12173 darwin[1567].*)
12174 # We only want this for pre-Mac OS X 10.4.
12175 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12176 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12177
12178 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12179
12180 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12181 fi
12182
12183 ;;
12184 beos*)
12185 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12186 ;;
12187 cygwin* | mingw* | os2* | pw32*)
12188 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12189 "
12190 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12191 ac_have_decl=1
12192 else
12193 ac_have_decl=0
12194 fi
12195
12196 cat >>confdefs.h <<_ACEOF
12197 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12198 _ACEOF
12199
12200 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12201 ;;
12202 esac
12203
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12205 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12206 if ${ac_cv_lib_dld_dld_link+:} false; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 ac_check_lib_save_LIBS=$LIBS
12210 LIBS="-ldld $LIBS"
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12213
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 char dld_link ();
12221 int
12222 main ()
12223 {
12224 return dld_link ();
12225 ;
12226 return 0;
12227 }
12228 _ACEOF
12229 if ac_fn_c_try_link "$LINENO"; then :
12230 ac_cv_lib_dld_dld_link=yes
12231 else
12232 ac_cv_lib_dld_dld_link=no
12233 fi
12234 rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12236 LIBS=$ac_check_lib_save_LIBS
12237 fi
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12239 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12240 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12241
12242 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12243
12244 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12245 fi
12246
12247
12248
12249
12250 LT_DLPREOPEN=
12251 if test -n "$LT_DLLOADERS"
12252 then
12253 for lt_loader in $LT_DLLOADERS; do
12254 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12255 done
12256
12257 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12258
12259 fi
12260
12261
12262 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12263
12264
12265 ac_ext=c
12266 ac_cpp='$CPP $CPPFLAGS'
12267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12270
12271
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12273 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12274 if ${lt_cv_sys_symbol_underscore+:} false; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12277 lt_cv_sys_symbol_underscore=no
12278 cat > conftest.$ac_ext <<_LT_EOF
12279 void nm_test_func(){}
12280 int main(){nm_test_func;return 0;}
12281 _LT_EOF
12282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12283 (eval $ac_compile) 2>&5
12284 ac_status=$?
12285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12286 test $ac_status = 0; }; then
12287 # Now try to grab the symbols.
12288 ac_nlist=conftest.nm
12289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12290 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12291 ac_status=$?
12292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12293 test $ac_status = 0; } && test -s "$ac_nlist"; then
12294 # See whether the symbols have a leading underscore.
12295 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12296 lt_cv_sys_symbol_underscore=yes
12297 else
12298 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12299 :
12300 else
12301 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12302 fi
12303 fi
12304 else
12305 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12306 fi
12307 else
12308 echo "configure: failed program was:" >&5
12309 cat conftest.c >&5
12310 fi
12311 rm -rf conftest*
12312
12313 fi
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12315 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12316 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12317
12318
12319 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12320 if test x"$libltdl_cv_func_dlopen" = xyes ||
12321 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12323 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12324 if ${libltdl_cv_need_uscore+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 libltdl_cv_need_uscore=unknown
12328 save_LIBS="$LIBS"
12329 LIBS="$LIBS $LIBADD_DLOPEN"
12330 if test "$cross_compiling" = yes; then :
12331 libltdl_cv_need_uscore=cross
12332 else
12333 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12334 lt_status=$lt_dlunknown
12335 cat > conftest.$ac_ext <<_LT_EOF
12336 #line $LINENO "configure"
12337 #include "confdefs.h"
12338
12339 #if HAVE_DLFCN_H
12340 #include <dlfcn.h>
12341 #endif
12342
12343 #include <stdio.h>
12344
12345 #ifdef RTLD_GLOBAL
12346 # define LT_DLGLOBAL RTLD_GLOBAL
12347 #else
12348 # ifdef DL_GLOBAL
12349 # define LT_DLGLOBAL DL_GLOBAL
12350 # else
12351 # define LT_DLGLOBAL 0
12352 # endif
12353 #endif
12354
12355 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12356 find out it does not work in some platform. */
12357 #ifndef LT_DLLAZY_OR_NOW
12358 # ifdef RTLD_LAZY
12359 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12360 # else
12361 # ifdef DL_LAZY
12362 # define LT_DLLAZY_OR_NOW DL_LAZY
12363 # else
12364 # ifdef RTLD_NOW
12365 # define LT_DLLAZY_OR_NOW RTLD_NOW
12366 # else
12367 # ifdef DL_NOW
12368 # define LT_DLLAZY_OR_NOW DL_NOW
12369 # else
12370 # define LT_DLLAZY_OR_NOW 0
12371 # endif
12372 # endif
12373 # endif
12374 # endif
12375 #endif
12376
12377 /* When -fvisbility=hidden is used, assume the code has been annotated
12378 correspondingly for the symbols needed. */
12379 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12380 int fnord () __attribute__((visibility("default")));
12381 #endif
12382
12383 int fnord () { return 42; }
12384 int main ()
12385 {
12386 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12387 int status = $lt_dlunknown;
12388
12389 if (self)
12390 {
12391 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12392 else
12393 {
12394 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12395 else puts (dlerror ());
12396 }
12397 /* dlclose (self); */
12398 }
12399 else
12400 puts (dlerror ());
12401
12402 return status;
12403 }
12404 _LT_EOF
12405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12406 (eval $ac_link) 2>&5
12407 ac_status=$?
12408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12409 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12410 (./conftest; exit; ) >&5 2>/dev/null
12411 lt_status=$?
12412 case x$lt_status in
12413 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12414 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12415 x$lt_dlunknown|x*) ;;
12416 esac
12417 else :
12418 # compilation failed
12419
12420 fi
12421 fi
12422 rm -fr conftest*
12423
12424 LIBS="$save_LIBS"
12425
12426 fi
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12428 $as_echo "$libltdl_cv_need_uscore" >&6; }
12429 fi
12430 fi
12431
12432 if test x"$libltdl_cv_need_uscore" = xyes; then
12433
12434 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12435
12436 fi
12437
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12439 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12440 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 # PORTME does your system automatically load deplibs for dlopen?
12444 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12445 # For now, we just catch OSes we know something about -- in the
12446 # future, we'll try test this programmatically.
12447 lt_cv_sys_dlopen_deplibs=unknown
12448 case $host_os in
12449 aix3*|aix4.1.*|aix4.2.*)
12450 # Unknown whether this is true for these versions of AIX, but
12451 # we want this `case' here to explicitly catch those versions.
12452 lt_cv_sys_dlopen_deplibs=unknown
12453 ;;
12454 aix[4-9]*)
12455 lt_cv_sys_dlopen_deplibs=yes
12456 ;;
12457 amigaos*)
12458 case $host_cpu in
12459 powerpc)
12460 lt_cv_sys_dlopen_deplibs=no
12461 ;;
12462 esac
12463 ;;
12464 darwin*)
12465 # Assuming the user has installed a libdl from somewhere, this is true
12466 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12467 lt_cv_sys_dlopen_deplibs=yes
12468 ;;
12469 freebsd* | dragonfly*)
12470 lt_cv_sys_dlopen_deplibs=yes
12471 ;;
12472 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12473 # GNU and its variants, using gnu ld.so (Glibc)
12474 lt_cv_sys_dlopen_deplibs=yes
12475 ;;
12476 hpux10*|hpux11*)
12477 lt_cv_sys_dlopen_deplibs=yes
12478 ;;
12479 interix*)
12480 lt_cv_sys_dlopen_deplibs=yes
12481 ;;
12482 irix[12345]*|irix6.[01]*)
12483 # Catch all versions of IRIX before 6.2, and indicate that we don't
12484 # know how it worked for any of those versions.
12485 lt_cv_sys_dlopen_deplibs=unknown
12486 ;;
12487 irix*)
12488 # The case above catches anything before 6.2, and it's known that
12489 # at 6.2 and later dlopen does load deplibs.
12490 lt_cv_sys_dlopen_deplibs=yes
12491 ;;
12492 netbsd*)
12493 lt_cv_sys_dlopen_deplibs=yes
12494 ;;
12495 openbsd*)
12496 lt_cv_sys_dlopen_deplibs=yes
12497 ;;
12498 osf[1234]*)
12499 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12500 # it did *not* use an RPATH in a shared library to find objects the
12501 # library depends on, so we explicitly say `no'.
12502 lt_cv_sys_dlopen_deplibs=no
12503 ;;
12504 osf5.0|osf5.0a|osf5.1)
12505 # dlopen *does* load deplibs and with the right loader patch applied
12506 # it even uses RPATH in a shared library to search for shared objects
12507 # that the library depends on, but there's no easy way to know if that
12508 # patch is installed. Since this is the case, all we can really
12509 # say is unknown -- it depends on the patch being installed. If
12510 # it is, this changes to `yes'. Without it, it would be `no'.
12511 lt_cv_sys_dlopen_deplibs=unknown
12512 ;;
12513 osf*)
12514 # the two cases above should catch all versions of osf <= 5.1. Read
12515 # the comments above for what we know about them.
12516 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12517 # is used to find them so we can finally say `yes'.
12518 lt_cv_sys_dlopen_deplibs=yes
12519 ;;
12520 qnx*)
12521 lt_cv_sys_dlopen_deplibs=yes
12522 ;;
12523 solaris*)
12524 lt_cv_sys_dlopen_deplibs=yes
12525 ;;
12526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12527 libltdl_cv_sys_dlopen_deplibs=yes
12528 ;;
12529 esac
12530
12531 fi
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12533 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12534 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12535
12536 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12537
12538 fi
12539
12540 :
12541
12542 for ac_header in argz.h
12543 do :
12544 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12545 "
12546 if test "x$ac_cv_header_argz_h" = xyes; then :
12547 cat >>confdefs.h <<_ACEOF
12548 #define HAVE_ARGZ_H 1
12549 _ACEOF
12550
12551 fi
12552
12553 done
12554
12555
12556 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12557 # include <argz.h>
12558 #endif
12559 "
12560 if test "x$ac_cv_type_error_t" = xyes; then :
12561
12562 cat >>confdefs.h <<_ACEOF
12563 #define HAVE_ERROR_T 1
12564 _ACEOF
12565
12566
12567 else
12568
12569 $as_echo "#define error_t int" >>confdefs.h
12570
12571
12572 $as_echo "#define __error_t_defined 1" >>confdefs.h
12573
12574 fi
12575
12576
12577 ARGZ_H=
12578 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12579 argz_next argz_stringify
12580 do :
12581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12583 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12584 cat >>confdefs.h <<_ACEOF
12585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12586 _ACEOF
12587
12588 else
12589 ARGZ_H=argz.h;
12590
12591 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12592
12593 fi
12594 done
12595
12596
12597 if test -z "$ARGZ_H"; then :
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12599 $as_echo_n "checking if argz actually works... " >&6; }
12600 if ${lt_cv_sys_argz_works+:} false; then :
12601 $as_echo_n "(cached) " >&6
12602 else
12603 case $host_os in #(
12604 *cygwin*)
12605 lt_cv_sys_argz_works=no
12606 if test "$cross_compiling" != no; then
12607 lt_cv_sys_argz_works="guessing no"
12608 else
12609 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12610 save_IFS=$IFS
12611 IFS=-.
12612 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12613 IFS=$save_IFS
12614 lt_os_major=${2-0}
12615 lt_os_minor=${3-0}
12616 lt_os_micro=${4-0}
12617 if test "$lt_os_major" -gt 1 \
12618 || { test "$lt_os_major" -eq 1 \
12619 && { test "$lt_os_minor" -gt 5 \
12620 || { test "$lt_os_minor" -eq 5 \
12621 && test "$lt_os_micro" -gt 24; }; }; }; then
12622 lt_cv_sys_argz_works=yes
12623 fi
12624 fi
12625 ;; #(
12626 *) lt_cv_sys_argz_works=yes ;;
12627 esac
12628 fi
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12630 $as_echo "$lt_cv_sys_argz_works" >&6; }
12631 if test "$lt_cv_sys_argz_works" = yes; then :
12632
12633 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12634
12635 else
12636 ARGZ_H=argz.h
12637
12638
12639 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12640
12641 fi
12642 fi
12643
12644
12645
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12647 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12648 if ${libltdl_cv_preloaded_symbols+:} false; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12652 libltdl_cv_preloaded_symbols=yes
12653 else
12654 libltdl_cv_preloaded_symbols=no
12655 fi
12656
12657 fi
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12659 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12660 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12661
12662 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12663
12664 fi
12665
12666 # Set options
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678 # Check whether --with-included_ltdl was given.
12679 if test "${with_included_ltdl+set}" = set; then :
12680 withval=$with_included_ltdl;
12681 fi
12682
12683
12684 if test "x$with_included_ltdl" != xyes; then
12685 # We are not being forced to use the included libltdl sources, so
12686 # decide whether there is a useful installed version we can use.
12687 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12688
12689 "
12690 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12691 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12692 #include <ltdl.h>
12693 "
12694 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12696 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12697 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700 ac_check_lib_save_LIBS=$LIBS
12701 LIBS="-lltdl $LIBS"
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704
12705 /* Override any GCC internal prototype to avoid an error.
12706 Use char because int might match the return type of a GCC
12707 builtin and then its argument prototype would still apply. */
12708 #ifdef __cplusplus
12709 extern "C"
12710 #endif
12711 char lt_dladvise_preload ();
12712 int
12713 main ()
12714 {
12715 return lt_dladvise_preload ();
12716 ;
12717 return 0;
12718 }
12719 _ACEOF
12720 if ac_fn_c_try_link "$LINENO"; then :
12721 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12722 else
12723 ac_cv_lib_ltdl_lt_dladvise_preload=no
12724 fi
12725 rm -f core conftest.err conftest.$ac_objext \
12726 conftest$ac_exeext conftest.$ac_ext
12727 LIBS=$ac_check_lib_save_LIBS
12728 fi
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12730 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12731 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12732 with_included_ltdl=no
12733 else
12734 with_included_ltdl=yes
12735 fi
12736
12737 else
12738 with_included_ltdl=yes
12739 fi
12740
12741 else
12742 with_included_ltdl=yes
12743 fi
12744
12745
12746 fi
12747
12748
12749
12750
12751 # Check whether --with-ltdl_include was given.
12752 if test "${with_ltdl_include+set}" = set; then :
12753 withval=$with_ltdl_include;
12754 fi
12755
12756
12757 if test -n "$with_ltdl_include"; then
12758 if test -f "$with_ltdl_include/ltdl.h"; then :
12759 else
12760 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12761 fi
12762 else
12763 with_ltdl_include=no
12764 fi
12765
12766
12767 # Check whether --with-ltdl_lib was given.
12768 if test "${with_ltdl_lib+set}" = set; then :
12769 withval=$with_ltdl_lib;
12770 fi
12771
12772
12773 if test -n "$with_ltdl_lib"; then
12774 if test -f "$with_ltdl_lib/libltdl.la"; then :
12775 else
12776 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12777 fi
12778 else
12779 with_ltdl_lib=no
12780 fi
12781
12782 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12783 ,yes,no,no,)
12784 case $enable_ltdl_convenience in
12785 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12786 "") enable_ltdl_convenience=yes
12787 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12788 esac
12789 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12790 LTDLDEPS=$LIBLTDL
12791 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12792
12793
12794
12795
12796
12797 # For backwards non-gettext consistent compatibility...
12798 INCLTDL="$LTDLINCL"
12799
12800
12801 ;;
12802 ,no,no,no,)
12803 # If the included ltdl is not to be used, then use the
12804 # preinstalled libltdl we found.
12805
12806 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12807
12808 LIBLTDL=-lltdl
12809 LTDLDEPS=
12810 LTDLINCL=
12811 ;;
12812 ,no*,no,*)
12813 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12814 ;;
12815 *) with_included_ltdl=no
12816 LIBLTDL="-L$with_ltdl_lib -lltdl"
12817 LTDLDEPS=
12818 LTDLINCL="-I$with_ltdl_include"
12819 ;;
12820 esac
12821 INCLTDL="$LTDLINCL"
12822
12823 # Report our decision...
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12825 $as_echo_n "checking where to find libltdl headers... " >&6; }
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12827 $as_echo "$LTDLINCL" >&6; }
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12829 $as_echo_n "checking where to find libltdl library... " >&6; }
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12831 $as_echo "$LIBLTDL" >&6; }
12832
12833
12834
12835 # Check whether --enable-ltdl-install was given.
12836 if test "${enable_ltdl_install+set}" = set; then :
12837 enableval=$enable_ltdl_install;
12838 fi
12839
12840
12841 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12842 *yes*) ;;
12843 *) enable_ltdl_convenience=yes ;;
12844 esac
12845
12846 if test x"${enable_ltdl_install-no}" != xno; then
12847 INSTALL_LTDL_TRUE=
12848 INSTALL_LTDL_FALSE='#'
12849 else
12850 INSTALL_LTDL_TRUE='#'
12851 INSTALL_LTDL_FALSE=
12852 fi
12853
12854 if test x"${enable_ltdl_convenience-no}" != xno; then
12855 CONVENIENCE_LTDL_TRUE=
12856 CONVENIENCE_LTDL_FALSE='#'
12857 else
12858 CONVENIENCE_LTDL_TRUE='#'
12859 CONVENIENCE_LTDL_FALSE=
12860 fi
12861
12862
12863
12864
12865
12866
12867 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12868 # the user used. This is so that ltdl.h can pick up the parent projects
12869 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12870 # definitions required by ltdl.c.
12871 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12872
12873
12874
12875 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12876 do :
12877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12878 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12879 "
12880 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12881 cat >>confdefs.h <<_ACEOF
12882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12883 _ACEOF
12884
12885 fi
12886
12887 done
12888
12889
12890 for ac_func in closedir opendir readdir
12891 do :
12892 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12893 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12894 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12895 cat >>confdefs.h <<_ACEOF
12896 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12897 _ACEOF
12898
12899 else
12900
12901
12902 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12903
12904 fi
12905 done
12906
12907 for ac_func in strlcat strlcpy
12908 do :
12909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12910 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12911 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12912 cat >>confdefs.h <<_ACEOF
12913 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12914 _ACEOF
12915
12916 else
12917
12918
12919 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12920
12921 fi
12922 done
12923
12924
12925
12926 cat >>confdefs.h <<_ACEOF
12927 #define LT_LIBEXT "$libext"
12928 _ACEOF
12929
12930
12931 name=
12932 eval "lt_libprefix=\"$libname_spec\""
12933
12934 cat >>confdefs.h <<_ACEOF
12935 #define LT_LIBPREFIX "$lt_libprefix"
12936 _ACEOF
12937
12938
12939 name=ltdl
12940 eval "LTDLOPEN=\"$libname_spec\""
12941
12942
12943
12944
12945
12946
12947
12948
12949 # Only expand once:
12950
12951
12952 LIBTOOL="$LIBTOOL --silent"
12953
12954 # Checks for libraries.
12955
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12957 $as_echo_n "checking for library containing socket... " >&6; }
12958 if ${ac_cv_search_socket+:} false; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961 ac_func_search_save_LIBS=$LIBS
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964
12965 /* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12968 #ifdef __cplusplus
12969 extern "C"
12970 #endif
12971 char socket ();
12972 int
12973 main ()
12974 {
12975 return socket ();
12976 ;
12977 return 0;
12978 }
12979 _ACEOF
12980 for ac_lib in '' socket; do
12981 if test -z "$ac_lib"; then
12982 ac_res="none required"
12983 else
12984 ac_res=-l$ac_lib
12985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12986 fi
12987 if ac_fn_c_try_link "$LINENO"; then :
12988 ac_cv_search_socket=$ac_res
12989 fi
12990 rm -f core conftest.err conftest.$ac_objext \
12991 conftest$ac_exeext
12992 if ${ac_cv_search_socket+:} false; then :
12993 break
12994 fi
12995 done
12996 if ${ac_cv_search_socket+:} false; then :
12997
12998 else
12999 ac_cv_search_socket=no
13000 fi
13001 rm conftest.$ac_ext
13002 LIBS=$ac_func_search_save_LIBS
13003 fi
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13005 $as_echo "$ac_cv_search_socket" >&6; }
13006 ac_res=$ac_cv_search_socket
13007 if test "$ac_res" != no; then :
13008 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13009
13010 else
13011 as_fn_error $? "socket library not found" "$LINENO" 5
13012 fi
13013
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13015 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13016 if ${ac_cv_search_inet_ntoa+:} false; then :
13017 $as_echo_n "(cached) " >&6
13018 else
13019 ac_func_search_save_LIBS=$LIBS
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022
13023 /* Override any GCC internal prototype to avoid an error.
13024 Use char because int might match the return type of a GCC
13025 builtin and then its argument prototype would still apply. */
13026 #ifdef __cplusplus
13027 extern "C"
13028 #endif
13029 char inet_ntoa ();
13030 int
13031 main ()
13032 {
13033 return inet_ntoa ();
13034 ;
13035 return 0;
13036 }
13037 _ACEOF
13038 for ac_lib in '' nsl; do
13039 if test -z "$ac_lib"; then
13040 ac_res="none required"
13041 else
13042 ac_res=-l$ac_lib
13043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13044 fi
13045 if ac_fn_c_try_link "$LINENO"; then :
13046 ac_cv_search_inet_ntoa=$ac_res
13047 fi
13048 rm -f core conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext
13050 if ${ac_cv_search_inet_ntoa+:} false; then :
13051 break
13052 fi
13053 done
13054 if ${ac_cv_search_inet_ntoa+:} false; then :
13055
13056 else
13057 ac_cv_search_inet_ntoa=no
13058 fi
13059 rm conftest.$ac_ext
13060 LIBS=$ac_func_search_save_LIBS
13061 fi
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13063 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13064 ac_res=$ac_cv_search_inet_ntoa
13065 if test "$ac_res" != no; then :
13066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13067
13068 fi
13069
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13071 $as_echo_n "checking for library containing inet_aton... " >&6; }
13072 if ${ac_cv_search_inet_aton+:} false; then :
13073 $as_echo_n "(cached) " >&6
13074 else
13075 ac_func_search_save_LIBS=$LIBS
13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13078
13079 /* Override any GCC internal prototype to avoid an error.
13080 Use char because int might match the return type of a GCC
13081 builtin and then its argument prototype would still apply. */
13082 #ifdef __cplusplus
13083 extern "C"
13084 #endif
13085 char inet_aton ();
13086 int
13087 main ()
13088 {
13089 return inet_aton ();
13090 ;
13091 return 0;
13092 }
13093 _ACEOF
13094 for ac_lib in '' resolv; do
13095 if test -z "$ac_lib"; then
13096 ac_res="none required"
13097 else
13098 ac_res=-l$ac_lib
13099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13100 fi
13101 if ac_fn_c_try_link "$LINENO"; then :
13102 ac_cv_search_inet_aton=$ac_res
13103 fi
13104 rm -f core conftest.err conftest.$ac_objext \
13105 conftest$ac_exeext
13106 if ${ac_cv_search_inet_aton+:} false; then :
13107 break
13108 fi
13109 done
13110 if ${ac_cv_search_inet_aton+:} false; then :
13111
13112 else
13113 ac_cv_search_inet_aton=no
13114 fi
13115 rm conftest.$ac_ext
13116 LIBS=$ac_func_search_save_LIBS
13117 fi
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13119 $as_echo "$ac_cv_search_inet_aton" >&6; }
13120 ac_res=$ac_cv_search_inet_aton
13121 if test "$ac_res" != no; then :
13122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13123
13124 fi
13125
13126 for ac_func in inet_aton inet_ntop inet_pton
13127 do :
13128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13129 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13130 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13131 cat >>confdefs.h <<_ACEOF
13132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13133 _ACEOF
13134
13135 fi
13136 done
13137
13138 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13139 #include <sys/socket.h>
13140 #include <netdb.h>
13141
13142 "
13143 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13144
13145 cat >>confdefs.h <<_ACEOF
13146 #define HAVE_STRUCT_SOCKADDR_IN 1
13147 _ACEOF
13148
13149
13150 fi
13151 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13152 #include <sys/socket.h>
13153 #include <netdb.h>
13154
13155 "
13156 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13157
13158 cat >>confdefs.h <<_ACEOF
13159 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13160 _ACEOF
13161
13162
13163 fi
13164 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13165 #include <sys/socket.h>
13166 #include <netdb.h>
13167
13168 "
13169 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13170
13171 cat >>confdefs.h <<_ACEOF
13172 #define HAVE_STRUCT_ADDRINFO 1
13173 _ACEOF
13174
13175
13176 fi
13177
13178 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13179 <sys/socket.h>
13180 "
13181 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13182
13183 cat >>confdefs.h <<_ACEOF
13184 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13185 _ACEOF
13186
13187
13188 fi
13189
13190
13191
13192 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
13193 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13194
13195 cat >>confdefs.h <<_ACEOF
13196 #define HAVE_STRUCT_SOCKADDR_IN6 1
13197 _ACEOF
13198
13199
13200 else
13201
13202 $as_echo "#define IPV6 1" >>confdefs.h
13203
13204 fi
13205
13206
13207
13208 # Checks for typedefs, structures, and compiler characteristics.
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13210 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13211 if ${ac_cv_c_bigendian+:} false; then :
13212 $as_echo_n "(cached) " >&6
13213 else
13214 ac_cv_c_bigendian=unknown
13215 # See if we're dealing with a universal compiler.
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218 #ifndef __APPLE_CC__
13219 not a universal capable compiler
13220 #endif
13221 typedef int dummy;
13222
13223 _ACEOF
13224 if ac_fn_c_try_compile "$LINENO"; then :
13225
13226 # Check for potential -arch flags. It is not universal unless
13227 # there are at least two -arch flags with different values.
13228 ac_arch=
13229 ac_prev=
13230 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13231 if test -n "$ac_prev"; then
13232 case $ac_word in
13233 i?86 | x86_64 | ppc | ppc64)
13234 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13235 ac_arch=$ac_word
13236 else
13237 ac_cv_c_bigendian=universal
13238 break
13239 fi
13240 ;;
13241 esac
13242 ac_prev=
13243 elif test "x$ac_word" = "x-arch"; then
13244 ac_prev=arch
13245 fi
13246 done
13247 fi
13248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13249 if test $ac_cv_c_bigendian = unknown; then
13250 # See if sys/param.h defines the BYTE_ORDER macro.
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13253 #include <sys/types.h>
13254 #include <sys/param.h>
13255
13256 int
13257 main ()
13258 {
13259 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13260 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13261 && LITTLE_ENDIAN)
13262 bogus endian macros
13263 #endif
13264
13265 ;
13266 return 0;
13267 }
13268 _ACEOF
13269 if ac_fn_c_try_compile "$LINENO"; then :
13270 # It does; now see whether it defined to BIG_ENDIAN or not.
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13273 #include <sys/types.h>
13274 #include <sys/param.h>
13275
13276 int
13277 main ()
13278 {
13279 #if BYTE_ORDER != BIG_ENDIAN
13280 not big endian
13281 #endif
13282
13283 ;
13284 return 0;
13285 }
13286 _ACEOF
13287 if ac_fn_c_try_compile "$LINENO"; then :
13288 ac_cv_c_bigendian=yes
13289 else
13290 ac_cv_c_bigendian=no
13291 fi
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293 fi
13294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13295 fi
13296 if test $ac_cv_c_bigendian = unknown; then
13297 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300 #include <limits.h>
13301
13302 int
13303 main ()
13304 {
13305 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13306 bogus endian macros
13307 #endif
13308
13309 ;
13310 return 0;
13311 }
13312 _ACEOF
13313 if ac_fn_c_try_compile "$LINENO"; then :
13314 # It does; now see whether it defined to _BIG_ENDIAN or not.
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13317 #include <limits.h>
13318
13319 int
13320 main ()
13321 {
13322 #ifndef _BIG_ENDIAN
13323 not big endian
13324 #endif
13325
13326 ;
13327 return 0;
13328 }
13329 _ACEOF
13330 if ac_fn_c_try_compile "$LINENO"; then :
13331 ac_cv_c_bigendian=yes
13332 else
13333 ac_cv_c_bigendian=no
13334 fi
13335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13336 fi
13337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13338 fi
13339 if test $ac_cv_c_bigendian = unknown; then
13340 # Compile a test program.
13341 if test "$cross_compiling" = yes; then :
13342 # Try to guess by grepping values from an object file.
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13345 short int ascii_mm[] =
13346 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13347 short int ascii_ii[] =
13348 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13349 int use_ascii (int i) {
13350 return ascii_mm[i] + ascii_ii[i];
13351 }
13352 short int ebcdic_ii[] =
13353 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13354 short int ebcdic_mm[] =
13355 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13356 int use_ebcdic (int i) {
13357 return ebcdic_mm[i] + ebcdic_ii[i];
13358 }
13359 extern int foo;
13360
13361 int
13362 main ()
13363 {
13364 return use_ascii (foo) == use_ebcdic (foo);
13365 ;
13366 return 0;
13367 }
13368 _ACEOF
13369 if ac_fn_c_try_compile "$LINENO"; then :
13370 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13371 ac_cv_c_bigendian=yes
13372 fi
13373 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13374 if test "$ac_cv_c_bigendian" = unknown; then
13375 ac_cv_c_bigendian=no
13376 else
13377 # finding both strings is unlikely to happen, but who knows?
13378 ac_cv_c_bigendian=unknown
13379 fi
13380 fi
13381 fi
13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13383 else
13384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13385 /* end confdefs.h. */
13386 $ac_includes_default
13387 int
13388 main ()
13389 {
13390
13391 /* Are we little or big endian? From Harbison&Steele. */
13392 union
13393 {
13394 long int l;
13395 char c[sizeof (long int)];
13396 } u;
13397 u.l = 1;
13398 return u.c[sizeof (long int) - 1] == 1;
13399
13400 ;
13401 return 0;
13402 }
13403 _ACEOF
13404 if ac_fn_c_try_run "$LINENO"; then :
13405 ac_cv_c_bigendian=no
13406 else
13407 ac_cv_c_bigendian=yes
13408 fi
13409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13410 conftest.$ac_objext conftest.beam conftest.$ac_ext
13411 fi
13412
13413 fi
13414 fi
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13416 $as_echo "$ac_cv_c_bigendian" >&6; }
13417 case $ac_cv_c_bigendian in #(
13418 yes)
13419 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13420 ;; #(
13421 no)
13422 ;; #(
13423 universal)
13424
13425 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13426
13427 ;; #(
13428 *)
13429 as_fn_error $? "unknown endianness
13430 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13431 esac
13432
13433
13434 # Checks for library functions.
13435
13436
13437
13438 for ac_func in $ac_func_list
13439 do :
13440 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13441 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13442 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13443 cat >>confdefs.h <<_ACEOF
13444 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13445 _ACEOF
13446
13447 fi
13448 done
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462 # Checks for header files.
13463
13464
13465
13466 for ac_header in $ac_header_list
13467 do :
13468 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13469 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13470 "
13471 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13472 cat >>confdefs.h <<_ACEOF
13473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13474 _ACEOF
13475
13476 fi
13477
13478 done
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506 # check for /dev/null so we can use it to hold evil fd's
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
13508 $as_echo_n "checking for /dev/null... " >&6; }
13509 if test -c /dev/null; then :
13510
13511
13512 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
13513
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13515 $as_echo "yes" >&6; }
13516 else
13517
13518
13519 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
13520
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
13522 $as_echo "no - using devnull.log" >&6; }
13523 fi
13524
13525
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13527 $as_echo_n "checking for library containing crypt... " >&6; }
13528 if ${ac_cv_search_crypt+:} false; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13531 ac_func_search_save_LIBS=$LIBS
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13534
13535 /* Override any GCC internal prototype to avoid an error.
13536 Use char because int might match the return type of a GCC
13537 builtin and then its argument prototype would still apply. */
13538 #ifdef __cplusplus
13539 extern "C"
13540 #endif
13541 char crypt ();
13542 int
13543 main ()
13544 {
13545 return crypt ();
13546 ;
13547 return 0;
13548 }
13549 _ACEOF
13550 for ac_lib in '' crypt; do
13551 if test -z "$ac_lib"; then
13552 ac_res="none required"
13553 else
13554 ac_res=-l$ac_lib
13555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13556 fi
13557 if ac_fn_c_try_link "$LINENO"; then :
13558 ac_cv_search_crypt=$ac_res
13559 fi
13560 rm -f core conftest.err conftest.$ac_objext \
13561 conftest$ac_exeext
13562 if ${ac_cv_search_crypt+:} false; then :
13563 break
13564 fi
13565 done
13566 if ${ac_cv_search_crypt+:} false; then :
13567
13568 else
13569 ac_cv_search_crypt=no
13570 fi
13571 rm conftest.$ac_ext
13572 LIBS=$ac_func_search_save_LIBS
13573 fi
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13575 $as_echo "$ac_cv_search_crypt" >&6; }
13576 ac_res=$ac_cv_search_crypt
13577 if test "$ac_res" != no; then :
13578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13579
13580 fi
13581
13582
13583
13584
13585 # Check whether --with-zlib-path was given.
13586 if test "${with_zlib_path+set}" = set; then :
13587 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
13588 fi
13589
13590
13591 # Check whether --enable-zlib was given.
13592 if test "${enable_zlib+set}" = set; then :
13593 enableval=$enable_zlib; zlib=$enableval
13594 else
13595 zlib=yes
13596 fi
13597
13598
13599 if test "$zlib" = "yes"; then :
13600
13601 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13602 if test "x$ac_cv_header_zlib_h" = xyes; then :
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
13604 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
13605 if ${ac_cv_lib_z_zlibVersion+:} false; then :
13606 $as_echo_n "(cached) " >&6
13607 else
13608 ac_check_lib_save_LIBS=$LIBS
13609 LIBS="-lz $LIBS"
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13612
13613 /* Override any GCC internal prototype to avoid an error.
13614 Use char because int might match the return type of a GCC
13615 builtin and then its argument prototype would still apply. */
13616 #ifdef __cplusplus
13617 extern "C"
13618 #endif
13619 char zlibVersion ();
13620 int
13621 main ()
13622 {
13623 return zlibVersion ();
13624 ;
13625 return 0;
13626 }
13627 _ACEOF
13628 if ac_fn_c_try_link "$LINENO"; then :
13629 ac_cv_lib_z_zlibVersion=yes
13630 else
13631 ac_cv_lib_z_zlibVersion=no
13632 fi
13633 rm -f core conftest.err conftest.$ac_objext \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LIBS=$ac_check_lib_save_LIBS
13636 fi
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
13638 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
13639 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
13640
13641 LIBS="-lz $LIBS"
13642
13643 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
13644
13645
13646 else
13647 zlib=no
13648 fi
13649
13650
13651 else
13652 zlib=no
13653 fi
13654
13655
13656
13657 fi
13658
13659
13660 # Check whether --with-libpcre-path was given.
13661 if test "${with_libpcre_path+set}" = set; then :
13662 withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
13663 fi
13664
13665
13666 # Check whether --enable-libpcre was given.
13667 if test "${enable_libpcre+set}" = set; then :
13668 enableval=$enable_libpcre; libpcre=$enableval
13669 else
13670 libpcre=yes
13671 fi
13672
13673
13674 if test "$libpcre" = "yes"; then :
13675
13676 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
13677 if test "x$ac_cv_header_pcre_h" = xyes; then :
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
13679 $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
13680 if ${ac_cv_lib_pcre_pcre_study+:} false; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 ac_check_lib_save_LIBS=$LIBS
13684 LIBS="-lpcre $LIBS"
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687
13688 /* Override any GCC internal prototype to avoid an error.
13689 Use char because int might match the return type of a GCC
13690 builtin and then its argument prototype would still apply. */
13691 #ifdef __cplusplus
13692 extern "C"
13693 #endif
13694 char pcre_study ();
13695 int
13696 main ()
13697 {
13698 return pcre_study ();
13699 ;
13700 return 0;
13701 }
13702 _ACEOF
13703 if ac_fn_c_try_link "$LINENO"; then :
13704 ac_cv_lib_pcre_pcre_study=yes
13705 else
13706 ac_cv_lib_pcre_pcre_study=no
13707 fi
13708 rm -f core conftest.err conftest.$ac_objext \
13709 conftest$ac_exeext conftest.$ac_ext
13710 LIBS=$ac_check_lib_save_LIBS
13711 fi
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
13713 $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
13714 if test "x$ac_cv_lib_pcre_pcre_study" = xyes; then :
13715
13716 LIBS="-lpcre $LIBS"
13717
13718 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13719
13720
13721 else
13722 libpcre=no
13723 fi
13724
13725
13726 else
13727 libpcre=no
13728 fi
13729
13730
13731
13732 fi
13733 if test "$libpcre" = yes; then
13734 ENABLE_PCRE_TRUE=
13735 ENABLE_PCRE_FALSE='#'
13736 else
13737 ENABLE_PCRE_TRUE='#'
13738 ENABLE_PCRE_FALSE=
13739 fi
13740
13741
13742
13743 # Check whether --enable-openssl was given.
13744 if test "${enable_openssl+set}" = set; then :
13745 enableval=$enable_openssl; cf_enable_openssl=$enableval
13746 else
13747 cf_enable_openssl="auto"
13748 fi
13749
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13751 $as_echo_n "checking for OpenSSL... " >&6; }
13752 if test "$cf_enable_openssl" != "no"; then
13753 cf_openssl_basedir=""
13754 if test "$cf_enable_openssl" != "auto" &&
13755 test "$cf_enable_openssl" != "yes"; then
13756 cf_openssl_basedir="${cf_enable_openssl}"
13757 else
13758 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13759 /opt /opt/openssl /usr/local/openssl; do
13760 if test -f "${dirs}/include/openssl/opensslv.h"; then
13761 cf_openssl_basedir="${dirs}"
13762 break
13763 fi
13764 done
13765 unset dirs
13766 fi
13767
13768 if test ! -z "$cf_openssl_basedir"; then
13769 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13770 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13771 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13772 else
13773 cf_openssl_basedir=""
13774 fi
13775 else
13776 if test -f "/usr/include/openssl/opensslv.h"; then
13777 cf_openssl_basedir="/usr"
13778 fi
13779 fi
13780
13781 if test ! -z "$cf_openssl_basedir"; then
13782 LIBS="-lcrypto -lssl $LIBS"
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13784 $as_echo "$cf_openssl_basedir" >&6; }
13785 cf_enable_openssl="yes"
13786
13787 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13788
13789 else
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13791 $as_echo "not found. Please check your path." >&6; }
13792 cf_enable_openssl="no"
13793 fi
13794 unset cf_openssl_basedir
13795 else
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13797 $as_echo "disabled" >&6; }
13798 fi
13799
13800 if test "$cf_enable_openssl" != "no"; then :
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
13802 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
13803 if test "$cross_compiling" = yes; then :
13804 cf_openssl_version_ok=no
13805 else
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13808
13809
13810 #include <openssl/opensslv.h>
13811 #include <stdlib.h>
13812 int
13813 main ()
13814 {
13815 exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
13816 ;
13817 return 0;
13818 }
13819 _ACEOF
13820 if ac_fn_c_try_run "$LINENO"; then :
13821 cf_openssl_version_ok=yes
13822 else
13823 cf_openssl_version_ok=no
13824 fi
13825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13826 conftest.$ac_objext conftest.beam conftest.$ac_ext
13827 fi
13828
13829
13830 if test "$cf_openssl_version_ok" = "yes"; then :
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13832 $as_echo "found" >&6; }
13833
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13835 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13836 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13837 $as_echo_n "(cached) " >&6
13838 else
13839 ac_check_lib_save_LIBS=$LIBS
13840 LIBS="-lcrypto $LIBS"
13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13843
13844 /* Override any GCC internal prototype to avoid an error.
13845 Use char because int might match the return type of a GCC
13846 builtin and then its argument prototype would still apply. */
13847 #ifdef __cplusplus
13848 extern "C"
13849 #endif
13850 char RSA_free ();
13851 int
13852 main ()
13853 {
13854 return RSA_free ();
13855 ;
13856 return 0;
13857 }
13858 _ACEOF
13859 if ac_fn_c_try_link "$LINENO"; then :
13860 ac_cv_lib_crypto_RSA_free=yes
13861 else
13862 ac_cv_lib_crypto_RSA_free=no
13863 fi
13864 rm -f core conftest.err conftest.$ac_objext \
13865 conftest$ac_exeext conftest.$ac_ext
13866 LIBS=$ac_check_lib_save_LIBS
13867 fi
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13869 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13870 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13871 cat >>confdefs.h <<_ACEOF
13872 #define HAVE_LIBCRYPTO 1
13873 _ACEOF
13874
13875 LIBS="-lcrypto $LIBS"
13876
13877 fi
13878
13879 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13880 for ac_func in EVP_bf_cfb \
13881 EVP_cast5_cfb \
13882 EVP_idea_cfb \
13883 EVP_rc5_32_12_16_cfb \
13884 EVP_des_ede3_cfb \
13885 EVP_des_cfb
13886 do :
13887 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13888 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13889 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13890 cat >>confdefs.h <<_ACEOF
13891 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13892 _ACEOF
13893
13894 fi
13895 done
13896
13897 fi
13898
13899 else
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13901 $as_echo "no - OpenSSL support disabled" >&6; }
13902 cf_enable_openssl="no"
13903 fi
13904 fi
13905
13906 if test "$cf_enable_openssl" = yes; then
13907 ENABLE_SSL_TRUE=
13908 ENABLE_SSL_FALSE='#'
13909 else
13910 ENABLE_SSL_TRUE='#'
13911 ENABLE_SSL_FALSE=
13912 fi
13913
13914
13915
13916 # Check whether --enable-assert was given.
13917 if test "${enable_assert+set}" = set; then :
13918 enableval=$enable_assert; assert=$enableval
13919 else
13920 assert=no
13921 fi
13922
13923
13924 if test "$assert" = "no"; then :
13925
13926 $as_echo "#define NDEBUG 1" >>confdefs.h
13927
13928 fi
13929
13930
13931 # Check whether --enable-small-net was given.
13932 if test "${enable_small_net+set}" = set; then :
13933 enableval=$enable_small_net; small_net=$enableval
13934 else
13935 small_net=no
13936 fi
13937
13938
13939 if test "$small_net" = "yes"; then :
13940
13941
13942 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13943
13944
13945 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13946
13947
13948 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13949
13950
13951 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13952
13953
13954 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13955
13956
13957 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13958
13959
13960 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13961
13962
13963 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13964
13965
13966 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13967
13968
13969 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13970
13971 else
13972
13973
13974
13975 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13976
13977
13978 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13979
13980
13981 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13982
13983
13984 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13985
13986
13987 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13988
13989
13990 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13991
13992
13993 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13994
13995
13996 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13997
13998
13999 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
14000
14001
14002 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
14003
14004 fi
14005
14006
14007 # Argument processing.
14008
14009 desired_iopoll_mechanism="none"
14010 # Check whether --enable-kqueue was given.
14011 if test "${enable_kqueue+set}" = set; then :
14012 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14013 fi
14014
14015 # Check whether --enable-epoll was given.
14016 if test "${enable_epoll+set}" = set; then :
14017 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14018 fi
14019
14020 # Check whether --enable-devpoll was given.
14021 if test "${enable_devpoll+set}" = set; then :
14022 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14023 fi
14024
14025 # Check whether --enable-rtsigio was given.
14026 if test "${enable_rtsigio+set}" = set; then :
14027 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
14028 fi
14029
14030 # Check whether --enable-poll was given.
14031 if test "${enable_poll+set}" = set; then :
14032 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14033 fi
14034
14035 # Check whether --enable-select was given.
14036 if test "${enable_select+set}" = set; then :
14037 enableval=$enable_select; desired_iopoll_mechanism="select"
14038 fi
14039
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14041 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14042 iopoll_mechanism_none=0
14043
14044 cat >>confdefs.h <<_ACEOF
14045 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14046 _ACEOF
14047
14048 iopoll_mechanism_kqueue=1
14049
14050 cat >>confdefs.h <<_ACEOF
14051 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14052 _ACEOF
14053
14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14056 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14058 #define kevent innocuous_kevent
14059
14060 /* System header to define __stub macros and hopefully few prototypes,
14061 which can conflict with char kevent (); below.
14062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14063 <limits.h> exists even on freestanding compilers. */
14064
14065 #ifdef __STDC__
14066 # include <limits.h>
14067 #else
14068 # include <assert.h>
14069 #endif
14070
14071 #undef kevent
14072
14073 /* Override any GCC internal prototype to avoid an error.
14074 Use char because int might match the return type of a GCC
14075 builtin and then its argument prototype would still apply. */
14076 #ifdef __cplusplus
14077 extern "C"
14078 #endif
14079 char kevent ();
14080 /* The GNU C library defines this for functions which it implements
14081 to always fail with ENOSYS. Some functions are actually named
14082 something starting with __ and the normal name is an alias. */
14083 #if defined __stub_kevent || defined __stub___kevent
14084 choke me
14085 #endif
14086
14087 int
14088 main ()
14089 {
14090 return kevent ();
14091 ;
14092 return 0;
14093 }
14094 _ACEOF
14095 if ac_fn_c_try_link "$LINENO"; then :
14096 is_kqueue_mechanism_available="yes"
14097 else
14098 is_kqueue_mechanism_available="no"
14099 fi
14100 rm -f core conftest.err conftest.$ac_objext \
14101 conftest$ac_exeext conftest.$ac_ext
14102 iopoll_mechanism_epoll=2
14103
14104 cat >>confdefs.h <<_ACEOF
14105 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14106 _ACEOF
14107
14108 if test "$cross_compiling" = yes; then :
14109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14111 as_fn_error $? "cannot run test program while cross compiling
14112 See \`config.log' for more details" "$LINENO" 5; }
14113 else
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14116
14117 #include <sys/epoll.h>
14118 #include <sys/syscall.h>
14119 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14120 #if !defined(__NR_epoll_create)
14121 #if defined(__ia64__)
14122 #define __NR_epoll_create 1243
14123 #elif defined(__x86_64__)
14124 #define __NR_epoll_create 214
14125 #elif defined(__sparc64__) || defined(__sparc__)
14126 #define __NR_epoll_create 193
14127 #elif defined(__s390__) || defined(__m68k__)
14128 #define __NR_epoll_create 249
14129 #elif defined(__ppc64__) || defined(__ppc__)
14130 #define __NR_epoll_create 236
14131 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14132 #define __NR_epoll_create 224
14133 #elif defined(__alpha__)
14134 #define __NR_epoll_create 407
14135 #elif defined(__sh64__)
14136 #define __NR_epoll_create 282
14137 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14138 #define __NR_epoll_create 254
14139 #else
14140 #error No system call numbers defined for epoll family.
14141 #endif
14142 #endif
14143 _syscall1(int, epoll_create, int, size)
14144 #endif
14145
14146 int
14147 main ()
14148 {
14149 return epoll_create(256) == -1 ? 1 : 0
14150 ;
14151 return 0;
14152 }
14153 _ACEOF
14154 if ac_fn_c_try_run "$LINENO"; then :
14155 is_epoll_mechanism_available="yes"
14156 else
14157 is_epoll_mechanism_available="no"
14158 fi
14159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14160 conftest.$ac_objext conftest.beam conftest.$ac_ext
14161 fi
14162
14163 iopoll_mechanism_devpoll=3
14164
14165 cat >>confdefs.h <<_ACEOF
14166 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14167 _ACEOF
14168
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14171 #include <devpoll.h>
14172 int
14173 main ()
14174 {
14175
14176 ;
14177 return 0;
14178 }
14179 _ACEOF
14180 if ac_fn_c_try_compile "$LINENO"; then :
14181 is_devpoll_mechanism_available="yes"
14182 else
14183 is_devpoll_mechanism_available="no"
14184 fi
14185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14186 if test "$is_devpoll_mechanism_available" = "yes" ; then
14187
14188 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14189
14190 fi
14191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192 /* end confdefs.h. */
14193 #include <sys/devpoll.h>
14194 int
14195 main ()
14196 {
14197
14198 ;
14199 return 0;
14200 }
14201 _ACEOF
14202 if ac_fn_c_try_compile "$LINENO"; then :
14203 is_devpoll_mechanism_available="yes"
14204 else
14205 is_devpoll_mechanism_available="no"
14206 fi
14207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 if test "$is_devpoll_mechanism_available" = "yes" ; then
14209
14210 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14211
14212 fi
14213 iopoll_mechanism_rtsigio=4
14214
14215 cat >>confdefs.h <<_ACEOF
14216 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
14217 _ACEOF
14218
14219 if test "$cross_compiling" = yes; then :
14220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14222 as_fn_error $? "cannot run test program while cross compiling
14223 See \`config.log' for more details" "$LINENO" 5; }
14224 else
14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14227
14228 #define _GNU_SOURCE
14229 #include <fcntl.h>
14230 static unsigned int have_f_setsig = 0;
14231
14232 int
14233 main ()
14234 {
14235
14236 #ifdef F_SETSIG
14237 have_f_setsig = 1;
14238 #endif
14239 return have_f_setsig == 0;
14240
14241 ;
14242 return 0;
14243 }
14244 _ACEOF
14245 if ac_fn_c_try_run "$LINENO"; then :
14246 is_rtsigio_mechanism_available="yes"
14247 else
14248 is_rtsigio_mechanism_available="no"
14249 fi
14250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14251 conftest.$ac_objext conftest.beam conftest.$ac_ext
14252 fi
14253
14254 iopoll_mechanism_poll=5
14255
14256 cat >>confdefs.h <<_ACEOF
14257 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14258 _ACEOF
14259
14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h. */
14262 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14264 #define poll innocuous_poll
14265
14266 /* System header to define __stub macros and hopefully few prototypes,
14267 which can conflict with char poll (); below.
14268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14269 <limits.h> exists even on freestanding compilers. */
14270
14271 #ifdef __STDC__
14272 # include <limits.h>
14273 #else
14274 # include <assert.h>
14275 #endif
14276
14277 #undef poll
14278
14279 /* Override any GCC internal prototype to avoid an error.
14280 Use char because int might match the return type of a GCC
14281 builtin and then its argument prototype would still apply. */
14282 #ifdef __cplusplus
14283 extern "C"
14284 #endif
14285 char poll ();
14286 /* The GNU C library defines this for functions which it implements
14287 to always fail with ENOSYS. Some functions are actually named
14288 something starting with __ and the normal name is an alias. */
14289 #if defined __stub_poll || defined __stub___poll
14290 choke me
14291 #endif
14292
14293 int
14294 main ()
14295 {
14296 return poll ();
14297 ;
14298 return 0;
14299 }
14300 _ACEOF
14301 if ac_fn_c_try_link "$LINENO"; then :
14302 is_poll_mechanism_available="yes"
14303 else
14304 is_poll_mechanism_available="no"
14305 fi
14306 rm -f core conftest.err conftest.$ac_objext \
14307 conftest$ac_exeext conftest.$ac_ext
14308 iopoll_mechanism_select=6
14309
14310 cat >>confdefs.h <<_ACEOF
14311 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14312 _ACEOF
14313
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316 /* Define select to an innocuous variant, in case <limits.h> declares select.
14317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14318 #define select innocuous_select
14319
14320 /* System header to define __stub macros and hopefully few prototypes,
14321 which can conflict with char select (); below.
14322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14323 <limits.h> exists even on freestanding compilers. */
14324
14325 #ifdef __STDC__
14326 # include <limits.h>
14327 #else
14328 # include <assert.h>
14329 #endif
14330
14331 #undef select
14332
14333 /* Override any GCC internal prototype to avoid an error.
14334 Use char because int might match the return type of a GCC
14335 builtin and then its argument prototype would still apply. */
14336 #ifdef __cplusplus
14337 extern "C"
14338 #endif
14339 char select ();
14340 /* The GNU C library defines this for functions which it implements
14341 to always fail with ENOSYS. Some functions are actually named
14342 something starting with __ and the normal name is an alias. */
14343 #if defined __stub_select || defined __stub___select
14344 choke me
14345 #endif
14346
14347 int
14348 main ()
14349 {
14350 return select ();
14351 ;
14352 return 0;
14353 }
14354 _ACEOF
14355 if ac_fn_c_try_link "$LINENO"; then :
14356 is_select_mechanism_available="yes"
14357 else
14358 is_select_mechanism_available="no"
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext \
14361 conftest$ac_exeext conftest.$ac_ext
14362 optimal_iopoll_mechanism="none"
14363 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
14364 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14365 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14366 optimal_iopoll_mechanism="$mechanism"
14367 break
14368 fi
14369 done
14370 if test "$desired_iopoll_mechanism" = "none" ; then
14371 if test "$optimal_iopoll_mechanism" = "none" ; then
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14373 $as_echo "none" >&6; }
14374 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14375 else
14376 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14378 $as_echo "$selected_iopoll_mechanism" >&6; }
14379 fi
14380 else
14381 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14382 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14383 selected_iopoll_mechanism=$desired_iopoll_mechanism
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14385 $as_echo "$selected_iopoll_mechanism" >&6; }
14386 else
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14388 $as_echo "none" >&6; }
14389 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14390 fi
14391 fi
14392 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14393
14394 cat >>confdefs.h <<_ACEOF
14395 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14396 _ACEOF
14397
14398
14399
14400
14401 # Check whether --with-nicklen was given.
14402 if test "${with_nicklen+set}" = set; then :
14403 withval=$with_nicklen; nicklen="$withval"
14404 else
14405 nicklen="9"
14406 fi
14407
14408
14409 cat >>confdefs.h <<_ACEOF
14410 #define NICKLEN ($nicklen+1)
14411 _ACEOF
14412
14413
14414
14415
14416 # Check whether --with-topiclen was given.
14417 if test "${with_topiclen+set}" = set; then :
14418 withval=$with_topiclen; topiclen="$withval"
14419 else
14420 topiclen="160"
14421 fi
14422
14423
14424 cat >>confdefs.h <<_ACEOF
14425 #define TOPICLEN ($topiclen)
14426 _ACEOF
14427
14428
14429
14430
14431 # Check whether --with-syslog-facility was given.
14432 if test "${with_syslog_facility+set}" = set; then :
14433 withval=$with_syslog_facility; syslog_facility="$withval"
14434 else
14435 syslog_facility="LOG_LOCAL4"
14436 fi
14437
14438
14439 cat >>confdefs.h <<_ACEOF
14440 #define LOG_FACILITY $syslog_facility
14441 _ACEOF
14442
14443
14444
14445 # Check whether --enable-efnet was given.
14446 if test "${enable_efnet+set}" = set; then :
14447 enableval=$enable_efnet; efnet="$enableval"
14448 else
14449 efnet="no"
14450 fi
14451
14452 if test "$efnet" = "yes" ; then
14453 use_efnet="yes"
14454
14455 $as_echo "#define EFNET 1" >>confdefs.h
14456
14457
14458 $as_echo "#define TS5_ONLY 1" >>confdefs.h
14459
14460 else
14461 use_efnet="no"
14462 fi
14463 if test "$use_efnet" = "yes"; then
14464 EFNET_TRUE=
14465 EFNET_FALSE='#'
14466 else
14467 EFNET_TRUE='#'
14468 EFNET_FALSE=
14469 fi
14470
14471
14472
14473 # Check whether --enable-halfops was given.
14474 if test "${enable_halfops+set}" = set; then :
14475 enableval=$enable_halfops; halfops="$enableval"
14476 else
14477 halfops="no"
14478 fi
14479
14480 if test "$halfops" = "yes" ; then
14481
14482 $as_echo "#define HALFOPS 1" >>confdefs.h
14483
14484 fi
14485
14486
14487 # Check whether --enable-debugging was given.
14488 if test "${enable_debugging+set}" = set; then :
14489 enableval=$enable_debugging; debugging="$enableval"
14490 else
14491 debugging="no"
14492 fi
14493
14494 if test "$debugging" = "yes" ; then
14495
14496 $as_echo "#define DEBUG 1" >>confdefs.h
14497
14498 CFLAGS="-Wall -g -O0"
14499 else
14500
14501 $as_echo "#define NDEBUG 1" >>confdefs.h
14502
14503 fi
14504
14505
14506 # Check whether --enable-warnings was given.
14507 if test "${enable_warnings+set}" = set; then :
14508 enableval=$enable_warnings; warnings="$enableval"
14509 else
14510 warnings="no"
14511 fi
14512
14513 if test "$warnings" = "yes" ; then
14514 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14515 fi
14516
14517
14518 for ac_header in syslog.h sys/syslog.h
14519 do :
14520 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14521 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14522 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14523 cat >>confdefs.h <<_ACEOF
14524 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14525 _ACEOF
14526
14527 fi
14528
14529 done
14530
14531 # Check whether --enable-syslog was given.
14532 if test "${enable_syslog+set}" = set; then :
14533 enableval=$enable_syslog; syslog="$enableval"
14534 else
14535 syslog="no"
14536 fi
14537
14538 if test "$enableval" != "no" ; then
14539 for option in $enableval ; do
14540 case "$option" in
14541 users)
14542 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
14543 ;;
14544 oper)
14545 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
14546 ;;
14547 yes) : ;;
14548 *) as_fn_error $? "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
14549 esac
14550 done
14551
14552 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
14553
14554 fi
14555
14556
14557
14558 prefix_NONE=
14559 exec_prefix_NONE=
14560 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14561 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14562 eval ac_define_dir="\"$prefix\""
14563 eval ac_define_dir="\"$ac_define_dir\""
14564 PREFIX="$ac_define_dir"
14565
14566
14567 cat >>confdefs.h <<_ACEOF
14568 #define PREFIX "$ac_define_dir"
14569 _ACEOF
14570
14571 test "$prefix_NONE" && prefix=NONE
14572 test "$exec_prefix_NONE" && exec_prefix=NONE
14573
14574
14575 prefix_NONE=
14576 exec_prefix_NONE=
14577 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14578 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14579 eval ac_define_dir="\"$sysconfdir\""
14580 eval ac_define_dir="\"$ac_define_dir\""
14581 SYSCONFDIR="$ac_define_dir"
14582
14583
14584 cat >>confdefs.h <<_ACEOF
14585 #define SYSCONFDIR "$ac_define_dir"
14586 _ACEOF
14587
14588 test "$prefix_NONE" && prefix=NONE
14589 test "$exec_prefix_NONE" && exec_prefix=NONE
14590
14591
14592 prefix_NONE=
14593 exec_prefix_NONE=
14594 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14595 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14596 eval ac_define_dir="\"$libdir\""
14597 eval ac_define_dir="\"$ac_define_dir\""
14598 LIBDIR="$ac_define_dir"
14599
14600
14601 cat >>confdefs.h <<_ACEOF
14602 #define LIBDIR "$ac_define_dir"
14603 _ACEOF
14604
14605 test "$prefix_NONE" && prefix=NONE
14606 test "$exec_prefix_NONE" && exec_prefix=NONE
14607
14608
14609 prefix_NONE=
14610 exec_prefix_NONE=
14611 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14612 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14613 eval ac_define_dir="\"$datadir\""
14614 eval ac_define_dir="\"$ac_define_dir\""
14615 DATADIR="$ac_define_dir"
14616
14617
14618 cat >>confdefs.h <<_ACEOF
14619 #define DATADIR "$ac_define_dir"
14620 _ACEOF
14621
14622 test "$prefix_NONE" && prefix=NONE
14623 test "$exec_prefix_NONE" && exec_prefix=NONE
14624
14625
14626 prefix_NONE=
14627 exec_prefix_NONE=
14628 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14629 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14630 eval ac_define_dir="\"$localstatedir\""
14631 eval ac_define_dir="\"$ac_define_dir\""
14632 LOCALSTATEDIR="$ac_define_dir"
14633
14634
14635 cat >>confdefs.h <<_ACEOF
14636 #define LOCALSTATEDIR "$ac_define_dir"
14637 _ACEOF
14638
14639 test "$prefix_NONE" && prefix=NONE
14640 test "$exec_prefix_NONE" && exec_prefix=NONE
14641
14642
14643 ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
14644
14645
14646 cat >confcache <<\_ACEOF
14647 # This file is a shell script that caches the results of configure
14648 # tests run on this system so they can be shared between configure
14649 # scripts and configure runs, see configure's option --config-cache.
14650 # It is not useful on other systems. If it contains results you don't
14651 # want to keep, you may remove or edit it.
14652 #
14653 # config.status only pays attention to the cache file if you give it
14654 # the --recheck option to rerun configure.
14655 #
14656 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14657 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14658 # following values.
14659
14660 _ACEOF
14661
14662 # The following way of writing the cache mishandles newlines in values,
14663 # but we know of no workaround that is simple, portable, and efficient.
14664 # So, we kill variables containing newlines.
14665 # Ultrix sh set writes to stderr and can't be redirected directly,
14666 # and sets the high bit in the cache file unless we assign to the vars.
14667 (
14668 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14669 eval ac_val=\$$ac_var
14670 case $ac_val in #(
14671 *${as_nl}*)
14672 case $ac_var in #(
14673 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14674 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14675 esac
14676 case $ac_var in #(
14677 _ | IFS | as_nl) ;; #(
14678 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14679 *) { eval $ac_var=; unset $ac_var;} ;;
14680 esac ;;
14681 esac
14682 done
14683
14684 (set) 2>&1 |
14685 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14686 *${as_nl}ac_space=\ *)
14687 # `set' does not quote correctly, so add quotes: double-quote
14688 # substitution turns \\\\ into \\, and sed turns \\ into \.
14689 sed -n \
14690 "s/'/'\\\\''/g;
14691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14692 ;; #(
14693 *)
14694 # `set' quotes correctly as required by POSIX, so do not add quotes.
14695 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14696 ;;
14697 esac |
14698 sort
14699 ) |
14700 sed '
14701 /^ac_cv_env_/b end
14702 t clear
14703 :clear
14704 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14705 t end
14706 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14707 :end' >>confcache
14708 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14709 if test -w "$cache_file"; then
14710 if test "x$cache_file" != "x/dev/null"; then
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14712 $as_echo "$as_me: updating cache $cache_file" >&6;}
14713 if test ! -f "$cache_file" || test -h "$cache_file"; then
14714 cat confcache >"$cache_file"
14715 else
14716 case $cache_file in #(
14717 */* | ?:*)
14718 mv -f confcache "$cache_file"$$ &&
14719 mv -f "$cache_file"$$ "$cache_file" ;; #(
14720 *)
14721 mv -f confcache "$cache_file" ;;
14722 esac
14723 fi
14724 fi
14725 else
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14727 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14728 fi
14729 fi
14730 rm -f confcache
14731
14732 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14733 # Let make expand exec_prefix.
14734 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14735
14736 DEFS=-DHAVE_CONFIG_H
14737
14738 ac_libobjs=
14739 ac_ltlibobjs=
14740 U=
14741 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14742 # 1. Remove the extension, and $U if already installed.
14743 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14744 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14745 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14746 # will be set to the directory where LIBOBJS objects are built.
14747 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14748 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14749 done
14750 LIBOBJS=$ac_libobjs
14751
14752 LTLIBOBJS=$ac_ltlibobjs
14753
14754
14755 if test -n "$EXEEXT"; then
14756 am__EXEEXT_TRUE=
14757 am__EXEEXT_FALSE='#'
14758 else
14759 am__EXEEXT_TRUE='#'
14760 am__EXEEXT_FALSE=
14761 fi
14762
14763 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14764 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14766 fi
14767 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14768 as_fn_error $? "conditional \"AMDEP\" was never defined.
14769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14770 fi
14771 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14772 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14774 fi
14775 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14776 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14778 fi
14779 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14780 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14782 fi
14783 LT_CONFIG_H=config.h
14784
14785 _ltdl_libobjs=
14786 _ltdl_ltlibobjs=
14787 if test -n "$_LT_LIBOBJS"; then
14788 # Remove the extension.
14789 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14790 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14791 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14792 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14793 done
14794 fi
14795 ltdl_LIBOBJS=$_ltdl_libobjs
14796
14797 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14798
14799
14800
14801 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
14802 as_fn_error $? "conditional \"ENABLE_PCRE\" was never defined.
14803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14804 fi
14805 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14806 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14808 fi
14809 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
14810 as_fn_error $? "conditional \"EFNET\" was never defined.
14811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14812 fi
14813
14814 : "${CONFIG_STATUS=./config.status}"
14815 ac_write_fail=0
14816 ac_clean_files_save=$ac_clean_files
14817 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14819 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14820 as_write_fail=0
14821 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14822 #! $SHELL
14823 # Generated by $as_me.
14824 # Run this file to recreate the current configuration.
14825 # Compiler output produced by configure, useful for debugging
14826 # configure, is in config.log if it exists.
14827
14828 debug=false
14829 ac_cs_recheck=false
14830 ac_cs_silent=false
14831
14832 SHELL=\${CONFIG_SHELL-$SHELL}
14833 export SHELL
14834 _ASEOF
14835 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14836 ## -------------------- ##
14837 ## M4sh Initialization. ##
14838 ## -------------------- ##
14839
14840 # Be more Bourne compatible
14841 DUALCASE=1; export DUALCASE # for MKS sh
14842 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14843 emulate sh
14844 NULLCMD=:
14845 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14846 # is contrary to our usage. Disable this feature.
14847 alias -g '${1+"$@"}'='"$@"'
14848 setopt NO_GLOB_SUBST
14849 else
14850 case `(set -o) 2>/dev/null` in #(
14851 *posix*) :
14852 set -o posix ;; #(
14853 *) :
14854 ;;
14855 esac
14856 fi
14857
14858
14859 as_nl='
14860 '
14861 export as_nl
14862 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14863 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14866 # Prefer a ksh shell builtin over an external printf program on Solaris,
14867 # but without wasting forks for bash or zsh.
14868 if test -z "$BASH_VERSION$ZSH_VERSION" \
14869 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14870 as_echo='print -r --'
14871 as_echo_n='print -rn --'
14872 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14873 as_echo='printf %s\n'
14874 as_echo_n='printf %s'
14875 else
14876 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14877 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14878 as_echo_n='/usr/ucb/echo -n'
14879 else
14880 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14881 as_echo_n_body='eval
14882 arg=$1;
14883 case $arg in #(
14884 *"$as_nl"*)
14885 expr "X$arg" : "X\\(.*\\)$as_nl";
14886 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14887 esac;
14888 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14889 '
14890 export as_echo_n_body
14891 as_echo_n='sh -c $as_echo_n_body as_echo'
14892 fi
14893 export as_echo_body
14894 as_echo='sh -c $as_echo_body as_echo'
14895 fi
14896
14897 # The user is always right.
14898 if test "${PATH_SEPARATOR+set}" != set; then
14899 PATH_SEPARATOR=:
14900 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14901 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14902 PATH_SEPARATOR=';'
14903 }
14904 fi
14905
14906
14907 # IFS
14908 # We need space, tab and new line, in precisely that order. Quoting is
14909 # there to prevent editors from complaining about space-tab.
14910 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14911 # splitting by setting IFS to empty value.)
14912 IFS=" "" $as_nl"
14913
14914 # Find who we are. Look in the path if we contain no directory separator.
14915 as_myself=
14916 case $0 in #((
14917 *[\\/]* ) as_myself=$0 ;;
14918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14919 for as_dir in $PATH
14920 do
14921 IFS=$as_save_IFS
14922 test -z "$as_dir" && as_dir=.
14923 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14924 done
14925 IFS=$as_save_IFS
14926
14927 ;;
14928 esac
14929 # We did not find ourselves, most probably we were run as `sh COMMAND'
14930 # in which case we are not to be found in the path.
14931 if test "x$as_myself" = x; then
14932 as_myself=$0
14933 fi
14934 if test ! -f "$as_myself"; then
14935 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14936 exit 1
14937 fi
14938
14939 # Unset variables that we do not need and which cause bugs (e.g. in
14940 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14941 # suppresses any "Segmentation fault" message there. '((' could
14942 # trigger a bug in pdksh 5.2.14.
14943 for as_var in BASH_ENV ENV MAIL MAILPATH
14944 do eval test x\${$as_var+set} = xset \
14945 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14946 done
14947 PS1='$ '
14948 PS2='> '
14949 PS4='+ '
14950
14951 # NLS nuisances.
14952 LC_ALL=C
14953 export LC_ALL
14954 LANGUAGE=C
14955 export LANGUAGE
14956
14957 # CDPATH.
14958 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14959
14960
14961 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14962 # ----------------------------------------
14963 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14964 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14965 # script with STATUS, using 1 if that was 0.
14966 as_fn_error ()
14967 {
14968 as_status=$1; test $as_status -eq 0 && as_status=1
14969 if test "$4"; then
14970 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14971 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14972 fi
14973 $as_echo "$as_me: error: $2" >&2
14974 as_fn_exit $as_status
14975 } # as_fn_error
14976
14977
14978 # as_fn_set_status STATUS
14979 # -----------------------
14980 # Set $? to STATUS, without forking.
14981 as_fn_set_status ()
14982 {
14983 return $1
14984 } # as_fn_set_status
14985
14986 # as_fn_exit STATUS
14987 # -----------------
14988 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14989 as_fn_exit ()
14990 {
14991 set +e
14992 as_fn_set_status $1
14993 exit $1
14994 } # as_fn_exit
14995
14996 # as_fn_unset VAR
14997 # ---------------
14998 # Portably unset VAR.
14999 as_fn_unset ()
15000 {
15001 { eval $1=; unset $1;}
15002 }
15003 as_unset=as_fn_unset
15004 # as_fn_append VAR VALUE
15005 # ----------------------
15006 # Append the text in VALUE to the end of the definition contained in VAR. Take
15007 # advantage of any shell optimizations that allow amortized linear growth over
15008 # repeated appends, instead of the typical quadratic growth present in naive
15009 # implementations.
15010 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15011 eval 'as_fn_append ()
15012 {
15013 eval $1+=\$2
15014 }'
15015 else
15016 as_fn_append ()
15017 {
15018 eval $1=\$$1\$2
15019 }
15020 fi # as_fn_append
15021
15022 # as_fn_arith ARG...
15023 # ------------------
15024 # Perform arithmetic evaluation on the ARGs, and store the result in the
15025 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15026 # must be portable across $(()) and expr.
15027 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15028 eval 'as_fn_arith ()
15029 {
15030 as_val=$(( $* ))
15031 }'
15032 else
15033 as_fn_arith ()
15034 {
15035 as_val=`expr "$@" || test $? -eq 1`
15036 }
15037 fi # as_fn_arith
15038
15039
15040 if expr a : '\(a\)' >/dev/null 2>&1 &&
15041 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15042 as_expr=expr
15043 else
15044 as_expr=false
15045 fi
15046
15047 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15048 as_basename=basename
15049 else
15050 as_basename=false
15051 fi
15052
15053 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15054 as_dirname=dirname
15055 else
15056 as_dirname=false
15057 fi
15058
15059 as_me=`$as_basename -- "$0" ||
15060 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15061 X"$0" : 'X\(//\)$' \| \
15062 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15063 $as_echo X/"$0" |
15064 sed '/^.*\/\([^/][^/]*\)\/*$/{
15065 s//\1/
15066 q
15067 }
15068 /^X\/\(\/\/\)$/{
15069 s//\1/
15070 q
15071 }
15072 /^X\/\(\/\).*/{
15073 s//\1/
15074 q
15075 }
15076 s/.*/./; q'`
15077
15078 # Avoid depending upon Character Ranges.
15079 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15080 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15081 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15082 as_cr_digits='0123456789'
15083 as_cr_alnum=$as_cr_Letters$as_cr_digits
15084
15085 ECHO_C= ECHO_N= ECHO_T=
15086 case `echo -n x` in #(((((
15087 -n*)
15088 case `echo 'xy\c'` in
15089 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15090 xy) ECHO_C='\c';;
15091 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15092 ECHO_T=' ';;
15093 esac;;
15094 *)
15095 ECHO_N='-n';;
15096 esac
15097
15098 rm -f conf$$ conf$$.exe conf$$.file
15099 if test -d conf$$.dir; then
15100 rm -f conf$$.dir/conf$$.file
15101 else
15102 rm -f conf$$.dir
15103 mkdir conf$$.dir 2>/dev/null
15104 fi
15105 if (echo >conf$$.file) 2>/dev/null; then
15106 if ln -s conf$$.file conf$$ 2>/dev/null; then
15107 as_ln_s='ln -s'
15108 # ... but there are two gotchas:
15109 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15110 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15111 # In both cases, we have to default to `cp -p'.
15112 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15113 as_ln_s='cp -p'
15114 elif ln conf$$.file conf$$ 2>/dev/null; then
15115 as_ln_s=ln
15116 else
15117 as_ln_s='cp -p'
15118 fi
15119 else
15120 as_ln_s='cp -p'
15121 fi
15122 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15123 rmdir conf$$.dir 2>/dev/null
15124
15125
15126 # as_fn_mkdir_p
15127 # -------------
15128 # Create "$as_dir" as a directory, including parents if necessary.
15129 as_fn_mkdir_p ()
15130 {
15131
15132 case $as_dir in #(
15133 -*) as_dir=./$as_dir;;
15134 esac
15135 test -d "$as_dir" || eval $as_mkdir_p || {
15136 as_dirs=
15137 while :; do
15138 case $as_dir in #(
15139 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15140 *) as_qdir=$as_dir;;
15141 esac
15142 as_dirs="'$as_qdir' $as_dirs"
15143 as_dir=`$as_dirname -- "$as_dir" ||
15144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15145 X"$as_dir" : 'X\(//\)[^/]' \| \
15146 X"$as_dir" : 'X\(//\)$' \| \
15147 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15148 $as_echo X"$as_dir" |
15149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15150 s//\1/
15151 q
15152 }
15153 /^X\(\/\/\)[^/].*/{
15154 s//\1/
15155 q
15156 }
15157 /^X\(\/\/\)$/{
15158 s//\1/
15159 q
15160 }
15161 /^X\(\/\).*/{
15162 s//\1/
15163 q
15164 }
15165 s/.*/./; q'`
15166 test -d "$as_dir" && break
15167 done
15168 test -z "$as_dirs" || eval "mkdir $as_dirs"
15169 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15170
15171
15172 } # as_fn_mkdir_p
15173 if mkdir -p . 2>/dev/null; then
15174 as_mkdir_p='mkdir -p "$as_dir"'
15175 else
15176 test -d ./-p && rmdir ./-p
15177 as_mkdir_p=false
15178 fi
15179
15180 if test -x / >/dev/null 2>&1; then
15181 as_test_x='test -x'
15182 else
15183 if ls -dL / >/dev/null 2>&1; then
15184 as_ls_L_option=L
15185 else
15186 as_ls_L_option=
15187 fi
15188 as_test_x='
15189 eval sh -c '\''
15190 if test -d "$1"; then
15191 test -d "$1/.";
15192 else
15193 case $1 in #(
15194 -*)set "./$1";;
15195 esac;
15196 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15197 ???[sx]*):;;*)false;;esac;fi
15198 '\'' sh
15199 '
15200 fi
15201 as_executable_p=$as_test_x
15202
15203 # Sed expression to map a string onto a valid CPP name.
15204 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15205
15206 # Sed expression to map a string onto a valid variable name.
15207 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15208
15209
15210 exec 6>&1
15211 ## ----------------------------------- ##
15212 ## Main body of $CONFIG_STATUS script. ##
15213 ## ----------------------------------- ##
15214 _ASEOF
15215 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15216
15217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15218 # Save the log message, to keep $0 and so on meaningful, and to
15219 # report actual input values of CONFIG_FILES etc. instead of their
15220 # values after options handling.
15221 ac_log="
15222 This file was extended by ircd-hybrid $as_me 7.3-rc1, which was
15223 generated by GNU Autoconf 2.68. Invocation command line was
15224
15225 CONFIG_FILES = $CONFIG_FILES
15226 CONFIG_HEADERS = $CONFIG_HEADERS
15227 CONFIG_LINKS = $CONFIG_LINKS
15228 CONFIG_COMMANDS = $CONFIG_COMMANDS
15229 $ $0 $@
15230
15231 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15232 "
15233
15234 _ACEOF
15235
15236 case $ac_config_files in *"
15237 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15238 esac
15239
15240 case $ac_config_headers in *"
15241 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15242 esac
15243
15244
15245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15246 # Files that config.status was made for.
15247 config_files="$ac_config_files"
15248 config_headers="$ac_config_headers"
15249 config_commands="$ac_config_commands"
15250
15251 _ACEOF
15252
15253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15254 ac_cs_usage="\
15255 \`$as_me' instantiates files and other configuration actions
15256 from templates according to the current configuration. Unless the files
15257 and actions are specified as TAGs, all are instantiated by default.
15258
15259 Usage: $0 [OPTION]... [TAG]...
15260
15261 -h, --help print this help, then exit
15262 -V, --version print version number and configuration settings, then exit
15263 --config print configuration, then exit
15264 -q, --quiet, --silent
15265 do not print progress messages
15266 -d, --debug don't remove temporary files
15267 --recheck update $as_me by reconfiguring in the same conditions
15268 --file=FILE[:TEMPLATE]
15269 instantiate the configuration file FILE
15270 --header=FILE[:TEMPLATE]
15271 instantiate the configuration header FILE
15272
15273 Configuration files:
15274 $config_files
15275
15276 Configuration headers:
15277 $config_headers
15278
15279 Configuration commands:
15280 $config_commands
15281
15282 Report bugs to <bugs@ircd-hybrid.org>."
15283
15284 _ACEOF
15285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15286 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15287 ac_cs_version="\\
15288 ircd-hybrid config.status 7.3-rc1
15289 configured by $0, generated by GNU Autoconf 2.68,
15290 with options \\"\$ac_cs_config\\"
15291
15292 Copyright (C) 2010 Free Software Foundation, Inc.
15293 This config.status script is free software; the Free Software Foundation
15294 gives unlimited permission to copy, distribute and modify it."
15295
15296 ac_pwd='$ac_pwd'
15297 srcdir='$srcdir'
15298 INSTALL='$INSTALL'
15299 MKDIR_P='$MKDIR_P'
15300 AWK='$AWK'
15301 test -n "\$AWK" || AWK=awk
15302 _ACEOF
15303
15304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15305 # The default lists apply if the user does not specify any file.
15306 ac_need_defaults=:
15307 while test $# != 0
15308 do
15309 case $1 in
15310 --*=?*)
15311 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15312 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15313 ac_shift=:
15314 ;;
15315 --*=)
15316 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15317 ac_optarg=
15318 ac_shift=:
15319 ;;
15320 *)
15321 ac_option=$1
15322 ac_optarg=$2
15323 ac_shift=shift
15324 ;;
15325 esac
15326
15327 case $ac_option in
15328 # Handling of the options.
15329 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15330 ac_cs_recheck=: ;;
15331 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15332 $as_echo "$ac_cs_version"; exit ;;
15333 --config | --confi | --conf | --con | --co | --c )
15334 $as_echo "$ac_cs_config"; exit ;;
15335 --debug | --debu | --deb | --de | --d | -d )
15336 debug=: ;;
15337 --file | --fil | --fi | --f )
15338 $ac_shift
15339 case $ac_optarg in
15340 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15341 '') as_fn_error $? "missing file argument" ;;
15342 esac
15343 as_fn_append CONFIG_FILES " '$ac_optarg'"
15344 ac_need_defaults=false;;
15345 --header | --heade | --head | --hea )
15346 $ac_shift
15347 case $ac_optarg in
15348 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15349 esac
15350 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15351 ac_need_defaults=false;;
15352 --he | --h)
15353 # Conflict between --help and --header
15354 as_fn_error $? "ambiguous option: \`$1'
15355 Try \`$0 --help' for more information.";;
15356 --help | --hel | -h )
15357 $as_echo "$ac_cs_usage"; exit ;;
15358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15359 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15360 ac_cs_silent=: ;;
15361
15362 # This is an error.
15363 -*) as_fn_error $? "unrecognized option: \`$1'
15364 Try \`$0 --help' for more information." ;;
15365
15366 *) as_fn_append ac_config_targets " $1"
15367 ac_need_defaults=false ;;
15368
15369 esac
15370 shift
15371 done
15372
15373 ac_configure_extra_args=
15374
15375 if $ac_cs_silent; then
15376 exec 6>/dev/null
15377 ac_configure_extra_args="$ac_configure_extra_args --silent"
15378 fi
15379
15380 _ACEOF
15381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15382 if \$ac_cs_recheck; then
15383 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15384 shift
15385 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15386 CONFIG_SHELL='$SHELL'
15387 export CONFIG_SHELL
15388 exec "\$@"
15389 fi
15390
15391 _ACEOF
15392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15393 exec 5>>config.log
15394 {
15395 echo
15396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15397 ## Running $as_me. ##
15398 _ASBOX
15399 $as_echo "$ac_log"
15400 } >&5
15401
15402 _ACEOF
15403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15404 #
15405 # INIT-COMMANDS
15406 #
15407 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15408
15409
15410 # The HP-UX ksh and POSIX shell print the target directory to stdout
15411 # if CDPATH is set.
15412 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15413
15414 sed_quote_subst='$sed_quote_subst'
15415 double_quote_subst='$double_quote_subst'
15416 delay_variable_subst='$delay_variable_subst'
15417 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15418 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15419 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15420 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15421 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15422 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15423 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15424 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15425 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15426 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15427 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15428 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15429 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15430 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15431 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15432 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15433 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15434 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15435 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15436 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15437 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15438 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15439 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15440 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15441 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15442 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15443 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15444 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15445 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15446 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15447 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15448 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15449 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15450 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15451 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15452 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15453 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15454 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15455 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15456 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15457 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15458 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15459 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15460 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15461 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15462 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15463 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15464 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15465 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15466 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15467 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15468 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15469 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15470 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15471 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15472 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15473 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15474 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15475 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15476 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15477 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15478 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15479 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15480 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15481 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15482 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15483 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15484 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15485 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15486 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15487 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15488 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15489 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15490 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15491 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15492 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15493 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15494 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15495 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15496 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15497 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15498 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15499 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15500 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15501 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15502 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15503 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15504 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15505 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15506 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15507 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15508 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15509 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15510 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15511 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15512 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15513 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15514 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15515 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15516 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15517 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15518 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15519 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15520 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15521 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15522 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15523 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15524 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15525 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15526 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15527 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15528 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15529 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15530 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15531 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15532 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15533 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15534 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15535 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15536 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15537 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15538 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15539 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15540 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15541 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15542 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15543 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15544 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15545 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15546 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15547
15548 LTCC='$LTCC'
15549 LTCFLAGS='$LTCFLAGS'
15550 compiler='$compiler_DEFAULT'
15551
15552 # A function that is used when there is no print builtin or printf.
15553 func_fallback_echo ()
15554 {
15555 eval 'cat <<_LTECHO_EOF
15556 \$1
15557 _LTECHO_EOF'
15558 }
15559
15560 # Quote evaled strings.
15561 for var in SHELL \
15562 ECHO \
15563 SED \
15564 GREP \
15565 EGREP \
15566 FGREP \
15567 LD \
15568 NM \
15569 LN_S \
15570 lt_SP2NL \
15571 lt_NL2SP \
15572 reload_flag \
15573 OBJDUMP \
15574 deplibs_check_method \
15575 file_magic_cmd \
15576 file_magic_glob \
15577 want_nocaseglob \
15578 DLLTOOL \
15579 sharedlib_from_linklib_cmd \
15580 AR \
15581 AR_FLAGS \
15582 archiver_list_spec \
15583 STRIP \
15584 RANLIB \
15585 CC \
15586 CFLAGS \
15587 compiler \
15588 lt_cv_sys_global_symbol_pipe \
15589 lt_cv_sys_global_symbol_to_cdecl \
15590 lt_cv_sys_global_symbol_to_c_name_address \
15591 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15592 nm_file_list_spec \
15593 lt_prog_compiler_no_builtin_flag \
15594 lt_prog_compiler_pic \
15595 lt_prog_compiler_wl \
15596 lt_prog_compiler_static \
15597 lt_cv_prog_compiler_c_o \
15598 need_locks \
15599 MANIFEST_TOOL \
15600 DSYMUTIL \
15601 NMEDIT \
15602 LIPO \
15603 OTOOL \
15604 OTOOL64 \
15605 shrext_cmds \
15606 export_dynamic_flag_spec \
15607 whole_archive_flag_spec \
15608 compiler_needs_object \
15609 with_gnu_ld \
15610 allow_undefined_flag \
15611 no_undefined_flag \
15612 hardcode_libdir_flag_spec \
15613 hardcode_libdir_flag_spec_ld \
15614 hardcode_libdir_separator \
15615 exclude_expsyms \
15616 include_expsyms \
15617 file_list_spec \
15618 variables_saved_for_relink \
15619 libname_spec \
15620 library_names_spec \
15621 soname_spec \
15622 install_override_mode \
15623 finish_eval \
15624 old_striplib \
15625 striplib; do
15626 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15627 *[\\\\\\\`\\"\\\$]*)
15628 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15629 ;;
15630 *)
15631 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15632 ;;
15633 esac
15634 done
15635
15636 # Double-quote double-evaled strings.
15637 for var in reload_cmds \
15638 old_postinstall_cmds \
15639 old_postuninstall_cmds \
15640 old_archive_cmds \
15641 extract_expsyms_cmds \
15642 old_archive_from_new_cmds \
15643 old_archive_from_expsyms_cmds \
15644 archive_cmds \
15645 archive_expsym_cmds \
15646 module_cmds \
15647 module_expsym_cmds \
15648 export_symbols_cmds \
15649 prelink_cmds \
15650 postlink_cmds \
15651 postinstall_cmds \
15652 postuninstall_cmds \
15653 finish_cmds \
15654 sys_lib_search_path_spec \
15655 sys_lib_dlsearch_path_spec; do
15656 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15657 *[\\\\\\\`\\"\\\$]*)
15658 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15659 ;;
15660 *)
15661 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15662 ;;
15663 esac
15664 done
15665
15666 ac_aux_dir='$ac_aux_dir'
15667 xsi_shell='$xsi_shell'
15668 lt_shell_append='$lt_shell_append'
15669
15670 # See if we are running on zsh, and set the options which allow our
15671 # commands through without removal of \ escapes INIT.
15672 if test -n "\${ZSH_VERSION+set}" ; then
15673 setopt NO_GLOB_SUBST
15674 fi
15675
15676
15677 PACKAGE='$PACKAGE'
15678 VERSION='$VERSION'
15679 TIMESTAMP='$TIMESTAMP'
15680 RM='$RM'
15681 ofile='$ofile'
15682
15683
15684
15685
15686 _ACEOF
15687
15688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15689
15690 # Handling of arguments.
15691 for ac_config_target in $ac_config_targets
15692 do
15693 case $ac_config_target in
15694 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15695 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15696 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15697 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15698 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
15699 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
15700 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15701 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
15702 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15703 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15704 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
15705 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15706 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15707 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15708 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15709 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15710 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
15711 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15712
15713 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15714 esac
15715 done
15716
15717
15718 # If the user did not use the arguments to specify the items to instantiate,
15719 # then the envvar interface is used. Set only those that are not.
15720 # We use the long form for the default assignment because of an extremely
15721 # bizarre bug on SunOS 4.1.3.
15722 if $ac_need_defaults; then
15723 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15724 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15725 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15726 fi
15727
15728 # Have a temporary directory for convenience. Make it in the build tree
15729 # simply because there is no reason against having it here, and in addition,
15730 # creating and moving files from /tmp can sometimes cause problems.
15731 # Hook for its removal unless debugging.
15732 # Note that there is a small window in which the directory will not be cleaned:
15733 # after its creation but before its name has been assigned to `$tmp'.
15734 $debug ||
15735 {
15736 tmp= ac_tmp=
15737 trap 'exit_status=$?
15738 : "${ac_tmp:=$tmp}"
15739 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15740 ' 0
15741 trap 'as_fn_exit 1' 1 2 13 15
15742 }
15743 # Create a (secure) tmp directory for tmp files.
15744
15745 {
15746 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15747 test -d "$tmp"
15748 } ||
15749 {
15750 tmp=./conf$$-$RANDOM
15751 (umask 077 && mkdir "$tmp")
15752 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15753 ac_tmp=$tmp
15754
15755 # Set up the scripts for CONFIG_FILES section.
15756 # No need to generate them if there are no CONFIG_FILES.
15757 # This happens for instance with `./config.status config.h'.
15758 if test -n "$CONFIG_FILES"; then
15759
15760
15761 ac_cr=`echo X | tr X '\015'`
15762 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15763 # But we know of no other shell where ac_cr would be empty at this
15764 # point, so we can use a bashism as a fallback.
15765 if test "x$ac_cr" = x; then
15766 eval ac_cr=\$\'\\r\'
15767 fi
15768 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15769 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15770 ac_cs_awk_cr='\\r'
15771 else
15772 ac_cs_awk_cr=$ac_cr
15773 fi
15774
15775 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15776 _ACEOF
15777
15778
15779 {
15780 echo "cat >conf$$subs.awk <<_ACEOF" &&
15781 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15782 echo "_ACEOF"
15783 } >conf$$subs.sh ||
15784 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15785 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15786 ac_delim='%!_!# '
15787 for ac_last_try in false false false false false :; do
15788 . ./conf$$subs.sh ||
15789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15790
15791 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15792 if test $ac_delim_n = $ac_delim_num; then
15793 break
15794 elif $ac_last_try; then
15795 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15796 else
15797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15798 fi
15799 done
15800 rm -f conf$$subs.sh
15801
15802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15803 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15804 _ACEOF
15805 sed -n '
15806 h
15807 s/^/S["/; s/!.*/"]=/
15808 p
15809 g
15810 s/^[^!]*!//
15811 :repl
15812 t repl
15813 s/'"$ac_delim"'$//
15814 t delim
15815 :nl
15816 h
15817 s/\(.\{148\}\)..*/\1/
15818 t more1
15819 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15820 p
15821 n
15822 b repl
15823 :more1
15824 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15825 p
15826 g
15827 s/.\{148\}//
15828 t nl
15829 :delim
15830 h
15831 s/\(.\{148\}\)..*/\1/
15832 t more2
15833 s/["\\]/\\&/g; s/^/"/; s/$/"/
15834 p
15835 b
15836 :more2
15837 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15838 p
15839 g
15840 s/.\{148\}//
15841 t delim
15842 ' <conf$$subs.awk | sed '
15843 /^[^""]/{
15844 N
15845 s/\n//
15846 }
15847 ' >>$CONFIG_STATUS || ac_write_fail=1
15848 rm -f conf$$subs.awk
15849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15850 _ACAWK
15851 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15852 for (key in S) S_is_set[key] = 1
15853 FS = ""
15854
15855 }
15856 {
15857 line = $ 0
15858 nfields = split(line, field, "@")
15859 substed = 0
15860 len = length(field[1])
15861 for (i = 2; i < nfields; i++) {
15862 key = field[i]
15863 keylen = length(key)
15864 if (S_is_set[key]) {
15865 value = S[key]
15866 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15867 len += length(value) + length(field[++i])
15868 substed = 1
15869 } else
15870 len += 1 + keylen
15871 }
15872
15873 print line
15874 }
15875
15876 _ACAWK
15877 _ACEOF
15878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15879 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15880 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15881 else
15882 cat
15883 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15884 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15885 _ACEOF
15886
15887 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15888 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15889 # trailing colons and then remove the whole line if VPATH becomes empty
15890 # (actually we leave an empty line to preserve line numbers).
15891 if test "x$srcdir" = x.; then
15892 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15893 h
15894 s///
15895 s/^/:/
15896 s/[ ]*$/:/
15897 s/:\$(srcdir):/:/g
15898 s/:\${srcdir}:/:/g
15899 s/:@srcdir@:/:/g
15900 s/^:*//
15901 s/:*$//
15902 x
15903 s/\(=[ ]*\).*/\1/
15904 G
15905 s/\n//
15906 s/^[^=]*=[ ]*$//
15907 }'
15908 fi
15909
15910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15911 fi # test -n "$CONFIG_FILES"
15912
15913 # Set up the scripts for CONFIG_HEADERS section.
15914 # No need to generate them if there are no CONFIG_HEADERS.
15915 # This happens for instance with `./config.status Makefile'.
15916 if test -n "$CONFIG_HEADERS"; then
15917 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15918 BEGIN {
15919 _ACEOF
15920
15921 # Transform confdefs.h into an awk script `defines.awk', embedded as
15922 # here-document in config.status, that substitutes the proper values into
15923 # config.h.in to produce config.h.
15924
15925 # Create a delimiter string that does not exist in confdefs.h, to ease
15926 # handling of long lines.
15927 ac_delim='%!_!# '
15928 for ac_last_try in false false :; do
15929 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15930 if test -z "$ac_tt"; then
15931 break
15932 elif $ac_last_try; then
15933 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15934 else
15935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15936 fi
15937 done
15938
15939 # For the awk script, D is an array of macro values keyed by name,
15940 # likewise P contains macro parameters if any. Preserve backslash
15941 # newline sequences.
15942
15943 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15944 sed -n '
15945 s/.\{148\}/&'"$ac_delim"'/g
15946 t rset
15947 :rset
15948 s/^[ ]*#[ ]*define[ ][ ]*/ /
15949 t def
15950 d
15951 :def
15952 s/\\$//
15953 t bsnl
15954 s/["\\]/\\&/g
15955 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15956 D["\1"]=" \3"/p
15957 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15958 d
15959 :bsnl
15960 s/["\\]/\\&/g
15961 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15962 D["\1"]=" \3\\\\\\n"\\/p
15963 t cont
15964 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15965 t cont
15966 d
15967 :cont
15968 n
15969 s/.\{148\}/&'"$ac_delim"'/g
15970 t clear
15971 :clear
15972 s/\\$//
15973 t bsnlc
15974 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15975 d
15976 :bsnlc
15977 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15978 b cont
15979 ' <confdefs.h | sed '
15980 s/'"$ac_delim"'/"\\\
15981 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15982
15983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15984 for (key in D) D_is_set[key] = 1
15985 FS = ""
15986 }
15987 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15988 line = \$ 0
15989 split(line, arg, " ")
15990 if (arg[1] == "#") {
15991 defundef = arg[2]
15992 mac1 = arg[3]
15993 } else {
15994 defundef = substr(arg[1], 2)
15995 mac1 = arg[2]
15996 }
15997 split(mac1, mac2, "(") #)
15998 macro = mac2[1]
15999 prefix = substr(line, 1, index(line, defundef) - 1)
16000 if (D_is_set[macro]) {
16001 # Preserve the white space surrounding the "#".
16002 print prefix "define", macro P[macro] D[macro]
16003 next
16004 } else {
16005 # Replace #undef with comments. This is necessary, for example,
16006 # in the case of _POSIX_SOURCE, which is predefined and required
16007 # on some systems where configure will not decide to define it.
16008 if (defundef == "undef") {
16009 print "/*", prefix defundef, macro, "*/"
16010 next
16011 }
16012 }
16013 }
16014 { print }
16015 _ACAWK
16016 _ACEOF
16017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16018 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16019 fi # test -n "$CONFIG_HEADERS"
16020
16021
16022 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16023 shift
16024 for ac_tag
16025 do
16026 case $ac_tag in
16027 :[FHLC]) ac_mode=$ac_tag; continue;;
16028 esac
16029 case $ac_mode$ac_tag in
16030 :[FHL]*:*);;
16031 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16032 :[FH]-) ac_tag=-:-;;
16033 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16034 esac
16035 ac_save_IFS=$IFS
16036 IFS=:
16037 set x $ac_tag
16038 IFS=$ac_save_IFS
16039 shift
16040 ac_file=$1
16041 shift
16042
16043 case $ac_mode in
16044 :L) ac_source=$1;;
16045 :[FH])
16046 ac_file_inputs=
16047 for ac_f
16048 do
16049 case $ac_f in
16050 -) ac_f="$ac_tmp/stdin";;
16051 *) # Look for the file first in the build tree, then in the source tree
16052 # (if the path is not absolute). The absolute path cannot be DOS-style,
16053 # because $ac_f cannot contain `:'.
16054 test -f "$ac_f" ||
16055 case $ac_f in
16056 [\\/$]*) false;;
16057 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16058 esac ||
16059 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16060 esac
16061 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16062 as_fn_append ac_file_inputs " '$ac_f'"
16063 done
16064
16065 # Let's still pretend it is `configure' which instantiates (i.e., don't
16066 # use $as_me), people would be surprised to read:
16067 # /* config.h. Generated by config.status. */
16068 configure_input='Generated from '`
16069 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16070 `' by configure.'
16071 if test x"$ac_file" != x-; then
16072 configure_input="$ac_file. $configure_input"
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16074 $as_echo "$as_me: creating $ac_file" >&6;}
16075 fi
16076 # Neutralize special characters interpreted by sed in replacement strings.
16077 case $configure_input in #(
16078 *\&* | *\|* | *\\* )
16079 ac_sed_conf_input=`$as_echo "$configure_input" |
16080 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16081 *) ac_sed_conf_input=$configure_input;;
16082 esac
16083
16084 case $ac_tag in
16085 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16087 esac
16088 ;;
16089 esac
16090
16091 ac_dir=`$as_dirname -- "$ac_file" ||
16092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16093 X"$ac_file" : 'X\(//\)[^/]' \| \
16094 X"$ac_file" : 'X\(//\)$' \| \
16095 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16096 $as_echo X"$ac_file" |
16097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16098 s//\1/
16099 q
16100 }
16101 /^X\(\/\/\)[^/].*/{
16102 s//\1/
16103 q
16104 }
16105 /^X\(\/\/\)$/{
16106 s//\1/
16107 q
16108 }
16109 /^X\(\/\).*/{
16110 s//\1/
16111 q
16112 }
16113 s/.*/./; q'`
16114 as_dir="$ac_dir"; as_fn_mkdir_p
16115 ac_builddir=.
16116
16117 case "$ac_dir" in
16118 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16119 *)
16120 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16121 # A ".." for each directory in $ac_dir_suffix.
16122 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16123 case $ac_top_builddir_sub in
16124 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16125 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16126 esac ;;
16127 esac
16128 ac_abs_top_builddir=$ac_pwd
16129 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16130 # for backward compatibility:
16131 ac_top_builddir=$ac_top_build_prefix
16132
16133 case $srcdir in
16134 .) # We are building in place.
16135 ac_srcdir=.
16136 ac_top_srcdir=$ac_top_builddir_sub
16137 ac_abs_top_srcdir=$ac_pwd ;;
16138 [\\/]* | ?:[\\/]* ) # Absolute name.
16139 ac_srcdir=$srcdir$ac_dir_suffix;
16140 ac_top_srcdir=$srcdir
16141 ac_abs_top_srcdir=$srcdir ;;
16142 *) # Relative name.
16143 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16144 ac_top_srcdir=$ac_top_build_prefix$srcdir
16145 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16146 esac
16147 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16148
16149
16150 case $ac_mode in
16151 :F)
16152 #
16153 # CONFIG_FILE
16154 #
16155
16156 case $INSTALL in
16157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16158 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16159 esac
16160 ac_MKDIR_P=$MKDIR_P
16161 case $MKDIR_P in
16162 [\\/$]* | ?:[\\/]* ) ;;
16163 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16164 esac
16165 _ACEOF
16166
16167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16168 # If the template does not know about datarootdir, expand it.
16169 # FIXME: This hack should be removed a few years after 2.60.
16170 ac_datarootdir_hack=; ac_datarootdir_seen=
16171 ac_sed_dataroot='
16172 /datarootdir/ {
16173 p
16174 q
16175 }
16176 /@datadir@/p
16177 /@docdir@/p
16178 /@infodir@/p
16179 /@localedir@/p
16180 /@mandir@/p'
16181 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16182 *datarootdir*) ac_datarootdir_seen=yes;;
16183 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16185 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16186 _ACEOF
16187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16188 ac_datarootdir_hack='
16189 s&@datadir@&$datadir&g
16190 s&@docdir@&$docdir&g
16191 s&@infodir@&$infodir&g
16192 s&@localedir@&$localedir&g
16193 s&@mandir@&$mandir&g
16194 s&\\\${datarootdir}&$datarootdir&g' ;;
16195 esac
16196 _ACEOF
16197
16198 # Neutralize VPATH when `$srcdir' = `.'.
16199 # Shell code in configure.ac might set extrasub.
16200 # FIXME: do we really want to maintain this feature?
16201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16202 ac_sed_extra="$ac_vpsub
16203 $extrasub
16204 _ACEOF
16205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16206 :t
16207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16208 s|@configure_input@|$ac_sed_conf_input|;t t
16209 s&@top_builddir@&$ac_top_builddir_sub&;t t
16210 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16211 s&@srcdir@&$ac_srcdir&;t t
16212 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16213 s&@top_srcdir@&$ac_top_srcdir&;t t
16214 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16215 s&@builddir@&$ac_builddir&;t t
16216 s&@abs_builddir@&$ac_abs_builddir&;t t
16217 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16218 s&@INSTALL@&$ac_INSTALL&;t t
16219 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16220 $ac_datarootdir_hack
16221 "
16222 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16223 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16224
16225 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16226 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16227 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16228 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16230 which seems to be undefined. Please make sure it is defined" >&5
16231 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16232 which seems to be undefined. Please make sure it is defined" >&2;}
16233
16234 rm -f "$ac_tmp/stdin"
16235 case $ac_file in
16236 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16237 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16238 esac \
16239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16240 ;;
16241 :H)
16242 #
16243 # CONFIG_HEADER
16244 #
16245 if test x"$ac_file" != x-; then
16246 {
16247 $as_echo "/* $configure_input */" \
16248 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16249 } >"$ac_tmp/config.h" \
16250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16251 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16253 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16254 else
16255 rm -f "$ac_file"
16256 mv "$ac_tmp/config.h" "$ac_file" \
16257 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16258 fi
16259 else
16260 $as_echo "/* $configure_input */" \
16261 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16262 || as_fn_error $? "could not create -" "$LINENO" 5
16263 fi
16264 # Compute "$ac_file"'s index in $config_headers.
16265 _am_arg="$ac_file"
16266 _am_stamp_count=1
16267 for _am_header in $config_headers :; do
16268 case $_am_header in
16269 $_am_arg | $_am_arg:* )
16270 break ;;
16271 * )
16272 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16273 esac
16274 done
16275 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16276 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16277 X"$_am_arg" : 'X\(//\)[^/]' \| \
16278 X"$_am_arg" : 'X\(//\)$' \| \
16279 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16280 $as_echo X"$_am_arg" |
16281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16282 s//\1/
16283 q
16284 }
16285 /^X\(\/\/\)[^/].*/{
16286 s//\1/
16287 q
16288 }
16289 /^X\(\/\/\)$/{
16290 s//\1/
16291 q
16292 }
16293 /^X\(\/\).*/{
16294 s//\1/
16295 q
16296 }
16297 s/.*/./; q'`/stamp-h$_am_stamp_count
16298 ;;
16299
16300 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16301 $as_echo "$as_me: executing $ac_file commands" >&6;}
16302 ;;
16303 esac
16304
16305
16306 case $ac_file$ac_mode in
16307 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16308 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16309 # are listed without --file. Let's play safe and only enable the eval
16310 # if we detect the quoting.
16311 case $CONFIG_FILES in
16312 *\'*) eval set x "$CONFIG_FILES" ;;
16313 *) set x $CONFIG_FILES ;;
16314 esac
16315 shift
16316 for mf
16317 do
16318 # Strip MF so we end up with the name of the file.
16319 mf=`echo "$mf" | sed -e 's/:.*$//'`
16320 # Check whether this is an Automake generated Makefile or not.
16321 # We used to match only the files named `Makefile.in', but
16322 # some people rename them; so instead we look at the file content.
16323 # Grep'ing the first line is not enough: some people post-process
16324 # each Makefile.in and add a new line on top of each file to say so.
16325 # Grep'ing the whole file is not good either: AIX grep has a line
16326 # limit of 2048, but all sed's we know have understand at least 4000.
16327 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16328 dirpart=`$as_dirname -- "$mf" ||
16329 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16330 X"$mf" : 'X\(//\)[^/]' \| \
16331 X"$mf" : 'X\(//\)$' \| \
16332 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16333 $as_echo X"$mf" |
16334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16335 s//\1/
16336 q
16337 }
16338 /^X\(\/\/\)[^/].*/{
16339 s//\1/
16340 q
16341 }
16342 /^X\(\/\/\)$/{
16343 s//\1/
16344 q
16345 }
16346 /^X\(\/\).*/{
16347 s//\1/
16348 q
16349 }
16350 s/.*/./; q'`
16351 else
16352 continue
16353 fi
16354 # Extract the definition of DEPDIR, am__include, and am__quote
16355 # from the Makefile without running `make'.
16356 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16357 test -z "$DEPDIR" && continue
16358 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16359 test -z "am__include" && continue
16360 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16361 # When using ansi2knr, U may be empty or an underscore; expand it
16362 U=`sed -n 's/^U = //p' < "$mf"`
16363 # Find all dependency output files, they are included files with
16364 # $(DEPDIR) in their names. We invoke sed twice because it is the
16365 # simplest approach to changing $(DEPDIR) to its actual value in the
16366 # expansion.
16367 for file in `sed -n "
16368 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16369 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16370 # Make sure the directory exists.
16371 test -f "$dirpart/$file" && continue
16372 fdir=`$as_dirname -- "$file" ||
16373 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16374 X"$file" : 'X\(//\)[^/]' \| \
16375 X"$file" : 'X\(//\)$' \| \
16376 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16377 $as_echo X"$file" |
16378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16379 s//\1/
16380 q
16381 }
16382 /^X\(\/\/\)[^/].*/{
16383 s//\1/
16384 q
16385 }
16386 /^X\(\/\/\)$/{
16387 s//\1/
16388 q
16389 }
16390 /^X\(\/\).*/{
16391 s//\1/
16392 q
16393 }
16394 s/.*/./; q'`
16395 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16396 # echo "creating $dirpart/$file"
16397 echo '# dummy' > "$dirpart/$file"
16398 done
16399 done
16400 }
16401 ;;
16402 "libtool":C)
16403
16404 # See if we are running on zsh, and set the options which allow our
16405 # commands through without removal of \ escapes.
16406 if test -n "${ZSH_VERSION+set}" ; then
16407 setopt NO_GLOB_SUBST
16408 fi
16409
16410 cfgfile="${ofile}T"
16411 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16412 $RM "$cfgfile"
16413
16414 cat <<_LT_EOF >> "$cfgfile"
16415 #! $SHELL
16416
16417 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16418 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16419 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16420 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16421 #
16422 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16423 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16424 # Inc.
16425 # Written by Gordon Matzigkeit, 1996
16426 #
16427 # This file is part of GNU Libtool.
16428 #
16429 # GNU Libtool is free software; you can redistribute it and/or
16430 # modify it under the terms of the GNU General Public License as
16431 # published by the Free Software Foundation; either version 2 of
16432 # the License, or (at your option) any later version.
16433 #
16434 # As a special exception to the GNU General Public License,
16435 # if you distribute this file as part of a program or library that
16436 # is built using GNU Libtool, you may include this file under the
16437 # same distribution terms that you use for the rest of that program.
16438 #
16439 # GNU Libtool is distributed in the hope that it will be useful,
16440 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16441 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16442 # GNU General Public License for more details.
16443 #
16444 # You should have received a copy of the GNU General Public License
16445 # along with GNU Libtool; see the file COPYING. If not, a copy
16446 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16447 # obtained by writing to the Free Software Foundation, Inc.,
16448 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16449
16450
16451 # The names of the tagged configurations supported by this script.
16452 available_tags=""
16453
16454 # ### BEGIN LIBTOOL CONFIG
16455
16456 # Which release of libtool.m4 was used?
16457 macro_version=$macro_version
16458 macro_revision=$macro_revision
16459
16460 # Whether or not to build static libraries.
16461 build_old_libs=$enable_static
16462
16463 # Whether or not to build shared libraries.
16464 build_libtool_libs=$enable_shared
16465
16466 # What type of objects to build.
16467 pic_mode=$pic_mode
16468
16469 # Whether or not to optimize for fast installation.
16470 fast_install=$enable_fast_install
16471
16472 # Shell to use when invoking shell scripts.
16473 SHELL=$lt_SHELL
16474
16475 # An echo program that protects backslashes.
16476 ECHO=$lt_ECHO
16477
16478 # The host system.
16479 host_alias=$host_alias
16480 host=$host
16481 host_os=$host_os
16482
16483 # The build system.
16484 build_alias=$build_alias
16485 build=$build
16486 build_os=$build_os
16487
16488 # A sed program that does not truncate output.
16489 SED=$lt_SED
16490
16491 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16492 Xsed="\$SED -e 1s/^X//"
16493
16494 # A grep program that handles long lines.
16495 GREP=$lt_GREP
16496
16497 # An ERE matcher.
16498 EGREP=$lt_EGREP
16499
16500 # A literal string matcher.
16501 FGREP=$lt_FGREP
16502
16503 # A BSD- or MS-compatible name lister.
16504 NM=$lt_NM
16505
16506 # Whether we need soft or hard links.
16507 LN_S=$lt_LN_S
16508
16509 # What is the maximum length of a command?
16510 max_cmd_len=$max_cmd_len
16511
16512 # Object file suffix (normally "o").
16513 objext=$ac_objext
16514
16515 # Executable file suffix (normally "").
16516 exeext=$exeext
16517
16518 # whether the shell understands "unset".
16519 lt_unset=$lt_unset
16520
16521 # turn spaces into newlines.
16522 SP2NL=$lt_lt_SP2NL
16523
16524 # turn newlines into spaces.
16525 NL2SP=$lt_lt_NL2SP
16526
16527 # convert \$build file names to \$host format.
16528 to_host_file_cmd=$lt_cv_to_host_file_cmd
16529
16530 # convert \$build files to toolchain format.
16531 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16532
16533 # An object symbol dumper.
16534 OBJDUMP=$lt_OBJDUMP
16535
16536 # Method to check whether dependent libraries are shared objects.
16537 deplibs_check_method=$lt_deplibs_check_method
16538
16539 # Command to use when deplibs_check_method = "file_magic".
16540 file_magic_cmd=$lt_file_magic_cmd
16541
16542 # How to find potential files when deplibs_check_method = "file_magic".
16543 file_magic_glob=$lt_file_magic_glob
16544
16545 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16546 want_nocaseglob=$lt_want_nocaseglob
16547
16548 # DLL creation program.
16549 DLLTOOL=$lt_DLLTOOL
16550
16551 # Command to associate shared and link libraries.
16552 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16553
16554 # The archiver.
16555 AR=$lt_AR
16556
16557 # Flags to create an archive.
16558 AR_FLAGS=$lt_AR_FLAGS
16559
16560 # How to feed a file listing to the archiver.
16561 archiver_list_spec=$lt_archiver_list_spec
16562
16563 # A symbol stripping program.
16564 STRIP=$lt_STRIP
16565
16566 # Commands used to install an old-style archive.
16567 RANLIB=$lt_RANLIB
16568 old_postinstall_cmds=$lt_old_postinstall_cmds
16569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16570
16571 # Whether to use a lock for old archive extraction.
16572 lock_old_archive_extraction=$lock_old_archive_extraction
16573
16574 # A C compiler.
16575 LTCC=$lt_CC
16576
16577 # LTCC compiler flags.
16578 LTCFLAGS=$lt_CFLAGS
16579
16580 # Take the output of nm and produce a listing of raw symbols and C names.
16581 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16582
16583 # Transform the output of nm in a proper C declaration.
16584 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16585
16586 # Transform the output of nm in a C name address pair.
16587 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16588
16589 # Transform the output of nm in a C name address pair when lib prefix is needed.
16590 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16591
16592 # Specify filename containing input files for \$NM.
16593 nm_file_list_spec=$lt_nm_file_list_spec
16594
16595 # The root where to search for dependent libraries,and in which our libraries should be installed.
16596 lt_sysroot=$lt_sysroot
16597
16598 # The name of the directory that contains temporary libtool files.
16599 objdir=$objdir
16600
16601 # Used to examine libraries when file_magic_cmd begins with "file".
16602 MAGIC_CMD=$MAGIC_CMD
16603
16604 # Must we lock files when doing compilation?
16605 need_locks=$lt_need_locks
16606
16607 # Manifest tool.
16608 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16609
16610 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16611 DSYMUTIL=$lt_DSYMUTIL
16612
16613 # Tool to change global to local symbols on Mac OS X.
16614 NMEDIT=$lt_NMEDIT
16615
16616 # Tool to manipulate fat objects and archives on Mac OS X.
16617 LIPO=$lt_LIPO
16618
16619 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16620 OTOOL=$lt_OTOOL
16621
16622 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16623 OTOOL64=$lt_OTOOL64
16624
16625 # Old archive suffix (normally "a").
16626 libext=$libext
16627
16628 # Shared library suffix (normally ".so").
16629 shrext_cmds=$lt_shrext_cmds
16630
16631 # The commands to extract the exported symbol list from a shared archive.
16632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16633
16634 # Variables whose values should be saved in libtool wrapper scripts and
16635 # restored at link time.
16636 variables_saved_for_relink=$lt_variables_saved_for_relink
16637
16638 # Do we need the "lib" prefix for modules?
16639 need_lib_prefix=$need_lib_prefix
16640
16641 # Do we need a version for libraries?
16642 need_version=$need_version
16643
16644 # Library versioning type.
16645 version_type=$version_type
16646
16647 # Shared library runtime path variable.
16648 runpath_var=$runpath_var
16649
16650 # Shared library path variable.
16651 shlibpath_var=$shlibpath_var
16652
16653 # Is shlibpath searched before the hard-coded library search path?
16654 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16655
16656 # Format of library name prefix.
16657 libname_spec=$lt_libname_spec
16658
16659 # List of archive names. First name is the real one, the rest are links.
16660 # The last name is the one that the linker finds with -lNAME
16661 library_names_spec=$lt_library_names_spec
16662
16663 # The coded name of the library, if different from the real name.
16664 soname_spec=$lt_soname_spec
16665
16666 # Permission mode override for installation of shared libraries.
16667 install_override_mode=$lt_install_override_mode
16668
16669 # Command to use after installation of a shared archive.
16670 postinstall_cmds=$lt_postinstall_cmds
16671
16672 # Command to use after uninstallation of a shared archive.
16673 postuninstall_cmds=$lt_postuninstall_cmds
16674
16675 # Commands used to finish a libtool library installation in a directory.
16676 finish_cmds=$lt_finish_cmds
16677
16678 # As "finish_cmds", except a single script fragment to be evaled but
16679 # not shown.
16680 finish_eval=$lt_finish_eval
16681
16682 # Whether we should hardcode library paths into libraries.
16683 hardcode_into_libs=$hardcode_into_libs
16684
16685 # Compile-time system search path for libraries.
16686 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16687
16688 # Run-time system search path for libraries.
16689 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16690
16691 # Whether dlopen is supported.
16692 dlopen_support=$enable_dlopen
16693
16694 # Whether dlopen of programs is supported.
16695 dlopen_self=$enable_dlopen_self
16696
16697 # Whether dlopen of statically linked programs is supported.
16698 dlopen_self_static=$enable_dlopen_self_static
16699
16700 # Commands to strip libraries.
16701 old_striplib=$lt_old_striplib
16702 striplib=$lt_striplib
16703
16704
16705 # The linker used to build libraries.
16706 LD=$lt_LD
16707
16708 # How to create reloadable object files.
16709 reload_flag=$lt_reload_flag
16710 reload_cmds=$lt_reload_cmds
16711
16712 # Commands used to build an old-style archive.
16713 old_archive_cmds=$lt_old_archive_cmds
16714
16715 # A language specific compiler.
16716 CC=$lt_compiler
16717
16718 # Is the compiler the GNU compiler?
16719 with_gcc=$GCC
16720
16721 # Compiler flag to turn off builtin functions.
16722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16723
16724 # Additional compiler flags for building library objects.
16725 pic_flag=$lt_lt_prog_compiler_pic
16726
16727 # How to pass a linker flag through the compiler.
16728 wl=$lt_lt_prog_compiler_wl
16729
16730 # Compiler flag to prevent dynamic linking.
16731 link_static_flag=$lt_lt_prog_compiler_static
16732
16733 # Does compiler simultaneously support -c and -o options?
16734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16735
16736 # Whether or not to add -lc for building shared libraries.
16737 build_libtool_need_lc=$archive_cmds_need_lc
16738
16739 # Whether or not to disallow shared libs when runtime libs are static.
16740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16741
16742 # Compiler flag to allow reflexive dlopens.
16743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16744
16745 # Compiler flag to generate shared objects directly from archives.
16746 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16747
16748 # Whether the compiler copes with passing no objects directly.
16749 compiler_needs_object=$lt_compiler_needs_object
16750
16751 # Create an old-style archive from a shared archive.
16752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16753
16754 # Create a temporary old-style archive to link instead of a shared archive.
16755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16756
16757 # Commands used to build a shared archive.
16758 archive_cmds=$lt_archive_cmds
16759 archive_expsym_cmds=$lt_archive_expsym_cmds
16760
16761 # Commands used to build a loadable module if different from building
16762 # a shared archive.
16763 module_cmds=$lt_module_cmds
16764 module_expsym_cmds=$lt_module_expsym_cmds
16765
16766 # Whether we are building with GNU ld or not.
16767 with_gnu_ld=$lt_with_gnu_ld
16768
16769 # Flag that allows shared libraries with undefined symbols to be built.
16770 allow_undefined_flag=$lt_allow_undefined_flag
16771
16772 # Flag that enforces no undefined symbols.
16773 no_undefined_flag=$lt_no_undefined_flag
16774
16775 # Flag to hardcode \$libdir into a binary during linking.
16776 # This must work even if \$libdir does not exist
16777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16778
16779 # If ld is used when linking, flag to hardcode \$libdir into a binary
16780 # during linking. This must work even if \$libdir does not exist.
16781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16782
16783 # Whether we need a single "-rpath" flag with a separated argument.
16784 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16785
16786 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16787 # DIR into the resulting binary.
16788 hardcode_direct=$hardcode_direct
16789
16790 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16791 # DIR into the resulting binary and the resulting library dependency is
16792 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16793 # library is relocated.
16794 hardcode_direct_absolute=$hardcode_direct_absolute
16795
16796 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16797 # into the resulting binary.
16798 hardcode_minus_L=$hardcode_minus_L
16799
16800 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16801 # into the resulting binary.
16802 hardcode_shlibpath_var=$hardcode_shlibpath_var
16803
16804 # Set to "yes" if building a shared library automatically hardcodes DIR
16805 # into the library and all subsequent libraries and executables linked
16806 # against it.
16807 hardcode_automatic=$hardcode_automatic
16808
16809 # Set to yes if linker adds runtime paths of dependent libraries
16810 # to runtime path list.
16811 inherit_rpath=$inherit_rpath
16812
16813 # Whether libtool must link a program against all its dependency libraries.
16814 link_all_deplibs=$link_all_deplibs
16815
16816 # Set to "yes" if exported symbols are required.
16817 always_export_symbols=$always_export_symbols
16818
16819 # The commands to list exported symbols.
16820 export_symbols_cmds=$lt_export_symbols_cmds
16821
16822 # Symbols that should not be listed in the preloaded symbols.
16823 exclude_expsyms=$lt_exclude_expsyms
16824
16825 # Symbols that must always be exported.
16826 include_expsyms=$lt_include_expsyms
16827
16828 # Commands necessary for linking programs (against libraries) with templates.
16829 prelink_cmds=$lt_prelink_cmds
16830
16831 # Commands necessary for finishing linking programs.
16832 postlink_cmds=$lt_postlink_cmds
16833
16834 # Specify filename containing input files.
16835 file_list_spec=$lt_file_list_spec
16836
16837 # How to hardcode a shared library path into an executable.
16838 hardcode_action=$hardcode_action
16839
16840 # ### END LIBTOOL CONFIG
16841
16842 _LT_EOF
16843
16844 case $host_os in
16845 aix3*)
16846 cat <<\_LT_EOF >> "$cfgfile"
16847 # AIX sometimes has problems with the GCC collect2 program. For some
16848 # reason, if we set the COLLECT_NAMES environment variable, the problems
16849 # vanish in a puff of smoke.
16850 if test "X${COLLECT_NAMES+set}" != Xset; then
16851 COLLECT_NAMES=
16852 export COLLECT_NAMES
16853 fi
16854 _LT_EOF
16855 ;;
16856 esac
16857
16858
16859 ltmain="$ac_aux_dir/ltmain.sh"
16860
16861
16862 # We use sed instead of cat because bash on DJGPP gets confused if
16863 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16864 # text mode, it properly converts lines to CR/LF. This bash problem
16865 # is reportedly fixed, but why not run on old versions too?
16866 sed '$q' "$ltmain" >> "$cfgfile" \
16867 || (rm -f "$cfgfile"; exit 1)
16868
16869 if test x"$xsi_shell" = xyes; then
16870 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16871 func_dirname ()\
16872 {\
16873 \ case ${1} in\
16874 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16875 \ * ) func_dirname_result="${3}" ;;\
16876 \ esac\
16877 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16878 && mv -f "$cfgfile.tmp" "$cfgfile" \
16879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16880 test 0 -eq $? || _lt_function_replace_fail=:
16881
16882
16883 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16884 func_basename ()\
16885 {\
16886 \ func_basename_result="${1##*/}"\
16887 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16888 && mv -f "$cfgfile.tmp" "$cfgfile" \
16889 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16890 test 0 -eq $? || _lt_function_replace_fail=:
16891
16892
16893 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16894 func_dirname_and_basename ()\
16895 {\
16896 \ case ${1} in\
16897 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16898 \ * ) func_dirname_result="${3}" ;;\
16899 \ esac\
16900 \ func_basename_result="${1##*/}"\
16901 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16902 && mv -f "$cfgfile.tmp" "$cfgfile" \
16903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16904 test 0 -eq $? || _lt_function_replace_fail=:
16905
16906
16907 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16908 func_stripname ()\
16909 {\
16910 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16911 \ # positional parameters, so assign one to ordinary parameter first.\
16912 \ func_stripname_result=${3}\
16913 \ func_stripname_result=${func_stripname_result#"${1}"}\
16914 \ func_stripname_result=${func_stripname_result%"${2}"}\
16915 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16916 && mv -f "$cfgfile.tmp" "$cfgfile" \
16917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16918 test 0 -eq $? || _lt_function_replace_fail=:
16919
16920
16921 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16922 func_split_long_opt ()\
16923 {\
16924 \ func_split_long_opt_name=${1%%=*}\
16925 \ func_split_long_opt_arg=${1#*=}\
16926 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16927 && mv -f "$cfgfile.tmp" "$cfgfile" \
16928 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16929 test 0 -eq $? || _lt_function_replace_fail=:
16930
16931
16932 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16933 func_split_short_opt ()\
16934 {\
16935 \ func_split_short_opt_arg=${1#??}\
16936 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16937 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16938 && mv -f "$cfgfile.tmp" "$cfgfile" \
16939 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16940 test 0 -eq $? || _lt_function_replace_fail=:
16941
16942
16943 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16944 func_lo2o ()\
16945 {\
16946 \ case ${1} in\
16947 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16948 \ *) func_lo2o_result=${1} ;;\
16949 \ esac\
16950 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16951 && mv -f "$cfgfile.tmp" "$cfgfile" \
16952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16953 test 0 -eq $? || _lt_function_replace_fail=:
16954
16955
16956 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16957 func_xform ()\
16958 {\
16959 func_xform_result=${1%.*}.lo\
16960 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16961 && mv -f "$cfgfile.tmp" "$cfgfile" \
16962 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16963 test 0 -eq $? || _lt_function_replace_fail=:
16964
16965
16966 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16967 func_arith ()\
16968 {\
16969 func_arith_result=$(( $* ))\
16970 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16971 && mv -f "$cfgfile.tmp" "$cfgfile" \
16972 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16973 test 0 -eq $? || _lt_function_replace_fail=:
16974
16975
16976 sed -e '/^func_len ()$/,/^} # func_len /c\
16977 func_len ()\
16978 {\
16979 func_len_result=${#1}\
16980 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16981 && mv -f "$cfgfile.tmp" "$cfgfile" \
16982 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16983 test 0 -eq $? || _lt_function_replace_fail=:
16984
16985 fi
16986
16987 if test x"$lt_shell_append" = xyes; then
16988 sed -e '/^func_append ()$/,/^} # func_append /c\
16989 func_append ()\
16990 {\
16991 eval "${1}+=\\${2}"\
16992 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16993 && mv -f "$cfgfile.tmp" "$cfgfile" \
16994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16995 test 0 -eq $? || _lt_function_replace_fail=:
16996
16997
16998 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16999 func_append_quoted ()\
17000 {\
17001 \ func_quote_for_eval "${2}"\
17002 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17003 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17004 && mv -f "$cfgfile.tmp" "$cfgfile" \
17005 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17006 test 0 -eq $? || _lt_function_replace_fail=:
17007
17008
17009 # Save a `func_append' function call where possible by direct use of '+='
17010 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17011 && mv -f "$cfgfile.tmp" "$cfgfile" \
17012 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17013 test 0 -eq $? || _lt_function_replace_fail=:
17014 else
17015 # Save a `func_append' function call even when '+=' is not available
17016 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17017 && mv -f "$cfgfile.tmp" "$cfgfile" \
17018 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17019 test 0 -eq $? || _lt_function_replace_fail=:
17020 fi
17021
17022 if test x"$_lt_function_replace_fail" = x":"; then
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17024 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17025 fi
17026
17027
17028 mv -f "$cfgfile" "$ofile" ||
17029 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17030 chmod +x "$ofile"
17031
17032 ;;
17033
17034 esac
17035 done # for ac_tag
17036
17037
17038 as_fn_exit 0
17039 _ACEOF
17040 ac_clean_files=$ac_clean_files_save
17041
17042 test $ac_write_fail = 0 ||
17043 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17044
17045
17046 # configure is writing to config.log, and then calls config.status.
17047 # config.status does its own redirection, appending to config.log.
17048 # Unfortunately, on DOS this fails, as config.log is still kept open
17049 # by configure, so config.status won't be able to write to it; its
17050 # output is simply discarded. So we exec the FD to /dev/null,
17051 # effectively closing config.log, so it can be properly (re)opened and
17052 # appended to by config.status. When coming back to configure, we
17053 # need to make the FD available again.
17054 if test "$no_create" != yes; then
17055 ac_cs_success=:
17056 ac_config_status_args=
17057 test "$silent" = yes &&
17058 ac_config_status_args="$ac_config_status_args --quiet"
17059 exec 5>/dev/null
17060 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17061 exec 5>>config.log
17062 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17063 # would make configure fail if this is the last instruction.
17064 $ac_cs_success || as_fn_exit 1
17065 fi
17066 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17068 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17069 fi
17070

Properties

Name Value
svn:executable *