ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/branches/newio/configure
Revision: 1292
Committed: Sun Feb 12 20:36:27 2012 UTC (12 years, 1 month ago) by michael
Original Path: ircd-hybrid-8/configure
File size: 493772 byte(s)
Log Message:
- remove AX_ENABLE_SYSLOG. This is now obsolete with the new logging subsystem

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1245 2011-09-30 14:58:29Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for ircd-hybrid 8beta1.
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='8beta1'
577 PACKAGE_STRING='ircd-hybrid 8beta1'
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 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__quote
698 am__include
699 DEPDIR
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 MAINT
708 MAINTAINER_MODE_FALSE
709 MAINTAINER_MODE_TRUE
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 enable_maintainer_mode
775 enable_dependency_tracking
776 enable_static
777 enable_shared
778 with_pic
779 enable_fast_install
780 with_gnu_ld
781 with_sysroot
782 enable_libtool_lock
783 with_included_ltdl
784 with_ltdl_include
785 with_ltdl_lib
786 enable_ltdl_install
787 with_zlib_path
788 enable_zlib
789 with_libpcre_path
790 enable_libpcre
791 enable_openssl
792 enable_assert
793 enable_small_net
794 enable_kqueue
795 enable_epoll
796 enable_devpoll
797 enable_rtsigio
798 enable_poll
799 enable_select
800 with_nicklen
801 with_topiclen
802 enable_efnet
803 enable_halfops
804 enable_debugging
805 enable_warnings
806 '
807 ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 LIBS
814 CPPFLAGS
815 YACC
816 YFLAGS
817 CPP'
818
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 ac_unrecognized_opts=
824 ac_unrecognized_sep=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
875 ac_prev=
876 continue
877 fi
878
879 case $ac_option in
880 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *=) ac_optarg= ;;
882 *) ac_optarg=yes ;;
883 esac
884
885 # Accept the important Cygnus configure options, so we can diagnose typos.
886
887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
890
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
895
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
910
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
915
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
931 *"
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=no ;;
938
939 -docdir | --docdir | --docdi | --doc | --do)
940 ac_prev=docdir ;;
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 docdir=$ac_optarg ;;
943
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 ac_prev=dvidir ;;
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 dvidir=$ac_optarg ;;
948
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=\$ac_optarg ;;
964
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
973
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
976 with_gas=yes ;;
977
978 -help | --help | --hel | --he | -h)
979 ac_init_help=long ;;
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
984
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
989
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 ac_prev=htmldir ;;
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 | --ht=*)
994 htmldir=$ac_optarg ;;
995
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1002
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 ac_prev=infodir ;;
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1007
1008 -libdir | --libdir | --libdi | --libd)
1009 ac_prev=libdir ;;
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1012
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1019
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1024
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1031
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 ac_prev=mandir ;;
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1036
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1039 with_fp=no ;;
1040
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1043 no_create=yes ;;
1044
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 no_recursion=yes ;;
1048
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1057
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 ac_prev=prefix ;;
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1062
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1069
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1076
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1093
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 ac_prev=pdfdir ;;
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1098
1099 -psdir | --psdir | --psdi | --psd | --ps)
1100 ac_prev=psdir ;;
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 psdir=$ac_optarg ;;
1103
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 silent=yes ;;
1107
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 ac_prev=sbindir ;;
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 | --sbi=* | --sb=*)
1112 sbindir=$ac_optarg ;;
1113
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1117 | --sha | --sh)
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 | --sha=* | --sh=*)
1123 sharedstatedir=$ac_optarg ;;
1124
1125 -site | --site | --sit)
1126 ac_prev=site ;;
1127 -site=* | --site=* | --sit=*)
1128 site=$ac_optarg ;;
1129
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 ac_prev=srcdir ;;
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1134
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1141
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1146
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 verbose=yes ;;
1149
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1152
1153 -with-* | --with-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=\$ac_optarg ;;
1168
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=no ;;
1184
1185 --x)
1186 # Obsolete; use --with-x.
1187 with_x=yes ;;
1188
1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190 | --x-incl | --x-inc | --x-in | --x-i)
1191 ac_prev=x_includes ;;
1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194 x_includes=$ac_optarg ;;
1195
1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 ac_prev=x_libraries ;;
1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201 x_libraries=$ac_optarg ;;
1202
1203 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information"
1205 ;;
1206
1207 *=*)
1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
1210 case $ac_envvar in #(
1211 '' | [0-9]* | *[!_$as_cr_alnum]* )
1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213 esac
1214 eval $ac_envvar=\$ac_optarg
1215 export $ac_envvar ;;
1216
1217 *)
1218 # FIXME: should be removed in autoconf 3.0.
1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223 ;;
1224
1225 esac
1226 done
1227
1228 if test -n "$ac_prev"; then
1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230 as_fn_error $? "missing argument to $ac_option"
1231 fi
1232
1233 if test -n "$ac_unrecognized_opts"; then
1234 case $enable_option_checking in
1235 no) ;;
1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238 esac
1239 fi
1240
1241 # Check all directory arguments for consistency.
1242 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
1246 do
1247 eval ac_val=\$$ac_var
1248 # Remove trailing slashes.
1249 case $ac_val in
1250 */ )
1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252 eval $ac_var=\$ac_val;;
1253 esac
1254 # Be sure to have absolute directory names.
1255 case $ac_val in
1256 [\\/$]* | ?:[\\/]* ) continue;;
1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258 esac
1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260 done
1261
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1265 build=$build_alias
1266 host=$host_alias
1267 target=$target_alias
1268
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271 if test "x$build_alias" = x; then
1272 cross_compiling=maybe
1273 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1274 If a cross compiler is detected then cross compile mode will be used" >&2
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1324 fi
1325 else
1326 ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures ircd-hybrid 8beta1 to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1414
1415 cat <<\_ACEOF
1416
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 _ACEOF
1426 fi
1427
1428 if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of ircd-hybrid 8beta1:";;
1431 esac
1432 cat <<\_ACEOF
1433
1434 Optional Features:
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-maintainer-mode enable make rules and dependencies not useful
1439 (and sometimes confusing) to the casual installer
1440 --disable-dependency-tracking speeds up one-time build
1441 --enable-dependency-tracking do not reject slow dependency extractors
1442 --enable-static[=PKGS] build static libraries [default=no]
1443 --enable-shared[=PKGS] build shared libraries [default=yes]
1444 --enable-fast-install[=PKGS]
1445 optimize for fast installation [default=yes]
1446 --disable-libtool-lock avoid locking (might break parallel builds)
1447 --enable-ltdl-install install libltdl
1448 --disable-zlib Disable ziplinks support
1449 --disable-libpcre Disable PCRE support
1450 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1451 --disable-openssl Disable OpenSSL support.
1452 --enable-assert Enable assert() statements
1453 --enable-small-net Enable small network support.
1454 --enable-kqueue Force kqueue usage.
1455 --enable-epoll Force epoll usage.
1456 --enable-devpoll Force devpoll usage.
1457 --enable-rtsigio Force rtsigio usage.
1458 --enable-poll Force poll usage.
1459 --enable-select Force select usage.
1460 --enable-efnet For IRCDs running on EFnet.
1461 --enable-halfops Enable halfops support.
1462 --enable-debugging Enable debugging.
1463 --enable-warnings Enable compiler warnings.
1464
1465 Optional Packages:
1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1468 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1469 both]
1470 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1471 --with-sysroot=DIR Search for dependent libraries within DIR
1472 (or the compiler's sysroot if not specified).
1473 --with-included-ltdl use the GNU ltdl sources included here
1474 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1475 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1476 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1477 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1478 --with-nicklen=<value> Set nickname length (default 9).
1479 --with-topiclen=<value> Set topic length (default 160).
1480
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 YACC The `Yet Another Compiler Compiler' implementation to use.
1490 Defaults to the first program found out of: `bison -y', `byacc',
1491 `yacc'.
1492 YFLAGS The list of arguments that will be passed by default to $YACC.
1493 This script will default YFLAGS to the empty string to avoid a
1494 default value of `-d' given by some make applications.
1495 CPP C preprocessor
1496
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1499
1500 Report bugs to <bugs@ircd-hybrid.org>.
1501 _ACEOF
1502 ac_status=$?
1503 fi
1504
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 continue
1511 ac_builddir=.
1512
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *)
1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1528
1529 case $srcdir in
1530 .) # We are building in place.
1531 ac_srcdir=.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1538 *) # Relative name.
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562 cat <<\_ACEOF
1563 ircd-hybrid configure 8beta1
1564 generated by GNU Autoconf 2.68
1565
1566 Copyright (C) 2010 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570 exit
1571 fi
1572
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1576
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609 fi
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_compile
1614
1615 # ac_fn_c_try_link LINENO
1616 # -----------------------
1617 # Try to link conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_link ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext conftest$ac_exeext
1622 if { { ac_try="$ac_link"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_link") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest$ac_exeext && {
1641 test "$cross_compiling" = yes ||
1642 $as_test_x conftest$ac_exeext
1643 }; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650 fi
1651 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1652 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1653 # interfere with the next link command; also delete a directory that is
1654 # left behind by Apple's compiler. We do this before executing the actions.
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_link
1660
1661 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists and can be compiled using the include files in
1664 # INCLUDES, setting the cache variable VAR accordingly.
1665 ac_fn_c_check_header_compile ()
1666 {
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1672 else
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1675 $4
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679 eval "$3=yes"
1680 else
1681 eval "$3=no"
1682 fi
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 fi
1685 eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1690 } # ac_fn_c_check_header_compile
1691
1692 # ac_fn_c_try_cpp LINENO
1693 # ----------------------
1694 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_cpp ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } > conftest.i && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723 fi
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_cpp
1728
1729 # ac_fn_c_try_run LINENO
1730 # ----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 # that executables *can* be run.
1733 ac_fn_c_try_run ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=$ac_status
1764 fi
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_run
1770
1771 # ac_fn_c_check_func LINENO FUNC VAR
1772 # ----------------------------------
1773 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774 ac_fn_c_check_func ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786 #define $2 innocuous_$2
1787
1788 /* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char $2 (); below.
1790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791 <limits.h> exists even on freestanding compilers. */
1792
1793 #ifdef __STDC__
1794 # include <limits.h>
1795 #else
1796 # include <assert.h>
1797 #endif
1798
1799 #undef $2
1800
1801 /* Override any GCC internal prototype to avoid an error.
1802 Use char because int might match the return type of a GCC
1803 builtin and then its argument prototype would still apply. */
1804 #ifdef __cplusplus
1805 extern "C"
1806 #endif
1807 char $2 ();
1808 /* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811 #if defined __stub_$2 || defined __stub___$2
1812 choke me
1813 #endif
1814
1815 int
1816 main ()
1817 {
1818 return $2 ();
1819 ;
1820 return 0;
1821 }
1822 _ACEOF
1823 if ac_fn_c_try_link "$LINENO"; then :
1824 eval "$3=yes"
1825 else
1826 eval "$3=no"
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext \
1829 conftest$ac_exeext conftest.$ac_ext
1830 fi
1831 eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836 } # ac_fn_c_check_func
1837
1838 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1839 # ---------------------------------------------
1840 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1841 # accordingly.
1842 ac_fn_c_check_decl ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 as_decl_name=`echo $2|sed 's/ *(.*//'`
1846 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1848 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 $4
1855 int
1856 main ()
1857 {
1858 #ifndef $as_decl_name
1859 #ifdef __cplusplus
1860 (void) $as_decl_use;
1861 #else
1862 (void) $as_decl_name;
1863 #endif
1864 #endif
1865
1866 ;
1867 return 0;
1868 }
1869 _ACEOF
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871 eval "$3=yes"
1872 else
1873 eval "$3=no"
1874 fi
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 fi
1877 eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882 } # ac_fn_c_check_decl
1883
1884 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1885 # -------------------------------------------
1886 # Tests whether TYPE exists after having included INCLUDES, setting cache
1887 # variable VAR accordingly.
1888 ac_fn_c_check_type ()
1889 {
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if eval \${$3+:} false; then :
1894 $as_echo_n "(cached) " >&6
1895 else
1896 eval "$3=no"
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 $4
1900 int
1901 main ()
1902 {
1903 if (sizeof ($2))
1904 return 0;
1905 ;
1906 return 0;
1907 }
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 $4
1913 int
1914 main ()
1915 {
1916 if (sizeof (($2)))
1917 return 0;
1918 ;
1919 return 0;
1920 }
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923
1924 else
1925 eval "$3=yes"
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_type
1937
1938 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1939 # ----------------------------------------------------
1940 # Tries to find if the field MEMBER exists in type AGGR, after including
1941 # INCLUDES, setting cache variable VAR accordingly.
1942 ac_fn_c_check_member ()
1943 {
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1946 $as_echo_n "checking for $2.$3... " >&6; }
1947 if eval \${$4+:} false; then :
1948 $as_echo_n "(cached) " >&6
1949 else
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 $5
1953 int
1954 main ()
1955 {
1956 static $2 ac_aggr;
1957 if (ac_aggr.$3)
1958 return 0;
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 eval "$4=yes"
1965 else
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 $5
1969 int
1970 main ()
1971 {
1972 static $2 ac_aggr;
1973 if (sizeof ac_aggr.$3)
1974 return 0;
1975 ;
1976 return 0;
1977 }
1978 _ACEOF
1979 if ac_fn_c_try_compile "$LINENO"; then :
1980 eval "$4=yes"
1981 else
1982 eval "$4=no"
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 fi
1988 eval ac_res=\$$4
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993 } # ac_fn_c_check_member
1994
1995 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1996 # -------------------------------------------------------
1997 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1998 # the include files in INCLUDES and setting the cache variable VAR
1999 # accordingly.
2000 ac_fn_c_check_header_mongrel ()
2001 {
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 if eval \${$3+:} false; then :
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2008 fi
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 else
2013 # Is the header compilable?
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2015 $as_echo_n "checking $2 usability... " >&6; }
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 $4
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 ac_header_compiler=yes
2023 else
2024 ac_header_compiler=no
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2028 $as_echo "$ac_header_compiler" >&6; }
2029
2030 # Is the header present?
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2032 $as_echo_n "checking $2 presence... " >&6; }
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 #include <$2>
2036 _ACEOF
2037 if ac_fn_c_try_cpp "$LINENO"; then :
2038 ac_header_preproc=yes
2039 else
2040 ac_header_preproc=no
2041 fi
2042 rm -f conftest.err conftest.i conftest.$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2044 $as_echo "$ac_header_preproc" >&6; }
2045
2046 # So? What about this header?
2047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2048 yes:no: )
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2050 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2052 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2053 ;;
2054 no:yes:* )
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2056 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2058 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2060 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2062 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2064 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2065 ( $as_echo "## ----------------------------------- ##
2066 ## Report this to bugs@ircd-hybrid.org ##
2067 ## ----------------------------------- ##"
2068 ) | sed "s/^/$as_me: WARNING: /" >&2
2069 ;;
2070 esac
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 eval "$3=\$ac_header_compiler"
2077 fi
2078 eval ac_res=\$$3
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 fi
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083
2084 } # ac_fn_c_check_header_mongrel
2085 cat >config.log <<_ACEOF
2086 This file contains any messages produced by compilers while
2087 running configure, to aid debugging if configure makes a mistake.
2088
2089 It was created by ircd-hybrid $as_me 8beta1, which was
2090 generated by GNU Autoconf 2.68. Invocation command line was
2091
2092 $ $0 $@
2093
2094 _ACEOF
2095 exec 5>>config.log
2096 {
2097 cat <<_ASUNAME
2098 ## --------- ##
2099 ## Platform. ##
2100 ## --------- ##
2101
2102 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2103 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2104 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2105 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2106 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2107
2108 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2109 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2110
2111 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2112 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2113 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2114 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2115 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2116 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2117 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2118
2119 _ASUNAME
2120
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 $as_echo "PATH: $as_dir"
2127 done
2128 IFS=$as_save_IFS
2129
2130 } >&5
2131
2132 cat >&5 <<_ACEOF
2133
2134
2135 ## ----------- ##
2136 ## Core tests. ##
2137 ## ----------- ##
2138
2139 _ACEOF
2140
2141
2142 # Keep a trace of the command line.
2143 # Strip out --no-create and --no-recursion so they do not pile up.
2144 # Strip out --silent because we don't want to record it for future runs.
2145 # Also quote any args containing shell meta-characters.
2146 # Make two passes to allow for proper duplicate-argument suppression.
2147 ac_configure_args=
2148 ac_configure_args0=
2149 ac_configure_args1=
2150 ac_must_keep_next=false
2151 for ac_pass in 1 2
2152 do
2153 for ac_arg
2154 do
2155 case $ac_arg in
2156 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2158 | -silent | --silent | --silen | --sile | --sil)
2159 continue ;;
2160 *\'*)
2161 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2162 esac
2163 case $ac_pass in
2164 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2165 2)
2166 as_fn_append ac_configure_args1 " '$ac_arg'"
2167 if test $ac_must_keep_next = true; then
2168 ac_must_keep_next=false # Got value, back to normal.
2169 else
2170 case $ac_arg in
2171 *=* | --config-cache | -C | -disable-* | --disable-* \
2172 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2173 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2174 | -with-* | --with-* | -without-* | --without-* | --x)
2175 case "$ac_configure_args0 " in
2176 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2177 esac
2178 ;;
2179 -* ) ac_must_keep_next=true ;;
2180 esac
2181 fi
2182 as_fn_append ac_configure_args " '$ac_arg'"
2183 ;;
2184 esac
2185 done
2186 done
2187 { ac_configure_args0=; unset ac_configure_args0;}
2188 { ac_configure_args1=; unset ac_configure_args1;}
2189
2190 # When interrupted or exit'd, cleanup temporary files, and complete
2191 # config.log. We remove comments because anyway the quotes in there
2192 # would cause problems or look ugly.
2193 # WARNING: Use '\'' to represent an apostrophe within the trap.
2194 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2195 trap 'exit_status=$?
2196 # Save into config.log some information that might help in debugging.
2197 {
2198 echo
2199
2200 $as_echo "## ---------------- ##
2201 ## Cache variables. ##
2202 ## ---------------- ##"
2203 echo
2204 # The following way of writing the cache mishandles newlines in values,
2205 (
2206 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2207 eval ac_val=\$$ac_var
2208 case $ac_val in #(
2209 *${as_nl}*)
2210 case $ac_var in #(
2211 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2213 esac
2214 case $ac_var in #(
2215 _ | IFS | as_nl) ;; #(
2216 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2217 *) { eval $ac_var=; unset $ac_var;} ;;
2218 esac ;;
2219 esac
2220 done
2221 (set) 2>&1 |
2222 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2223 *${as_nl}ac_space=\ *)
2224 sed -n \
2225 "s/'\''/'\''\\\\'\'''\''/g;
2226 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2227 ;; #(
2228 *)
2229 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2230 ;;
2231 esac |
2232 sort
2233 )
2234 echo
2235
2236 $as_echo "## ----------------- ##
2237 ## Output variables. ##
2238 ## ----------------- ##"
2239 echo
2240 for ac_var in $ac_subst_vars
2241 do
2242 eval ac_val=\$$ac_var
2243 case $ac_val in
2244 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2245 esac
2246 $as_echo "$ac_var='\''$ac_val'\''"
2247 done | sort
2248 echo
2249
2250 if test -n "$ac_subst_files"; then
2251 $as_echo "## ------------------- ##
2252 ## File substitutions. ##
2253 ## ------------------- ##"
2254 echo
2255 for ac_var in $ac_subst_files
2256 do
2257 eval ac_val=\$$ac_var
2258 case $ac_val in
2259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2260 esac
2261 $as_echo "$ac_var='\''$ac_val'\''"
2262 done | sort
2263 echo
2264 fi
2265
2266 if test -s confdefs.h; then
2267 $as_echo "## ----------- ##
2268 ## confdefs.h. ##
2269 ## ----------- ##"
2270 echo
2271 cat confdefs.h
2272 echo
2273 fi
2274 test "$ac_signal" != 0 &&
2275 $as_echo "$as_me: caught signal $ac_signal"
2276 $as_echo "$as_me: exit $exit_status"
2277 } >&5
2278 rm -f core *.core core.conftest.* &&
2279 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2280 exit $exit_status
2281 ' 0
2282 for ac_signal in 1 2 13 15; do
2283 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2284 done
2285 ac_signal=0
2286
2287 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2288 rm -f -r conftest* confdefs.h
2289
2290 $as_echo "/* confdefs.h */" > confdefs.h
2291
2292 # Predefined preprocessor variables.
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_NAME "$PACKAGE_NAME"
2296 _ACEOF
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2300 _ACEOF
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_STRING "$PACKAGE_STRING"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_URL "$PACKAGE_URL"
2316 _ACEOF
2317
2318
2319 # Let the site file select an alternate cache file if it wants to.
2320 # Prefer an explicitly selected file to automatically selected ones.
2321 ac_site_file1=NONE
2322 ac_site_file2=NONE
2323 if test -n "$CONFIG_SITE"; then
2324 # We do not want a PATH search for config.site.
2325 case $CONFIG_SITE in #((
2326 -*) ac_site_file1=./$CONFIG_SITE;;
2327 */*) ac_site_file1=$CONFIG_SITE;;
2328 *) ac_site_file1=./$CONFIG_SITE;;
2329 esac
2330 elif test "x$prefix" != xNONE; then
2331 ac_site_file1=$prefix/share/config.site
2332 ac_site_file2=$prefix/etc/config.site
2333 else
2334 ac_site_file1=$ac_default_prefix/share/config.site
2335 ac_site_file2=$ac_default_prefix/etc/config.site
2336 fi
2337 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2338 do
2339 test "x$ac_site_file" = xNONE && continue
2340 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2342 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2343 sed 's/^/| /' "$ac_site_file" >&5
2344 . "$ac_site_file" \
2345 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2347 as_fn_error $? "failed to load site script $ac_site_file
2348 See \`config.log' for more details" "$LINENO" 5; }
2349 fi
2350 done
2351
2352 if test -r "$cache_file"; then
2353 # Some versions of bash will fail to source /dev/null (special files
2354 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2355 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2357 $as_echo "$as_me: loading cache $cache_file" >&6;}
2358 case $cache_file in
2359 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2360 *) . "./$cache_file";;
2361 esac
2362 fi
2363 else
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2365 $as_echo "$as_me: creating cache $cache_file" >&6;}
2366 >$cache_file
2367 fi
2368
2369 as_fn_append ac_func_list " mmap"
2370 as_fn_append ac_func_list " strtok_r"
2371 as_fn_append ac_func_list " usleep"
2372 as_fn_append ac_func_list " strlcat"
2373 as_fn_append ac_func_list " strlcpy"
2374 as_fn_append ac_func_list " socketpair"
2375 as_fn_append ac_header_list " crypt.h"
2376 as_fn_append ac_header_list " inttypes.h"
2377 as_fn_append ac_header_list " stdint.h"
2378 as_fn_append ac_header_list " sys/resource.h"
2379 as_fn_append ac_header_list " sys/param.h"
2380 as_fn_append ac_header_list " errno.h"
2381 as_fn_append ac_header_list " sys/syslog.h"
2382 as_fn_append ac_header_list " types.h"
2383 as_fn_append ac_header_list " socket.h"
2384 as_fn_append ac_header_list " sys/wait.h"
2385 as_fn_append ac_header_list " wait.h"
2386 as_fn_append ac_header_list " link.h"
2387 # Check that the precious variables saved in the cache have kept the same
2388 # value.
2389 ac_cache_corrupted=false
2390 for ac_var in $ac_precious_vars; do
2391 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2392 eval ac_new_set=\$ac_env_${ac_var}_set
2393 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2394 eval ac_new_val=\$ac_env_${ac_var}_value
2395 case $ac_old_set,$ac_new_set in
2396 set,)
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2398 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2399 ac_cache_corrupted=: ;;
2400 ,set)
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2402 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2403 ac_cache_corrupted=: ;;
2404 ,);;
2405 *)
2406 if test "x$ac_old_val" != "x$ac_new_val"; then
2407 # differences in whitespace do not lead to failure.
2408 ac_old_val_w=`echo x $ac_old_val`
2409 ac_new_val_w=`echo x $ac_new_val`
2410 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2412 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2413 ac_cache_corrupted=:
2414 else
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2416 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2417 eval $ac_var=\$ac_old_val
2418 fi
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2420 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2422 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2423 fi;;
2424 esac
2425 # Pass precious variables to config.status.
2426 if test "$ac_new_set" = set; then
2427 case $ac_new_val in
2428 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2429 *) ac_arg=$ac_var=$ac_new_val ;;
2430 esac
2431 case " $ac_configure_args " in
2432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2433 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2434 esac
2435 fi
2436 done
2437 if $ac_cache_corrupted; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2441 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2442 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2443 fi
2444 ## -------------------- ##
2445 ## Main body of script. ##
2446 ## -------------------- ##
2447
2448 ac_ext=c
2449 ac_cpp='$CPP $CPPFLAGS'
2450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453
2454
2455 am__api_version='1.11'
2456
2457 ac_aux_dir=
2458 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2459 if test -f "$ac_dir/install-sh"; then
2460 ac_aux_dir=$ac_dir
2461 ac_install_sh="$ac_aux_dir/install-sh -c"
2462 break
2463 elif test -f "$ac_dir/install.sh"; then
2464 ac_aux_dir=$ac_dir
2465 ac_install_sh="$ac_aux_dir/install.sh -c"
2466 break
2467 elif test -f "$ac_dir/shtool"; then
2468 ac_aux_dir=$ac_dir
2469 ac_install_sh="$ac_aux_dir/shtool install -c"
2470 break
2471 fi
2472 done
2473 if test -z "$ac_aux_dir"; then
2474 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2475 fi
2476
2477 # These three variables are undocumented and unsupported,
2478 # and are intended to be withdrawn in a future Autoconf release.
2479 # They can cause serious problems if a builder's source tree is in a directory
2480 # whose full name contains unusual characters.
2481 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2482 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2483 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2484
2485
2486 # Find a good install program. We prefer a C program (faster),
2487 # so one script is as good as another. But avoid the broken or
2488 # incompatible versions:
2489 # SysV /etc/install, /usr/sbin/install
2490 # SunOS /usr/etc/install
2491 # IRIX /sbin/install
2492 # AIX /bin/install
2493 # AmigaOS /C/install, which installs bootblocks on floppy discs
2494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2497 # OS/2's system install, which has a completely different semantic
2498 # ./install, which can be erroneously created by make from ./install.sh.
2499 # Reject install programs that cannot install multiple files.
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2502 if test -z "$INSTALL"; then
2503 if ${ac_cv_path_install+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 # Account for people who put trailing slashes in PATH elements.
2512 case $as_dir/ in #((
2513 ./ | .// | /[cC]/* | \
2514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2515 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2516 /usr/ucb/* ) ;;
2517 *)
2518 # OSF1 and SCO ODT 3.0 have their own names for install.
2519 # Don't use installbsd from OSF since it installs stuff as root
2520 # by default.
2521 for ac_prog in ginstall scoinst install; do
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2524 if test $ac_prog = install &&
2525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526 # AIX install. It has an incompatible calling convention.
2527 :
2528 elif test $ac_prog = install &&
2529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530 # program-specific install script used by HP pwplus--don't use.
2531 :
2532 else
2533 rm -rf conftest.one conftest.two conftest.dir
2534 echo one > conftest.one
2535 echo two > conftest.two
2536 mkdir conftest.dir
2537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2538 test -s conftest.one && test -s conftest.two &&
2539 test -s conftest.dir/conftest.one &&
2540 test -s conftest.dir/conftest.two
2541 then
2542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2543 break 3
2544 fi
2545 fi
2546 fi
2547 done
2548 done
2549 ;;
2550 esac
2551
2552 done
2553 IFS=$as_save_IFS
2554
2555 rm -rf conftest.one conftest.two conftest.dir
2556
2557 fi
2558 if test "${ac_cv_path_install+set}" = set; then
2559 INSTALL=$ac_cv_path_install
2560 else
2561 # As a last resort, use the slow shell script. Don't cache a
2562 # value for INSTALL within a source directory, because that will
2563 # break other packages using the cache if that directory is
2564 # removed, or if the value is a relative name.
2565 INSTALL=$ac_install_sh
2566 fi
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2569 $as_echo "$INSTALL" >&6; }
2570
2571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2572 # It thinks the first close brace ends the variable substitution.
2573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2574
2575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2576
2577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2578
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2580 $as_echo_n "checking whether build environment is sane... " >&6; }
2581 # Just in case
2582 sleep 1
2583 echo timestamp > conftest.file
2584 # Reject unsafe characters in $srcdir or the absolute working directory
2585 # name. Accept space and tab only in the latter.
2586 am_lf='
2587 '
2588 case `pwd` in
2589 *[\\\"\#\$\&\'\`$am_lf]*)
2590 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2591 esac
2592 case $srcdir in
2593 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2594 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2595 esac
2596
2597 # Do `set' in a subshell so we don't clobber the current shell's
2598 # arguments. Must try -L first in case configure is actually a
2599 # symlink; some systems play weird games with the mod time of symlinks
2600 # (eg FreeBSD returns the mod time of the symlink's containing
2601 # directory).
2602 if (
2603 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2604 if test "$*" = "X"; then
2605 # -L didn't work.
2606 set X `ls -t "$srcdir/configure" conftest.file`
2607 fi
2608 rm -f conftest.file
2609 if test "$*" != "X $srcdir/configure conftest.file" \
2610 && test "$*" != "X conftest.file $srcdir/configure"; then
2611
2612 # If neither matched, then we have a broken ls. This can happen
2613 # if, for instance, CONFIG_SHELL is bash and it inherits a
2614 # broken ls alias from the environment. This has actually
2615 # happened. Such a system could not be considered "sane".
2616 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2617 alias in your environment" "$LINENO" 5
2618 fi
2619
2620 test "$2" = conftest.file
2621 )
2622 then
2623 # Ok.
2624 :
2625 else
2626 as_fn_error $? "newly created file is older than distributed files!
2627 Check your system clock" "$LINENO" 5
2628 fi
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2630 $as_echo "yes" >&6; }
2631 test "$program_prefix" != NONE &&
2632 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2633 # Use a double $ so make ignores it.
2634 test "$program_suffix" != NONE &&
2635 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2636 # Double any \ or $.
2637 # By default was `s,x,x', remove it if useless.
2638 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2639 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2640
2641 # expand $ac_aux_dir to an absolute path
2642 am_aux_dir=`cd $ac_aux_dir && pwd`
2643
2644 if test x"${MISSING+set}" != xset; then
2645 case $am_aux_dir in
2646 *\ * | *\ *)
2647 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2648 *)
2649 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2650 esac
2651 fi
2652 # Use eval to expand $SHELL
2653 if eval "$MISSING --run true"; then
2654 am_missing_run="$MISSING --run "
2655 else
2656 am_missing_run=
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2658 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2659 fi
2660
2661 if test x"${install_sh}" != xset; then
2662 case $am_aux_dir in
2663 *\ * | *\ *)
2664 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2665 *)
2666 install_sh="\${SHELL} $am_aux_dir/install-sh"
2667 esac
2668 fi
2669
2670 # Installed binaries are usually stripped using `strip' when the user
2671 # run `make install-strip'. However `strip' might not be the right
2672 # tool to use in cross-compilation environments, therefore Automake
2673 # will honor the `STRIP' environment variable to overrule this program.
2674 if test "$cross_compiling" != no; then
2675 if test -n "$ac_tool_prefix"; then
2676 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}strip; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_STRIP+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 if test -n "$STRIP"; then
2684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 STRIP=$ac_cv_prog_STRIP
2704 if test -n "$STRIP"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2706 $as_echo "$STRIP" >&6; }
2707 else
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2710 fi
2711
2712
2713 fi
2714 if test -z "$ac_cv_prog_STRIP"; then
2715 ac_ct_STRIP=$STRIP
2716 # Extract the first word of "strip", so it can be a program name with args.
2717 set dummy strip; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if test -n "$ac_ct_STRIP"; then
2724 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_ac_ct_STRIP="strip"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2744 if test -n "$ac_ct_STRIP"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2746 $as_echo "$ac_ct_STRIP" >&6; }
2747 else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752 if test "x$ac_ct_STRIP" = x; then
2753 STRIP=":"
2754 else
2755 case $cross_compiling:$ac_tool_warned in
2756 yes:)
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759 ac_tool_warned=yes ;;
2760 esac
2761 STRIP=$ac_ct_STRIP
2762 fi
2763 else
2764 STRIP="$ac_cv_prog_STRIP"
2765 fi
2766
2767 fi
2768 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2769
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2771 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2772 if test -z "$MKDIR_P"; then
2773 if ${ac_cv_path_mkdir+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2778 do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_prog in mkdir gmkdir; do
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2784 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2785 'mkdir (GNU coreutils) '* | \
2786 'mkdir (coreutils) '* | \
2787 'mkdir (fileutils) '4.1*)
2788 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2789 break 3;;
2790 esac
2791 done
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797
2798 test -d ./--version && rmdir ./--version
2799 if test "${ac_cv_path_mkdir+set}" = set; then
2800 MKDIR_P="$ac_cv_path_mkdir -p"
2801 else
2802 # As a last resort, use the slow shell script. Don't cache a
2803 # value for MKDIR_P within a source directory, because that will
2804 # break other packages using the cache if that directory is
2805 # removed, or if the value is a relative name.
2806 MKDIR_P="$ac_install_sh -d"
2807 fi
2808 fi
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2810 $as_echo "$MKDIR_P" >&6; }
2811
2812 mkdir_p="$MKDIR_P"
2813 case $mkdir_p in
2814 [\\/$]* | ?:[\\/]*) ;;
2815 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2816 esac
2817
2818 for ac_prog in gawk mawk nawk awk
2819 do
2820 # Extract the first word of "$ac_prog", so it can be a program name with args.
2821 set dummy $ac_prog; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if ${ac_cv_prog_AWK+:} false; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 if test -n "$AWK"; then
2828 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2832 do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_AWK="$ac_prog"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841 done
2842 done
2843 IFS=$as_save_IFS
2844
2845 fi
2846 fi
2847 AWK=$ac_cv_prog_AWK
2848 if test -n "$AWK"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2850 $as_echo "$AWK" >&6; }
2851 else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2854 fi
2855
2856
2857 test -n "$AWK" && break
2858 done
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2861 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2862 set x ${MAKE-make}
2863 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2864 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 cat >conftest.make <<\_ACEOF
2868 SHELL = /bin/sh
2869 all:
2870 @echo '@@@%%%=$(MAKE)=@@@%%%'
2871 _ACEOF
2872 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2873 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2874 *@@@%%%=?*=@@@%%%*)
2875 eval ac_cv_prog_make_${ac_make}_set=yes;;
2876 *)
2877 eval ac_cv_prog_make_${ac_make}_set=no;;
2878 esac
2879 rm -f conftest.make
2880 fi
2881 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2883 $as_echo "yes" >&6; }
2884 SET_MAKE=
2885 else
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2888 SET_MAKE="MAKE=${MAKE-make}"
2889 fi
2890
2891 rm -rf .tst 2>/dev/null
2892 mkdir .tst 2>/dev/null
2893 if test -d .tst; then
2894 am__leading_dot=.
2895 else
2896 am__leading_dot=_
2897 fi
2898 rmdir .tst 2>/dev/null
2899
2900 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2901 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2902 # is not polluted with repeated "-I."
2903 am__isrc=' -I$(srcdir)'
2904 # test to see if srcdir already configured
2905 if test -f $srcdir/config.status; then
2906 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2907 fi
2908 fi
2909
2910 # test whether we have cygpath
2911 if test -z "$CYGPATH_W"; then
2912 if (cygpath --version) >/dev/null 2>/dev/null; then
2913 CYGPATH_W='cygpath -w'
2914 else
2915 CYGPATH_W=echo
2916 fi
2917 fi
2918
2919
2920 # Define the identity of the package.
2921 PACKAGE='ircd-hybrid'
2922 VERSION='8beta1'
2923
2924
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE "$PACKAGE"
2927 _ACEOF
2928
2929
2930 cat >>confdefs.h <<_ACEOF
2931 #define VERSION "$VERSION"
2932 _ACEOF
2933
2934 # Some tools Automake needs.
2935
2936 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2937
2938
2939 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2940
2941
2942 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2943
2944
2945 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2946
2947
2948 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2949
2950 # We need awk for the "check" target. The system "awk" is bad on
2951 # some platforms.
2952 # Always define AMTAR for backward compatibility. Yes, it's still used
2953 # in the wild :-( We should find a proper way to deprecate it ...
2954 AMTAR='$${TAR-tar}'
2955
2956 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2957
2958
2959
2960
2961
2962
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2964 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2965 # Check whether --enable-maintainer-mode was given.
2966 if test "${enable_maintainer_mode+set}" = set; then :
2967 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2968 else
2969 USE_MAINTAINER_MODE=no
2970 fi
2971
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2973 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2974 if test $USE_MAINTAINER_MODE = yes; then
2975 MAINTAINER_MODE_TRUE=
2976 MAINTAINER_MODE_FALSE='#'
2977 else
2978 MAINTAINER_MODE_TRUE='#'
2979 MAINTAINER_MODE_FALSE=
2980 fi
2981
2982 MAINT=$MAINTAINER_MODE_TRUE
2983
2984
2985 ac_config_headers="$ac_config_headers config.h"
2986
2987
2988
2989 # Checks for programs.
2990 DEPDIR="${am__leading_dot}deps"
2991
2992 ac_config_commands="$ac_config_commands depfiles"
2993
2994
2995 am_make=${MAKE-make}
2996 cat > confinc << 'END'
2997 am__doit:
2998 @echo this is the am__doit target
2999 .PHONY: am__doit
3000 END
3001 # If we don't find an include directive, just comment out the code.
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3003 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3004 am__include="#"
3005 am__quote=
3006 _am_result=none
3007 # First try GNU make style include.
3008 echo "include confinc" > confmf
3009 # Ignore all kinds of additional output from `make'.
3010 case `$am_make -s -f confmf 2> /dev/null` in #(
3011 *the\ am__doit\ target*)
3012 am__include=include
3013 am__quote=
3014 _am_result=GNU
3015 ;;
3016 esac
3017 # Now try BSD make style include.
3018 if test "$am__include" = "#"; then
3019 echo '.include "confinc"' > confmf
3020 case `$am_make -s -f confmf 2> /dev/null` in #(
3021 *the\ am__doit\ target*)
3022 am__include=.include
3023 am__quote="\""
3024 _am_result=BSD
3025 ;;
3026 esac
3027 fi
3028
3029
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3031 $as_echo "$_am_result" >&6; }
3032 rm -f confinc confmf
3033
3034 # Check whether --enable-dependency-tracking was given.
3035 if test "${enable_dependency_tracking+set}" = set; then :
3036 enableval=$enable_dependency_tracking;
3037 fi
3038
3039 if test "x$enable_dependency_tracking" != xno; then
3040 am_depcomp="$ac_aux_dir/depcomp"
3041 AMDEPBACKSLASH='\'
3042 am__nodep='_no'
3043 fi
3044 if test "x$enable_dependency_tracking" != xno; then
3045 AMDEP_TRUE=
3046 AMDEP_FALSE='#'
3047 else
3048 AMDEP_TRUE='#'
3049 AMDEP_FALSE=
3050 fi
3051
3052
3053 ac_ext=c
3054 ac_cpp='$CPP $CPPFLAGS'
3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 CC=$ac_cv_prog_CC
3087 if test -n "$CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089 $as_echo "$CC" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095
3096 fi
3097 if test -z "$ac_cv_prog_CC"; then
3098 ac_ct_CC=$CC
3099 # Extract the first word of "gcc", so it can be a program name with args.
3100 set dummy gcc; ac_word=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 if test -n "$ac_ct_CC"; then
3107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116 ac_cv_prog_ac_ct_CC="gcc"
3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 break 2
3119 fi
3120 done
3121 done
3122 IFS=$as_save_IFS
3123
3124 fi
3125 fi
3126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3127 if test -n "$ac_ct_CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3129 $as_echo "$ac_ct_CC" >&6; }
3130 else
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3133 fi
3134
3135 if test "x$ac_ct_CC" = x; then
3136 CC=""
3137 else
3138 case $cross_compiling:$ac_tool_warned in
3139 yes:)
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3142 ac_tool_warned=yes ;;
3143 esac
3144 CC=$ac_ct_CC
3145 fi
3146 else
3147 CC="$ac_cv_prog_CC"
3148 fi
3149
3150 if test -z "$CC"; then
3151 if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3153 set dummy ${ac_tool_prefix}cc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_CC+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_CC="${ac_tool_prefix}cc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188
3189 fi
3190 fi
3191 if test -z "$CC"; then
3192 # Extract the first word of "cc", so it can be a program name with args.
3193 set dummy cc; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test -n "$CC"; then
3200 ac_cv_prog_CC="$CC" # Let the user override the test.
3201 else
3202 ac_prog_rejected=no
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3211 ac_prog_rejected=yes
3212 continue
3213 fi
3214 ac_cv_prog_CC="cc"
3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3217 fi
3218 done
3219 done
3220 IFS=$as_save_IFS
3221
3222 if test $ac_prog_rejected = yes; then
3223 # We found a bogon in the path, so make sure we never use it.
3224 set dummy $ac_cv_prog_CC
3225 shift
3226 if test $# != 0; then
3227 # We chose a different compiler from the bogus one.
3228 # However, it has the same basename, so the bogon will be chosen
3229 # first if we set CC to just the basename; use the full file name.
3230 shift
3231 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3232 fi
3233 fi
3234 fi
3235 fi
3236 CC=$ac_cv_prog_CC
3237 if test -n "$CC"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3239 $as_echo "$CC" >&6; }
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245
3246 fi
3247 if test -z "$CC"; then
3248 if test -n "$ac_tool_prefix"; then
3249 for ac_prog in cl.exe
3250 do
3251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if ${ac_cv_prog_CC+:} false; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272 done
3273 done
3274 IFS=$as_save_IFS
3275
3276 fi
3277 fi
3278 CC=$ac_cv_prog_CC
3279 if test -n "$CC"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281 $as_echo "$CC" >&6; }
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
3286
3287
3288 test -n "$CC" && break
3289 done
3290 fi
3291 if test -z "$CC"; then
3292 ac_ct_CC=$CC
3293 for ac_prog in cl.exe
3294 do
3295 # Extract the first word of "$ac_prog", so it can be a program name with args.
3296 set dummy $ac_prog; ac_word=$2
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3300 $as_echo_n "(cached) " >&6
3301 else
3302 if test -n "$ac_ct_CC"; then
3303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308 IFS=$as_save_IFS
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312 ac_cv_prog_ac_ct_CC="$ac_prog"
3313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 break 2
3315 fi
3316 done
3317 done
3318 IFS=$as_save_IFS
3319
3320 fi
3321 fi
3322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3323 if test -n "$ac_ct_CC"; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3325 $as_echo "$ac_ct_CC" >&6; }
3326 else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3329 fi
3330
3331
3332 test -n "$ac_ct_CC" && break
3333 done
3334
3335 if test "x$ac_ct_CC" = x; then
3336 CC=""
3337 else
3338 case $cross_compiling:$ac_tool_warned in
3339 yes:)
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342 ac_tool_warned=yes ;;
3343 esac
3344 CC=$ac_ct_CC
3345 fi
3346 fi
3347
3348 fi
3349
3350
3351 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353 as_fn_error $? "no acceptable C compiler found in \$PATH
3354 See \`config.log' for more details" "$LINENO" 5; }
3355
3356 # Provide some information about the compiler.
3357 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3358 set X $ac_compile
3359 ac_compiler=$2
3360 for ac_option in --version -v -V -qversion; do
3361 { { ac_try="$ac_compiler $ac_option >&5"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3369 ac_status=$?
3370 if test -s conftest.err; then
3371 sed '10a\
3372 ... rest of stderr output deleted ...
3373 10q' conftest.err >conftest.er1
3374 cat conftest.er1 >&5
3375 fi
3376 rm -f conftest.er1 conftest.err
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }
3379 done
3380
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3383
3384 int
3385 main ()
3386 {
3387
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 ac_clean_files_save=$ac_clean_files
3393 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3394 # Try to create an executable without -o first, disregard a.out.
3395 # It will help us diagnose broken compilers, and finding out an intuition
3396 # of exeext.
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3398 $as_echo_n "checking whether the C compiler works... " >&6; }
3399 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3400
3401 # The possible output files:
3402 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3403
3404 ac_rmfiles=
3405 for ac_file in $ac_files
3406 do
3407 case $ac_file in
3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3409 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3410 esac
3411 done
3412 rm -f $ac_rmfiles
3413
3414 if { { ac_try="$ac_link_default"
3415 case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421 (eval "$ac_link_default") 2>&5
3422 ac_status=$?
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }; then :
3425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3426 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3427 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3428 # so that the user can short-circuit this test for compilers unknown to
3429 # Autoconf.
3430 for ac_file in $ac_files ''
3431 do
3432 test -f "$ac_file" || continue
3433 case $ac_file in
3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3435 ;;
3436 [ab].out )
3437 # We found the default executable, but exeext='' is most
3438 # certainly right.
3439 break;;
3440 *.* )
3441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3442 then :; else
3443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3444 fi
3445 # We set ac_cv_exeext here because the later test for it is not
3446 # safe: cross compilers may not add the suffix if given an `-o'
3447 # argument, so we may need to know it at that point already.
3448 # Even if this section looks crufty: it has the advantage of
3449 # actually working.
3450 break;;
3451 * )
3452 break;;
3453 esac
3454 done
3455 test "$ac_cv_exeext" = no && ac_cv_exeext=
3456
3457 else
3458 ac_file=''
3459 fi
3460 if test -z "$ac_file"; then :
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 $as_echo "no" >&6; }
3463 $as_echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468 as_fn_error 77 "C compiler cannot create executables
3469 See \`config.log' for more details" "$LINENO" 5; }
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3472 $as_echo "yes" >&6; }
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3475 $as_echo_n "checking for C compiler default output file name... " >&6; }
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3477 $as_echo "$ac_file" >&6; }
3478 ac_exeext=$ac_cv_exeext
3479
3480 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3481 ac_clean_files=$ac_clean_files_save
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3483 $as_echo_n "checking for suffix of executables... " >&6; }
3484 if { { ac_try="$ac_link"
3485 case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488 esac
3489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490 $as_echo "$ac_try_echo"; } >&5
3491 (eval "$ac_link") 2>&5
3492 ac_status=$?
3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494 test $ac_status = 0; }; then :
3495 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3496 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3497 # work properly (i.e., refer to `conftest.exe'), while it won't with
3498 # `rm'.
3499 for ac_file in conftest.exe conftest conftest.*; do
3500 test -f "$ac_file" || continue
3501 case $ac_file in
3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3503 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3504 break;;
3505 * ) break;;
3506 esac
3507 done
3508 else
3509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3512 See \`config.log' for more details" "$LINENO" 5; }
3513 fi
3514 rm -f conftest conftest$ac_cv_exeext
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3516 $as_echo "$ac_cv_exeext" >&6; }
3517
3518 rm -f conftest.$ac_ext
3519 EXEEXT=$ac_cv_exeext
3520 ac_exeext=$EXEEXT
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3523 #include <stdio.h>
3524 int
3525 main ()
3526 {
3527 FILE *f = fopen ("conftest.out", "w");
3528 return ferror (f) || fclose (f) != 0;
3529
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 ac_clean_files="$ac_clean_files conftest.out"
3535 # Check that the compiler produces executables we can run. If not, either
3536 # the compiler is broken, or we cross compile.
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3538 $as_echo_n "checking whether we are cross compiling... " >&6; }
3539 if test "$cross_compiling" != yes; then
3540 { { ac_try="$ac_link"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_link") 2>&5
3548 ac_status=$?
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }
3551 if { ac_try='./conftest$ac_cv_exeext'
3552 { { case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 $as_echo "$ac_try_echo"; } >&5
3558 (eval "$ac_try") 2>&5
3559 ac_status=$?
3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }; }; then
3562 cross_compiling=no
3563 else
3564 if test "$cross_compiling" = maybe; then
3565 cross_compiling=yes
3566 else
3567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569 as_fn_error $? "cannot run C compiled programs.
3570 If you meant to cross compile, use \`--host'.
3571 See \`config.log' for more details" "$LINENO" 5; }
3572 fi
3573 fi
3574 fi
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3576 $as_echo "$cross_compiling" >&6; }
3577
3578 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3579 ac_clean_files=$ac_clean_files_save
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3581 $as_echo_n "checking for suffix of object files... " >&6; }
3582 if ${ac_cv_objext+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587
3588 int
3589 main ()
3590 {
3591
3592 ;
3593 return 0;
3594 }
3595 _ACEOF
3596 rm -f conftest.o conftest.obj
3597 if { { ac_try="$ac_compile"
3598 case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_compile") 2>&5
3605 ac_status=$?
3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }; then :
3608 for ac_file in conftest.o conftest.obj conftest.*; do
3609 test -f "$ac_file" || continue;
3610 case $ac_file in
3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3612 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3613 break;;
3614 esac
3615 done
3616 else
3617 $as_echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 as_fn_error $? "cannot compute suffix of object files: cannot compile
3623 See \`config.log' for more details" "$LINENO" 5; }
3624 fi
3625 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3626 fi
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3628 $as_echo "$ac_cv_objext" >&6; }
3629 OBJEXT=$ac_cv_objext
3630 ac_objext=$OBJEXT
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3632 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3633 if ${ac_cv_c_compiler_gnu+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3638
3639 int
3640 main ()
3641 {
3642 #ifndef __GNUC__
3643 choke me
3644 #endif
3645
3646 ;
3647 return 0;
3648 }
3649 _ACEOF
3650 if ac_fn_c_try_compile "$LINENO"; then :
3651 ac_compiler_gnu=yes
3652 else
3653 ac_compiler_gnu=no
3654 fi
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3657
3658 fi
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3660 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3661 if test $ac_compiler_gnu = yes; then
3662 GCC=yes
3663 else
3664 GCC=
3665 fi
3666 ac_test_CFLAGS=${CFLAGS+set}
3667 ac_save_CFLAGS=$CFLAGS
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3669 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3670 if ${ac_cv_prog_cc_g+:} false; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 ac_save_c_werror_flag=$ac_c_werror_flag
3674 ac_c_werror_flag=yes
3675 ac_cv_prog_cc_g=no
3676 CFLAGS="-g"
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679
3680 int
3681 main ()
3682 {
3683
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 if ac_fn_c_try_compile "$LINENO"; then :
3689 ac_cv_prog_cc_g=yes
3690 else
3691 CFLAGS=""
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3694
3695 int
3696 main ()
3697 {
3698
3699 ;
3700 return 0;
3701 }
3702 _ACEOF
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704
3705 else
3706 ac_c_werror_flag=$ac_save_c_werror_flag
3707 CFLAGS="-g"
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710
3711 int
3712 main ()
3713 {
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720 ac_cv_prog_cc_g=yes
3721 fi
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 fi
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 ac_c_werror_flag=$ac_save_c_werror_flag
3728 fi
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3730 $as_echo "$ac_cv_prog_cc_g" >&6; }
3731 if test "$ac_test_CFLAGS" = set; then
3732 CFLAGS=$ac_save_CFLAGS
3733 elif test $ac_cv_prog_cc_g = yes; then
3734 if test "$GCC" = yes; then
3735 CFLAGS="-g -O2"
3736 else
3737 CFLAGS="-g"
3738 fi
3739 else
3740 if test "$GCC" = yes; then
3741 CFLAGS="-O2"
3742 else
3743 CFLAGS=
3744 fi
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3747 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3748 if ${ac_cv_prog_cc_c89+:} false; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 ac_cv_prog_cc_c89=no
3752 ac_save_CC=$CC
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755 #include <stdarg.h>
3756 #include <stdio.h>
3757 #include <sys/types.h>
3758 #include <sys/stat.h>
3759 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3760 struct buf { int x; };
3761 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3762 static char *e (p, i)
3763 char **p;
3764 int i;
3765 {
3766 return p[i];
3767 }
3768 static char *f (char * (*g) (char **, int), char **p, ...)
3769 {
3770 char *s;
3771 va_list v;
3772 va_start (v,p);
3773 s = g (p, va_arg (v,int));
3774 va_end (v);
3775 return s;
3776 }
3777
3778 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3779 function prototypes and stuff, but not '\xHH' hex character constants.
3780 These don't provoke an error unfortunately, instead are silently treated
3781 as 'x'. The following induces an error, until -std is added to get
3782 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3783 array size at least. It's necessary to write '\x00'==0 to get something
3784 that's true only with -std. */
3785 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3786
3787 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3788 inside strings and character constants. */
3789 #define FOO(x) 'x'
3790 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3791
3792 int test (int i, double x);
3793 struct s1 {int (*f) (int a);};
3794 struct s2 {int (*f) (double a);};
3795 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3796 int argc;
3797 char **argv;
3798 int
3799 main ()
3800 {
3801 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3807 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3808 do
3809 CC="$ac_save_CC $ac_arg"
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811 ac_cv_prog_cc_c89=$ac_arg
3812 fi
3813 rm -f core conftest.err conftest.$ac_objext
3814 test "x$ac_cv_prog_cc_c89" != "xno" && break
3815 done
3816 rm -f conftest.$ac_ext
3817 CC=$ac_save_CC
3818
3819 fi
3820 # AC_CACHE_VAL
3821 case "x$ac_cv_prog_cc_c89" in
3822 x)
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3824 $as_echo "none needed" >&6; } ;;
3825 xno)
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3827 $as_echo "unsupported" >&6; } ;;
3828 *)
3829 CC="$CC $ac_cv_prog_cc_c89"
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3831 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3832 esac
3833 if test "x$ac_cv_prog_cc_c89" != xno; then :
3834
3835 fi
3836
3837 ac_ext=c
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842
3843 depcc="$CC" am_compiler_list=
3844
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3846 $as_echo_n "checking dependency style of $depcc... " >&6; }
3847 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3851 # We make a subdir and do the tests there. Otherwise we can end up
3852 # making bogus files that we don't know about and never remove. For
3853 # instance it was reported that on HP-UX the gcc test will end up
3854 # making a dummy file named `D' -- because `-MD' means `put the output
3855 # in D'.
3856 rm -rf conftest.dir
3857 mkdir conftest.dir
3858 # Copy depcomp to subdir because otherwise we won't find it if we're
3859 # using a relative directory.
3860 cp "$am_depcomp" conftest.dir
3861 cd conftest.dir
3862 # We will build objects and dependencies in a subdirectory because
3863 # it helps to detect inapplicable dependency modes. For instance
3864 # both Tru64's cc and ICC support -MD to output dependencies as a
3865 # side effect of compilation, but ICC will put the dependencies in
3866 # the current directory while Tru64 will put them in the object
3867 # directory.
3868 mkdir sub
3869
3870 am_cv_CC_dependencies_compiler_type=none
3871 if test "$am_compiler_list" = ""; then
3872 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3873 fi
3874 am__universal=false
3875 case " $depcc " in #(
3876 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3877 esac
3878
3879 for depmode in $am_compiler_list; do
3880 # Setup a source with many dependencies, because some compilers
3881 # like to wrap large dependency lists on column 80 (with \), and
3882 # we should not choose a depcomp mode which is confused by this.
3883 #
3884 # We need to recreate these files for each test, as the compiler may
3885 # overwrite some of them when testing with obscure command lines.
3886 # This happens at least with the AIX C compiler.
3887 : > sub/conftest.c
3888 for i in 1 2 3 4 5 6; do
3889 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3890 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3891 # Solaris 8's {/usr,}/bin/sh.
3892 touch sub/conftst$i.h
3893 done
3894 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3895
3896 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3897 # mode. It turns out that the SunPro C++ compiler does not properly
3898 # handle `-M -o', and we need to detect this. Also, some Intel
3899 # versions had trouble with output in subdirs
3900 am__obj=sub/conftest.${OBJEXT-o}
3901 am__minus_obj="-o $am__obj"
3902 case $depmode in
3903 gcc)
3904 # This depmode causes a compiler race in universal mode.
3905 test "$am__universal" = false || continue
3906 ;;
3907 nosideeffect)
3908 # after this tag, mechanisms are not by side-effect, so they'll
3909 # only be used when explicitly requested
3910 if test "x$enable_dependency_tracking" = xyes; then
3911 continue
3912 else
3913 break
3914 fi
3915 ;;
3916 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3917 # This compiler won't grok `-c -o', but also, the minuso test has
3918 # not run yet. These depmodes are late enough in the game, and
3919 # so weak that their functioning should not be impacted.
3920 am__obj=conftest.${OBJEXT-o}
3921 am__minus_obj=
3922 ;;
3923 none) break ;;
3924 esac
3925 if depmode=$depmode \
3926 source=sub/conftest.c object=$am__obj \
3927 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3928 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3929 >/dev/null 2>conftest.err &&
3930 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3931 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3932 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3933 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3934 # icc doesn't choke on unknown options, it will just issue warnings
3935 # or remarks (even with -Werror). So we grep stderr for any message
3936 # that says an option was ignored or not supported.
3937 # When given -MP, icc 7.0 and 7.1 complain thusly:
3938 # icc: Command line warning: ignoring option '-M'; no argument required
3939 # The diagnosis changed in icc 8.0:
3940 # icc: Command line remark: option '-MP' not supported
3941 if (grep 'ignoring option' conftest.err ||
3942 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3943 am_cv_CC_dependencies_compiler_type=$depmode
3944 break
3945 fi
3946 fi
3947 done
3948
3949 cd ..
3950 rm -rf conftest.dir
3951 else
3952 am_cv_CC_dependencies_compiler_type=none
3953 fi
3954
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3957 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3958 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3959
3960 if
3961 test "x$enable_dependency_tracking" != xno \
3962 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3963 am__fastdepCC_TRUE=
3964 am__fastdepCC_FALSE='#'
3965 else
3966 am__fastdepCC_TRUE='#'
3967 am__fastdepCC_FALSE=
3968 fi
3969
3970
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3972 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3973 if ${ac_cv_prog_cc_c99+:} false; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 ac_cv_prog_cc_c99=no
3977 ac_save_CC=$CC
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3980 #include <stdarg.h>
3981 #include <stdbool.h>
3982 #include <stdlib.h>
3983 #include <wchar.h>
3984 #include <stdio.h>
3985
3986 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3987 #define debug(...) fprintf (stderr, __VA_ARGS__)
3988 #define showlist(...) puts (#__VA_ARGS__)
3989 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3990 static void
3991 test_varargs_macros (void)
3992 {
3993 int x = 1234;
3994 int y = 5678;
3995 debug ("Flag");
3996 debug ("X = %d\n", x);
3997 showlist (The first, second, and third items.);
3998 report (x>y, "x is %d but y is %d", x, y);
3999 }
4000
4001 // Check long long types.
4002 #define BIG64 18446744073709551615ull
4003 #define BIG32 4294967295ul
4004 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4005 #if !BIG_OK
4006 your preprocessor is broken;
4007 #endif
4008 #if BIG_OK
4009 #else
4010 your preprocessor is broken;
4011 #endif
4012 static long long int bignum = -9223372036854775807LL;
4013 static unsigned long long int ubignum = BIG64;
4014
4015 struct incomplete_array
4016 {
4017 int datasize;
4018 double data[];
4019 };
4020
4021 struct named_init {
4022 int number;
4023 const wchar_t *name;
4024 double average;
4025 };
4026
4027 typedef const char *ccp;
4028
4029 static inline int
4030 test_restrict (ccp restrict text)
4031 {
4032 // See if C++-style comments work.
4033 // Iterate through items via the restricted pointer.
4034 // Also check for declarations in for loops.
4035 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4036 continue;
4037 return 0;
4038 }
4039
4040 // Check varargs and va_copy.
4041 static void
4042 test_varargs (const char *format, ...)
4043 {
4044 va_list args;
4045 va_start (args, format);
4046 va_list args_copy;
4047 va_copy (args_copy, args);
4048
4049 const char *str;
4050 int number;
4051 float fnumber;
4052
4053 while (*format)
4054 {
4055 switch (*format++)
4056 {
4057 case 's': // string
4058 str = va_arg (args_copy, const char *);
4059 break;
4060 case 'd': // int
4061 number = va_arg (args_copy, int);
4062 break;
4063 case 'f': // float
4064 fnumber = va_arg (args_copy, double);
4065 break;
4066 default:
4067 break;
4068 }
4069 }
4070 va_end (args_copy);
4071 va_end (args);
4072 }
4073
4074 int
4075 main ()
4076 {
4077
4078 // Check bool.
4079 _Bool success = false;
4080
4081 // Check restrict.
4082 if (test_restrict ("String literal") == 0)
4083 success = true;
4084 char *restrict newvar = "Another string";
4085
4086 // Check varargs.
4087 test_varargs ("s, d' f .", "string", 65, 34.234);
4088 test_varargs_macros ();
4089
4090 // Check flexible array members.
4091 struct incomplete_array *ia =
4092 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4093 ia->datasize = 10;
4094 for (int i = 0; i < ia->datasize; ++i)
4095 ia->data[i] = i * 1.234;
4096
4097 // Check named initializers.
4098 struct named_init ni = {
4099 .number = 34,
4100 .name = L"Test wide string",
4101 .average = 543.34343,
4102 };
4103
4104 ni.number = 58;
4105
4106 int dynamic_array[ni.number];
4107 dynamic_array[ni.number - 1] = 543;
4108
4109 // work around unused variable warnings
4110 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4111 || dynamic_array[ni.number - 1] != 543);
4112
4113 ;
4114 return 0;
4115 }
4116 _ACEOF
4117 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4118 do
4119 CC="$ac_save_CC $ac_arg"
4120 if ac_fn_c_try_compile "$LINENO"; then :
4121 ac_cv_prog_cc_c99=$ac_arg
4122 fi
4123 rm -f core conftest.err conftest.$ac_objext
4124 test "x$ac_cv_prog_cc_c99" != "xno" && break
4125 done
4126 rm -f conftest.$ac_ext
4127 CC=$ac_save_CC
4128
4129 fi
4130 # AC_CACHE_VAL
4131 case "x$ac_cv_prog_cc_c99" in
4132 x)
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4134 $as_echo "none needed" >&6; } ;;
4135 xno)
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4137 $as_echo "unsupported" >&6; } ;;
4138 *)
4139 CC="$CC $ac_cv_prog_cc_c99"
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4141 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4142 esac
4143 if test "x$ac_cv_prog_cc_c99" != xno; then :
4144
4145 fi
4146
4147
4148 if test "$ac_cv_prog_cc_c99" = "no"; then :
4149 as_fn_error $? "no C99 compiler found. Aborting." "$LINENO" 5
4150 fi
4151 for ac_prog in 'bison -y' byacc
4152 do
4153 # Extract the first word of "$ac_prog", so it can be a program name with args.
4154 set dummy $ac_prog; ac_word=$2
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156 $as_echo_n "checking for $ac_word... " >&6; }
4157 if ${ac_cv_prog_YACC+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 if test -n "$YACC"; then
4161 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4162 else
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH
4165 do
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4170 ac_cv_prog_YACC="$ac_prog"
4171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 break 2
4173 fi
4174 done
4175 done
4176 IFS=$as_save_IFS
4177
4178 fi
4179 fi
4180 YACC=$ac_cv_prog_YACC
4181 if test -n "$YACC"; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4183 $as_echo "$YACC" >&6; }
4184 else
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 $as_echo "no" >&6; }
4187 fi
4188
4189
4190 test -n "$YACC" && break
4191 done
4192 test -n "$YACC" || YACC="yacc"
4193
4194
4195 for ac_prog in flex lex
4196 do
4197 # Extract the first word of "$ac_prog", so it can be a program name with args.
4198 set dummy $ac_prog; ac_word=$2
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200 $as_echo_n "checking for $ac_word... " >&6; }
4201 if ${ac_cv_prog_LEX+:} false; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 if test -n "$LEX"; then
4205 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214 ac_cv_prog_LEX="$ac_prog"
4215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4217 fi
4218 done
4219 done
4220 IFS=$as_save_IFS
4221
4222 fi
4223 fi
4224 LEX=$ac_cv_prog_LEX
4225 if test -n "$LEX"; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4227 $as_echo "$LEX" >&6; }
4228 else
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4231 fi
4232
4233
4234 test -n "$LEX" && break
4235 done
4236 test -n "$LEX" || LEX=":"
4237
4238 if test "x$LEX" != "x:"; then
4239 cat >conftest.l <<_ACEOF
4240 %%
4241 a { ECHO; }
4242 b { REJECT; }
4243 c { yymore (); }
4244 d { yyless (1); }
4245 e { yyless (input () != 0); }
4246 f { unput (yytext[0]); }
4247 . { BEGIN INITIAL; }
4248 %%
4249 #ifdef YYTEXT_POINTER
4250 extern char *yytext;
4251 #endif
4252 int
4253 main (void)
4254 {
4255 return ! yylex () + ! yywrap ();
4256 }
4257 _ACEOF
4258 { { ac_try="$LEX conftest.l"
4259 case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262 esac
4263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4264 $as_echo "$ac_try_echo"; } >&5
4265 (eval "$LEX conftest.l") 2>&5
4266 ac_status=$?
4267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4268 test $ac_status = 0; }
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4270 $as_echo_n "checking lex output file root... " >&6; }
4271 if ${ac_cv_prog_lex_root+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274
4275 if test -f lex.yy.c; then
4276 ac_cv_prog_lex_root=lex.yy
4277 elif test -f lexyy.c; then
4278 ac_cv_prog_lex_root=lexyy
4279 else
4280 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4281 fi
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4284 $as_echo "$ac_cv_prog_lex_root" >&6; }
4285 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4286
4287 if test -z "${LEXLIB+set}"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4289 $as_echo_n "checking lex library... " >&6; }
4290 if ${ac_cv_lib_lex+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293
4294 ac_save_LIBS=$LIBS
4295 ac_cv_lib_lex='none needed'
4296 for ac_lib in '' -lfl -ll; do
4297 LIBS="$ac_lib $ac_save_LIBS"
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 `cat $LEX_OUTPUT_ROOT.c`
4301 _ACEOF
4302 if ac_fn_c_try_link "$LINENO"; then :
4303 ac_cv_lib_lex=$ac_lib
4304 fi
4305 rm -f core conftest.err conftest.$ac_objext \
4306 conftest$ac_exeext conftest.$ac_ext
4307 test "$ac_cv_lib_lex" != 'none needed' && break
4308 done
4309 LIBS=$ac_save_LIBS
4310
4311 fi
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4313 $as_echo "$ac_cv_lib_lex" >&6; }
4314 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4315 fi
4316
4317
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4319 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4320 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 # POSIX says lex can declare yytext either as a pointer or an array; the
4324 # default is implementation-dependent. Figure out which it is, since
4325 # not all implementations provide the %pointer and %array declarations.
4326 ac_cv_prog_lex_yytext_pointer=no
4327 ac_save_LIBS=$LIBS
4328 LIBS="$LEXLIB $ac_save_LIBS"
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4331
4332 #define YYTEXT_POINTER 1
4333 `cat $LEX_OUTPUT_ROOT.c`
4334 _ACEOF
4335 if ac_fn_c_try_link "$LINENO"; then :
4336 ac_cv_prog_lex_yytext_pointer=yes
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext \
4339 conftest$ac_exeext conftest.$ac_ext
4340 LIBS=$ac_save_LIBS
4341
4342 fi
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4344 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4345 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4346
4347 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4348
4349 fi
4350 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4351
4352 fi
4353 if test "$LEX" = :; then
4354 LEX=${am_missing_run}flex
4355 fi
4356
4357
4358 # Initializing libtool.
4359
4360
4361
4362
4363
4364
4365
4366 case `pwd` in
4367 *\ * | *\ *)
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4369 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4370 esac
4371
4372
4373
4374 macro_version='2.4.2'
4375 macro_revision='1.3337'
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389 ltmain="$ac_aux_dir/ltmain.sh"
4390
4391 # Make sure we can run config.sub.
4392 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4393 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4394
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4396 $as_echo_n "checking build system type... " >&6; }
4397 if ${ac_cv_build+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 ac_build_alias=$build_alias
4401 test "x$ac_build_alias" = x &&
4402 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4403 test "x$ac_build_alias" = x &&
4404 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4405 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4406 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4407
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4410 $as_echo "$ac_cv_build" >&6; }
4411 case $ac_cv_build in
4412 *-*-*) ;;
4413 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4414 esac
4415 build=$ac_cv_build
4416 ac_save_IFS=$IFS; IFS='-'
4417 set x $ac_cv_build
4418 shift
4419 build_cpu=$1
4420 build_vendor=$2
4421 shift; shift
4422 # Remember, the first character of IFS is used to create $*,
4423 # except with old shells:
4424 build_os=$*
4425 IFS=$ac_save_IFS
4426 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4427
4428
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4430 $as_echo_n "checking host system type... " >&6; }
4431 if ${ac_cv_host+:} false; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 if test "x$host_alias" = x; then
4435 ac_cv_host=$ac_cv_build
4436 else
4437 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4438 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4439 fi
4440
4441 fi
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4443 $as_echo "$ac_cv_host" >&6; }
4444 case $ac_cv_host in
4445 *-*-*) ;;
4446 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4447 esac
4448 host=$ac_cv_host
4449 ac_save_IFS=$IFS; IFS='-'
4450 set x $ac_cv_host
4451 shift
4452 host_cpu=$1
4453 host_vendor=$2
4454 shift; shift
4455 # Remember, the first character of IFS is used to create $*,
4456 # except with old shells:
4457 host_os=$*
4458 IFS=$ac_save_IFS
4459 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4460
4461
4462 # Backslashify metacharacters that are still active within
4463 # double-quoted strings.
4464 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4465
4466 # Same as above, but do not quote variable references.
4467 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4468
4469 # Sed substitution to delay expansion of an escaped shell variable in a
4470 # double_quote_subst'ed string.
4471 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4472
4473 # Sed substitution to delay expansion of an escaped single quote.
4474 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4475
4476 # Sed substitution to avoid accidental globbing in evaled expressions
4477 no_glob_subst='s/\*/\\\*/g'
4478
4479 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4480 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4481 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4482
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4484 $as_echo_n "checking how to print strings... " >&6; }
4485 # Test print first, because it will be a builtin if present.
4486 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4487 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4488 ECHO='print -r --'
4489 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4490 ECHO='printf %s\n'
4491 else
4492 # Use this function as a fallback that always works.
4493 func_fallback_echo ()
4494 {
4495 eval 'cat <<_LTECHO_EOF
4496 $1
4497 _LTECHO_EOF'
4498 }
4499 ECHO='func_fallback_echo'
4500 fi
4501
4502 # func_echo_all arg...
4503 # Invoke $ECHO with all args, space-separated.
4504 func_echo_all ()
4505 {
4506 $ECHO ""
4507 }
4508
4509 case "$ECHO" in
4510 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4511 $as_echo "printf" >&6; } ;;
4512 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4513 $as_echo "print -r" >&6; } ;;
4514 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4515 $as_echo "cat" >&6; } ;;
4516 esac
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4532 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4533 if ${ac_cv_path_SED+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4537 for ac_i in 1 2 3 4 5 6 7; do
4538 ac_script="$ac_script$as_nl$ac_script"
4539 done
4540 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4541 { ac_script=; unset ac_script;}
4542 if test -z "$SED"; then
4543 ac_path_SED_found=false
4544 # Loop through the user's path and test for each of PROGNAME-LIST
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_prog in sed gsed; do
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4553 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4554 # Check for GNU ac_path_SED and select it if it is found.
4555 # Check for GNU $ac_path_SED
4556 case `"$ac_path_SED" --version 2>&1` in
4557 *GNU*)
4558 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4559 *)
4560 ac_count=0
4561 $as_echo_n 0123456789 >"conftest.in"
4562 while :
4563 do
4564 cat "conftest.in" "conftest.in" >"conftest.tmp"
4565 mv "conftest.tmp" "conftest.in"
4566 cp "conftest.in" "conftest.nl"
4567 $as_echo '' >> "conftest.nl"
4568 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4570 as_fn_arith $ac_count + 1 && ac_count=$as_val
4571 if test $ac_count -gt ${ac_path_SED_max-0}; then
4572 # Best one so far, save it but keep looking for a better one
4573 ac_cv_path_SED="$ac_path_SED"
4574 ac_path_SED_max=$ac_count
4575 fi
4576 # 10*(2^10) chars as input seems more than enough
4577 test $ac_count -gt 10 && break
4578 done
4579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4580 esac
4581
4582 $ac_path_SED_found && break 3
4583 done
4584 done
4585 done
4586 IFS=$as_save_IFS
4587 if test -z "$ac_cv_path_SED"; then
4588 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4589 fi
4590 else
4591 ac_cv_path_SED=$SED
4592 fi
4593
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4596 $as_echo "$ac_cv_path_SED" >&6; }
4597 SED="$ac_cv_path_SED"
4598 rm -f conftest.sed
4599
4600 test -z "$SED" && SED=sed
4601 Xsed="$SED -e 1s/^X//"
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4614 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4615 if ${ac_cv_path_GREP+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 if test -z "$GREP"; then
4619 ac_path_GREP_found=false
4620 # Loop through the user's path and test for each of PROGNAME-LIST
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4623 do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_prog in grep ggrep; do
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4629 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4630 # Check for GNU ac_path_GREP and select it if it is found.
4631 # Check for GNU $ac_path_GREP
4632 case `"$ac_path_GREP" --version 2>&1` in
4633 *GNU*)
4634 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4635 *)
4636 ac_count=0
4637 $as_echo_n 0123456789 >"conftest.in"
4638 while :
4639 do
4640 cat "conftest.in" "conftest.in" >"conftest.tmp"
4641 mv "conftest.tmp" "conftest.in"
4642 cp "conftest.in" "conftest.nl"
4643 $as_echo 'GREP' >> "conftest.nl"
4644 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646 as_fn_arith $ac_count + 1 && ac_count=$as_val
4647 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4648 # Best one so far, save it but keep looking for a better one
4649 ac_cv_path_GREP="$ac_path_GREP"
4650 ac_path_GREP_max=$ac_count
4651 fi
4652 # 10*(2^10) chars as input seems more than enough
4653 test $ac_count -gt 10 && break
4654 done
4655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656 esac
4657
4658 $ac_path_GREP_found && break 3
4659 done
4660 done
4661 done
4662 IFS=$as_save_IFS
4663 if test -z "$ac_cv_path_GREP"; then
4664 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4665 fi
4666 else
4667 ac_cv_path_GREP=$GREP
4668 fi
4669
4670 fi
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4672 $as_echo "$ac_cv_path_GREP" >&6; }
4673 GREP="$ac_cv_path_GREP"
4674
4675
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4677 $as_echo_n "checking for egrep... " >&6; }
4678 if ${ac_cv_path_EGREP+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4682 then ac_cv_path_EGREP="$GREP -E"
4683 else
4684 if test -z "$EGREP"; then
4685 ac_path_EGREP_found=false
4686 # Loop through the user's path and test for each of PROGNAME-LIST
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4689 do
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_prog in egrep; do
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4695 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4696 # Check for GNU ac_path_EGREP and select it if it is found.
4697 # Check for GNU $ac_path_EGREP
4698 case `"$ac_path_EGREP" --version 2>&1` in
4699 *GNU*)
4700 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4701 *)
4702 ac_count=0
4703 $as_echo_n 0123456789 >"conftest.in"
4704 while :
4705 do
4706 cat "conftest.in" "conftest.in" >"conftest.tmp"
4707 mv "conftest.tmp" "conftest.in"
4708 cp "conftest.in" "conftest.nl"
4709 $as_echo 'EGREP' >> "conftest.nl"
4710 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4712 as_fn_arith $ac_count + 1 && ac_count=$as_val
4713 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4714 # Best one so far, save it but keep looking for a better one
4715 ac_cv_path_EGREP="$ac_path_EGREP"
4716 ac_path_EGREP_max=$ac_count
4717 fi
4718 # 10*(2^10) chars as input seems more than enough
4719 test $ac_count -gt 10 && break
4720 done
4721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4722 esac
4723
4724 $ac_path_EGREP_found && break 3
4725 done
4726 done
4727 done
4728 IFS=$as_save_IFS
4729 if test -z "$ac_cv_path_EGREP"; then
4730 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4731 fi
4732 else
4733 ac_cv_path_EGREP=$EGREP
4734 fi
4735
4736 fi
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4739 $as_echo "$ac_cv_path_EGREP" >&6; }
4740 EGREP="$ac_cv_path_EGREP"
4741
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4744 $as_echo_n "checking for fgrep... " >&6; }
4745 if ${ac_cv_path_FGREP+:} false; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4749 then ac_cv_path_FGREP="$GREP -F"
4750 else
4751 if test -z "$FGREP"; then
4752 ac_path_FGREP_found=false
4753 # Loop through the user's path and test for each of PROGNAME-LIST
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4756 do
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_prog in fgrep; do
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4762 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4763 # Check for GNU ac_path_FGREP and select it if it is found.
4764 # Check for GNU $ac_path_FGREP
4765 case `"$ac_path_FGREP" --version 2>&1` in
4766 *GNU*)
4767 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4768 *)
4769 ac_count=0
4770 $as_echo_n 0123456789 >"conftest.in"
4771 while :
4772 do
4773 cat "conftest.in" "conftest.in" >"conftest.tmp"
4774 mv "conftest.tmp" "conftest.in"
4775 cp "conftest.in" "conftest.nl"
4776 $as_echo 'FGREP' >> "conftest.nl"
4777 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4779 as_fn_arith $ac_count + 1 && ac_count=$as_val
4780 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4781 # Best one so far, save it but keep looking for a better one
4782 ac_cv_path_FGREP="$ac_path_FGREP"
4783 ac_path_FGREP_max=$ac_count
4784 fi
4785 # 10*(2^10) chars as input seems more than enough
4786 test $ac_count -gt 10 && break
4787 done
4788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4789 esac
4790
4791 $ac_path_FGREP_found && break 3
4792 done
4793 done
4794 done
4795 IFS=$as_save_IFS
4796 if test -z "$ac_cv_path_FGREP"; then
4797 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4798 fi
4799 else
4800 ac_cv_path_FGREP=$FGREP
4801 fi
4802
4803 fi
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4806 $as_echo "$ac_cv_path_FGREP" >&6; }
4807 FGREP="$ac_cv_path_FGREP"
4808
4809
4810 test -z "$GREP" && GREP=grep
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830 # Check whether --with-gnu-ld was given.
4831 if test "${with_gnu_ld+set}" = set; then :
4832 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4833 else
4834 with_gnu_ld=no
4835 fi
4836
4837 ac_prog=ld
4838 if test "$GCC" = yes; then
4839 # Check if gcc -print-prog-name=ld gives a path.
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4841 $as_echo_n "checking for ld used by $CC... " >&6; }
4842 case $host in
4843 *-*-mingw*)
4844 # gcc leaves a trailing carriage return which upsets mingw
4845 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4846 *)
4847 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4848 esac
4849 case $ac_prog in
4850 # Accept absolute paths.
4851 [\\/]* | ?:[\\/]*)
4852 re_direlt='/[^/][^/]*/\.\./'
4853 # Canonicalize the pathname of ld
4854 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4855 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4856 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4857 done
4858 test -z "$LD" && LD="$ac_prog"
4859 ;;
4860 "")
4861 # If it fails, then pretend we aren't using GCC.
4862 ac_prog=ld
4863 ;;
4864 *)
4865 # If it is relative, then search for the first ld in PATH.
4866 with_gnu_ld=unknown
4867 ;;
4868 esac
4869 elif test "$with_gnu_ld" = yes; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4871 $as_echo_n "checking for GNU ld... " >&6; }
4872 else
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4874 $as_echo_n "checking for non-GNU ld... " >&6; }
4875 fi
4876 if ${lt_cv_path_LD+:} false; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 if test -z "$LD"; then
4880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4881 for ac_dir in $PATH; do
4882 IFS="$lt_save_ifs"
4883 test -z "$ac_dir" && ac_dir=.
4884 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4885 lt_cv_path_LD="$ac_dir/$ac_prog"
4886 # Check to see if the program is GNU ld. I'd rather use --version,
4887 # but apparently some variants of GNU ld only accept -v.
4888 # Break only if it was the GNU/non-GNU ld that we prefer.
4889 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4890 *GNU* | *'with BFD'*)
4891 test "$with_gnu_ld" != no && break
4892 ;;
4893 *)
4894 test "$with_gnu_ld" != yes && break
4895 ;;
4896 esac
4897 fi
4898 done
4899 IFS="$lt_save_ifs"
4900 else
4901 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4902 fi
4903 fi
4904
4905 LD="$lt_cv_path_LD"
4906 if test -n "$LD"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4908 $as_echo "$LD" >&6; }
4909 else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4912 fi
4913 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4915 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4916 if ${lt_cv_prog_gnu_ld+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4920 case `$LD -v 2>&1 </dev/null` in
4921 *GNU* | *'with BFD'*)
4922 lt_cv_prog_gnu_ld=yes
4923 ;;
4924 *)
4925 lt_cv_prog_gnu_ld=no
4926 ;;
4927 esac
4928 fi
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4930 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4931 with_gnu_ld=$lt_cv_prog_gnu_ld
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4942 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4943 if ${lt_cv_path_NM+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 if test -n "$NM"; then
4947 # Let the user override the test.
4948 lt_cv_path_NM="$NM"
4949 else
4950 lt_nm_to_check="${ac_tool_prefix}nm"
4951 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4952 lt_nm_to_check="$lt_nm_to_check nm"
4953 fi
4954 for lt_tmp_nm in $lt_nm_to_check; do
4955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4956 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4957 IFS="$lt_save_ifs"
4958 test -z "$ac_dir" && ac_dir=.
4959 tmp_nm="$ac_dir/$lt_tmp_nm"
4960 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4961 # Check to see if the nm accepts a BSD-compat flag.
4962 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4963 # nm: unknown option "B" ignored
4964 # Tru64's nm complains that /dev/null is an invalid object file
4965 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4966 */dev/null* | *'Invalid file or object type'*)
4967 lt_cv_path_NM="$tmp_nm -B"
4968 break
4969 ;;
4970 *)
4971 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4972 */dev/null*)
4973 lt_cv_path_NM="$tmp_nm -p"
4974 break
4975 ;;
4976 *)
4977 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4978 continue # so that we can try to find one that supports BSD flags
4979 ;;
4980 esac
4981 ;;
4982 esac
4983 fi
4984 done
4985 IFS="$lt_save_ifs"
4986 done
4987 : ${lt_cv_path_NM=no}
4988 fi
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4991 $as_echo "$lt_cv_path_NM" >&6; }
4992 if test "$lt_cv_path_NM" != "no"; then
4993 NM="$lt_cv_path_NM"
4994 else
4995 # Didn't find any BSD compatible name lister, look for dumpbin.
4996 if test -n "$DUMPBIN"; then :
4997 # Let the user override the test.
4998 else
4999 if test -n "$ac_tool_prefix"; then
5000 for ac_prog in dumpbin "link -dump"
5001 do
5002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_prog_DUMPBIN+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$DUMPBIN"; then
5010 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5022 fi
5023 done
5024 done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 DUMPBIN=$ac_cv_prog_DUMPBIN
5030 if test -n "$DUMPBIN"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5032 $as_echo "$DUMPBIN" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037
5038
5039 test -n "$DUMPBIN" && break
5040 done
5041 fi
5042 if test -z "$DUMPBIN"; then
5043 ac_ct_DUMPBIN=$DUMPBIN
5044 for ac_prog in dumpbin "link -dump"
5045 do
5046 # Extract the first word of "$ac_prog", so it can be a program name with args.
5047 set dummy $ac_prog; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$ac_ct_DUMPBIN"; then
5054 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5066 fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5074 if test -n "$ac_ct_DUMPBIN"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5076 $as_echo "$ac_ct_DUMPBIN" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081
5082
5083 test -n "$ac_ct_DUMPBIN" && break
5084 done
5085
5086 if test "x$ac_ct_DUMPBIN" = x; then
5087 DUMPBIN=":"
5088 else
5089 case $cross_compiling:$ac_tool_warned in
5090 yes:)
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned=yes ;;
5094 esac
5095 DUMPBIN=$ac_ct_DUMPBIN
5096 fi
5097 fi
5098
5099 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5100 *COFF*)
5101 DUMPBIN="$DUMPBIN -symbols"
5102 ;;
5103 *)
5104 DUMPBIN=:
5105 ;;
5106 esac
5107 fi
5108
5109 if test "$DUMPBIN" != ":"; then
5110 NM="$DUMPBIN"
5111 fi
5112 fi
5113 test -z "$NM" && NM=nm
5114
5115
5116
5117
5118
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5121 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5122 if ${lt_cv_nm_interface+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 lt_cv_nm_interface="BSD nm"
5126 echo "int some_variable = 0;" > conftest.$ac_ext
5127 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5128 (eval "$ac_compile" 2>conftest.err)
5129 cat conftest.err >&5
5130 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5131 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5132 cat conftest.err >&5
5133 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5134 cat conftest.out >&5
5135 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5136 lt_cv_nm_interface="MS dumpbin"
5137 fi
5138 rm -f conftest*
5139 fi
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5141 $as_echo "$lt_cv_nm_interface" >&6; }
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5144 $as_echo_n "checking whether ln -s works... " >&6; }
5145 LN_S=$as_ln_s
5146 if test "$LN_S" = "ln -s"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5148 $as_echo "yes" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5151 $as_echo "no, using $LN_S" >&6; }
5152 fi
5153
5154 # find the maximum length of command line arguments
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5156 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5157 if ${lt_cv_sys_max_cmd_len+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 i=0
5161 teststring="ABCD"
5162
5163 case $build_os in
5164 msdosdjgpp*)
5165 # On DJGPP, this test can blow up pretty badly due to problems in libc
5166 # (any single argument exceeding 2000 bytes causes a buffer overrun
5167 # during glob expansion). Even if it were fixed, the result of this
5168 # check would be larger than it should be.
5169 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5170 ;;
5171
5172 gnu*)
5173 # Under GNU Hurd, this test is not required because there is
5174 # no limit to the length of command line arguments.
5175 # Libtool will interpret -1 as no limit whatsoever
5176 lt_cv_sys_max_cmd_len=-1;
5177 ;;
5178
5179 cygwin* | mingw* | cegcc*)
5180 # On Win9x/ME, this test blows up -- it succeeds, but takes
5181 # about 5 minutes as the teststring grows exponentially.
5182 # Worse, since 9x/ME are not pre-emptively multitasking,
5183 # you end up with a "frozen" computer, even though with patience
5184 # the test eventually succeeds (with a max line length of 256k).
5185 # Instead, let's just punt: use the minimum linelength reported by
5186 # all of the supported platforms: 8192 (on NT/2K/XP).
5187 lt_cv_sys_max_cmd_len=8192;
5188 ;;
5189
5190 mint*)
5191 # On MiNT this can take a long time and run out of memory.
5192 lt_cv_sys_max_cmd_len=8192;
5193 ;;
5194
5195 amigaos*)
5196 # On AmigaOS with pdksh, this test takes hours, literally.
5197 # So we just punt and use a minimum line length of 8192.
5198 lt_cv_sys_max_cmd_len=8192;
5199 ;;
5200
5201 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5202 # This has been around since 386BSD, at least. Likely further.
5203 if test -x /sbin/sysctl; then
5204 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5205 elif test -x /usr/sbin/sysctl; then
5206 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5207 else
5208 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5209 fi
5210 # And add a safety zone
5211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5213 ;;
5214
5215 interix*)
5216 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5217 lt_cv_sys_max_cmd_len=196608
5218 ;;
5219
5220 os2*)
5221 # The test takes a long time on OS/2.
5222 lt_cv_sys_max_cmd_len=8192
5223 ;;
5224
5225 osf*)
5226 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5227 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5228 # nice to cause kernel panics so lets avoid the loop below.
5229 # First set a reasonable default.
5230 lt_cv_sys_max_cmd_len=16384
5231 #
5232 if test -x /sbin/sysconfig; then
5233 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5234 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5235 esac
5236 fi
5237 ;;
5238 sco3.2v5*)
5239 lt_cv_sys_max_cmd_len=102400
5240 ;;
5241 sysv5* | sco5v6* | sysv4.2uw2*)
5242 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5243 if test -n "$kargmax"; then
5244 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5245 else
5246 lt_cv_sys_max_cmd_len=32768
5247 fi
5248 ;;
5249 *)
5250 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5251 if test -n "$lt_cv_sys_max_cmd_len"; then
5252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5254 else
5255 # Make teststring a little bigger before we do anything with it.
5256 # a 1K string should be a reasonable start.
5257 for i in 1 2 3 4 5 6 7 8 ; do
5258 teststring=$teststring$teststring
5259 done
5260 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5261 # If test is not a shell built-in, we'll probably end up computing a
5262 # maximum length that is only half of the actual maximum length, but
5263 # we can't tell.
5264 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5265 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5266 test $i != 17 # 1/2 MB should be enough
5267 do
5268 i=`expr $i + 1`
5269 teststring=$teststring$teststring
5270 done
5271 # Only check the string length outside the loop.
5272 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5273 teststring=
5274 # Add a significant safety factor because C++ compilers can tack on
5275 # massive amounts of additional arguments before passing them to the
5276 # linker. It appears as though 1/2 is a usable value.
5277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5278 fi
5279 ;;
5280 esac
5281
5282 fi
5283
5284 if test -n $lt_cv_sys_max_cmd_len ; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5286 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5289 $as_echo "none" >&6; }
5290 fi
5291 max_cmd_len=$lt_cv_sys_max_cmd_len
5292
5293
5294
5295
5296
5297
5298 : ${CP="cp -f"}
5299 : ${MV="mv -f"}
5300 : ${RM="rm -f"}
5301
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5303 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5304 # Try some XSI features
5305 xsi_shell=no
5306 ( _lt_dummy="a/b/c"
5307 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5308 = c,a/b,b/c, \
5309 && eval 'test $(( 1 + 1 )) -eq 2 \
5310 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5311 && xsi_shell=yes
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5313 $as_echo "$xsi_shell" >&6; }
5314
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5317 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5318 lt_shell_append=no
5319 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5320 >/dev/null 2>&1 \
5321 && lt_shell_append=yes
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5323 $as_echo "$lt_shell_append" >&6; }
5324
5325
5326 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5327 lt_unset=unset
5328 else
5329 lt_unset=false
5330 fi
5331
5332
5333
5334
5335
5336 # test EBCDIC or ASCII
5337 case `echo X|tr X '\101'` in
5338 A) # ASCII based system
5339 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5340 lt_SP2NL='tr \040 \012'
5341 lt_NL2SP='tr \015\012 \040\040'
5342 ;;
5343 *) # EBCDIC based system
5344 lt_SP2NL='tr \100 \n'
5345 lt_NL2SP='tr \r\n \100\100'
5346 ;;
5347 esac
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5358 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5359 if ${lt_cv_to_host_file_cmd+:} false; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 case $host in
5363 *-*-mingw* )
5364 case $build in
5365 *-*-mingw* ) # actually msys
5366 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5367 ;;
5368 *-*-cygwin* )
5369 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5370 ;;
5371 * ) # otherwise, assume *nix
5372 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5373 ;;
5374 esac
5375 ;;
5376 *-*-cygwin* )
5377 case $build in
5378 *-*-mingw* ) # actually msys
5379 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5380 ;;
5381 *-*-cygwin* )
5382 lt_cv_to_host_file_cmd=func_convert_file_noop
5383 ;;
5384 * ) # otherwise, assume *nix
5385 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5386 ;;
5387 esac
5388 ;;
5389 * ) # unhandled hosts (and "normal" native builds)
5390 lt_cv_to_host_file_cmd=func_convert_file_noop
5391 ;;
5392 esac
5393
5394 fi
5395
5396 to_host_file_cmd=$lt_cv_to_host_file_cmd
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5398 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5399
5400
5401
5402
5403
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5405 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5406 if ${lt_cv_to_tool_file_cmd+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 #assume ordinary cross tools, or native build.
5410 lt_cv_to_tool_file_cmd=func_convert_file_noop
5411 case $host in
5412 *-*-mingw* )
5413 case $build in
5414 *-*-mingw* ) # actually msys
5415 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5416 ;;
5417 esac
5418 ;;
5419 esac
5420
5421 fi
5422
5423 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5425 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5426
5427
5428
5429
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5432 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5433 if ${lt_cv_ld_reload_flag+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 lt_cv_ld_reload_flag='-r'
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5439 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5440 reload_flag=$lt_cv_ld_reload_flag
5441 case $reload_flag in
5442 "" | " "*) ;;
5443 *) reload_flag=" $reload_flag" ;;
5444 esac
5445 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5446 case $host_os in
5447 cygwin* | mingw* | pw32* | cegcc*)
5448 if test "$GCC" != yes; then
5449 reload_cmds=false
5450 fi
5451 ;;
5452 darwin*)
5453 if test "$GCC" = yes; then
5454 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5455 else
5456 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5457 fi
5458 ;;
5459 esac
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469 if test -n "$ac_tool_prefix"; then
5470 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5471 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473 $as_echo_n "checking for $ac_word... " >&6; }
5474 if ${ac_cv_prog_OBJDUMP+:} false; then :
5475 $as_echo_n "(cached) " >&6
5476 else
5477 if test -n "$OBJDUMP"; then
5478 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5479 else
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5482 do
5483 IFS=$as_save_IFS
5484 test -z "$as_dir" && as_dir=.
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5487 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 break 2
5490 fi
5491 done
5492 done
5493 IFS=$as_save_IFS
5494
5495 fi
5496 fi
5497 OBJDUMP=$ac_cv_prog_OBJDUMP
5498 if test -n "$OBJDUMP"; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5500 $as_echo "$OBJDUMP" >&6; }
5501 else
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5504 fi
5505
5506
5507 fi
5508 if test -z "$ac_cv_prog_OBJDUMP"; then
5509 ac_ct_OBJDUMP=$OBJDUMP
5510 # Extract the first word of "objdump", so it can be a program name with args.
5511 set dummy objdump; ac_word=$2
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513 $as_echo_n "checking for $ac_word... " >&6; }
5514 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if test -n "$ac_ct_OBJDUMP"; then
5518 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5519 else
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5530 fi
5531 done
5532 done
5533 IFS=$as_save_IFS
5534
5535 fi
5536 fi
5537 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5538 if test -n "$ac_ct_OBJDUMP"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5540 $as_echo "$ac_ct_OBJDUMP" >&6; }
5541 else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5544 fi
5545
5546 if test "x$ac_ct_OBJDUMP" = x; then
5547 OBJDUMP="false"
5548 else
5549 case $cross_compiling:$ac_tool_warned in
5550 yes:)
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5553 ac_tool_warned=yes ;;
5554 esac
5555 OBJDUMP=$ac_ct_OBJDUMP
5556 fi
5557 else
5558 OBJDUMP="$ac_cv_prog_OBJDUMP"
5559 fi
5560
5561 test -z "$OBJDUMP" && OBJDUMP=objdump
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5572 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5573 if ${lt_cv_deplibs_check_method+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 lt_cv_file_magic_cmd='$MAGIC_CMD'
5577 lt_cv_file_magic_test_file=
5578 lt_cv_deplibs_check_method='unknown'
5579 # Need to set the preceding variable on all platforms that support
5580 # interlibrary dependencies.
5581 # 'none' -- dependencies not supported.
5582 # `unknown' -- same as none, but documents that we really don't know.
5583 # 'pass_all' -- all dependencies passed with no checks.
5584 # 'test_compile' -- check by making test program.
5585 # 'file_magic [[regex]]' -- check by looking for files in library path
5586 # which responds to the $file_magic_cmd with a given extended regex.
5587 # If you have `file' or equivalent on your system and you're not sure
5588 # whether `pass_all' will *always* work, you probably want this one.
5589
5590 case $host_os in
5591 aix[4-9]*)
5592 lt_cv_deplibs_check_method=pass_all
5593 ;;
5594
5595 beos*)
5596 lt_cv_deplibs_check_method=pass_all
5597 ;;
5598
5599 bsdi[45]*)
5600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5601 lt_cv_file_magic_cmd='/usr/bin/file -L'
5602 lt_cv_file_magic_test_file=/shlib/libc.so
5603 ;;
5604
5605 cygwin*)
5606 # func_win32_libid is a shell function defined in ltmain.sh
5607 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5608 lt_cv_file_magic_cmd='func_win32_libid'
5609 ;;
5610
5611 mingw* | pw32*)
5612 # Base MSYS/MinGW do not provide the 'file' command needed by
5613 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5614 # unless we find 'file', for example because we are cross-compiling.
5615 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5616 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5617 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5618 lt_cv_file_magic_cmd='func_win32_libid'
5619 else
5620 # Keep this pattern in sync with the one in func_win32_libid.
5621 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5622 lt_cv_file_magic_cmd='$OBJDUMP -f'
5623 fi
5624 ;;
5625
5626 cegcc*)
5627 # use the weaker test based on 'objdump'. See mingw*.
5628 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5629 lt_cv_file_magic_cmd='$OBJDUMP -f'
5630 ;;
5631
5632 darwin* | rhapsody*)
5633 lt_cv_deplibs_check_method=pass_all
5634 ;;
5635
5636 freebsd* | dragonfly*)
5637 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5638 case $host_cpu in
5639 i*86 )
5640 # Not sure whether the presence of OpenBSD here was a mistake.
5641 # Let's accept both of them until this is cleared up.
5642 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5643 lt_cv_file_magic_cmd=/usr/bin/file
5644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5645 ;;
5646 esac
5647 else
5648 lt_cv_deplibs_check_method=pass_all
5649 fi
5650 ;;
5651
5652 gnu*)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655
5656 haiku*)
5657 lt_cv_deplibs_check_method=pass_all
5658 ;;
5659
5660 hpux10.20* | hpux11*)
5661 lt_cv_file_magic_cmd=/usr/bin/file
5662 case $host_cpu in
5663 ia64*)
5664 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5665 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5666 ;;
5667 hppa*64*)
5668 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]'
5669 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5670 ;;
5671 *)
5672 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5673 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5674 ;;
5675 esac
5676 ;;
5677
5678 interix[3-9]*)
5679 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5681 ;;
5682
5683 irix5* | irix6* | nonstopux*)
5684 case $LD in
5685 *-32|*"-32 ") libmagic=32-bit;;
5686 *-n32|*"-n32 ") libmagic=N32;;
5687 *-64|*"-64 ") libmagic=64-bit;;
5688 *) libmagic=never-match;;
5689 esac
5690 lt_cv_deplibs_check_method=pass_all
5691 ;;
5692
5693 # This must be glibc/ELF.
5694 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5695 lt_cv_deplibs_check_method=pass_all
5696 ;;
5697
5698 netbsd*)
5699 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5701 else
5702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5703 fi
5704 ;;
5705
5706 newos6*)
5707 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5708 lt_cv_file_magic_cmd=/usr/bin/file
5709 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5710 ;;
5711
5712 *nto* | *qnx*)
5713 lt_cv_deplibs_check_method=pass_all
5714 ;;
5715
5716 openbsd*)
5717 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5719 else
5720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5721 fi
5722 ;;
5723
5724 osf3* | osf4* | osf5*)
5725 lt_cv_deplibs_check_method=pass_all
5726 ;;
5727
5728 rdos*)
5729 lt_cv_deplibs_check_method=pass_all
5730 ;;
5731
5732 solaris*)
5733 lt_cv_deplibs_check_method=pass_all
5734 ;;
5735
5736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5737 lt_cv_deplibs_check_method=pass_all
5738 ;;
5739
5740 sysv4 | sysv4.3*)
5741 case $host_vendor in
5742 motorola)
5743 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]'
5744 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5745 ;;
5746 ncr)
5747 lt_cv_deplibs_check_method=pass_all
5748 ;;
5749 sequent)
5750 lt_cv_file_magic_cmd='/bin/file'
5751 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5752 ;;
5753 sni)
5754 lt_cv_file_magic_cmd='/bin/file'
5755 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5756 lt_cv_file_magic_test_file=/lib/libc.so
5757 ;;
5758 siemens)
5759 lt_cv_deplibs_check_method=pass_all
5760 ;;
5761 pc)
5762 lt_cv_deplibs_check_method=pass_all
5763 ;;
5764 esac
5765 ;;
5766
5767 tpf*)
5768 lt_cv_deplibs_check_method=pass_all
5769 ;;
5770 esac
5771
5772 fi
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5774 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5775
5776 file_magic_glob=
5777 want_nocaseglob=no
5778 if test "$build" = "$host"; then
5779 case $host_os in
5780 mingw* | pw32*)
5781 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5782 want_nocaseglob=yes
5783 else
5784 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5785 fi
5786 ;;
5787 esac
5788 fi
5789
5790 file_magic_cmd=$lt_cv_file_magic_cmd
5791 deplibs_check_method=$lt_cv_deplibs_check_method
5792 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815 if test -n "$ac_tool_prefix"; then
5816 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5817 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if ${ac_cv_prog_DLLTOOL+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 if test -n "$DLLTOOL"; then
5824 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5825 else
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5828 do
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5836 fi
5837 done
5838 done
5839 IFS=$as_save_IFS
5840
5841 fi
5842 fi
5843 DLLTOOL=$ac_cv_prog_DLLTOOL
5844 if test -n "$DLLTOOL"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5846 $as_echo "$DLLTOOL" >&6; }
5847 else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5850 fi
5851
5852
5853 fi
5854 if test -z "$ac_cv_prog_DLLTOOL"; then
5855 ac_ct_DLLTOOL=$DLLTOOL
5856 # Extract the first word of "dlltool", so it can be a program name with args.
5857 set dummy dlltool; ac_word=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 if test -n "$ac_ct_DLLTOOL"; then
5864 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5868 do
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5876 fi
5877 done
5878 done
5879 IFS=$as_save_IFS
5880
5881 fi
5882 fi
5883 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5884 if test -n "$ac_ct_DLLTOOL"; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5886 $as_echo "$ac_ct_DLLTOOL" >&6; }
5887 else
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5890 fi
5891
5892 if test "x$ac_ct_DLLTOOL" = x; then
5893 DLLTOOL="false"
5894 else
5895 case $cross_compiling:$ac_tool_warned in
5896 yes:)
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5899 ac_tool_warned=yes ;;
5900 esac
5901 DLLTOOL=$ac_ct_DLLTOOL
5902 fi
5903 else
5904 DLLTOOL="$ac_cv_prog_DLLTOOL"
5905 fi
5906
5907 test -z "$DLLTOOL" && DLLTOOL=dlltool
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5919 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5920 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 lt_cv_sharedlib_from_linklib_cmd='unknown'
5924
5925 case $host_os in
5926 cygwin* | mingw* | pw32* | cegcc*)
5927 # two different shell functions defined in ltmain.sh
5928 # decide which to use based on capabilities of $DLLTOOL
5929 case `$DLLTOOL --help 2>&1` in
5930 *--identify-strict*)
5931 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5932 ;;
5933 *)
5934 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5935 ;;
5936 esac
5937 ;;
5938 *)
5939 # fallback: assume linklib IS sharedlib
5940 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5941 ;;
5942 esac
5943
5944 fi
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5946 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5947 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5948 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5949
5950
5951
5952
5953
5954
5955
5956 if test -n "$ac_tool_prefix"; then
5957 for ac_prog in ar
5958 do
5959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if ${ac_cv_prog_AR+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 if test -n "$AR"; then
5967 ac_cv_prog_AR="$AR" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980 done
5981 done
5982 IFS=$as_save_IFS
5983
5984 fi
5985 fi
5986 AR=$ac_cv_prog_AR
5987 if test -n "$AR"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5989 $as_echo "$AR" >&6; }
5990 else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 $as_echo "no" >&6; }
5993 fi
5994
5995
5996 test -n "$AR" && break
5997 done
5998 fi
5999 if test -z "$AR"; then
6000 ac_ct_AR=$AR
6001 for ac_prog in ar
6002 do
6003 # Extract the first word of "$ac_prog", so it can be a program name with args.
6004 set dummy $ac_prog; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 if test -n "$ac_ct_AR"; then
6011 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_ac_ct_AR="$ac_prog"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024 done
6025 done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6031 if test -n "$ac_ct_AR"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6033 $as_echo "$ac_ct_AR" >&6; }
6034 else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038
6039
6040 test -n "$ac_ct_AR" && break
6041 done
6042
6043 if test "x$ac_ct_AR" = x; then
6044 AR="false"
6045 else
6046 case $cross_compiling:$ac_tool_warned in
6047 yes:)
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6050 ac_tool_warned=yes ;;
6051 esac
6052 AR=$ac_ct_AR
6053 fi
6054 fi
6055
6056 : ${AR=ar}
6057 : ${AR_FLAGS=cru}
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6070 $as_echo_n "checking for archiver @FILE support... " >&6; }
6071 if ${lt_cv_ar_at_file+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 lt_cv_ar_at_file=no
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6077
6078 int
6079 main ()
6080 {
6081
6082 ;
6083 return 0;
6084 }
6085 _ACEOF
6086 if ac_fn_c_try_compile "$LINENO"; then :
6087 echo conftest.$ac_objext > conftest.lst
6088 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6090 (eval $lt_ar_try) 2>&5
6091 ac_status=$?
6092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6093 test $ac_status = 0; }
6094 if test "$ac_status" -eq 0; then
6095 # Ensure the archiver fails upon bogus file names.
6096 rm -f conftest.$ac_objext libconftest.a
6097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6098 (eval $lt_ar_try) 2>&5
6099 ac_status=$?
6100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6101 test $ac_status = 0; }
6102 if test "$ac_status" -ne 0; then
6103 lt_cv_ar_at_file=@
6104 fi
6105 fi
6106 rm -f conftest.* libconftest.a
6107
6108 fi
6109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110
6111 fi
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6113 $as_echo "$lt_cv_ar_at_file" >&6; }
6114
6115 if test "x$lt_cv_ar_at_file" = xno; then
6116 archiver_list_spec=
6117 else
6118 archiver_list_spec=$lt_cv_ar_at_file
6119 fi
6120
6121
6122
6123
6124
6125
6126
6127 if test -n "$ac_tool_prefix"; then
6128 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6129 set dummy ${ac_tool_prefix}strip; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if ${ac_cv_prog_STRIP+:} false; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if test -n "$STRIP"; then
6136 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6145 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149 done
6150 done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 STRIP=$ac_cv_prog_STRIP
6156 if test -n "$STRIP"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6158 $as_echo "$STRIP" >&6; }
6159 else
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163
6164
6165 fi
6166 if test -z "$ac_cv_prog_STRIP"; then
6167 ac_ct_STRIP=$STRIP
6168 # Extract the first word of "strip", so it can be a program name with args.
6169 set dummy strip; ac_word=$2
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 $as_echo_n "checking for $ac_word... " >&6; }
6172 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 if test -n "$ac_ct_STRIP"; then
6176 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_ac_ct_STRIP="strip"
6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189 done
6190 done
6191 IFS=$as_save_IFS
6192
6193 fi
6194 fi
6195 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6196 if test -n "$ac_ct_STRIP"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6198 $as_echo "$ac_ct_STRIP" >&6; }
6199 else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6202 fi
6203
6204 if test "x$ac_ct_STRIP" = x; then
6205 STRIP=":"
6206 else
6207 case $cross_compiling:$ac_tool_warned in
6208 yes:)
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6211 ac_tool_warned=yes ;;
6212 esac
6213 STRIP=$ac_ct_STRIP
6214 fi
6215 else
6216 STRIP="$ac_cv_prog_STRIP"
6217 fi
6218
6219 test -z "$STRIP" && STRIP=:
6220
6221
6222
6223
6224
6225
6226 if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6228 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_prog_RANLIB+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 if test -n "$RANLIB"; then
6235 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 RANLIB=$ac_cv_prog_RANLIB
6255 if test -n "$RANLIB"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6257 $as_echo "$RANLIB" >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262
6263
6264 fi
6265 if test -z "$ac_cv_prog_RANLIB"; then
6266 ac_ct_RANLIB=$RANLIB
6267 # Extract the first word of "ranlib", so it can be a program name with args.
6268 set dummy ranlib; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 if test -n "$ac_ct_RANLIB"; then
6275 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6284 ac_cv_prog_ac_ct_RANLIB="ranlib"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 break 2
6287 fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6295 if test -n "$ac_ct_RANLIB"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6297 $as_echo "$ac_ct_RANLIB" >&6; }
6298 else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303 if test "x$ac_ct_RANLIB" = x; then
6304 RANLIB=":"
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312 RANLIB=$ac_ct_RANLIB
6313 fi
6314 else
6315 RANLIB="$ac_cv_prog_RANLIB"
6316 fi
6317
6318 test -z "$RANLIB" && RANLIB=:
6319
6320
6321
6322
6323
6324
6325 # Determine commands to create old-style static archives.
6326 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6327 old_postinstall_cmds='chmod 644 $oldlib'
6328 old_postuninstall_cmds=
6329
6330 if test -n "$RANLIB"; then
6331 case $host_os in
6332 openbsd*)
6333 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6334 ;;
6335 *)
6336 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6337 ;;
6338 esac
6339 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6340 fi
6341
6342 case $host_os in
6343 darwin*)
6344 lock_old_archive_extraction=yes ;;
6345 *)
6346 lock_old_archive_extraction=no ;;
6347 esac
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
6387 # If no C compiler was specified, use CC.
6388 LTCC=${LTCC-"$CC"}
6389
6390 # If no C compiler flags were specified, use CFLAGS.
6391 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6392
6393 # Allow CC to be a program name with arguments.
6394 compiler=$CC
6395
6396
6397 # Check for command to grab the raw symbol name followed by C symbol from nm.
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6399 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6400 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403
6404 # These are sane defaults that work on at least a few old systems.
6405 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6406
6407 # Character class describing NM global symbol codes.
6408 symcode='[BCDEGRST]'
6409
6410 # Regexp to match symbols that can be accessed directly from C.
6411 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6412
6413 # Define system-specific variables.
6414 case $host_os in
6415 aix*)
6416 symcode='[BCDT]'
6417 ;;
6418 cygwin* | mingw* | pw32* | cegcc*)
6419 symcode='[ABCDGISTW]'
6420 ;;
6421 hpux*)
6422 if test "$host_cpu" = ia64; then
6423 symcode='[ABCDEGRST]'
6424 fi
6425 ;;
6426 irix* | nonstopux*)
6427 symcode='[BCDEGRST]'
6428 ;;
6429 osf*)
6430 symcode='[BCDEGQRST]'
6431 ;;
6432 solaris*)
6433 symcode='[BDRT]'
6434 ;;
6435 sco3.2v5*)
6436 symcode='[DT]'
6437 ;;
6438 sysv4.2uw2*)
6439 symcode='[DT]'
6440 ;;
6441 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6442 symcode='[ABDT]'
6443 ;;
6444 sysv4)
6445 symcode='[DFNSTU]'
6446 ;;
6447 esac
6448
6449 # If we're using GNU nm, then use its standard symbol codes.
6450 case `$NM -V 2>&1` in
6451 *GNU* | *'with BFD'*)
6452 symcode='[ABCDGIRSTW]' ;;
6453 esac
6454
6455 # Transform an extracted symbol line into a proper C declaration.
6456 # Some systems (esp. on ia64) link data and code symbols differently,
6457 # so use this general approach.
6458 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6459
6460 # Transform an extracted symbol line into symbol name and symbol address
6461 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6462 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'"
6463
6464 # Handle CRLF in mingw tool chain
6465 opt_cr=
6466 case $build_os in
6467 mingw*)
6468 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6469 ;;
6470 esac
6471
6472 # Try without a prefix underscore, then with it.
6473 for ac_symprfx in "" "_"; do
6474
6475 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6476 symxfrm="\\1 $ac_symprfx\\2 \\2"
6477
6478 # Write the raw and C identifiers.
6479 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6480 # Fake it for dumpbin and say T for any non-static function
6481 # and D for any global variable.
6482 # Also find C++ and __fastcall symbols from MSVC++,
6483 # which start with @ or ?.
6484 lt_cv_sys_global_symbol_pipe="$AWK '"\
6485 " {last_section=section; section=\$ 3};"\
6486 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6487 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6488 " \$ 0!~/External *\|/{next};"\
6489 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6490 " {if(hide[section]) next};"\
6491 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6492 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6493 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6494 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6495 " ' prfx=^$ac_symprfx"
6496 else
6497 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6498 fi
6499 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6500
6501 # Check to see that the pipe works correctly.
6502 pipe_works=no
6503
6504 rm -f conftest*
6505 cat > conftest.$ac_ext <<_LT_EOF
6506 #ifdef __cplusplus
6507 extern "C" {
6508 #endif
6509 char nm_test_var;
6510 void nm_test_func(void);
6511 void nm_test_func(void){}
6512 #ifdef __cplusplus
6513 }
6514 #endif
6515 int main(){nm_test_var='a';nm_test_func();return(0);}
6516 _LT_EOF
6517
6518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6519 (eval $ac_compile) 2>&5
6520 ac_status=$?
6521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6522 test $ac_status = 0; }; then
6523 # Now try to grab the symbols.
6524 nlist=conftest.nm
6525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6526 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6527 ac_status=$?
6528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6529 test $ac_status = 0; } && test -s "$nlist"; then
6530 # Try sorting and uniquifying the output.
6531 if sort "$nlist" | uniq > "$nlist"T; then
6532 mv -f "$nlist"T "$nlist"
6533 else
6534 rm -f "$nlist"T
6535 fi
6536
6537 # Make sure that we snagged all the symbols we need.
6538 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6539 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6540 cat <<_LT_EOF > conftest.$ac_ext
6541 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6542 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6543 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6544 relocations are performed -- see ld's documentation on pseudo-relocs. */
6545 # define LT_DLSYM_CONST
6546 #elif defined(__osf__)
6547 /* This system does not cope well with relocations in const data. */
6548 # define LT_DLSYM_CONST
6549 #else
6550 # define LT_DLSYM_CONST const
6551 #endif
6552
6553 #ifdef __cplusplus
6554 extern "C" {
6555 #endif
6556
6557 _LT_EOF
6558 # Now generate the symbol file.
6559 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6560
6561 cat <<_LT_EOF >> conftest.$ac_ext
6562
6563 /* The mapping between symbol names and symbols. */
6564 LT_DLSYM_CONST struct {
6565 const char *name;
6566 void *address;
6567 }
6568 lt__PROGRAM__LTX_preloaded_symbols[] =
6569 {
6570 { "@PROGRAM@", (void *) 0 },
6571 _LT_EOF
6572 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6573 cat <<\_LT_EOF >> conftest.$ac_ext
6574 {0, (void *) 0}
6575 };
6576
6577 /* This works around a problem in FreeBSD linker */
6578 #ifdef FREEBSD_WORKAROUND
6579 static const void *lt_preloaded_setup() {
6580 return lt__PROGRAM__LTX_preloaded_symbols;
6581 }
6582 #endif
6583
6584 #ifdef __cplusplus
6585 }
6586 #endif
6587 _LT_EOF
6588 # Now try linking the two files.
6589 mv conftest.$ac_objext conftstm.$ac_objext
6590 lt_globsym_save_LIBS=$LIBS
6591 lt_globsym_save_CFLAGS=$CFLAGS
6592 LIBS="conftstm.$ac_objext"
6593 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6595 (eval $ac_link) 2>&5
6596 ac_status=$?
6597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6598 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6599 pipe_works=yes
6600 fi
6601 LIBS=$lt_globsym_save_LIBS
6602 CFLAGS=$lt_globsym_save_CFLAGS
6603 else
6604 echo "cannot find nm_test_func in $nlist" >&5
6605 fi
6606 else
6607 echo "cannot find nm_test_var in $nlist" >&5
6608 fi
6609 else
6610 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6611 fi
6612 else
6613 echo "$progname: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6615 fi
6616 rm -rf conftest* conftst*
6617
6618 # Do not use the global_symbol_pipe unless it works.
6619 if test "$pipe_works" = yes; then
6620 break
6621 else
6622 lt_cv_sys_global_symbol_pipe=
6623 fi
6624 done
6625
6626 fi
6627
6628 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6629 lt_cv_sys_global_symbol_to_cdecl=
6630 fi
6631 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6633 $as_echo "failed" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6636 $as_echo "ok" >&6; }
6637 fi
6638
6639 # Response file support.
6640 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6641 nm_file_list_spec='@'
6642 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6643 nm_file_list_spec='@'
6644 fi
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
6671
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6673 $as_echo_n "checking for sysroot... " >&6; }
6674
6675 # Check whether --with-sysroot was given.
6676 if test "${with_sysroot+set}" = set; then :
6677 withval=$with_sysroot;
6678 else
6679 with_sysroot=no
6680 fi
6681
6682
6683 lt_sysroot=
6684 case ${with_sysroot} in #(
6685 yes)
6686 if test "$GCC" = yes; then
6687 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6688 fi
6689 ;; #(
6690 /*)
6691 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6692 ;; #(
6693 no|'')
6694 ;; #(
6695 *)
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6697 $as_echo "${with_sysroot}" >&6; }
6698 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6699 ;;
6700 esac
6701
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6703 $as_echo "${lt_sysroot:-no}" >&6; }
6704
6705
6706
6707
6708
6709 # Check whether --enable-libtool-lock was given.
6710 if test "${enable_libtool_lock+set}" = set; then :
6711 enableval=$enable_libtool_lock;
6712 fi
6713
6714 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6715
6716 # Some flags need to be propagated to the compiler or linker for good
6717 # libtool support.
6718 case $host in
6719 ia64-*-hpux*)
6720 # Find out which ABI we are using.
6721 echo 'int i;' > conftest.$ac_ext
6722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6723 (eval $ac_compile) 2>&5
6724 ac_status=$?
6725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6726 test $ac_status = 0; }; then
6727 case `/usr/bin/file conftest.$ac_objext` in
6728 *ELF-32*)
6729 HPUX_IA64_MODE="32"
6730 ;;
6731 *ELF-64*)
6732 HPUX_IA64_MODE="64"
6733 ;;
6734 esac
6735 fi
6736 rm -rf conftest*
6737 ;;
6738 *-*-irix6*)
6739 # Find out which ABI we are using.
6740 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6742 (eval $ac_compile) 2>&5
6743 ac_status=$?
6744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6745 test $ac_status = 0; }; then
6746 if test "$lt_cv_prog_gnu_ld" = yes; then
6747 case `/usr/bin/file conftest.$ac_objext` in
6748 *32-bit*)
6749 LD="${LD-ld} -melf32bsmip"
6750 ;;
6751 *N32*)
6752 LD="${LD-ld} -melf32bmipn32"
6753 ;;
6754 *64-bit*)
6755 LD="${LD-ld} -melf64bmip"
6756 ;;
6757 esac
6758 else
6759 case `/usr/bin/file conftest.$ac_objext` in
6760 *32-bit*)
6761 LD="${LD-ld} -32"
6762 ;;
6763 *N32*)
6764 LD="${LD-ld} -n32"
6765 ;;
6766 *64-bit*)
6767 LD="${LD-ld} -64"
6768 ;;
6769 esac
6770 fi
6771 fi
6772 rm -rf conftest*
6773 ;;
6774
6775 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6776 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6777 # Find out which ABI we are using.
6778 echo 'int i;' > conftest.$ac_ext
6779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6780 (eval $ac_compile) 2>&5
6781 ac_status=$?
6782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6783 test $ac_status = 0; }; then
6784 case `/usr/bin/file conftest.o` in
6785 *32-bit*)
6786 case $host in
6787 x86_64-*kfreebsd*-gnu)
6788 LD="${LD-ld} -m elf_i386_fbsd"
6789 ;;
6790 x86_64-*linux*)
6791 LD="${LD-ld} -m elf_i386"
6792 ;;
6793 ppc64-*linux*|powerpc64-*linux*)
6794 LD="${LD-ld} -m elf32ppclinux"
6795 ;;
6796 s390x-*linux*)
6797 LD="${LD-ld} -m elf_s390"
6798 ;;
6799 sparc64-*linux*)
6800 LD="${LD-ld} -m elf32_sparc"
6801 ;;
6802 esac
6803 ;;
6804 *64-bit*)
6805 case $host in
6806 x86_64-*kfreebsd*-gnu)
6807 LD="${LD-ld} -m elf_x86_64_fbsd"
6808 ;;
6809 x86_64-*linux*)
6810 LD="${LD-ld} -m elf_x86_64"
6811 ;;
6812 ppc*-*linux*|powerpc*-*linux*)
6813 LD="${LD-ld} -m elf64ppc"
6814 ;;
6815 s390*-*linux*|s390*-*tpf*)
6816 LD="${LD-ld} -m elf64_s390"
6817 ;;
6818 sparc*-*linux*)
6819 LD="${LD-ld} -m elf64_sparc"
6820 ;;
6821 esac
6822 ;;
6823 esac
6824 fi
6825 rm -rf conftest*
6826 ;;
6827
6828 *-*-sco3.2v5*)
6829 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6830 SAVE_CFLAGS="$CFLAGS"
6831 CFLAGS="$CFLAGS -belf"
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6833 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6834 if ${lt_cv_cc_needs_belf+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 ac_ext=c
6838 ac_cpp='$CPP $CPPFLAGS'
6839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6842
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845
6846 int
6847 main ()
6848 {
6849
6850 ;
6851 return 0;
6852 }
6853 _ACEOF
6854 if ac_fn_c_try_link "$LINENO"; then :
6855 lt_cv_cc_needs_belf=yes
6856 else
6857 lt_cv_cc_needs_belf=no
6858 fi
6859 rm -f core conftest.err conftest.$ac_objext \
6860 conftest$ac_exeext conftest.$ac_ext
6861 ac_ext=c
6862 ac_cpp='$CPP $CPPFLAGS'
6863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6866
6867 fi
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6869 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6870 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6871 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6872 CFLAGS="$SAVE_CFLAGS"
6873 fi
6874 ;;
6875 *-*solaris*)
6876 # Find out which ABI we are using.
6877 echo 'int i;' > conftest.$ac_ext
6878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6879 (eval $ac_compile) 2>&5
6880 ac_status=$?
6881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6882 test $ac_status = 0; }; then
6883 case `/usr/bin/file conftest.o` in
6884 *64-bit*)
6885 case $lt_cv_prog_gnu_ld in
6886 yes*)
6887 case $host in
6888 i?86-*-solaris*)
6889 LD="${LD-ld} -m elf_x86_64"
6890 ;;
6891 sparc*-*-solaris*)
6892 LD="${LD-ld} -m elf64_sparc"
6893 ;;
6894 esac
6895 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6896 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6897 LD="${LD-ld}_sol2"
6898 fi
6899 ;;
6900 *)
6901 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6902 LD="${LD-ld} -64"
6903 fi
6904 ;;
6905 esac
6906 ;;
6907 esac
6908 fi
6909 rm -rf conftest*
6910 ;;
6911 esac
6912
6913 need_locks="$enable_libtool_lock"
6914
6915 if test -n "$ac_tool_prefix"; then
6916 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6917 set dummy ${ac_tool_prefix}mt; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 if test -n "$MANIFEST_TOOL"; then
6924 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6936 fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6940
6941 fi
6942 fi
6943 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6944 if test -n "$MANIFEST_TOOL"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6946 $as_echo "$MANIFEST_TOOL" >&6; }
6947 else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6950 fi
6951
6952
6953 fi
6954 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6955 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6956 # Extract the first word of "mt", so it can be a program name with args.
6957 set dummy mt; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 if test -n "$ac_ct_MANIFEST_TOOL"; then
6964 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977 done
6978 done
6979 IFS=$as_save_IFS
6980
6981 fi
6982 fi
6983 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6984 if test -n "$ac_ct_MANIFEST_TOOL"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6986 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6987 else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6990 fi
6991
6992 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6993 MANIFEST_TOOL=":"
6994 else
6995 case $cross_compiling:$ac_tool_warned in
6996 yes:)
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6999 ac_tool_warned=yes ;;
7000 esac
7001 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7002 fi
7003 else
7004 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7005 fi
7006
7007 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7009 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7010 if ${lt_cv_path_mainfest_tool+:} false; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 lt_cv_path_mainfest_tool=no
7014 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7015 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7016 cat conftest.err >&5
7017 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7018 lt_cv_path_mainfest_tool=yes
7019 fi
7020 rm -f conftest*
7021 fi
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7023 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7024 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7025 MANIFEST_TOOL=:
7026 fi
7027
7028
7029
7030
7031
7032
7033 case $host_os in
7034 rhapsody* | darwin*)
7035 if test -n "$ac_tool_prefix"; then
7036 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7037 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 if test -n "$DSYMUTIL"; then
7044 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061 fi
7062 fi
7063 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7064 if test -n "$DSYMUTIL"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7066 $as_echo "$DSYMUTIL" >&6; }
7067 else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7070 fi
7071
7072
7073 fi
7074 if test -z "$ac_cv_prog_DSYMUTIL"; then
7075 ac_ct_DSYMUTIL=$DSYMUTIL
7076 # Extract the first word of "dsymutil", so it can be a program name with args.
7077 set dummy dsymutil; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 if test -n "$ac_ct_DSYMUTIL"; then
7084 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7093 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101 fi
7102 fi
7103 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7104 if test -n "$ac_ct_DSYMUTIL"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7106 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112 if test "x$ac_ct_DSYMUTIL" = x; then
7113 DSYMUTIL=":"
7114 else
7115 case $cross_compiling:$ac_tool_warned in
7116 yes:)
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7119 ac_tool_warned=yes ;;
7120 esac
7121 DSYMUTIL=$ac_ct_DSYMUTIL
7122 fi
7123 else
7124 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7125 fi
7126
7127 if test -n "$ac_tool_prefix"; then
7128 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7129 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if ${ac_cv_prog_NMEDIT+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 if test -n "$NMEDIT"; then
7136 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149 done
7150 done
7151 IFS=$as_save_IFS
7152
7153 fi
7154 fi
7155 NMEDIT=$ac_cv_prog_NMEDIT
7156 if test -n "$NMEDIT"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7158 $as_echo "$NMEDIT" >&6; }
7159 else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7162 fi
7163
7164
7165 fi
7166 if test -z "$ac_cv_prog_NMEDIT"; then
7167 ac_ct_NMEDIT=$NMEDIT
7168 # Extract the first word of "nmedit", so it can be a program name with args.
7169 set dummy nmedit; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 if test -n "$ac_ct_NMEDIT"; then
7176 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189 done
7190 done
7191 IFS=$as_save_IFS
7192
7193 fi
7194 fi
7195 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7196 if test -n "$ac_ct_NMEDIT"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7198 $as_echo "$ac_ct_NMEDIT" >&6; }
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7202 fi
7203
7204 if test "x$ac_ct_NMEDIT" = x; then
7205 NMEDIT=":"
7206 else
7207 case $cross_compiling:$ac_tool_warned in
7208 yes:)
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7211 ac_tool_warned=yes ;;
7212 esac
7213 NMEDIT=$ac_ct_NMEDIT
7214 fi
7215 else
7216 NMEDIT="$ac_cv_prog_NMEDIT"
7217 fi
7218
7219 if test -n "$ac_tool_prefix"; then
7220 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7221 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_LIPO+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 if test -n "$LIPO"; then
7228 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7229 else
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7237 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7240 fi
7241 done
7242 done
7243 IFS=$as_save_IFS
7244
7245 fi
7246 fi
7247 LIPO=$ac_cv_prog_LIPO
7248 if test -n "$LIPO"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7250 $as_echo "$LIPO" >&6; }
7251 else
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7254 fi
7255
7256
7257 fi
7258 if test -z "$ac_cv_prog_LIPO"; then
7259 ac_ct_LIPO=$LIPO
7260 # Extract the first word of "lipo", so it can be a program name with args.
7261 set dummy lipo; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 if test -n "$ac_ct_LIPO"; then
7268 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277 ac_cv_prog_ac_ct_LIPO="lipo"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281 done
7282 done
7283 IFS=$as_save_IFS
7284
7285 fi
7286 fi
7287 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7288 if test -n "$ac_ct_LIPO"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7290 $as_echo "$ac_ct_LIPO" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295
7296 if test "x$ac_ct_LIPO" = x; then
7297 LIPO=":"
7298 else
7299 case $cross_compiling:$ac_tool_warned in
7300 yes:)
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7303 ac_tool_warned=yes ;;
7304 esac
7305 LIPO=$ac_ct_LIPO
7306 fi
7307 else
7308 LIPO="$ac_cv_prog_LIPO"
7309 fi
7310
7311 if test -n "$ac_tool_prefix"; then
7312 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7313 set dummy ${ac_tool_prefix}otool; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_OTOOL+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 if test -n "$OTOOL"; then
7320 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7329 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7332 fi
7333 done
7334 done
7335 IFS=$as_save_IFS
7336
7337 fi
7338 fi
7339 OTOOL=$ac_cv_prog_OTOOL
7340 if test -n "$OTOOL"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7342 $as_echo "$OTOOL" >&6; }
7343 else
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346 fi
7347
7348
7349 fi
7350 if test -z "$ac_cv_prog_OTOOL"; then
7351 ac_ct_OTOOL=$OTOOL
7352 # Extract the first word of "otool", so it can be a program name with args.
7353 set dummy otool; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 if test -n "$ac_ct_OTOOL"; then
7360 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369 ac_cv_prog_ac_ct_OTOOL="otool"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7372 fi
7373 done
7374 done
7375 IFS=$as_save_IFS
7376
7377 fi
7378 fi
7379 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7380 if test -n "$ac_ct_OTOOL"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7382 $as_echo "$ac_ct_OTOOL" >&6; }
7383 else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 fi
7387
7388 if test "x$ac_ct_OTOOL" = x; then
7389 OTOOL=":"
7390 else
7391 case $cross_compiling:$ac_tool_warned in
7392 yes:)
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7395 ac_tool_warned=yes ;;
7396 esac
7397 OTOOL=$ac_ct_OTOOL
7398 fi
7399 else
7400 OTOOL="$ac_cv_prog_OTOOL"
7401 fi
7402
7403 if test -n "$ac_tool_prefix"; then
7404 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7405 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_OTOOL64+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$OTOOL64"; then
7412 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 OTOOL64=$ac_cv_prog_OTOOL64
7432 if test -n "$OTOOL64"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7434 $as_echo "$OTOOL64" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 fi
7439
7440
7441 fi
7442 if test -z "$ac_cv_prog_OTOOL64"; then
7443 ac_ct_OTOOL64=$OTOOL64
7444 # Extract the first word of "otool64", so it can be a program name with args.
7445 set dummy otool64; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 if test -n "$ac_ct_OTOOL64"; then
7452 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461 ac_cv_prog_ac_ct_OTOOL64="otool64"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465 done
7466 done
7467 IFS=$as_save_IFS
7468
7469 fi
7470 fi
7471 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7472 if test -n "$ac_ct_OTOOL64"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7474 $as_echo "$ac_ct_OTOOL64" >&6; }
7475 else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7478 fi
7479
7480 if test "x$ac_ct_OTOOL64" = x; then
7481 OTOOL64=":"
7482 else
7483 case $cross_compiling:$ac_tool_warned in
7484 yes:)
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487 ac_tool_warned=yes ;;
7488 esac
7489 OTOOL64=$ac_ct_OTOOL64
7490 fi
7491 else
7492 OTOOL64="$ac_cv_prog_OTOOL64"
7493 fi
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7522 $as_echo_n "checking for -single_module linker flag... " >&6; }
7523 if ${lt_cv_apple_cc_single_mod+:} false; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 lt_cv_apple_cc_single_mod=no
7527 if test -z "${LT_MULTI_MODULE}"; then
7528 # By default we will add the -single_module flag. You can override
7529 # by either setting the environment variable LT_MULTI_MODULE
7530 # non-empty at configure time, or by adding -multi_module to the
7531 # link flags.
7532 rm -rf libconftest.dylib*
7533 echo "int foo(void){return 1;}" > conftest.c
7534 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7535 -dynamiclib -Wl,-single_module conftest.c" >&5
7536 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7537 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7538 _lt_result=$?
7539 # If there is a non-empty error log, and "single_module"
7540 # appears in it, assume the flag caused a linker warning
7541 if test -s conftest.err && $GREP single_module conftest.err; then
7542 cat conftest.err >&5
7543 # Otherwise, if the output was created with a 0 exit code from
7544 # the compiler, it worked.
7545 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7546 lt_cv_apple_cc_single_mod=yes
7547 else
7548 cat conftest.err >&5
7549 fi
7550 rm -rf libconftest.dylib*
7551 rm -f conftest.*
7552 fi
7553 fi
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7555 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7556
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7558 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7559 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 lt_cv_ld_exported_symbols_list=no
7563 save_LDFLAGS=$LDFLAGS
7564 echo "_main" > conftest.sym
7565 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7568
7569 int
7570 main ()
7571 {
7572
7573 ;
7574 return 0;
7575 }
7576 _ACEOF
7577 if ac_fn_c_try_link "$LINENO"; then :
7578 lt_cv_ld_exported_symbols_list=yes
7579 else
7580 lt_cv_ld_exported_symbols_list=no
7581 fi
7582 rm -f core conftest.err conftest.$ac_objext \
7583 conftest$ac_exeext conftest.$ac_ext
7584 LDFLAGS="$save_LDFLAGS"
7585
7586 fi
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7588 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7589
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7591 $as_echo_n "checking for -force_load linker flag... " >&6; }
7592 if ${lt_cv_ld_force_load+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 lt_cv_ld_force_load=no
7596 cat > conftest.c << _LT_EOF
7597 int forced_loaded() { return 2;}
7598 _LT_EOF
7599 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7600 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7601 echo "$AR cru libconftest.a conftest.o" >&5
7602 $AR cru libconftest.a conftest.o 2>&5
7603 echo "$RANLIB libconftest.a" >&5
7604 $RANLIB libconftest.a 2>&5
7605 cat > conftest.c << _LT_EOF
7606 int main() { return 0;}
7607 _LT_EOF
7608 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7609 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7610 _lt_result=$?
7611 if test -s conftest.err && $GREP force_load conftest.err; then
7612 cat conftest.err >&5
7613 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7614 lt_cv_ld_force_load=yes
7615 else
7616 cat conftest.err >&5
7617 fi
7618 rm -f conftest.err libconftest.a conftest conftest.c
7619 rm -rf conftest.dSYM
7620
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7623 $as_echo "$lt_cv_ld_force_load" >&6; }
7624 case $host_os in
7625 rhapsody* | darwin1.[012])
7626 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7627 darwin1.*)
7628 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7629 darwin*) # darwin 5.x on
7630 # if running on 10.5 or later, the deployment target defaults
7631 # to the OS version, if on x86, and 10.4, the deployment
7632 # target defaults to 10.4. Don't you love it?
7633 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7634 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7635 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7636 10.[012]*)
7637 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7638 10.*)
7639 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7640 esac
7641 ;;
7642 esac
7643 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7644 _lt_dar_single_mod='$single_module'
7645 fi
7646 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7647 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7648 else
7649 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7650 fi
7651 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7652 _lt_dsymutil='~$DSYMUTIL $lib || :'
7653 else
7654 _lt_dsymutil=
7655 fi
7656 ;;
7657 esac
7658
7659 ac_ext=c
7660 ac_cpp='$CPP $CPPFLAGS'
7661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7665 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7666 # On Suns, sometimes $CPP names a directory.
7667 if test -n "$CPP" && test -d "$CPP"; then
7668 CPP=
7669 fi
7670 if test -z "$CPP"; then
7671 if ${ac_cv_prog_CPP+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 # Double quotes because CPP needs to be expanded
7675 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7676 do
7677 ac_preproc_ok=false
7678 for ac_c_preproc_warn_flag in '' yes
7679 do
7680 # Use a header file that comes with gcc, so configuring glibc
7681 # with a fresh cross-compiler works.
7682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7683 # <limits.h> exists even on freestanding compilers.
7684 # On the NeXT, cc -E runs the code through the compiler's parser,
7685 # not just through cpp. "Syntax error" is here to catch this case.
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688 #ifdef __STDC__
7689 # include <limits.h>
7690 #else
7691 # include <assert.h>
7692 #endif
7693 Syntax error
7694 _ACEOF
7695 if ac_fn_c_try_cpp "$LINENO"; then :
7696
7697 else
7698 # Broken: fails on valid input.
7699 continue
7700 fi
7701 rm -f conftest.err conftest.i conftest.$ac_ext
7702
7703 # OK, works on sane cases. Now check whether nonexistent headers
7704 # can be detected and how.
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7707 #include <ac_nonexistent.h>
7708 _ACEOF
7709 if ac_fn_c_try_cpp "$LINENO"; then :
7710 # Broken: success on invalid input.
7711 continue
7712 else
7713 # Passes both tests.
7714 ac_preproc_ok=:
7715 break
7716 fi
7717 rm -f conftest.err conftest.i conftest.$ac_ext
7718
7719 done
7720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7721 rm -f conftest.i conftest.err conftest.$ac_ext
7722 if $ac_preproc_ok; then :
7723 break
7724 fi
7725
7726 done
7727 ac_cv_prog_CPP=$CPP
7728
7729 fi
7730 CPP=$ac_cv_prog_CPP
7731 else
7732 ac_cv_prog_CPP=$CPP
7733 fi
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7735 $as_echo "$CPP" >&6; }
7736 ac_preproc_ok=false
7737 for ac_c_preproc_warn_flag in '' yes
7738 do
7739 # Use a header file that comes with gcc, so configuring glibc
7740 # with a fresh cross-compiler works.
7741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7742 # <limits.h> exists even on freestanding compilers.
7743 # On the NeXT, cc -E runs the code through the compiler's parser,
7744 # not just through cpp. "Syntax error" is here to catch this case.
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7747 #ifdef __STDC__
7748 # include <limits.h>
7749 #else
7750 # include <assert.h>
7751 #endif
7752 Syntax error
7753 _ACEOF
7754 if ac_fn_c_try_cpp "$LINENO"; then :
7755
7756 else
7757 # Broken: fails on valid input.
7758 continue
7759 fi
7760 rm -f conftest.err conftest.i conftest.$ac_ext
7761
7762 # OK, works on sane cases. Now check whether nonexistent headers
7763 # can be detected and how.
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7766 #include <ac_nonexistent.h>
7767 _ACEOF
7768 if ac_fn_c_try_cpp "$LINENO"; then :
7769 # Broken: success on invalid input.
7770 continue
7771 else
7772 # Passes both tests.
7773 ac_preproc_ok=:
7774 break
7775 fi
7776 rm -f conftest.err conftest.i conftest.$ac_ext
7777
7778 done
7779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7780 rm -f conftest.i conftest.err conftest.$ac_ext
7781 if $ac_preproc_ok; then :
7782
7783 else
7784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7786 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7787 See \`config.log' for more details" "$LINENO" 5; }
7788 fi
7789
7790 ac_ext=c
7791 ac_cpp='$CPP $CPPFLAGS'
7792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7795
7796
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7798 $as_echo_n "checking for ANSI C header files... " >&6; }
7799 if ${ac_cv_header_stdc+:} false; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7804 #include <stdlib.h>
7805 #include <stdarg.h>
7806 #include <string.h>
7807 #include <float.h>
7808
7809 int
7810 main ()
7811 {
7812
7813 ;
7814 return 0;
7815 }
7816 _ACEOF
7817 if ac_fn_c_try_compile "$LINENO"; then :
7818 ac_cv_header_stdc=yes
7819 else
7820 ac_cv_header_stdc=no
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823
7824 if test $ac_cv_header_stdc = yes; then
7825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7828 #include <string.h>
7829
7830 _ACEOF
7831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7832 $EGREP "memchr" >/dev/null 2>&1; then :
7833
7834 else
7835 ac_cv_header_stdc=no
7836 fi
7837 rm -f conftest*
7838
7839 fi
7840
7841 if test $ac_cv_header_stdc = yes; then
7842 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 #include <stdlib.h>
7846
7847 _ACEOF
7848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7849 $EGREP "free" >/dev/null 2>&1; then :
7850
7851 else
7852 ac_cv_header_stdc=no
7853 fi
7854 rm -f conftest*
7855
7856 fi
7857
7858 if test $ac_cv_header_stdc = yes; then
7859 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7860 if test "$cross_compiling" = yes; then :
7861 :
7862 else
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7865 #include <ctype.h>
7866 #include <stdlib.h>
7867 #if ((' ' & 0x0FF) == 0x020)
7868 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7869 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7870 #else
7871 # define ISLOWER(c) \
7872 (('a' <= (c) && (c) <= 'i') \
7873 || ('j' <= (c) && (c) <= 'r') \
7874 || ('s' <= (c) && (c) <= 'z'))
7875 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7876 #endif
7877
7878 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7879 int
7880 main ()
7881 {
7882 int i;
7883 for (i = 0; i < 256; i++)
7884 if (XOR (islower (i), ISLOWER (i))
7885 || toupper (i) != TOUPPER (i))
7886 return 2;
7887 return 0;
7888 }
7889 _ACEOF
7890 if ac_fn_c_try_run "$LINENO"; then :
7891
7892 else
7893 ac_cv_header_stdc=no
7894 fi
7895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7896 conftest.$ac_objext conftest.beam conftest.$ac_ext
7897 fi
7898
7899 fi
7900 fi
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7902 $as_echo "$ac_cv_header_stdc" >&6; }
7903 if test $ac_cv_header_stdc = yes; then
7904
7905 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7906
7907 fi
7908
7909 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7910 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7911 inttypes.h stdint.h unistd.h
7912 do :
7913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7914 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7915 "
7916 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7917 cat >>confdefs.h <<_ACEOF
7918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7919 _ACEOF
7920
7921 fi
7922
7923 done
7924
7925
7926 for ac_header in dlfcn.h
7927 do :
7928 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7929 "
7930 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7931 cat >>confdefs.h <<_ACEOF
7932 #define HAVE_DLFCN_H 1
7933 _ACEOF
7934
7935 fi
7936
7937 done
7938
7939
7940
7941
7942
7943 # Set options
7944 enable_dlopen=yes
7945 # Check whether --enable-static was given.
7946 if test "${enable_static+set}" = set; then :
7947 enableval=$enable_static; p=${PACKAGE-default}
7948 case $enableval in
7949 yes) enable_static=yes ;;
7950 no) enable_static=no ;;
7951 *)
7952 enable_static=no
7953 # Look at the argument we got. We use all the common list separators.
7954 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7955 for pkg in $enableval; do
7956 IFS="$lt_save_ifs"
7957 if test "X$pkg" = "X$p"; then
7958 enable_static=yes
7959 fi
7960 done
7961 IFS="$lt_save_ifs"
7962 ;;
7963 esac
7964 else
7965 enable_static=no
7966 fi
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978 enable_win32_dll=no
7979
7980
7981 # Check whether --enable-shared was given.
7982 if test "${enable_shared+set}" = set; then :
7983 enableval=$enable_shared; p=${PACKAGE-default}
7984 case $enableval in
7985 yes) enable_shared=yes ;;
7986 no) enable_shared=no ;;
7987 *)
7988 enable_shared=no
7989 # Look at the argument we got. We use all the common list separators.
7990 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7991 for pkg in $enableval; do
7992 IFS="$lt_save_ifs"
7993 if test "X$pkg" = "X$p"; then
7994 enable_shared=yes
7995 fi
7996 done
7997 IFS="$lt_save_ifs"
7998 ;;
7999 esac
8000 else
8001 enable_shared=yes
8002 fi
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014 # Check whether --with-pic was given.
8015 if test "${with_pic+set}" = set; then :
8016 withval=$with_pic; lt_p=${PACKAGE-default}
8017 case $withval in
8018 yes|no) pic_mode=$withval ;;
8019 *)
8020 pic_mode=default
8021 # Look at the argument we got. We use all the common list separators.
8022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8023 for lt_pkg in $withval; do
8024 IFS="$lt_save_ifs"
8025 if test "X$lt_pkg" = "X$lt_p"; then
8026 pic_mode=yes
8027 fi
8028 done
8029 IFS="$lt_save_ifs"
8030 ;;
8031 esac
8032 else
8033 pic_mode=default
8034 fi
8035
8036
8037 test -z "$pic_mode" && pic_mode=default
8038
8039
8040
8041
8042
8043
8044
8045 # Check whether --enable-fast-install was given.
8046 if test "${enable_fast_install+set}" = set; then :
8047 enableval=$enable_fast_install; p=${PACKAGE-default}
8048 case $enableval in
8049 yes) enable_fast_install=yes ;;
8050 no) enable_fast_install=no ;;
8051 *)
8052 enable_fast_install=no
8053 # Look at the argument we got. We use all the common list separators.
8054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8055 for pkg in $enableval; do
8056 IFS="$lt_save_ifs"
8057 if test "X$pkg" = "X$p"; then
8058 enable_fast_install=yes
8059 fi
8060 done
8061 IFS="$lt_save_ifs"
8062 ;;
8063 esac
8064 else
8065 enable_fast_install=yes
8066 fi
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078 # This can be used to rebuild libtool when needed
8079 LIBTOOL_DEPS="$ltmain"
8080
8081 # Always use our own libtool.
8082 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113 test -z "$LN_S" && LN_S="ln -s"
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128 if test -n "${ZSH_VERSION+set}" ; then
8129 setopt NO_GLOB_SUBST
8130 fi
8131
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8133 $as_echo_n "checking for objdir... " >&6; }
8134 if ${lt_cv_objdir+:} false; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 rm -f .libs 2>/dev/null
8138 mkdir .libs 2>/dev/null
8139 if test -d .libs; then
8140 lt_cv_objdir=.libs
8141 else
8142 # MS-DOS does not allow filenames that begin with a dot.
8143 lt_cv_objdir=_libs
8144 fi
8145 rmdir .libs 2>/dev/null
8146 fi
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8148 $as_echo "$lt_cv_objdir" >&6; }
8149 objdir=$lt_cv_objdir
8150
8151
8152
8153
8154
8155 cat >>confdefs.h <<_ACEOF
8156 #define LT_OBJDIR "$lt_cv_objdir/"
8157 _ACEOF
8158
8159
8160
8161
8162 case $host_os in
8163 aix3*)
8164 # AIX sometimes has problems with the GCC collect2 program. For some
8165 # reason, if we set the COLLECT_NAMES environment variable, the problems
8166 # vanish in a puff of smoke.
8167 if test "X${COLLECT_NAMES+set}" != Xset; then
8168 COLLECT_NAMES=
8169 export COLLECT_NAMES
8170 fi
8171 ;;
8172 esac
8173
8174 # Global variables:
8175 ofile=libtool
8176 can_build_shared=yes
8177
8178 # All known linkers require a `.a' archive for static linking (except MSVC,
8179 # which needs '.lib').
8180 libext=a
8181
8182 with_gnu_ld="$lt_cv_prog_gnu_ld"
8183
8184 old_CC="$CC"
8185 old_CFLAGS="$CFLAGS"
8186
8187 # Set sane defaults for various variables
8188 test -z "$CC" && CC=cc
8189 test -z "$LTCC" && LTCC=$CC
8190 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8191 test -z "$LD" && LD=ld
8192 test -z "$ac_objext" && ac_objext=o
8193
8194 for cc_temp in $compiler""; do
8195 case $cc_temp in
8196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8198 \-*) ;;
8199 *) break;;
8200 esac
8201 done
8202 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8203
8204
8205 # Only perform the check for file, if the check method requires it
8206 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8207 case $deplibs_check_method in
8208 file_magic*)
8209 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8211 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8212 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 case $MAGIC_CMD in
8216 [\\/*] | ?:[\\/]*)
8217 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8218 ;;
8219 *)
8220 lt_save_MAGIC_CMD="$MAGIC_CMD"
8221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8222 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8223 for ac_dir in $ac_dummy; do
8224 IFS="$lt_save_ifs"
8225 test -z "$ac_dir" && ac_dir=.
8226 if test -f $ac_dir/${ac_tool_prefix}file; then
8227 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8228 if test -n "$file_magic_test_file"; then
8229 case $deplibs_check_method in
8230 "file_magic "*)
8231 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8233 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8234 $EGREP "$file_magic_regex" > /dev/null; then
8235 :
8236 else
8237 cat <<_LT_EOF 1>&2
8238
8239 *** Warning: the command libtool uses to detect shared libraries,
8240 *** $file_magic_cmd, produces output that libtool cannot recognize.
8241 *** The result is that libtool may fail to recognize shared libraries
8242 *** as such. This will affect the creation of libtool libraries that
8243 *** depend on shared libraries, but programs linked with such libtool
8244 *** libraries will work regardless of this problem. Nevertheless, you
8245 *** may want to report the problem to your system manager and/or to
8246 *** bug-libtool@gnu.org
8247
8248 _LT_EOF
8249 fi ;;
8250 esac
8251 fi
8252 break
8253 fi
8254 done
8255 IFS="$lt_save_ifs"
8256 MAGIC_CMD="$lt_save_MAGIC_CMD"
8257 ;;
8258 esac
8259 fi
8260
8261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8262 if test -n "$MAGIC_CMD"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8264 $as_echo "$MAGIC_CMD" >&6; }
8265 else
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 $as_echo "no" >&6; }
8268 fi
8269
8270
8271
8272
8273
8274 if test -z "$lt_cv_path_MAGIC_CMD"; then
8275 if test -n "$ac_tool_prefix"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8277 $as_echo_n "checking for file... " >&6; }
8278 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 case $MAGIC_CMD in
8282 [\\/*] | ?:[\\/]*)
8283 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8284 ;;
8285 *)
8286 lt_save_MAGIC_CMD="$MAGIC_CMD"
8287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8288 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8289 for ac_dir in $ac_dummy; do
8290 IFS="$lt_save_ifs"
8291 test -z "$ac_dir" && ac_dir=.
8292 if test -f $ac_dir/file; then
8293 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8294 if test -n "$file_magic_test_file"; then
8295 case $deplibs_check_method in
8296 "file_magic "*)
8297 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8298 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8299 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8300 $EGREP "$file_magic_regex" > /dev/null; then
8301 :
8302 else
8303 cat <<_LT_EOF 1>&2
8304
8305 *** Warning: the command libtool uses to detect shared libraries,
8306 *** $file_magic_cmd, produces output that libtool cannot recognize.
8307 *** The result is that libtool may fail to recognize shared libraries
8308 *** as such. This will affect the creation of libtool libraries that
8309 *** depend on shared libraries, but programs linked with such libtool
8310 *** libraries will work regardless of this problem. Nevertheless, you
8311 *** may want to report the problem to your system manager and/or to
8312 *** bug-libtool@gnu.org
8313
8314 _LT_EOF
8315 fi ;;
8316 esac
8317 fi
8318 break
8319 fi
8320 done
8321 IFS="$lt_save_ifs"
8322 MAGIC_CMD="$lt_save_MAGIC_CMD"
8323 ;;
8324 esac
8325 fi
8326
8327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8328 if test -n "$MAGIC_CMD"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8330 $as_echo "$MAGIC_CMD" >&6; }
8331 else
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8334 fi
8335
8336
8337 else
8338 MAGIC_CMD=:
8339 fi
8340 fi
8341
8342 fi
8343 ;;
8344 esac
8345
8346 # Use C for the default configuration in the libtool script
8347
8348 lt_save_CC="$CC"
8349 ac_ext=c
8350 ac_cpp='$CPP $CPPFLAGS'
8351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8354
8355
8356 # Source file extension for C test sources.
8357 ac_ext=c
8358
8359 # Object file extension for compiled C test sources.
8360 objext=o
8361 objext=$objext
8362
8363 # Code to be used in simple compile tests
8364 lt_simple_compile_test_code="int some_variable = 0;"
8365
8366 # Code to be used in simple link tests
8367 lt_simple_link_test_code='int main(){return(0);}'
8368
8369
8370
8371
8372
8373
8374
8375 # If no C compiler was specified, use CC.
8376 LTCC=${LTCC-"$CC"}
8377
8378 # If no C compiler flags were specified, use CFLAGS.
8379 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8380
8381 # Allow CC to be a program name with arguments.
8382 compiler=$CC
8383
8384 # Save the default compiler, since it gets overwritten when the other
8385 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8386 compiler_DEFAULT=$CC
8387
8388 # save warnings/boilerplate of simple test code
8389 ac_outfile=conftest.$ac_objext
8390 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8392 _lt_compiler_boilerplate=`cat conftest.err`
8393 $RM conftest*
8394
8395 ac_outfile=conftest.$ac_objext
8396 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8398 _lt_linker_boilerplate=`cat conftest.err`
8399 $RM -r conftest*
8400
8401
8402 if test -n "$compiler"; then
8403
8404 lt_prog_compiler_no_builtin_flag=
8405
8406 if test "$GCC" = yes; then
8407 case $cc_basename in
8408 nvcc*)
8409 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8410 *)
8411 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8412 esac
8413
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8415 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8416 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 lt_cv_prog_compiler_rtti_exceptions=no
8420 ac_outfile=conftest.$ac_objext
8421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8422 lt_compiler_flag="-fno-rtti -fno-exceptions"
8423 # Insert the option either (1) after the last *FLAGS variable, or
8424 # (2) before a word containing "conftest.", or (3) at the end.
8425 # Note that $ac_compile itself does not contain backslashes and begins
8426 # with a dollar sign (not a hyphen), so the echo should work correctly.
8427 # The option is referenced via a variable to avoid confusing sed.
8428 lt_compile=`echo "$ac_compile" | $SED \
8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431 -e 's:$: $lt_compiler_flag:'`
8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433 (eval "$lt_compile" 2>conftest.err)
8434 ac_status=$?
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 if (exit $ac_status) && test -s "$ac_outfile"; then
8438 # The compiler can only warn and ignore the option if not recognized
8439 # So say no if there are warnings other than the usual output.
8440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8443 lt_cv_prog_compiler_rtti_exceptions=yes
8444 fi
8445 fi
8446 $RM conftest*
8447
8448 fi
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8450 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8451
8452 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8453 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8454 else
8455 :
8456 fi
8457
8458 fi
8459
8460
8461
8462
8463
8464
8465 lt_prog_compiler_wl=
8466 lt_prog_compiler_pic=
8467 lt_prog_compiler_static=
8468
8469
8470 if test "$GCC" = yes; then
8471 lt_prog_compiler_wl='-Wl,'
8472 lt_prog_compiler_static='-static'
8473
8474 case $host_os in
8475 aix*)
8476 # All AIX code is PIC.
8477 if test "$host_cpu" = ia64; then
8478 # AIX 5 now supports IA64 processor
8479 lt_prog_compiler_static='-Bstatic'
8480 fi
8481 ;;
8482
8483 amigaos*)
8484 case $host_cpu in
8485 powerpc)
8486 # see comment about AmigaOS4 .so support
8487 lt_prog_compiler_pic='-fPIC'
8488 ;;
8489 m68k)
8490 # FIXME: we need at least 68020 code to build shared libraries, but
8491 # adding the `-m68020' flag to GCC prevents building anything better,
8492 # like `-m68040'.
8493 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8494 ;;
8495 esac
8496 ;;
8497
8498 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8499 # PIC is the default for these OSes.
8500 ;;
8501
8502 mingw* | cygwin* | pw32* | os2* | cegcc*)
8503 # This hack is so that the source file can tell whether it is being
8504 # built for inclusion in a dll (and should export symbols for example).
8505 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8506 # (--disable-auto-import) libraries
8507 lt_prog_compiler_pic='-DDLL_EXPORT'
8508 ;;
8509
8510 darwin* | rhapsody*)
8511 # PIC is the default on this platform
8512 # Common symbols not allowed in MH_DYLIB files
8513 lt_prog_compiler_pic='-fno-common'
8514 ;;
8515
8516 haiku*)
8517 # PIC is the default for Haiku.
8518 # The "-static" flag exists, but is broken.
8519 lt_prog_compiler_static=
8520 ;;
8521
8522 hpux*)
8523 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8524 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8525 # sets the default TLS model and affects inlining.
8526 case $host_cpu in
8527 hppa*64*)
8528 # +Z the default
8529 ;;
8530 *)
8531 lt_prog_compiler_pic='-fPIC'
8532 ;;
8533 esac
8534 ;;
8535
8536 interix[3-9]*)
8537 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8538 # Instead, we relocate shared libraries at runtime.
8539 ;;
8540
8541 msdosdjgpp*)
8542 # Just because we use GCC doesn't mean we suddenly get shared libraries
8543 # on systems that don't support them.
8544 lt_prog_compiler_can_build_shared=no
8545 enable_shared=no
8546 ;;
8547
8548 *nto* | *qnx*)
8549 # QNX uses GNU C++, but need to define -shared option too, otherwise
8550 # it will coredump.
8551 lt_prog_compiler_pic='-fPIC -shared'
8552 ;;
8553
8554 sysv4*MP*)
8555 if test -d /usr/nec; then
8556 lt_prog_compiler_pic=-Kconform_pic
8557 fi
8558 ;;
8559
8560 *)
8561 lt_prog_compiler_pic='-fPIC'
8562 ;;
8563 esac
8564
8565 case $cc_basename in
8566 nvcc*) # Cuda Compiler Driver 2.2
8567 lt_prog_compiler_wl='-Xlinker '
8568 if test -n "$lt_prog_compiler_pic"; then
8569 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8570 fi
8571 ;;
8572 esac
8573 else
8574 # PORTME Check for flag to pass linker flags through the system compiler.
8575 case $host_os in
8576 aix*)
8577 lt_prog_compiler_wl='-Wl,'
8578 if test "$host_cpu" = ia64; then
8579 # AIX 5 now supports IA64 processor
8580 lt_prog_compiler_static='-Bstatic'
8581 else
8582 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8583 fi
8584 ;;
8585
8586 mingw* | cygwin* | pw32* | os2* | cegcc*)
8587 # This hack is so that the source file can tell whether it is being
8588 # built for inclusion in a dll (and should export symbols for example).
8589 lt_prog_compiler_pic='-DDLL_EXPORT'
8590 ;;
8591
8592 hpux9* | hpux10* | hpux11*)
8593 lt_prog_compiler_wl='-Wl,'
8594 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8595 # not for PA HP-UX.
8596 case $host_cpu in
8597 hppa*64*|ia64*)
8598 # +Z the default
8599 ;;
8600 *)
8601 lt_prog_compiler_pic='+Z'
8602 ;;
8603 esac
8604 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8605 lt_prog_compiler_static='${wl}-a ${wl}archive'
8606 ;;
8607
8608 irix5* | irix6* | nonstopux*)
8609 lt_prog_compiler_wl='-Wl,'
8610 # PIC (with -KPIC) is the default.
8611 lt_prog_compiler_static='-non_shared'
8612 ;;
8613
8614 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8615 case $cc_basename in
8616 # old Intel for x86_64 which still supported -KPIC.
8617 ecc*)
8618 lt_prog_compiler_wl='-Wl,'
8619 lt_prog_compiler_pic='-KPIC'
8620 lt_prog_compiler_static='-static'
8621 ;;
8622 # icc used to be incompatible with GCC.
8623 # ICC 10 doesn't accept -KPIC any more.
8624 icc* | ifort*)
8625 lt_prog_compiler_wl='-Wl,'
8626 lt_prog_compiler_pic='-fPIC'
8627 lt_prog_compiler_static='-static'
8628 ;;
8629 # Lahey Fortran 8.1.
8630 lf95*)
8631 lt_prog_compiler_wl='-Wl,'
8632 lt_prog_compiler_pic='--shared'
8633 lt_prog_compiler_static='--static'
8634 ;;
8635 nagfor*)
8636 # NAG Fortran compiler
8637 lt_prog_compiler_wl='-Wl,-Wl,,'
8638 lt_prog_compiler_pic='-PIC'
8639 lt_prog_compiler_static='-Bstatic'
8640 ;;
8641 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8642 # Portland Group compilers (*not* the Pentium gcc compiler,
8643 # which looks to be a dead project)
8644 lt_prog_compiler_wl='-Wl,'
8645 lt_prog_compiler_pic='-fpic'
8646 lt_prog_compiler_static='-Bstatic'
8647 ;;
8648 ccc*)
8649 lt_prog_compiler_wl='-Wl,'
8650 # All Alpha code is PIC.
8651 lt_prog_compiler_static='-non_shared'
8652 ;;
8653 xl* | bgxl* | bgf* | mpixl*)
8654 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8655 lt_prog_compiler_wl='-Wl,'
8656 lt_prog_compiler_pic='-qpic'
8657 lt_prog_compiler_static='-qstaticlink'
8658 ;;
8659 *)
8660 case `$CC -V 2>&1 | sed 5q` in
8661 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8662 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8663 lt_prog_compiler_pic='-KPIC'
8664 lt_prog_compiler_static='-Bstatic'
8665 lt_prog_compiler_wl=''
8666 ;;
8667 *Sun\ F* | *Sun*Fortran*)
8668 lt_prog_compiler_pic='-KPIC'
8669 lt_prog_compiler_static='-Bstatic'
8670 lt_prog_compiler_wl='-Qoption ld '
8671 ;;
8672 *Sun\ C*)
8673 # Sun C 5.9
8674 lt_prog_compiler_pic='-KPIC'
8675 lt_prog_compiler_static='-Bstatic'
8676 lt_prog_compiler_wl='-Wl,'
8677 ;;
8678 *Intel*\ [CF]*Compiler*)
8679 lt_prog_compiler_wl='-Wl,'
8680 lt_prog_compiler_pic='-fPIC'
8681 lt_prog_compiler_static='-static'
8682 ;;
8683 *Portland\ Group*)
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='-fpic'
8686 lt_prog_compiler_static='-Bstatic'
8687 ;;
8688 esac
8689 ;;
8690 esac
8691 ;;
8692
8693 newsos6)
8694 lt_prog_compiler_pic='-KPIC'
8695 lt_prog_compiler_static='-Bstatic'
8696 ;;
8697
8698 *nto* | *qnx*)
8699 # QNX uses GNU C++, but need to define -shared option too, otherwise
8700 # it will coredump.
8701 lt_prog_compiler_pic='-fPIC -shared'
8702 ;;
8703
8704 osf3* | osf4* | osf5*)
8705 lt_prog_compiler_wl='-Wl,'
8706 # All OSF/1 code is PIC.
8707 lt_prog_compiler_static='-non_shared'
8708 ;;
8709
8710 rdos*)
8711 lt_prog_compiler_static='-non_shared'
8712 ;;
8713
8714 solaris*)
8715 lt_prog_compiler_pic='-KPIC'
8716 lt_prog_compiler_static='-Bstatic'
8717 case $cc_basename in
8718 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8719 lt_prog_compiler_wl='-Qoption ld ';;
8720 *)
8721 lt_prog_compiler_wl='-Wl,';;
8722 esac
8723 ;;
8724
8725 sunos4*)
8726 lt_prog_compiler_wl='-Qoption ld '
8727 lt_prog_compiler_pic='-PIC'
8728 lt_prog_compiler_static='-Bstatic'
8729 ;;
8730
8731 sysv4 | sysv4.2uw2* | sysv4.3*)
8732 lt_prog_compiler_wl='-Wl,'
8733 lt_prog_compiler_pic='-KPIC'
8734 lt_prog_compiler_static='-Bstatic'
8735 ;;
8736
8737 sysv4*MP*)
8738 if test -d /usr/nec ;then
8739 lt_prog_compiler_pic='-Kconform_pic'
8740 lt_prog_compiler_static='-Bstatic'
8741 fi
8742 ;;
8743
8744 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8745 lt_prog_compiler_wl='-Wl,'
8746 lt_prog_compiler_pic='-KPIC'
8747 lt_prog_compiler_static='-Bstatic'
8748 ;;
8749
8750 unicos*)
8751 lt_prog_compiler_wl='-Wl,'
8752 lt_prog_compiler_can_build_shared=no
8753 ;;
8754
8755 uts4*)
8756 lt_prog_compiler_pic='-pic'
8757 lt_prog_compiler_static='-Bstatic'
8758 ;;
8759
8760 *)
8761 lt_prog_compiler_can_build_shared=no
8762 ;;
8763 esac
8764 fi
8765
8766 case $host_os in
8767 # For platforms which do not support PIC, -DPIC is meaningless:
8768 *djgpp*)
8769 lt_prog_compiler_pic=
8770 ;;
8771 *)
8772 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8773 ;;
8774 esac
8775
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8777 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8778 if ${lt_cv_prog_compiler_pic+:} false; then :
8779 $as_echo_n "(cached) " >&6
8780 else
8781 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8782 fi
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8784 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8785 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8786
8787 #
8788 # Check to make sure the PIC flag actually works.
8789 #
8790 if test -n "$lt_prog_compiler_pic"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8792 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8793 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 lt_cv_prog_compiler_pic_works=no
8797 ac_outfile=conftest.$ac_objext
8798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8799 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8800 # Insert the option either (1) after the last *FLAGS variable, or
8801 # (2) before a word containing "conftest.", or (3) at the end.
8802 # Note that $ac_compile itself does not contain backslashes and begins
8803 # with a dollar sign (not a hyphen), so the echo should work correctly.
8804 # The option is referenced via a variable to avoid confusing sed.
8805 lt_compile=`echo "$ac_compile" | $SED \
8806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8808 -e 's:$: $lt_compiler_flag:'`
8809 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8810 (eval "$lt_compile" 2>conftest.err)
8811 ac_status=$?
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 if (exit $ac_status) && test -s "$ac_outfile"; then
8815 # The compiler can only warn and ignore the option if not recognized
8816 # So say no if there are warnings other than the usual output.
8817 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8819 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8820 lt_cv_prog_compiler_pic_works=yes
8821 fi
8822 fi
8823 $RM conftest*
8824
8825 fi
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8827 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8828
8829 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8830 case $lt_prog_compiler_pic in
8831 "" | " "*) ;;
8832 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8833 esac
8834 else
8835 lt_prog_compiler_pic=
8836 lt_prog_compiler_can_build_shared=no
8837 fi
8838
8839 fi
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851 #
8852 # Check to make sure the static flag actually works.
8853 #
8854 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8856 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8857 if ${lt_cv_prog_compiler_static_works+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 lt_cv_prog_compiler_static_works=no
8861 save_LDFLAGS="$LDFLAGS"
8862 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8863 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8864 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8865 # The linker can only warn and ignore the option if not recognized
8866 # So say no if there are warnings
8867 if test -s conftest.err; then
8868 # Append any errors to the config.log.
8869 cat conftest.err 1>&5
8870 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8872 if diff conftest.exp conftest.er2 >/dev/null; then
8873 lt_cv_prog_compiler_static_works=yes
8874 fi
8875 else
8876 lt_cv_prog_compiler_static_works=yes
8877 fi
8878 fi
8879 $RM -r conftest*
8880 LDFLAGS="$save_LDFLAGS"
8881
8882 fi
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8884 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8885
8886 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8887 :
8888 else
8889 lt_prog_compiler_static=
8890 fi
8891
8892
8893
8894
8895
8896
8897
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8899 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8900 if ${lt_cv_prog_compiler_c_o+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 lt_cv_prog_compiler_c_o=no
8904 $RM -r conftest 2>/dev/null
8905 mkdir conftest
8906 cd conftest
8907 mkdir out
8908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8909
8910 lt_compiler_flag="-o out/conftest2.$ac_objext"
8911 # Insert the option either (1) after the last *FLAGS variable, or
8912 # (2) before a word containing "conftest.", or (3) at the end.
8913 # Note that $ac_compile itself does not contain backslashes and begins
8914 # with a dollar sign (not a hyphen), so the echo should work correctly.
8915 lt_compile=`echo "$ac_compile" | $SED \
8916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8918 -e 's:$: $lt_compiler_flag:'`
8919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8920 (eval "$lt_compile" 2>out/conftest.err)
8921 ac_status=$?
8922 cat out/conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8925 then
8926 # The compiler can only warn and ignore the option if not recognized
8927 # So say no if there are warnings
8928 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8931 lt_cv_prog_compiler_c_o=yes
8932 fi
8933 fi
8934 chmod u+w . 2>&5
8935 $RM conftest*
8936 # SGI C++ compiler will create directory out/ii_files/ for
8937 # template instantiation
8938 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8939 $RM out/* && rmdir out
8940 cd ..
8941 $RM -r conftest
8942 $RM conftest*
8943
8944 fi
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8946 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8947
8948
8949
8950
8951
8952
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8954 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8955 if ${lt_cv_prog_compiler_c_o+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 lt_cv_prog_compiler_c_o=no
8959 $RM -r conftest 2>/dev/null
8960 mkdir conftest
8961 cd conftest
8962 mkdir out
8963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8964
8965 lt_compiler_flag="-o out/conftest2.$ac_objext"
8966 # Insert the option either (1) after the last *FLAGS variable, or
8967 # (2) before a word containing "conftest.", or (3) at the end.
8968 # Note that $ac_compile itself does not contain backslashes and begins
8969 # with a dollar sign (not a hyphen), so the echo should work correctly.
8970 lt_compile=`echo "$ac_compile" | $SED \
8971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8973 -e 's:$: $lt_compiler_flag:'`
8974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8975 (eval "$lt_compile" 2>out/conftest.err)
8976 ac_status=$?
8977 cat out/conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8980 then
8981 # The compiler can only warn and ignore the option if not recognized
8982 # So say no if there are warnings
8983 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8986 lt_cv_prog_compiler_c_o=yes
8987 fi
8988 fi
8989 chmod u+w . 2>&5
8990 $RM conftest*
8991 # SGI C++ compiler will create directory out/ii_files/ for
8992 # template instantiation
8993 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8994 $RM out/* && rmdir out
8995 cd ..
8996 $RM -r conftest
8997 $RM conftest*
8998
8999 fi
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9001 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9002
9003
9004
9005
9006 hard_links="nottested"
9007 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9008 # do not overwrite the value of need_locks provided by the user
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9010 $as_echo_n "checking if we can lock with hard links... " >&6; }
9011 hard_links=yes
9012 $RM conftest*
9013 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9014 touch conftest.a
9015 ln conftest.a conftest.b 2>&5 || hard_links=no
9016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9018 $as_echo "$hard_links" >&6; }
9019 if test "$hard_links" = no; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9021 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9022 need_locks=warn
9023 fi
9024 else
9025 need_locks=no
9026 fi
9027
9028
9029
9030
9031
9032
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9034 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9035
9036 runpath_var=
9037 allow_undefined_flag=
9038 always_export_symbols=no
9039 archive_cmds=
9040 archive_expsym_cmds=
9041 compiler_needs_object=no
9042 enable_shared_with_static_runtimes=no
9043 export_dynamic_flag_spec=
9044 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9045 hardcode_automatic=no
9046 hardcode_direct=no
9047 hardcode_direct_absolute=no
9048 hardcode_libdir_flag_spec=
9049 hardcode_libdir_separator=
9050 hardcode_minus_L=no
9051 hardcode_shlibpath_var=unsupported
9052 inherit_rpath=no
9053 link_all_deplibs=unknown
9054 module_cmds=
9055 module_expsym_cmds=
9056 old_archive_from_new_cmds=
9057 old_archive_from_expsyms_cmds=
9058 thread_safe_flag_spec=
9059 whole_archive_flag_spec=
9060 # include_expsyms should be a list of space-separated symbols to be *always*
9061 # included in the symbol list
9062 include_expsyms=
9063 # exclude_expsyms can be an extended regexp of symbols to exclude
9064 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9065 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9066 # as well as any symbol that contains `d'.
9067 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9068 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9069 # platforms (ab)use it in PIC code, but their linkers get confused if
9070 # the symbol is explicitly referenced. Since portable code cannot
9071 # rely on this symbol name, it's probably fine to never include it in
9072 # preloaded symbol tables.
9073 # Exclude shared library initialization/finalization symbols.
9074 extract_expsyms_cmds=
9075
9076 case $host_os in
9077 cygwin* | mingw* | pw32* | cegcc*)
9078 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9079 # When not using gcc, we currently assume that we are using
9080 # Microsoft Visual C++.
9081 if test "$GCC" != yes; then
9082 with_gnu_ld=no
9083 fi
9084 ;;
9085 interix*)
9086 # we just hope/assume this is gcc and not c89 (= MSVC++)
9087 with_gnu_ld=yes
9088 ;;
9089 openbsd*)
9090 with_gnu_ld=no
9091 ;;
9092 esac
9093
9094 ld_shlibs=yes
9095
9096 # On some targets, GNU ld is compatible enough with the native linker
9097 # that we're better off using the native interface for both.
9098 lt_use_gnu_ld_interface=no
9099 if test "$with_gnu_ld" = yes; then
9100 case $host_os in
9101 aix*)
9102 # The AIX port of GNU ld has always aspired to compatibility
9103 # with the native linker. However, as the warning in the GNU ld
9104 # block says, versions before 2.19.5* couldn't really create working
9105 # shared libraries, regardless of the interface used.
9106 case `$LD -v 2>&1` in
9107 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9108 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9109 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9110 *)
9111 lt_use_gnu_ld_interface=yes
9112 ;;
9113 esac
9114 ;;
9115 *)
9116 lt_use_gnu_ld_interface=yes
9117 ;;
9118 esac
9119 fi
9120
9121 if test "$lt_use_gnu_ld_interface" = yes; then
9122 # If archive_cmds runs LD, not CC, wlarc should be empty
9123 wlarc='${wl}'
9124
9125 # Set some defaults for GNU ld with shared library support. These
9126 # are reset later if shared libraries are not supported. Putting them
9127 # here allows them to be overridden if necessary.
9128 runpath_var=LD_RUN_PATH
9129 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9130 export_dynamic_flag_spec='${wl}--export-dynamic'
9131 # ancient GNU ld didn't support --whole-archive et. al.
9132 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9133 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9134 else
9135 whole_archive_flag_spec=
9136 fi
9137 supports_anon_versioning=no
9138 case `$LD -v 2>&1` in
9139 *GNU\ gold*) supports_anon_versioning=yes ;;
9140 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9141 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9142 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9143 *\ 2.11.*) ;; # other 2.11 versions
9144 *) supports_anon_versioning=yes ;;
9145 esac
9146
9147 # See if GNU ld supports shared libraries.
9148 case $host_os in
9149 aix[3-9]*)
9150 # On AIX/PPC, the GNU linker is very broken
9151 if test "$host_cpu" != ia64; then
9152 ld_shlibs=no
9153 cat <<_LT_EOF 1>&2
9154
9155 *** Warning: the GNU linker, at least up to release 2.19, is reported
9156 *** to be unable to reliably create shared libraries on AIX.
9157 *** Therefore, libtool is disabling shared libraries support. If you
9158 *** really care for shared libraries, you may want to install binutils
9159 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9160 *** You will then need to restart the configuration process.
9161
9162 _LT_EOF
9163 fi
9164 ;;
9165
9166 amigaos*)
9167 case $host_cpu in
9168 powerpc)
9169 # see comment about AmigaOS4 .so support
9170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9171 archive_expsym_cmds=''
9172 ;;
9173 m68k)
9174 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)'
9175 hardcode_libdir_flag_spec='-L$libdir'
9176 hardcode_minus_L=yes
9177 ;;
9178 esac
9179 ;;
9180
9181 beos*)
9182 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9183 allow_undefined_flag=unsupported
9184 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9185 # support --undefined. This deserves some investigation. FIXME
9186 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187 else
9188 ld_shlibs=no
9189 fi
9190 ;;
9191
9192 cygwin* | mingw* | pw32* | cegcc*)
9193 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9194 # as there is no search path for DLLs.
9195 hardcode_libdir_flag_spec='-L$libdir'
9196 export_dynamic_flag_spec='${wl}--export-all-symbols'
9197 allow_undefined_flag=unsupported
9198 always_export_symbols=no
9199 enable_shared_with_static_runtimes=yes
9200 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'
9201 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9202
9203 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9205 # If the export-symbols file already is a .def file (1st line
9206 # is EXPORTS), use it as is; otherwise, prepend...
9207 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9208 cp $export_symbols $output_objdir/$soname.def;
9209 else
9210 echo EXPORTS > $output_objdir/$soname.def;
9211 cat $export_symbols >> $output_objdir/$soname.def;
9212 fi~
9213 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9214 else
9215 ld_shlibs=no
9216 fi
9217 ;;
9218
9219 haiku*)
9220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9221 link_all_deplibs=yes
9222 ;;
9223
9224 interix[3-9]*)
9225 hardcode_direct=no
9226 hardcode_shlibpath_var=no
9227 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9228 export_dynamic_flag_spec='${wl}-E'
9229 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9230 # Instead, shared libraries are loaded at an image base (0x10000000 by
9231 # default) and relocated if they conflict, which is a slow very memory
9232 # consuming and fragmenting process. To avoid this, we pick a random,
9233 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9234 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9235 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9236 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'
9237 ;;
9238
9239 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9240 tmp_diet=no
9241 if test "$host_os" = linux-dietlibc; then
9242 case $cc_basename in
9243 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9244 esac
9245 fi
9246 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9247 && test "$tmp_diet" = no
9248 then
9249 tmp_addflag=' $pic_flag'
9250 tmp_sharedflag='-shared'
9251 case $cc_basename,$host_cpu in
9252 pgcc*) # Portland Group C compiler
9253 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'
9254 tmp_addflag=' $pic_flag'
9255 ;;
9256 pgf77* | pgf90* | pgf95* | pgfortran*)
9257 # Portland Group f77 and f90 compilers
9258 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'
9259 tmp_addflag=' $pic_flag -Mnomain' ;;
9260 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9261 tmp_addflag=' -i_dynamic' ;;
9262 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9263 tmp_addflag=' -i_dynamic -nofor_main' ;;
9264 ifc* | ifort*) # Intel Fortran compiler
9265 tmp_addflag=' -nofor_main' ;;
9266 lf95*) # Lahey Fortran 8.1
9267 whole_archive_flag_spec=
9268 tmp_sharedflag='--shared' ;;
9269 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9270 tmp_sharedflag='-qmkshrobj'
9271 tmp_addflag= ;;
9272 nvcc*) # Cuda Compiler Driver 2.2
9273 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'
9274 compiler_needs_object=yes
9275 ;;
9276 esac
9277 case `$CC -V 2>&1 | sed 5q` in
9278 *Sun\ C*) # Sun C 5.9
9279 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'
9280 compiler_needs_object=yes
9281 tmp_sharedflag='-G' ;;
9282 *Sun\ F*) # Sun Fortran 8.3
9283 tmp_sharedflag='-G' ;;
9284 esac
9285 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286
9287 if test "x$supports_anon_versioning" = xyes; then
9288 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9289 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9290 echo "local: *; };" >> $output_objdir/$libname.ver~
9291 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9292 fi
9293
9294 case $cc_basename in
9295 xlf* | bgf* | bgxlf* | mpixlf*)
9296 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9297 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9299 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9300 if test "x$supports_anon_versioning" = xyes; then
9301 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9303 echo "local: *; };" >> $output_objdir/$libname.ver~
9304 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9305 fi
9306 ;;
9307 esac
9308 else
9309 ld_shlibs=no
9310 fi
9311 ;;
9312
9313 netbsd*)
9314 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9315 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9316 wlarc=
9317 else
9318 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9319 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9320 fi
9321 ;;
9322
9323 solaris*)
9324 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9325 ld_shlibs=no
9326 cat <<_LT_EOF 1>&2
9327
9328 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9329 *** create shared libraries on Solaris systems. Therefore, libtool
9330 *** is disabling shared libraries support. We urge you to upgrade GNU
9331 *** binutils to release 2.9.1 or newer. Another option is to modify
9332 *** your PATH or compiler configuration so that the native linker is
9333 *** used, and then restart.
9334
9335 _LT_EOF
9336 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9337 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9338 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9339 else
9340 ld_shlibs=no
9341 fi
9342 ;;
9343
9344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9345 case `$LD -v 2>&1` in
9346 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9347 ld_shlibs=no
9348 cat <<_LT_EOF 1>&2
9349
9350 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9351 *** reliably create shared libraries on SCO systems. Therefore, libtool
9352 *** is disabling shared libraries support. We urge you to upgrade GNU
9353 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9354 *** your PATH or compiler configuration so that the native linker is
9355 *** used, and then restart.
9356
9357 _LT_EOF
9358 ;;
9359 *)
9360 # For security reasons, it is highly recommended that you always
9361 # use absolute paths for naming shared libraries, and exclude the
9362 # DT_RUNPATH tag from executables and libraries. But doing so
9363 # requires that you compile everything twice, which is a pain.
9364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9367 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9368 else
9369 ld_shlibs=no
9370 fi
9371 ;;
9372 esac
9373 ;;
9374
9375 sunos4*)
9376 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9377 wlarc=
9378 hardcode_direct=yes
9379 hardcode_shlibpath_var=no
9380 ;;
9381
9382 *)
9383 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9385 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9386 else
9387 ld_shlibs=no
9388 fi
9389 ;;
9390 esac
9391
9392 if test "$ld_shlibs" = no; then
9393 runpath_var=
9394 hardcode_libdir_flag_spec=
9395 export_dynamic_flag_spec=
9396 whole_archive_flag_spec=
9397 fi
9398 else
9399 # PORTME fill in a description of your system's linker (not GNU ld)
9400 case $host_os in
9401 aix3*)
9402 allow_undefined_flag=unsupported
9403 always_export_symbols=yes
9404 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'
9405 # Note: this linker hardcodes the directories in LIBPATH if there
9406 # are no directories specified by -L.
9407 hardcode_minus_L=yes
9408 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9409 # Neither direct hardcoding nor static linking is supported with a
9410 # broken collect2.
9411 hardcode_direct=unsupported
9412 fi
9413 ;;
9414
9415 aix[4-9]*)
9416 if test "$host_cpu" = ia64; then
9417 # On IA64, the linker does run time linking by default, so we don't
9418 # have to do anything special.
9419 aix_use_runtimelinking=no
9420 exp_sym_flag='-Bexport'
9421 no_entry_flag=""
9422 else
9423 # If we're using GNU nm, then we don't want the "-C" option.
9424 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9425 # Also, AIX nm treats weak defined symbols like other global
9426 # defined symbols, whereas GNU nm marks them as "W".
9427 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9428 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'
9429 else
9430 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'
9431 fi
9432 aix_use_runtimelinking=no
9433
9434 # Test if we are trying to use run time linking or normal
9435 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9436 # need to do runtime linking.
9437 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9438 for ld_flag in $LDFLAGS; do
9439 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9440 aix_use_runtimelinking=yes
9441 break
9442 fi
9443 done
9444 ;;
9445 esac
9446
9447 exp_sym_flag='-bexport'
9448 no_entry_flag='-bnoentry'
9449 fi
9450
9451 # When large executables or shared objects are built, AIX ld can
9452 # have problems creating the table of contents. If linking a library
9453 # or program results in "error TOC overflow" add -mminimal-toc to
9454 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9455 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9456
9457 archive_cmds=''
9458 hardcode_direct=yes
9459 hardcode_direct_absolute=yes
9460 hardcode_libdir_separator=':'
9461 link_all_deplibs=yes
9462 file_list_spec='${wl}-f,'
9463
9464 if test "$GCC" = yes; then
9465 case $host_os in aix4.[012]|aix4.[012].*)
9466 # We only want to do this on AIX 4.2 and lower, the check
9467 # below for broken collect2 doesn't work under 4.3+
9468 collect2name=`${CC} -print-prog-name=collect2`
9469 if test -f "$collect2name" &&
9470 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9471 then
9472 # We have reworked collect2
9473 :
9474 else
9475 # We have old collect2
9476 hardcode_direct=unsupported
9477 # It fails to find uninstalled libraries when the uninstalled
9478 # path is not listed in the libpath. Setting hardcode_minus_L
9479 # to unsupported forces relinking
9480 hardcode_minus_L=yes
9481 hardcode_libdir_flag_spec='-L$libdir'
9482 hardcode_libdir_separator=
9483 fi
9484 ;;
9485 esac
9486 shared_flag='-shared'
9487 if test "$aix_use_runtimelinking" = yes; then
9488 shared_flag="$shared_flag "'${wl}-G'
9489 fi
9490 else
9491 # not using gcc
9492 if test "$host_cpu" = ia64; then
9493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9494 # chokes on -Wl,-G. The following line is correct:
9495 shared_flag='-G'
9496 else
9497 if test "$aix_use_runtimelinking" = yes; then
9498 shared_flag='${wl}-G'
9499 else
9500 shared_flag='${wl}-bM:SRE'
9501 fi
9502 fi
9503 fi
9504
9505 export_dynamic_flag_spec='${wl}-bexpall'
9506 # It seems that -bexpall does not export symbols beginning with
9507 # underscore (_), so it is better to generate a list of symbols to export.
9508 always_export_symbols=yes
9509 if test "$aix_use_runtimelinking" = yes; then
9510 # Warning - without using the other runtime loading flags (-brtl),
9511 # -berok will link without error, but may produce a broken library.
9512 allow_undefined_flag='-berok'
9513 # Determine the default libpath from the value encoded in an
9514 # empty executable.
9515 if test "${lt_cv_aix_libpath+set}" = set; then
9516 aix_libpath=$lt_cv_aix_libpath
9517 else
9518 if ${lt_cv_aix_libpath_+:} false; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523
9524 int
9525 main ()
9526 {
9527
9528 ;
9529 return 0;
9530 }
9531 _ACEOF
9532 if ac_fn_c_try_link "$LINENO"; then :
9533
9534 lt_aix_libpath_sed='
9535 /Import File Strings/,/^$/ {
9536 /^0/ {
9537 s/^0 *\([^ ]*\) *$/\1/
9538 p
9539 }
9540 }'
9541 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9542 # Check for a 64-bit object if we didn't find anything.
9543 if test -z "$lt_cv_aix_libpath_"; then
9544 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9545 fi
9546 fi
9547 rm -f core conftest.err conftest.$ac_objext \
9548 conftest$ac_exeext conftest.$ac_ext
9549 if test -z "$lt_cv_aix_libpath_"; then
9550 lt_cv_aix_libpath_="/usr/lib:/lib"
9551 fi
9552
9553 fi
9554
9555 aix_libpath=$lt_cv_aix_libpath_
9556 fi
9557
9558 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9559 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"
9560 else
9561 if test "$host_cpu" = ia64; then
9562 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9563 allow_undefined_flag="-z nodefs"
9564 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"
9565 else
9566 # Determine the default libpath from the value encoded in an
9567 # empty executable.
9568 if test "${lt_cv_aix_libpath+set}" = set; then
9569 aix_libpath=$lt_cv_aix_libpath
9570 else
9571 if ${lt_cv_aix_libpath_+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576
9577 int
9578 main ()
9579 {
9580
9581 ;
9582 return 0;
9583 }
9584 _ACEOF
9585 if ac_fn_c_try_link "$LINENO"; then :
9586
9587 lt_aix_libpath_sed='
9588 /Import File Strings/,/^$/ {
9589 /^0/ {
9590 s/^0 *\([^ ]*\) *$/\1/
9591 p
9592 }
9593 }'
9594 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9595 # Check for a 64-bit object if we didn't find anything.
9596 if test -z "$lt_cv_aix_libpath_"; then
9597 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9598 fi
9599 fi
9600 rm -f core conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext conftest.$ac_ext
9602 if test -z "$lt_cv_aix_libpath_"; then
9603 lt_cv_aix_libpath_="/usr/lib:/lib"
9604 fi
9605
9606 fi
9607
9608 aix_libpath=$lt_cv_aix_libpath_
9609 fi
9610
9611 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9612 # Warning - without using the other run time loading flags,
9613 # -berok will link without error, but may produce a broken library.
9614 no_undefined_flag=' ${wl}-bernotok'
9615 allow_undefined_flag=' ${wl}-berok'
9616 if test "$with_gnu_ld" = yes; then
9617 # We only use this code for GNU lds that support --whole-archive.
9618 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9619 else
9620 # Exported symbols can be pulled into shared objects from archives
9621 whole_archive_flag_spec='$convenience'
9622 fi
9623 archive_cmds_need_lc=yes
9624 # This is similar to how AIX traditionally builds its shared libraries.
9625 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'
9626 fi
9627 fi
9628 ;;
9629
9630 amigaos*)
9631 case $host_cpu in
9632 powerpc)
9633 # see comment about AmigaOS4 .so support
9634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9635 archive_expsym_cmds=''
9636 ;;
9637 m68k)
9638 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)'
9639 hardcode_libdir_flag_spec='-L$libdir'
9640 hardcode_minus_L=yes
9641 ;;
9642 esac
9643 ;;
9644
9645 bsdi[45]*)
9646 export_dynamic_flag_spec=-rdynamic
9647 ;;
9648
9649 cygwin* | mingw* | pw32* | cegcc*)
9650 # When not using gcc, we currently assume that we are using
9651 # Microsoft Visual C++.
9652 # hardcode_libdir_flag_spec is actually meaningless, as there is
9653 # no search path for DLLs.
9654 case $cc_basename in
9655 cl*)
9656 # Native MSVC
9657 hardcode_libdir_flag_spec=' '
9658 allow_undefined_flag=unsupported
9659 always_export_symbols=yes
9660 file_list_spec='@'
9661 # Tell ltmain to make .lib files, not .a files.
9662 libext=lib
9663 # Tell ltmain to make .dll files, not .so files.
9664 shrext_cmds=".dll"
9665 # FIXME: Setting linknames here is a bad hack.
9666 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9667 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9668 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9669 else
9670 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9671 fi~
9672 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9673 linknames='
9674 # The linker will not automatically build a static lib if we build a DLL.
9675 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9676 enable_shared_with_static_runtimes=yes
9677 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9678 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9679 # Don't use ranlib
9680 old_postinstall_cmds='chmod 644 $oldlib'
9681 postlink_cmds='lt_outputfile="@OUTPUT@"~
9682 lt_tool_outputfile="@TOOL_OUTPUT@"~
9683 case $lt_outputfile in
9684 *.exe|*.EXE) ;;
9685 *)
9686 lt_outputfile="$lt_outputfile.exe"
9687 lt_tool_outputfile="$lt_tool_outputfile.exe"
9688 ;;
9689 esac~
9690 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9691 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9692 $RM "$lt_outputfile.manifest";
9693 fi'
9694 ;;
9695 *)
9696 # Assume MSVC wrapper
9697 hardcode_libdir_flag_spec=' '
9698 allow_undefined_flag=unsupported
9699 # Tell ltmain to make .lib files, not .a files.
9700 libext=lib
9701 # Tell ltmain to make .dll files, not .so files.
9702 shrext_cmds=".dll"
9703 # FIXME: Setting linknames here is a bad hack.
9704 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9705 # The linker will automatically build a .lib file if we build a DLL.
9706 old_archive_from_new_cmds='true'
9707 # FIXME: Should let the user specify the lib program.
9708 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9709 enable_shared_with_static_runtimes=yes
9710 ;;
9711 esac
9712 ;;
9713
9714 darwin* | rhapsody*)
9715
9716
9717 archive_cmds_need_lc=no
9718 hardcode_direct=no
9719 hardcode_automatic=yes
9720 hardcode_shlibpath_var=unsupported
9721 if test "$lt_cv_ld_force_load" = "yes"; then
9722 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\"`'
9723
9724 else
9725 whole_archive_flag_spec=''
9726 fi
9727 link_all_deplibs=yes
9728 allow_undefined_flag="$_lt_dar_allow_undefined"
9729 case $cc_basename in
9730 ifort*) _lt_dar_can_shared=yes ;;
9731 *) _lt_dar_can_shared=$GCC ;;
9732 esac
9733 if test "$_lt_dar_can_shared" = "yes"; then
9734 output_verbose_link_cmd=func_echo_all
9735 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9736 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9737 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}"
9738 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}"
9739
9740 else
9741 ld_shlibs=no
9742 fi
9743
9744 ;;
9745
9746 dgux*)
9747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9748 hardcode_libdir_flag_spec='-L$libdir'
9749 hardcode_shlibpath_var=no
9750 ;;
9751
9752 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9753 # support. Future versions do this automatically, but an explicit c++rt0.o
9754 # does not break anything, and helps significantly (at the cost of a little
9755 # extra space).
9756 freebsd2.2*)
9757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9758 hardcode_libdir_flag_spec='-R$libdir'
9759 hardcode_direct=yes
9760 hardcode_shlibpath_var=no
9761 ;;
9762
9763 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9764 freebsd2.*)
9765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_direct=yes
9767 hardcode_minus_L=yes
9768 hardcode_shlibpath_var=no
9769 ;;
9770
9771 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9772 freebsd* | dragonfly*)
9773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9774 hardcode_libdir_flag_spec='-R$libdir'
9775 hardcode_direct=yes
9776 hardcode_shlibpath_var=no
9777 ;;
9778
9779 hpux9*)
9780 if test "$GCC" = yes; then
9781 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'
9782 else
9783 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'
9784 fi
9785 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9786 hardcode_libdir_separator=:
9787 hardcode_direct=yes
9788
9789 # hardcode_minus_L: Not really in the search PATH,
9790 # but as the default location of the library.
9791 hardcode_minus_L=yes
9792 export_dynamic_flag_spec='${wl}-E'
9793 ;;
9794
9795 hpux10*)
9796 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9797 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9798 else
9799 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9800 fi
9801 if test "$with_gnu_ld" = no; then
9802 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9803 hardcode_libdir_separator=:
9804 hardcode_direct=yes
9805 hardcode_direct_absolute=yes
9806 export_dynamic_flag_spec='${wl}-E'
9807 # hardcode_minus_L: Not really in the search PATH,
9808 # but as the default location of the library.
9809 hardcode_minus_L=yes
9810 fi
9811 ;;
9812
9813 hpux11*)
9814 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9815 case $host_cpu in
9816 hppa*64*)
9817 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9818 ;;
9819 ia64*)
9820 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9821 ;;
9822 *)
9823 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9824 ;;
9825 esac
9826 else
9827 case $host_cpu in
9828 hppa*64*)
9829 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9830 ;;
9831 ia64*)
9832 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9833 ;;
9834 *)
9835
9836 # Older versions of the 11.00 compiler do not understand -b yet
9837 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9839 $as_echo_n "checking if $CC understands -b... " >&6; }
9840 if ${lt_cv_prog_compiler__b+:} false; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 lt_cv_prog_compiler__b=no
9844 save_LDFLAGS="$LDFLAGS"
9845 LDFLAGS="$LDFLAGS -b"
9846 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9847 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9848 # The linker can only warn and ignore the option if not recognized
9849 # So say no if there are warnings
9850 if test -s conftest.err; then
9851 # Append any errors to the config.log.
9852 cat conftest.err 1>&5
9853 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9855 if diff conftest.exp conftest.er2 >/dev/null; then
9856 lt_cv_prog_compiler__b=yes
9857 fi
9858 else
9859 lt_cv_prog_compiler__b=yes
9860 fi
9861 fi
9862 $RM -r conftest*
9863 LDFLAGS="$save_LDFLAGS"
9864
9865 fi
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9867 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9868
9869 if test x"$lt_cv_prog_compiler__b" = xyes; then
9870 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9871 else
9872 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9873 fi
9874
9875 ;;
9876 esac
9877 fi
9878 if test "$with_gnu_ld" = no; then
9879 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9880 hardcode_libdir_separator=:
9881
9882 case $host_cpu in
9883 hppa*64*|ia64*)
9884 hardcode_direct=no
9885 hardcode_shlibpath_var=no
9886 ;;
9887 *)
9888 hardcode_direct=yes
9889 hardcode_direct_absolute=yes
9890 export_dynamic_flag_spec='${wl}-E'
9891
9892 # hardcode_minus_L: Not really in the search PATH,
9893 # but as the default location of the library.
9894 hardcode_minus_L=yes
9895 ;;
9896 esac
9897 fi
9898 ;;
9899
9900 irix5* | irix6* | nonstopux*)
9901 if test "$GCC" = yes; then
9902 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'
9903 # Try to use the -exported_symbol ld option, if it does not
9904 # work, assume that -exports_file does not work either and
9905 # implicitly export all symbols.
9906 # This should be the same for all languages, so no per-tag cache variable.
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9908 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9909 if ${lt_cv_irix_exported_symbol+:} false; then :
9910 $as_echo_n "(cached) " >&6
9911 else
9912 save_LDFLAGS="$LDFLAGS"
9913 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9916 int foo (void) { return 0; }
9917 _ACEOF
9918 if ac_fn_c_try_link "$LINENO"; then :
9919 lt_cv_irix_exported_symbol=yes
9920 else
9921 lt_cv_irix_exported_symbol=no
9922 fi
9923 rm -f core conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext conftest.$ac_ext
9925 LDFLAGS="$save_LDFLAGS"
9926 fi
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9928 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9929 if test "$lt_cv_irix_exported_symbol" = yes; then
9930 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'
9931 fi
9932 else
9933 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'
9934 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'
9935 fi
9936 archive_cmds_need_lc='no'
9937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9938 hardcode_libdir_separator=:
9939 inherit_rpath=yes
9940 link_all_deplibs=yes
9941 ;;
9942
9943 netbsd*)
9944 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9945 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9946 else
9947 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9948 fi
9949 hardcode_libdir_flag_spec='-R$libdir'
9950 hardcode_direct=yes
9951 hardcode_shlibpath_var=no
9952 ;;
9953
9954 newsos6)
9955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956 hardcode_direct=yes
9957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958 hardcode_libdir_separator=:
9959 hardcode_shlibpath_var=no
9960 ;;
9961
9962 *nto* | *qnx*)
9963 ;;
9964
9965 openbsd*)
9966 if test -f /usr/libexec/ld.so; then
9967 hardcode_direct=yes
9968 hardcode_shlibpath_var=no
9969 hardcode_direct_absolute=yes
9970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9971 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9972 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9973 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9974 export_dynamic_flag_spec='${wl}-E'
9975 else
9976 case $host_os in
9977 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9979 hardcode_libdir_flag_spec='-R$libdir'
9980 ;;
9981 *)
9982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9983 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9984 ;;
9985 esac
9986 fi
9987 else
9988 ld_shlibs=no
9989 fi
9990 ;;
9991
9992 os2*)
9993 hardcode_libdir_flag_spec='-L$libdir'
9994 hardcode_minus_L=yes
9995 allow_undefined_flag=unsupported
9996 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'
9997 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9998 ;;
9999
10000 osf3*)
10001 if test "$GCC" = yes; then
10002 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10003 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'
10004 else
10005 allow_undefined_flag=' -expect_unresolved \*'
10006 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'
10007 fi
10008 archive_cmds_need_lc='no'
10009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10010 hardcode_libdir_separator=:
10011 ;;
10012
10013 osf4* | osf5*) # as osf3* with the addition of -msym flag
10014 if test "$GCC" = yes; then
10015 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10016 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'
10017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10018 else
10019 allow_undefined_flag=' -expect_unresolved \*'
10020 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'
10021 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~
10022 $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'
10023
10024 # Both c and cxx compiler support -rpath directly
10025 hardcode_libdir_flag_spec='-rpath $libdir'
10026 fi
10027 archive_cmds_need_lc='no'
10028 hardcode_libdir_separator=:
10029 ;;
10030
10031 solaris*)
10032 no_undefined_flag=' -z defs'
10033 if test "$GCC" = yes; then
10034 wlarc='${wl}'
10035 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10037 $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'
10038 else
10039 case `$CC -V 2>&1` in
10040 *"Compilers 5.0"*)
10041 wlarc=''
10042 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10043 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10044 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10045 ;;
10046 *)
10047 wlarc='${wl}'
10048 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10049 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10050 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10051 ;;
10052 esac
10053 fi
10054 hardcode_libdir_flag_spec='-R$libdir'
10055 hardcode_shlibpath_var=no
10056 case $host_os in
10057 solaris2.[0-5] | solaris2.[0-5].*) ;;
10058 *)
10059 # The compiler driver will combine and reorder linker options,
10060 # but understands `-z linker_flag'. GCC discards it without `$wl',
10061 # but is careful enough not to reorder.
10062 # Supported since Solaris 2.6 (maybe 2.5.1?)
10063 if test "$GCC" = yes; then
10064 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10065 else
10066 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10067 fi
10068 ;;
10069 esac
10070 link_all_deplibs=yes
10071 ;;
10072
10073 sunos4*)
10074 if test "x$host_vendor" = xsequent; then
10075 # Use $CC to link under sequent, because it throws in some extra .o
10076 # files that make .init and .fini sections work.
10077 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10078 else
10079 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10080 fi
10081 hardcode_libdir_flag_spec='-L$libdir'
10082 hardcode_direct=yes
10083 hardcode_minus_L=yes
10084 hardcode_shlibpath_var=no
10085 ;;
10086
10087 sysv4)
10088 case $host_vendor in
10089 sni)
10090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091 hardcode_direct=yes # is this really true???
10092 ;;
10093 siemens)
10094 ## LD is ld it makes a PLAMLIB
10095 ## CC just makes a GrossModule.
10096 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10097 reload_cmds='$CC -r -o $output$reload_objs'
10098 hardcode_direct=no
10099 ;;
10100 motorola)
10101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10103 ;;
10104 esac
10105 runpath_var='LD_RUN_PATH'
10106 hardcode_shlibpath_var=no
10107 ;;
10108
10109 sysv4.3*)
10110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111 hardcode_shlibpath_var=no
10112 export_dynamic_flag_spec='-Bexport'
10113 ;;
10114
10115 sysv4*MP*)
10116 if test -d /usr/nec; then
10117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10118 hardcode_shlibpath_var=no
10119 runpath_var=LD_RUN_PATH
10120 hardcode_runpath_var=yes
10121 ld_shlibs=yes
10122 fi
10123 ;;
10124
10125 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10126 no_undefined_flag='${wl}-z,text'
10127 archive_cmds_need_lc=no
10128 hardcode_shlibpath_var=no
10129 runpath_var='LD_RUN_PATH'
10130
10131 if test "$GCC" = yes; then
10132 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10134 else
10135 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10137 fi
10138 ;;
10139
10140 sysv5* | sco3.2v5* | sco5v6*)
10141 # Note: We can NOT use -z defs as we might desire, because we do not
10142 # link with -lc, and that would cause any symbols used from libc to
10143 # always be unresolved, which means just about no library would
10144 # ever link correctly. If we're not using GNU ld we use -z text
10145 # though, which does catch some bad symbols but isn't as heavy-handed
10146 # as -z defs.
10147 no_undefined_flag='${wl}-z,text'
10148 allow_undefined_flag='${wl}-z,nodefs'
10149 archive_cmds_need_lc=no
10150 hardcode_shlibpath_var=no
10151 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10152 hardcode_libdir_separator=':'
10153 link_all_deplibs=yes
10154 export_dynamic_flag_spec='${wl}-Bexport'
10155 runpath_var='LD_RUN_PATH'
10156
10157 if test "$GCC" = yes; then
10158 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160 else
10161 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10163 fi
10164 ;;
10165
10166 uts4*)
10167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10168 hardcode_libdir_flag_spec='-L$libdir'
10169 hardcode_shlibpath_var=no
10170 ;;
10171
10172 *)
10173 ld_shlibs=no
10174 ;;
10175 esac
10176
10177 if test x$host_vendor = xsni; then
10178 case $host in
10179 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10180 export_dynamic_flag_spec='${wl}-Blargedynsym'
10181 ;;
10182 esac
10183 fi
10184 fi
10185
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10187 $as_echo "$ld_shlibs" >&6; }
10188 test "$ld_shlibs" = no && can_build_shared=no
10189
10190 with_gnu_ld=$with_gnu_ld
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206 #
10207 # Do we need to explicitly link libc?
10208 #
10209 case "x$archive_cmds_need_lc" in
10210 x|xyes)
10211 # Assume -lc should be added
10212 archive_cmds_need_lc=yes
10213
10214 if test "$enable_shared" = yes && test "$GCC" = yes; then
10215 case $archive_cmds in
10216 *'~'*)
10217 # FIXME: we may have to deal with multi-command sequences.
10218 ;;
10219 '$CC '*)
10220 # Test whether the compiler implicitly links with -lc since on some
10221 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10222 # to ld, don't add -lc before -lgcc.
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10224 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10225 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10226 $as_echo_n "(cached) " >&6
10227 else
10228 $RM conftest*
10229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10230
10231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10232 (eval $ac_compile) 2>&5
10233 ac_status=$?
10234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10235 test $ac_status = 0; } 2>conftest.err; then
10236 soname=conftest
10237 lib=conftest
10238 libobjs=conftest.$ac_objext
10239 deplibs=
10240 wl=$lt_prog_compiler_wl
10241 pic_flag=$lt_prog_compiler_pic
10242 compiler_flags=-v
10243 linker_flags=-v
10244 verstring=
10245 output_objdir=.
10246 libname=conftest
10247 lt_save_allow_undefined_flag=$allow_undefined_flag
10248 allow_undefined_flag=
10249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10250 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10251 ac_status=$?
10252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10253 test $ac_status = 0; }
10254 then
10255 lt_cv_archive_cmds_need_lc=no
10256 else
10257 lt_cv_archive_cmds_need_lc=yes
10258 fi
10259 allow_undefined_flag=$lt_save_allow_undefined_flag
10260 else
10261 cat conftest.err 1>&5
10262 fi
10263 $RM conftest*
10264
10265 fi
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10267 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10268 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10269 ;;
10270 esac
10271 fi
10272 ;;
10273 esac
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
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10427 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10428
10429 if test "$GCC" = yes; then
10430 case $host_os in
10431 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10432 *) lt_awk_arg="/^libraries:/" ;;
10433 esac
10434 case $host_os in
10435 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10436 *) lt_sed_strip_eq="s,=/,/,g" ;;
10437 esac
10438 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10439 case $lt_search_path_spec in
10440 *\;*)
10441 # if the path contains ";" then we assume it to be the separator
10442 # otherwise default to the standard path separator (i.e. ":") - it is
10443 # assumed that no part of a normal pathname contains ";" but that should
10444 # okay in the real world where ";" in dirpaths is itself problematic.
10445 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10446 ;;
10447 *)
10448 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10449 ;;
10450 esac
10451 # Ok, now we have the path, separated by spaces, we can step through it
10452 # and add multilib dir if necessary.
10453 lt_tmp_lt_search_path_spec=
10454 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10455 for lt_sys_path in $lt_search_path_spec; do
10456 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10457 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10458 else
10459 test -d "$lt_sys_path" && \
10460 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10461 fi
10462 done
10463 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10464 BEGIN {RS=" "; FS="/|\n";} {
10465 lt_foo="";
10466 lt_count=0;
10467 for (lt_i = NF; lt_i > 0; lt_i--) {
10468 if ($lt_i != "" && $lt_i != ".") {
10469 if ($lt_i == "..") {
10470 lt_count++;
10471 } else {
10472 if (lt_count == 0) {
10473 lt_foo="/" $lt_i lt_foo;
10474 } else {
10475 lt_count--;
10476 }
10477 }
10478 }
10479 }
10480 if (lt_foo != "") { lt_freq[lt_foo]++; }
10481 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10482 }'`
10483 # AWK program above erroneously prepends '/' to C:/dos/paths
10484 # for these hosts.
10485 case $host_os in
10486 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10487 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10488 esac
10489 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10490 else
10491 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10492 fi
10493 library_names_spec=
10494 libname_spec='lib$name'
10495 soname_spec=
10496 shrext_cmds=".so"
10497 postinstall_cmds=
10498 postuninstall_cmds=
10499 finish_cmds=
10500 finish_eval=
10501 shlibpath_var=
10502 shlibpath_overrides_runpath=unknown
10503 version_type=none
10504 dynamic_linker="$host_os ld.so"
10505 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10506 need_lib_prefix=unknown
10507 hardcode_into_libs=no
10508
10509 # when you set need_version to no, make sure it does not cause -set_version
10510 # flags to be left without arguments
10511 need_version=unknown
10512
10513 case $host_os in
10514 aix3*)
10515 version_type=linux # correct to gnu/linux during the next big refactor
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10517 shlibpath_var=LIBPATH
10518
10519 # AIX 3 has no versioning support, so we append a major version to the name.
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 ;;
10522
10523 aix[4-9]*)
10524 version_type=linux # correct to gnu/linux during the next big refactor
10525 need_lib_prefix=no
10526 need_version=no
10527 hardcode_into_libs=yes
10528 if test "$host_cpu" = ia64; then
10529 # AIX 5 supports IA64
10530 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10531 shlibpath_var=LD_LIBRARY_PATH
10532 else
10533 # With GCC up to 2.95.x, collect2 would create an import file
10534 # for dependence libraries. The import file would start with
10535 # the line `#! .'. This would cause the generated library to
10536 # depend on `.', always an invalid library. This was fixed in
10537 # development snapshots of GCC prior to 3.0.
10538 case $host_os in
10539 aix4 | aix4.[01] | aix4.[01].*)
10540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10541 echo ' yes '
10542 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10543 :
10544 else
10545 can_build_shared=no
10546 fi
10547 ;;
10548 esac
10549 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10550 # soname into executable. Probably we can add versioning support to
10551 # collect2, so additional links can be useful in future.
10552 if test "$aix_use_runtimelinking" = yes; then
10553 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10554 # instead of lib<name>.a to let people know that these are not
10555 # typical AIX shared libraries.
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 else
10558 # We preserve .a as extension for shared libraries through AIX4.2
10559 # and later when we are not doing run time linking.
10560 library_names_spec='${libname}${release}.a $libname.a'
10561 soname_spec='${libname}${release}${shared_ext}$major'
10562 fi
10563 shlibpath_var=LIBPATH
10564 fi
10565 ;;
10566
10567 amigaos*)
10568 case $host_cpu in
10569 powerpc)
10570 # Since July 2007 AmigaOS4 officially supports .so libraries.
10571 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573 ;;
10574 m68k)
10575 library_names_spec='$libname.ixlibrary $libname.a'
10576 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10577 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'
10578 ;;
10579 esac
10580 ;;
10581
10582 beos*)
10583 library_names_spec='${libname}${shared_ext}'
10584 dynamic_linker="$host_os ld.so"
10585 shlibpath_var=LIBRARY_PATH
10586 ;;
10587
10588 bsdi[45]*)
10589 version_type=linux # correct to gnu/linux during the next big refactor
10590 need_version=no
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 soname_spec='${libname}${release}${shared_ext}$major'
10593 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10596 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10597 # the default ld.so.conf also contains /usr/contrib/lib and
10598 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10599 # libtool to hard-code these into programs
10600 ;;
10601
10602 cygwin* | mingw* | pw32* | cegcc*)
10603 version_type=windows
10604 shrext_cmds=".dll"
10605 need_version=no
10606 need_lib_prefix=no
10607
10608 case $GCC,$cc_basename in
10609 yes,*)
10610 # gcc
10611 library_names_spec='$libname.dll.a'
10612 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10613 postinstall_cmds='base_file=`basename \${file}`~
10614 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10615 dldir=$destdir/`dirname \$dlpath`~
10616 test -d \$dldir || mkdir -p \$dldir~
10617 $install_prog $dir/$dlname \$dldir/$dlname~
10618 chmod a+x \$dldir/$dlname~
10619 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10620 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10621 fi'
10622 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10623 dlpath=$dir/\$dldll~
10624 $RM \$dlpath'
10625 shlibpath_overrides_runpath=yes
10626
10627 case $host_os in
10628 cygwin*)
10629 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10630 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10631
10632 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10633 ;;
10634 mingw* | cegcc*)
10635 # MinGW DLLs use traditional 'lib' prefix
10636 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10637 ;;
10638 pw32*)
10639 # pw32 DLLs use 'pw' prefix rather than 'lib'
10640 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10641 ;;
10642 esac
10643 dynamic_linker='Win32 ld.exe'
10644 ;;
10645
10646 *,cl*)
10647 # Native MSVC
10648 libname_spec='$name'
10649 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10650 library_names_spec='${libname}.dll.lib'
10651
10652 case $build_os in
10653 mingw*)
10654 sys_lib_search_path_spec=
10655 lt_save_ifs=$IFS
10656 IFS=';'
10657 for lt_path in $LIB
10658 do
10659 IFS=$lt_save_ifs
10660 # Let DOS variable expansion print the short 8.3 style file name.
10661 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10662 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10663 done
10664 IFS=$lt_save_ifs
10665 # Convert to MSYS style.
10666 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10667 ;;
10668 cygwin*)
10669 # Convert to unix form, then to dos form, then back to unix form
10670 # but this time dos style (no spaces!) so that the unix form looks
10671 # like /cygdrive/c/PROGRA~1:/cygdr...
10672 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10673 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10674 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10675 ;;
10676 *)
10677 sys_lib_search_path_spec="$LIB"
10678 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10679 # It is most probably a Windows format PATH.
10680 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10681 else
10682 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10683 fi
10684 # FIXME: find the short name or the path components, as spaces are
10685 # common. (e.g. "Program Files" -> "PROGRA~1")
10686 ;;
10687 esac
10688
10689 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10690 postinstall_cmds='base_file=`basename \${file}`~
10691 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10692 dldir=$destdir/`dirname \$dlpath`~
10693 test -d \$dldir || mkdir -p \$dldir~
10694 $install_prog $dir/$dlname \$dldir/$dlname'
10695 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10696 dlpath=$dir/\$dldll~
10697 $RM \$dlpath'
10698 shlibpath_overrides_runpath=yes
10699 dynamic_linker='Win32 link.exe'
10700 ;;
10701
10702 *)
10703 # Assume MSVC wrapper
10704 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10705 dynamic_linker='Win32 ld.exe'
10706 ;;
10707 esac
10708 # FIXME: first we should search . and the directory the executable is in
10709 shlibpath_var=PATH
10710 ;;
10711
10712 darwin* | rhapsody*)
10713 dynamic_linker="$host_os dyld"
10714 version_type=darwin
10715 need_lib_prefix=no
10716 need_version=no
10717 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10718 soname_spec='${libname}${release}${major}$shared_ext'
10719 shlibpath_overrides_runpath=yes
10720 shlibpath_var=DYLD_LIBRARY_PATH
10721 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10722
10723 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10724 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10725 ;;
10726
10727 dgux*)
10728 version_type=linux # correct to gnu/linux during the next big refactor
10729 need_lib_prefix=no
10730 need_version=no
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10733 shlibpath_var=LD_LIBRARY_PATH
10734 ;;
10735
10736 freebsd* | dragonfly*)
10737 # DragonFly does not have aout. When/if they implement a new
10738 # versioning mechanism, adjust this.
10739 if test -x /usr/bin/objformat; then
10740 objformat=`/usr/bin/objformat`
10741 else
10742 case $host_os in
10743 freebsd[23].*) objformat=aout ;;
10744 *) objformat=elf ;;
10745 esac
10746 fi
10747 version_type=freebsd-$objformat
10748 case $version_type in
10749 freebsd-elf*)
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10751 need_version=no
10752 need_lib_prefix=no
10753 ;;
10754 freebsd-*)
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10756 need_version=yes
10757 ;;
10758 esac
10759 shlibpath_var=LD_LIBRARY_PATH
10760 case $host_os in
10761 freebsd2.*)
10762 shlibpath_overrides_runpath=yes
10763 ;;
10764 freebsd3.[01]* | freebsdelf3.[01]*)
10765 shlibpath_overrides_runpath=yes
10766 hardcode_into_libs=yes
10767 ;;
10768 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10769 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10770 shlibpath_overrides_runpath=no
10771 hardcode_into_libs=yes
10772 ;;
10773 *) # from 4.6 on, and DragonFly
10774 shlibpath_overrides_runpath=yes
10775 hardcode_into_libs=yes
10776 ;;
10777 esac
10778 ;;
10779
10780 gnu*)
10781 version_type=linux # correct to gnu/linux during the next big refactor
10782 need_lib_prefix=no
10783 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
10787 shlibpath_overrides_runpath=no
10788 hardcode_into_libs=yes
10789 ;;
10790
10791 haiku*)
10792 version_type=linux # correct to gnu/linux during the next big refactor
10793 need_lib_prefix=no
10794 need_version=no
10795 dynamic_linker="$host_os runtime_loader"
10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10797 soname_spec='${libname}${release}${shared_ext}$major'
10798 shlibpath_var=LIBRARY_PATH
10799 shlibpath_overrides_runpath=yes
10800 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10801 hardcode_into_libs=yes
10802 ;;
10803
10804 hpux9* | hpux10* | hpux11*)
10805 # Give a soname corresponding to the major version so that dld.sl refuses to
10806 # link against other versions.
10807 version_type=sunos
10808 need_lib_prefix=no
10809 need_version=no
10810 case $host_cpu in
10811 ia64*)
10812 shrext_cmds='.so'
10813 hardcode_into_libs=yes
10814 dynamic_linker="$host_os dld.so"
10815 shlibpath_var=LD_LIBRARY_PATH
10816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 if test "X$HPUX_IA64_MODE" = X32; then
10820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10821 else
10822 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10823 fi
10824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10825 ;;
10826 hppa*64*)
10827 shrext_cmds='.sl'
10828 hardcode_into_libs=yes
10829 dynamic_linker="$host_os dld.sl"
10830 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10836 ;;
10837 *)
10838 shrext_cmds='.sl'
10839 dynamic_linker="$host_os dld.sl"
10840 shlibpath_var=SHLIB_PATH
10841 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843 soname_spec='${libname}${release}${shared_ext}$major'
10844 ;;
10845 esac
10846 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10847 postinstall_cmds='chmod 555 $lib'
10848 # or fails outright, so override atomically:
10849 install_override_mode=555
10850 ;;
10851
10852 interix[3-9]*)
10853 version_type=linux # correct to gnu/linux during the next big refactor
10854 need_lib_prefix=no
10855 need_version=no
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10857 soname_spec='${libname}${release}${shared_ext}$major'
10858 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10859 shlibpath_var=LD_LIBRARY_PATH
10860 shlibpath_overrides_runpath=no
10861 hardcode_into_libs=yes
10862 ;;
10863
10864 irix5* | irix6* | nonstopux*)
10865 case $host_os in
10866 nonstopux*) version_type=nonstopux ;;
10867 *)
10868 if test "$lt_cv_prog_gnu_ld" = yes; then
10869 version_type=linux # correct to gnu/linux during the next big refactor
10870 else
10871 version_type=irix
10872 fi ;;
10873 esac
10874 need_lib_prefix=no
10875 need_version=no
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10878 case $host_os in
10879 irix5* | nonstopux*)
10880 libsuff= shlibsuff=
10881 ;;
10882 *)
10883 case $LD in # libtool.m4 will add one of these switches to LD
10884 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10885 libsuff= shlibsuff= libmagic=32-bit;;
10886 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10887 libsuff=32 shlibsuff=N32 libmagic=N32;;
10888 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10889 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10890 *) libsuff= shlibsuff= libmagic=never-match;;
10891 esac
10892 ;;
10893 esac
10894 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10895 shlibpath_overrides_runpath=no
10896 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10897 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10898 hardcode_into_libs=yes
10899 ;;
10900
10901 # No shared lib support for Linux oldld, aout, or coff.
10902 linux*oldld* | linux*aout* | linux*coff*)
10903 dynamic_linker=no
10904 ;;
10905
10906 # This must be glibc/ELF.
10907 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10908 version_type=linux # correct to gnu/linux during the next big refactor
10909 need_lib_prefix=no
10910 need_version=no
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 shlibpath_overrides_runpath=no
10916
10917 # Some binutils ld are patched to set DT_RUNPATH
10918 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10919 $as_echo_n "(cached) " >&6
10920 else
10921 lt_cv_shlibpath_overrides_runpath=no
10922 save_LDFLAGS=$LDFLAGS
10923 save_libdir=$libdir
10924 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10925 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10928
10929 int
10930 main ()
10931 {
10932
10933 ;
10934 return 0;
10935 }
10936 _ACEOF
10937 if ac_fn_c_try_link "$LINENO"; then :
10938 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10939 lt_cv_shlibpath_overrides_runpath=yes
10940 fi
10941 fi
10942 rm -f core conftest.err conftest.$ac_objext \
10943 conftest$ac_exeext conftest.$ac_ext
10944 LDFLAGS=$save_LDFLAGS
10945 libdir=$save_libdir
10946
10947 fi
10948
10949 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10950
10951 # This implies no fast_install, which is unacceptable.
10952 # Some rework will be needed to allow for fast_install
10953 # before this can be enabled.
10954 hardcode_into_libs=yes
10955
10956 # Append ld.so.conf contents to the search path
10957 if test -f /etc/ld.so.conf; then
10958 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' ' '`
10959 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10960 fi
10961
10962 # We used to test for /lib/ld.so.1 and disable shared libraries on
10963 # powerpc, because MkLinux only supported shared libraries with the
10964 # GNU dynamic linker. Since this was broken with cross compilers,
10965 # most powerpc-linux boxes support dynamic linking these days and
10966 # people can always --disable-shared, the test was removed, and we
10967 # assume the GNU/Linux dynamic linker is in use.
10968 dynamic_linker='GNU/Linux ld.so'
10969 ;;
10970
10971 netbsd*)
10972 version_type=sunos
10973 need_lib_prefix=no
10974 need_version=no
10975 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10978 dynamic_linker='NetBSD (a.out) ld.so'
10979 else
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 dynamic_linker='NetBSD ld.elf_so'
10983 fi
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=yes
10986 hardcode_into_libs=yes
10987 ;;
10988
10989 newsos6)
10990 version_type=linux # correct to gnu/linux during the next big refactor
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 shlibpath_var=LD_LIBRARY_PATH
10993 shlibpath_overrides_runpath=yes
10994 ;;
10995
10996 *nto* | *qnx*)
10997 version_type=qnx
10998 need_lib_prefix=no
10999 need_version=no
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001 soname_spec='${libname}${release}${shared_ext}$major'
11002 shlibpath_var=LD_LIBRARY_PATH
11003 shlibpath_overrides_runpath=no
11004 hardcode_into_libs=yes
11005 dynamic_linker='ldqnx.so'
11006 ;;
11007
11008 openbsd*)
11009 version_type=sunos
11010 sys_lib_dlsearch_path_spec="/usr/lib"
11011 need_lib_prefix=no
11012 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11013 case $host_os in
11014 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11015 *) need_version=no ;;
11016 esac
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11021 case $host_os in
11022 openbsd2.[89] | openbsd2.[89].*)
11023 shlibpath_overrides_runpath=no
11024 ;;
11025 *)
11026 shlibpath_overrides_runpath=yes
11027 ;;
11028 esac
11029 else
11030 shlibpath_overrides_runpath=yes
11031 fi
11032 ;;
11033
11034 os2*)
11035 libname_spec='$name'
11036 shrext_cmds=".dll"
11037 need_lib_prefix=no
11038 library_names_spec='$libname${shared_ext} $libname.a'
11039 dynamic_linker='OS/2 ld.exe'
11040 shlibpath_var=LIBPATH
11041 ;;
11042
11043 osf3* | osf4* | osf5*)
11044 version_type=osf
11045 need_lib_prefix=no
11046 need_version=no
11047 soname_spec='${libname}${release}${shared_ext}$major'
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11051 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11052 ;;
11053
11054 rdos*)
11055 dynamic_linker=no
11056 ;;
11057
11058 solaris*)
11059 version_type=linux # correct to gnu/linux during the next big refactor
11060 need_lib_prefix=no
11061 need_version=no
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 shlibpath_overrides_runpath=yes
11066 hardcode_into_libs=yes
11067 # ldd complains unless libraries are executable
11068 postinstall_cmds='chmod +x $lib'
11069 ;;
11070
11071 sunos4*)
11072 version_type=sunos
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11074 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11075 shlibpath_var=LD_LIBRARY_PATH
11076 shlibpath_overrides_runpath=yes
11077 if test "$with_gnu_ld" = yes; then
11078 need_lib_prefix=no
11079 fi
11080 need_version=yes
11081 ;;
11082
11083 sysv4 | sysv4.3*)
11084 version_type=linux # correct to gnu/linux during the next big refactor
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 soname_spec='${libname}${release}${shared_ext}$major'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 case $host_vendor in
11089 sni)
11090 shlibpath_overrides_runpath=no
11091 need_lib_prefix=no
11092 runpath_var=LD_RUN_PATH
11093 ;;
11094 siemens)
11095 need_lib_prefix=no
11096 ;;
11097 motorola)
11098 need_lib_prefix=no
11099 need_version=no
11100 shlibpath_overrides_runpath=no
11101 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11102 ;;
11103 esac
11104 ;;
11105
11106 sysv4*MP*)
11107 if test -d /usr/nec ;then
11108 version_type=linux # correct to gnu/linux during the next big refactor
11109 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11110 soname_spec='$libname${shared_ext}.$major'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 fi
11113 ;;
11114
11115 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11116 version_type=freebsd-elf
11117 need_lib_prefix=no
11118 need_version=no
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11120 soname_spec='${libname}${release}${shared_ext}$major'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=yes
11123 hardcode_into_libs=yes
11124 if test "$with_gnu_ld" = yes; then
11125 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11126 else
11127 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11128 case $host_os in
11129 sco3.2v5*)
11130 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11131 ;;
11132 esac
11133 fi
11134 sys_lib_dlsearch_path_spec='/usr/lib'
11135 ;;
11136
11137 tpf*)
11138 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11139 version_type=linux # correct to gnu/linux during the next big refactor
11140 need_lib_prefix=no
11141 need_version=no
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=no
11145 hardcode_into_libs=yes
11146 ;;
11147
11148 uts4*)
11149 version_type=linux # correct to gnu/linux during the next big refactor
11150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11151 soname_spec='${libname}${release}${shared_ext}$major'
11152 shlibpath_var=LD_LIBRARY_PATH
11153 ;;
11154
11155 *)
11156 dynamic_linker=no
11157 ;;
11158 esac
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11160 $as_echo "$dynamic_linker" >&6; }
11161 test "$dynamic_linker" = no && can_build_shared=no
11162
11163 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11164 if test "$GCC" = yes; then
11165 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11166 fi
11167
11168 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11169 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11170 fi
11171 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11172 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11173 fi
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
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11267 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11268 hardcode_action=
11269 if test -n "$hardcode_libdir_flag_spec" ||
11270 test -n "$runpath_var" ||
11271 test "X$hardcode_automatic" = "Xyes" ; then
11272
11273 # We can hardcode non-existent directories.
11274 if test "$hardcode_direct" != no &&
11275 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11276 # have to relink, otherwise we might link with an installed library
11277 # when we should be linking with a yet-to-be-installed one
11278 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11279 test "$hardcode_minus_L" != no; then
11280 # Linking always hardcodes the temporary library directory.
11281 hardcode_action=relink
11282 else
11283 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11284 hardcode_action=immediate
11285 fi
11286 else
11287 # We cannot hardcode anything, or else we can only hardcode existing
11288 # directories.
11289 hardcode_action=unsupported
11290 fi
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11292 $as_echo "$hardcode_action" >&6; }
11293
11294 if test "$hardcode_action" = relink ||
11295 test "$inherit_rpath" = yes; then
11296 # Fast installation is not supported
11297 enable_fast_install=no
11298 elif test "$shlibpath_overrides_runpath" = yes ||
11299 test "$enable_shared" = no; then
11300 # Fast installation is not necessary
11301 enable_fast_install=needless
11302 fi
11303
11304
11305
11306
11307
11308
11309 if test "x$enable_dlopen" != xyes; then
11310 enable_dlopen=unknown
11311 enable_dlopen_self=unknown
11312 enable_dlopen_self_static=unknown
11313 else
11314 lt_cv_dlopen=no
11315 lt_cv_dlopen_libs=
11316
11317 case $host_os in
11318 beos*)
11319 lt_cv_dlopen="load_add_on"
11320 lt_cv_dlopen_libs=
11321 lt_cv_dlopen_self=yes
11322 ;;
11323
11324 mingw* | pw32* | cegcc*)
11325 lt_cv_dlopen="LoadLibrary"
11326 lt_cv_dlopen_libs=
11327 ;;
11328
11329 cygwin*)
11330 lt_cv_dlopen="dlopen"
11331 lt_cv_dlopen_libs=
11332 ;;
11333
11334 darwin*)
11335 # if libdl is installed we need to link against it
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11337 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11338 if ${ac_cv_lib_dl_dlopen+:} false; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 ac_check_lib_save_LIBS=$LIBS
11342 LIBS="-ldl $LIBS"
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349 #ifdef __cplusplus
11350 extern "C"
11351 #endif
11352 char dlopen ();
11353 int
11354 main ()
11355 {
11356 return dlopen ();
11357 ;
11358 return 0;
11359 }
11360 _ACEOF
11361 if ac_fn_c_try_link "$LINENO"; then :
11362 ac_cv_lib_dl_dlopen=yes
11363 else
11364 ac_cv_lib_dl_dlopen=no
11365 fi
11366 rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368 LIBS=$ac_check_lib_save_LIBS
11369 fi
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11371 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11372 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11374 else
11375
11376 lt_cv_dlopen="dyld"
11377 lt_cv_dlopen_libs=
11378 lt_cv_dlopen_self=yes
11379
11380 fi
11381
11382 ;;
11383
11384 *)
11385 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11386 if test "x$ac_cv_func_shl_load" = xyes; then :
11387 lt_cv_dlopen="shl_load"
11388 else
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11390 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11391 if ${ac_cv_lib_dld_shl_load+:} false; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 ac_check_lib_save_LIBS=$LIBS
11395 LIBS="-ldld $LIBS"
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11398
11399 /* Override any GCC internal prototype to avoid an error.
11400 Use char because int might match the return type of a GCC
11401 builtin and then its argument prototype would still apply. */
11402 #ifdef __cplusplus
11403 extern "C"
11404 #endif
11405 char shl_load ();
11406 int
11407 main ()
11408 {
11409 return shl_load ();
11410 ;
11411 return 0;
11412 }
11413 _ACEOF
11414 if ac_fn_c_try_link "$LINENO"; then :
11415 ac_cv_lib_dld_shl_load=yes
11416 else
11417 ac_cv_lib_dld_shl_load=no
11418 fi
11419 rm -f core conftest.err conftest.$ac_objext \
11420 conftest$ac_exeext conftest.$ac_ext
11421 LIBS=$ac_check_lib_save_LIBS
11422 fi
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11424 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11425 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11426 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11427 else
11428 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11429 if test "x$ac_cv_func_dlopen" = xyes; then :
11430 lt_cv_dlopen="dlopen"
11431 else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11433 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11434 if ${ac_cv_lib_dl_dlopen+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 ac_check_lib_save_LIBS=$LIBS
11438 LIBS="-ldl $LIBS"
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11441
11442 /* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 char dlopen ();
11449 int
11450 main ()
11451 {
11452 return dlopen ();
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_link "$LINENO"; then :
11458 ac_cv_lib_dl_dlopen=yes
11459 else
11460 ac_cv_lib_dl_dlopen=no
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11464 LIBS=$ac_check_lib_save_LIBS
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11467 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11468 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11469 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11472 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11473 if ${ac_cv_lib_svld_dlopen+:} false; then :
11474 $as_echo_n "(cached) " >&6
11475 else
11476 ac_check_lib_save_LIBS=$LIBS
11477 LIBS="-lsvld $LIBS"
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11480
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 char dlopen ();
11488 int
11489 main ()
11490 {
11491 return dlopen ();
11492 ;
11493 return 0;
11494 }
11495 _ACEOF
11496 if ac_fn_c_try_link "$LINENO"; then :
11497 ac_cv_lib_svld_dlopen=yes
11498 else
11499 ac_cv_lib_svld_dlopen=no
11500 fi
11501 rm -f core conftest.err conftest.$ac_objext \
11502 conftest$ac_exeext conftest.$ac_ext
11503 LIBS=$ac_check_lib_save_LIBS
11504 fi
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11506 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11507 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11508 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11509 else
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11511 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11512 if ${ac_cv_lib_dld_dld_link+:} false; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 ac_check_lib_save_LIBS=$LIBS
11516 LIBS="-ldld $LIBS"
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char dld_link ();
11527 int
11528 main ()
11529 {
11530 return dld_link ();
11531 ;
11532 return 0;
11533 }
11534 _ACEOF
11535 if ac_fn_c_try_link "$LINENO"; then :
11536 ac_cv_lib_dld_dld_link=yes
11537 else
11538 ac_cv_lib_dld_dld_link=no
11539 fi
11540 rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11543 fi
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11545 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11546 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11547 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11548 fi
11549
11550
11551 fi
11552
11553
11554 fi
11555
11556
11557 fi
11558
11559
11560 fi
11561
11562
11563 fi
11564
11565 ;;
11566 esac
11567
11568 if test "x$lt_cv_dlopen" != xno; then
11569 enable_dlopen=yes
11570 else
11571 enable_dlopen=no
11572 fi
11573
11574 case $lt_cv_dlopen in
11575 dlopen)
11576 save_CPPFLAGS="$CPPFLAGS"
11577 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11578
11579 save_LDFLAGS="$LDFLAGS"
11580 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11581
11582 save_LIBS="$LIBS"
11583 LIBS="$lt_cv_dlopen_libs $LIBS"
11584
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11586 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11587 if ${lt_cv_dlopen_self+:} false; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 if test "$cross_compiling" = yes; then :
11591 lt_cv_dlopen_self=cross
11592 else
11593 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11594 lt_status=$lt_dlunknown
11595 cat > conftest.$ac_ext <<_LT_EOF
11596 #line $LINENO "configure"
11597 #include "confdefs.h"
11598
11599 #if HAVE_DLFCN_H
11600 #include <dlfcn.h>
11601 #endif
11602
11603 #include <stdio.h>
11604
11605 #ifdef RTLD_GLOBAL
11606 # define LT_DLGLOBAL RTLD_GLOBAL
11607 #else
11608 # ifdef DL_GLOBAL
11609 # define LT_DLGLOBAL DL_GLOBAL
11610 # else
11611 # define LT_DLGLOBAL 0
11612 # endif
11613 #endif
11614
11615 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11616 find out it does not work in some platform. */
11617 #ifndef LT_DLLAZY_OR_NOW
11618 # ifdef RTLD_LAZY
11619 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11620 # else
11621 # ifdef DL_LAZY
11622 # define LT_DLLAZY_OR_NOW DL_LAZY
11623 # else
11624 # ifdef RTLD_NOW
11625 # define LT_DLLAZY_OR_NOW RTLD_NOW
11626 # else
11627 # ifdef DL_NOW
11628 # define LT_DLLAZY_OR_NOW DL_NOW
11629 # else
11630 # define LT_DLLAZY_OR_NOW 0
11631 # endif
11632 # endif
11633 # endif
11634 # endif
11635 #endif
11636
11637 /* When -fvisbility=hidden is used, assume the code has been annotated
11638 correspondingly for the symbols needed. */
11639 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11640 int fnord () __attribute__((visibility("default")));
11641 #endif
11642
11643 int fnord () { return 42; }
11644 int main ()
11645 {
11646 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11647 int status = $lt_dlunknown;
11648
11649 if (self)
11650 {
11651 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11652 else
11653 {
11654 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11655 else puts (dlerror ());
11656 }
11657 /* dlclose (self); */
11658 }
11659 else
11660 puts (dlerror ());
11661
11662 return status;
11663 }
11664 _LT_EOF
11665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11666 (eval $ac_link) 2>&5
11667 ac_status=$?
11668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11669 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11670 (./conftest; exit; ) >&5 2>/dev/null
11671 lt_status=$?
11672 case x$lt_status in
11673 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11674 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11675 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11676 esac
11677 else :
11678 # compilation failed
11679 lt_cv_dlopen_self=no
11680 fi
11681 fi
11682 rm -fr conftest*
11683
11684
11685 fi
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11687 $as_echo "$lt_cv_dlopen_self" >&6; }
11688
11689 if test "x$lt_cv_dlopen_self" = xyes; then
11690 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11692 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11693 if ${lt_cv_dlopen_self_static+:} false; then :
11694 $as_echo_n "(cached) " >&6
11695 else
11696 if test "$cross_compiling" = yes; then :
11697 lt_cv_dlopen_self_static=cross
11698 else
11699 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11700 lt_status=$lt_dlunknown
11701 cat > conftest.$ac_ext <<_LT_EOF
11702 #line $LINENO "configure"
11703 #include "confdefs.h"
11704
11705 #if HAVE_DLFCN_H
11706 #include <dlfcn.h>
11707 #endif
11708
11709 #include <stdio.h>
11710
11711 #ifdef RTLD_GLOBAL
11712 # define LT_DLGLOBAL RTLD_GLOBAL
11713 #else
11714 # ifdef DL_GLOBAL
11715 # define LT_DLGLOBAL DL_GLOBAL
11716 # else
11717 # define LT_DLGLOBAL 0
11718 # endif
11719 #endif
11720
11721 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11722 find out it does not work in some platform. */
11723 #ifndef LT_DLLAZY_OR_NOW
11724 # ifdef RTLD_LAZY
11725 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11726 # else
11727 # ifdef DL_LAZY
11728 # define LT_DLLAZY_OR_NOW DL_LAZY
11729 # else
11730 # ifdef RTLD_NOW
11731 # define LT_DLLAZY_OR_NOW RTLD_NOW
11732 # else
11733 # ifdef DL_NOW
11734 # define LT_DLLAZY_OR_NOW DL_NOW
11735 # else
11736 # define LT_DLLAZY_OR_NOW 0
11737 # endif
11738 # endif
11739 # endif
11740 # endif
11741 #endif
11742
11743 /* When -fvisbility=hidden is used, assume the code has been annotated
11744 correspondingly for the symbols needed. */
11745 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11746 int fnord () __attribute__((visibility("default")));
11747 #endif
11748
11749 int fnord () { return 42; }
11750 int main ()
11751 {
11752 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11753 int status = $lt_dlunknown;
11754
11755 if (self)
11756 {
11757 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11758 else
11759 {
11760 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11761 else puts (dlerror ());
11762 }
11763 /* dlclose (self); */
11764 }
11765 else
11766 puts (dlerror ());
11767
11768 return status;
11769 }
11770 _LT_EOF
11771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11772 (eval $ac_link) 2>&5
11773 ac_status=$?
11774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11775 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11776 (./conftest; exit; ) >&5 2>/dev/null
11777 lt_status=$?
11778 case x$lt_status in
11779 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11780 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11781 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11782 esac
11783 else :
11784 # compilation failed
11785 lt_cv_dlopen_self_static=no
11786 fi
11787 fi
11788 rm -fr conftest*
11789
11790
11791 fi
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11793 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11794 fi
11795
11796 CPPFLAGS="$save_CPPFLAGS"
11797 LDFLAGS="$save_LDFLAGS"
11798 LIBS="$save_LIBS"
11799 ;;
11800 esac
11801
11802 case $lt_cv_dlopen_self in
11803 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11804 *) enable_dlopen_self=unknown ;;
11805 esac
11806
11807 case $lt_cv_dlopen_self_static in
11808 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11809 *) enable_dlopen_self_static=unknown ;;
11810 esac
11811 fi
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829 striplib=
11830 old_striplib=
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11832 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11833 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11834 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11835 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837 $as_echo "yes" >&6; }
11838 else
11839 # FIXME - insert some real tests, host_os isn't really good enough
11840 case $host_os in
11841 darwin*)
11842 if test -n "$STRIP" ; then
11843 striplib="$STRIP -x"
11844 old_striplib="$STRIP -S"
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11846 $as_echo "yes" >&6; }
11847 else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11850 fi
11851 ;;
11852 *)
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11855 ;;
11856 esac
11857 fi
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870 # Report which library types will actually be built
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11872 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11874 $as_echo "$can_build_shared" >&6; }
11875
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11877 $as_echo_n "checking whether to build shared libraries... " >&6; }
11878 test "$can_build_shared" = "no" && enable_shared=no
11879
11880 # On AIX, shared libraries and static libraries use the same namespace, and
11881 # are all built from PIC.
11882 case $host_os in
11883 aix3*)
11884 test "$enable_shared" = yes && enable_static=no
11885 if test -n "$RANLIB"; then
11886 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11887 postinstall_cmds='$RANLIB $lib'
11888 fi
11889 ;;
11890
11891 aix[4-9]*)
11892 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11893 test "$enable_shared" = yes && enable_static=no
11894 fi
11895 ;;
11896 esac
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11898 $as_echo "$enable_shared" >&6; }
11899
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11901 $as_echo_n "checking whether to build static libraries... " >&6; }
11902 # Make sure either enable_shared or enable_static is yes.
11903 test "$enable_shared" = yes || enable_static=yes
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11905 $as_echo "$enable_static" >&6; }
11906
11907
11908
11909
11910 fi
11911 ac_ext=c
11912 ac_cpp='$CPP $CPPFLAGS'
11913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11916
11917 CC="$lt_save_CC"
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933 ac_config_commands="$ac_config_commands libtool"
11934
11935
11936
11937
11938 # Only expand once:
11939
11940
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11942 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11943 if ${libltdl_cv_shlibext+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946
11947 module=yes
11948 eval libltdl_cv_shlibext=$shrext_cmds
11949 module=no
11950 eval libltdl_cv_shrext=$shrext_cmds
11951
11952 fi
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11954 $as_echo "$libltdl_cv_shlibext" >&6; }
11955 if test -n "$libltdl_cv_shlibext"; then
11956
11957 cat >>confdefs.h <<_ACEOF
11958 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11959 _ACEOF
11960
11961 fi
11962 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11963
11964 cat >>confdefs.h <<_ACEOF
11965 #define LT_SHARED_EXT "$libltdl_cv_shrext"
11966 _ACEOF
11967
11968 fi
11969
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11971 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11972 if ${lt_cv_module_path_var+:} false; then :
11973 $as_echo_n "(cached) " >&6
11974 else
11975 lt_cv_module_path_var="$shlibpath_var"
11976 fi
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11978 $as_echo "$lt_cv_module_path_var" >&6; }
11979 if test -n "$lt_cv_module_path_var"; then
11980
11981 cat >>confdefs.h <<_ACEOF
11982 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11983 _ACEOF
11984
11985 fi
11986
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11988 $as_echo_n "checking for the default library search path... " >&6; }
11989 if ${lt_cv_sys_dlsearch_path+:} false; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11993 fi
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11995 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11996 if test -n "$lt_cv_sys_dlsearch_path"; then
11997 sys_dlsearch_path=
11998 for dir in $lt_cv_sys_dlsearch_path; do
11999 if test -z "$sys_dlsearch_path"; then
12000 sys_dlsearch_path="$dir"
12001 else
12002 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12003 fi
12004 done
12005
12006 cat >>confdefs.h <<_ACEOF
12007 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12008 _ACEOF
12009
12010 fi
12011
12012
12013 LT_DLLOADERS=
12014
12015
12016 ac_ext=c
12017 ac_cpp='$CPP $CPPFLAGS'
12018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12021
12022
12023 LIBADD_DLOPEN=
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12025 $as_echo_n "checking for library containing dlopen... " >&6; }
12026 if ${ac_cv_search_dlopen+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 ac_func_search_save_LIBS=$LIBS
12030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031 /* end confdefs.h. */
12032
12033 /* Override any GCC internal prototype to avoid an error.
12034 Use char because int might match the return type of a GCC
12035 builtin and then its argument prototype would still apply. */
12036 #ifdef __cplusplus
12037 extern "C"
12038 #endif
12039 char dlopen ();
12040 int
12041 main ()
12042 {
12043 return dlopen ();
12044 ;
12045 return 0;
12046 }
12047 _ACEOF
12048 for ac_lib in '' dl; do
12049 if test -z "$ac_lib"; then
12050 ac_res="none required"
12051 else
12052 ac_res=-l$ac_lib
12053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12054 fi
12055 if ac_fn_c_try_link "$LINENO"; then :
12056 ac_cv_search_dlopen=$ac_res
12057 fi
12058 rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext
12060 if ${ac_cv_search_dlopen+:} false; then :
12061 break
12062 fi
12063 done
12064 if ${ac_cv_search_dlopen+:} false; then :
12065
12066 else
12067 ac_cv_search_dlopen=no
12068 fi
12069 rm conftest.$ac_ext
12070 LIBS=$ac_func_search_save_LIBS
12071 fi
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12073 $as_echo "$ac_cv_search_dlopen" >&6; }
12074 ac_res=$ac_cv_search_dlopen
12075 if test "$ac_res" != no; then :
12076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12077
12078 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12079
12080 if test "$ac_cv_search_dlopen" != "none required" ; then
12081 LIBADD_DLOPEN="-ldl"
12082 fi
12083 libltdl_cv_lib_dl_dlopen="yes"
12084 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12085 else
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12088 #if HAVE_DLFCN_H
12089 # include <dlfcn.h>
12090 #endif
12091
12092 int
12093 main ()
12094 {
12095 dlopen(0, 0);
12096 ;
12097 return 0;
12098 }
12099 _ACEOF
12100 if ac_fn_c_try_link "$LINENO"; then :
12101
12102 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12103
12104 libltdl_cv_func_dlopen="yes"
12105 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12106 else
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12108 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12109 if ${ac_cv_lib_svld_dlopen+:} false; then :
12110 $as_echo_n "(cached) " >&6
12111 else
12112 ac_check_lib_save_LIBS=$LIBS
12113 LIBS="-lsvld $LIBS"
12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12116
12117 /* Override any GCC internal prototype to avoid an error.
12118 Use char because int might match the return type of a GCC
12119 builtin and then its argument prototype would still apply. */
12120 #ifdef __cplusplus
12121 extern "C"
12122 #endif
12123 char dlopen ();
12124 int
12125 main ()
12126 {
12127 return dlopen ();
12128 ;
12129 return 0;
12130 }
12131 _ACEOF
12132 if ac_fn_c_try_link "$LINENO"; then :
12133 ac_cv_lib_svld_dlopen=yes
12134 else
12135 ac_cv_lib_svld_dlopen=no
12136 fi
12137 rm -f core conftest.err conftest.$ac_objext \
12138 conftest$ac_exeext conftest.$ac_ext
12139 LIBS=$ac_check_lib_save_LIBS
12140 fi
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12142 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12143 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12144
12145 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12146
12147 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12148 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12149 fi
12150
12151 fi
12152 rm -f core conftest.err conftest.$ac_objext \
12153 conftest$ac_exeext conftest.$ac_ext
12154 fi
12155
12156 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12157 then
12158 lt_save_LIBS="$LIBS"
12159 LIBS="$LIBS $LIBADD_DLOPEN"
12160 for ac_func in dlerror
12161 do :
12162 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12163 if test "x$ac_cv_func_dlerror" = xyes; then :
12164 cat >>confdefs.h <<_ACEOF
12165 #define HAVE_DLERROR 1
12166 _ACEOF
12167
12168 fi
12169 done
12170
12171 LIBS="$lt_save_LIBS"
12172 fi
12173
12174
12175 LIBADD_SHL_LOAD=
12176 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12177 if test "x$ac_cv_func_shl_load" = xyes; then :
12178
12179 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12180
12181 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12182 else
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12184 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12185 if ${ac_cv_lib_dld_shl_load+:} false; then :
12186 $as_echo_n "(cached) " >&6
12187 else
12188 ac_check_lib_save_LIBS=$LIBS
12189 LIBS="-ldld $LIBS"
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192
12193 /* Override any GCC internal prototype to avoid an error.
12194 Use char because int might match the return type of a GCC
12195 builtin and then its argument prototype would still apply. */
12196 #ifdef __cplusplus
12197 extern "C"
12198 #endif
12199 char shl_load ();
12200 int
12201 main ()
12202 {
12203 return shl_load ();
12204 ;
12205 return 0;
12206 }
12207 _ACEOF
12208 if ac_fn_c_try_link "$LINENO"; then :
12209 ac_cv_lib_dld_shl_load=yes
12210 else
12211 ac_cv_lib_dld_shl_load=no
12212 fi
12213 rm -f core conftest.err conftest.$ac_objext \
12214 conftest$ac_exeext conftest.$ac_ext
12215 LIBS=$ac_check_lib_save_LIBS
12216 fi
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12218 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12219 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12220
12221 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12222
12223 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12224 LIBADD_SHL_LOAD="-ldld"
12225 fi
12226
12227 fi
12228
12229
12230
12231 case $host_os in
12232 darwin[1567].*)
12233 # We only want this for pre-Mac OS X 10.4.
12234 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12235 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12236
12237 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12238
12239 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12240 fi
12241
12242 ;;
12243 beos*)
12244 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12245 ;;
12246 cygwin* | mingw* | os2* | pw32*)
12247 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12248 "
12249 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12250 ac_have_decl=1
12251 else
12252 ac_have_decl=0
12253 fi
12254
12255 cat >>confdefs.h <<_ACEOF
12256 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12257 _ACEOF
12258
12259 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12260 ;;
12261 esac
12262
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12264 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12265 if ${ac_cv_lib_dld_dld_link+:} false; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268 ac_check_lib_save_LIBS=$LIBS
12269 LIBS="-ldld $LIBS"
12270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271 /* end confdefs.h. */
12272
12273 /* Override any GCC internal prototype to avoid an error.
12274 Use char because int might match the return type of a GCC
12275 builtin and then its argument prototype would still apply. */
12276 #ifdef __cplusplus
12277 extern "C"
12278 #endif
12279 char dld_link ();
12280 int
12281 main ()
12282 {
12283 return dld_link ();
12284 ;
12285 return 0;
12286 }
12287 _ACEOF
12288 if ac_fn_c_try_link "$LINENO"; then :
12289 ac_cv_lib_dld_dld_link=yes
12290 else
12291 ac_cv_lib_dld_dld_link=no
12292 fi
12293 rm -f core conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295 LIBS=$ac_check_lib_save_LIBS
12296 fi
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12298 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12299 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12300
12301 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12302
12303 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12304 fi
12305
12306
12307
12308
12309 LT_DLPREOPEN=
12310 if test -n "$LT_DLLOADERS"
12311 then
12312 for lt_loader in $LT_DLLOADERS; do
12313 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12314 done
12315
12316 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12317
12318 fi
12319
12320
12321 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12322
12323
12324 ac_ext=c
12325 ac_cpp='$CPP $CPPFLAGS'
12326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12329
12330
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12332 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12333 if ${lt_cv_sys_symbol_underscore+:} false; then :
12334 $as_echo_n "(cached) " >&6
12335 else
12336 lt_cv_sys_symbol_underscore=no
12337 cat > conftest.$ac_ext <<_LT_EOF
12338 void nm_test_func(){}
12339 int main(){nm_test_func;return 0;}
12340 _LT_EOF
12341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12342 (eval $ac_compile) 2>&5
12343 ac_status=$?
12344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12345 test $ac_status = 0; }; then
12346 # Now try to grab the symbols.
12347 ac_nlist=conftest.nm
12348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12349 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12350 ac_status=$?
12351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12352 test $ac_status = 0; } && test -s "$ac_nlist"; then
12353 # See whether the symbols have a leading underscore.
12354 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12355 lt_cv_sys_symbol_underscore=yes
12356 else
12357 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12358 :
12359 else
12360 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12361 fi
12362 fi
12363 else
12364 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12365 fi
12366 else
12367 echo "configure: failed program was:" >&5
12368 cat conftest.c >&5
12369 fi
12370 rm -rf conftest*
12371
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12374 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12375 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12376
12377
12378 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12379 if test x"$libltdl_cv_func_dlopen" = xyes ||
12380 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12382 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12383 if ${libltdl_cv_need_uscore+:} false; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 libltdl_cv_need_uscore=unknown
12387 save_LIBS="$LIBS"
12388 LIBS="$LIBS $LIBADD_DLOPEN"
12389 if test "$cross_compiling" = yes; then :
12390 libltdl_cv_need_uscore=cross
12391 else
12392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12393 lt_status=$lt_dlunknown
12394 cat > conftest.$ac_ext <<_LT_EOF
12395 #line $LINENO "configure"
12396 #include "confdefs.h"
12397
12398 #if HAVE_DLFCN_H
12399 #include <dlfcn.h>
12400 #endif
12401
12402 #include <stdio.h>
12403
12404 #ifdef RTLD_GLOBAL
12405 # define LT_DLGLOBAL RTLD_GLOBAL
12406 #else
12407 # ifdef DL_GLOBAL
12408 # define LT_DLGLOBAL DL_GLOBAL
12409 # else
12410 # define LT_DLGLOBAL 0
12411 # endif
12412 #endif
12413
12414 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12415 find out it does not work in some platform. */
12416 #ifndef LT_DLLAZY_OR_NOW
12417 # ifdef RTLD_LAZY
12418 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12419 # else
12420 # ifdef DL_LAZY
12421 # define LT_DLLAZY_OR_NOW DL_LAZY
12422 # else
12423 # ifdef RTLD_NOW
12424 # define LT_DLLAZY_OR_NOW RTLD_NOW
12425 # else
12426 # ifdef DL_NOW
12427 # define LT_DLLAZY_OR_NOW DL_NOW
12428 # else
12429 # define LT_DLLAZY_OR_NOW 0
12430 # endif
12431 # endif
12432 # endif
12433 # endif
12434 #endif
12435
12436 /* When -fvisbility=hidden is used, assume the code has been annotated
12437 correspondingly for the symbols needed. */
12438 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12439 int fnord () __attribute__((visibility("default")));
12440 #endif
12441
12442 int fnord () { return 42; }
12443 int main ()
12444 {
12445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12446 int status = $lt_dlunknown;
12447
12448 if (self)
12449 {
12450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12451 else
12452 {
12453 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12454 else puts (dlerror ());
12455 }
12456 /* dlclose (self); */
12457 }
12458 else
12459 puts (dlerror ());
12460
12461 return status;
12462 }
12463 _LT_EOF
12464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12465 (eval $ac_link) 2>&5
12466 ac_status=$?
12467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12468 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12469 (./conftest; exit; ) >&5 2>/dev/null
12470 lt_status=$?
12471 case x$lt_status in
12472 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12473 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12474 x$lt_dlunknown|x*) ;;
12475 esac
12476 else :
12477 # compilation failed
12478
12479 fi
12480 fi
12481 rm -fr conftest*
12482
12483 LIBS="$save_LIBS"
12484
12485 fi
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12487 $as_echo "$libltdl_cv_need_uscore" >&6; }
12488 fi
12489 fi
12490
12491 if test x"$libltdl_cv_need_uscore" = xyes; then
12492
12493 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12494
12495 fi
12496
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12498 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12499 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12502 # PORTME does your system automatically load deplibs for dlopen?
12503 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12504 # For now, we just catch OSes we know something about -- in the
12505 # future, we'll try test this programmatically.
12506 lt_cv_sys_dlopen_deplibs=unknown
12507 case $host_os in
12508 aix3*|aix4.1.*|aix4.2.*)
12509 # Unknown whether this is true for these versions of AIX, but
12510 # we want this `case' here to explicitly catch those versions.
12511 lt_cv_sys_dlopen_deplibs=unknown
12512 ;;
12513 aix[4-9]*)
12514 lt_cv_sys_dlopen_deplibs=yes
12515 ;;
12516 amigaos*)
12517 case $host_cpu in
12518 powerpc)
12519 lt_cv_sys_dlopen_deplibs=no
12520 ;;
12521 esac
12522 ;;
12523 darwin*)
12524 # Assuming the user has installed a libdl from somewhere, this is true
12525 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12526 lt_cv_sys_dlopen_deplibs=yes
12527 ;;
12528 freebsd* | dragonfly*)
12529 lt_cv_sys_dlopen_deplibs=yes
12530 ;;
12531 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12532 # GNU and its variants, using gnu ld.so (Glibc)
12533 lt_cv_sys_dlopen_deplibs=yes
12534 ;;
12535 hpux10*|hpux11*)
12536 lt_cv_sys_dlopen_deplibs=yes
12537 ;;
12538 interix*)
12539 lt_cv_sys_dlopen_deplibs=yes
12540 ;;
12541 irix[12345]*|irix6.[01]*)
12542 # Catch all versions of IRIX before 6.2, and indicate that we don't
12543 # know how it worked for any of those versions.
12544 lt_cv_sys_dlopen_deplibs=unknown
12545 ;;
12546 irix*)
12547 # The case above catches anything before 6.2, and it's known that
12548 # at 6.2 and later dlopen does load deplibs.
12549 lt_cv_sys_dlopen_deplibs=yes
12550 ;;
12551 netbsd*)
12552 lt_cv_sys_dlopen_deplibs=yes
12553 ;;
12554 openbsd*)
12555 lt_cv_sys_dlopen_deplibs=yes
12556 ;;
12557 osf[1234]*)
12558 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12559 # it did *not* use an RPATH in a shared library to find objects the
12560 # library depends on, so we explicitly say `no'.
12561 lt_cv_sys_dlopen_deplibs=no
12562 ;;
12563 osf5.0|osf5.0a|osf5.1)
12564 # dlopen *does* load deplibs and with the right loader patch applied
12565 # it even uses RPATH in a shared library to search for shared objects
12566 # that the library depends on, but there's no easy way to know if that
12567 # patch is installed. Since this is the case, all we can really
12568 # say is unknown -- it depends on the patch being installed. If
12569 # it is, this changes to `yes'. Without it, it would be `no'.
12570 lt_cv_sys_dlopen_deplibs=unknown
12571 ;;
12572 osf*)
12573 # the two cases above should catch all versions of osf <= 5.1. Read
12574 # the comments above for what we know about them.
12575 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12576 # is used to find them so we can finally say `yes'.
12577 lt_cv_sys_dlopen_deplibs=yes
12578 ;;
12579 qnx*)
12580 lt_cv_sys_dlopen_deplibs=yes
12581 ;;
12582 solaris*)
12583 lt_cv_sys_dlopen_deplibs=yes
12584 ;;
12585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12586 libltdl_cv_sys_dlopen_deplibs=yes
12587 ;;
12588 esac
12589
12590 fi
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12592 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12593 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12594
12595 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12596
12597 fi
12598
12599 :
12600
12601 for ac_header in argz.h
12602 do :
12603 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12604 "
12605 if test "x$ac_cv_header_argz_h" = xyes; then :
12606 cat >>confdefs.h <<_ACEOF
12607 #define HAVE_ARGZ_H 1
12608 _ACEOF
12609
12610 fi
12611
12612 done
12613
12614
12615 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12616 # include <argz.h>
12617 #endif
12618 "
12619 if test "x$ac_cv_type_error_t" = xyes; then :
12620
12621 cat >>confdefs.h <<_ACEOF
12622 #define HAVE_ERROR_T 1
12623 _ACEOF
12624
12625
12626 else
12627
12628 $as_echo "#define error_t int" >>confdefs.h
12629
12630
12631 $as_echo "#define __error_t_defined 1" >>confdefs.h
12632
12633 fi
12634
12635
12636 ARGZ_H=
12637 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12638 argz_next argz_stringify
12639 do :
12640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12642 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12643 cat >>confdefs.h <<_ACEOF
12644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12645 _ACEOF
12646
12647 else
12648 ARGZ_H=argz.h;
12649
12650 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12651
12652 fi
12653 done
12654
12655
12656 if test -z "$ARGZ_H"; then :
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12658 $as_echo_n "checking if argz actually works... " >&6; }
12659 if ${lt_cv_sys_argz_works+:} false; then :
12660 $as_echo_n "(cached) " >&6
12661 else
12662 case $host_os in #(
12663 *cygwin*)
12664 lt_cv_sys_argz_works=no
12665 if test "$cross_compiling" != no; then
12666 lt_cv_sys_argz_works="guessing no"
12667 else
12668 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12669 save_IFS=$IFS
12670 IFS=-.
12671 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12672 IFS=$save_IFS
12673 lt_os_major=${2-0}
12674 lt_os_minor=${3-0}
12675 lt_os_micro=${4-0}
12676 if test "$lt_os_major" -gt 1 \
12677 || { test "$lt_os_major" -eq 1 \
12678 && { test "$lt_os_minor" -gt 5 \
12679 || { test "$lt_os_minor" -eq 5 \
12680 && test "$lt_os_micro" -gt 24; }; }; }; then
12681 lt_cv_sys_argz_works=yes
12682 fi
12683 fi
12684 ;; #(
12685 *) lt_cv_sys_argz_works=yes ;;
12686 esac
12687 fi
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12689 $as_echo "$lt_cv_sys_argz_works" >&6; }
12690 if test "$lt_cv_sys_argz_works" = yes; then :
12691
12692 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12693
12694 else
12695 ARGZ_H=argz.h
12696
12697
12698 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12699
12700 fi
12701 fi
12702
12703
12704
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12706 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12707 if ${libltdl_cv_preloaded_symbols+:} false; then :
12708 $as_echo_n "(cached) " >&6
12709 else
12710 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12711 libltdl_cv_preloaded_symbols=yes
12712 else
12713 libltdl_cv_preloaded_symbols=no
12714 fi
12715
12716 fi
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12718 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12719 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12720
12721 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12722
12723 fi
12724
12725 # Set options
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737 # Check whether --with-included_ltdl was given.
12738 if test "${with_included_ltdl+set}" = set; then :
12739 withval=$with_included_ltdl;
12740 fi
12741
12742
12743 if test "x$with_included_ltdl" != xyes; then
12744 # We are not being forced to use the included libltdl sources, so
12745 # decide whether there is a useful installed version we can use.
12746 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12747
12748 "
12749 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12750 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12751 #include <ltdl.h>
12752 "
12753 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12755 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12756 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 ac_check_lib_save_LIBS=$LIBS
12760 LIBS="-lltdl $LIBS"
12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h. */
12763
12764 /* Override any GCC internal prototype to avoid an error.
12765 Use char because int might match the return type of a GCC
12766 builtin and then its argument prototype would still apply. */
12767 #ifdef __cplusplus
12768 extern "C"
12769 #endif
12770 char lt_dladvise_preload ();
12771 int
12772 main ()
12773 {
12774 return lt_dladvise_preload ();
12775 ;
12776 return 0;
12777 }
12778 _ACEOF
12779 if ac_fn_c_try_link "$LINENO"; then :
12780 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12781 else
12782 ac_cv_lib_ltdl_lt_dladvise_preload=no
12783 fi
12784 rm -f core conftest.err conftest.$ac_objext \
12785 conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_lib_save_LIBS
12787 fi
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12789 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12790 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12791 with_included_ltdl=no
12792 else
12793 with_included_ltdl=yes
12794 fi
12795
12796 else
12797 with_included_ltdl=yes
12798 fi
12799
12800 else
12801 with_included_ltdl=yes
12802 fi
12803
12804
12805 fi
12806
12807
12808
12809
12810 # Check whether --with-ltdl_include was given.
12811 if test "${with_ltdl_include+set}" = set; then :
12812 withval=$with_ltdl_include;
12813 fi
12814
12815
12816 if test -n "$with_ltdl_include"; then
12817 if test -f "$with_ltdl_include/ltdl.h"; then :
12818 else
12819 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12820 fi
12821 else
12822 with_ltdl_include=no
12823 fi
12824
12825
12826 # Check whether --with-ltdl_lib was given.
12827 if test "${with_ltdl_lib+set}" = set; then :
12828 withval=$with_ltdl_lib;
12829 fi
12830
12831
12832 if test -n "$with_ltdl_lib"; then
12833 if test -f "$with_ltdl_lib/libltdl.la"; then :
12834 else
12835 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12836 fi
12837 else
12838 with_ltdl_lib=no
12839 fi
12840
12841 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12842 ,yes,no,no,)
12843 case $enable_ltdl_convenience in
12844 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12845 "") enable_ltdl_convenience=yes
12846 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12847 esac
12848 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12849 LTDLDEPS=$LIBLTDL
12850 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12851
12852
12853
12854
12855
12856 # For backwards non-gettext consistent compatibility...
12857 INCLTDL="$LTDLINCL"
12858
12859
12860 ;;
12861 ,no,no,no,)
12862 # If the included ltdl is not to be used, then use the
12863 # preinstalled libltdl we found.
12864
12865 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12866
12867 LIBLTDL=-lltdl
12868 LTDLDEPS=
12869 LTDLINCL=
12870 ;;
12871 ,no*,no,*)
12872 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12873 ;;
12874 *) with_included_ltdl=no
12875 LIBLTDL="-L$with_ltdl_lib -lltdl"
12876 LTDLDEPS=
12877 LTDLINCL="-I$with_ltdl_include"
12878 ;;
12879 esac
12880 INCLTDL="$LTDLINCL"
12881
12882 # Report our decision...
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12884 $as_echo_n "checking where to find libltdl headers... " >&6; }
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12886 $as_echo "$LTDLINCL" >&6; }
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12888 $as_echo_n "checking where to find libltdl library... " >&6; }
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12890 $as_echo "$LIBLTDL" >&6; }
12891
12892
12893
12894 # Check whether --enable-ltdl-install was given.
12895 if test "${enable_ltdl_install+set}" = set; then :
12896 enableval=$enable_ltdl_install;
12897 fi
12898
12899
12900 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12901 *yes*) ;;
12902 *) enable_ltdl_convenience=yes ;;
12903 esac
12904
12905 if test x"${enable_ltdl_install-no}" != xno; then
12906 INSTALL_LTDL_TRUE=
12907 INSTALL_LTDL_FALSE='#'
12908 else
12909 INSTALL_LTDL_TRUE='#'
12910 INSTALL_LTDL_FALSE=
12911 fi
12912
12913 if test x"${enable_ltdl_convenience-no}" != xno; then
12914 CONVENIENCE_LTDL_TRUE=
12915 CONVENIENCE_LTDL_FALSE='#'
12916 else
12917 CONVENIENCE_LTDL_TRUE='#'
12918 CONVENIENCE_LTDL_FALSE=
12919 fi
12920
12921
12922
12923
12924
12925
12926 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12927 # the user used. This is so that ltdl.h can pick up the parent projects
12928 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12929 # definitions required by ltdl.c.
12930 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12931
12932
12933
12934 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12935 do :
12936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12937 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12938 "
12939 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12940 cat >>confdefs.h <<_ACEOF
12941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12942 _ACEOF
12943
12944 fi
12945
12946 done
12947
12948
12949 for ac_func in closedir opendir readdir
12950 do :
12951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12952 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12953 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12954 cat >>confdefs.h <<_ACEOF
12955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12956 _ACEOF
12957
12958 else
12959
12960
12961 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12962
12963 fi
12964 done
12965
12966 for ac_func in strlcat strlcpy
12967 do :
12968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12969 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12970 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12971 cat >>confdefs.h <<_ACEOF
12972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12973 _ACEOF
12974
12975 else
12976
12977
12978 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12979
12980 fi
12981 done
12982
12983
12984
12985 cat >>confdefs.h <<_ACEOF
12986 #define LT_LIBEXT "$libext"
12987 _ACEOF
12988
12989
12990 name=
12991 eval "lt_libprefix=\"$libname_spec\""
12992
12993 cat >>confdefs.h <<_ACEOF
12994 #define LT_LIBPREFIX "$lt_libprefix"
12995 _ACEOF
12996
12997
12998 name=ltdl
12999 eval "LTDLOPEN=\"$libname_spec\""
13000
13001
13002
13003
13004
13005
13006
13007
13008 # Only expand once:
13009
13010
13011 LIBTOOL="$LIBTOOL --silent"
13012
13013 # Checks for libraries.
13014
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13016 $as_echo_n "checking for library containing socket... " >&6; }
13017 if ${ac_cv_search_socket+:} false; then :
13018 $as_echo_n "(cached) " >&6
13019 else
13020 ac_func_search_save_LIBS=$LIBS
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13023
13024 /* Override any GCC internal prototype to avoid an error.
13025 Use char because int might match the return type of a GCC
13026 builtin and then its argument prototype would still apply. */
13027 #ifdef __cplusplus
13028 extern "C"
13029 #endif
13030 char socket ();
13031 int
13032 main ()
13033 {
13034 return socket ();
13035 ;
13036 return 0;
13037 }
13038 _ACEOF
13039 for ac_lib in '' socket; do
13040 if test -z "$ac_lib"; then
13041 ac_res="none required"
13042 else
13043 ac_res=-l$ac_lib
13044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13045 fi
13046 if ac_fn_c_try_link "$LINENO"; then :
13047 ac_cv_search_socket=$ac_res
13048 fi
13049 rm -f core conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext
13051 if ${ac_cv_search_socket+:} false; then :
13052 break
13053 fi
13054 done
13055 if ${ac_cv_search_socket+:} false; then :
13056
13057 else
13058 ac_cv_search_socket=no
13059 fi
13060 rm conftest.$ac_ext
13061 LIBS=$ac_func_search_save_LIBS
13062 fi
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13064 $as_echo "$ac_cv_search_socket" >&6; }
13065 ac_res=$ac_cv_search_socket
13066 if test "$ac_res" != no; then :
13067 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13068
13069 else
13070 as_fn_error $? "socket library not found" "$LINENO" 5
13071 fi
13072
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13074 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13075 if ${ac_cv_search_inet_ntoa+:} false; then :
13076 $as_echo_n "(cached) " >&6
13077 else
13078 ac_func_search_save_LIBS=$LIBS
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13081
13082 /* Override any GCC internal prototype to avoid an error.
13083 Use char because int might match the return type of a GCC
13084 builtin and then its argument prototype would still apply. */
13085 #ifdef __cplusplus
13086 extern "C"
13087 #endif
13088 char inet_ntoa ();
13089 int
13090 main ()
13091 {
13092 return inet_ntoa ();
13093 ;
13094 return 0;
13095 }
13096 _ACEOF
13097 for ac_lib in '' nsl; do
13098 if test -z "$ac_lib"; then
13099 ac_res="none required"
13100 else
13101 ac_res=-l$ac_lib
13102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13103 fi
13104 if ac_fn_c_try_link "$LINENO"; then :
13105 ac_cv_search_inet_ntoa=$ac_res
13106 fi
13107 rm -f core conftest.err conftest.$ac_objext \
13108 conftest$ac_exeext
13109 if ${ac_cv_search_inet_ntoa+:} false; then :
13110 break
13111 fi
13112 done
13113 if ${ac_cv_search_inet_ntoa+:} false; then :
13114
13115 else
13116 ac_cv_search_inet_ntoa=no
13117 fi
13118 rm conftest.$ac_ext
13119 LIBS=$ac_func_search_save_LIBS
13120 fi
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13122 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13123 ac_res=$ac_cv_search_inet_ntoa
13124 if test "$ac_res" != no; then :
13125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13126
13127 fi
13128
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13130 $as_echo_n "checking for library containing inet_aton... " >&6; }
13131 if ${ac_cv_search_inet_aton+:} false; then :
13132 $as_echo_n "(cached) " >&6
13133 else
13134 ac_func_search_save_LIBS=$LIBS
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13137
13138 /* Override any GCC internal prototype to avoid an error.
13139 Use char because int might match the return type of a GCC
13140 builtin and then its argument prototype would still apply. */
13141 #ifdef __cplusplus
13142 extern "C"
13143 #endif
13144 char inet_aton ();
13145 int
13146 main ()
13147 {
13148 return inet_aton ();
13149 ;
13150 return 0;
13151 }
13152 _ACEOF
13153 for ac_lib in '' resolv; do
13154 if test -z "$ac_lib"; then
13155 ac_res="none required"
13156 else
13157 ac_res=-l$ac_lib
13158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13159 fi
13160 if ac_fn_c_try_link "$LINENO"; then :
13161 ac_cv_search_inet_aton=$ac_res
13162 fi
13163 rm -f core conftest.err conftest.$ac_objext \
13164 conftest$ac_exeext
13165 if ${ac_cv_search_inet_aton+:} false; then :
13166 break
13167 fi
13168 done
13169 if ${ac_cv_search_inet_aton+:} false; then :
13170
13171 else
13172 ac_cv_search_inet_aton=no
13173 fi
13174 rm conftest.$ac_ext
13175 LIBS=$ac_func_search_save_LIBS
13176 fi
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13178 $as_echo "$ac_cv_search_inet_aton" >&6; }
13179 ac_res=$ac_cv_search_inet_aton
13180 if test "$ac_res" != no; then :
13181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13182
13183 fi
13184
13185 for ac_func in inet_aton inet_ntop inet_pton
13186 do :
13187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13188 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13189 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13190 cat >>confdefs.h <<_ACEOF
13191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13192 _ACEOF
13193
13194 fi
13195 done
13196
13197 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13198 #include <sys/socket.h>
13199 #include <netdb.h>
13200
13201 "
13202 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13203
13204 cat >>confdefs.h <<_ACEOF
13205 #define HAVE_STRUCT_SOCKADDR_IN 1
13206 _ACEOF
13207
13208
13209 fi
13210 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13211 #include <sys/socket.h>
13212 #include <netdb.h>
13213
13214 "
13215 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13216
13217 cat >>confdefs.h <<_ACEOF
13218 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13219 _ACEOF
13220
13221
13222 fi
13223 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13224 #include <sys/socket.h>
13225 #include <netdb.h>
13226
13227 "
13228 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13229
13230 cat >>confdefs.h <<_ACEOF
13231 #define HAVE_STRUCT_ADDRINFO 1
13232 _ACEOF
13233
13234
13235 fi
13236
13237 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13238 <sys/socket.h>
13239 "
13240 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13241
13242 cat >>confdefs.h <<_ACEOF
13243 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13244 _ACEOF
13245
13246
13247 fi
13248
13249
13250
13251 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13252 "
13253 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13254
13255 $as_echo "#define IPV6 1" >>confdefs.h
13256
13257 fi
13258
13259
13260
13261 # Checks for typedefs, structures, and compiler characteristics.
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13263 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13264 if ${ac_cv_c_bigendian+:} false; then :
13265 $as_echo_n "(cached) " >&6
13266 else
13267 ac_cv_c_bigendian=unknown
13268 # See if we're dealing with a universal compiler.
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h. */
13271 #ifndef __APPLE_CC__
13272 not a universal capable compiler
13273 #endif
13274 typedef int dummy;
13275
13276 _ACEOF
13277 if ac_fn_c_try_compile "$LINENO"; then :
13278
13279 # Check for potential -arch flags. It is not universal unless
13280 # there are at least two -arch flags with different values.
13281 ac_arch=
13282 ac_prev=
13283 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13284 if test -n "$ac_prev"; then
13285 case $ac_word in
13286 i?86 | x86_64 | ppc | ppc64)
13287 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13288 ac_arch=$ac_word
13289 else
13290 ac_cv_c_bigendian=universal
13291 break
13292 fi
13293 ;;
13294 esac
13295 ac_prev=
13296 elif test "x$ac_word" = "x-arch"; then
13297 ac_prev=arch
13298 fi
13299 done
13300 fi
13301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302 if test $ac_cv_c_bigendian = unknown; then
13303 # See if sys/param.h defines the BYTE_ORDER macro.
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13306 #include <sys/types.h>
13307 #include <sys/param.h>
13308
13309 int
13310 main ()
13311 {
13312 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13313 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13314 && LITTLE_ENDIAN)
13315 bogus endian macros
13316 #endif
13317
13318 ;
13319 return 0;
13320 }
13321 _ACEOF
13322 if ac_fn_c_try_compile "$LINENO"; then :
13323 # It does; now see whether it defined to BIG_ENDIAN or not.
13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325 /* end confdefs.h. */
13326 #include <sys/types.h>
13327 #include <sys/param.h>
13328
13329 int
13330 main ()
13331 {
13332 #if BYTE_ORDER != BIG_ENDIAN
13333 not big endian
13334 #endif
13335
13336 ;
13337 return 0;
13338 }
13339 _ACEOF
13340 if ac_fn_c_try_compile "$LINENO"; then :
13341 ac_cv_c_bigendian=yes
13342 else
13343 ac_cv_c_bigendian=no
13344 fi
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346 fi
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 fi
13349 if test $ac_cv_c_bigendian = unknown; then
13350 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13353 #include <limits.h>
13354
13355 int
13356 main ()
13357 {
13358 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13359 bogus endian macros
13360 #endif
13361
13362 ;
13363 return 0;
13364 }
13365 _ACEOF
13366 if ac_fn_c_try_compile "$LINENO"; then :
13367 # It does; now see whether it defined to _BIG_ENDIAN or not.
13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h. */
13370 #include <limits.h>
13371
13372 int
13373 main ()
13374 {
13375 #ifndef _BIG_ENDIAN
13376 not big endian
13377 #endif
13378
13379 ;
13380 return 0;
13381 }
13382 _ACEOF
13383 if ac_fn_c_try_compile "$LINENO"; then :
13384 ac_cv_c_bigendian=yes
13385 else
13386 ac_cv_c_bigendian=no
13387 fi
13388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13389 fi
13390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391 fi
13392 if test $ac_cv_c_bigendian = unknown; then
13393 # Compile a test program.
13394 if test "$cross_compiling" = yes; then :
13395 # Try to guess by grepping values from an object file.
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13398 short int ascii_mm[] =
13399 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13400 short int ascii_ii[] =
13401 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13402 int use_ascii (int i) {
13403 return ascii_mm[i] + ascii_ii[i];
13404 }
13405 short int ebcdic_ii[] =
13406 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13407 short int ebcdic_mm[] =
13408 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13409 int use_ebcdic (int i) {
13410 return ebcdic_mm[i] + ebcdic_ii[i];
13411 }
13412 extern int foo;
13413
13414 int
13415 main ()
13416 {
13417 return use_ascii (foo) == use_ebcdic (foo);
13418 ;
13419 return 0;
13420 }
13421 _ACEOF
13422 if ac_fn_c_try_compile "$LINENO"; then :
13423 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13424 ac_cv_c_bigendian=yes
13425 fi
13426 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13427 if test "$ac_cv_c_bigendian" = unknown; then
13428 ac_cv_c_bigendian=no
13429 else
13430 # finding both strings is unlikely to happen, but who knows?
13431 ac_cv_c_bigendian=unknown
13432 fi
13433 fi
13434 fi
13435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13436 else
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13439 $ac_includes_default
13440 int
13441 main ()
13442 {
13443
13444 /* Are we little or big endian? From Harbison&Steele. */
13445 union
13446 {
13447 long int l;
13448 char c[sizeof (long int)];
13449 } u;
13450 u.l = 1;
13451 return u.c[sizeof (long int) - 1] == 1;
13452
13453 ;
13454 return 0;
13455 }
13456 _ACEOF
13457 if ac_fn_c_try_run "$LINENO"; then :
13458 ac_cv_c_bigendian=no
13459 else
13460 ac_cv_c_bigendian=yes
13461 fi
13462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13463 conftest.$ac_objext conftest.beam conftest.$ac_ext
13464 fi
13465
13466 fi
13467 fi
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13469 $as_echo "$ac_cv_c_bigendian" >&6; }
13470 case $ac_cv_c_bigendian in #(
13471 yes)
13472 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13473 ;; #(
13474 no)
13475 ;; #(
13476 universal)
13477
13478 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13479
13480 ;; #(
13481 *)
13482 as_fn_error $? "unknown endianness
13483 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13484 esac
13485
13486
13487 # Checks for library functions.
13488
13489
13490
13491 for ac_func in $ac_func_list
13492 do :
13493 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13494 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13495 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13496 cat >>confdefs.h <<_ACEOF
13497 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13498 _ACEOF
13499
13500 fi
13501 done
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517 # Checks for header files.
13518
13519
13520
13521 for ac_header in $ac_header_list
13522 do :
13523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13524 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13525 "
13526 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13527 cat >>confdefs.h <<_ACEOF
13528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13529 _ACEOF
13530
13531 fi
13532
13533 done
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561 # check for /dev/null so we can use it to hold evil fd's
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
13563 $as_echo_n "checking for /dev/null... " >&6; }
13564 if test -c /dev/null; then :
13565
13566
13567 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
13568
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13570 $as_echo "yes" >&6; }
13571 else
13572
13573
13574 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
13575
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
13577 $as_echo "no - using devnull.log" >&6; }
13578 fi
13579
13580
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13582 $as_echo_n "checking for library containing crypt... " >&6; }
13583 if ${ac_cv_search_crypt+:} false; then :
13584 $as_echo_n "(cached) " >&6
13585 else
13586 ac_func_search_save_LIBS=$LIBS
13587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13589
13590 /* Override any GCC internal prototype to avoid an error.
13591 Use char because int might match the return type of a GCC
13592 builtin and then its argument prototype would still apply. */
13593 #ifdef __cplusplus
13594 extern "C"
13595 #endif
13596 char crypt ();
13597 int
13598 main ()
13599 {
13600 return crypt ();
13601 ;
13602 return 0;
13603 }
13604 _ACEOF
13605 for ac_lib in '' crypt; do
13606 if test -z "$ac_lib"; then
13607 ac_res="none required"
13608 else
13609 ac_res=-l$ac_lib
13610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13611 fi
13612 if ac_fn_c_try_link "$LINENO"; then :
13613 ac_cv_search_crypt=$ac_res
13614 fi
13615 rm -f core conftest.err conftest.$ac_objext \
13616 conftest$ac_exeext
13617 if ${ac_cv_search_crypt+:} false; then :
13618 break
13619 fi
13620 done
13621 if ${ac_cv_search_crypt+:} false; then :
13622
13623 else
13624 ac_cv_search_crypt=no
13625 fi
13626 rm conftest.$ac_ext
13627 LIBS=$ac_func_search_save_LIBS
13628 fi
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13630 $as_echo "$ac_cv_search_crypt" >&6; }
13631 ac_res=$ac_cv_search_crypt
13632 if test "$ac_res" != no; then :
13633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13634
13635 fi
13636
13637
13638
13639
13640 # Check whether --with-zlib-path was given.
13641 if test "${with_zlib_path+set}" = set; then :
13642 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
13643 fi
13644
13645
13646 # Check whether --enable-zlib was given.
13647 if test "${enable_zlib+set}" = set; then :
13648 enableval=$enable_zlib; zlib=$enableval
13649 else
13650 zlib=yes
13651 fi
13652
13653
13654 if test "$zlib" = "yes"; then :
13655
13656 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13657 if test "x$ac_cv_header_zlib_h" = xyes; then :
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
13659 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
13660 if ${ac_cv_lib_z_zlibVersion+:} false; then :
13661 $as_echo_n "(cached) " >&6
13662 else
13663 ac_check_lib_save_LIBS=$LIBS
13664 LIBS="-lz $LIBS"
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13667
13668 /* Override any GCC internal prototype to avoid an error.
13669 Use char because int might match the return type of a GCC
13670 builtin and then its argument prototype would still apply. */
13671 #ifdef __cplusplus
13672 extern "C"
13673 #endif
13674 char zlibVersion ();
13675 int
13676 main ()
13677 {
13678 return zlibVersion ();
13679 ;
13680 return 0;
13681 }
13682 _ACEOF
13683 if ac_fn_c_try_link "$LINENO"; then :
13684 ac_cv_lib_z_zlibVersion=yes
13685 else
13686 ac_cv_lib_z_zlibVersion=no
13687 fi
13688 rm -f core conftest.err conftest.$ac_objext \
13689 conftest$ac_exeext conftest.$ac_ext
13690 LIBS=$ac_check_lib_save_LIBS
13691 fi
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
13693 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
13694 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
13695
13696 LIBS="-lz $LIBS"
13697
13698 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
13699
13700
13701 else
13702 zlib=no
13703 fi
13704
13705
13706 else
13707 zlib=no
13708 fi
13709
13710
13711
13712 fi
13713
13714
13715 # Check whether --with-libpcre-path was given.
13716 if test "${with_libpcre_path+set}" = set; then :
13717 withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
13718 fi
13719
13720
13721 # Check whether --enable-libpcre was given.
13722 if test "${enable_libpcre+set}" = set; then :
13723 enableval=$enable_libpcre; libpcre=$enableval
13724 else
13725 libpcre=yes
13726 fi
13727
13728
13729 if test "$libpcre" = "yes"; then :
13730
13731 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
13732 if test "x$ac_cv_header_pcre_h" = xyes; then :
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
13734 $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
13735 if ${ac_cv_lib_pcre_pcre_study+:} false; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738 ac_check_lib_save_LIBS=$LIBS
13739 LIBS="-lpcre $LIBS"
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13742
13743 /* Override any GCC internal prototype to avoid an error.
13744 Use char because int might match the return type of a GCC
13745 builtin and then its argument prototype would still apply. */
13746 #ifdef __cplusplus
13747 extern "C"
13748 #endif
13749 char pcre_study ();
13750 int
13751 main ()
13752 {
13753 return pcre_study ();
13754 ;
13755 return 0;
13756 }
13757 _ACEOF
13758 if ac_fn_c_try_link "$LINENO"; then :
13759 ac_cv_lib_pcre_pcre_study=yes
13760 else
13761 ac_cv_lib_pcre_pcre_study=no
13762 fi
13763 rm -f core conftest.err conftest.$ac_objext \
13764 conftest$ac_exeext conftest.$ac_ext
13765 LIBS=$ac_check_lib_save_LIBS
13766 fi
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
13768 $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
13769 if test "x$ac_cv_lib_pcre_pcre_study" = xyes; then :
13770
13771 LIBS="-lpcre $LIBS"
13772
13773 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13774
13775
13776 else
13777 libpcre=no
13778 fi
13779
13780
13781 else
13782 libpcre=no
13783 fi
13784
13785
13786
13787 fi
13788 if test "$libpcre" = yes; then
13789 ENABLE_PCRE_TRUE=
13790 ENABLE_PCRE_FALSE='#'
13791 else
13792 ENABLE_PCRE_TRUE='#'
13793 ENABLE_PCRE_FALSE=
13794 fi
13795
13796
13797
13798 # Check whether --enable-openssl was given.
13799 if test "${enable_openssl+set}" = set; then :
13800 enableval=$enable_openssl; cf_enable_openssl=$enableval
13801 else
13802 cf_enable_openssl="auto"
13803 fi
13804
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13806 $as_echo_n "checking for OpenSSL... " >&6; }
13807 if test "$cf_enable_openssl" != "no"; then
13808 cf_openssl_basedir=""
13809 if test "$cf_enable_openssl" != "auto" &&
13810 test "$cf_enable_openssl" != "yes"; then
13811 cf_openssl_basedir="${cf_enable_openssl}"
13812 else
13813 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13814 /opt /opt/openssl /usr/local/openssl; do
13815 if test -f "${dirs}/include/openssl/opensslv.h"; then
13816 cf_openssl_basedir="${dirs}"
13817 break
13818 fi
13819 done
13820 unset dirs
13821 fi
13822
13823 if test ! -z "$cf_openssl_basedir"; then
13824 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13825 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13826 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13827 else
13828 cf_openssl_basedir=""
13829 fi
13830 else
13831 if test -f "/usr/include/openssl/opensslv.h"; then
13832 cf_openssl_basedir="/usr"
13833 fi
13834 fi
13835
13836 if test ! -z "$cf_openssl_basedir"; then
13837 LIBS="-lcrypto -lssl $LIBS"
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13839 $as_echo "$cf_openssl_basedir" >&6; }
13840 cf_enable_openssl="yes"
13841
13842 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13843
13844 else
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13846 $as_echo "not found. Please check your path." >&6; }
13847 cf_enable_openssl="no"
13848 fi
13849 unset cf_openssl_basedir
13850 else
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13852 $as_echo "disabled" >&6; }
13853 fi
13854
13855 if test "$cf_enable_openssl" != "no"; then :
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
13857 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
13858 if test "$cross_compiling" = yes; then :
13859 cf_openssl_version_ok=no
13860 else
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863
13864
13865 #include <openssl/opensslv.h>
13866 #include <stdlib.h>
13867 int
13868 main ()
13869 {
13870 exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
13871 ;
13872 return 0;
13873 }
13874 _ACEOF
13875 if ac_fn_c_try_run "$LINENO"; then :
13876 cf_openssl_version_ok=yes
13877 else
13878 cf_openssl_version_ok=no
13879 fi
13880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13881 conftest.$ac_objext conftest.beam conftest.$ac_ext
13882 fi
13883
13884
13885 if test "$cf_openssl_version_ok" = "yes"; then :
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13887 $as_echo "found" >&6; }
13888
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13890 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13891 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13892 $as_echo_n "(cached) " >&6
13893 else
13894 ac_check_lib_save_LIBS=$LIBS
13895 LIBS="-lcrypto $LIBS"
13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897 /* end confdefs.h. */
13898
13899 /* Override any GCC internal prototype to avoid an error.
13900 Use char because int might match the return type of a GCC
13901 builtin and then its argument prototype would still apply. */
13902 #ifdef __cplusplus
13903 extern "C"
13904 #endif
13905 char RSA_free ();
13906 int
13907 main ()
13908 {
13909 return RSA_free ();
13910 ;
13911 return 0;
13912 }
13913 _ACEOF
13914 if ac_fn_c_try_link "$LINENO"; then :
13915 ac_cv_lib_crypto_RSA_free=yes
13916 else
13917 ac_cv_lib_crypto_RSA_free=no
13918 fi
13919 rm -f core conftest.err conftest.$ac_objext \
13920 conftest$ac_exeext conftest.$ac_ext
13921 LIBS=$ac_check_lib_save_LIBS
13922 fi
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13924 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13925 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13926 cat >>confdefs.h <<_ACEOF
13927 #define HAVE_LIBCRYPTO 1
13928 _ACEOF
13929
13930 LIBS="-lcrypto $LIBS"
13931
13932 fi
13933
13934 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13935 for ac_func in EVP_bf_cfb \
13936 EVP_cast5_cfb \
13937 EVP_idea_cfb \
13938 EVP_rc5_32_12_16_cfb \
13939 EVP_des_ede3_cfb \
13940 EVP_des_cfb
13941 do :
13942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13943 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13944 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13945 cat >>confdefs.h <<_ACEOF
13946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13947 _ACEOF
13948
13949 fi
13950 done
13951
13952 fi
13953
13954 else
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13956 $as_echo "no - OpenSSL support disabled" >&6; }
13957 cf_enable_openssl="no"
13958 fi
13959 fi
13960
13961 if test "$cf_enable_openssl" = yes; then
13962 ENABLE_SSL_TRUE=
13963 ENABLE_SSL_FALSE='#'
13964 else
13965 ENABLE_SSL_TRUE='#'
13966 ENABLE_SSL_FALSE=
13967 fi
13968
13969
13970
13971 # Check whether --enable-assert was given.
13972 if test "${enable_assert+set}" = set; then :
13973 enableval=$enable_assert; assert=$enableval
13974 else
13975 assert=no
13976 fi
13977
13978
13979 if test "$assert" = "no"; then :
13980
13981 $as_echo "#define NDEBUG 1" >>confdefs.h
13982
13983 fi
13984
13985
13986 # Check whether --enable-small-net was given.
13987 if test "${enable_small_net+set}" = set; then :
13988 enableval=$enable_small_net; small_net=$enableval
13989 else
13990 small_net=no
13991 fi
13992
13993
13994 if test "$small_net" = "yes"; then :
13995
13996
13997 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13998
13999
14000 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
14001
14002
14003 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
14004
14005
14006 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
14007
14008
14009 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
14010
14011
14012 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
14013
14014
14015 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
14016
14017
14018 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
14019
14020
14021 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
14022
14023
14024 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
14025
14026 else
14027
14028
14029
14030 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
14031
14032
14033 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
14034
14035
14036 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
14037
14038
14039 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
14040
14041
14042 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
14043
14044
14045 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
14046
14047
14048 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
14049
14050
14051 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
14052
14053
14054 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
14055
14056
14057 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
14058
14059 fi
14060
14061
14062 # Argument processing.
14063
14064 desired_iopoll_mechanism="none"
14065 # Check whether --enable-kqueue was given.
14066 if test "${enable_kqueue+set}" = set; then :
14067 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14068 fi
14069
14070 # Check whether --enable-epoll was given.
14071 if test "${enable_epoll+set}" = set; then :
14072 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14073 fi
14074
14075 # Check whether --enable-devpoll was given.
14076 if test "${enable_devpoll+set}" = set; then :
14077 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14078 fi
14079
14080 # Check whether --enable-rtsigio was given.
14081 if test "${enable_rtsigio+set}" = set; then :
14082 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
14083 fi
14084
14085 # Check whether --enable-poll was given.
14086 if test "${enable_poll+set}" = set; then :
14087 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14088 fi
14089
14090 # Check whether --enable-select was given.
14091 if test "${enable_select+set}" = set; then :
14092 enableval=$enable_select; desired_iopoll_mechanism="select"
14093 fi
14094
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14096 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14097 iopoll_mechanism_none=0
14098
14099 cat >>confdefs.h <<_ACEOF
14100 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14101 _ACEOF
14102
14103 iopoll_mechanism_kqueue=1
14104
14105 cat >>confdefs.h <<_ACEOF
14106 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14107 _ACEOF
14108
14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14111 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14113 #define kevent innocuous_kevent
14114
14115 /* System header to define __stub macros and hopefully few prototypes,
14116 which can conflict with char kevent (); below.
14117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14118 <limits.h> exists even on freestanding compilers. */
14119
14120 #ifdef __STDC__
14121 # include <limits.h>
14122 #else
14123 # include <assert.h>
14124 #endif
14125
14126 #undef kevent
14127
14128 /* Override any GCC internal prototype to avoid an error.
14129 Use char because int might match the return type of a GCC
14130 builtin and then its argument prototype would still apply. */
14131 #ifdef __cplusplus
14132 extern "C"
14133 #endif
14134 char kevent ();
14135 /* The GNU C library defines this for functions which it implements
14136 to always fail with ENOSYS. Some functions are actually named
14137 something starting with __ and the normal name is an alias. */
14138 #if defined __stub_kevent || defined __stub___kevent
14139 choke me
14140 #endif
14141
14142 int
14143 main ()
14144 {
14145 return kevent ();
14146 ;
14147 return 0;
14148 }
14149 _ACEOF
14150 if ac_fn_c_try_link "$LINENO"; then :
14151 is_kqueue_mechanism_available="yes"
14152 else
14153 is_kqueue_mechanism_available="no"
14154 fi
14155 rm -f core conftest.err conftest.$ac_objext \
14156 conftest$ac_exeext conftest.$ac_ext
14157 iopoll_mechanism_epoll=2
14158
14159 cat >>confdefs.h <<_ACEOF
14160 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14161 _ACEOF
14162
14163 if test "$cross_compiling" = yes; then :
14164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14166 as_fn_error $? "cannot run test program while cross compiling
14167 See \`config.log' for more details" "$LINENO" 5; }
14168 else
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14171
14172 #include <sys/epoll.h>
14173 #include <sys/syscall.h>
14174 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14175 #if !defined(__NR_epoll_create)
14176 #if defined(__ia64__)
14177 #define __NR_epoll_create 1243
14178 #elif defined(__x86_64__)
14179 #define __NR_epoll_create 214
14180 #elif defined(__sparc64__) || defined(__sparc__)
14181 #define __NR_epoll_create 193
14182 #elif defined(__s390__) || defined(__m68k__)
14183 #define __NR_epoll_create 249
14184 #elif defined(__ppc64__) || defined(__ppc__)
14185 #define __NR_epoll_create 236
14186 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14187 #define __NR_epoll_create 224
14188 #elif defined(__alpha__)
14189 #define __NR_epoll_create 407
14190 #elif defined(__sh64__)
14191 #define __NR_epoll_create 282
14192 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14193 #define __NR_epoll_create 254
14194 #else
14195 #error No system call numbers defined for epoll family.
14196 #endif
14197 #endif
14198 _syscall1(int, epoll_create, int, size)
14199 #endif
14200
14201 int
14202 main ()
14203 {
14204 return epoll_create(256) == -1 ? 1 : 0
14205 ;
14206 return 0;
14207 }
14208 _ACEOF
14209 if ac_fn_c_try_run "$LINENO"; then :
14210 is_epoll_mechanism_available="yes"
14211 else
14212 is_epoll_mechanism_available="no"
14213 fi
14214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14215 conftest.$ac_objext conftest.beam conftest.$ac_ext
14216 fi
14217
14218 iopoll_mechanism_devpoll=3
14219
14220 cat >>confdefs.h <<_ACEOF
14221 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14222 _ACEOF
14223
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 #include <devpoll.h>
14227 int
14228 main ()
14229 {
14230
14231 ;
14232 return 0;
14233 }
14234 _ACEOF
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236 is_devpoll_mechanism_available="yes"
14237 else
14238 is_devpoll_mechanism_available="no"
14239 fi
14240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14241 if test "$is_devpoll_mechanism_available" = "yes" ; then
14242
14243 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14244
14245 fi
14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14248 #include <sys/devpoll.h>
14249 int
14250 main ()
14251 {
14252
14253 ;
14254 return 0;
14255 }
14256 _ACEOF
14257 if ac_fn_c_try_compile "$LINENO"; then :
14258 is_devpoll_mechanism_available="yes"
14259 else
14260 is_devpoll_mechanism_available="no"
14261 fi
14262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14263 if test "$is_devpoll_mechanism_available" = "yes" ; then
14264
14265 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14266
14267 fi
14268 iopoll_mechanism_rtsigio=4
14269
14270 cat >>confdefs.h <<_ACEOF
14271 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
14272 _ACEOF
14273
14274 if test "$cross_compiling" = yes; then :
14275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14277 as_fn_error $? "cannot run test program while cross compiling
14278 See \`config.log' for more details" "$LINENO" 5; }
14279 else
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282
14283 #define _GNU_SOURCE
14284 #include <fcntl.h>
14285 static unsigned int have_f_setsig = 0;
14286
14287 int
14288 main ()
14289 {
14290
14291 #ifdef F_SETSIG
14292 have_f_setsig = 1;
14293 #endif
14294 return have_f_setsig == 0;
14295
14296 ;
14297 return 0;
14298 }
14299 _ACEOF
14300 if ac_fn_c_try_run "$LINENO"; then :
14301 is_rtsigio_mechanism_available="yes"
14302 else
14303 is_rtsigio_mechanism_available="no"
14304 fi
14305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14306 conftest.$ac_objext conftest.beam conftest.$ac_ext
14307 fi
14308
14309 iopoll_mechanism_poll=5
14310
14311 cat >>confdefs.h <<_ACEOF
14312 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14313 _ACEOF
14314
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14317 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14319 #define poll innocuous_poll
14320
14321 /* System header to define __stub macros and hopefully few prototypes,
14322 which can conflict with char poll (); below.
14323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14324 <limits.h> exists even on freestanding compilers. */
14325
14326 #ifdef __STDC__
14327 # include <limits.h>
14328 #else
14329 # include <assert.h>
14330 #endif
14331
14332 #undef poll
14333
14334 /* Override any GCC internal prototype to avoid an error.
14335 Use char because int might match the return type of a GCC
14336 builtin and then its argument prototype would still apply. */
14337 #ifdef __cplusplus
14338 extern "C"
14339 #endif
14340 char poll ();
14341 /* The GNU C library defines this for functions which it implements
14342 to always fail with ENOSYS. Some functions are actually named
14343 something starting with __ and the normal name is an alias. */
14344 #if defined __stub_poll || defined __stub___poll
14345 choke me
14346 #endif
14347
14348 int
14349 main ()
14350 {
14351 return poll ();
14352 ;
14353 return 0;
14354 }
14355 _ACEOF
14356 if ac_fn_c_try_link "$LINENO"; then :
14357 is_poll_mechanism_available="yes"
14358 else
14359 is_poll_mechanism_available="no"
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14363 iopoll_mechanism_select=6
14364
14365 cat >>confdefs.h <<_ACEOF
14366 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14367 _ACEOF
14368
14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h. */
14371 /* Define select to an innocuous variant, in case <limits.h> declares select.
14372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14373 #define select innocuous_select
14374
14375 /* System header to define __stub macros and hopefully few prototypes,
14376 which can conflict with char select (); below.
14377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14378 <limits.h> exists even on freestanding compilers. */
14379
14380 #ifdef __STDC__
14381 # include <limits.h>
14382 #else
14383 # include <assert.h>
14384 #endif
14385
14386 #undef select
14387
14388 /* Override any GCC internal prototype to avoid an error.
14389 Use char because int might match the return type of a GCC
14390 builtin and then its argument prototype would still apply. */
14391 #ifdef __cplusplus
14392 extern "C"
14393 #endif
14394 char select ();
14395 /* The GNU C library defines this for functions which it implements
14396 to always fail with ENOSYS. Some functions are actually named
14397 something starting with __ and the normal name is an alias. */
14398 #if defined __stub_select || defined __stub___select
14399 choke me
14400 #endif
14401
14402 int
14403 main ()
14404 {
14405 return select ();
14406 ;
14407 return 0;
14408 }
14409 _ACEOF
14410 if ac_fn_c_try_link "$LINENO"; then :
14411 is_select_mechanism_available="yes"
14412 else
14413 is_select_mechanism_available="no"
14414 fi
14415 rm -f core conftest.err conftest.$ac_objext \
14416 conftest$ac_exeext conftest.$ac_ext
14417 optimal_iopoll_mechanism="none"
14418 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
14419 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14420 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14421 optimal_iopoll_mechanism="$mechanism"
14422 break
14423 fi
14424 done
14425 if test "$desired_iopoll_mechanism" = "none" ; then
14426 if test "$optimal_iopoll_mechanism" = "none" ; then
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14428 $as_echo "none" >&6; }
14429 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14430 else
14431 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14433 $as_echo "$selected_iopoll_mechanism" >&6; }
14434 fi
14435 else
14436 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14437 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14438 selected_iopoll_mechanism=$desired_iopoll_mechanism
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14440 $as_echo "$selected_iopoll_mechanism" >&6; }
14441 else
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14443 $as_echo "none" >&6; }
14444 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14445 fi
14446 fi
14447 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14448
14449 cat >>confdefs.h <<_ACEOF
14450 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14451 _ACEOF
14452
14453
14454
14455
14456 # Check whether --with-nicklen was given.
14457 if test "${with_nicklen+set}" = set; then :
14458 withval=$with_nicklen; nicklen="$withval"
14459 else
14460 nicklen="9"
14461 fi
14462
14463
14464 cat >>confdefs.h <<_ACEOF
14465 #define NICKLEN ($nicklen+1)
14466 _ACEOF
14467
14468
14469
14470
14471 # Check whether --with-topiclen was given.
14472 if test "${with_topiclen+set}" = set; then :
14473 withval=$with_topiclen; topiclen="$withval"
14474 else
14475 topiclen="160"
14476 fi
14477
14478
14479 cat >>confdefs.h <<_ACEOF
14480 #define TOPICLEN ($topiclen)
14481 _ACEOF
14482
14483
14484
14485 # Check whether --enable-efnet was given.
14486 if test "${enable_efnet+set}" = set; then :
14487 enableval=$enable_efnet; efnet="$enableval"
14488 else
14489 efnet="no"
14490 fi
14491
14492 if test "$efnet" = "yes" ; then
14493 use_efnet="yes"
14494
14495 $as_echo "#define EFNET 1" >>confdefs.h
14496
14497 else
14498 use_efnet="no"
14499 fi
14500 if test "$use_efnet" = "yes"; then
14501 EFNET_TRUE=
14502 EFNET_FALSE='#'
14503 else
14504 EFNET_TRUE='#'
14505 EFNET_FALSE=
14506 fi
14507
14508
14509
14510 # Check whether --enable-halfops was given.
14511 if test "${enable_halfops+set}" = set; then :
14512 enableval=$enable_halfops; halfops="$enableval"
14513 else
14514 halfops="no"
14515 fi
14516
14517 if test "$halfops" = "yes" ; then
14518
14519 $as_echo "#define HALFOPS 1" >>confdefs.h
14520
14521 fi
14522
14523
14524 # Check whether --enable-debugging was given.
14525 if test "${enable_debugging+set}" = set; then :
14526 enableval=$enable_debugging; debugging="$enableval"
14527 else
14528 debugging="no"
14529 fi
14530
14531 if test "$debugging" = "yes" ; then
14532
14533 $as_echo "#define DEBUG 1" >>confdefs.h
14534
14535 CFLAGS="-Wall -g -O0"
14536 else
14537
14538 $as_echo "#define NDEBUG 1" >>confdefs.h
14539
14540 fi
14541
14542
14543 # Check whether --enable-warnings was given.
14544 if test "${enable_warnings+set}" = set; then :
14545 enableval=$enable_warnings; warnings="$enableval"
14546 else
14547 warnings="no"
14548 fi
14549
14550 if test "$warnings" = "yes" ; then
14551 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14552 fi
14553
14554
14555
14556 prefix_NONE=
14557 exec_prefix_NONE=
14558 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14559 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14560 eval ac_define_dir="\"$prefix\""
14561 eval ac_define_dir="\"$ac_define_dir\""
14562 PREFIX="$ac_define_dir"
14563
14564
14565 cat >>confdefs.h <<_ACEOF
14566 #define PREFIX "$ac_define_dir"
14567 _ACEOF
14568
14569 test "$prefix_NONE" && prefix=NONE
14570 test "$exec_prefix_NONE" && exec_prefix=NONE
14571
14572
14573 prefix_NONE=
14574 exec_prefix_NONE=
14575 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14576 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14577 eval ac_define_dir="\"$sysconfdir\""
14578 eval ac_define_dir="\"$ac_define_dir\""
14579 SYSCONFDIR="$ac_define_dir"
14580
14581
14582 cat >>confdefs.h <<_ACEOF
14583 #define SYSCONFDIR "$ac_define_dir"
14584 _ACEOF
14585
14586 test "$prefix_NONE" && prefix=NONE
14587 test "$exec_prefix_NONE" && exec_prefix=NONE
14588
14589
14590 prefix_NONE=
14591 exec_prefix_NONE=
14592 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14593 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14594 eval ac_define_dir="\"$libdir\""
14595 eval ac_define_dir="\"$ac_define_dir\""
14596 LIBDIR="$ac_define_dir"
14597
14598
14599 cat >>confdefs.h <<_ACEOF
14600 #define LIBDIR "$ac_define_dir"
14601 _ACEOF
14602
14603 test "$prefix_NONE" && prefix=NONE
14604 test "$exec_prefix_NONE" && exec_prefix=NONE
14605
14606
14607 prefix_NONE=
14608 exec_prefix_NONE=
14609 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14610 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14611 eval ac_define_dir="\"$datadir\""
14612 eval ac_define_dir="\"$ac_define_dir\""
14613 DATADIR="$ac_define_dir"
14614
14615
14616 cat >>confdefs.h <<_ACEOF
14617 #define DATADIR "$ac_define_dir"
14618 _ACEOF
14619
14620 test "$prefix_NONE" && prefix=NONE
14621 test "$exec_prefix_NONE" && exec_prefix=NONE
14622
14623
14624 prefix_NONE=
14625 exec_prefix_NONE=
14626 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14627 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14628 eval ac_define_dir="\"$localstatedir\""
14629 eval ac_define_dir="\"$ac_define_dir\""
14630 LOCALSTATEDIR="$ac_define_dir"
14631
14632
14633 cat >>confdefs.h <<_ACEOF
14634 #define LOCALSTATEDIR "$ac_define_dir"
14635 _ACEOF
14636
14637 test "$prefix_NONE" && prefix=NONE
14638 test "$exec_prefix_NONE" && exec_prefix=NONE
14639
14640
14641 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"
14642
14643
14644 cat >confcache <<\_ACEOF
14645 # This file is a shell script that caches the results of configure
14646 # tests run on this system so they can be shared between configure
14647 # scripts and configure runs, see configure's option --config-cache.
14648 # It is not useful on other systems. If it contains results you don't
14649 # want to keep, you may remove or edit it.
14650 #
14651 # config.status only pays attention to the cache file if you give it
14652 # the --recheck option to rerun configure.
14653 #
14654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14656 # following values.
14657
14658 _ACEOF
14659
14660 # The following way of writing the cache mishandles newlines in values,
14661 # but we know of no workaround that is simple, portable, and efficient.
14662 # So, we kill variables containing newlines.
14663 # Ultrix sh set writes to stderr and can't be redirected directly,
14664 # and sets the high bit in the cache file unless we assign to the vars.
14665 (
14666 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14667 eval ac_val=\$$ac_var
14668 case $ac_val in #(
14669 *${as_nl}*)
14670 case $ac_var in #(
14671 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14672 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14673 esac
14674 case $ac_var in #(
14675 _ | IFS | as_nl) ;; #(
14676 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14677 *) { eval $ac_var=; unset $ac_var;} ;;
14678 esac ;;
14679 esac
14680 done
14681
14682 (set) 2>&1 |
14683 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14684 *${as_nl}ac_space=\ *)
14685 # `set' does not quote correctly, so add quotes: double-quote
14686 # substitution turns \\\\ into \\, and sed turns \\ into \.
14687 sed -n \
14688 "s/'/'\\\\''/g;
14689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14690 ;; #(
14691 *)
14692 # `set' quotes correctly as required by POSIX, so do not add quotes.
14693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14694 ;;
14695 esac |
14696 sort
14697 ) |
14698 sed '
14699 /^ac_cv_env_/b end
14700 t clear
14701 :clear
14702 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14703 t end
14704 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14705 :end' >>confcache
14706 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14707 if test -w "$cache_file"; then
14708 if test "x$cache_file" != "x/dev/null"; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14710 $as_echo "$as_me: updating cache $cache_file" >&6;}
14711 if test ! -f "$cache_file" || test -h "$cache_file"; then
14712 cat confcache >"$cache_file"
14713 else
14714 case $cache_file in #(
14715 */* | ?:*)
14716 mv -f confcache "$cache_file"$$ &&
14717 mv -f "$cache_file"$$ "$cache_file" ;; #(
14718 *)
14719 mv -f confcache "$cache_file" ;;
14720 esac
14721 fi
14722 fi
14723 else
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14725 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14726 fi
14727 fi
14728 rm -f confcache
14729
14730 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14731 # Let make expand exec_prefix.
14732 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14733
14734 DEFS=-DHAVE_CONFIG_H
14735
14736 ac_libobjs=
14737 ac_ltlibobjs=
14738 U=
14739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14740 # 1. Remove the extension, and $U if already installed.
14741 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14742 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14743 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14744 # will be set to the directory where LIBOBJS objects are built.
14745 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14746 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14747 done
14748 LIBOBJS=$ac_libobjs
14749
14750 LTLIBOBJS=$ac_ltlibobjs
14751
14752
14753 if test -n "$EXEEXT"; then
14754 am__EXEEXT_TRUE=
14755 am__EXEEXT_FALSE='#'
14756 else
14757 am__EXEEXT_TRUE='#'
14758 am__EXEEXT_FALSE=
14759 fi
14760
14761 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14762 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14764 fi
14765 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14766 as_fn_error $? "conditional \"AMDEP\" was never defined.
14767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14768 fi
14769 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14770 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14772 fi
14773 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14774 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14776 fi
14777 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14778 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14780 fi
14781 LT_CONFIG_H=config.h
14782
14783 _ltdl_libobjs=
14784 _ltdl_ltlibobjs=
14785 if test -n "$_LT_LIBOBJS"; then
14786 # Remove the extension.
14787 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14788 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14789 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14790 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14791 done
14792 fi
14793 ltdl_LIBOBJS=$_ltdl_libobjs
14794
14795 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14796
14797
14798
14799 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
14800 as_fn_error $? "conditional \"ENABLE_PCRE\" was never defined.
14801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14802 fi
14803 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14804 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14806 fi
14807 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
14808 as_fn_error $? "conditional \"EFNET\" was never defined.
14809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14810 fi
14811
14812 : "${CONFIG_STATUS=./config.status}"
14813 ac_write_fail=0
14814 ac_clean_files_save=$ac_clean_files
14815 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14817 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14818 as_write_fail=0
14819 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14820 #! $SHELL
14821 # Generated by $as_me.
14822 # Run this file to recreate the current configuration.
14823 # Compiler output produced by configure, useful for debugging
14824 # configure, is in config.log if it exists.
14825
14826 debug=false
14827 ac_cs_recheck=false
14828 ac_cs_silent=false
14829
14830 SHELL=\${CONFIG_SHELL-$SHELL}
14831 export SHELL
14832 _ASEOF
14833 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14834 ## -------------------- ##
14835 ## M4sh Initialization. ##
14836 ## -------------------- ##
14837
14838 # Be more Bourne compatible
14839 DUALCASE=1; export DUALCASE # for MKS sh
14840 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14841 emulate sh
14842 NULLCMD=:
14843 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14844 # is contrary to our usage. Disable this feature.
14845 alias -g '${1+"$@"}'='"$@"'
14846 setopt NO_GLOB_SUBST
14847 else
14848 case `(set -o) 2>/dev/null` in #(
14849 *posix*) :
14850 set -o posix ;; #(
14851 *) :
14852 ;;
14853 esac
14854 fi
14855
14856
14857 as_nl='
14858 '
14859 export as_nl
14860 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14861 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14862 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14864 # Prefer a ksh shell builtin over an external printf program on Solaris,
14865 # but without wasting forks for bash or zsh.
14866 if test -z "$BASH_VERSION$ZSH_VERSION" \
14867 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14868 as_echo='print -r --'
14869 as_echo_n='print -rn --'
14870 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14871 as_echo='printf %s\n'
14872 as_echo_n='printf %s'
14873 else
14874 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14875 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14876 as_echo_n='/usr/ucb/echo -n'
14877 else
14878 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14879 as_echo_n_body='eval
14880 arg=$1;
14881 case $arg in #(
14882 *"$as_nl"*)
14883 expr "X$arg" : "X\\(.*\\)$as_nl";
14884 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14885 esac;
14886 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14887 '
14888 export as_echo_n_body
14889 as_echo_n='sh -c $as_echo_n_body as_echo'
14890 fi
14891 export as_echo_body
14892 as_echo='sh -c $as_echo_body as_echo'
14893 fi
14894
14895 # The user is always right.
14896 if test "${PATH_SEPARATOR+set}" != set; then
14897 PATH_SEPARATOR=:
14898 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14899 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14900 PATH_SEPARATOR=';'
14901 }
14902 fi
14903
14904
14905 # IFS
14906 # We need space, tab and new line, in precisely that order. Quoting is
14907 # there to prevent editors from complaining about space-tab.
14908 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14909 # splitting by setting IFS to empty value.)
14910 IFS=" "" $as_nl"
14911
14912 # Find who we are. Look in the path if we contain no directory separator.
14913 as_myself=
14914 case $0 in #((
14915 *[\\/]* ) as_myself=$0 ;;
14916 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14917 for as_dir in $PATH
14918 do
14919 IFS=$as_save_IFS
14920 test -z "$as_dir" && as_dir=.
14921 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14922 done
14923 IFS=$as_save_IFS
14924
14925 ;;
14926 esac
14927 # We did not find ourselves, most probably we were run as `sh COMMAND'
14928 # in which case we are not to be found in the path.
14929 if test "x$as_myself" = x; then
14930 as_myself=$0
14931 fi
14932 if test ! -f "$as_myself"; then
14933 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14934 exit 1
14935 fi
14936
14937 # Unset variables that we do not need and which cause bugs (e.g. in
14938 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14939 # suppresses any "Segmentation fault" message there. '((' could
14940 # trigger a bug in pdksh 5.2.14.
14941 for as_var in BASH_ENV ENV MAIL MAILPATH
14942 do eval test x\${$as_var+set} = xset \
14943 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14944 done
14945 PS1='$ '
14946 PS2='> '
14947 PS4='+ '
14948
14949 # NLS nuisances.
14950 LC_ALL=C
14951 export LC_ALL
14952 LANGUAGE=C
14953 export LANGUAGE
14954
14955 # CDPATH.
14956 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14957
14958
14959 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14960 # ----------------------------------------
14961 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14962 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14963 # script with STATUS, using 1 if that was 0.
14964 as_fn_error ()
14965 {
14966 as_status=$1; test $as_status -eq 0 && as_status=1
14967 if test "$4"; then
14968 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14969 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14970 fi
14971 $as_echo "$as_me: error: $2" >&2
14972 as_fn_exit $as_status
14973 } # as_fn_error
14974
14975
14976 # as_fn_set_status STATUS
14977 # -----------------------
14978 # Set $? to STATUS, without forking.
14979 as_fn_set_status ()
14980 {
14981 return $1
14982 } # as_fn_set_status
14983
14984 # as_fn_exit STATUS
14985 # -----------------
14986 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14987 as_fn_exit ()
14988 {
14989 set +e
14990 as_fn_set_status $1
14991 exit $1
14992 } # as_fn_exit
14993
14994 # as_fn_unset VAR
14995 # ---------------
14996 # Portably unset VAR.
14997 as_fn_unset ()
14998 {
14999 { eval $1=; unset $1;}
15000 }
15001 as_unset=as_fn_unset
15002 # as_fn_append VAR VALUE
15003 # ----------------------
15004 # Append the text in VALUE to the end of the definition contained in VAR. Take
15005 # advantage of any shell optimizations that allow amortized linear growth over
15006 # repeated appends, instead of the typical quadratic growth present in naive
15007 # implementations.
15008 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15009 eval 'as_fn_append ()
15010 {
15011 eval $1+=\$2
15012 }'
15013 else
15014 as_fn_append ()
15015 {
15016 eval $1=\$$1\$2
15017 }
15018 fi # as_fn_append
15019
15020 # as_fn_arith ARG...
15021 # ------------------
15022 # Perform arithmetic evaluation on the ARGs, and store the result in the
15023 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15024 # must be portable across $(()) and expr.
15025 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15026 eval 'as_fn_arith ()
15027 {
15028 as_val=$(( $* ))
15029 }'
15030 else
15031 as_fn_arith ()
15032 {
15033 as_val=`expr "$@" || test $? -eq 1`
15034 }
15035 fi # as_fn_arith
15036
15037
15038 if expr a : '\(a\)' >/dev/null 2>&1 &&
15039 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15040 as_expr=expr
15041 else
15042 as_expr=false
15043 fi
15044
15045 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15046 as_basename=basename
15047 else
15048 as_basename=false
15049 fi
15050
15051 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15052 as_dirname=dirname
15053 else
15054 as_dirname=false
15055 fi
15056
15057 as_me=`$as_basename -- "$0" ||
15058 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15059 X"$0" : 'X\(//\)$' \| \
15060 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15061 $as_echo X/"$0" |
15062 sed '/^.*\/\([^/][^/]*\)\/*$/{
15063 s//\1/
15064 q
15065 }
15066 /^X\/\(\/\/\)$/{
15067 s//\1/
15068 q
15069 }
15070 /^X\/\(\/\).*/{
15071 s//\1/
15072 q
15073 }
15074 s/.*/./; q'`
15075
15076 # Avoid depending upon Character Ranges.
15077 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15078 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15079 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15080 as_cr_digits='0123456789'
15081 as_cr_alnum=$as_cr_Letters$as_cr_digits
15082
15083 ECHO_C= ECHO_N= ECHO_T=
15084 case `echo -n x` in #(((((
15085 -n*)
15086 case `echo 'xy\c'` in
15087 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15088 xy) ECHO_C='\c';;
15089 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15090 ECHO_T=' ';;
15091 esac;;
15092 *)
15093 ECHO_N='-n';;
15094 esac
15095
15096 rm -f conf$$ conf$$.exe conf$$.file
15097 if test -d conf$$.dir; then
15098 rm -f conf$$.dir/conf$$.file
15099 else
15100 rm -f conf$$.dir
15101 mkdir conf$$.dir 2>/dev/null
15102 fi
15103 if (echo >conf$$.file) 2>/dev/null; then
15104 if ln -s conf$$.file conf$$ 2>/dev/null; then
15105 as_ln_s='ln -s'
15106 # ... but there are two gotchas:
15107 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15108 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15109 # In both cases, we have to default to `cp -p'.
15110 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15111 as_ln_s='cp -p'
15112 elif ln conf$$.file conf$$ 2>/dev/null; then
15113 as_ln_s=ln
15114 else
15115 as_ln_s='cp -p'
15116 fi
15117 else
15118 as_ln_s='cp -p'
15119 fi
15120 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15121 rmdir conf$$.dir 2>/dev/null
15122
15123
15124 # as_fn_mkdir_p
15125 # -------------
15126 # Create "$as_dir" as a directory, including parents if necessary.
15127 as_fn_mkdir_p ()
15128 {
15129
15130 case $as_dir in #(
15131 -*) as_dir=./$as_dir;;
15132 esac
15133 test -d "$as_dir" || eval $as_mkdir_p || {
15134 as_dirs=
15135 while :; do
15136 case $as_dir in #(
15137 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15138 *) as_qdir=$as_dir;;
15139 esac
15140 as_dirs="'$as_qdir' $as_dirs"
15141 as_dir=`$as_dirname -- "$as_dir" ||
15142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15143 X"$as_dir" : 'X\(//\)[^/]' \| \
15144 X"$as_dir" : 'X\(//\)$' \| \
15145 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15146 $as_echo X"$as_dir" |
15147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15148 s//\1/
15149 q
15150 }
15151 /^X\(\/\/\)[^/].*/{
15152 s//\1/
15153 q
15154 }
15155 /^X\(\/\/\)$/{
15156 s//\1/
15157 q
15158 }
15159 /^X\(\/\).*/{
15160 s//\1/
15161 q
15162 }
15163 s/.*/./; q'`
15164 test -d "$as_dir" && break
15165 done
15166 test -z "$as_dirs" || eval "mkdir $as_dirs"
15167 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15168
15169
15170 } # as_fn_mkdir_p
15171 if mkdir -p . 2>/dev/null; then
15172 as_mkdir_p='mkdir -p "$as_dir"'
15173 else
15174 test -d ./-p && rmdir ./-p
15175 as_mkdir_p=false
15176 fi
15177
15178 if test -x / >/dev/null 2>&1; then
15179 as_test_x='test -x'
15180 else
15181 if ls -dL / >/dev/null 2>&1; then
15182 as_ls_L_option=L
15183 else
15184 as_ls_L_option=
15185 fi
15186 as_test_x='
15187 eval sh -c '\''
15188 if test -d "$1"; then
15189 test -d "$1/.";
15190 else
15191 case $1 in #(
15192 -*)set "./$1";;
15193 esac;
15194 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15195 ???[sx]*):;;*)false;;esac;fi
15196 '\'' sh
15197 '
15198 fi
15199 as_executable_p=$as_test_x
15200
15201 # Sed expression to map a string onto a valid CPP name.
15202 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15203
15204 # Sed expression to map a string onto a valid variable name.
15205 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15206
15207
15208 exec 6>&1
15209 ## ----------------------------------- ##
15210 ## Main body of $CONFIG_STATUS script. ##
15211 ## ----------------------------------- ##
15212 _ASEOF
15213 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15214
15215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15216 # Save the log message, to keep $0 and so on meaningful, and to
15217 # report actual input values of CONFIG_FILES etc. instead of their
15218 # values after options handling.
15219 ac_log="
15220 This file was extended by ircd-hybrid $as_me 8beta1, which was
15221 generated by GNU Autoconf 2.68. Invocation command line was
15222
15223 CONFIG_FILES = $CONFIG_FILES
15224 CONFIG_HEADERS = $CONFIG_HEADERS
15225 CONFIG_LINKS = $CONFIG_LINKS
15226 CONFIG_COMMANDS = $CONFIG_COMMANDS
15227 $ $0 $@
15228
15229 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15230 "
15231
15232 _ACEOF
15233
15234 case $ac_config_files in *"
15235 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15236 esac
15237
15238 case $ac_config_headers in *"
15239 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15240 esac
15241
15242
15243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15244 # Files that config.status was made for.
15245 config_files="$ac_config_files"
15246 config_headers="$ac_config_headers"
15247 config_commands="$ac_config_commands"
15248
15249 _ACEOF
15250
15251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15252 ac_cs_usage="\
15253 \`$as_me' instantiates files and other configuration actions
15254 from templates according to the current configuration. Unless the files
15255 and actions are specified as TAGs, all are instantiated by default.
15256
15257 Usage: $0 [OPTION]... [TAG]...
15258
15259 -h, --help print this help, then exit
15260 -V, --version print version number and configuration settings, then exit
15261 --config print configuration, then exit
15262 -q, --quiet, --silent
15263 do not print progress messages
15264 -d, --debug don't remove temporary files
15265 --recheck update $as_me by reconfiguring in the same conditions
15266 --file=FILE[:TEMPLATE]
15267 instantiate the configuration file FILE
15268 --header=FILE[:TEMPLATE]
15269 instantiate the configuration header FILE
15270
15271 Configuration files:
15272 $config_files
15273
15274 Configuration headers:
15275 $config_headers
15276
15277 Configuration commands:
15278 $config_commands
15279
15280 Report bugs to <bugs@ircd-hybrid.org>."
15281
15282 _ACEOF
15283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15284 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15285 ac_cs_version="\\
15286 ircd-hybrid config.status 8beta1
15287 configured by $0, generated by GNU Autoconf 2.68,
15288 with options \\"\$ac_cs_config\\"
15289
15290 Copyright (C) 2010 Free Software Foundation, Inc.
15291 This config.status script is free software; the Free Software Foundation
15292 gives unlimited permission to copy, distribute and modify it."
15293
15294 ac_pwd='$ac_pwd'
15295 srcdir='$srcdir'
15296 INSTALL='$INSTALL'
15297 MKDIR_P='$MKDIR_P'
15298 AWK='$AWK'
15299 test -n "\$AWK" || AWK=awk
15300 _ACEOF
15301
15302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15303 # The default lists apply if the user does not specify any file.
15304 ac_need_defaults=:
15305 while test $# != 0
15306 do
15307 case $1 in
15308 --*=?*)
15309 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15310 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15311 ac_shift=:
15312 ;;
15313 --*=)
15314 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15315 ac_optarg=
15316 ac_shift=:
15317 ;;
15318 *)
15319 ac_option=$1
15320 ac_optarg=$2
15321 ac_shift=shift
15322 ;;
15323 esac
15324
15325 case $ac_option in
15326 # Handling of the options.
15327 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15328 ac_cs_recheck=: ;;
15329 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15330 $as_echo "$ac_cs_version"; exit ;;
15331 --config | --confi | --conf | --con | --co | --c )
15332 $as_echo "$ac_cs_config"; exit ;;
15333 --debug | --debu | --deb | --de | --d | -d )
15334 debug=: ;;
15335 --file | --fil | --fi | --f )
15336 $ac_shift
15337 case $ac_optarg in
15338 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15339 '') as_fn_error $? "missing file argument" ;;
15340 esac
15341 as_fn_append CONFIG_FILES " '$ac_optarg'"
15342 ac_need_defaults=false;;
15343 --header | --heade | --head | --hea )
15344 $ac_shift
15345 case $ac_optarg in
15346 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15347 esac
15348 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15349 ac_need_defaults=false;;
15350 --he | --h)
15351 # Conflict between --help and --header
15352 as_fn_error $? "ambiguous option: \`$1'
15353 Try \`$0 --help' for more information.";;
15354 --help | --hel | -h )
15355 $as_echo "$ac_cs_usage"; exit ;;
15356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15357 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15358 ac_cs_silent=: ;;
15359
15360 # This is an error.
15361 -*) as_fn_error $? "unrecognized option: \`$1'
15362 Try \`$0 --help' for more information." ;;
15363
15364 *) as_fn_append ac_config_targets " $1"
15365 ac_need_defaults=false ;;
15366
15367 esac
15368 shift
15369 done
15370
15371 ac_configure_extra_args=
15372
15373 if $ac_cs_silent; then
15374 exec 6>/dev/null
15375 ac_configure_extra_args="$ac_configure_extra_args --silent"
15376 fi
15377
15378 _ACEOF
15379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15380 if \$ac_cs_recheck; then
15381 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15382 shift
15383 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15384 CONFIG_SHELL='$SHELL'
15385 export CONFIG_SHELL
15386 exec "\$@"
15387 fi
15388
15389 _ACEOF
15390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15391 exec 5>>config.log
15392 {
15393 echo
15394 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15395 ## Running $as_me. ##
15396 _ASBOX
15397 $as_echo "$ac_log"
15398 } >&5
15399
15400 _ACEOF
15401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15402 #
15403 # INIT-COMMANDS
15404 #
15405 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15406
15407
15408 # The HP-UX ksh and POSIX shell print the target directory to stdout
15409 # if CDPATH is set.
15410 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15411
15412 sed_quote_subst='$sed_quote_subst'
15413 double_quote_subst='$double_quote_subst'
15414 delay_variable_subst='$delay_variable_subst'
15415 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15416 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15417 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15418 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15419 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15420 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15421 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15422 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15423 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15424 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15425 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15426 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15427 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15428 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15429 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15430 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15431 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15432 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15433 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15434 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15435 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15436 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15437 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15438 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15439 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15440 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15441 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15442 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15443 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15444 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15445 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15446 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15447 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15448 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15449 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15450 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15451 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15452 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15453 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15454 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15455 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15456 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15457 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15458 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15459 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15460 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15461 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15462 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15463 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15464 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15465 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15466 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15467 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15468 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15469 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15470 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15471 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"`'
15472 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15473 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15474 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15475 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15476 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15477 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15478 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15479 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15480 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15481 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15482 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15483 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15484 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15485 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15486 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15487 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15488 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15489 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15490 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15491 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15492 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15493 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15494 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15495 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15496 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15497 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15498 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15499 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15500 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15501 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15502 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15503 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15504 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15505 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15506 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15507 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15508 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15509 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15510 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15511 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15512 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15513 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15514 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15515 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15516 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15517 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15518 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15519 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15520 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15521 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15522 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15523 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15524 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15525 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15526 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15527 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15528 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15529 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15530 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15531 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15532 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15533 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15534 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15535 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15536 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15537 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15538 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15539 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15540 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15541 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15542 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15543 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15544 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15545
15546 LTCC='$LTCC'
15547 LTCFLAGS='$LTCFLAGS'
15548 compiler='$compiler_DEFAULT'
15549
15550 # A function that is used when there is no print builtin or printf.
15551 func_fallback_echo ()
15552 {
15553 eval 'cat <<_LTECHO_EOF
15554 \$1
15555 _LTECHO_EOF'
15556 }
15557
15558 # Quote evaled strings.
15559 for var in SHELL \
15560 ECHO \
15561 PATH_SEPARATOR \
15562 SED \
15563 GREP \
15564 EGREP \
15565 FGREP \
15566 LD \
15567 NM \
15568 LN_S \
15569 lt_SP2NL \
15570 lt_NL2SP \
15571 reload_flag \
15572 OBJDUMP \
15573 deplibs_check_method \
15574 file_magic_cmd \
15575 file_magic_glob \
15576 want_nocaseglob \
15577 DLLTOOL \
15578 sharedlib_from_linklib_cmd \
15579 AR \
15580 AR_FLAGS \
15581 archiver_list_spec \
15582 STRIP \
15583 RANLIB \
15584 CC \
15585 CFLAGS \
15586 compiler \
15587 lt_cv_sys_global_symbol_pipe \
15588 lt_cv_sys_global_symbol_to_cdecl \
15589 lt_cv_sys_global_symbol_to_c_name_address \
15590 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15591 nm_file_list_spec \
15592 lt_prog_compiler_no_builtin_flag \
15593 lt_prog_compiler_pic \
15594 lt_prog_compiler_wl \
15595 lt_prog_compiler_static \
15596 lt_cv_prog_compiler_c_o \
15597 need_locks \
15598 MANIFEST_TOOL \
15599 DSYMUTIL \
15600 NMEDIT \
15601 LIPO \
15602 OTOOL \
15603 OTOOL64 \
15604 shrext_cmds \
15605 export_dynamic_flag_spec \
15606 whole_archive_flag_spec \
15607 compiler_needs_object \
15608 with_gnu_ld \
15609 allow_undefined_flag \
15610 no_undefined_flag \
15611 hardcode_libdir_flag_spec \
15612 hardcode_libdir_separator \
15613 exclude_expsyms \
15614 include_expsyms \
15615 file_list_spec \
15616 variables_saved_for_relink \
15617 libname_spec \
15618 library_names_spec \
15619 soname_spec \
15620 install_override_mode \
15621 finish_eval \
15622 old_striplib \
15623 striplib; do
15624 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15625 *[\\\\\\\`\\"\\\$]*)
15626 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15627 ;;
15628 *)
15629 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15630 ;;
15631 esac
15632 done
15633
15634 # Double-quote double-evaled strings.
15635 for var in reload_cmds \
15636 old_postinstall_cmds \
15637 old_postuninstall_cmds \
15638 old_archive_cmds \
15639 extract_expsyms_cmds \
15640 old_archive_from_new_cmds \
15641 old_archive_from_expsyms_cmds \
15642 archive_cmds \
15643 archive_expsym_cmds \
15644 module_cmds \
15645 module_expsym_cmds \
15646 export_symbols_cmds \
15647 prelink_cmds \
15648 postlink_cmds \
15649 postinstall_cmds \
15650 postuninstall_cmds \
15651 finish_cmds \
15652 sys_lib_search_path_spec \
15653 sys_lib_dlsearch_path_spec; do
15654 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15655 *[\\\\\\\`\\"\\\$]*)
15656 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15657 ;;
15658 *)
15659 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15660 ;;
15661 esac
15662 done
15663
15664 ac_aux_dir='$ac_aux_dir'
15665 xsi_shell='$xsi_shell'
15666 lt_shell_append='$lt_shell_append'
15667
15668 # See if we are running on zsh, and set the options which allow our
15669 # commands through without removal of \ escapes INIT.
15670 if test -n "\${ZSH_VERSION+set}" ; then
15671 setopt NO_GLOB_SUBST
15672 fi
15673
15674
15675 PACKAGE='$PACKAGE'
15676 VERSION='$VERSION'
15677 TIMESTAMP='$TIMESTAMP'
15678 RM='$RM'
15679 ofile='$ofile'
15680
15681
15682
15683
15684 _ACEOF
15685
15686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15687
15688 # Handling of arguments.
15689 for ac_config_target in $ac_config_targets
15690 do
15691 case $ac_config_target in
15692 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15693 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15694 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15695 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15696 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
15697 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
15698 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15699 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
15700 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15701 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15702 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
15703 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15704 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15705 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15706 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15707 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15708 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
15709 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15710
15711 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15712 esac
15713 done
15714
15715
15716 # If the user did not use the arguments to specify the items to instantiate,
15717 # then the envvar interface is used. Set only those that are not.
15718 # We use the long form for the default assignment because of an extremely
15719 # bizarre bug on SunOS 4.1.3.
15720 if $ac_need_defaults; then
15721 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15722 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15723 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15724 fi
15725
15726 # Have a temporary directory for convenience. Make it in the build tree
15727 # simply because there is no reason against having it here, and in addition,
15728 # creating and moving files from /tmp can sometimes cause problems.
15729 # Hook for its removal unless debugging.
15730 # Note that there is a small window in which the directory will not be cleaned:
15731 # after its creation but before its name has been assigned to `$tmp'.
15732 $debug ||
15733 {
15734 tmp= ac_tmp=
15735 trap 'exit_status=$?
15736 : "${ac_tmp:=$tmp}"
15737 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15738 ' 0
15739 trap 'as_fn_exit 1' 1 2 13 15
15740 }
15741 # Create a (secure) tmp directory for tmp files.
15742
15743 {
15744 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15745 test -d "$tmp"
15746 } ||
15747 {
15748 tmp=./conf$$-$RANDOM
15749 (umask 077 && mkdir "$tmp")
15750 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15751 ac_tmp=$tmp
15752
15753 # Set up the scripts for CONFIG_FILES section.
15754 # No need to generate them if there are no CONFIG_FILES.
15755 # This happens for instance with `./config.status config.h'.
15756 if test -n "$CONFIG_FILES"; then
15757
15758
15759 ac_cr=`echo X | tr X '\015'`
15760 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15761 # But we know of no other shell where ac_cr would be empty at this
15762 # point, so we can use a bashism as a fallback.
15763 if test "x$ac_cr" = x; then
15764 eval ac_cr=\$\'\\r\'
15765 fi
15766 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15767 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15768 ac_cs_awk_cr='\\r'
15769 else
15770 ac_cs_awk_cr=$ac_cr
15771 fi
15772
15773 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15774 _ACEOF
15775
15776
15777 {
15778 echo "cat >conf$$subs.awk <<_ACEOF" &&
15779 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15780 echo "_ACEOF"
15781 } >conf$$subs.sh ||
15782 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15783 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15784 ac_delim='%!_!# '
15785 for ac_last_try in false false false false false :; do
15786 . ./conf$$subs.sh ||
15787 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15788
15789 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15790 if test $ac_delim_n = $ac_delim_num; then
15791 break
15792 elif $ac_last_try; then
15793 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15794 else
15795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15796 fi
15797 done
15798 rm -f conf$$subs.sh
15799
15800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15801 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15802 _ACEOF
15803 sed -n '
15804 h
15805 s/^/S["/; s/!.*/"]=/
15806 p
15807 g
15808 s/^[^!]*!//
15809 :repl
15810 t repl
15811 s/'"$ac_delim"'$//
15812 t delim
15813 :nl
15814 h
15815 s/\(.\{148\}\)..*/\1/
15816 t more1
15817 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15818 p
15819 n
15820 b repl
15821 :more1
15822 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15823 p
15824 g
15825 s/.\{148\}//
15826 t nl
15827 :delim
15828 h
15829 s/\(.\{148\}\)..*/\1/
15830 t more2
15831 s/["\\]/\\&/g; s/^/"/; s/$/"/
15832 p
15833 b
15834 :more2
15835 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15836 p
15837 g
15838 s/.\{148\}//
15839 t delim
15840 ' <conf$$subs.awk | sed '
15841 /^[^""]/{
15842 N
15843 s/\n//
15844 }
15845 ' >>$CONFIG_STATUS || ac_write_fail=1
15846 rm -f conf$$subs.awk
15847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15848 _ACAWK
15849 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15850 for (key in S) S_is_set[key] = 1
15851 FS = ""
15852
15853 }
15854 {
15855 line = $ 0
15856 nfields = split(line, field, "@")
15857 substed = 0
15858 len = length(field[1])
15859 for (i = 2; i < nfields; i++) {
15860 key = field[i]
15861 keylen = length(key)
15862 if (S_is_set[key]) {
15863 value = S[key]
15864 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15865 len += length(value) + length(field[++i])
15866 substed = 1
15867 } else
15868 len += 1 + keylen
15869 }
15870
15871 print line
15872 }
15873
15874 _ACAWK
15875 _ACEOF
15876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15877 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15878 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15879 else
15880 cat
15881 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15882 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15883 _ACEOF
15884
15885 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15886 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15887 # trailing colons and then remove the whole line if VPATH becomes empty
15888 # (actually we leave an empty line to preserve line numbers).
15889 if test "x$srcdir" = x.; then
15890 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15891 h
15892 s///
15893 s/^/:/
15894 s/[ ]*$/:/
15895 s/:\$(srcdir):/:/g
15896 s/:\${srcdir}:/:/g
15897 s/:@srcdir@:/:/g
15898 s/^:*//
15899 s/:*$//
15900 x
15901 s/\(=[ ]*\).*/\1/
15902 G
15903 s/\n//
15904 s/^[^=]*=[ ]*$//
15905 }'
15906 fi
15907
15908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15909 fi # test -n "$CONFIG_FILES"
15910
15911 # Set up the scripts for CONFIG_HEADERS section.
15912 # No need to generate them if there are no CONFIG_HEADERS.
15913 # This happens for instance with `./config.status Makefile'.
15914 if test -n "$CONFIG_HEADERS"; then
15915 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15916 BEGIN {
15917 _ACEOF
15918
15919 # Transform confdefs.h into an awk script `defines.awk', embedded as
15920 # here-document in config.status, that substitutes the proper values into
15921 # config.h.in to produce config.h.
15922
15923 # Create a delimiter string that does not exist in confdefs.h, to ease
15924 # handling of long lines.
15925 ac_delim='%!_!# '
15926 for ac_last_try in false false :; do
15927 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15928 if test -z "$ac_tt"; then
15929 break
15930 elif $ac_last_try; then
15931 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15932 else
15933 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15934 fi
15935 done
15936
15937 # For the awk script, D is an array of macro values keyed by name,
15938 # likewise P contains macro parameters if any. Preserve backslash
15939 # newline sequences.
15940
15941 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15942 sed -n '
15943 s/.\{148\}/&'"$ac_delim"'/g
15944 t rset
15945 :rset
15946 s/^[ ]*#[ ]*define[ ][ ]*/ /
15947 t def
15948 d
15949 :def
15950 s/\\$//
15951 t bsnl
15952 s/["\\]/\\&/g
15953 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15954 D["\1"]=" \3"/p
15955 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15956 d
15957 :bsnl
15958 s/["\\]/\\&/g
15959 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15960 D["\1"]=" \3\\\\\\n"\\/p
15961 t cont
15962 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15963 t cont
15964 d
15965 :cont
15966 n
15967 s/.\{148\}/&'"$ac_delim"'/g
15968 t clear
15969 :clear
15970 s/\\$//
15971 t bsnlc
15972 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15973 d
15974 :bsnlc
15975 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15976 b cont
15977 ' <confdefs.h | sed '
15978 s/'"$ac_delim"'/"\\\
15979 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15980
15981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15982 for (key in D) D_is_set[key] = 1
15983 FS = ""
15984 }
15985 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15986 line = \$ 0
15987 split(line, arg, " ")
15988 if (arg[1] == "#") {
15989 defundef = arg[2]
15990 mac1 = arg[3]
15991 } else {
15992 defundef = substr(arg[1], 2)
15993 mac1 = arg[2]
15994 }
15995 split(mac1, mac2, "(") #)
15996 macro = mac2[1]
15997 prefix = substr(line, 1, index(line, defundef) - 1)
15998 if (D_is_set[macro]) {
15999 # Preserve the white space surrounding the "#".
16000 print prefix "define", macro P[macro] D[macro]
16001 next
16002 } else {
16003 # Replace #undef with comments. This is necessary, for example,
16004 # in the case of _POSIX_SOURCE, which is predefined and required
16005 # on some systems where configure will not decide to define it.
16006 if (defundef == "undef") {
16007 print "/*", prefix defundef, macro, "*/"
16008 next
16009 }
16010 }
16011 }
16012 { print }
16013 _ACAWK
16014 _ACEOF
16015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16016 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16017 fi # test -n "$CONFIG_HEADERS"
16018
16019
16020 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16021 shift
16022 for ac_tag
16023 do
16024 case $ac_tag in
16025 :[FHLC]) ac_mode=$ac_tag; continue;;
16026 esac
16027 case $ac_mode$ac_tag in
16028 :[FHL]*:*);;
16029 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16030 :[FH]-) ac_tag=-:-;;
16031 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16032 esac
16033 ac_save_IFS=$IFS
16034 IFS=:
16035 set x $ac_tag
16036 IFS=$ac_save_IFS
16037 shift
16038 ac_file=$1
16039 shift
16040
16041 case $ac_mode in
16042 :L) ac_source=$1;;
16043 :[FH])
16044 ac_file_inputs=
16045 for ac_f
16046 do
16047 case $ac_f in
16048 -) ac_f="$ac_tmp/stdin";;
16049 *) # Look for the file first in the build tree, then in the source tree
16050 # (if the path is not absolute). The absolute path cannot be DOS-style,
16051 # because $ac_f cannot contain `:'.
16052 test -f "$ac_f" ||
16053 case $ac_f in
16054 [\\/$]*) false;;
16055 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16056 esac ||
16057 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16058 esac
16059 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16060 as_fn_append ac_file_inputs " '$ac_f'"
16061 done
16062
16063 # Let's still pretend it is `configure' which instantiates (i.e., don't
16064 # use $as_me), people would be surprised to read:
16065 # /* config.h. Generated by config.status. */
16066 configure_input='Generated from '`
16067 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16068 `' by configure.'
16069 if test x"$ac_file" != x-; then
16070 configure_input="$ac_file. $configure_input"
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16072 $as_echo "$as_me: creating $ac_file" >&6;}
16073 fi
16074 # Neutralize special characters interpreted by sed in replacement strings.
16075 case $configure_input in #(
16076 *\&* | *\|* | *\\* )
16077 ac_sed_conf_input=`$as_echo "$configure_input" |
16078 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16079 *) ac_sed_conf_input=$configure_input;;
16080 esac
16081
16082 case $ac_tag in
16083 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16084 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16085 esac
16086 ;;
16087 esac
16088
16089 ac_dir=`$as_dirname -- "$ac_file" ||
16090 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16091 X"$ac_file" : 'X\(//\)[^/]' \| \
16092 X"$ac_file" : 'X\(//\)$' \| \
16093 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16094 $as_echo X"$ac_file" |
16095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16096 s//\1/
16097 q
16098 }
16099 /^X\(\/\/\)[^/].*/{
16100 s//\1/
16101 q
16102 }
16103 /^X\(\/\/\)$/{
16104 s//\1/
16105 q
16106 }
16107 /^X\(\/\).*/{
16108 s//\1/
16109 q
16110 }
16111 s/.*/./; q'`
16112 as_dir="$ac_dir"; as_fn_mkdir_p
16113 ac_builddir=.
16114
16115 case "$ac_dir" in
16116 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16117 *)
16118 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16119 # A ".." for each directory in $ac_dir_suffix.
16120 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16121 case $ac_top_builddir_sub in
16122 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16123 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16124 esac ;;
16125 esac
16126 ac_abs_top_builddir=$ac_pwd
16127 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16128 # for backward compatibility:
16129 ac_top_builddir=$ac_top_build_prefix
16130
16131 case $srcdir in
16132 .) # We are building in place.
16133 ac_srcdir=.
16134 ac_top_srcdir=$ac_top_builddir_sub
16135 ac_abs_top_srcdir=$ac_pwd ;;
16136 [\\/]* | ?:[\\/]* ) # Absolute name.
16137 ac_srcdir=$srcdir$ac_dir_suffix;
16138 ac_top_srcdir=$srcdir
16139 ac_abs_top_srcdir=$srcdir ;;
16140 *) # Relative name.
16141 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16142 ac_top_srcdir=$ac_top_build_prefix$srcdir
16143 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16144 esac
16145 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16146
16147
16148 case $ac_mode in
16149 :F)
16150 #
16151 # CONFIG_FILE
16152 #
16153
16154 case $INSTALL in
16155 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16156 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16157 esac
16158 ac_MKDIR_P=$MKDIR_P
16159 case $MKDIR_P in
16160 [\\/$]* | ?:[\\/]* ) ;;
16161 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16162 esac
16163 _ACEOF
16164
16165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16166 # If the template does not know about datarootdir, expand it.
16167 # FIXME: This hack should be removed a few years after 2.60.
16168 ac_datarootdir_hack=; ac_datarootdir_seen=
16169 ac_sed_dataroot='
16170 /datarootdir/ {
16171 p
16172 q
16173 }
16174 /@datadir@/p
16175 /@docdir@/p
16176 /@infodir@/p
16177 /@localedir@/p
16178 /@mandir@/p'
16179 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16180 *datarootdir*) ac_datarootdir_seen=yes;;
16181 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16183 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16184 _ACEOF
16185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16186 ac_datarootdir_hack='
16187 s&@datadir@&$datadir&g
16188 s&@docdir@&$docdir&g
16189 s&@infodir@&$infodir&g
16190 s&@localedir@&$localedir&g
16191 s&@mandir@&$mandir&g
16192 s&\\\${datarootdir}&$datarootdir&g' ;;
16193 esac
16194 _ACEOF
16195
16196 # Neutralize VPATH when `$srcdir' = `.'.
16197 # Shell code in configure.ac might set extrasub.
16198 # FIXME: do we really want to maintain this feature?
16199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16200 ac_sed_extra="$ac_vpsub
16201 $extrasub
16202 _ACEOF
16203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16204 :t
16205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16206 s|@configure_input@|$ac_sed_conf_input|;t t
16207 s&@top_builddir@&$ac_top_builddir_sub&;t t
16208 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16209 s&@srcdir@&$ac_srcdir&;t t
16210 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16211 s&@top_srcdir@&$ac_top_srcdir&;t t
16212 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16213 s&@builddir@&$ac_builddir&;t t
16214 s&@abs_builddir@&$ac_abs_builddir&;t t
16215 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16216 s&@INSTALL@&$ac_INSTALL&;t t
16217 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16218 $ac_datarootdir_hack
16219 "
16220 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16221 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16222
16223 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16224 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16225 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16226 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16228 which seems to be undefined. Please make sure it is defined" >&5
16229 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16230 which seems to be undefined. Please make sure it is defined" >&2;}
16231
16232 rm -f "$ac_tmp/stdin"
16233 case $ac_file in
16234 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16235 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16236 esac \
16237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16238 ;;
16239 :H)
16240 #
16241 # CONFIG_HEADER
16242 #
16243 if test x"$ac_file" != x-; then
16244 {
16245 $as_echo "/* $configure_input */" \
16246 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16247 } >"$ac_tmp/config.h" \
16248 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16249 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16251 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16252 else
16253 rm -f "$ac_file"
16254 mv "$ac_tmp/config.h" "$ac_file" \
16255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16256 fi
16257 else
16258 $as_echo "/* $configure_input */" \
16259 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16260 || as_fn_error $? "could not create -" "$LINENO" 5
16261 fi
16262 # Compute "$ac_file"'s index in $config_headers.
16263 _am_arg="$ac_file"
16264 _am_stamp_count=1
16265 for _am_header in $config_headers :; do
16266 case $_am_header in
16267 $_am_arg | $_am_arg:* )
16268 break ;;
16269 * )
16270 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16271 esac
16272 done
16273 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16274 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16275 X"$_am_arg" : 'X\(//\)[^/]' \| \
16276 X"$_am_arg" : 'X\(//\)$' \| \
16277 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16278 $as_echo X"$_am_arg" |
16279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16280 s//\1/
16281 q
16282 }
16283 /^X\(\/\/\)[^/].*/{
16284 s//\1/
16285 q
16286 }
16287 /^X\(\/\/\)$/{
16288 s//\1/
16289 q
16290 }
16291 /^X\(\/\).*/{
16292 s//\1/
16293 q
16294 }
16295 s/.*/./; q'`/stamp-h$_am_stamp_count
16296 ;;
16297
16298 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16299 $as_echo "$as_me: executing $ac_file commands" >&6;}
16300 ;;
16301 esac
16302
16303
16304 case $ac_file$ac_mode in
16305 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16306 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16307 # are listed without --file. Let's play safe and only enable the eval
16308 # if we detect the quoting.
16309 case $CONFIG_FILES in
16310 *\'*) eval set x "$CONFIG_FILES" ;;
16311 *) set x $CONFIG_FILES ;;
16312 esac
16313 shift
16314 for mf
16315 do
16316 # Strip MF so we end up with the name of the file.
16317 mf=`echo "$mf" | sed -e 's/:.*$//'`
16318 # Check whether this is an Automake generated Makefile or not.
16319 # We used to match only the files named `Makefile.in', but
16320 # some people rename them; so instead we look at the file content.
16321 # Grep'ing the first line is not enough: some people post-process
16322 # each Makefile.in and add a new line on top of each file to say so.
16323 # Grep'ing the whole file is not good either: AIX grep has a line
16324 # limit of 2048, but all sed's we know have understand at least 4000.
16325 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16326 dirpart=`$as_dirname -- "$mf" ||
16327 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16328 X"$mf" : 'X\(//\)[^/]' \| \
16329 X"$mf" : 'X\(//\)$' \| \
16330 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16331 $as_echo X"$mf" |
16332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16333 s//\1/
16334 q
16335 }
16336 /^X\(\/\/\)[^/].*/{
16337 s//\1/
16338 q
16339 }
16340 /^X\(\/\/\)$/{
16341 s//\1/
16342 q
16343 }
16344 /^X\(\/\).*/{
16345 s//\1/
16346 q
16347 }
16348 s/.*/./; q'`
16349 else
16350 continue
16351 fi
16352 # Extract the definition of DEPDIR, am__include, and am__quote
16353 # from the Makefile without running `make'.
16354 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16355 test -z "$DEPDIR" && continue
16356 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16357 test -z "am__include" && continue
16358 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16359 # When using ansi2knr, U may be empty or an underscore; expand it
16360 U=`sed -n 's/^U = //p' < "$mf"`
16361 # Find all dependency output files, they are included files with
16362 # $(DEPDIR) in their names. We invoke sed twice because it is the
16363 # simplest approach to changing $(DEPDIR) to its actual value in the
16364 # expansion.
16365 for file in `sed -n "
16366 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16367 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16368 # Make sure the directory exists.
16369 test -f "$dirpart/$file" && continue
16370 fdir=`$as_dirname -- "$file" ||
16371 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16372 X"$file" : 'X\(//\)[^/]' \| \
16373 X"$file" : 'X\(//\)$' \| \
16374 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16375 $as_echo X"$file" |
16376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16377 s//\1/
16378 q
16379 }
16380 /^X\(\/\/\)[^/].*/{
16381 s//\1/
16382 q
16383 }
16384 /^X\(\/\/\)$/{
16385 s//\1/
16386 q
16387 }
16388 /^X\(\/\).*/{
16389 s//\1/
16390 q
16391 }
16392 s/.*/./; q'`
16393 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16394 # echo "creating $dirpart/$file"
16395 echo '# dummy' > "$dirpart/$file"
16396 done
16397 done
16398 }
16399 ;;
16400 "libtool":C)
16401
16402 # See if we are running on zsh, and set the options which allow our
16403 # commands through without removal of \ escapes.
16404 if test -n "${ZSH_VERSION+set}" ; then
16405 setopt NO_GLOB_SUBST
16406 fi
16407
16408 cfgfile="${ofile}T"
16409 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16410 $RM "$cfgfile"
16411
16412 cat <<_LT_EOF >> "$cfgfile"
16413 #! $SHELL
16414
16415 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16416 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16417 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16418 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16419 #
16420 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16421 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16422 # Foundation, Inc.
16423 # Written by Gordon Matzigkeit, 1996
16424 #
16425 # This file is part of GNU Libtool.
16426 #
16427 # GNU Libtool is free software; you can redistribute it and/or
16428 # modify it under the terms of the GNU General Public License as
16429 # published by the Free Software Foundation; either version 2 of
16430 # the License, or (at your option) any later version.
16431 #
16432 # As a special exception to the GNU General Public License,
16433 # if you distribute this file as part of a program or library that
16434 # is built using GNU Libtool, you may include this file under the
16435 # same distribution terms that you use for the rest of that program.
16436 #
16437 # GNU Libtool is distributed in the hope that it will be useful,
16438 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16439 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16440 # GNU General Public License for more details.
16441 #
16442 # You should have received a copy of the GNU General Public License
16443 # along with GNU Libtool; see the file COPYING. If not, a copy
16444 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16445 # obtained by writing to the Free Software Foundation, Inc.,
16446 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16447
16448
16449 # The names of the tagged configurations supported by this script.
16450 available_tags=""
16451
16452 # ### BEGIN LIBTOOL CONFIG
16453
16454 # Which release of libtool.m4 was used?
16455 macro_version=$macro_version
16456 macro_revision=$macro_revision
16457
16458 # Whether or not to build static libraries.
16459 build_old_libs=$enable_static
16460
16461 # Whether or not to build shared libraries.
16462 build_libtool_libs=$enable_shared
16463
16464 # What type of objects to build.
16465 pic_mode=$pic_mode
16466
16467 # Whether or not to optimize for fast installation.
16468 fast_install=$enable_fast_install
16469
16470 # Shell to use when invoking shell scripts.
16471 SHELL=$lt_SHELL
16472
16473 # An echo program that protects backslashes.
16474 ECHO=$lt_ECHO
16475
16476 # The PATH separator for the build system.
16477 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16478
16479 # The host system.
16480 host_alias=$host_alias
16481 host=$host
16482 host_os=$host_os
16483
16484 # The build system.
16485 build_alias=$build_alias
16486 build=$build
16487 build_os=$build_os
16488
16489 # A sed program that does not truncate output.
16490 SED=$lt_SED
16491
16492 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16493 Xsed="\$SED -e 1s/^X//"
16494
16495 # A grep program that handles long lines.
16496 GREP=$lt_GREP
16497
16498 # An ERE matcher.
16499 EGREP=$lt_EGREP
16500
16501 # A literal string matcher.
16502 FGREP=$lt_FGREP
16503
16504 # A BSD- or MS-compatible name lister.
16505 NM=$lt_NM
16506
16507 # Whether we need soft or hard links.
16508 LN_S=$lt_LN_S
16509
16510 # What is the maximum length of a command?
16511 max_cmd_len=$max_cmd_len
16512
16513 # Object file suffix (normally "o").
16514 objext=$ac_objext
16515
16516 # Executable file suffix (normally "").
16517 exeext=$exeext
16518
16519 # whether the shell understands "unset".
16520 lt_unset=$lt_unset
16521
16522 # turn spaces into newlines.
16523 SP2NL=$lt_lt_SP2NL
16524
16525 # turn newlines into spaces.
16526 NL2SP=$lt_lt_NL2SP
16527
16528 # convert \$build file names to \$host format.
16529 to_host_file_cmd=$lt_cv_to_host_file_cmd
16530
16531 # convert \$build files to toolchain format.
16532 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16533
16534 # An object symbol dumper.
16535 OBJDUMP=$lt_OBJDUMP
16536
16537 # Method to check whether dependent libraries are shared objects.
16538 deplibs_check_method=$lt_deplibs_check_method
16539
16540 # Command to use when deplibs_check_method = "file_magic".
16541 file_magic_cmd=$lt_file_magic_cmd
16542
16543 # How to find potential files when deplibs_check_method = "file_magic".
16544 file_magic_glob=$lt_file_magic_glob
16545
16546 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16547 want_nocaseglob=$lt_want_nocaseglob
16548
16549 # DLL creation program.
16550 DLLTOOL=$lt_DLLTOOL
16551
16552 # Command to associate shared and link libraries.
16553 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16554
16555 # The archiver.
16556 AR=$lt_AR
16557
16558 # Flags to create an archive.
16559 AR_FLAGS=$lt_AR_FLAGS
16560
16561 # How to feed a file listing to the archiver.
16562 archiver_list_spec=$lt_archiver_list_spec
16563
16564 # A symbol stripping program.
16565 STRIP=$lt_STRIP
16566
16567 # Commands used to install an old-style archive.
16568 RANLIB=$lt_RANLIB
16569 old_postinstall_cmds=$lt_old_postinstall_cmds
16570 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16571
16572 # Whether to use a lock for old archive extraction.
16573 lock_old_archive_extraction=$lock_old_archive_extraction
16574
16575 # A C compiler.
16576 LTCC=$lt_CC
16577
16578 # LTCC compiler flags.
16579 LTCFLAGS=$lt_CFLAGS
16580
16581 # Take the output of nm and produce a listing of raw symbols and C names.
16582 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16583
16584 # Transform the output of nm in a proper C declaration.
16585 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16586
16587 # Transform the output of nm in a C name address pair.
16588 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16589
16590 # Transform the output of nm in a C name address pair when lib prefix is needed.
16591 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16592
16593 # Specify filename containing input files for \$NM.
16594 nm_file_list_spec=$lt_nm_file_list_spec
16595
16596 # The root where to search for dependent libraries,and in which our libraries should be installed.
16597 lt_sysroot=$lt_sysroot
16598
16599 # The name of the directory that contains temporary libtool files.
16600 objdir=$objdir
16601
16602 # Used to examine libraries when file_magic_cmd begins with "file".
16603 MAGIC_CMD=$MAGIC_CMD
16604
16605 # Must we lock files when doing compilation?
16606 need_locks=$lt_need_locks
16607
16608 # Manifest tool.
16609 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16610
16611 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16612 DSYMUTIL=$lt_DSYMUTIL
16613
16614 # Tool to change global to local symbols on Mac OS X.
16615 NMEDIT=$lt_NMEDIT
16616
16617 # Tool to manipulate fat objects and archives on Mac OS X.
16618 LIPO=$lt_LIPO
16619
16620 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16621 OTOOL=$lt_OTOOL
16622
16623 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16624 OTOOL64=$lt_OTOOL64
16625
16626 # Old archive suffix (normally "a").
16627 libext=$libext
16628
16629 # Shared library suffix (normally ".so").
16630 shrext_cmds=$lt_shrext_cmds
16631
16632 # The commands to extract the exported symbol list from a shared archive.
16633 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16634
16635 # Variables whose values should be saved in libtool wrapper scripts and
16636 # restored at link time.
16637 variables_saved_for_relink=$lt_variables_saved_for_relink
16638
16639 # Do we need the "lib" prefix for modules?
16640 need_lib_prefix=$need_lib_prefix
16641
16642 # Do we need a version for libraries?
16643 need_version=$need_version
16644
16645 # Library versioning type.
16646 version_type=$version_type
16647
16648 # Shared library runtime path variable.
16649 runpath_var=$runpath_var
16650
16651 # Shared library path variable.
16652 shlibpath_var=$shlibpath_var
16653
16654 # Is shlibpath searched before the hard-coded library search path?
16655 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16656
16657 # Format of library name prefix.
16658 libname_spec=$lt_libname_spec
16659
16660 # List of archive names. First name is the real one, the rest are links.
16661 # The last name is the one that the linker finds with -lNAME
16662 library_names_spec=$lt_library_names_spec
16663
16664 # The coded name of the library, if different from the real name.
16665 soname_spec=$lt_soname_spec
16666
16667 # Permission mode override for installation of shared libraries.
16668 install_override_mode=$lt_install_override_mode
16669
16670 # Command to use after installation of a shared archive.
16671 postinstall_cmds=$lt_postinstall_cmds
16672
16673 # Command to use after uninstallation of a shared archive.
16674 postuninstall_cmds=$lt_postuninstall_cmds
16675
16676 # Commands used to finish a libtool library installation in a directory.
16677 finish_cmds=$lt_finish_cmds
16678
16679 # As "finish_cmds", except a single script fragment to be evaled but
16680 # not shown.
16681 finish_eval=$lt_finish_eval
16682
16683 # Whether we should hardcode library paths into libraries.
16684 hardcode_into_libs=$hardcode_into_libs
16685
16686 # Compile-time system search path for libraries.
16687 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16688
16689 # Run-time system search path for libraries.
16690 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16691
16692 # Whether dlopen is supported.
16693 dlopen_support=$enable_dlopen
16694
16695 # Whether dlopen of programs is supported.
16696 dlopen_self=$enable_dlopen_self
16697
16698 # Whether dlopen of statically linked programs is supported.
16699 dlopen_self_static=$enable_dlopen_self_static
16700
16701 # Commands to strip libraries.
16702 old_striplib=$lt_old_striplib
16703 striplib=$lt_striplib
16704
16705
16706 # The linker used to build libraries.
16707 LD=$lt_LD
16708
16709 # How to create reloadable object files.
16710 reload_flag=$lt_reload_flag
16711 reload_cmds=$lt_reload_cmds
16712
16713 # Commands used to build an old-style archive.
16714 old_archive_cmds=$lt_old_archive_cmds
16715
16716 # A language specific compiler.
16717 CC=$lt_compiler
16718
16719 # Is the compiler the GNU compiler?
16720 with_gcc=$GCC
16721
16722 # Compiler flag to turn off builtin functions.
16723 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16724
16725 # Additional compiler flags for building library objects.
16726 pic_flag=$lt_lt_prog_compiler_pic
16727
16728 # How to pass a linker flag through the compiler.
16729 wl=$lt_lt_prog_compiler_wl
16730
16731 # Compiler flag to prevent dynamic linking.
16732 link_static_flag=$lt_lt_prog_compiler_static
16733
16734 # Does compiler simultaneously support -c and -o options?
16735 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16736
16737 # Whether or not to add -lc for building shared libraries.
16738 build_libtool_need_lc=$archive_cmds_need_lc
16739
16740 # Whether or not to disallow shared libs when runtime libs are static.
16741 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16742
16743 # Compiler flag to allow reflexive dlopens.
16744 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16745
16746 # Compiler flag to generate shared objects directly from archives.
16747 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16748
16749 # Whether the compiler copes with passing no objects directly.
16750 compiler_needs_object=$lt_compiler_needs_object
16751
16752 # Create an old-style archive from a shared archive.
16753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16754
16755 # Create a temporary old-style archive to link instead of a shared archive.
16756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16757
16758 # Commands used to build a shared archive.
16759 archive_cmds=$lt_archive_cmds
16760 archive_expsym_cmds=$lt_archive_expsym_cmds
16761
16762 # Commands used to build a loadable module if different from building
16763 # a shared archive.
16764 module_cmds=$lt_module_cmds
16765 module_expsym_cmds=$lt_module_expsym_cmds
16766
16767 # Whether we are building with GNU ld or not.
16768 with_gnu_ld=$lt_with_gnu_ld
16769
16770 # Flag that allows shared libraries with undefined symbols to be built.
16771 allow_undefined_flag=$lt_allow_undefined_flag
16772
16773 # Flag that enforces no undefined symbols.
16774 no_undefined_flag=$lt_no_undefined_flag
16775
16776 # Flag to hardcode \$libdir into a binary during linking.
16777 # This must work even if \$libdir does not exist
16778 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16779
16780 # Whether we need a single "-rpath" flag with a separated argument.
16781 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16782
16783 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16784 # DIR into the resulting binary.
16785 hardcode_direct=$hardcode_direct
16786
16787 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16788 # DIR into the resulting binary and the resulting library dependency is
16789 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16790 # library is relocated.
16791 hardcode_direct_absolute=$hardcode_direct_absolute
16792
16793 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16794 # into the resulting binary.
16795 hardcode_minus_L=$hardcode_minus_L
16796
16797 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16798 # into the resulting binary.
16799 hardcode_shlibpath_var=$hardcode_shlibpath_var
16800
16801 # Set to "yes" if building a shared library automatically hardcodes DIR
16802 # into the library and all subsequent libraries and executables linked
16803 # against it.
16804 hardcode_automatic=$hardcode_automatic
16805
16806 # Set to yes if linker adds runtime paths of dependent libraries
16807 # to runtime path list.
16808 inherit_rpath=$inherit_rpath
16809
16810 # Whether libtool must link a program against all its dependency libraries.
16811 link_all_deplibs=$link_all_deplibs
16812
16813 # Set to "yes" if exported symbols are required.
16814 always_export_symbols=$always_export_symbols
16815
16816 # The commands to list exported symbols.
16817 export_symbols_cmds=$lt_export_symbols_cmds
16818
16819 # Symbols that should not be listed in the preloaded symbols.
16820 exclude_expsyms=$lt_exclude_expsyms
16821
16822 # Symbols that must always be exported.
16823 include_expsyms=$lt_include_expsyms
16824
16825 # Commands necessary for linking programs (against libraries) with templates.
16826 prelink_cmds=$lt_prelink_cmds
16827
16828 # Commands necessary for finishing linking programs.
16829 postlink_cmds=$lt_postlink_cmds
16830
16831 # Specify filename containing input files.
16832 file_list_spec=$lt_file_list_spec
16833
16834 # How to hardcode a shared library path into an executable.
16835 hardcode_action=$hardcode_action
16836
16837 # ### END LIBTOOL CONFIG
16838
16839 _LT_EOF
16840
16841 case $host_os in
16842 aix3*)
16843 cat <<\_LT_EOF >> "$cfgfile"
16844 # AIX sometimes has problems with the GCC collect2 program. For some
16845 # reason, if we set the COLLECT_NAMES environment variable, the problems
16846 # vanish in a puff of smoke.
16847 if test "X${COLLECT_NAMES+set}" != Xset; then
16848 COLLECT_NAMES=
16849 export COLLECT_NAMES
16850 fi
16851 _LT_EOF
16852 ;;
16853 esac
16854
16855
16856 ltmain="$ac_aux_dir/ltmain.sh"
16857
16858
16859 # We use sed instead of cat because bash on DJGPP gets confused if
16860 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16861 # text mode, it properly converts lines to CR/LF. This bash problem
16862 # is reportedly fixed, but why not run on old versions too?
16863 sed '$q' "$ltmain" >> "$cfgfile" \
16864 || (rm -f "$cfgfile"; exit 1)
16865
16866 if test x"$xsi_shell" = xyes; then
16867 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16868 func_dirname ()\
16869 {\
16870 \ case ${1} in\
16871 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16872 \ * ) func_dirname_result="${3}" ;;\
16873 \ esac\
16874 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16875 && mv -f "$cfgfile.tmp" "$cfgfile" \
16876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16877 test 0 -eq $? || _lt_function_replace_fail=:
16878
16879
16880 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16881 func_basename ()\
16882 {\
16883 \ func_basename_result="${1##*/}"\
16884 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16885 && mv -f "$cfgfile.tmp" "$cfgfile" \
16886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16887 test 0 -eq $? || _lt_function_replace_fail=:
16888
16889
16890 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16891 func_dirname_and_basename ()\
16892 {\
16893 \ case ${1} in\
16894 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16895 \ * ) func_dirname_result="${3}" ;;\
16896 \ esac\
16897 \ func_basename_result="${1##*/}"\
16898 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16899 && mv -f "$cfgfile.tmp" "$cfgfile" \
16900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16901 test 0 -eq $? || _lt_function_replace_fail=:
16902
16903
16904 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16905 func_stripname ()\
16906 {\
16907 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16908 \ # positional parameters, so assign one to ordinary parameter first.\
16909 \ func_stripname_result=${3}\
16910 \ func_stripname_result=${func_stripname_result#"${1}"}\
16911 \ func_stripname_result=${func_stripname_result%"${2}"}\
16912 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16913 && mv -f "$cfgfile.tmp" "$cfgfile" \
16914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16915 test 0 -eq $? || _lt_function_replace_fail=:
16916
16917
16918 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16919 func_split_long_opt ()\
16920 {\
16921 \ func_split_long_opt_name=${1%%=*}\
16922 \ func_split_long_opt_arg=${1#*=}\
16923 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16924 && mv -f "$cfgfile.tmp" "$cfgfile" \
16925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16926 test 0 -eq $? || _lt_function_replace_fail=:
16927
16928
16929 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16930 func_split_short_opt ()\
16931 {\
16932 \ func_split_short_opt_arg=${1#??}\
16933 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16934 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16935 && mv -f "$cfgfile.tmp" "$cfgfile" \
16936 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16937 test 0 -eq $? || _lt_function_replace_fail=:
16938
16939
16940 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16941 func_lo2o ()\
16942 {\
16943 \ case ${1} in\
16944 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16945 \ *) func_lo2o_result=${1} ;;\
16946 \ esac\
16947 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16948 && mv -f "$cfgfile.tmp" "$cfgfile" \
16949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16950 test 0 -eq $? || _lt_function_replace_fail=:
16951
16952
16953 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16954 func_xform ()\
16955 {\
16956 func_xform_result=${1%.*}.lo\
16957 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16958 && mv -f "$cfgfile.tmp" "$cfgfile" \
16959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16960 test 0 -eq $? || _lt_function_replace_fail=:
16961
16962
16963 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16964 func_arith ()\
16965 {\
16966 func_arith_result=$(( $* ))\
16967 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16968 && mv -f "$cfgfile.tmp" "$cfgfile" \
16969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16970 test 0 -eq $? || _lt_function_replace_fail=:
16971
16972
16973 sed -e '/^func_len ()$/,/^} # func_len /c\
16974 func_len ()\
16975 {\
16976 func_len_result=${#1}\
16977 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16978 && mv -f "$cfgfile.tmp" "$cfgfile" \
16979 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16980 test 0 -eq $? || _lt_function_replace_fail=:
16981
16982 fi
16983
16984 if test x"$lt_shell_append" = xyes; then
16985 sed -e '/^func_append ()$/,/^} # func_append /c\
16986 func_append ()\
16987 {\
16988 eval "${1}+=\\${2}"\
16989 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16990 && mv -f "$cfgfile.tmp" "$cfgfile" \
16991 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16992 test 0 -eq $? || _lt_function_replace_fail=:
16993
16994
16995 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16996 func_append_quoted ()\
16997 {\
16998 \ func_quote_for_eval "${2}"\
16999 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17000 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17001 && mv -f "$cfgfile.tmp" "$cfgfile" \
17002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17003 test 0 -eq $? || _lt_function_replace_fail=:
17004
17005
17006 # Save a `func_append' function call where possible by direct use of '+='
17007 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17008 && mv -f "$cfgfile.tmp" "$cfgfile" \
17009 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17010 test 0 -eq $? || _lt_function_replace_fail=:
17011 else
17012 # Save a `func_append' function call even when '+=' is not available
17013 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17014 && mv -f "$cfgfile.tmp" "$cfgfile" \
17015 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17016 test 0 -eq $? || _lt_function_replace_fail=:
17017 fi
17018
17019 if test x"$_lt_function_replace_fail" = x":"; then
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17021 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17022 fi
17023
17024
17025 mv -f "$cfgfile" "$ofile" ||
17026 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17027 chmod +x "$ofile"
17028
17029 ;;
17030
17031 esac
17032 done # for ac_tag
17033
17034
17035 as_fn_exit 0
17036 _ACEOF
17037 ac_clean_files=$ac_clean_files_save
17038
17039 test $ac_write_fail = 0 ||
17040 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17041
17042
17043 # configure is writing to config.log, and then calls config.status.
17044 # config.status does its own redirection, appending to config.log.
17045 # Unfortunately, on DOS this fails, as config.log is still kept open
17046 # by configure, so config.status won't be able to write to it; its
17047 # output is simply discarded. So we exec the FD to /dev/null,
17048 # effectively closing config.log, so it can be properly (re)opened and
17049 # appended to by config.status. When coming back to configure, we
17050 # need to make the FD available again.
17051 if test "$no_create" != yes; then
17052 ac_cs_success=:
17053 ac_config_status_args=
17054 test "$silent" = yes &&
17055 ac_config_status_args="$ac_config_status_args --quiet"
17056 exec 5>/dev/null
17057 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17058 exec 5>>config.log
17059 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17060 # would make configure fail if this is the last instruction.
17061 $ac_cs_success || as_fn_exit 1
17062 fi
17063 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17065 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17066 fi
17067

Properties

Name Value
svn:executable *