ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.3/configure
Revision: 1095
Committed: Mon Aug 2 20:14:21 2010 UTC (13 years, 7 months ago) by michael
File size: 467974 byte(s)
Log Message:
- autoconf 2.67

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1092 2010-03-25 11:10:59Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.67 for ircd-hybrid 7.3-rc1.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # Foundation, Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55 else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
72 fi
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" "" $as_nl"
93
94 # Find who we are. Look in the path if we contain no directory separator.
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 BASH_ENV=/dev/null
229 ENV=/dev/null
230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231 export CONFIG_SHELL
232 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
233 fi
234
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 else
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: bugs@ircd-hybrid.org about your system, including any
244 $0: error possibly output before this message. Then install
245 $0: a modern shell, or manually run the script under such a
246 $0: shell if you do have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540 lt_ltdl_dir='libltdl'
541
542 SHELL=${CONFIG_SHELL-/bin/sh}
543
544
545 test -n "$DJDIR" || exec 7<&0 </dev/null
546 exec 6>&1
547
548 # Name of the host.
549 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
550 # so uname gets run too.
551 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
552
553 #
554 # Initializations.
555 #
556 ac_default_prefix=/usr/local
557 ac_clean_files=
558 ac_config_libobj_dir=.
559 LIBOBJS=
560 cross_compiling=no
561 subdirs=
562 MFLAGS=
563 MAKEFLAGS=
564
565 # Identity of this package.
566 PACKAGE_NAME='ircd-hybrid'
567 PACKAGE_TARNAME='ircd-hybrid'
568 PACKAGE_VERSION='7.3-rc1'
569 PACKAGE_STRING='ircd-hybrid 7.3-rc1'
570 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
571 PACKAGE_URL=''
572
573 ac_unique_file="src/ircd.c"
574 # Factoring default headers for most tests.
575 ac_includes_default="\
576 #include <stdio.h>
577 #ifdef HAVE_SYS_TYPES_H
578 # include <sys/types.h>
579 #endif
580 #ifdef HAVE_SYS_STAT_H
581 # include <sys/stat.h>
582 #endif
583 #ifdef STDC_HEADERS
584 # include <stdlib.h>
585 # include <stddef.h>
586 #else
587 # ifdef HAVE_STDLIB_H
588 # include <stdlib.h>
589 # endif
590 #endif
591 #ifdef HAVE_STRING_H
592 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
593 # include <memory.h>
594 # endif
595 # include <string.h>
596 #endif
597 #ifdef HAVE_STRINGS_H
598 # include <strings.h>
599 #endif
600 #ifdef HAVE_INTTYPES_H
601 # include <inttypes.h>
602 #endif
603 #ifdef HAVE_STDINT_H
604 # include <stdint.h>
605 #endif
606 #ifdef HAVE_UNISTD_H
607 # include <unistd.h>
608 #endif"
609
610 ac_func_list=
611 ac_header_list=
612 ac_subst_vars='ltdl_LTLIBOBJS
613 ltdl_LIBOBJS
614 am__EXEEXT_FALSE
615 am__EXEEXT_TRUE
616 LTLIBOBJS
617 LIBOBJS
618 LOCALSTATEDIR
619 DATADIR
620 LIBDIR
621 SYSCONFDIR
622 PREFIX
623 EFNET_FALSE
624 EFNET_TRUE
625 ENABLE_SSL_FALSE
626 ENABLE_SSL_TRUE
627 ENABLE_PCRE_FALSE
628 ENABLE_PCRE_TRUE
629 LTDLOPEN
630 LT_CONFIG_H
631 CONVENIENCE_LTDL_FALSE
632 CONVENIENCE_LTDL_TRUE
633 INSTALL_LTDL_FALSE
634 INSTALL_LTDL_TRUE
635 ARGZ_H
636 sys_symbol_underscore
637 LIBADD_DL
638 LT_DLPREOPEN
639 LIBADD_DLD_LINK
640 LIBADD_SHL_LOAD
641 LIBADD_DLOPEN
642 LT_DLLOADERS
643 INCLTDL
644 LTDLINCL
645 LTDLDEPS
646 LIBLTDL
647 CPP
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 RANLIB
654 AR
655 OBJDUMP
656 LN_S
657 NM
658 ac_ct_DUMPBIN
659 DUMPBIN
660 LD
661 FGREP
662 EGREP
663 GREP
664 SED
665 host_os
666 host_vendor
667 host_cpu
668 host
669 build_os
670 build_vendor
671 build_cpu
672 build
673 LIBTOOL
674 LEXLIB
675 LEX_OUTPUT_ROOT
676 LEX
677 YFLAGS
678 YACC
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
695 MAINT
696 MAINTAINER_MODE_FALSE
697 MAINTAINER_MODE_TRUE
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
703 AWK
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_maintainer_mode
763 enable_dependency_tracking
764 enable_static
765 enable_shared
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 enable_libtool_lock
770 with_included_ltdl
771 with_ltdl_include
772 with_ltdl_lib
773 enable_ltdl_install
774 with_zlib_path
775 enable_zlib
776 with_libpcre_path
777 enable_libpcre
778 enable_openssl
779 enable_assert
780 enable_small_net
781 enable_kqueue
782 enable_epoll
783 enable_devpoll
784 enable_rtsigio
785 enable_poll
786 enable_select
787 with_nicklen
788 with_topiclen
789 with_syslog_facility
790 enable_efnet
791 enable_halfops
792 enable_debugging
793 enable_warnings
794 enable_syslog
795 '
796 ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 LIBS
803 CPPFLAGS
804 YACC
805 YFLAGS
806 CPP'
807
808
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
830
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
856
857 ac_prev=
858 ac_dashdash=
859 for ac_option
860 do
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
866 fi
867
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
873
874 # Accept the important Cygnus configure options, so we can diagnose typos.
875
876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
884
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
899
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
904
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
937
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
953
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
962
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
966
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
973
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
978
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
984
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
991
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
996
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1001
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1008
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1013
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1020
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1025
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1029
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1033
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1037
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1046
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1051
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1058
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1065
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1082
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1087
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1092
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1212 ;;
1213
1214 esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1235 do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1263 If a cross compiler is detected then cross compile mode will be used" >&2
1264 elif test "x$build_alias" != "x$host_alias"; then
1265 cross_compiling=yes
1266 fi
1267 fi
1268
1269 ac_tool_prefix=
1270 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272 test "$silent" = yes && exec 6>/dev/null
1273
1274
1275 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276 ac_ls_di=`ls -di .` &&
1277 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278 as_fn_error $? "working directory cannot be determined"
1279 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280 as_fn_error $? "pwd does not report name of working directory"
1281
1282
1283 # Find the source files, if location was not specified.
1284 if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292 $as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\).*/{
1306 s//\1/
1307 q
1308 }
1309 s/.*/./; q'`
1310 srcdir=$ac_confdir
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 srcdir=..
1313 fi
1314 else
1315 ac_srcdir_defaulted=no
1316 fi
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320 fi
1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 ac_abs_confdir=`(
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324 pwd)`
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1328 fi
1329 # Remove unnecessary trailing slashes from srcdir.
1330 # Double slashes in file names in object file debugging info
1331 # mess up M-x gdb in Emacs.
1332 case $srcdir in
1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 esac
1335 for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340 done
1341
1342 #
1343 # Report the --help message.
1344 #
1345 if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349 \`configure' configures ircd-hybrid 7.3-rc1 to adapt to many kinds of systems.
1350
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354 VAR=VALUE. See below for descriptions of some of the useful variables.
1355
1356 Defaults for the options are specified in brackets.
1357
1358 Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking ...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
1369 Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 [PREFIX]
1374
1375 By default, \`make install' will install all the files in
1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378 for instance \`--prefix=\$HOME'.
1379
1380 For better control, use the options below.
1381
1382 Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402 _ACEOF
1403
1404 cat <<\_ACEOF
1405
1406 Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410
1411 System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 _ACEOF
1415 fi
1416
1417 if test -n "$ac_init_help"; then
1418 case $ac_init_help in
1419 short | recursive ) echo "Configuration of ircd-hybrid 7.3-rc1:";;
1420 esac
1421 cat <<\_ACEOF
1422
1423 Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --enable-maintainer-mode enable make rules and dependencies not useful
1428 (and sometimes confusing) to the casual installer
1429 --disable-dependency-tracking speeds up one-time build
1430 --enable-dependency-tracking do not reject slow dependency extractors
1431 --enable-static[=PKGS] build static libraries [default=no]
1432 --enable-shared[=PKGS] build shared libraries [default=yes]
1433 --enable-fast-install[=PKGS]
1434 optimize for fast installation [default=yes]
1435 --disable-libtool-lock avoid locking (might break parallel builds)
1436 --enable-ltdl-install install libltdl
1437 --disable-zlib Disable ziplinks support
1438 --disable-libpcre Disable PCRE support
1439 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1440 --disable-openssl Disable OpenSSL support.
1441 --enable-assert Enable assert() statements
1442 --enable-small-net Enable small network support.
1443 --enable-kqueue Force kqueue usage.
1444 --enable-epoll Force epoll usage.
1445 --enable-devpoll Force devpoll usage.
1446 --enable-rtsigio Force rtsigio usage.
1447 --enable-poll Force poll usage.
1448 --enable-select Force select usage.
1449 --enable-efnet For IRCDs running on EFnet.
1450 --enable-halfops Enable halfops support.
1451 --enable-debugging Enable debugging.
1452 --enable-warnings Enable compiler warnings.
1453 --enable-syslog="EVENTS"
1454 Enable syslog for events: users oper (space
1455 separated in quotes; default: disabled).
1456
1457 Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-pic try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1463 --with-included-ltdl use the GNU ltdl sources included here
1464 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1465 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1466 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1467 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1468 --with-nicklen=<value> Set nickname length (default 9).
1469 --with-topiclen=<value> Set topic length (default 160).
1470 --with-syslog-facility=LOG
1471 Define the syslog facility to use (default:
1472 LOG_LOCAL4)
1473
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1483 the first program found out of: `bison -y', `byacc', `yacc'.
1484 YFLAGS The list of arguments that will be passed by default to $YACC.
1485 This script will default YFLAGS to the empty string to avoid a
1486 default value of `-d' given by some make applications.
1487 CPP C preprocessor
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to <bugs@ircd-hybrid.org>.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502 continue
1503 ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554 cat <<\_ACEOF
1555 ircd-hybrid configure 7.3-rc1
1556 generated by GNU Autoconf 2.67
1557
1558 Copyright (C) 2010 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562 exit
1563 fi
1564
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1568
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601 fi
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_compile
1606
1607 # ac_fn_c_try_link LINENO
1608 # -----------------------
1609 # Try to link conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_link ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext conftest$ac_exeext
1614 if { { ac_try="$ac_link"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_link") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest$ac_exeext && {
1633 test "$cross_compiling" = yes ||
1634 $as_test_x conftest$ac_exeext
1635 }; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642 fi
1643 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645 # interfere with the next link command; also delete a directory that is
1646 # left behind by Apple's compiler. We do this before executing the actions.
1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649 as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_link
1652
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if eval "test \"\${$3+set}\"" = set; then :
1663 $as_echo_n "(cached) " >&6
1664 else
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 $4
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 eval "$3=yes"
1672 else
1673 eval "$3=no"
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 fi
1677 eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681
1682 } # ac_fn_c_check_header_compile
1683
1684 # ac_fn_c_try_cpp LINENO
1685 # ----------------------
1686 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_cpp ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } > conftest.i && {
1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1
1715 fi
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 as_fn_set_status $ac_retval
1718
1719 } # ac_fn_c_try_cpp
1720
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=$ac_status
1756 fi
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_run
1762
1763 # ac_fn_c_check_func LINENO FUNC VAR
1764 # ----------------------------------
1765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1766 ac_fn_c_check_func ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval "test \"\${$3+set}\"" = set; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1778 #define $2 innocuous_$2
1779
1780 /* System header to define __stub macros and hopefully few prototypes,
1781 which can conflict with char $2 (); below.
1782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783 <limits.h> exists even on freestanding compilers. */
1784
1785 #ifdef __STDC__
1786 # include <limits.h>
1787 #else
1788 # include <assert.h>
1789 #endif
1790
1791 #undef $2
1792
1793 /* Override any GCC internal prototype to avoid an error.
1794 Use char because int might match the return type of a GCC
1795 builtin and then its argument prototype would still apply. */
1796 #ifdef __cplusplus
1797 extern "C"
1798 #endif
1799 char $2 ();
1800 /* The GNU C library defines this for functions which it implements
1801 to always fail with ENOSYS. Some functions are actually named
1802 something starting with __ and the normal name is an alias. */
1803 #if defined __stub_$2 || defined __stub___$2
1804 choke me
1805 #endif
1806
1807 int
1808 main ()
1809 {
1810 return $2 ();
1811 ;
1812 return 0;
1813 }
1814 _ACEOF
1815 if ac_fn_c_try_link "$LINENO"; then :
1816 eval "$3=yes"
1817 else
1818 eval "$3=no"
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext \
1821 conftest$ac_exeext conftest.$ac_ext
1822 fi
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
1828 } # ac_fn_c_check_func
1829
1830 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1831 # ---------------------------------------------
1832 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1833 # accordingly.
1834 ac_fn_c_check_decl ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 as_decl_name=`echo $2|sed 's/ *(.*//'`
1838 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1840 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1841 if eval "test \"\${$3+set}\"" = set; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 $4
1847 int
1848 main ()
1849 {
1850 #ifndef $as_decl_name
1851 #ifdef __cplusplus
1852 (void) $as_decl_use;
1853 #else
1854 (void) $as_decl_name;
1855 #endif
1856 #endif
1857
1858 ;
1859 return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_compile "$LINENO"; then :
1863 eval "$3=yes"
1864 else
1865 eval "$3=no"
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 fi
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873
1874 } # ac_fn_c_check_decl
1875
1876 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1877 # -------------------------------------------
1878 # Tests whether TYPE exists after having included INCLUDES, setting cache
1879 # variable VAR accordingly.
1880 ac_fn_c_check_type ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval "test \"\${$3+set}\"" = set; then :
1886 $as_echo_n "(cached) " >&6
1887 else
1888 eval "$3=no"
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 $4
1892 int
1893 main ()
1894 {
1895 if (sizeof ($2))
1896 return 0;
1897 ;
1898 return 0;
1899 }
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $4
1905 int
1906 main ()
1907 {
1908 if (sizeof (($2)))
1909 return 0;
1910 ;
1911 return 0;
1912 }
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915
1916 else
1917 eval "$3=yes"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927
1928 } # ac_fn_c_check_type
1929
1930 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1931 # ----------------------------------------------------
1932 # Tries to find if the field MEMBER exists in type AGGR, after including
1933 # INCLUDES, setting cache variable VAR accordingly.
1934 ac_fn_c_check_member ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1938 $as_echo_n "checking for $2.$3... " >&6; }
1939 if eval "test \"\${$4+set}\"" = set; then :
1940 $as_echo_n "(cached) " >&6
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 $5
1945 int
1946 main ()
1947 {
1948 static $2 ac_aggr;
1949 if (ac_aggr.$3)
1950 return 0;
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 eval "$4=yes"
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $5
1961 int
1962 main ()
1963 {
1964 static $2 ac_aggr;
1965 if (sizeof ac_aggr.$3)
1966 return 0;
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$4=yes"
1973 else
1974 eval "$4=no"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 eval ac_res=\$$4
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984
1985 } # ac_fn_c_check_member
1986
1987 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1988 # -------------------------------------------------------
1989 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1990 # the include files in INCLUDES and setting the cache variable VAR
1991 # accordingly.
1992 ac_fn_c_check_header_mongrel ()
1993 {
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 if eval "test \"\${$3+set}\"" = set; then :
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval "test \"\${$3+set}\"" = set; then :
1999 $as_echo_n "(cached) " >&6
2000 fi
2001 eval ac_res=\$$3
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 else
2005 # Is the header compilable?
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2007 $as_echo_n "checking $2 usability... " >&6; }
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2010 $4
2011 #include <$2>
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 ac_header_compiler=yes
2015 else
2016 ac_header_compiler=no
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2020 $as_echo "$ac_header_compiler" >&6; }
2021
2022 # Is the header present?
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2024 $as_echo_n "checking $2 presence... " >&6; }
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_c_try_cpp "$LINENO"; then :
2030 ac_header_preproc=yes
2031 else
2032 ac_header_preproc=no
2033 fi
2034 rm -f conftest.err conftest.i conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2036 $as_echo "$ac_header_preproc" >&6; }
2037
2038 # So? What about this header?
2039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2040 yes:no: )
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2042 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2044 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2045 ;;
2046 no:yes:* )
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2048 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2050 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2052 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2054 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2056 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2057 ( $as_echo "## ----------------------------------- ##
2058 ## Report this to bugs@ircd-hybrid.org ##
2059 ## ----------------------------------- ##"
2060 ) | sed "s/^/$as_me: WARNING: /" >&2
2061 ;;
2062 esac
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval "test \"\${$3+set}\"" = set; then :
2066 $as_echo_n "(cached) " >&6
2067 else
2068 eval "$3=\$ac_header_compiler"
2069 fi
2070 eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 fi
2074 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2075
2076 } # ac_fn_c_check_header_mongrel
2077 cat >config.log <<_ACEOF
2078 This file contains any messages produced by compilers while
2079 running configure, to aid debugging if configure makes a mistake.
2080
2081 It was created by ircd-hybrid $as_me 7.3-rc1, which was
2082 generated by GNU Autoconf 2.67. Invocation command line was
2083
2084 $ $0 $@
2085
2086 _ACEOF
2087 exec 5>>config.log
2088 {
2089 cat <<_ASUNAME
2090 ## --------- ##
2091 ## Platform. ##
2092 ## --------- ##
2093
2094 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2095 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2096 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2097 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2098 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2099
2100 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2101 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2102
2103 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2104 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2105 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2106 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2107 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2108 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2109 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2110
2111 _ASUNAME
2112
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2115 do
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 $as_echo "PATH: $as_dir"
2119 done
2120 IFS=$as_save_IFS
2121
2122 } >&5
2123
2124 cat >&5 <<_ACEOF
2125
2126
2127 ## ----------- ##
2128 ## Core tests. ##
2129 ## ----------- ##
2130
2131 _ACEOF
2132
2133
2134 # Keep a trace of the command line.
2135 # Strip out --no-create and --no-recursion so they do not pile up.
2136 # Strip out --silent because we don't want to record it for future runs.
2137 # Also quote any args containing shell meta-characters.
2138 # Make two passes to allow for proper duplicate-argument suppression.
2139 ac_configure_args=
2140 ac_configure_args0=
2141 ac_configure_args1=
2142 ac_must_keep_next=false
2143 for ac_pass in 1 2
2144 do
2145 for ac_arg
2146 do
2147 case $ac_arg in
2148 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2150 | -silent | --silent | --silen | --sile | --sil)
2151 continue ;;
2152 *\'*)
2153 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2154 esac
2155 case $ac_pass in
2156 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2157 2)
2158 as_fn_append ac_configure_args1 " '$ac_arg'"
2159 if test $ac_must_keep_next = true; then
2160 ac_must_keep_next=false # Got value, back to normal.
2161 else
2162 case $ac_arg in
2163 *=* | --config-cache | -C | -disable-* | --disable-* \
2164 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2165 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2166 | -with-* | --with-* | -without-* | --without-* | --x)
2167 case "$ac_configure_args0 " in
2168 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2169 esac
2170 ;;
2171 -* ) ac_must_keep_next=true ;;
2172 esac
2173 fi
2174 as_fn_append ac_configure_args " '$ac_arg'"
2175 ;;
2176 esac
2177 done
2178 done
2179 { ac_configure_args0=; unset ac_configure_args0;}
2180 { ac_configure_args1=; unset ac_configure_args1;}
2181
2182 # When interrupted or exit'd, cleanup temporary files, and complete
2183 # config.log. We remove comments because anyway the quotes in there
2184 # would cause problems or look ugly.
2185 # WARNING: Use '\'' to represent an apostrophe within the trap.
2186 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2187 trap 'exit_status=$?
2188 # Save into config.log some information that might help in debugging.
2189 {
2190 echo
2191
2192 $as_echo "## ---------------- ##
2193 ## Cache variables. ##
2194 ## ---------------- ##"
2195 echo
2196 # The following way of writing the cache mishandles newlines in values,
2197 (
2198 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2199 eval ac_val=\$$ac_var
2200 case $ac_val in #(
2201 *${as_nl}*)
2202 case $ac_var in #(
2203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2204 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2205 esac
2206 case $ac_var in #(
2207 _ | IFS | as_nl) ;; #(
2208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2209 *) { eval $ac_var=; unset $ac_var;} ;;
2210 esac ;;
2211 esac
2212 done
2213 (set) 2>&1 |
2214 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2215 *${as_nl}ac_space=\ *)
2216 sed -n \
2217 "s/'\''/'\''\\\\'\'''\''/g;
2218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2219 ;; #(
2220 *)
2221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2222 ;;
2223 esac |
2224 sort
2225 )
2226 echo
2227
2228 $as_echo "## ----------------- ##
2229 ## Output variables. ##
2230 ## ----------------- ##"
2231 echo
2232 for ac_var in $ac_subst_vars
2233 do
2234 eval ac_val=\$$ac_var
2235 case $ac_val in
2236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2237 esac
2238 $as_echo "$ac_var='\''$ac_val'\''"
2239 done | sort
2240 echo
2241
2242 if test -n "$ac_subst_files"; then
2243 $as_echo "## ------------------- ##
2244 ## File substitutions. ##
2245 ## ------------------- ##"
2246 echo
2247 for ac_var in $ac_subst_files
2248 do
2249 eval ac_val=\$$ac_var
2250 case $ac_val in
2251 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2252 esac
2253 $as_echo "$ac_var='\''$ac_val'\''"
2254 done | sort
2255 echo
2256 fi
2257
2258 if test -s confdefs.h; then
2259 $as_echo "## ----------- ##
2260 ## confdefs.h. ##
2261 ## ----------- ##"
2262 echo
2263 cat confdefs.h
2264 echo
2265 fi
2266 test "$ac_signal" != 0 &&
2267 $as_echo "$as_me: caught signal $ac_signal"
2268 $as_echo "$as_me: exit $exit_status"
2269 } >&5
2270 rm -f core *.core core.conftest.* &&
2271 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2272 exit $exit_status
2273 ' 0
2274 for ac_signal in 1 2 13 15; do
2275 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2276 done
2277 ac_signal=0
2278
2279 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2280 rm -f -r conftest* confdefs.h
2281
2282 $as_echo "/* confdefs.h */" > confdefs.h
2283
2284 # Predefined preprocessor variables.
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_NAME "$PACKAGE_NAME"
2288 _ACEOF
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2292 _ACEOF
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2296 _ACEOF
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_STRING "$PACKAGE_STRING"
2300 _ACEOF
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_URL "$PACKAGE_URL"
2308 _ACEOF
2309
2310
2311 # Let the site file select an alternate cache file if it wants to.
2312 # Prefer an explicitly selected file to automatically selected ones.
2313 ac_site_file1=NONE
2314 ac_site_file2=NONE
2315 if test -n "$CONFIG_SITE"; then
2316 # We do not want a PATH search for config.site.
2317 case $CONFIG_SITE in #((
2318 -*) ac_site_file1=./$CONFIG_SITE;;
2319 */*) ac_site_file1=$CONFIG_SITE;;
2320 *) ac_site_file1=./$CONFIG_SITE;;
2321 esac
2322 elif test "x$prefix" != xNONE; then
2323 ac_site_file1=$prefix/share/config.site
2324 ac_site_file2=$prefix/etc/config.site
2325 else
2326 ac_site_file1=$ac_default_prefix/share/config.site
2327 ac_site_file2=$ac_default_prefix/etc/config.site
2328 fi
2329 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2330 do
2331 test "x$ac_site_file" = xNONE && continue
2332 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2334 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2335 sed 's/^/| /' "$ac_site_file" >&5
2336 . "$ac_site_file" \
2337 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2339 as_fn_error $? "failed to load site script $ac_site_file
2340 See \`config.log' for more details" "$LINENO" 5; }
2341 fi
2342 done
2343
2344 if test -r "$cache_file"; then
2345 # Some versions of bash will fail to source /dev/null (special files
2346 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2347 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2349 $as_echo "$as_me: loading cache $cache_file" >&6;}
2350 case $cache_file in
2351 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2352 *) . "./$cache_file";;
2353 esac
2354 fi
2355 else
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2357 $as_echo "$as_me: creating cache $cache_file" >&6;}
2358 >$cache_file
2359 fi
2360
2361 as_fn_append ac_func_list " mmap"
2362 as_fn_append ac_func_list " strtok_r"
2363 as_fn_append ac_func_list " usleep"
2364 as_fn_append ac_func_list " strlcat"
2365 as_fn_append ac_func_list " strlcpy"
2366 as_fn_append ac_header_list " crypt.h"
2367 as_fn_append ac_header_list " inttypes.h"
2368 as_fn_append ac_header_list " stdint.h"
2369 as_fn_append ac_header_list " sys/resource.h"
2370 as_fn_append ac_header_list " sys/param.h"
2371 as_fn_append ac_header_list " errno.h"
2372 as_fn_append ac_header_list " sys/syslog.h"
2373 as_fn_append ac_header_list " types.h"
2374 as_fn_append ac_header_list " socket.h"
2375 as_fn_append ac_header_list " sys/wait.h"
2376 as_fn_append ac_header_list " wait.h"
2377 as_fn_append ac_header_list " link.h"
2378 # Check that the precious variables saved in the cache have kept the same
2379 # value.
2380 ac_cache_corrupted=false
2381 for ac_var in $ac_precious_vars; do
2382 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2383 eval ac_new_set=\$ac_env_${ac_var}_set
2384 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2385 eval ac_new_val=\$ac_env_${ac_var}_value
2386 case $ac_old_set,$ac_new_set in
2387 set,)
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2389 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2390 ac_cache_corrupted=: ;;
2391 ,set)
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2393 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2394 ac_cache_corrupted=: ;;
2395 ,);;
2396 *)
2397 if test "x$ac_old_val" != "x$ac_new_val"; then
2398 # differences in whitespace do not lead to failure.
2399 ac_old_val_w=`echo x $ac_old_val`
2400 ac_new_val_w=`echo x $ac_new_val`
2401 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2403 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2404 ac_cache_corrupted=:
2405 else
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2407 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2408 eval $ac_var=\$ac_old_val
2409 fi
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2411 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2413 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2414 fi;;
2415 esac
2416 # Pass precious variables to config.status.
2417 if test "$ac_new_set" = set; then
2418 case $ac_new_val in
2419 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2420 *) ac_arg=$ac_var=$ac_new_val ;;
2421 esac
2422 case " $ac_configure_args " in
2423 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2424 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2425 esac
2426 fi
2427 done
2428 if $ac_cache_corrupted; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2432 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2433 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2434 fi
2435 ## -------------------- ##
2436 ## Main body of script. ##
2437 ## -------------------- ##
2438
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444
2445
2446 am__api_version='1.11'
2447
2448 ac_aux_dir=
2449 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2450 if test -f "$ac_dir/install-sh"; then
2451 ac_aux_dir=$ac_dir
2452 ac_install_sh="$ac_aux_dir/install-sh -c"
2453 break
2454 elif test -f "$ac_dir/install.sh"; then
2455 ac_aux_dir=$ac_dir
2456 ac_install_sh="$ac_aux_dir/install.sh -c"
2457 break
2458 elif test -f "$ac_dir/shtool"; then
2459 ac_aux_dir=$ac_dir
2460 ac_install_sh="$ac_aux_dir/shtool install -c"
2461 break
2462 fi
2463 done
2464 if test -z "$ac_aux_dir"; then
2465 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2466 fi
2467
2468 # These three variables are undocumented and unsupported,
2469 # and are intended to be withdrawn in a future Autoconf release.
2470 # They can cause serious problems if a builder's source tree is in a directory
2471 # whose full name contains unusual characters.
2472 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2473 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2474 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2475
2476
2477 # Find a good install program. We prefer a C program (faster),
2478 # so one script is as good as another. But avoid the broken or
2479 # incompatible versions:
2480 # SysV /etc/install, /usr/sbin/install
2481 # SunOS /usr/etc/install
2482 # IRIX /sbin/install
2483 # AIX /bin/install
2484 # AmigaOS /C/install, which installs bootblocks on floppy discs
2485 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2486 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2487 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2488 # OS/2's system install, which has a completely different semantic
2489 # ./install, which can be erroneously created by make from ./install.sh.
2490 # Reject install programs that cannot install multiple files.
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2492 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2493 if test -z "$INSTALL"; then
2494 if test "${ac_cv_path_install+set}" = set; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2499 do
2500 IFS=$as_save_IFS
2501 test -z "$as_dir" && as_dir=.
2502 # Account for people who put trailing slashes in PATH elements.
2503 case $as_dir/ in #((
2504 ./ | .// | /[cC]/* | \
2505 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2506 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2507 /usr/ucb/* ) ;;
2508 *)
2509 # OSF1 and SCO ODT 3.0 have their own names for install.
2510 # Don't use installbsd from OSF since it installs stuff as root
2511 # by default.
2512 for ac_prog in ginstall scoinst install; do
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2515 if test $ac_prog = install &&
2516 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2517 # AIX install. It has an incompatible calling convention.
2518 :
2519 elif test $ac_prog = install &&
2520 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2521 # program-specific install script used by HP pwplus--don't use.
2522 :
2523 else
2524 rm -rf conftest.one conftest.two conftest.dir
2525 echo one > conftest.one
2526 echo two > conftest.two
2527 mkdir conftest.dir
2528 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2529 test -s conftest.one && test -s conftest.two &&
2530 test -s conftest.dir/conftest.one &&
2531 test -s conftest.dir/conftest.two
2532 then
2533 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2534 break 3
2535 fi
2536 fi
2537 fi
2538 done
2539 done
2540 ;;
2541 esac
2542
2543 done
2544 IFS=$as_save_IFS
2545
2546 rm -rf conftest.one conftest.two conftest.dir
2547
2548 fi
2549 if test "${ac_cv_path_install+set}" = set; then
2550 INSTALL=$ac_cv_path_install
2551 else
2552 # As a last resort, use the slow shell script. Don't cache a
2553 # value for INSTALL within a source directory, because that will
2554 # break other packages using the cache if that directory is
2555 # removed, or if the value is a relative name.
2556 INSTALL=$ac_install_sh
2557 fi
2558 fi
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2560 $as_echo "$INSTALL" >&6; }
2561
2562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563 # It thinks the first close brace ends the variable substitution.
2564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565
2566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567
2568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2571 $as_echo_n "checking whether build environment is sane... " >&6; }
2572 # Just in case
2573 sleep 1
2574 echo timestamp > conftest.file
2575 # Reject unsafe characters in $srcdir or the absolute working directory
2576 # name. Accept space and tab only in the latter.
2577 am_lf='
2578 '
2579 case `pwd` in
2580 *[\\\"\#\$\&\'\`$am_lf]*)
2581 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2582 esac
2583 case $srcdir in
2584 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2585 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2586 esac
2587
2588 # Do `set' in a subshell so we don't clobber the current shell's
2589 # arguments. Must try -L first in case configure is actually a
2590 # symlink; some systems play weird games with the mod time of symlinks
2591 # (eg FreeBSD returns the mod time of the symlink's containing
2592 # directory).
2593 if (
2594 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2595 if test "$*" = "X"; then
2596 # -L didn't work.
2597 set X `ls -t "$srcdir/configure" conftest.file`
2598 fi
2599 rm -f conftest.file
2600 if test "$*" != "X $srcdir/configure conftest.file" \
2601 && test "$*" != "X conftest.file $srcdir/configure"; then
2602
2603 # If neither matched, then we have a broken ls. This can happen
2604 # if, for instance, CONFIG_SHELL is bash and it inherits a
2605 # broken ls alias from the environment. This has actually
2606 # happened. Such a system could not be considered "sane".
2607 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2608 alias in your environment" "$LINENO" 5
2609 fi
2610
2611 test "$2" = conftest.file
2612 )
2613 then
2614 # Ok.
2615 :
2616 else
2617 as_fn_error $? "newly created file is older than distributed files!
2618 Check your system clock" "$LINENO" 5
2619 fi
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621 $as_echo "yes" >&6; }
2622 test "$program_prefix" != NONE &&
2623 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2624 # Use a double $ so make ignores it.
2625 test "$program_suffix" != NONE &&
2626 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2627 # Double any \ or $.
2628 # By default was `s,x,x', remove it if useless.
2629 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2630 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2631
2632 # expand $ac_aux_dir to an absolute path
2633 am_aux_dir=`cd $ac_aux_dir && pwd`
2634
2635 if test x"${MISSING+set}" != xset; then
2636 case $am_aux_dir in
2637 *\ * | *\ *)
2638 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2639 *)
2640 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2641 esac
2642 fi
2643 # Use eval to expand $SHELL
2644 if eval "$MISSING --run true"; then
2645 am_missing_run="$MISSING --run "
2646 else
2647 am_missing_run=
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2649 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2650 fi
2651
2652 if test x"${install_sh}" != xset; then
2653 case $am_aux_dir in
2654 *\ * | *\ *)
2655 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2656 *)
2657 install_sh="\${SHELL} $am_aux_dir/install-sh"
2658 esac
2659 fi
2660
2661 # Installed binaries are usually stripped using `strip' when the user
2662 # run `make install-strip'. However `strip' might not be the right
2663 # tool to use in cross-compilation environments, therefore Automake
2664 # will honor the `STRIP' environment variable to overrule this program.
2665 if test "$cross_compiling" != no; then
2666 if test -n "$ac_tool_prefix"; then
2667 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2668 set dummy ${ac_tool_prefix}strip; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if test "${ac_cv_prog_STRIP+set}" = set; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 if test -n "$STRIP"; then
2675 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688 done
2689 done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 STRIP=$ac_cv_prog_STRIP
2695 if test -n "$STRIP"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2697 $as_echo "$STRIP" >&6; }
2698 else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2701 fi
2702
2703
2704 fi
2705 if test -z "$ac_cv_prog_STRIP"; then
2706 ac_ct_STRIP=$STRIP
2707 # Extract the first word of "strip", so it can be a program name with args.
2708 set dummy strip; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 if test -n "$ac_ct_STRIP"; then
2715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_ac_ct_STRIP="strip"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728 done
2729 done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2735 if test -n "$ac_ct_STRIP"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2737 $as_echo "$ac_ct_STRIP" >&6; }
2738 else
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2741 fi
2742
2743 if test "x$ac_ct_STRIP" = x; then
2744 STRIP=":"
2745 else
2746 case $cross_compiling:$ac_tool_warned in
2747 yes:)
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2750 ac_tool_warned=yes ;;
2751 esac
2752 STRIP=$ac_ct_STRIP
2753 fi
2754 else
2755 STRIP="$ac_cv_prog_STRIP"
2756 fi
2757
2758 fi
2759 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2760
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2762 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2763 if test -z "$MKDIR_P"; then
2764 if test "${ac_cv_path_mkdir+set}" = set; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2769 do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_prog in mkdir gmkdir; do
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2775 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2776 'mkdir (GNU coreutils) '* | \
2777 'mkdir (coreutils) '* | \
2778 'mkdir (fileutils) '4.1*)
2779 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2780 break 3;;
2781 esac
2782 done
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788
2789 test -d ./--version && rmdir ./--version
2790 if test "${ac_cv_path_mkdir+set}" = set; then
2791 MKDIR_P="$ac_cv_path_mkdir -p"
2792 else
2793 # As a last resort, use the slow shell script. Don't cache a
2794 # value for MKDIR_P within a source directory, because that will
2795 # break other packages using the cache if that directory is
2796 # removed, or if the value is a relative name.
2797 MKDIR_P="$ac_install_sh -d"
2798 fi
2799 fi
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2801 $as_echo "$MKDIR_P" >&6; }
2802
2803 mkdir_p="$MKDIR_P"
2804 case $mkdir_p in
2805 [\\/$]* | ?:[\\/]*) ;;
2806 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2807 esac
2808
2809 for ac_prog in gawk mawk nawk awk
2810 do
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if test "${ac_cv_prog_AWK+set}" = set; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 if test -n "$AWK"; then
2819 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_AWK="$ac_prog"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 AWK=$ac_cv_prog_AWK
2839 if test -n "$AWK"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2841 $as_echo "$AWK" >&6; }
2842 else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847
2848 test -n "$AWK" && break
2849 done
2850
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2852 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2853 set x ${MAKE-make}
2854 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2855 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2856 $as_echo_n "(cached) " >&6
2857 else
2858 cat >conftest.make <<\_ACEOF
2859 SHELL = /bin/sh
2860 all:
2861 @echo '@@@%%%=$(MAKE)=@@@%%%'
2862 _ACEOF
2863 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2864 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2865 *@@@%%%=?*=@@@%%%*)
2866 eval ac_cv_prog_make_${ac_make}_set=yes;;
2867 *)
2868 eval ac_cv_prog_make_${ac_make}_set=no;;
2869 esac
2870 rm -f conftest.make
2871 fi
2872 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874 $as_echo "yes" >&6; }
2875 SET_MAKE=
2876 else
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 SET_MAKE="MAKE=${MAKE-make}"
2880 fi
2881
2882 rm -rf .tst 2>/dev/null
2883 mkdir .tst 2>/dev/null
2884 if test -d .tst; then
2885 am__leading_dot=.
2886 else
2887 am__leading_dot=_
2888 fi
2889 rmdir .tst 2>/dev/null
2890
2891 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2892 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2893 # is not polluted with repeated "-I."
2894 am__isrc=' -I$(srcdir)'
2895 # test to see if srcdir already configured
2896 if test -f $srcdir/config.status; then
2897 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2898 fi
2899 fi
2900
2901 # test whether we have cygpath
2902 if test -z "$CYGPATH_W"; then
2903 if (cygpath --version) >/dev/null 2>/dev/null; then
2904 CYGPATH_W='cygpath -w'
2905 else
2906 CYGPATH_W=echo
2907 fi
2908 fi
2909
2910
2911 # Define the identity of the package.
2912 PACKAGE='ircd-hybrid'
2913 VERSION='7.3-rc1'
2914
2915
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE "$PACKAGE"
2918 _ACEOF
2919
2920
2921 cat >>confdefs.h <<_ACEOF
2922 #define VERSION "$VERSION"
2923 _ACEOF
2924
2925 # Some tools Automake needs.
2926
2927 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2928
2929
2930 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2931
2932
2933 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2934
2935
2936 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2937
2938
2939 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2940
2941 # We need awk for the "check" target. The system "awk" is bad on
2942 # some platforms.
2943 # Always define AMTAR for backward compatibility.
2944
2945 AMTAR=${AMTAR-"${am_missing_run}tar"}
2946
2947 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2948
2949
2950
2951
2952
2953
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2955 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2956 # Check whether --enable-maintainer-mode was given.
2957 if test "${enable_maintainer_mode+set}" = set; then :
2958 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2959 else
2960 USE_MAINTAINER_MODE=no
2961 fi
2962
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2964 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2965 if test $USE_MAINTAINER_MODE = yes; then
2966 MAINTAINER_MODE_TRUE=
2967 MAINTAINER_MODE_FALSE='#'
2968 else
2969 MAINTAINER_MODE_TRUE='#'
2970 MAINTAINER_MODE_FALSE=
2971 fi
2972
2973 MAINT=$MAINTAINER_MODE_TRUE
2974
2975
2976 ac_config_headers="$ac_config_headers config.h"
2977
2978
2979
2980 # Checks for programs.
2981 DEPDIR="${am__leading_dot}deps"
2982
2983 ac_config_commands="$ac_config_commands depfiles"
2984
2985
2986 am_make=${MAKE-make}
2987 cat > confinc << 'END'
2988 am__doit:
2989 @echo this is the am__doit target
2990 .PHONY: am__doit
2991 END
2992 # If we don't find an include directive, just comment out the code.
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2994 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2995 am__include="#"
2996 am__quote=
2997 _am_result=none
2998 # First try GNU make style include.
2999 echo "include confinc" > confmf
3000 # Ignore all kinds of additional output from `make'.
3001 case `$am_make -s -f confmf 2> /dev/null` in #(
3002 *the\ am__doit\ target*)
3003 am__include=include
3004 am__quote=
3005 _am_result=GNU
3006 ;;
3007 esac
3008 # Now try BSD make style include.
3009 if test "$am__include" = "#"; then
3010 echo '.include "confinc"' > confmf
3011 case `$am_make -s -f confmf 2> /dev/null` in #(
3012 *the\ am__doit\ target*)
3013 am__include=.include
3014 am__quote="\""
3015 _am_result=BSD
3016 ;;
3017 esac
3018 fi
3019
3020
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3022 $as_echo "$_am_result" >&6; }
3023 rm -f confinc confmf
3024
3025 # Check whether --enable-dependency-tracking was given.
3026 if test "${enable_dependency_tracking+set}" = set; then :
3027 enableval=$enable_dependency_tracking;
3028 fi
3029
3030 if test "x$enable_dependency_tracking" != xno; then
3031 am_depcomp="$ac_aux_dir/depcomp"
3032 AMDEPBACKSLASH='\'
3033 fi
3034 if test "x$enable_dependency_tracking" != xno; then
3035 AMDEP_TRUE=
3036 AMDEP_FALSE='#'
3037 else
3038 AMDEP_TRUE='#'
3039 AMDEP_FALSE=
3040 fi
3041
3042
3043 ac_ext=c
3044 ac_cpp='$CPP $CPPFLAGS'
3045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048 if test -n "$ac_tool_prefix"; then
3049 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if test "${ac_cv_prog_CC+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 CC=$ac_cv_prog_CC
3077 if test -n "$CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3080 else
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085
3086 fi
3087 if test -z "$ac_cv_prog_CC"; then
3088 ac_ct_CC=$CC
3089 # Extract the first word of "gcc", so it can be a program name with args.
3090 set dummy gcc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 if test -n "$ac_ct_CC"; then
3097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 ac_cv_prog_ac_ct_CC="gcc"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110 done
3111 done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3117 if test -n "$ac_ct_CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3119 $as_echo "$ac_ct_CC" >&6; }
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125 if test "x$ac_ct_CC" = x; then
3126 CC=""
3127 else
3128 case $cross_compiling:$ac_tool_warned in
3129 yes:)
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132 ac_tool_warned=yes ;;
3133 esac
3134 CC=$ac_ct_CC
3135 fi
3136 else
3137 CC="$ac_cv_prog_CC"
3138 fi
3139
3140 if test -z "$CC"; then
3141 if test -n "$ac_tool_prefix"; then
3142 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3143 set dummy ${ac_tool_prefix}cc; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if test "${ac_cv_prog_CC+set}" = set; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3151 else
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3154 do
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159 ac_cv_prog_CC="${ac_tool_prefix}cc"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3162 fi
3163 done
3164 done
3165 IFS=$as_save_IFS
3166
3167 fi
3168 fi
3169 CC=$ac_cv_prog_CC
3170 if test -n "$CC"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3172 $as_echo "$CC" >&6; }
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3176 fi
3177
3178
3179 fi
3180 fi
3181 if test -z "$CC"; then
3182 # Extract the first word of "cc", so it can be a program name with args.
3183 set dummy cc; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if test "${ac_cv_prog_CC+set}" = set; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 if test -n "$CC"; then
3190 ac_cv_prog_CC="$CC" # Let the user override the test.
3191 else
3192 ac_prog_rejected=no
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3201 ac_prog_rejected=yes
3202 continue
3203 fi
3204 ac_cv_prog_CC="cc"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3207 fi
3208 done
3209 done
3210 IFS=$as_save_IFS
3211
3212 if test $ac_prog_rejected = yes; then
3213 # We found a bogon in the path, so make sure we never use it.
3214 set dummy $ac_cv_prog_CC
3215 shift
3216 if test $# != 0; then
3217 # We chose a different compiler from the bogus one.
3218 # However, it has the same basename, so the bogon will be chosen
3219 # first if we set CC to just the basename; use the full file name.
3220 shift
3221 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3222 fi
3223 fi
3224 fi
3225 fi
3226 CC=$ac_cv_prog_CC
3227 if test -n "$CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3229 $as_echo "$CC" >&6; }
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235
3236 fi
3237 if test -z "$CC"; then
3238 if test -n "$ac_tool_prefix"; then
3239 for ac_prog in cl.exe
3240 do
3241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_CC+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3261 fi
3262 done
3263 done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277
3278 test -n "$CC" && break
3279 done
3280 fi
3281 if test -z "$CC"; then
3282 ac_ct_CC=$CC
3283 for ac_prog in cl.exe
3284 do
3285 # Extract the first word of "$ac_prog", so it can be a program name with args.
3286 set dummy $ac_prog; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test -n "$ac_ct_CC"; then
3293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_ac_ct_CC="$ac_prog"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3305 fi
3306 done
3307 done
3308 IFS=$as_save_IFS
3309
3310 fi
3311 fi
3312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3313 if test -n "$ac_ct_CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3315 $as_echo "$ac_ct_CC" >&6; }
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 fi
3320
3321
3322 test -n "$ac_ct_CC" && break
3323 done
3324
3325 if test "x$ac_ct_CC" = x; then
3326 CC=""
3327 else
3328 case $cross_compiling:$ac_tool_warned in
3329 yes:)
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3332 ac_tool_warned=yes ;;
3333 esac
3334 CC=$ac_ct_CC
3335 fi
3336 fi
3337
3338 fi
3339
3340
3341 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error $? "no acceptable C compiler found in \$PATH
3344 See \`config.log' for more details" "$LINENO" 5; }
3345
3346 # Provide some information about the compiler.
3347 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3348 set X $ac_compile
3349 ac_compiler=$2
3350 for ac_option in --version -v -V -qversion; do
3351 { { ac_try="$ac_compiler $ac_option >&5"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3359 ac_status=$?
3360 if test -s conftest.err; then
3361 sed '10a\
3362 ... rest of stderr output deleted ...
3363 10q' conftest.err >conftest.er1
3364 cat conftest.er1 >&5
3365 fi
3366 rm -f conftest.er1 conftest.err
3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368 test $ac_status = 0; }
3369 done
3370
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3373
3374 int
3375 main ()
3376 {
3377
3378 ;
3379 return 0;
3380 }
3381 _ACEOF
3382 ac_clean_files_save=$ac_clean_files
3383 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3384 # Try to create an executable without -o first, disregard a.out.
3385 # It will help us diagnose broken compilers, and finding out an intuition
3386 # of exeext.
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3388 $as_echo_n "checking whether the C compiler works... " >&6; }
3389 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3390
3391 # The possible output files:
3392 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3393
3394 ac_rmfiles=
3395 for ac_file in $ac_files
3396 do
3397 case $ac_file in
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3400 esac
3401 done
3402 rm -f $ac_rmfiles
3403
3404 if { { ac_try="$ac_link_default"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 $as_echo "$ac_try_echo"; } >&5
3411 (eval "$ac_link_default") 2>&5
3412 ac_status=$?
3413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414 test $ac_status = 0; }; then :
3415 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3416 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3417 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3418 # so that the user can short-circuit this test for compilers unknown to
3419 # Autoconf.
3420 for ac_file in $ac_files ''
3421 do
3422 test -f "$ac_file" || continue
3423 case $ac_file in
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3425 ;;
3426 [ab].out )
3427 # We found the default executable, but exeext='' is most
3428 # certainly right.
3429 break;;
3430 *.* )
3431 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3432 then :; else
3433 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3434 fi
3435 # We set ac_cv_exeext here because the later test for it is not
3436 # safe: cross compilers may not add the suffix if given an `-o'
3437 # argument, so we may need to know it at that point already.
3438 # Even if this section looks crufty: it has the advantage of
3439 # actually working.
3440 break;;
3441 * )
3442 break;;
3443 esac
3444 done
3445 test "$ac_cv_exeext" = no && ac_cv_exeext=
3446
3447 else
3448 ac_file=''
3449 fi
3450 if test -z "$ac_file"; then :
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 $as_echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 as_fn_error 77 "C compiler cannot create executables
3459 See \`config.log' for more details" "$LINENO" 5; }
3460 else
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462 $as_echo "yes" >&6; }
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3465 $as_echo_n "checking for C compiler default output file name... " >&6; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3467 $as_echo "$ac_file" >&6; }
3468 ac_exeext=$ac_cv_exeext
3469
3470 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3471 ac_clean_files=$ac_clean_files_save
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3473 $as_echo_n "checking for suffix of executables... " >&6; }
3474 if { { ac_try="$ac_link"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_link") 2>&5
3482 ac_status=$?
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; then :
3485 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3486 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3487 # work properly (i.e., refer to `conftest.exe'), while it won't with
3488 # `rm'.
3489 for ac_file in conftest.exe conftest conftest.*; do
3490 test -f "$ac_file" || continue
3491 case $ac_file in
3492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3493 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3494 break;;
3495 * ) break;;
3496 esac
3497 done
3498 else
3499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3501 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3502 See \`config.log' for more details" "$LINENO" 5; }
3503 fi
3504 rm -f conftest conftest$ac_cv_exeext
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3506 $as_echo "$ac_cv_exeext" >&6; }
3507
3508 rm -f conftest.$ac_ext
3509 EXEEXT=$ac_cv_exeext
3510 ac_exeext=$EXEEXT
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3513 #include <stdio.h>
3514 int
3515 main ()
3516 {
3517 FILE *f = fopen ("conftest.out", "w");
3518 return ferror (f) || fclose (f) != 0;
3519
3520 ;
3521 return 0;
3522 }
3523 _ACEOF
3524 ac_clean_files="$ac_clean_files conftest.out"
3525 # Check that the compiler produces executables we can run. If not, either
3526 # the compiler is broken, or we cross compile.
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3528 $as_echo_n "checking whether we are cross compiling... " >&6; }
3529 if test "$cross_compiling" != yes; then
3530 { { ac_try="$ac_link"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536 $as_echo "$ac_try_echo"; } >&5
3537 (eval "$ac_link") 2>&5
3538 ac_status=$?
3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540 test $ac_status = 0; }
3541 if { ac_try='./conftest$ac_cv_exeext'
3542 { { case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545 esac
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_try") 2>&5
3549 ac_status=$?
3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551 test $ac_status = 0; }; }; then
3552 cross_compiling=no
3553 else
3554 if test "$cross_compiling" = maybe; then
3555 cross_compiling=yes
3556 else
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 as_fn_error $? "cannot run C compiled programs.
3560 If you meant to cross compile, use \`--host'.
3561 See \`config.log' for more details" "$LINENO" 5; }
3562 fi
3563 fi
3564 fi
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3566 $as_echo "$cross_compiling" >&6; }
3567
3568 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3569 ac_clean_files=$ac_clean_files_save
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3571 $as_echo_n "checking for suffix of object files... " >&6; }
3572 if test "${ac_cv_objext+set}" = set; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577
3578 int
3579 main ()
3580 {
3581
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 rm -f conftest.o conftest.obj
3587 if { { ac_try="$ac_compile"
3588 case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591 esac
3592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593 $as_echo "$ac_try_echo"; } >&5
3594 (eval "$ac_compile") 2>&5
3595 ac_status=$?
3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597 test $ac_status = 0; }; then :
3598 for ac_file in conftest.o conftest.obj conftest.*; do
3599 test -f "$ac_file" || continue;
3600 case $ac_file in
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3603 break;;
3604 esac
3605 done
3606 else
3607 $as_echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error $? "cannot compute suffix of object files: cannot compile
3613 See \`config.log' for more details" "$LINENO" 5; }
3614 fi
3615 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3616 fi
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3618 $as_echo "$ac_cv_objext" >&6; }
3619 OBJEXT=$ac_cv_objext
3620 ac_objext=$OBJEXT
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3622 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3623 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3624 $as_echo_n "(cached) " >&6
3625 else
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628
3629 int
3630 main ()
3631 {
3632 #ifndef __GNUC__
3633 choke me
3634 #endif
3635
3636 ;
3637 return 0;
3638 }
3639 _ACEOF
3640 if ac_fn_c_try_compile "$LINENO"; then :
3641 ac_compiler_gnu=yes
3642 else
3643 ac_compiler_gnu=no
3644 fi
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3647
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3650 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3651 if test $ac_compiler_gnu = yes; then
3652 GCC=yes
3653 else
3654 GCC=
3655 fi
3656 ac_test_CFLAGS=${CFLAGS+set}
3657 ac_save_CFLAGS=$CFLAGS
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3659 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3660 if test "${ac_cv_prog_cc_g+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 ac_save_c_werror_flag=$ac_c_werror_flag
3664 ac_c_werror_flag=yes
3665 ac_cv_prog_cc_g=no
3666 CFLAGS="-g"
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3669
3670 int
3671 main ()
3672 {
3673
3674 ;
3675 return 0;
3676 }
3677 _ACEOF
3678 if ac_fn_c_try_compile "$LINENO"; then :
3679 ac_cv_prog_cc_g=yes
3680 else
3681 CFLAGS=""
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684
3685 int
3686 main ()
3687 {
3688
3689 ;
3690 return 0;
3691 }
3692 _ACEOF
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694
3695 else
3696 ac_c_werror_flag=$ac_save_c_werror_flag
3697 CFLAGS="-g"
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700
3701 int
3702 main ()
3703 {
3704
3705 ;
3706 return 0;
3707 }
3708 _ACEOF
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_cv_prog_cc_g=yes
3711 fi
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 fi
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 fi
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 ac_c_werror_flag=$ac_save_c_werror_flag
3718 fi
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3720 $as_echo "$ac_cv_prog_cc_g" >&6; }
3721 if test "$ac_test_CFLAGS" = set; then
3722 CFLAGS=$ac_save_CFLAGS
3723 elif test $ac_cv_prog_cc_g = yes; then
3724 if test "$GCC" = yes; then
3725 CFLAGS="-g -O2"
3726 else
3727 CFLAGS="-g"
3728 fi
3729 else
3730 if test "$GCC" = yes; then
3731 CFLAGS="-O2"
3732 else
3733 CFLAGS=
3734 fi
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3737 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3738 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 ac_cv_prog_cc_c89=no
3742 ac_save_CC=$CC
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3745 #include <stdarg.h>
3746 #include <stdio.h>
3747 #include <sys/types.h>
3748 #include <sys/stat.h>
3749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3750 struct buf { int x; };
3751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3752 static char *e (p, i)
3753 char **p;
3754 int i;
3755 {
3756 return p[i];
3757 }
3758 static char *f (char * (*g) (char **, int), char **p, ...)
3759 {
3760 char *s;
3761 va_list v;
3762 va_start (v,p);
3763 s = g (p, va_arg (v,int));
3764 va_end (v);
3765 return s;
3766 }
3767
3768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3769 function prototypes and stuff, but not '\xHH' hex character constants.
3770 These don't provoke an error unfortunately, instead are silently treated
3771 as 'x'. The following induces an error, until -std is added to get
3772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3773 array size at least. It's necessary to write '\x00'==0 to get something
3774 that's true only with -std. */
3775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3776
3777 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3778 inside strings and character constants. */
3779 #define FOO(x) 'x'
3780 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3781
3782 int test (int i, double x);
3783 struct s1 {int (*f) (int a);};
3784 struct s2 {int (*f) (double a);};
3785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786 int argc;
3787 char **argv;
3788 int
3789 main ()
3790 {
3791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3792 ;
3793 return 0;
3794 }
3795 _ACEOF
3796 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3797 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3798 do
3799 CC="$ac_save_CC $ac_arg"
3800 if ac_fn_c_try_compile "$LINENO"; then :
3801 ac_cv_prog_cc_c89=$ac_arg
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext
3804 test "x$ac_cv_prog_cc_c89" != "xno" && break
3805 done
3806 rm -f conftest.$ac_ext
3807 CC=$ac_save_CC
3808
3809 fi
3810 # AC_CACHE_VAL
3811 case "x$ac_cv_prog_cc_c89" in
3812 x)
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3814 $as_echo "none needed" >&6; } ;;
3815 xno)
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3817 $as_echo "unsupported" >&6; } ;;
3818 *)
3819 CC="$CC $ac_cv_prog_cc_c89"
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3821 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3822 esac
3823 if test "x$ac_cv_prog_cc_c89" != xno; then :
3824
3825 fi
3826
3827 ac_ext=c
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832
3833 depcc="$CC" am_compiler_list=
3834
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3836 $as_echo_n "checking dependency style of $depcc... " >&6; }
3837 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3841 # We make a subdir and do the tests there. Otherwise we can end up
3842 # making bogus files that we don't know about and never remove. For
3843 # instance it was reported that on HP-UX the gcc test will end up
3844 # making a dummy file named `D' -- because `-MD' means `put the output
3845 # in D'.
3846 mkdir conftest.dir
3847 # Copy depcomp to subdir because otherwise we won't find it if we're
3848 # using a relative directory.
3849 cp "$am_depcomp" conftest.dir
3850 cd conftest.dir
3851 # We will build objects and dependencies in a subdirectory because
3852 # it helps to detect inapplicable dependency modes. For instance
3853 # both Tru64's cc and ICC support -MD to output dependencies as a
3854 # side effect of compilation, but ICC will put the dependencies in
3855 # the current directory while Tru64 will put them in the object
3856 # directory.
3857 mkdir sub
3858
3859 am_cv_CC_dependencies_compiler_type=none
3860 if test "$am_compiler_list" = ""; then
3861 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3862 fi
3863 am__universal=false
3864 case " $depcc " in #(
3865 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3866 esac
3867
3868 for depmode in $am_compiler_list; do
3869 # Setup a source with many dependencies, because some compilers
3870 # like to wrap large dependency lists on column 80 (with \), and
3871 # we should not choose a depcomp mode which is confused by this.
3872 #
3873 # We need to recreate these files for each test, as the compiler may
3874 # overwrite some of them when testing with obscure command lines.
3875 # This happens at least with the AIX C compiler.
3876 : > sub/conftest.c
3877 for i in 1 2 3 4 5 6; do
3878 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3879 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3880 # Solaris 8's {/usr,}/bin/sh.
3881 touch sub/conftst$i.h
3882 done
3883 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3884
3885 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3886 # mode. It turns out that the SunPro C++ compiler does not properly
3887 # handle `-M -o', and we need to detect this. Also, some Intel
3888 # versions had trouble with output in subdirs
3889 am__obj=sub/conftest.${OBJEXT-o}
3890 am__minus_obj="-o $am__obj"
3891 case $depmode in
3892 gcc)
3893 # This depmode causes a compiler race in universal mode.
3894 test "$am__universal" = false || continue
3895 ;;
3896 nosideeffect)
3897 # after this tag, mechanisms are not by side-effect, so they'll
3898 # only be used when explicitly requested
3899 if test "x$enable_dependency_tracking" = xyes; then
3900 continue
3901 else
3902 break
3903 fi
3904 ;;
3905 msvisualcpp | msvcmsys)
3906 # This compiler won't grok `-c -o', but also, the minuso test has
3907 # not run yet. These depmodes are late enough in the game, and
3908 # so weak that their functioning should not be impacted.
3909 am__obj=conftest.${OBJEXT-o}
3910 am__minus_obj=
3911 ;;
3912 none) break ;;
3913 esac
3914 if depmode=$depmode \
3915 source=sub/conftest.c object=$am__obj \
3916 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3917 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3918 >/dev/null 2>conftest.err &&
3919 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3920 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3921 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3922 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3923 # icc doesn't choke on unknown options, it will just issue warnings
3924 # or remarks (even with -Werror). So we grep stderr for any message
3925 # that says an option was ignored or not supported.
3926 # When given -MP, icc 7.0 and 7.1 complain thusly:
3927 # icc: Command line warning: ignoring option '-M'; no argument required
3928 # The diagnosis changed in icc 8.0:
3929 # icc: Command line remark: option '-MP' not supported
3930 if (grep 'ignoring option' conftest.err ||
3931 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3932 am_cv_CC_dependencies_compiler_type=$depmode
3933 break
3934 fi
3935 fi
3936 done
3937
3938 cd ..
3939 rm -rf conftest.dir
3940 else
3941 am_cv_CC_dependencies_compiler_type=none
3942 fi
3943
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3946 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3947 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3948
3949 if
3950 test "x$enable_dependency_tracking" != xno \
3951 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3952 am__fastdepCC_TRUE=
3953 am__fastdepCC_FALSE='#'
3954 else
3955 am__fastdepCC_TRUE='#'
3956 am__fastdepCC_FALSE=
3957 fi
3958
3959
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3961 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3962 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3963 $as_echo_n "(cached) " >&6
3964 else
3965 ac_cv_prog_cc_c99=no
3966 ac_save_CC=$CC
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3969 #include <stdarg.h>
3970 #include <stdbool.h>
3971 #include <stdlib.h>
3972 #include <wchar.h>
3973 #include <stdio.h>
3974
3975 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3976 #define debug(...) fprintf (stderr, __VA_ARGS__)
3977 #define showlist(...) puts (#__VA_ARGS__)
3978 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3979 static void
3980 test_varargs_macros (void)
3981 {
3982 int x = 1234;
3983 int y = 5678;
3984 debug ("Flag");
3985 debug ("X = %d\n", x);
3986 showlist (The first, second, and third items.);
3987 report (x>y, "x is %d but y is %d", x, y);
3988 }
3989
3990 // Check long long types.
3991 #define BIG64 18446744073709551615ull
3992 #define BIG32 4294967295ul
3993 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3994 #if !BIG_OK
3995 your preprocessor is broken;
3996 #endif
3997 #if BIG_OK
3998 #else
3999 your preprocessor is broken;
4000 #endif
4001 static long long int bignum = -9223372036854775807LL;
4002 static unsigned long long int ubignum = BIG64;
4003
4004 struct incomplete_array
4005 {
4006 int datasize;
4007 double data[];
4008 };
4009
4010 struct named_init {
4011 int number;
4012 const wchar_t *name;
4013 double average;
4014 };
4015
4016 typedef const char *ccp;
4017
4018 static inline int
4019 test_restrict (ccp restrict text)
4020 {
4021 // See if C++-style comments work.
4022 // Iterate through items via the restricted pointer.
4023 // Also check for declarations in for loops.
4024 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4025 continue;
4026 return 0;
4027 }
4028
4029 // Check varargs and va_copy.
4030 static void
4031 test_varargs (const char *format, ...)
4032 {
4033 va_list args;
4034 va_start (args, format);
4035 va_list args_copy;
4036 va_copy (args_copy, args);
4037
4038 const char *str;
4039 int number;
4040 float fnumber;
4041
4042 while (*format)
4043 {
4044 switch (*format++)
4045 {
4046 case 's': // string
4047 str = va_arg (args_copy, const char *);
4048 break;
4049 case 'd': // int
4050 number = va_arg (args_copy, int);
4051 break;
4052 case 'f': // float
4053 fnumber = va_arg (args_copy, double);
4054 break;
4055 default:
4056 break;
4057 }
4058 }
4059 va_end (args_copy);
4060 va_end (args);
4061 }
4062
4063 int
4064 main ()
4065 {
4066
4067 // Check bool.
4068 _Bool success = false;
4069
4070 // Check restrict.
4071 if (test_restrict ("String literal") == 0)
4072 success = true;
4073 char *restrict newvar = "Another string";
4074
4075 // Check varargs.
4076 test_varargs ("s, d' f .", "string", 65, 34.234);
4077 test_varargs_macros ();
4078
4079 // Check flexible array members.
4080 struct incomplete_array *ia =
4081 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4082 ia->datasize = 10;
4083 for (int i = 0; i < ia->datasize; ++i)
4084 ia->data[i] = i * 1.234;
4085
4086 // Check named initializers.
4087 struct named_init ni = {
4088 .number = 34,
4089 .name = L"Test wide string",
4090 .average = 543.34343,
4091 };
4092
4093 ni.number = 58;
4094
4095 int dynamic_array[ni.number];
4096 dynamic_array[ni.number - 1] = 543;
4097
4098 // work around unused variable warnings
4099 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4100 || dynamic_array[ni.number - 1] != 543);
4101
4102 ;
4103 return 0;
4104 }
4105 _ACEOF
4106 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4107 do
4108 CC="$ac_save_CC $ac_arg"
4109 if ac_fn_c_try_compile "$LINENO"; then :
4110 ac_cv_prog_cc_c99=$ac_arg
4111 fi
4112 rm -f core conftest.err conftest.$ac_objext
4113 test "x$ac_cv_prog_cc_c99" != "xno" && break
4114 done
4115 rm -f conftest.$ac_ext
4116 CC=$ac_save_CC
4117
4118 fi
4119 # AC_CACHE_VAL
4120 case "x$ac_cv_prog_cc_c99" in
4121 x)
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4123 $as_echo "none needed" >&6; } ;;
4124 xno)
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4126 $as_echo "unsupported" >&6; } ;;
4127 *)
4128 CC="$CC $ac_cv_prog_cc_c99"
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4130 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4131 esac
4132 if test "x$ac_cv_prog_cc_c99" != xno; then :
4133
4134 fi
4135
4136
4137 if test "$ac_cv_prog_cc_c99" = "no"; then :
4138 as_fn_error $? "no C99 compiler found. Aborting." "$LINENO" 5
4139 fi
4140 for ac_prog in 'bison -y' byacc
4141 do
4142 # Extract the first word of "$ac_prog", so it can be a program name with args.
4143 set dummy $ac_prog; ac_word=$2
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 $as_echo_n "checking for $ac_word... " >&6; }
4146 if test "${ac_cv_prog_YACC+set}" = set; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 if test -n "$YACC"; then
4150 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4159 ac_cv_prog_YACC="$ac_prog"
4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 break 2
4162 fi
4163 done
4164 done
4165 IFS=$as_save_IFS
4166
4167 fi
4168 fi
4169 YACC=$ac_cv_prog_YACC
4170 if test -n "$YACC"; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4172 $as_echo "$YACC" >&6; }
4173 else
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 $as_echo "no" >&6; }
4176 fi
4177
4178
4179 test -n "$YACC" && break
4180 done
4181 test -n "$YACC" || YACC="yacc"
4182
4183
4184 for ac_prog in flex lex
4185 do
4186 # Extract the first word of "$ac_prog", so it can be a program name with args.
4187 set dummy $ac_prog; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if test "${ac_cv_prog_LEX+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 if test -n "$LEX"; then
4194 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4195 else
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4198 do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 ac_cv_prog_LEX="$ac_prog"
4204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 break 2
4206 fi
4207 done
4208 done
4209 IFS=$as_save_IFS
4210
4211 fi
4212 fi
4213 LEX=$ac_cv_prog_LEX
4214 if test -n "$LEX"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4216 $as_echo "$LEX" >&6; }
4217 else
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4220 fi
4221
4222
4223 test -n "$LEX" && break
4224 done
4225 test -n "$LEX" || LEX=":"
4226
4227 if test "x$LEX" != "x:"; then
4228 cat >conftest.l <<_ACEOF
4229 %%
4230 a { ECHO; }
4231 b { REJECT; }
4232 c { yymore (); }
4233 d { yyless (1); }
4234 e { yyless (input () != 0); }
4235 f { unput (yytext[0]); }
4236 . { BEGIN INITIAL; }
4237 %%
4238 #ifdef YYTEXT_POINTER
4239 extern char *yytext;
4240 #endif
4241 int
4242 main (void)
4243 {
4244 return ! yylex () + ! yywrap ();
4245 }
4246 _ACEOF
4247 { { ac_try="$LEX conftest.l"
4248 case "(($ac_try" in
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4251 esac
4252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253 $as_echo "$ac_try_echo"; } >&5
4254 (eval "$LEX conftest.l") 2>&5
4255 ac_status=$?
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4259 $as_echo_n "checking lex output file root... " >&6; }
4260 if test "${ac_cv_prog_lex_root+set}" = set; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263
4264 if test -f lex.yy.c; then
4265 ac_cv_prog_lex_root=lex.yy
4266 elif test -f lexyy.c; then
4267 ac_cv_prog_lex_root=lexyy
4268 else
4269 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4270 fi
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4273 $as_echo "$ac_cv_prog_lex_root" >&6; }
4274 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4275
4276 if test -z "${LEXLIB+set}"; then
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4278 $as_echo_n "checking lex library... " >&6; }
4279 if test "${ac_cv_lib_lex+set}" = set; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282
4283 ac_save_LIBS=$LIBS
4284 ac_cv_lib_lex='none needed'
4285 for ac_lib in '' -lfl -ll; do
4286 LIBS="$ac_lib $ac_save_LIBS"
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289 `cat $LEX_OUTPUT_ROOT.c`
4290 _ACEOF
4291 if ac_fn_c_try_link "$LINENO"; then :
4292 ac_cv_lib_lex=$ac_lib
4293 fi
4294 rm -f core conftest.err conftest.$ac_objext \
4295 conftest$ac_exeext conftest.$ac_ext
4296 test "$ac_cv_lib_lex" != 'none needed' && break
4297 done
4298 LIBS=$ac_save_LIBS
4299
4300 fi
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4302 $as_echo "$ac_cv_lib_lex" >&6; }
4303 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4304 fi
4305
4306
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4308 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4309 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 # POSIX says lex can declare yytext either as a pointer or an array; the
4313 # default is implementation-dependent. Figure out which it is, since
4314 # not all implementations provide the %pointer and %array declarations.
4315 ac_cv_prog_lex_yytext_pointer=no
4316 ac_save_LIBS=$LIBS
4317 LIBS="$LEXLIB $ac_save_LIBS"
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4320 #define YYTEXT_POINTER 1
4321 `cat $LEX_OUTPUT_ROOT.c`
4322 _ACEOF
4323 if ac_fn_c_try_link "$LINENO"; then :
4324 ac_cv_prog_lex_yytext_pointer=yes
4325 fi
4326 rm -f core conftest.err conftest.$ac_objext \
4327 conftest$ac_exeext conftest.$ac_ext
4328 LIBS=$ac_save_LIBS
4329
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4332 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4333 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4334
4335 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4336
4337 fi
4338 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4339
4340 fi
4341 if test "$LEX" = :; then
4342 LEX=${am_missing_run}flex
4343 fi
4344
4345
4346 # Initializing libtool.
4347
4348
4349
4350
4351
4352
4353
4354 case `pwd` in
4355 *\ * | *\ *)
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4357 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4358 esac
4359
4360
4361
4362 macro_version='2.2.10'
4363 macro_revision='1.3175'
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377 ltmain="$ac_aux_dir/ltmain.sh"
4378
4379 # Make sure we can run config.sub.
4380 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4381 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4384 $as_echo_n "checking build system type... " >&6; }
4385 if test "${ac_cv_build+set}" = set; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 ac_build_alias=$build_alias
4389 test "x$ac_build_alias" = x &&
4390 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4391 test "x$ac_build_alias" = x &&
4392 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4393 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4394 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4395
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4398 $as_echo "$ac_cv_build" >&6; }
4399 case $ac_cv_build in
4400 *-*-*) ;;
4401 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4402 esac
4403 build=$ac_cv_build
4404 ac_save_IFS=$IFS; IFS='-'
4405 set x $ac_cv_build
4406 shift
4407 build_cpu=$1
4408 build_vendor=$2
4409 shift; shift
4410 # Remember, the first character of IFS is used to create $*,
4411 # except with old shells:
4412 build_os=$*
4413 IFS=$ac_save_IFS
4414 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4415
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4418 $as_echo_n "checking host system type... " >&6; }
4419 if test "${ac_cv_host+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 if test "x$host_alias" = x; then
4423 ac_cv_host=$ac_cv_build
4424 else
4425 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4426 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4427 fi
4428
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4431 $as_echo "$ac_cv_host" >&6; }
4432 case $ac_cv_host in
4433 *-*-*) ;;
4434 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4435 esac
4436 host=$ac_cv_host
4437 ac_save_IFS=$IFS; IFS='-'
4438 set x $ac_cv_host
4439 shift
4440 host_cpu=$1
4441 host_vendor=$2
4442 shift; shift
4443 # Remember, the first character of IFS is used to create $*,
4444 # except with old shells:
4445 host_os=$*
4446 IFS=$ac_save_IFS
4447 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4448
4449
4450 # Backslashify metacharacters that are still active within
4451 # double-quoted strings.
4452 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4453
4454 # Same as above, but do not quote variable references.
4455 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4456
4457 # Sed substitution to delay expansion of an escaped shell variable in a
4458 # double_quote_subst'ed string.
4459 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4460
4461 # Sed substitution to delay expansion of an escaped single quote.
4462 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4463
4464 # Sed substitution to avoid accidental globbing in evaled expressions
4465 no_glob_subst='s/\*/\\\*/g'
4466
4467 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4468 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4469 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4470
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4472 $as_echo_n "checking how to print strings... " >&6; }
4473 # Test print first, because it will be a builtin if present.
4474 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4475 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4476 ECHO='print -r --'
4477 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4478 ECHO='printf %s\n'
4479 else
4480 # Use this function as a fallback that always works.
4481 func_fallback_echo ()
4482 {
4483 eval 'cat <<_LTECHO_EOF
4484 $1
4485 _LTECHO_EOF'
4486 }
4487 ECHO='func_fallback_echo'
4488 fi
4489
4490 # func_echo_all arg...
4491 # Invoke $ECHO with all args, space-separated.
4492 func_echo_all ()
4493 {
4494 $ECHO ""
4495 }
4496
4497 case "$ECHO" in
4498 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4499 $as_echo "printf" >&6; } ;;
4500 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4501 $as_echo "print -r" >&6; } ;;
4502 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4503 $as_echo "cat" >&6; } ;;
4504 esac
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4520 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4521 if test "${ac_cv_path_SED+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4525 for ac_i in 1 2 3 4 5 6 7; do
4526 ac_script="$ac_script$as_nl$ac_script"
4527 done
4528 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4529 { ac_script=; unset ac_script;}
4530 if test -z "$SED"; then
4531 ac_path_SED_found=false
4532 # Loop through the user's path and test for each of PROGNAME-LIST
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_prog in sed gsed; do
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4541 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4542 # Check for GNU ac_path_SED and select it if it is found.
4543 # Check for GNU $ac_path_SED
4544 case `"$ac_path_SED" --version 2>&1` in
4545 *GNU*)
4546 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4547 *)
4548 ac_count=0
4549 $as_echo_n 0123456789 >"conftest.in"
4550 while :
4551 do
4552 cat "conftest.in" "conftest.in" >"conftest.tmp"
4553 mv "conftest.tmp" "conftest.in"
4554 cp "conftest.in" "conftest.nl"
4555 $as_echo '' >> "conftest.nl"
4556 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558 as_fn_arith $ac_count + 1 && ac_count=$as_val
4559 if test $ac_count -gt ${ac_path_SED_max-0}; then
4560 # Best one so far, save it but keep looking for a better one
4561 ac_cv_path_SED="$ac_path_SED"
4562 ac_path_SED_max=$ac_count
4563 fi
4564 # 10*(2^10) chars as input seems more than enough
4565 test $ac_count -gt 10 && break
4566 done
4567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568 esac
4569
4570 $ac_path_SED_found && break 3
4571 done
4572 done
4573 done
4574 IFS=$as_save_IFS
4575 if test -z "$ac_cv_path_SED"; then
4576 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4577 fi
4578 else
4579 ac_cv_path_SED=$SED
4580 fi
4581
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4584 $as_echo "$ac_cv_path_SED" >&6; }
4585 SED="$ac_cv_path_SED"
4586 rm -f conftest.sed
4587
4588 test -z "$SED" && SED=sed
4589 Xsed="$SED -e 1s/^X//"
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4602 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4603 if test "${ac_cv_path_GREP+set}" = set; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 if test -z "$GREP"; then
4607 ac_path_GREP_found=false
4608 # Loop through the user's path and test for each of PROGNAME-LIST
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4611 do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_prog in grep ggrep; do
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4617 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4618 # Check for GNU ac_path_GREP and select it if it is found.
4619 # Check for GNU $ac_path_GREP
4620 case `"$ac_path_GREP" --version 2>&1` in
4621 *GNU*)
4622 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4623 *)
4624 ac_count=0
4625 $as_echo_n 0123456789 >"conftest.in"
4626 while :
4627 do
4628 cat "conftest.in" "conftest.in" >"conftest.tmp"
4629 mv "conftest.tmp" "conftest.in"
4630 cp "conftest.in" "conftest.nl"
4631 $as_echo 'GREP' >> "conftest.nl"
4632 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4633 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4634 as_fn_arith $ac_count + 1 && ac_count=$as_val
4635 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4636 # Best one so far, save it but keep looking for a better one
4637 ac_cv_path_GREP="$ac_path_GREP"
4638 ac_path_GREP_max=$ac_count
4639 fi
4640 # 10*(2^10) chars as input seems more than enough
4641 test $ac_count -gt 10 && break
4642 done
4643 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4644 esac
4645
4646 $ac_path_GREP_found && break 3
4647 done
4648 done
4649 done
4650 IFS=$as_save_IFS
4651 if test -z "$ac_cv_path_GREP"; then
4652 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4653 fi
4654 else
4655 ac_cv_path_GREP=$GREP
4656 fi
4657
4658 fi
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4660 $as_echo "$ac_cv_path_GREP" >&6; }
4661 GREP="$ac_cv_path_GREP"
4662
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4665 $as_echo_n "checking for egrep... " >&6; }
4666 if test "${ac_cv_path_EGREP+set}" = set; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4670 then ac_cv_path_EGREP="$GREP -E"
4671 else
4672 if test -z "$EGREP"; then
4673 ac_path_EGREP_found=false
4674 # Loop through the user's path and test for each of PROGNAME-LIST
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4677 do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_prog in egrep; do
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4683 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4684 # Check for GNU ac_path_EGREP and select it if it is found.
4685 # Check for GNU $ac_path_EGREP
4686 case `"$ac_path_EGREP" --version 2>&1` in
4687 *GNU*)
4688 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4689 *)
4690 ac_count=0
4691 $as_echo_n 0123456789 >"conftest.in"
4692 while :
4693 do
4694 cat "conftest.in" "conftest.in" >"conftest.tmp"
4695 mv "conftest.tmp" "conftest.in"
4696 cp "conftest.in" "conftest.nl"
4697 $as_echo 'EGREP' >> "conftest.nl"
4698 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4699 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4700 as_fn_arith $ac_count + 1 && ac_count=$as_val
4701 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4702 # Best one so far, save it but keep looking for a better one
4703 ac_cv_path_EGREP="$ac_path_EGREP"
4704 ac_path_EGREP_max=$ac_count
4705 fi
4706 # 10*(2^10) chars as input seems more than enough
4707 test $ac_count -gt 10 && break
4708 done
4709 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4710 esac
4711
4712 $ac_path_EGREP_found && break 3
4713 done
4714 done
4715 done
4716 IFS=$as_save_IFS
4717 if test -z "$ac_cv_path_EGREP"; then
4718 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4719 fi
4720 else
4721 ac_cv_path_EGREP=$EGREP
4722 fi
4723
4724 fi
4725 fi
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4727 $as_echo "$ac_cv_path_EGREP" >&6; }
4728 EGREP="$ac_cv_path_EGREP"
4729
4730
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4732 $as_echo_n "checking for fgrep... " >&6; }
4733 if test "${ac_cv_path_FGREP+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4737 then ac_cv_path_FGREP="$GREP -F"
4738 else
4739 if test -z "$FGREP"; then
4740 ac_path_FGREP_found=false
4741 # Loop through the user's path and test for each of PROGNAME-LIST
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4744 do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_prog in fgrep; do
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4750 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4751 # Check for GNU ac_path_FGREP and select it if it is found.
4752 # Check for GNU $ac_path_FGREP
4753 case `"$ac_path_FGREP" --version 2>&1` in
4754 *GNU*)
4755 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4756 *)
4757 ac_count=0
4758 $as_echo_n 0123456789 >"conftest.in"
4759 while :
4760 do
4761 cat "conftest.in" "conftest.in" >"conftest.tmp"
4762 mv "conftest.tmp" "conftest.in"
4763 cp "conftest.in" "conftest.nl"
4764 $as_echo 'FGREP' >> "conftest.nl"
4765 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4767 as_fn_arith $ac_count + 1 && ac_count=$as_val
4768 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4769 # Best one so far, save it but keep looking for a better one
4770 ac_cv_path_FGREP="$ac_path_FGREP"
4771 ac_path_FGREP_max=$ac_count
4772 fi
4773 # 10*(2^10) chars as input seems more than enough
4774 test $ac_count -gt 10 && break
4775 done
4776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4777 esac
4778
4779 $ac_path_FGREP_found && break 3
4780 done
4781 done
4782 done
4783 IFS=$as_save_IFS
4784 if test -z "$ac_cv_path_FGREP"; then
4785 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4786 fi
4787 else
4788 ac_cv_path_FGREP=$FGREP
4789 fi
4790
4791 fi
4792 fi
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4794 $as_echo "$ac_cv_path_FGREP" >&6; }
4795 FGREP="$ac_cv_path_FGREP"
4796
4797
4798 test -z "$GREP" && GREP=grep
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818 # Check whether --with-gnu-ld was given.
4819 if test "${with_gnu_ld+set}" = set; then :
4820 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4821 else
4822 with_gnu_ld=no
4823 fi
4824
4825 ac_prog=ld
4826 if test "$GCC" = yes; then
4827 # Check if gcc -print-prog-name=ld gives a path.
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4829 $as_echo_n "checking for ld used by $CC... " >&6; }
4830 case $host in
4831 *-*-mingw*)
4832 # gcc leaves a trailing carriage return which upsets mingw
4833 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4834 *)
4835 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4836 esac
4837 case $ac_prog in
4838 # Accept absolute paths.
4839 [\\/]* | ?:[\\/]*)
4840 re_direlt='/[^/][^/]*/\.\./'
4841 # Canonicalize the pathname of ld
4842 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4843 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4844 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4845 done
4846 test -z "$LD" && LD="$ac_prog"
4847 ;;
4848 "")
4849 # If it fails, then pretend we aren't using GCC.
4850 ac_prog=ld
4851 ;;
4852 *)
4853 # If it is relative, then search for the first ld in PATH.
4854 with_gnu_ld=unknown
4855 ;;
4856 esac
4857 elif test "$with_gnu_ld" = yes; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4859 $as_echo_n "checking for GNU ld... " >&6; }
4860 else
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4862 $as_echo_n "checking for non-GNU ld... " >&6; }
4863 fi
4864 if test "${lt_cv_path_LD+set}" = set; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 if test -z "$LD"; then
4868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4869 for ac_dir in $PATH; do
4870 IFS="$lt_save_ifs"
4871 test -z "$ac_dir" && ac_dir=.
4872 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4873 lt_cv_path_LD="$ac_dir/$ac_prog"
4874 # Check to see if the program is GNU ld. I'd rather use --version,
4875 # but apparently some variants of GNU ld only accept -v.
4876 # Break only if it was the GNU/non-GNU ld that we prefer.
4877 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4878 *GNU* | *'with BFD'*)
4879 test "$with_gnu_ld" != no && break
4880 ;;
4881 *)
4882 test "$with_gnu_ld" != yes && break
4883 ;;
4884 esac
4885 fi
4886 done
4887 IFS="$lt_save_ifs"
4888 else
4889 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4890 fi
4891 fi
4892
4893 LD="$lt_cv_path_LD"
4894 if test -n "$LD"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4896 $as_echo "$LD" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4900 fi
4901 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4903 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4904 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4908 case `$LD -v 2>&1 </dev/null` in
4909 *GNU* | *'with BFD'*)
4910 lt_cv_prog_gnu_ld=yes
4911 ;;
4912 *)
4913 lt_cv_prog_gnu_ld=no
4914 ;;
4915 esac
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4918 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4919 with_gnu_ld=$lt_cv_prog_gnu_ld
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4930 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4931 if test "${lt_cv_path_NM+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 if test -n "$NM"; then
4935 # Let the user override the test.
4936 lt_cv_path_NM="$NM"
4937 else
4938 lt_nm_to_check="${ac_tool_prefix}nm"
4939 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4940 lt_nm_to_check="$lt_nm_to_check nm"
4941 fi
4942 for lt_tmp_nm in $lt_nm_to_check; do
4943 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4944 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4945 IFS="$lt_save_ifs"
4946 test -z "$ac_dir" && ac_dir=.
4947 tmp_nm="$ac_dir/$lt_tmp_nm"
4948 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4949 # Check to see if the nm accepts a BSD-compat flag.
4950 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4951 # nm: unknown option "B" ignored
4952 # Tru64's nm complains that /dev/null is an invalid object file
4953 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4954 */dev/null* | *'Invalid file or object type'*)
4955 lt_cv_path_NM="$tmp_nm -B"
4956 break
4957 ;;
4958 *)
4959 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4960 */dev/null*)
4961 lt_cv_path_NM="$tmp_nm -p"
4962 break
4963 ;;
4964 *)
4965 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4966 continue # so that we can try to find one that supports BSD flags
4967 ;;
4968 esac
4969 ;;
4970 esac
4971 fi
4972 done
4973 IFS="$lt_save_ifs"
4974 done
4975 : ${lt_cv_path_NM=no}
4976 fi
4977 fi
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4979 $as_echo "$lt_cv_path_NM" >&6; }
4980 if test "$lt_cv_path_NM" != "no"; then
4981 NM="$lt_cv_path_NM"
4982 else
4983 # Didn't find any BSD compatible name lister, look for dumpbin.
4984 if test -n "$DUMPBIN"; then :
4985 # Let the user override the test.
4986 else
4987 if test -n "$ac_tool_prefix"; then
4988 for ac_prog in dumpbin "link -dump"
4989 do
4990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 if test -n "$DUMPBIN"; then
4998 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5010 fi
5011 done
5012 done
5013 IFS=$as_save_IFS
5014
5015 fi
5016 fi
5017 DUMPBIN=$ac_cv_prog_DUMPBIN
5018 if test -n "$DUMPBIN"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5020 $as_echo "$DUMPBIN" >&6; }
5021 else
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5024 fi
5025
5026
5027 test -n "$DUMPBIN" && break
5028 done
5029 fi
5030 if test -z "$DUMPBIN"; then
5031 ac_ct_DUMPBIN=$DUMPBIN
5032 for ac_prog in dumpbin "link -dump"
5033 do
5034 # Extract the first word of "$ac_prog", so it can be a program name with args.
5035 set dummy $ac_prog; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 if test -n "$ac_ct_DUMPBIN"; then
5042 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5046 do
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
5054 fi
5055 done
5056 done
5057 IFS=$as_save_IFS
5058
5059 fi
5060 fi
5061 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5062 if test -n "$ac_ct_DUMPBIN"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5064 $as_echo "$ac_ct_DUMPBIN" >&6; }
5065 else
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5068 fi
5069
5070
5071 test -n "$ac_ct_DUMPBIN" && break
5072 done
5073
5074 if test "x$ac_ct_DUMPBIN" = x; then
5075 DUMPBIN=":"
5076 else
5077 case $cross_compiling:$ac_tool_warned in
5078 yes:)
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5081 ac_tool_warned=yes ;;
5082 esac
5083 DUMPBIN=$ac_ct_DUMPBIN
5084 fi
5085 fi
5086
5087 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5088 *COFF*)
5089 DUMPBIN="$DUMPBIN -symbols"
5090 ;;
5091 *)
5092 DUMPBIN=:
5093 ;;
5094 esac
5095 fi
5096
5097 if test "$DUMPBIN" != ":"; then
5098 NM="$DUMPBIN"
5099 fi
5100 fi
5101 test -z "$NM" && NM=nm
5102
5103
5104
5105
5106
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5109 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5110 if test "${lt_cv_nm_interface+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 lt_cv_nm_interface="BSD nm"
5114 echo "int some_variable = 0;" > conftest.$ac_ext
5115 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5116 (eval "$ac_compile" 2>conftest.err)
5117 cat conftest.err >&5
5118 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5119 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5120 cat conftest.err >&5
5121 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5122 cat conftest.out >&5
5123 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5124 lt_cv_nm_interface="MS dumpbin"
5125 fi
5126 rm -f conftest*
5127 fi
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5129 $as_echo "$lt_cv_nm_interface" >&6; }
5130
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5132 $as_echo_n "checking whether ln -s works... " >&6; }
5133 LN_S=$as_ln_s
5134 if test "$LN_S" = "ln -s"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5136 $as_echo "yes" >&6; }
5137 else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5139 $as_echo "no, using $LN_S" >&6; }
5140 fi
5141
5142 # find the maximum length of command line arguments
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5144 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5145 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 i=0
5149 teststring="ABCD"
5150
5151 case $build_os in
5152 msdosdjgpp*)
5153 # On DJGPP, this test can blow up pretty badly due to problems in libc
5154 # (any single argument exceeding 2000 bytes causes a buffer overrun
5155 # during glob expansion). Even if it were fixed, the result of this
5156 # check would be larger than it should be.
5157 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5158 ;;
5159
5160 gnu*)
5161 # Under GNU Hurd, this test is not required because there is
5162 # no limit to the length of command line arguments.
5163 # Libtool will interpret -1 as no limit whatsoever
5164 lt_cv_sys_max_cmd_len=-1;
5165 ;;
5166
5167 cygwin* | mingw* | cegcc*)
5168 # On Win9x/ME, this test blows up -- it succeeds, but takes
5169 # about 5 minutes as the teststring grows exponentially.
5170 # Worse, since 9x/ME are not pre-emptively multitasking,
5171 # you end up with a "frozen" computer, even though with patience
5172 # the test eventually succeeds (with a max line length of 256k).
5173 # Instead, let's just punt: use the minimum linelength reported by
5174 # all of the supported platforms: 8192 (on NT/2K/XP).
5175 lt_cv_sys_max_cmd_len=8192;
5176 ;;
5177
5178 mint*)
5179 # On MiNT this can take a long time and run out of memory.
5180 lt_cv_sys_max_cmd_len=8192;
5181 ;;
5182
5183 amigaos*)
5184 # On AmigaOS with pdksh, this test takes hours, literally.
5185 # So we just punt and use a minimum line length of 8192.
5186 lt_cv_sys_max_cmd_len=8192;
5187 ;;
5188
5189 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5190 # This has been around since 386BSD, at least. Likely further.
5191 if test -x /sbin/sysctl; then
5192 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5193 elif test -x /usr/sbin/sysctl; then
5194 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5195 else
5196 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5197 fi
5198 # And add a safety zone
5199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5201 ;;
5202
5203 interix*)
5204 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5205 lt_cv_sys_max_cmd_len=196608
5206 ;;
5207
5208 osf*)
5209 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5210 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5211 # nice to cause kernel panics so lets avoid the loop below.
5212 # First set a reasonable default.
5213 lt_cv_sys_max_cmd_len=16384
5214 #
5215 if test -x /sbin/sysconfig; then
5216 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5217 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5218 esac
5219 fi
5220 ;;
5221 sco3.2v5*)
5222 lt_cv_sys_max_cmd_len=102400
5223 ;;
5224 sysv5* | sco5v6* | sysv4.2uw2*)
5225 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5226 if test -n "$kargmax"; then
5227 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5228 else
5229 lt_cv_sys_max_cmd_len=32768
5230 fi
5231 ;;
5232 *)
5233 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5234 if test -n "$lt_cv_sys_max_cmd_len"; then
5235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5237 else
5238 # Make teststring a little bigger before we do anything with it.
5239 # a 1K string should be a reasonable start.
5240 for i in 1 2 3 4 5 6 7 8 ; do
5241 teststring=$teststring$teststring
5242 done
5243 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5244 # If test is not a shell built-in, we'll probably end up computing a
5245 # maximum length that is only half of the actual maximum length, but
5246 # we can't tell.
5247 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5248 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5249 test $i != 17 # 1/2 MB should be enough
5250 do
5251 i=`expr $i + 1`
5252 teststring=$teststring$teststring
5253 done
5254 # Only check the string length outside the loop.
5255 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5256 teststring=
5257 # Add a significant safety factor because C++ compilers can tack on
5258 # massive amounts of additional arguments before passing them to the
5259 # linker. It appears as though 1/2 is a usable value.
5260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5261 fi
5262 ;;
5263 esac
5264
5265 fi
5266
5267 if test -n $lt_cv_sys_max_cmd_len ; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5269 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5270 else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5272 $as_echo "none" >&6; }
5273 fi
5274 max_cmd_len=$lt_cv_sys_max_cmd_len
5275
5276
5277
5278
5279
5280
5281 : ${CP="cp -f"}
5282 : ${MV="mv -f"}
5283 : ${RM="rm -f"}
5284
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5286 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5287 # Try some XSI features
5288 xsi_shell=no
5289 ( _lt_dummy="a/b/c"
5290 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5291 = c,a/b,, \
5292 && eval 'test $(( 1 + 1 )) -eq 2 \
5293 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5294 && xsi_shell=yes
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5296 $as_echo "$xsi_shell" >&6; }
5297
5298
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5300 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5301 lt_shell_append=no
5302 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5303 >/dev/null 2>&1 \
5304 && lt_shell_append=yes
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5306 $as_echo "$lt_shell_append" >&6; }
5307
5308
5309 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5310 lt_unset=unset
5311 else
5312 lt_unset=false
5313 fi
5314
5315
5316
5317
5318
5319 # test EBCDIC or ASCII
5320 case `echo X|tr X '\101'` in
5321 A) # ASCII based system
5322 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5323 lt_SP2NL='tr \040 \012'
5324 lt_NL2SP='tr \015\012 \040\040'
5325 ;;
5326 *) # EBCDIC based system
5327 lt_SP2NL='tr \100 \n'
5328 lt_NL2SP='tr \r\n \100\100'
5329 ;;
5330 esac
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5341 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5342 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 lt_cv_ld_reload_flag='-r'
5346 fi
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5348 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5349 reload_flag=$lt_cv_ld_reload_flag
5350 case $reload_flag in
5351 "" | " "*) ;;
5352 *) reload_flag=" $reload_flag" ;;
5353 esac
5354 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5355 case $host_os in
5356 darwin*)
5357 if test "$GCC" = yes; then
5358 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5359 else
5360 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5361 fi
5362 ;;
5363 esac
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373 if test -n "$ac_tool_prefix"; then
5374 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5375 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if test -n "$OBJDUMP"; then
5382 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5394 fi
5395 done
5396 done
5397 IFS=$as_save_IFS
5398
5399 fi
5400 fi
5401 OBJDUMP=$ac_cv_prog_OBJDUMP
5402 if test -n "$OBJDUMP"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5404 $as_echo "$OBJDUMP" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5408 fi
5409
5410
5411 fi
5412 if test -z "$ac_cv_prog_OBJDUMP"; then
5413 ac_ct_OBJDUMP=$OBJDUMP
5414 # Extract the first word of "objdump", so it can be a program name with args.
5415 set dummy objdump; ac_word=$2
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 if test -n "$ac_ct_OBJDUMP"; then
5422 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5423 else
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 break 2
5434 fi
5435 done
5436 done
5437 IFS=$as_save_IFS
5438
5439 fi
5440 fi
5441 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5442 if test -n "$ac_ct_OBJDUMP"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5444 $as_echo "$ac_ct_OBJDUMP" >&6; }
5445 else
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5448 fi
5449
5450 if test "x$ac_ct_OBJDUMP" = x; then
5451 OBJDUMP="false"
5452 else
5453 case $cross_compiling:$ac_tool_warned in
5454 yes:)
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5457 ac_tool_warned=yes ;;
5458 esac
5459 OBJDUMP=$ac_ct_OBJDUMP
5460 fi
5461 else
5462 OBJDUMP="$ac_cv_prog_OBJDUMP"
5463 fi
5464
5465 test -z "$OBJDUMP" && OBJDUMP=objdump
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5476 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5477 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 lt_cv_file_magic_cmd='$MAGIC_CMD'
5481 lt_cv_file_magic_test_file=
5482 lt_cv_deplibs_check_method='unknown'
5483 # Need to set the preceding variable on all platforms that support
5484 # interlibrary dependencies.
5485 # 'none' -- dependencies not supported.
5486 # `unknown' -- same as none, but documents that we really don't know.
5487 # 'pass_all' -- all dependencies passed with no checks.
5488 # 'test_compile' -- check by making test program.
5489 # 'file_magic [[regex]]' -- check by looking for files in library path
5490 # which responds to the $file_magic_cmd with a given extended regex.
5491 # If you have `file' or equivalent on your system and you're not sure
5492 # whether `pass_all' will *always* work, you probably want this one.
5493
5494 case $host_os in
5495 aix[4-9]*)
5496 lt_cv_deplibs_check_method=pass_all
5497 ;;
5498
5499 beos*)
5500 lt_cv_deplibs_check_method=pass_all
5501 ;;
5502
5503 bsdi[45]*)
5504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5505 lt_cv_file_magic_cmd='/usr/bin/file -L'
5506 lt_cv_file_magic_test_file=/shlib/libc.so
5507 ;;
5508
5509 cygwin*)
5510 # func_win32_libid is a shell function defined in ltmain.sh
5511 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5512 lt_cv_file_magic_cmd='func_win32_libid'
5513 ;;
5514
5515 mingw* | pw32*)
5516 # Base MSYS/MinGW do not provide the 'file' command needed by
5517 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5518 # unless we find 'file', for example because we are cross-compiling.
5519 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5520 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5522 lt_cv_file_magic_cmd='func_win32_libid'
5523 else
5524 # Keep this pattern in sync with the one in func_win32_libid.
5525 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5526 lt_cv_file_magic_cmd='$OBJDUMP -f'
5527 fi
5528 ;;
5529
5530 cegcc*)
5531 # use the weaker test based on 'objdump'. See mingw*.
5532 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5533 lt_cv_file_magic_cmd='$OBJDUMP -f'
5534 ;;
5535
5536 darwin* | rhapsody*)
5537 lt_cv_deplibs_check_method=pass_all
5538 ;;
5539
5540 freebsd* | dragonfly*)
5541 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5542 case $host_cpu in
5543 i*86 )
5544 # Not sure whether the presence of OpenBSD here was a mistake.
5545 # Let's accept both of them until this is cleared up.
5546 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5547 lt_cv_file_magic_cmd=/usr/bin/file
5548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5549 ;;
5550 esac
5551 else
5552 lt_cv_deplibs_check_method=pass_all
5553 fi
5554 ;;
5555
5556 gnu*)
5557 lt_cv_deplibs_check_method=pass_all
5558 ;;
5559
5560 haiku*)
5561 lt_cv_deplibs_check_method=pass_all
5562 ;;
5563
5564 hpux10.20* | hpux11*)
5565 lt_cv_file_magic_cmd=/usr/bin/file
5566 case $host_cpu in
5567 ia64*)
5568 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5569 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5570 ;;
5571 hppa*64*)
5572 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]'
5573 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5574 ;;
5575 *)
5576 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5577 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5578 ;;
5579 esac
5580 ;;
5581
5582 interix[3-9]*)
5583 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5585 ;;
5586
5587 irix5* | irix6* | nonstopux*)
5588 case $LD in
5589 *-32|*"-32 ") libmagic=32-bit;;
5590 *-n32|*"-n32 ") libmagic=N32;;
5591 *-64|*"-64 ") libmagic=64-bit;;
5592 *) libmagic=never-match;;
5593 esac
5594 lt_cv_deplibs_check_method=pass_all
5595 ;;
5596
5597 # This must be Linux ELF.
5598 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5599 lt_cv_deplibs_check_method=pass_all
5600 ;;
5601
5602 netbsd*)
5603 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5605 else
5606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5607 fi
5608 ;;
5609
5610 newos6*)
5611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5612 lt_cv_file_magic_cmd=/usr/bin/file
5613 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5614 ;;
5615
5616 *nto* | *qnx*)
5617 lt_cv_deplibs_check_method=pass_all
5618 ;;
5619
5620 openbsd*)
5621 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5623 else
5624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5625 fi
5626 ;;
5627
5628 osf3* | osf4* | osf5*)
5629 lt_cv_deplibs_check_method=pass_all
5630 ;;
5631
5632 rdos*)
5633 lt_cv_deplibs_check_method=pass_all
5634 ;;
5635
5636 solaris*)
5637 lt_cv_deplibs_check_method=pass_all
5638 ;;
5639
5640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5641 lt_cv_deplibs_check_method=pass_all
5642 ;;
5643
5644 sysv4 | sysv4.3*)
5645 case $host_vendor in
5646 motorola)
5647 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]'
5648 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5649 ;;
5650 ncr)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653 sequent)
5654 lt_cv_file_magic_cmd='/bin/file'
5655 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5656 ;;
5657 sni)
5658 lt_cv_file_magic_cmd='/bin/file'
5659 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5660 lt_cv_file_magic_test_file=/lib/libc.so
5661 ;;
5662 siemens)
5663 lt_cv_deplibs_check_method=pass_all
5664 ;;
5665 pc)
5666 lt_cv_deplibs_check_method=pass_all
5667 ;;
5668 esac
5669 ;;
5670
5671 tpf*)
5672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674 esac
5675
5676 fi
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5678 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5679 file_magic_cmd=$lt_cv_file_magic_cmd
5680 deplibs_check_method=$lt_cv_deplibs_check_method
5681 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694 if test -n "$ac_tool_prefix"; then
5695 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5696 set dummy ${ac_tool_prefix}ar; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if test "${ac_cv_prog_AR+set}" = set; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$AR"; then
5703 ac_cv_prog_AR="$AR" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5712 ac_cv_prog_AR="${ac_tool_prefix}ar"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716 done
5717 done
5718 IFS=$as_save_IFS
5719
5720 fi
5721 fi
5722 AR=$ac_cv_prog_AR
5723 if test -n "$AR"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5725 $as_echo "$AR" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 fi
5730
5731
5732 fi
5733 if test -z "$ac_cv_prog_AR"; then
5734 ac_ct_AR=$AR
5735 # Extract the first word of "ar", so it can be a program name with args.
5736 set dummy ar; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 if test -n "$ac_ct_AR"; then
5743 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5744 else
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5747 do
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5752 ac_cv_prog_ac_ct_AR="ar"
5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 break 2
5755 fi
5756 done
5757 done
5758 IFS=$as_save_IFS
5759
5760 fi
5761 fi
5762 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5763 if test -n "$ac_ct_AR"; then
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5765 $as_echo "$ac_ct_AR" >&6; }
5766 else
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5769 fi
5770
5771 if test "x$ac_ct_AR" = x; then
5772 AR="false"
5773 else
5774 case $cross_compiling:$ac_tool_warned in
5775 yes:)
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778 ac_tool_warned=yes ;;
5779 esac
5780 AR=$ac_ct_AR
5781 fi
5782 else
5783 AR="$ac_cv_prog_AR"
5784 fi
5785
5786 test -z "$AR" && AR=ar
5787 test -z "$AR_FLAGS" && AR_FLAGS=cru
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799 if test -n "$ac_tool_prefix"; then
5800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5801 set dummy ${ac_tool_prefix}strip; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if test "${ac_cv_prog_STRIP+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 if test -n "$STRIP"; then
5808 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821 done
5822 done
5823 IFS=$as_save_IFS
5824
5825 fi
5826 fi
5827 STRIP=$ac_cv_prog_STRIP
5828 if test -n "$STRIP"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5830 $as_echo "$STRIP" >&6; }
5831 else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 fi
5835
5836
5837 fi
5838 if test -z "$ac_cv_prog_STRIP"; then
5839 ac_ct_STRIP=$STRIP
5840 # Extract the first word of "strip", so it can be a program name with args.
5841 set dummy strip; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 if test -n "$ac_ct_STRIP"; then
5848 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_prog_ac_ct_STRIP="strip"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861 done
5862 done
5863 IFS=$as_save_IFS
5864
5865 fi
5866 fi
5867 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5868 if test -n "$ac_ct_STRIP"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5870 $as_echo "$ac_ct_STRIP" >&6; }
5871 else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875
5876 if test "x$ac_ct_STRIP" = x; then
5877 STRIP=":"
5878 else
5879 case $cross_compiling:$ac_tool_warned in
5880 yes:)
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883 ac_tool_warned=yes ;;
5884 esac
5885 STRIP=$ac_ct_STRIP
5886 fi
5887 else
5888 STRIP="$ac_cv_prog_STRIP"
5889 fi
5890
5891 test -z "$STRIP" && STRIP=:
5892
5893
5894
5895
5896
5897
5898 if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 if test -n "$RANLIB"; then
5907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5911 do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5919 fi
5920 done
5921 done
5922 IFS=$as_save_IFS
5923
5924 fi
5925 fi
5926 RANLIB=$ac_cv_prog_RANLIB
5927 if test -n "$RANLIB"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5929 $as_echo "$RANLIB" >&6; }
5930 else
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5933 fi
5934
5935
5936 fi
5937 if test -z "$ac_cv_prog_RANLIB"; then
5938 ac_ct_RANLIB=$RANLIB
5939 # Extract the first word of "ranlib", so it can be a program name with args.
5940 set dummy ranlib; ac_word=$2
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 if test -n "$ac_ct_RANLIB"; then
5947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5951 do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_ac_ct_RANLIB="ranlib"
5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5959 fi
5960 done
5961 done
5962 IFS=$as_save_IFS
5963
5964 fi
5965 fi
5966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5967 if test -n "$ac_ct_RANLIB"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5969 $as_echo "$ac_ct_RANLIB" >&6; }
5970 else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5973 fi
5974
5975 if test "x$ac_ct_RANLIB" = x; then
5976 RANLIB=":"
5977 else
5978 case $cross_compiling:$ac_tool_warned in
5979 yes:)
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5982 ac_tool_warned=yes ;;
5983 esac
5984 RANLIB=$ac_ct_RANLIB
5985 fi
5986 else
5987 RANLIB="$ac_cv_prog_RANLIB"
5988 fi
5989
5990 test -z "$RANLIB" && RANLIB=:
5991
5992
5993
5994
5995
5996
5997 # Determine commands to create old-style static archives.
5998 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5999 old_postinstall_cmds='chmod 644 $oldlib'
6000 old_postuninstall_cmds=
6001
6002 if test -n "$RANLIB"; then
6003 case $host_os in
6004 openbsd*)
6005 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6006 ;;
6007 *)
6008 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6009 ;;
6010 esac
6011 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6012 fi
6013
6014 case $host_os in
6015 darwin*)
6016 lock_old_archive_extraction=yes ;;
6017 *)
6018 lock_old_archive_extraction=no ;;
6019 esac
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059 # If no C compiler was specified, use CC.
6060 LTCC=${LTCC-"$CC"}
6061
6062 # If no C compiler flags were specified, use CFLAGS.
6063 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6064
6065 # Allow CC to be a program name with arguments.
6066 compiler=$CC
6067
6068
6069 # Check for command to grab the raw symbol name followed by C symbol from nm.
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6071 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6072 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075
6076 # These are sane defaults that work on at least a few old systems.
6077 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6078
6079 # Character class describing NM global symbol codes.
6080 symcode='[BCDEGRST]'
6081
6082 # Regexp to match symbols that can be accessed directly from C.
6083 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6084
6085 # Define system-specific variables.
6086 case $host_os in
6087 aix*)
6088 symcode='[BCDT]'
6089 ;;
6090 cygwin* | mingw* | pw32* | cegcc*)
6091 symcode='[ABCDGISTW]'
6092 ;;
6093 hpux*)
6094 if test "$host_cpu" = ia64; then
6095 symcode='[ABCDEGRST]'
6096 fi
6097 ;;
6098 irix* | nonstopux*)
6099 symcode='[BCDEGRST]'
6100 ;;
6101 osf*)
6102 symcode='[BCDEGQRST]'
6103 ;;
6104 solaris*)
6105 symcode='[BDRT]'
6106 ;;
6107 sco3.2v5*)
6108 symcode='[DT]'
6109 ;;
6110 sysv4.2uw2*)
6111 symcode='[DT]'
6112 ;;
6113 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6114 symcode='[ABDT]'
6115 ;;
6116 sysv4)
6117 symcode='[DFNSTU]'
6118 ;;
6119 esac
6120
6121 # If we're using GNU nm, then use its standard symbol codes.
6122 case `$NM -V 2>&1` in
6123 *GNU* | *'with BFD'*)
6124 symcode='[ABCDGIRSTW]' ;;
6125 esac
6126
6127 # Transform an extracted symbol line into a proper C declaration.
6128 # Some systems (esp. on ia64) link data and code symbols differently,
6129 # so use this general approach.
6130 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6131
6132 # Transform an extracted symbol line into symbol name and symbol address
6133 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6134 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'"
6135
6136 # Handle CRLF in mingw tool chain
6137 opt_cr=
6138 case $build_os in
6139 mingw*)
6140 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6141 ;;
6142 esac
6143
6144 # Try without a prefix underscore, then with it.
6145 for ac_symprfx in "" "_"; do
6146
6147 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6148 symxfrm="\\1 $ac_symprfx\\2 \\2"
6149
6150 # Write the raw and C identifiers.
6151 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6152 # Fake it for dumpbin and say T for any non-static function
6153 # and D for any global variable.
6154 # Also find C++ and __fastcall symbols from MSVC++,
6155 # which start with @ or ?.
6156 lt_cv_sys_global_symbol_pipe="$AWK '"\
6157 " {last_section=section; section=\$ 3};"\
6158 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6159 " \$ 0!~/External *\|/{next};"\
6160 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6161 " {if(hide[section]) next};"\
6162 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6163 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6164 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6165 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6166 " ' prfx=^$ac_symprfx"
6167 else
6168 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6169 fi
6170
6171 # Check to see that the pipe works correctly.
6172 pipe_works=no
6173
6174 rm -f conftest*
6175 cat > conftest.$ac_ext <<_LT_EOF
6176 #ifdef __cplusplus
6177 extern "C" {
6178 #endif
6179 char nm_test_var;
6180 void nm_test_func(void);
6181 void nm_test_func(void){}
6182 #ifdef __cplusplus
6183 }
6184 #endif
6185 int main(){nm_test_var='a';nm_test_func();return(0);}
6186 _LT_EOF
6187
6188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6189 (eval $ac_compile) 2>&5
6190 ac_status=$?
6191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6192 test $ac_status = 0; }; then
6193 # Now try to grab the symbols.
6194 nlist=conftest.nm
6195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6196 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6197 ac_status=$?
6198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6199 test $ac_status = 0; } && test -s "$nlist"; then
6200 # Try sorting and uniquifying the output.
6201 if sort "$nlist" | uniq > "$nlist"T; then
6202 mv -f "$nlist"T "$nlist"
6203 else
6204 rm -f "$nlist"T
6205 fi
6206
6207 # Make sure that we snagged all the symbols we need.
6208 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6209 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6210 cat <<_LT_EOF > conftest.$ac_ext
6211 #ifdef __cplusplus
6212 extern "C" {
6213 #endif
6214
6215 _LT_EOF
6216 # Now generate the symbol file.
6217 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6218
6219 cat <<_LT_EOF >> conftest.$ac_ext
6220
6221 /* The mapping between symbol names and symbols. */
6222 const struct {
6223 const char *name;
6224 void *address;
6225 }
6226 lt__PROGRAM__LTX_preloaded_symbols[] =
6227 {
6228 { "@PROGRAM@", (void *) 0 },
6229 _LT_EOF
6230 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6231 cat <<\_LT_EOF >> conftest.$ac_ext
6232 {0, (void *) 0}
6233 };
6234
6235 /* This works around a problem in FreeBSD linker */
6236 #ifdef FREEBSD_WORKAROUND
6237 static const void *lt_preloaded_setup() {
6238 return lt__PROGRAM__LTX_preloaded_symbols;
6239 }
6240 #endif
6241
6242 #ifdef __cplusplus
6243 }
6244 #endif
6245 _LT_EOF
6246 # Now try linking the two files.
6247 mv conftest.$ac_objext conftstm.$ac_objext
6248 lt_save_LIBS="$LIBS"
6249 lt_save_CFLAGS="$CFLAGS"
6250 LIBS="conftstm.$ac_objext"
6251 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6253 (eval $ac_link) 2>&5
6254 ac_status=$?
6255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6257 pipe_works=yes
6258 fi
6259 LIBS="$lt_save_LIBS"
6260 CFLAGS="$lt_save_CFLAGS"
6261 else
6262 echo "cannot find nm_test_func in $nlist" >&5
6263 fi
6264 else
6265 echo "cannot find nm_test_var in $nlist" >&5
6266 fi
6267 else
6268 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6269 fi
6270 else
6271 echo "$progname: failed program was:" >&5
6272 cat conftest.$ac_ext >&5
6273 fi
6274 rm -rf conftest* conftst*
6275
6276 # Do not use the global_symbol_pipe unless it works.
6277 if test "$pipe_works" = yes; then
6278 break
6279 else
6280 lt_cv_sys_global_symbol_pipe=
6281 fi
6282 done
6283
6284 fi
6285
6286 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6287 lt_cv_sys_global_symbol_to_cdecl=
6288 fi
6289 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6291 $as_echo "failed" >&6; }
6292 else
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6294 $as_echo "ok" >&6; }
6295 fi
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318 # Check whether --enable-libtool-lock was given.
6319 if test "${enable_libtool_lock+set}" = set; then :
6320 enableval=$enable_libtool_lock;
6321 fi
6322
6323 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6324
6325 # Some flags need to be propagated to the compiler or linker for good
6326 # libtool support.
6327 case $host in
6328 ia64-*-hpux*)
6329 # Find out which ABI we are using.
6330 echo 'int i;' > conftest.$ac_ext
6331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6332 (eval $ac_compile) 2>&5
6333 ac_status=$?
6334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335 test $ac_status = 0; }; then
6336 case `/usr/bin/file conftest.$ac_objext` in
6337 *ELF-32*)
6338 HPUX_IA64_MODE="32"
6339 ;;
6340 *ELF-64*)
6341 HPUX_IA64_MODE="64"
6342 ;;
6343 esac
6344 fi
6345 rm -rf conftest*
6346 ;;
6347 *-*-irix6*)
6348 # Find out which ABI we are using.
6349 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6351 (eval $ac_compile) 2>&5
6352 ac_status=$?
6353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6354 test $ac_status = 0; }; then
6355 if test "$lt_cv_prog_gnu_ld" = yes; then
6356 case `/usr/bin/file conftest.$ac_objext` in
6357 *32-bit*)
6358 LD="${LD-ld} -melf32bsmip"
6359 ;;
6360 *N32*)
6361 LD="${LD-ld} -melf32bmipn32"
6362 ;;
6363 *64-bit*)
6364 LD="${LD-ld} -melf64bmip"
6365 ;;
6366 esac
6367 else
6368 case `/usr/bin/file conftest.$ac_objext` in
6369 *32-bit*)
6370 LD="${LD-ld} -32"
6371 ;;
6372 *N32*)
6373 LD="${LD-ld} -n32"
6374 ;;
6375 *64-bit*)
6376 LD="${LD-ld} -64"
6377 ;;
6378 esac
6379 fi
6380 fi
6381 rm -rf conftest*
6382 ;;
6383
6384 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6385 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6386 # Find out which ABI we are using.
6387 echo 'int i;' > conftest.$ac_ext
6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6389 (eval $ac_compile) 2>&5
6390 ac_status=$?
6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6392 test $ac_status = 0; }; then
6393 case `/usr/bin/file conftest.o` in
6394 *32-bit*)
6395 case $host in
6396 x86_64-*kfreebsd*-gnu)
6397 LD="${LD-ld} -m elf_i386_fbsd"
6398 ;;
6399 x86_64-*linux*)
6400 LD="${LD-ld} -m elf_i386"
6401 ;;
6402 ppc64-*linux*|powerpc64-*linux*)
6403 LD="${LD-ld} -m elf32ppclinux"
6404 ;;
6405 s390x-*linux*)
6406 LD="${LD-ld} -m elf_s390"
6407 ;;
6408 sparc64-*linux*)
6409 LD="${LD-ld} -m elf32_sparc"
6410 ;;
6411 esac
6412 ;;
6413 *64-bit*)
6414 case $host in
6415 x86_64-*kfreebsd*-gnu)
6416 LD="${LD-ld} -m elf_x86_64_fbsd"
6417 ;;
6418 x86_64-*linux*)
6419 LD="${LD-ld} -m elf_x86_64"
6420 ;;
6421 ppc*-*linux*|powerpc*-*linux*)
6422 LD="${LD-ld} -m elf64ppc"
6423 ;;
6424 s390*-*linux*|s390*-*tpf*)
6425 LD="${LD-ld} -m elf64_s390"
6426 ;;
6427 sparc*-*linux*)
6428 LD="${LD-ld} -m elf64_sparc"
6429 ;;
6430 esac
6431 ;;
6432 esac
6433 fi
6434 rm -rf conftest*
6435 ;;
6436
6437 *-*-sco3.2v5*)
6438 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6439 SAVE_CFLAGS="$CFLAGS"
6440 CFLAGS="$CFLAGS -belf"
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6442 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6443 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 ac_ext=c
6447 ac_cpp='$CPP $CPPFLAGS'
6448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6451
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454
6455 int
6456 main ()
6457 {
6458
6459 ;
6460 return 0;
6461 }
6462 _ACEOF
6463 if ac_fn_c_try_link "$LINENO"; then :
6464 lt_cv_cc_needs_belf=yes
6465 else
6466 lt_cv_cc_needs_belf=no
6467 fi
6468 rm -f core conftest.err conftest.$ac_objext \
6469 conftest$ac_exeext conftest.$ac_ext
6470 ac_ext=c
6471 ac_cpp='$CPP $CPPFLAGS'
6472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6475
6476 fi
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6478 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6479 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6480 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6481 CFLAGS="$SAVE_CFLAGS"
6482 fi
6483 ;;
6484 sparc*-*solaris*)
6485 # Find out which ABI we are using.
6486 echo 'int i;' > conftest.$ac_ext
6487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6488 (eval $ac_compile) 2>&5
6489 ac_status=$?
6490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6491 test $ac_status = 0; }; then
6492 case `/usr/bin/file conftest.o` in
6493 *64-bit*)
6494 case $lt_cv_prog_gnu_ld in
6495 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6496 *)
6497 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6498 LD="${LD-ld} -64"
6499 fi
6500 ;;
6501 esac
6502 ;;
6503 esac
6504 fi
6505 rm -rf conftest*
6506 ;;
6507 esac
6508
6509 need_locks="$enable_libtool_lock"
6510
6511
6512 case $host_os in
6513 rhapsody* | darwin*)
6514 if test -n "$ac_tool_prefix"; then
6515 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 if test -n "$DSYMUTIL"; then
6523 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6535 fi
6536 done
6537 done
6538 IFS=$as_save_IFS
6539
6540 fi
6541 fi
6542 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6543 if test -n "$DSYMUTIL"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6545 $as_echo "$DSYMUTIL" >&6; }
6546 else
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6549 fi
6550
6551
6552 fi
6553 if test -z "$ac_cv_prog_DSYMUTIL"; then
6554 ac_ct_DSYMUTIL=$DSYMUTIL
6555 # Extract the first word of "dsymutil", so it can be a program name with args.
6556 set dummy dsymutil; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 if test -n "$ac_ct_DSYMUTIL"; then
6563 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6583 if test -n "$ac_ct_DSYMUTIL"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6585 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6586 else
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591 if test "x$ac_ct_DSYMUTIL" = x; then
6592 DSYMUTIL=":"
6593 else
6594 case $cross_compiling:$ac_tool_warned in
6595 yes:)
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned=yes ;;
6599 esac
6600 DSYMUTIL=$ac_ct_DSYMUTIL
6601 fi
6602 else
6603 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6604 fi
6605
6606 if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 if test -n "$NMEDIT"; then
6615 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6627 fi
6628 done
6629 done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
6634 NMEDIT=$ac_cv_prog_NMEDIT
6635 if test -n "$NMEDIT"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6637 $as_echo "$NMEDIT" >&6; }
6638 else
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6641 fi
6642
6643
6644 fi
6645 if test -z "$ac_cv_prog_NMEDIT"; then
6646 ac_ct_NMEDIT=$NMEDIT
6647 # Extract the first word of "nmedit", so it can be a program name with args.
6648 set dummy nmedit; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 if test -n "$ac_ct_NMEDIT"; then
6655 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6671
6672 fi
6673 fi
6674 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6675 if test -n "$ac_ct_NMEDIT"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6677 $as_echo "$ac_ct_NMEDIT" >&6; }
6678 else
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6681 fi
6682
6683 if test "x$ac_ct_NMEDIT" = x; then
6684 NMEDIT=":"
6685 else
6686 case $cross_compiling:$ac_tool_warned in
6687 yes:)
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690 ac_tool_warned=yes ;;
6691 esac
6692 NMEDIT=$ac_ct_NMEDIT
6693 fi
6694 else
6695 NMEDIT="$ac_cv_prog_NMEDIT"
6696 fi
6697
6698 if test -n "$ac_tool_prefix"; then
6699 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if test "${ac_cv_prog_LIPO+set}" = set; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 if test -n "$LIPO"; then
6707 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6719 fi
6720 done
6721 done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 LIPO=$ac_cv_prog_LIPO
6727 if test -n "$LIPO"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6729 $as_echo "$LIPO" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734
6735
6736 fi
6737 if test -z "$ac_cv_prog_LIPO"; then
6738 ac_ct_LIPO=$LIPO
6739 # Extract the first word of "lipo", so it can be a program name with args.
6740 set dummy lipo; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 if test -n "$ac_ct_LIPO"; then
6747 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_prog_ac_ct_LIPO="lipo"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764 fi
6765 fi
6766 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6767 if test -n "$ac_ct_LIPO"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6769 $as_echo "$ac_ct_LIPO" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775 if test "x$ac_ct_LIPO" = x; then
6776 LIPO=":"
6777 else
6778 case $cross_compiling:$ac_tool_warned in
6779 yes:)
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6783 esac
6784 LIPO=$ac_ct_LIPO
6785 fi
6786 else
6787 LIPO="$ac_cv_prog_LIPO"
6788 fi
6789
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}otool; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$OTOOL"; then
6799 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6808 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815
6816 fi
6817 fi
6818 OTOOL=$ac_cv_prog_OTOOL
6819 if test -n "$OTOOL"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6821 $as_echo "$OTOOL" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6825 fi
6826
6827
6828 fi
6829 if test -z "$ac_cv_prog_OTOOL"; then
6830 ac_ct_OTOOL=$OTOOL
6831 # Extract the first word of "otool", so it can be a program name with args.
6832 set dummy otool; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$ac_ct_OTOOL"; then
6839 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_prog_ac_ct_OTOOL="otool"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6851 fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855
6856 fi
6857 fi
6858 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6859 if test -n "$ac_ct_OTOOL"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6861 $as_echo "$ac_ct_OTOOL" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6865 fi
6866
6867 if test "x$ac_ct_OTOOL" = x; then
6868 OTOOL=":"
6869 else
6870 case $cross_compiling:$ac_tool_warned in
6871 yes:)
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876 OTOOL=$ac_ct_OTOOL
6877 fi
6878 else
6879 OTOOL="$ac_cv_prog_OTOOL"
6880 fi
6881
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 if test -n "$OTOOL64"; then
6891 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904 done
6905 done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 OTOOL64=$ac_cv_prog_OTOOL64
6911 if test -n "$OTOOL64"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6913 $as_echo "$OTOOL64" >&6; }
6914 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919
6920 fi
6921 if test -z "$ac_cv_prog_OTOOL64"; then
6922 ac_ct_OTOOL64=$OTOOL64
6923 # Extract the first word of "otool64", so it can be a program name with args.
6924 set dummy otool64; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 if test -n "$ac_ct_OTOOL64"; then
6931 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_prog_ac_ct_OTOOL64="otool64"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6951 if test -n "$ac_ct_OTOOL64"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6953 $as_echo "$ac_ct_OTOOL64" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959 if test "x$ac_ct_OTOOL64" = x; then
6960 OTOOL64=":"
6961 else
6962 case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968 OTOOL64=$ac_ct_OTOOL64
6969 fi
6970 else
6971 OTOOL64="$ac_cv_prog_OTOOL64"
6972 fi
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7001 $as_echo_n "checking for -single_module linker flag... " >&6; }
7002 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 lt_cv_apple_cc_single_mod=no
7006 if test -z "${LT_MULTI_MODULE}"; then
7007 # By default we will add the -single_module flag. You can override
7008 # by either setting the environment variable LT_MULTI_MODULE
7009 # non-empty at configure time, or by adding -multi_module to the
7010 # link flags.
7011 rm -rf libconftest.dylib*
7012 echo "int foo(void){return 1;}" > conftest.c
7013 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7014 -dynamiclib -Wl,-single_module conftest.c" >&5
7015 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7016 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7017 _lt_result=$?
7018 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7019 lt_cv_apple_cc_single_mod=yes
7020 else
7021 cat conftest.err >&5
7022 fi
7023 rm -rf libconftest.dylib*
7024 rm -f conftest.*
7025 fi
7026 fi
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7028 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7030 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7031 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 lt_cv_ld_exported_symbols_list=no
7035 save_LDFLAGS=$LDFLAGS
7036 echo "_main" > conftest.sym
7037 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7040
7041 int
7042 main ()
7043 {
7044
7045 ;
7046 return 0;
7047 }
7048 _ACEOF
7049 if ac_fn_c_try_link "$LINENO"; then :
7050 lt_cv_ld_exported_symbols_list=yes
7051 else
7052 lt_cv_ld_exported_symbols_list=no
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext \
7055 conftest$ac_exeext conftest.$ac_ext
7056 LDFLAGS="$save_LDFLAGS"
7057
7058 fi
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7060 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7062 $as_echo_n "checking for -force_load linker flag... " >&6; }
7063 if test "${lt_cv_ld_force_load+set}" = set; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 lt_cv_ld_force_load=no
7067 cat > conftest.c << _LT_EOF
7068 int forced_loaded() { return 2;}
7069 _LT_EOF
7070 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7071 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7072 echo "$AR cru libconftest.a conftest.o" >&5
7073 $AR cru libconftest.a conftest.o 2>&5
7074 echo "$RANLIB libconftest.a" >&5
7075 $RANLIB libconftest.a 2>&5
7076 cat > conftest.c << _LT_EOF
7077 int main() { return 0;}
7078 _LT_EOF
7079 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7080 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7081 _lt_result=$?
7082 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7083 lt_cv_ld_force_load=yes
7084 else
7085 cat conftest.err >&5
7086 fi
7087 rm -f conftest.err libconftest.a conftest conftest.c
7088 rm -rf conftest.dSYM
7089
7090 fi
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7092 $as_echo "$lt_cv_ld_force_load" >&6; }
7093 case $host_os in
7094 rhapsody* | darwin1.[012])
7095 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7096 darwin1.*)
7097 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7098 darwin*) # darwin 5.x on
7099 # if running on 10.5 or later, the deployment target defaults
7100 # to the OS version, if on x86, and 10.4, the deployment
7101 # target defaults to 10.4. Don't you love it?
7102 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7103 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7104 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7105 10.[012]*)
7106 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7107 10.*)
7108 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7109 esac
7110 ;;
7111 esac
7112 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7113 _lt_dar_single_mod='$single_module'
7114 fi
7115 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7116 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7117 else
7118 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7119 fi
7120 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7121 _lt_dsymutil='~$DSYMUTIL $lib || :'
7122 else
7123 _lt_dsymutil=
7124 fi
7125 ;;
7126 esac
7127
7128 ac_ext=c
7129 ac_cpp='$CPP $CPPFLAGS'
7130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7134 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7135 # On Suns, sometimes $CPP names a directory.
7136 if test -n "$CPP" && test -d "$CPP"; then
7137 CPP=
7138 fi
7139 if test -z "$CPP"; then
7140 if test "${ac_cv_prog_CPP+set}" = set; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143 # Double quotes because CPP needs to be expanded
7144 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7145 do
7146 ac_preproc_ok=false
7147 for ac_c_preproc_warn_flag in '' yes
7148 do
7149 # Use a header file that comes with gcc, so configuring glibc
7150 # with a fresh cross-compiler works.
7151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7152 # <limits.h> exists even on freestanding compilers.
7153 # On the NeXT, cc -E runs the code through the compiler's parser,
7154 # not just through cpp. "Syntax error" is here to catch this case.
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 #ifdef __STDC__
7158 # include <limits.h>
7159 #else
7160 # include <assert.h>
7161 #endif
7162 Syntax error
7163 _ACEOF
7164 if ac_fn_c_try_cpp "$LINENO"; then :
7165
7166 else
7167 # Broken: fails on valid input.
7168 continue
7169 fi
7170 rm -f conftest.err conftest.i conftest.$ac_ext
7171
7172 # OK, works on sane cases. Now check whether nonexistent headers
7173 # can be detected and how.
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176 #include <ac_nonexistent.h>
7177 _ACEOF
7178 if ac_fn_c_try_cpp "$LINENO"; then :
7179 # Broken: success on invalid input.
7180 continue
7181 else
7182 # Passes both tests.
7183 ac_preproc_ok=:
7184 break
7185 fi
7186 rm -f conftest.err conftest.i conftest.$ac_ext
7187
7188 done
7189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7190 rm -f conftest.i conftest.err conftest.$ac_ext
7191 if $ac_preproc_ok; then :
7192 break
7193 fi
7194
7195 done
7196 ac_cv_prog_CPP=$CPP
7197
7198 fi
7199 CPP=$ac_cv_prog_CPP
7200 else
7201 ac_cv_prog_CPP=$CPP
7202 fi
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7204 $as_echo "$CPP" >&6; }
7205 ac_preproc_ok=false
7206 for ac_c_preproc_warn_flag in '' yes
7207 do
7208 # Use a header file that comes with gcc, so configuring glibc
7209 # with a fresh cross-compiler works.
7210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7211 # <limits.h> exists even on freestanding compilers.
7212 # On the NeXT, cc -E runs the code through the compiler's parser,
7213 # not just through cpp. "Syntax error" is here to catch this case.
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 #ifdef __STDC__
7217 # include <limits.h>
7218 #else
7219 # include <assert.h>
7220 #endif
7221 Syntax error
7222 _ACEOF
7223 if ac_fn_c_try_cpp "$LINENO"; then :
7224
7225 else
7226 # Broken: fails on valid input.
7227 continue
7228 fi
7229 rm -f conftest.err conftest.i conftest.$ac_ext
7230
7231 # OK, works on sane cases. Now check whether nonexistent headers
7232 # can be detected and how.
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 #include <ac_nonexistent.h>
7236 _ACEOF
7237 if ac_fn_c_try_cpp "$LINENO"; then :
7238 # Broken: success on invalid input.
7239 continue
7240 else
7241 # Passes both tests.
7242 ac_preproc_ok=:
7243 break
7244 fi
7245 rm -f conftest.err conftest.i conftest.$ac_ext
7246
7247 done
7248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7249 rm -f conftest.i conftest.err conftest.$ac_ext
7250 if $ac_preproc_ok; then :
7251
7252 else
7253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7255 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7256 See \`config.log' for more details" "$LINENO" 5; }
7257 fi
7258
7259 ac_ext=c
7260 ac_cpp='$CPP $CPPFLAGS'
7261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264
7265
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7267 $as_echo_n "checking for ANSI C header files... " >&6; }
7268 if test "${ac_cv_header_stdc+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7273 #include <stdlib.h>
7274 #include <stdarg.h>
7275 #include <string.h>
7276 #include <float.h>
7277
7278 int
7279 main ()
7280 {
7281
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 if ac_fn_c_try_compile "$LINENO"; then :
7287 ac_cv_header_stdc=yes
7288 else
7289 ac_cv_header_stdc=no
7290 fi
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292
7293 if test $ac_cv_header_stdc = yes; then
7294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296 /* end confdefs.h. */
7297 #include <string.h>
7298
7299 _ACEOF
7300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7301 $EGREP "memchr" >/dev/null 2>&1; then :
7302
7303 else
7304 ac_cv_header_stdc=no
7305 fi
7306 rm -f conftest*
7307
7308 fi
7309
7310 if test $ac_cv_header_stdc = yes; then
7311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314 #include <stdlib.h>
7315
7316 _ACEOF
7317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7318 $EGREP "free" >/dev/null 2>&1; then :
7319
7320 else
7321 ac_cv_header_stdc=no
7322 fi
7323 rm -f conftest*
7324
7325 fi
7326
7327 if test $ac_cv_header_stdc = yes; then
7328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7329 if test "$cross_compiling" = yes; then :
7330 :
7331 else
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7334 #include <ctype.h>
7335 #include <stdlib.h>
7336 #if ((' ' & 0x0FF) == 0x020)
7337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7339 #else
7340 # define ISLOWER(c) \
7341 (('a' <= (c) && (c) <= 'i') \
7342 || ('j' <= (c) && (c) <= 'r') \
7343 || ('s' <= (c) && (c) <= 'z'))
7344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7345 #endif
7346
7347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7348 int
7349 main ()
7350 {
7351 int i;
7352 for (i = 0; i < 256; i++)
7353 if (XOR (islower (i), ISLOWER (i))
7354 || toupper (i) != TOUPPER (i))
7355 return 2;
7356 return 0;
7357 }
7358 _ACEOF
7359 if ac_fn_c_try_run "$LINENO"; then :
7360
7361 else
7362 ac_cv_header_stdc=no
7363 fi
7364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7365 conftest.$ac_objext conftest.beam conftest.$ac_ext
7366 fi
7367
7368 fi
7369 fi
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7371 $as_echo "$ac_cv_header_stdc" >&6; }
7372 if test $ac_cv_header_stdc = yes; then
7373
7374 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7375
7376 fi
7377
7378 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7379 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7380 inttypes.h stdint.h unistd.h
7381 do :
7382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7383 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7384 "
7385 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7386 cat >>confdefs.h <<_ACEOF
7387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7388 _ACEOF
7389
7390 fi
7391
7392 done
7393
7394
7395 for ac_header in dlfcn.h
7396 do :
7397 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7398 "
7399 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7400 cat >>confdefs.h <<_ACEOF
7401 #define HAVE_DLFCN_H 1
7402 _ACEOF
7403
7404 fi
7405
7406 done
7407
7408
7409
7410
7411
7412 # Set options
7413 enable_dlopen=yes
7414 # Check whether --enable-static was given.
7415 if test "${enable_static+set}" = set; then :
7416 enableval=$enable_static; p=${PACKAGE-default}
7417 case $enableval in
7418 yes) enable_static=yes ;;
7419 no) enable_static=no ;;
7420 *)
7421 enable_static=no
7422 # Look at the argument we got. We use all the common list separators.
7423 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7424 for pkg in $enableval; do
7425 IFS="$lt_save_ifs"
7426 if test "X$pkg" = "X$p"; then
7427 enable_static=yes
7428 fi
7429 done
7430 IFS="$lt_save_ifs"
7431 ;;
7432 esac
7433 else
7434 enable_static=no
7435 fi
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447 enable_win32_dll=no
7448
7449
7450 # Check whether --enable-shared was given.
7451 if test "${enable_shared+set}" = set; then :
7452 enableval=$enable_shared; p=${PACKAGE-default}
7453 case $enableval in
7454 yes) enable_shared=yes ;;
7455 no) enable_shared=no ;;
7456 *)
7457 enable_shared=no
7458 # Look at the argument we got. We use all the common list separators.
7459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7460 for pkg in $enableval; do
7461 IFS="$lt_save_ifs"
7462 if test "X$pkg" = "X$p"; then
7463 enable_shared=yes
7464 fi
7465 done
7466 IFS="$lt_save_ifs"
7467 ;;
7468 esac
7469 else
7470 enable_shared=yes
7471 fi
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483 # Check whether --with-pic was given.
7484 if test "${with_pic+set}" = set; then :
7485 withval=$with_pic; pic_mode="$withval"
7486 else
7487 pic_mode=default
7488 fi
7489
7490
7491 test -z "$pic_mode" && pic_mode=default
7492
7493
7494
7495
7496
7497
7498
7499 # Check whether --enable-fast-install was given.
7500 if test "${enable_fast_install+set}" = set; then :
7501 enableval=$enable_fast_install; p=${PACKAGE-default}
7502 case $enableval in
7503 yes) enable_fast_install=yes ;;
7504 no) enable_fast_install=no ;;
7505 *)
7506 enable_fast_install=no
7507 # Look at the argument we got. We use all the common list separators.
7508 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7509 for pkg in $enableval; do
7510 IFS="$lt_save_ifs"
7511 if test "X$pkg" = "X$p"; then
7512 enable_fast_install=yes
7513 fi
7514 done
7515 IFS="$lt_save_ifs"
7516 ;;
7517 esac
7518 else
7519 enable_fast_install=yes
7520 fi
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532 # This can be used to rebuild libtool when needed
7533 LIBTOOL_DEPS="$ltmain"
7534
7535 # Always use our own libtool.
7536 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563 test -z "$LN_S" && LN_S="ln -s"
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 if test -n "${ZSH_VERSION+set}" ; then
7579 setopt NO_GLOB_SUBST
7580 fi
7581
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7583 $as_echo_n "checking for objdir... " >&6; }
7584 if test "${lt_cv_objdir+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 rm -f .libs 2>/dev/null
7588 mkdir .libs 2>/dev/null
7589 if test -d .libs; then
7590 lt_cv_objdir=.libs
7591 else
7592 # MS-DOS does not allow filenames that begin with a dot.
7593 lt_cv_objdir=_libs
7594 fi
7595 rmdir .libs 2>/dev/null
7596 fi
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7598 $as_echo "$lt_cv_objdir" >&6; }
7599 objdir=$lt_cv_objdir
7600
7601
7602
7603
7604
7605 cat >>confdefs.h <<_ACEOF
7606 #define LT_OBJDIR "$lt_cv_objdir/"
7607 _ACEOF
7608
7609
7610
7611
7612 case $host_os in
7613 aix3*)
7614 # AIX sometimes has problems with the GCC collect2 program. For some
7615 # reason, if we set the COLLECT_NAMES environment variable, the problems
7616 # vanish in a puff of smoke.
7617 if test "X${COLLECT_NAMES+set}" != Xset; then
7618 COLLECT_NAMES=
7619 export COLLECT_NAMES
7620 fi
7621 ;;
7622 esac
7623
7624 # Global variables:
7625 ofile=libtool
7626 can_build_shared=yes
7627
7628 # All known linkers require a `.a' archive for static linking (except MSVC,
7629 # which needs '.lib').
7630 libext=a
7631
7632 with_gnu_ld="$lt_cv_prog_gnu_ld"
7633
7634 old_CC="$CC"
7635 old_CFLAGS="$CFLAGS"
7636
7637 # Set sane defaults for various variables
7638 test -z "$CC" && CC=cc
7639 test -z "$LTCC" && LTCC=$CC
7640 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7641 test -z "$LD" && LD=ld
7642 test -z "$ac_objext" && ac_objext=o
7643
7644 for cc_temp in $compiler""; do
7645 case $cc_temp in
7646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7648 \-*) ;;
7649 *) break;;
7650 esac
7651 done
7652 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7653
7654
7655 # Only perform the check for file, if the check method requires it
7656 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7657 case $deplibs_check_method in
7658 file_magic*)
7659 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7661 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7662 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 case $MAGIC_CMD in
7666 [\\/*] | ?:[\\/]*)
7667 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7668 ;;
7669 *)
7670 lt_save_MAGIC_CMD="$MAGIC_CMD"
7671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7672 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7673 for ac_dir in $ac_dummy; do
7674 IFS="$lt_save_ifs"
7675 test -z "$ac_dir" && ac_dir=.
7676 if test -f $ac_dir/${ac_tool_prefix}file; then
7677 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7678 if test -n "$file_magic_test_file"; then
7679 case $deplibs_check_method in
7680 "file_magic "*)
7681 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7682 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7683 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7684 $EGREP "$file_magic_regex" > /dev/null; then
7685 :
7686 else
7687 cat <<_LT_EOF 1>&2
7688
7689 *** Warning: the command libtool uses to detect shared libraries,
7690 *** $file_magic_cmd, produces output that libtool cannot recognize.
7691 *** The result is that libtool may fail to recognize shared libraries
7692 *** as such. This will affect the creation of libtool libraries that
7693 *** depend on shared libraries, but programs linked with such libtool
7694 *** libraries will work regardless of this problem. Nevertheless, you
7695 *** may want to report the problem to your system manager and/or to
7696 *** bug-libtool@gnu.org
7697
7698 _LT_EOF
7699 fi ;;
7700 esac
7701 fi
7702 break
7703 fi
7704 done
7705 IFS="$lt_save_ifs"
7706 MAGIC_CMD="$lt_save_MAGIC_CMD"
7707 ;;
7708 esac
7709 fi
7710
7711 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7712 if test -n "$MAGIC_CMD"; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7714 $as_echo "$MAGIC_CMD" >&6; }
7715 else
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7718 fi
7719
7720
7721
7722
7723
7724 if test -z "$lt_cv_path_MAGIC_CMD"; then
7725 if test -n "$ac_tool_prefix"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7727 $as_echo_n "checking for file... " >&6; }
7728 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 case $MAGIC_CMD in
7732 [\\/*] | ?:[\\/]*)
7733 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7734 ;;
7735 *)
7736 lt_save_MAGIC_CMD="$MAGIC_CMD"
7737 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7738 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7739 for ac_dir in $ac_dummy; do
7740 IFS="$lt_save_ifs"
7741 test -z "$ac_dir" && ac_dir=.
7742 if test -f $ac_dir/file; then
7743 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7744 if test -n "$file_magic_test_file"; then
7745 case $deplibs_check_method in
7746 "file_magic "*)
7747 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7749 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7750 $EGREP "$file_magic_regex" > /dev/null; then
7751 :
7752 else
7753 cat <<_LT_EOF 1>&2
7754
7755 *** Warning: the command libtool uses to detect shared libraries,
7756 *** $file_magic_cmd, produces output that libtool cannot recognize.
7757 *** The result is that libtool may fail to recognize shared libraries
7758 *** as such. This will affect the creation of libtool libraries that
7759 *** depend on shared libraries, but programs linked with such libtool
7760 *** libraries will work regardless of this problem. Nevertheless, you
7761 *** may want to report the problem to your system manager and/or to
7762 *** bug-libtool@gnu.org
7763
7764 _LT_EOF
7765 fi ;;
7766 esac
7767 fi
7768 break
7769 fi
7770 done
7771 IFS="$lt_save_ifs"
7772 MAGIC_CMD="$lt_save_MAGIC_CMD"
7773 ;;
7774 esac
7775 fi
7776
7777 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7778 if test -n "$MAGIC_CMD"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7780 $as_echo "$MAGIC_CMD" >&6; }
7781 else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7784 fi
7785
7786
7787 else
7788 MAGIC_CMD=:
7789 fi
7790 fi
7791
7792 fi
7793 ;;
7794 esac
7795
7796 # Use C for the default configuration in the libtool script
7797
7798 lt_save_CC="$CC"
7799 ac_ext=c
7800 ac_cpp='$CPP $CPPFLAGS'
7801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804
7805
7806 # Source file extension for C test sources.
7807 ac_ext=c
7808
7809 # Object file extension for compiled C test sources.
7810 objext=o
7811 objext=$objext
7812
7813 # Code to be used in simple compile tests
7814 lt_simple_compile_test_code="int some_variable = 0;"
7815
7816 # Code to be used in simple link tests
7817 lt_simple_link_test_code='int main(){return(0);}'
7818
7819
7820
7821
7822
7823
7824
7825 # If no C compiler was specified, use CC.
7826 LTCC=${LTCC-"$CC"}
7827
7828 # If no C compiler flags were specified, use CFLAGS.
7829 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7830
7831 # Allow CC to be a program name with arguments.
7832 compiler=$CC
7833
7834 # Save the default compiler, since it gets overwritten when the other
7835 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7836 compiler_DEFAULT=$CC
7837
7838 # save warnings/boilerplate of simple test code
7839 ac_outfile=conftest.$ac_objext
7840 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7841 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7842 _lt_compiler_boilerplate=`cat conftest.err`
7843 $RM conftest*
7844
7845 ac_outfile=conftest.$ac_objext
7846 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7847 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7848 _lt_linker_boilerplate=`cat conftest.err`
7849 $RM -r conftest*
7850
7851
7852 if test -n "$compiler"; then
7853
7854 lt_prog_compiler_no_builtin_flag=
7855
7856 if test "$GCC" = yes; then
7857 case $cc_basename in
7858 nvcc*)
7859 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7860 *)
7861 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7862 esac
7863
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7865 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7866 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 lt_cv_prog_compiler_rtti_exceptions=no
7870 ac_outfile=conftest.$ac_objext
7871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7872 lt_compiler_flag="-fno-rtti -fno-exceptions"
7873 # Insert the option either (1) after the last *FLAGS variable, or
7874 # (2) before a word containing "conftest.", or (3) at the end.
7875 # Note that $ac_compile itself does not contain backslashes and begins
7876 # with a dollar sign (not a hyphen), so the echo should work correctly.
7877 # The option is referenced via a variable to avoid confusing sed.
7878 lt_compile=`echo "$ac_compile" | $SED \
7879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7881 -e 's:$: $lt_compiler_flag:'`
7882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7883 (eval "$lt_compile" 2>conftest.err)
7884 ac_status=$?
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 if (exit $ac_status) && test -s "$ac_outfile"; then
7888 # The compiler can only warn and ignore the option if not recognized
7889 # So say no if there are warnings other than the usual output.
7890 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7892 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7893 lt_cv_prog_compiler_rtti_exceptions=yes
7894 fi
7895 fi
7896 $RM conftest*
7897
7898 fi
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7900 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7901
7902 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7903 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7904 else
7905 :
7906 fi
7907
7908 fi
7909
7910
7911
7912
7913
7914
7915 lt_prog_compiler_wl=
7916 lt_prog_compiler_pic=
7917 lt_prog_compiler_static=
7918
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7920 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7921
7922 if test "$GCC" = yes; then
7923 lt_prog_compiler_wl='-Wl,'
7924 lt_prog_compiler_static='-static'
7925
7926 case $host_os in
7927 aix*)
7928 # All AIX code is PIC.
7929 if test "$host_cpu" = ia64; then
7930 # AIX 5 now supports IA64 processor
7931 lt_prog_compiler_static='-Bstatic'
7932 fi
7933 ;;
7934
7935 amigaos*)
7936 case $host_cpu in
7937 powerpc)
7938 # see comment about AmigaOS4 .so support
7939 lt_prog_compiler_pic='-fPIC'
7940 ;;
7941 m68k)
7942 # FIXME: we need at least 68020 code to build shared libraries, but
7943 # adding the `-m68020' flag to GCC prevents building anything better,
7944 # like `-m68040'.
7945 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7946 ;;
7947 esac
7948 ;;
7949
7950 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7951 # PIC is the default for these OSes.
7952 ;;
7953
7954 mingw* | cygwin* | pw32* | os2* | cegcc*)
7955 # This hack is so that the source file can tell whether it is being
7956 # built for inclusion in a dll (and should export symbols for example).
7957 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7958 # (--disable-auto-import) libraries
7959 lt_prog_compiler_pic='-DDLL_EXPORT'
7960 ;;
7961
7962 darwin* | rhapsody*)
7963 # PIC is the default on this platform
7964 # Common symbols not allowed in MH_DYLIB files
7965 lt_prog_compiler_pic='-fno-common'
7966 ;;
7967
7968 haiku*)
7969 # PIC is the default for Haiku.
7970 # The "-static" flag exists, but is broken.
7971 lt_prog_compiler_static=
7972 ;;
7973
7974 hpux*)
7975 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7976 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7977 # sets the default TLS model and affects inlining.
7978 case $host_cpu in
7979 hppa*64*)
7980 # +Z the default
7981 ;;
7982 *)
7983 lt_prog_compiler_pic='-fPIC'
7984 ;;
7985 esac
7986 ;;
7987
7988 interix[3-9]*)
7989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7990 # Instead, we relocate shared libraries at runtime.
7991 ;;
7992
7993 msdosdjgpp*)
7994 # Just because we use GCC doesn't mean we suddenly get shared libraries
7995 # on systems that don't support them.
7996 lt_prog_compiler_can_build_shared=no
7997 enable_shared=no
7998 ;;
7999
8000 *nto* | *qnx*)
8001 # QNX uses GNU C++, but need to define -shared option too, otherwise
8002 # it will coredump.
8003 lt_prog_compiler_pic='-fPIC -shared'
8004 ;;
8005
8006 sysv4*MP*)
8007 if test -d /usr/nec; then
8008 lt_prog_compiler_pic=-Kconform_pic
8009 fi
8010 ;;
8011
8012 *)
8013 lt_prog_compiler_pic='-fPIC'
8014 ;;
8015 esac
8016
8017 case $cc_basename in
8018 nvcc*) # Cuda Compiler Driver 2.2
8019 lt_prog_compiler_wl='-Xlinker '
8020 lt_prog_compiler_pic='-Xcompiler -fPIC'
8021 ;;
8022 esac
8023 else
8024 # PORTME Check for flag to pass linker flags through the system compiler.
8025 case $host_os in
8026 aix*)
8027 lt_prog_compiler_wl='-Wl,'
8028 if test "$host_cpu" = ia64; then
8029 # AIX 5 now supports IA64 processor
8030 lt_prog_compiler_static='-Bstatic'
8031 else
8032 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8033 fi
8034 ;;
8035
8036 mingw* | cygwin* | pw32* | os2* | cegcc*)
8037 # This hack is so that the source file can tell whether it is being
8038 # built for inclusion in a dll (and should export symbols for example).
8039 lt_prog_compiler_pic='-DDLL_EXPORT'
8040 ;;
8041
8042 hpux9* | hpux10* | hpux11*)
8043 lt_prog_compiler_wl='-Wl,'
8044 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8045 # not for PA HP-UX.
8046 case $host_cpu in
8047 hppa*64*|ia64*)
8048 # +Z the default
8049 ;;
8050 *)
8051 lt_prog_compiler_pic='+Z'
8052 ;;
8053 esac
8054 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8055 lt_prog_compiler_static='${wl}-a ${wl}archive'
8056 ;;
8057
8058 irix5* | irix6* | nonstopux*)
8059 lt_prog_compiler_wl='-Wl,'
8060 # PIC (with -KPIC) is the default.
8061 lt_prog_compiler_static='-non_shared'
8062 ;;
8063
8064 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8065 case $cc_basename in
8066 # old Intel for x86_64 which still supported -KPIC.
8067 ecc*)
8068 lt_prog_compiler_wl='-Wl,'
8069 lt_prog_compiler_pic='-KPIC'
8070 lt_prog_compiler_static='-static'
8071 ;;
8072 # icc used to be incompatible with GCC.
8073 # ICC 10 doesn't accept -KPIC any more.
8074 icc* | ifort*)
8075 lt_prog_compiler_wl='-Wl,'
8076 lt_prog_compiler_pic='-fPIC'
8077 lt_prog_compiler_static='-static'
8078 ;;
8079 # Lahey Fortran 8.1.
8080 lf95*)
8081 lt_prog_compiler_wl='-Wl,'
8082 lt_prog_compiler_pic='--shared'
8083 lt_prog_compiler_static='--static'
8084 ;;
8085 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8086 # Portland Group compilers (*not* the Pentium gcc compiler,
8087 # which looks to be a dead project)
8088 lt_prog_compiler_wl='-Wl,'
8089 lt_prog_compiler_pic='-fpic'
8090 lt_prog_compiler_static='-Bstatic'
8091 ;;
8092 ccc*)
8093 lt_prog_compiler_wl='-Wl,'
8094 # All Alpha code is PIC.
8095 lt_prog_compiler_static='-non_shared'
8096 ;;
8097 xl* | bgxl* | bgf* | mpixl*)
8098 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8099 lt_prog_compiler_wl='-Wl,'
8100 lt_prog_compiler_pic='-qpic'
8101 lt_prog_compiler_static='-qstaticlink'
8102 ;;
8103 *)
8104 case `$CC -V 2>&1 | sed 5q` in
8105 *Sun\ F* | *Sun*Fortran*)
8106 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8107 lt_prog_compiler_pic='-KPIC'
8108 lt_prog_compiler_static='-Bstatic'
8109 lt_prog_compiler_wl=''
8110 ;;
8111 *Sun\ C*)
8112 # Sun C 5.9
8113 lt_prog_compiler_pic='-KPIC'
8114 lt_prog_compiler_static='-Bstatic'
8115 lt_prog_compiler_wl='-Wl,'
8116 ;;
8117 esac
8118 ;;
8119 esac
8120 ;;
8121
8122 newsos6)
8123 lt_prog_compiler_pic='-KPIC'
8124 lt_prog_compiler_static='-Bstatic'
8125 ;;
8126
8127 *nto* | *qnx*)
8128 # QNX uses GNU C++, but need to define -shared option too, otherwise
8129 # it will coredump.
8130 lt_prog_compiler_pic='-fPIC -shared'
8131 ;;
8132
8133 osf3* | osf4* | osf5*)
8134 lt_prog_compiler_wl='-Wl,'
8135 # All OSF/1 code is PIC.
8136 lt_prog_compiler_static='-non_shared'
8137 ;;
8138
8139 rdos*)
8140 lt_prog_compiler_static='-non_shared'
8141 ;;
8142
8143 solaris*)
8144 lt_prog_compiler_pic='-KPIC'
8145 lt_prog_compiler_static='-Bstatic'
8146 case $cc_basename in
8147 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8148 lt_prog_compiler_wl='-Qoption ld ';;
8149 *)
8150 lt_prog_compiler_wl='-Wl,';;
8151 esac
8152 ;;
8153
8154 sunos4*)
8155 lt_prog_compiler_wl='-Qoption ld '
8156 lt_prog_compiler_pic='-PIC'
8157 lt_prog_compiler_static='-Bstatic'
8158 ;;
8159
8160 sysv4 | sysv4.2uw2* | sysv4.3*)
8161 lt_prog_compiler_wl='-Wl,'
8162 lt_prog_compiler_pic='-KPIC'
8163 lt_prog_compiler_static='-Bstatic'
8164 ;;
8165
8166 sysv4*MP*)
8167 if test -d /usr/nec ;then
8168 lt_prog_compiler_pic='-Kconform_pic'
8169 lt_prog_compiler_static='-Bstatic'
8170 fi
8171 ;;
8172
8173 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_pic='-KPIC'
8176 lt_prog_compiler_static='-Bstatic'
8177 ;;
8178
8179 unicos*)
8180 lt_prog_compiler_wl='-Wl,'
8181 lt_prog_compiler_can_build_shared=no
8182 ;;
8183
8184 uts4*)
8185 lt_prog_compiler_pic='-pic'
8186 lt_prog_compiler_static='-Bstatic'
8187 ;;
8188
8189 *)
8190 lt_prog_compiler_can_build_shared=no
8191 ;;
8192 esac
8193 fi
8194
8195 case $host_os in
8196 # For platforms which do not support PIC, -DPIC is meaningless:
8197 *djgpp*)
8198 lt_prog_compiler_pic=
8199 ;;
8200 *)
8201 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8202 ;;
8203 esac
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8205 $as_echo "$lt_prog_compiler_pic" >&6; }
8206
8207
8208
8209
8210
8211
8212 #
8213 # Check to make sure the PIC flag actually works.
8214 #
8215 if test -n "$lt_prog_compiler_pic"; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8217 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8218 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 lt_cv_prog_compiler_pic_works=no
8222 ac_outfile=conftest.$ac_objext
8223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8224 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8225 # Insert the option either (1) after the last *FLAGS variable, or
8226 # (2) before a word containing "conftest.", or (3) at the end.
8227 # Note that $ac_compile itself does not contain backslashes and begins
8228 # with a dollar sign (not a hyphen), so the echo should work correctly.
8229 # The option is referenced via a variable to avoid confusing sed.
8230 lt_compile=`echo "$ac_compile" | $SED \
8231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8233 -e 's:$: $lt_compiler_flag:'`
8234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8235 (eval "$lt_compile" 2>conftest.err)
8236 ac_status=$?
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 if (exit $ac_status) && test -s "$ac_outfile"; then
8240 # The compiler can only warn and ignore the option if not recognized
8241 # So say no if there are warnings other than the usual output.
8242 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8244 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8245 lt_cv_prog_compiler_pic_works=yes
8246 fi
8247 fi
8248 $RM conftest*
8249
8250 fi
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8252 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8253
8254 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8255 case $lt_prog_compiler_pic in
8256 "" | " "*) ;;
8257 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8258 esac
8259 else
8260 lt_prog_compiler_pic=
8261 lt_prog_compiler_can_build_shared=no
8262 fi
8263
8264 fi
8265
8266
8267
8268
8269
8270
8271 #
8272 # Check to make sure the static flag actually works.
8273 #
8274 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8276 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8277 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 lt_cv_prog_compiler_static_works=no
8281 save_LDFLAGS="$LDFLAGS"
8282 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8283 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8284 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8285 # The linker can only warn and ignore the option if not recognized
8286 # So say no if there are warnings
8287 if test -s conftest.err; then
8288 # Append any errors to the config.log.
8289 cat conftest.err 1>&5
8290 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8292 if diff conftest.exp conftest.er2 >/dev/null; then
8293 lt_cv_prog_compiler_static_works=yes
8294 fi
8295 else
8296 lt_cv_prog_compiler_static_works=yes
8297 fi
8298 fi
8299 $RM -r conftest*
8300 LDFLAGS="$save_LDFLAGS"
8301
8302 fi
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8304 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8305
8306 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8307 :
8308 else
8309 lt_prog_compiler_static=
8310 fi
8311
8312
8313
8314
8315
8316
8317
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8319 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8320 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 lt_cv_prog_compiler_c_o=no
8324 $RM -r conftest 2>/dev/null
8325 mkdir conftest
8326 cd conftest
8327 mkdir out
8328 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8329
8330 lt_compiler_flag="-o out/conftest2.$ac_objext"
8331 # Insert the option either (1) after the last *FLAGS variable, or
8332 # (2) before a word containing "conftest.", or (3) at the end.
8333 # Note that $ac_compile itself does not contain backslashes and begins
8334 # with a dollar sign (not a hyphen), so the echo should work correctly.
8335 lt_compile=`echo "$ac_compile" | $SED \
8336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8338 -e 's:$: $lt_compiler_flag:'`
8339 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8340 (eval "$lt_compile" 2>out/conftest.err)
8341 ac_status=$?
8342 cat out/conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8345 then
8346 # The compiler can only warn and ignore the option if not recognized
8347 # So say no if there are warnings
8348 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8349 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8350 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8351 lt_cv_prog_compiler_c_o=yes
8352 fi
8353 fi
8354 chmod u+w . 2>&5
8355 $RM conftest*
8356 # SGI C++ compiler will create directory out/ii_files/ for
8357 # template instantiation
8358 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8359 $RM out/* && rmdir out
8360 cd ..
8361 $RM -r conftest
8362 $RM conftest*
8363
8364 fi
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8366 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8367
8368
8369
8370
8371
8372
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8374 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8375 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 lt_cv_prog_compiler_c_o=no
8379 $RM -r conftest 2>/dev/null
8380 mkdir conftest
8381 cd conftest
8382 mkdir out
8383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8384
8385 lt_compiler_flag="-o out/conftest2.$ac_objext"
8386 # Insert the option either (1) after the last *FLAGS variable, or
8387 # (2) before a word containing "conftest.", or (3) at the end.
8388 # Note that $ac_compile itself does not contain backslashes and begins
8389 # with a dollar sign (not a hyphen), so the echo should work correctly.
8390 lt_compile=`echo "$ac_compile" | $SED \
8391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8393 -e 's:$: $lt_compiler_flag:'`
8394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8395 (eval "$lt_compile" 2>out/conftest.err)
8396 ac_status=$?
8397 cat out/conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8400 then
8401 # The compiler can only warn and ignore the option if not recognized
8402 # So say no if there are warnings
8403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8404 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8405 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8406 lt_cv_prog_compiler_c_o=yes
8407 fi
8408 fi
8409 chmod u+w . 2>&5
8410 $RM conftest*
8411 # SGI C++ compiler will create directory out/ii_files/ for
8412 # template instantiation
8413 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8414 $RM out/* && rmdir out
8415 cd ..
8416 $RM -r conftest
8417 $RM conftest*
8418
8419 fi
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8421 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8422
8423
8424
8425
8426 hard_links="nottested"
8427 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8428 # do not overwrite the value of need_locks provided by the user
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8430 $as_echo_n "checking if we can lock with hard links... " >&6; }
8431 hard_links=yes
8432 $RM conftest*
8433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8434 touch conftest.a
8435 ln conftest.a conftest.b 2>&5 || hard_links=no
8436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8438 $as_echo "$hard_links" >&6; }
8439 if test "$hard_links" = no; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8441 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8442 need_locks=warn
8443 fi
8444 else
8445 need_locks=no
8446 fi
8447
8448
8449
8450
8451
8452
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8454 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8455
8456 runpath_var=
8457 allow_undefined_flag=
8458 always_export_symbols=no
8459 archive_cmds=
8460 archive_expsym_cmds=
8461 compiler_needs_object=no
8462 enable_shared_with_static_runtimes=no
8463 export_dynamic_flag_spec=
8464 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8465 hardcode_automatic=no
8466 hardcode_direct=no
8467 hardcode_direct_absolute=no
8468 hardcode_libdir_flag_spec=
8469 hardcode_libdir_flag_spec_ld=
8470 hardcode_libdir_separator=
8471 hardcode_minus_L=no
8472 hardcode_shlibpath_var=unsupported
8473 inherit_rpath=no
8474 link_all_deplibs=unknown
8475 module_cmds=
8476 module_expsym_cmds=
8477 old_archive_from_new_cmds=
8478 old_archive_from_expsyms_cmds=
8479 thread_safe_flag_spec=
8480 whole_archive_flag_spec=
8481 # include_expsyms should be a list of space-separated symbols to be *always*
8482 # included in the symbol list
8483 include_expsyms=
8484 # exclude_expsyms can be an extended regexp of symbols to exclude
8485 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8486 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8487 # as well as any symbol that contains `d'.
8488 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8489 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8490 # platforms (ab)use it in PIC code, but their linkers get confused if
8491 # the symbol is explicitly referenced. Since portable code cannot
8492 # rely on this symbol name, it's probably fine to never include it in
8493 # preloaded symbol tables.
8494 # Exclude shared library initialization/finalization symbols.
8495 extract_expsyms_cmds=
8496
8497 case $host_os in
8498 cygwin* | mingw* | pw32* | cegcc*)
8499 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8500 # When not using gcc, we currently assume that we are using
8501 # Microsoft Visual C++.
8502 if test "$GCC" != yes; then
8503 with_gnu_ld=no
8504 fi
8505 ;;
8506 interix*)
8507 # we just hope/assume this is gcc and not c89 (= MSVC++)
8508 with_gnu_ld=yes
8509 ;;
8510 openbsd*)
8511 with_gnu_ld=no
8512 ;;
8513 esac
8514
8515 ld_shlibs=yes
8516
8517 # On some targets, GNU ld is compatible enough with the native linker
8518 # that we're better off using the native interface for both.
8519 lt_use_gnu_ld_interface=no
8520 if test "$with_gnu_ld" = yes; then
8521 case $host_os in
8522 aix*)
8523 # The AIX port of GNU ld has always aspired to compatibility
8524 # with the native linker. However, as the warning in the GNU ld
8525 # block says, versions before 2.19.5* couldn't really create working
8526 # shared libraries, regardless of the interface used.
8527 case `$LD -v 2>&1` in
8528 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8529 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8530 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8531 *)
8532 lt_use_gnu_ld_interface=yes
8533 ;;
8534 esac
8535 ;;
8536 *)
8537 lt_use_gnu_ld_interface=yes
8538 ;;
8539 esac
8540 fi
8541
8542 if test "$lt_use_gnu_ld_interface" = yes; then
8543 # If archive_cmds runs LD, not CC, wlarc should be empty
8544 wlarc='${wl}'
8545
8546 # Set some defaults for GNU ld with shared library support. These
8547 # are reset later if shared libraries are not supported. Putting them
8548 # here allows them to be overridden if necessary.
8549 runpath_var=LD_RUN_PATH
8550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8551 export_dynamic_flag_spec='${wl}--export-dynamic'
8552 # ancient GNU ld didn't support --whole-archive et. al.
8553 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8554 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8555 else
8556 whole_archive_flag_spec=
8557 fi
8558 supports_anon_versioning=no
8559 case `$LD -v 2>&1` in
8560 *GNU\ gold*) supports_anon_versioning=yes ;;
8561 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8562 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8563 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8564 *\ 2.11.*) ;; # other 2.11 versions
8565 *) supports_anon_versioning=yes ;;
8566 esac
8567
8568 # See if GNU ld supports shared libraries.
8569 case $host_os in
8570 aix[3-9]*)
8571 # On AIX/PPC, the GNU linker is very broken
8572 if test "$host_cpu" != ia64; then
8573 ld_shlibs=no
8574 cat <<_LT_EOF 1>&2
8575
8576 *** Warning: the GNU linker, at least up to release 2.19, is reported
8577 *** to be unable to reliably create shared libraries on AIX.
8578 *** Therefore, libtool is disabling shared libraries support. If you
8579 *** really care for shared libraries, you may want to install binutils
8580 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8581 *** You will then need to restart the configuration process.
8582
8583 _LT_EOF
8584 fi
8585 ;;
8586
8587 amigaos*)
8588 case $host_cpu in
8589 powerpc)
8590 # see comment about AmigaOS4 .so support
8591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592 archive_expsym_cmds=''
8593 ;;
8594 m68k)
8595 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)'
8596 hardcode_libdir_flag_spec='-L$libdir'
8597 hardcode_minus_L=yes
8598 ;;
8599 esac
8600 ;;
8601
8602 beos*)
8603 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8604 allow_undefined_flag=unsupported
8605 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8606 # support --undefined. This deserves some investigation. FIXME
8607 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8608 else
8609 ld_shlibs=no
8610 fi
8611 ;;
8612
8613 cygwin* | mingw* | pw32* | cegcc*)
8614 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8615 # as there is no search path for DLLs.
8616 hardcode_libdir_flag_spec='-L$libdir'
8617 export_dynamic_flag_spec='${wl}--export-all-symbols'
8618 allow_undefined_flag=unsupported
8619 always_export_symbols=no
8620 enable_shared_with_static_runtimes=yes
8621 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8622
8623 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8625 # If the export-symbols file already is a .def file (1st line
8626 # is EXPORTS), use it as is; otherwise, prepend...
8627 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8628 cp $export_symbols $output_objdir/$soname.def;
8629 else
8630 echo EXPORTS > $output_objdir/$soname.def;
8631 cat $export_symbols >> $output_objdir/$soname.def;
8632 fi~
8633 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8634 else
8635 ld_shlibs=no
8636 fi
8637 ;;
8638
8639 haiku*)
8640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8641 link_all_deplibs=yes
8642 ;;
8643
8644 interix[3-9]*)
8645 hardcode_direct=no
8646 hardcode_shlibpath_var=no
8647 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8648 export_dynamic_flag_spec='${wl}-E'
8649 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8650 # Instead, shared libraries are loaded at an image base (0x10000000 by
8651 # default) and relocated if they conflict, which is a slow very memory
8652 # consuming and fragmenting process. To avoid this, we pick a random,
8653 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8654 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8656 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'
8657 ;;
8658
8659 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8660 tmp_diet=no
8661 if test "$host_os" = linux-dietlibc; then
8662 case $cc_basename in
8663 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8664 esac
8665 fi
8666 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8667 && test "$tmp_diet" = no
8668 then
8669 tmp_addflag=
8670 tmp_sharedflag='-shared'
8671 case $cc_basename,$host_cpu in
8672 pgcc*) # Portland Group C compiler
8673 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'
8674 tmp_addflag=' $pic_flag'
8675 ;;
8676 pgf77* | pgf90* | pgf95* | pgfortran*)
8677 # Portland Group f77 and f90 compilers
8678 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'
8679 tmp_addflag=' $pic_flag -Mnomain' ;;
8680 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8681 tmp_addflag=' -i_dynamic' ;;
8682 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8683 tmp_addflag=' -i_dynamic -nofor_main' ;;
8684 ifc* | ifort*) # Intel Fortran compiler
8685 tmp_addflag=' -nofor_main' ;;
8686 lf95*) # Lahey Fortran 8.1
8687 whole_archive_flag_spec=
8688 tmp_sharedflag='--shared' ;;
8689 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8690 tmp_sharedflag='-qmkshrobj'
8691 tmp_addflag= ;;
8692 nvcc*) # Cuda Compiler Driver 2.2
8693 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'
8694 compiler_needs_object=yes
8695 ;;
8696 esac
8697 case `$CC -V 2>&1 | sed 5q` in
8698 *Sun\ C*) # Sun C 5.9
8699 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'
8700 compiler_needs_object=yes
8701 tmp_sharedflag='-G' ;;
8702 *Sun\ F*) # Sun Fortran 8.3
8703 tmp_sharedflag='-G' ;;
8704 esac
8705 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8706
8707 if test "x$supports_anon_versioning" = xyes; then
8708 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8709 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8710 echo "local: *; };" >> $output_objdir/$libname.ver~
8711 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8712 fi
8713
8714 case $cc_basename in
8715 xlf* | bgf* | bgxlf* | mpixlf*)
8716 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8717 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8718 hardcode_libdir_flag_spec=
8719 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8720 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8721 if test "x$supports_anon_versioning" = xyes; then
8722 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8723 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8724 echo "local: *; };" >> $output_objdir/$libname.ver~
8725 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8726 fi
8727 ;;
8728 esac
8729 else
8730 ld_shlibs=no
8731 fi
8732 ;;
8733
8734 netbsd*)
8735 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8736 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8737 wlarc=
8738 else
8739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8741 fi
8742 ;;
8743
8744 solaris*)
8745 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8746 ld_shlibs=no
8747 cat <<_LT_EOF 1>&2
8748
8749 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8750 *** create shared libraries on Solaris systems. Therefore, libtool
8751 *** is disabling shared libraries support. We urge you to upgrade GNU
8752 *** binutils to release 2.9.1 or newer. Another option is to modify
8753 *** your PATH or compiler configuration so that the native linker is
8754 *** used, and then restart.
8755
8756 _LT_EOF
8757 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760 else
8761 ld_shlibs=no
8762 fi
8763 ;;
8764
8765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8766 case `$LD -v 2>&1` in
8767 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8768 ld_shlibs=no
8769 cat <<_LT_EOF 1>&2
8770
8771 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8772 *** reliably create shared libraries on SCO systems. Therefore, libtool
8773 *** is disabling shared libraries support. We urge you to upgrade GNU
8774 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8775 *** your PATH or compiler configuration so that the native linker is
8776 *** used, and then restart.
8777
8778 _LT_EOF
8779 ;;
8780 *)
8781 # For security reasons, it is highly recommended that you always
8782 # use absolute paths for naming shared libraries, and exclude the
8783 # DT_RUNPATH tag from executables and libraries. But doing so
8784 # requires that you compile everything twice, which is a pain.
8785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8789 else
8790 ld_shlibs=no
8791 fi
8792 ;;
8793 esac
8794 ;;
8795
8796 sunos4*)
8797 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8798 wlarc=
8799 hardcode_direct=yes
8800 hardcode_shlibpath_var=no
8801 ;;
8802
8803 *)
8804 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8807 else
8808 ld_shlibs=no
8809 fi
8810 ;;
8811 esac
8812
8813 if test "$ld_shlibs" = no; then
8814 runpath_var=
8815 hardcode_libdir_flag_spec=
8816 export_dynamic_flag_spec=
8817 whole_archive_flag_spec=
8818 fi
8819 else
8820 # PORTME fill in a description of your system's linker (not GNU ld)
8821 case $host_os in
8822 aix3*)
8823 allow_undefined_flag=unsupported
8824 always_export_symbols=yes
8825 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'
8826 # Note: this linker hardcodes the directories in LIBPATH if there
8827 # are no directories specified by -L.
8828 hardcode_minus_L=yes
8829 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8830 # Neither direct hardcoding nor static linking is supported with a
8831 # broken collect2.
8832 hardcode_direct=unsupported
8833 fi
8834 ;;
8835
8836 aix[4-9]*)
8837 if test "$host_cpu" = ia64; then
8838 # On IA64, the linker does run time linking by default, so we don't
8839 # have to do anything special.
8840 aix_use_runtimelinking=no
8841 exp_sym_flag='-Bexport'
8842 no_entry_flag=""
8843 else
8844 # If we're using GNU nm, then we don't want the "-C" option.
8845 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8846 # Also, AIX nm treats weak defined symbols like other global
8847 # defined symbols, whereas GNU nm marks them as "W".
8848 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8849 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'
8850 else
8851 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'
8852 fi
8853 aix_use_runtimelinking=no
8854
8855 # Test if we are trying to use run time linking or normal
8856 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8857 # need to do runtime linking.
8858 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8859 for ld_flag in $LDFLAGS; do
8860 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8861 aix_use_runtimelinking=yes
8862 break
8863 fi
8864 done
8865 ;;
8866 esac
8867
8868 exp_sym_flag='-bexport'
8869 no_entry_flag='-bnoentry'
8870 fi
8871
8872 # When large executables or shared objects are built, AIX ld can
8873 # have problems creating the table of contents. If linking a library
8874 # or program results in "error TOC overflow" add -mminimal-toc to
8875 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8876 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8877
8878 archive_cmds=''
8879 hardcode_direct=yes
8880 hardcode_direct_absolute=yes
8881 hardcode_libdir_separator=':'
8882 link_all_deplibs=yes
8883 file_list_spec='${wl}-f,'
8884
8885 if test "$GCC" = yes; then
8886 case $host_os in aix4.[012]|aix4.[012].*)
8887 # We only want to do this on AIX 4.2 and lower, the check
8888 # below for broken collect2 doesn't work under 4.3+
8889 collect2name=`${CC} -print-prog-name=collect2`
8890 if test -f "$collect2name" &&
8891 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8892 then
8893 # We have reworked collect2
8894 :
8895 else
8896 # We have old collect2
8897 hardcode_direct=unsupported
8898 # It fails to find uninstalled libraries when the uninstalled
8899 # path is not listed in the libpath. Setting hardcode_minus_L
8900 # to unsupported forces relinking
8901 hardcode_minus_L=yes
8902 hardcode_libdir_flag_spec='-L$libdir'
8903 hardcode_libdir_separator=
8904 fi
8905 ;;
8906 esac
8907 shared_flag='-shared'
8908 if test "$aix_use_runtimelinking" = yes; then
8909 shared_flag="$shared_flag "'${wl}-G'
8910 fi
8911 else
8912 # not using gcc
8913 if test "$host_cpu" = ia64; then
8914 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8915 # chokes on -Wl,-G. The following line is correct:
8916 shared_flag='-G'
8917 else
8918 if test "$aix_use_runtimelinking" = yes; then
8919 shared_flag='${wl}-G'
8920 else
8921 shared_flag='${wl}-bM:SRE'
8922 fi
8923 fi
8924 fi
8925
8926 export_dynamic_flag_spec='${wl}-bexpall'
8927 # It seems that -bexpall does not export symbols beginning with
8928 # underscore (_), so it is better to generate a list of symbols to export.
8929 always_export_symbols=yes
8930 if test "$aix_use_runtimelinking" = yes; then
8931 # Warning - without using the other runtime loading flags (-brtl),
8932 # -berok will link without error, but may produce a broken library.
8933 allow_undefined_flag='-berok'
8934 # Determine the default libpath from the value encoded in an
8935 # empty executable.
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8938
8939 int
8940 main ()
8941 {
8942
8943 ;
8944 return 0;
8945 }
8946 _ACEOF
8947 if ac_fn_c_try_link "$LINENO"; then :
8948
8949 lt_aix_libpath_sed='
8950 /Import File Strings/,/^$/ {
8951 /^0/ {
8952 s/^0 *\(.*\)$/\1/
8953 p
8954 }
8955 }'
8956 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8957 # Check for a 64-bit object if we didn't find anything.
8958 if test -z "$aix_libpath"; then
8959 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8960 fi
8961 fi
8962 rm -f core conftest.err conftest.$ac_objext \
8963 conftest$ac_exeext conftest.$ac_ext
8964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8965
8966 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8967 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"
8968 else
8969 if test "$host_cpu" = ia64; then
8970 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8971 allow_undefined_flag="-z nodefs"
8972 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"
8973 else
8974 # Determine the default libpath from the value encoded in an
8975 # empty executable.
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978
8979 int
8980 main ()
8981 {
8982
8983 ;
8984 return 0;
8985 }
8986 _ACEOF
8987 if ac_fn_c_try_link "$LINENO"; then :
8988
8989 lt_aix_libpath_sed='
8990 /Import File Strings/,/^$/ {
8991 /^0/ {
8992 s/^0 *\(.*\)$/\1/
8993 p
8994 }
8995 }'
8996 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8997 # Check for a 64-bit object if we didn't find anything.
8998 if test -z "$aix_libpath"; then
8999 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9000 fi
9001 fi
9002 rm -f core conftest.err conftest.$ac_objext \
9003 conftest$ac_exeext conftest.$ac_ext
9004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9005
9006 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9007 # Warning - without using the other run time loading flags,
9008 # -berok will link without error, but may produce a broken library.
9009 no_undefined_flag=' ${wl}-bernotok'
9010 allow_undefined_flag=' ${wl}-berok'
9011 if test "$with_gnu_ld" = yes; then
9012 # We only use this code for GNU lds that support --whole-archive.
9013 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9014 else
9015 # Exported symbols can be pulled into shared objects from archives
9016 whole_archive_flag_spec='$convenience'
9017 fi
9018 archive_cmds_need_lc=yes
9019 # This is similar to how AIX traditionally builds its shared libraries.
9020 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'
9021 fi
9022 fi
9023 ;;
9024
9025 amigaos*)
9026 case $host_cpu in
9027 powerpc)
9028 # see comment about AmigaOS4 .so support
9029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030 archive_expsym_cmds=''
9031 ;;
9032 m68k)
9033 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)'
9034 hardcode_libdir_flag_spec='-L$libdir'
9035 hardcode_minus_L=yes
9036 ;;
9037 esac
9038 ;;
9039
9040 bsdi[45]*)
9041 export_dynamic_flag_spec=-rdynamic
9042 ;;
9043
9044 cygwin* | mingw* | pw32* | cegcc*)
9045 # When not using gcc, we currently assume that we are using
9046 # Microsoft Visual C++.
9047 # hardcode_libdir_flag_spec is actually meaningless, as there is
9048 # no search path for DLLs.
9049 hardcode_libdir_flag_spec=' '
9050 allow_undefined_flag=unsupported
9051 # Tell ltmain to make .lib files, not .a files.
9052 libext=lib
9053 # Tell ltmain to make .dll files, not .so files.
9054 shrext_cmds=".dll"
9055 # FIXME: Setting linknames here is a bad hack.
9056 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9057 # The linker will automatically build a .lib file if we build a DLL.
9058 old_archive_from_new_cmds='true'
9059 # FIXME: Should let the user specify the lib program.
9060 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9061 fix_srcfile_path='`cygpath -w "$srcfile"`'
9062 enable_shared_with_static_runtimes=yes
9063 ;;
9064
9065 darwin* | rhapsody*)
9066
9067
9068 archive_cmds_need_lc=no
9069 hardcode_direct=no
9070 hardcode_automatic=yes
9071 hardcode_shlibpath_var=unsupported
9072 if test "$lt_cv_ld_force_load" = "yes"; then
9073 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\"`'
9074 else
9075 whole_archive_flag_spec=''
9076 fi
9077 link_all_deplibs=yes
9078 allow_undefined_flag="$_lt_dar_allow_undefined"
9079 case $cc_basename in
9080 ifort*) _lt_dar_can_shared=yes ;;
9081 *) _lt_dar_can_shared=$GCC ;;
9082 esac
9083 if test "$_lt_dar_can_shared" = "yes"; then
9084 output_verbose_link_cmd=func_echo_all
9085 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9086 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9087 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}"
9088 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}"
9089
9090 else
9091 ld_shlibs=no
9092 fi
9093
9094 ;;
9095
9096 dgux*)
9097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9098 hardcode_libdir_flag_spec='-L$libdir'
9099 hardcode_shlibpath_var=no
9100 ;;
9101
9102 freebsd1*)
9103 ld_shlibs=no
9104 ;;
9105
9106 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9107 # support. Future versions do this automatically, but an explicit c++rt0.o
9108 # does not break anything, and helps significantly (at the cost of a little
9109 # extra space).
9110 freebsd2.2*)
9111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9112 hardcode_libdir_flag_spec='-R$libdir'
9113 hardcode_direct=yes
9114 hardcode_shlibpath_var=no
9115 ;;
9116
9117 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9118 freebsd2*)
9119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9120 hardcode_direct=yes
9121 hardcode_minus_L=yes
9122 hardcode_shlibpath_var=no
9123 ;;
9124
9125 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9126 freebsd* | dragonfly*)
9127 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9128 hardcode_libdir_flag_spec='-R$libdir'
9129 hardcode_direct=yes
9130 hardcode_shlibpath_var=no
9131 ;;
9132
9133 hpux9*)
9134 if test "$GCC" = yes; then
9135 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9136 else
9137 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'
9138 fi
9139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9140 hardcode_libdir_separator=:
9141 hardcode_direct=yes
9142
9143 # hardcode_minus_L: Not really in the search PATH,
9144 # but as the default location of the library.
9145 hardcode_minus_L=yes
9146 export_dynamic_flag_spec='${wl}-E'
9147 ;;
9148
9149 hpux10*)
9150 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9151 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9152 else
9153 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9154 fi
9155 if test "$with_gnu_ld" = no; then
9156 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9157 hardcode_libdir_flag_spec_ld='+b $libdir'
9158 hardcode_libdir_separator=:
9159 hardcode_direct=yes
9160 hardcode_direct_absolute=yes
9161 export_dynamic_flag_spec='${wl}-E'
9162 # hardcode_minus_L: Not really in the search PATH,
9163 # but as the default location of the library.
9164 hardcode_minus_L=yes
9165 fi
9166 ;;
9167
9168 hpux11*)
9169 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9170 case $host_cpu in
9171 hppa*64*)
9172 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9173 ;;
9174 ia64*)
9175 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9176 ;;
9177 *)
9178 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9179 ;;
9180 esac
9181 else
9182 case $host_cpu in
9183 hppa*64*)
9184 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9185 ;;
9186 ia64*)
9187 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9188 ;;
9189 *)
9190
9191 # Older versions of the 11.00 compiler do not understand -b yet
9192 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9194 $as_echo_n "checking if $CC understands -b... " >&6; }
9195 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 lt_cv_prog_compiler__b=no
9199 save_LDFLAGS="$LDFLAGS"
9200 LDFLAGS="$LDFLAGS -b"
9201 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9202 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9203 # The linker can only warn and ignore the option if not recognized
9204 # So say no if there are warnings
9205 if test -s conftest.err; then
9206 # Append any errors to the config.log.
9207 cat conftest.err 1>&5
9208 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9210 if diff conftest.exp conftest.er2 >/dev/null; then
9211 lt_cv_prog_compiler__b=yes
9212 fi
9213 else
9214 lt_cv_prog_compiler__b=yes
9215 fi
9216 fi
9217 $RM -r conftest*
9218 LDFLAGS="$save_LDFLAGS"
9219
9220 fi
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9222 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9223
9224 if test x"$lt_cv_prog_compiler__b" = xyes; then
9225 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9226 else
9227 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9228 fi
9229
9230 ;;
9231 esac
9232 fi
9233 if test "$with_gnu_ld" = no; then
9234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9235 hardcode_libdir_separator=:
9236
9237 case $host_cpu in
9238 hppa*64*|ia64*)
9239 hardcode_direct=no
9240 hardcode_shlibpath_var=no
9241 ;;
9242 *)
9243 hardcode_direct=yes
9244 hardcode_direct_absolute=yes
9245 export_dynamic_flag_spec='${wl}-E'
9246
9247 # hardcode_minus_L: Not really in the search PATH,
9248 # but as the default location of the library.
9249 hardcode_minus_L=yes
9250 ;;
9251 esac
9252 fi
9253 ;;
9254
9255 irix5* | irix6* | nonstopux*)
9256 if test "$GCC" = yes; then
9257 archive_cmds='$CC -shared $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'
9258 # Try to use the -exported_symbol ld option, if it does not
9259 # work, assume that -exports_file does not work either and
9260 # implicitly export all symbols.
9261 save_LDFLAGS="$LDFLAGS"
9262 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 int foo(void) {}
9266 _ACEOF
9267 if ac_fn_c_try_link "$LINENO"; then :
9268 archive_expsym_cmds='$CC -shared $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'
9269
9270 fi
9271 rm -f core conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273 LDFLAGS="$save_LDFLAGS"
9274 else
9275 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'
9276 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'
9277 fi
9278 archive_cmds_need_lc='no'
9279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9280 hardcode_libdir_separator=:
9281 inherit_rpath=yes
9282 link_all_deplibs=yes
9283 ;;
9284
9285 netbsd*)
9286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9288 else
9289 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9290 fi
9291 hardcode_libdir_flag_spec='-R$libdir'
9292 hardcode_direct=yes
9293 hardcode_shlibpath_var=no
9294 ;;
9295
9296 newsos6)
9297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9298 hardcode_direct=yes
9299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9300 hardcode_libdir_separator=:
9301 hardcode_shlibpath_var=no
9302 ;;
9303
9304 *nto* | *qnx*)
9305 ;;
9306
9307 openbsd*)
9308 if test -f /usr/libexec/ld.so; then
9309 hardcode_direct=yes
9310 hardcode_shlibpath_var=no
9311 hardcode_direct_absolute=yes
9312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9314 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9316 export_dynamic_flag_spec='${wl}-E'
9317 else
9318 case $host_os in
9319 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_libdir_flag_spec='-R$libdir'
9322 ;;
9323 *)
9324 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9326 ;;
9327 esac
9328 fi
9329 else
9330 ld_shlibs=no
9331 fi
9332 ;;
9333
9334 os2*)
9335 hardcode_libdir_flag_spec='-L$libdir'
9336 hardcode_minus_L=yes
9337 allow_undefined_flag=unsupported
9338 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'
9339 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9340 ;;
9341
9342 osf3*)
9343 if test "$GCC" = yes; then
9344 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9345 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'
9346 else
9347 allow_undefined_flag=' -expect_unresolved \*'
9348 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'
9349 fi
9350 archive_cmds_need_lc='no'
9351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9352 hardcode_libdir_separator=:
9353 ;;
9354
9355 osf4* | osf5*) # as osf3* with the addition of -msym flag
9356 if test "$GCC" = yes; then
9357 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9358 archive_cmds='$CC -shared${allow_undefined_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'
9359 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9360 else
9361 allow_undefined_flag=' -expect_unresolved \*'
9362 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'
9363 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~
9364 $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'
9365
9366 # Both c and cxx compiler support -rpath directly
9367 hardcode_libdir_flag_spec='-rpath $libdir'
9368 fi
9369 archive_cmds_need_lc='no'
9370 hardcode_libdir_separator=:
9371 ;;
9372
9373 solaris*)
9374 no_undefined_flag=' -z defs'
9375 if test "$GCC" = yes; then
9376 wlarc='${wl}'
9377 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9378 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9379 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9380 else
9381 case `$CC -V 2>&1` in
9382 *"Compilers 5.0"*)
9383 wlarc=''
9384 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9386 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9387 ;;
9388 *)
9389 wlarc='${wl}'
9390 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9392 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9393 ;;
9394 esac
9395 fi
9396 hardcode_libdir_flag_spec='-R$libdir'
9397 hardcode_shlibpath_var=no
9398 case $host_os in
9399 solaris2.[0-5] | solaris2.[0-5].*) ;;
9400 *)
9401 # The compiler driver will combine and reorder linker options,
9402 # but understands `-z linker_flag'. GCC discards it without `$wl',
9403 # but is careful enough not to reorder.
9404 # Supported since Solaris 2.6 (maybe 2.5.1?)
9405 if test "$GCC" = yes; then
9406 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9407 else
9408 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9409 fi
9410 ;;
9411 esac
9412 link_all_deplibs=yes
9413 ;;
9414
9415 sunos4*)
9416 if test "x$host_vendor" = xsequent; then
9417 # Use $CC to link under sequent, because it throws in some extra .o
9418 # files that make .init and .fini sections work.
9419 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9420 else
9421 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9422 fi
9423 hardcode_libdir_flag_spec='-L$libdir'
9424 hardcode_direct=yes
9425 hardcode_minus_L=yes
9426 hardcode_shlibpath_var=no
9427 ;;
9428
9429 sysv4)
9430 case $host_vendor in
9431 sni)
9432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9433 hardcode_direct=yes # is this really true???
9434 ;;
9435 siemens)
9436 ## LD is ld it makes a PLAMLIB
9437 ## CC just makes a GrossModule.
9438 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9439 reload_cmds='$CC -r -o $output$reload_objs'
9440 hardcode_direct=no
9441 ;;
9442 motorola)
9443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9444 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9445 ;;
9446 esac
9447 runpath_var='LD_RUN_PATH'
9448 hardcode_shlibpath_var=no
9449 ;;
9450
9451 sysv4.3*)
9452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9453 hardcode_shlibpath_var=no
9454 export_dynamic_flag_spec='-Bexport'
9455 ;;
9456
9457 sysv4*MP*)
9458 if test -d /usr/nec; then
9459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9460 hardcode_shlibpath_var=no
9461 runpath_var=LD_RUN_PATH
9462 hardcode_runpath_var=yes
9463 ld_shlibs=yes
9464 fi
9465 ;;
9466
9467 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9468 no_undefined_flag='${wl}-z,text'
9469 archive_cmds_need_lc=no
9470 hardcode_shlibpath_var=no
9471 runpath_var='LD_RUN_PATH'
9472
9473 if test "$GCC" = yes; then
9474 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9475 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9476 else
9477 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9478 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9479 fi
9480 ;;
9481
9482 sysv5* | sco3.2v5* | sco5v6*)
9483 # Note: We can NOT use -z defs as we might desire, because we do not
9484 # link with -lc, and that would cause any symbols used from libc to
9485 # always be unresolved, which means just about no library would
9486 # ever link correctly. If we're not using GNU ld we use -z text
9487 # though, which does catch some bad symbols but isn't as heavy-handed
9488 # as -z defs.
9489 no_undefined_flag='${wl}-z,text'
9490 allow_undefined_flag='${wl}-z,nodefs'
9491 archive_cmds_need_lc=no
9492 hardcode_shlibpath_var=no
9493 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9494 hardcode_libdir_separator=':'
9495 link_all_deplibs=yes
9496 export_dynamic_flag_spec='${wl}-Bexport'
9497 runpath_var='LD_RUN_PATH'
9498
9499 if test "$GCC" = yes; then
9500 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9501 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 else
9503 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9505 fi
9506 ;;
9507
9508 uts4*)
9509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9510 hardcode_libdir_flag_spec='-L$libdir'
9511 hardcode_shlibpath_var=no
9512 ;;
9513
9514 *)
9515 ld_shlibs=no
9516 ;;
9517 esac
9518
9519 if test x$host_vendor = xsni; then
9520 case $host in
9521 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9522 export_dynamic_flag_spec='${wl}-Blargedynsym'
9523 ;;
9524 esac
9525 fi
9526 fi
9527
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9529 $as_echo "$ld_shlibs" >&6; }
9530 test "$ld_shlibs" = no && can_build_shared=no
9531
9532 with_gnu_ld=$with_gnu_ld
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548 #
9549 # Do we need to explicitly link libc?
9550 #
9551 case "x$archive_cmds_need_lc" in
9552 x|xyes)
9553 # Assume -lc should be added
9554 archive_cmds_need_lc=yes
9555
9556 if test "$enable_shared" = yes && test "$GCC" = yes; then
9557 case $archive_cmds in
9558 *'~'*)
9559 # FIXME: we may have to deal with multi-command sequences.
9560 ;;
9561 '$CC '*)
9562 # Test whether the compiler implicitly links with -lc since on some
9563 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9564 # to ld, don't add -lc before -lgcc.
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9566 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9567 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 $RM conftest*
9571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9572
9573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9574 (eval $ac_compile) 2>&5
9575 ac_status=$?
9576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9577 test $ac_status = 0; } 2>conftest.err; then
9578 soname=conftest
9579 lib=conftest
9580 libobjs=conftest.$ac_objext
9581 deplibs=
9582 wl=$lt_prog_compiler_wl
9583 pic_flag=$lt_prog_compiler_pic
9584 compiler_flags=-v
9585 linker_flags=-v
9586 verstring=
9587 output_objdir=.
9588 libname=conftest
9589 lt_save_allow_undefined_flag=$allow_undefined_flag
9590 allow_undefined_flag=
9591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9592 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9593 ac_status=$?
9594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9595 test $ac_status = 0; }
9596 then
9597 lt_cv_archive_cmds_need_lc=no
9598 else
9599 lt_cv_archive_cmds_need_lc=yes
9600 fi
9601 allow_undefined_flag=$lt_save_allow_undefined_flag
9602 else
9603 cat conftest.err 1>&5
9604 fi
9605 $RM conftest*
9606
9607 fi
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9609 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9610 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9611 ;;
9612 esac
9613 fi
9614 ;;
9615 esac
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9774 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9775
9776 if test "$GCC" = yes; then
9777 case $host_os in
9778 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9779 *) lt_awk_arg="/^libraries:/" ;;
9780 esac
9781 case $host_os in
9782 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9783 *) lt_sed_strip_eq="s,=/,/,g" ;;
9784 esac
9785 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9786 case $lt_search_path_spec in
9787 *\;*)
9788 # if the path contains ";" then we assume it to be the separator
9789 # otherwise default to the standard path separator (i.e. ":") - it is
9790 # assumed that no part of a normal pathname contains ";" but that should
9791 # okay in the real world where ";" in dirpaths is itself problematic.
9792 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9793 ;;
9794 *)
9795 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9796 ;;
9797 esac
9798 # Ok, now we have the path, separated by spaces, we can step through it
9799 # and add multilib dir if necessary.
9800 lt_tmp_lt_search_path_spec=
9801 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9802 for lt_sys_path in $lt_search_path_spec; do
9803 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9804 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9805 else
9806 test -d "$lt_sys_path" && \
9807 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9808 fi
9809 done
9810 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9811 BEGIN {RS=" "; FS="/|\n";} {
9812 lt_foo="";
9813 lt_count=0;
9814 for (lt_i = NF; lt_i > 0; lt_i--) {
9815 if ($lt_i != "" && $lt_i != ".") {
9816 if ($lt_i == "..") {
9817 lt_count++;
9818 } else {
9819 if (lt_count == 0) {
9820 lt_foo="/" $lt_i lt_foo;
9821 } else {
9822 lt_count--;
9823 }
9824 }
9825 }
9826 }
9827 if (lt_foo != "") { lt_freq[lt_foo]++; }
9828 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9829 }'`
9830 # AWK program above erroneously prepends '/' to C:/dos/paths
9831 # for these hosts.
9832 case $host_os in
9833 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9834 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9835 esac
9836 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9837 else
9838 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9839 fi
9840 library_names_spec=
9841 libname_spec='lib$name'
9842 soname_spec=
9843 shrext_cmds=".so"
9844 postinstall_cmds=
9845 postuninstall_cmds=
9846 finish_cmds=
9847 finish_eval=
9848 shlibpath_var=
9849 shlibpath_overrides_runpath=unknown
9850 version_type=none
9851 dynamic_linker="$host_os ld.so"
9852 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9853 need_lib_prefix=unknown
9854 hardcode_into_libs=no
9855
9856 # when you set need_version to no, make sure it does not cause -set_version
9857 # flags to be left without arguments
9858 need_version=unknown
9859
9860 case $host_os in
9861 aix3*)
9862 version_type=linux
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9864 shlibpath_var=LIBPATH
9865
9866 # AIX 3 has no versioning support, so we append a major version to the name.
9867 soname_spec='${libname}${release}${shared_ext}$major'
9868 ;;
9869
9870 aix[4-9]*)
9871 version_type=linux
9872 need_lib_prefix=no
9873 need_version=no
9874 hardcode_into_libs=yes
9875 if test "$host_cpu" = ia64; then
9876 # AIX 5 supports IA64
9877 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9878 shlibpath_var=LD_LIBRARY_PATH
9879 else
9880 # With GCC up to 2.95.x, collect2 would create an import file
9881 # for dependence libraries. The import file would start with
9882 # the line `#! .'. This would cause the generated library to
9883 # depend on `.', always an invalid library. This was fixed in
9884 # development snapshots of GCC prior to 3.0.
9885 case $host_os in
9886 aix4 | aix4.[01] | aix4.[01].*)
9887 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9888 echo ' yes '
9889 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9890 :
9891 else
9892 can_build_shared=no
9893 fi
9894 ;;
9895 esac
9896 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9897 # soname into executable. Probably we can add versioning support to
9898 # collect2, so additional links can be useful in future.
9899 if test "$aix_use_runtimelinking" = yes; then
9900 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9901 # instead of lib<name>.a to let people know that these are not
9902 # typical AIX shared libraries.
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 else
9905 # We preserve .a as extension for shared libraries through AIX4.2
9906 # and later when we are not doing run time linking.
9907 library_names_spec='${libname}${release}.a $libname.a'
9908 soname_spec='${libname}${release}${shared_ext}$major'
9909 fi
9910 shlibpath_var=LIBPATH
9911 fi
9912 ;;
9913
9914 amigaos*)
9915 case $host_cpu in
9916 powerpc)
9917 # Since July 2007 AmigaOS4 officially supports .so libraries.
9918 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9920 ;;
9921 m68k)
9922 library_names_spec='$libname.ixlibrary $libname.a'
9923 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9924 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'
9925 ;;
9926 esac
9927 ;;
9928
9929 beos*)
9930 library_names_spec='${libname}${shared_ext}'
9931 dynamic_linker="$host_os ld.so"
9932 shlibpath_var=LIBRARY_PATH
9933 ;;
9934
9935 bsdi[45]*)
9936 version_type=linux
9937 need_version=no
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 soname_spec='${libname}${release}${shared_ext}$major'
9940 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9941 shlibpath_var=LD_LIBRARY_PATH
9942 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9943 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9944 # the default ld.so.conf also contains /usr/contrib/lib and
9945 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9946 # libtool to hard-code these into programs
9947 ;;
9948
9949 cygwin* | mingw* | pw32* | cegcc*)
9950 version_type=windows
9951 shrext_cmds=".dll"
9952 need_version=no
9953 need_lib_prefix=no
9954
9955 case $GCC,$host_os in
9956 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9957 library_names_spec='$libname.dll.a'
9958 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9959 postinstall_cmds='base_file=`basename \${file}`~
9960 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9961 dldir=$destdir/`dirname \$dlpath`~
9962 test -d \$dldir || mkdir -p \$dldir~
9963 $install_prog $dir/$dlname \$dldir/$dlname~
9964 chmod a+x \$dldir/$dlname~
9965 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9966 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9967 fi'
9968 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9969 dlpath=$dir/\$dldll~
9970 $RM \$dlpath'
9971 shlibpath_overrides_runpath=yes
9972
9973 case $host_os in
9974 cygwin*)
9975 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9976 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9977
9978 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9979 ;;
9980 mingw* | cegcc*)
9981 # MinGW DLLs use traditional 'lib' prefix
9982 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9983 ;;
9984 pw32*)
9985 # pw32 DLLs use 'pw' prefix rather than 'lib'
9986 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9987 ;;
9988 esac
9989 ;;
9990
9991 *)
9992 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9993 ;;
9994 esac
9995 dynamic_linker='Win32 ld.exe'
9996 # FIXME: first we should search . and the directory the executable is in
9997 shlibpath_var=PATH
9998 ;;
9999
10000 darwin* | rhapsody*)
10001 dynamic_linker="$host_os dyld"
10002 version_type=darwin
10003 need_lib_prefix=no
10004 need_version=no
10005 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10006 soname_spec='${libname}${release}${major}$shared_ext'
10007 shlibpath_overrides_runpath=yes
10008 shlibpath_var=DYLD_LIBRARY_PATH
10009 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10010
10011 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10012 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10013 ;;
10014
10015 dgux*)
10016 version_type=linux
10017 need_lib_prefix=no
10018 need_version=no
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 ;;
10023
10024 freebsd1*)
10025 dynamic_linker=no
10026 ;;
10027
10028 freebsd* | dragonfly*)
10029 # DragonFly does not have aout. When/if they implement a new
10030 # versioning mechanism, adjust this.
10031 if test -x /usr/bin/objformat; then
10032 objformat=`/usr/bin/objformat`
10033 else
10034 case $host_os in
10035 freebsd[123]*) objformat=aout ;;
10036 *) objformat=elf ;;
10037 esac
10038 fi
10039 version_type=freebsd-$objformat
10040 case $version_type in
10041 freebsd-elf*)
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10043 need_version=no
10044 need_lib_prefix=no
10045 ;;
10046 freebsd-*)
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10048 need_version=yes
10049 ;;
10050 esac
10051 shlibpath_var=LD_LIBRARY_PATH
10052 case $host_os in
10053 freebsd2*)
10054 shlibpath_overrides_runpath=yes
10055 ;;
10056 freebsd3.[01]* | freebsdelf3.[01]*)
10057 shlibpath_overrides_runpath=yes
10058 hardcode_into_libs=yes
10059 ;;
10060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10062 shlibpath_overrides_runpath=no
10063 hardcode_into_libs=yes
10064 ;;
10065 *) # from 4.6 on, and DragonFly
10066 shlibpath_overrides_runpath=yes
10067 hardcode_into_libs=yes
10068 ;;
10069 esac
10070 ;;
10071
10072 gnu*)
10073 version_type=linux
10074 need_lib_prefix=no
10075 need_version=no
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10077 soname_spec='${libname}${release}${shared_ext}$major'
10078 shlibpath_var=LD_LIBRARY_PATH
10079 hardcode_into_libs=yes
10080 ;;
10081
10082 haiku*)
10083 version_type=linux
10084 need_lib_prefix=no
10085 need_version=no
10086 dynamic_linker="$host_os runtime_loader"
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10088 soname_spec='${libname}${release}${shared_ext}$major'
10089 shlibpath_var=LIBRARY_PATH
10090 shlibpath_overrides_runpath=yes
10091 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10092 hardcode_into_libs=yes
10093 ;;
10094
10095 hpux9* | hpux10* | hpux11*)
10096 # Give a soname corresponding to the major version so that dld.sl refuses to
10097 # link against other versions.
10098 version_type=sunos
10099 need_lib_prefix=no
10100 need_version=no
10101 case $host_cpu in
10102 ia64*)
10103 shrext_cmds='.so'
10104 hardcode_into_libs=yes
10105 dynamic_linker="$host_os dld.so"
10106 shlibpath_var=LD_LIBRARY_PATH
10107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 if test "X$HPUX_IA64_MODE" = X32; then
10111 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10112 else
10113 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10114 fi
10115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10116 ;;
10117 hppa*64*)
10118 shrext_cmds='.sl'
10119 hardcode_into_libs=yes
10120 dynamic_linker="$host_os dld.sl"
10121 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10125 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10127 ;;
10128 *)
10129 shrext_cmds='.sl'
10130 dynamic_linker="$host_os dld.sl"
10131 shlibpath_var=SHLIB_PATH
10132 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 ;;
10136 esac
10137 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10138 postinstall_cmds='chmod 555 $lib'
10139 # or fails outright, so override atomically:
10140 install_override_mode=555
10141 ;;
10142
10143 interix[3-9]*)
10144 version_type=linux
10145 need_lib_prefix=no
10146 need_version=no
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10148 soname_spec='${libname}${release}${shared_ext}$major'
10149 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10150 shlibpath_var=LD_LIBRARY_PATH
10151 shlibpath_overrides_runpath=no
10152 hardcode_into_libs=yes
10153 ;;
10154
10155 irix5* | irix6* | nonstopux*)
10156 case $host_os in
10157 nonstopux*) version_type=nonstopux ;;
10158 *)
10159 if test "$lt_cv_prog_gnu_ld" = yes; then
10160 version_type=linux
10161 else
10162 version_type=irix
10163 fi ;;
10164 esac
10165 need_lib_prefix=no
10166 need_version=no
10167 soname_spec='${libname}${release}${shared_ext}$major'
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10169 case $host_os in
10170 irix5* | nonstopux*)
10171 libsuff= shlibsuff=
10172 ;;
10173 *)
10174 case $LD in # libtool.m4 will add one of these switches to LD
10175 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10176 libsuff= shlibsuff= libmagic=32-bit;;
10177 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10178 libsuff=32 shlibsuff=N32 libmagic=N32;;
10179 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10180 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10181 *) libsuff= shlibsuff= libmagic=never-match;;
10182 esac
10183 ;;
10184 esac
10185 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10186 shlibpath_overrides_runpath=no
10187 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10188 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10189 hardcode_into_libs=yes
10190 ;;
10191
10192 # No shared lib support for Linux oldld, aout, or coff.
10193 linux*oldld* | linux*aout* | linux*coff*)
10194 dynamic_linker=no
10195 ;;
10196
10197 # This must be Linux ELF.
10198 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10199 version_type=linux
10200 need_lib_prefix=no
10201 need_version=no
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10205 shlibpath_var=LD_LIBRARY_PATH
10206 shlibpath_overrides_runpath=no
10207
10208 # Some binutils ld are patched to set DT_RUNPATH
10209 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212 lt_cv_shlibpath_overrides_runpath=no
10213 save_LDFLAGS=$LDFLAGS
10214 save_libdir=$libdir
10215 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10216 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219
10220 int
10221 main ()
10222 {
10223
10224 ;
10225 return 0;
10226 }
10227 _ACEOF
10228 if ac_fn_c_try_link "$LINENO"; then :
10229 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10230 lt_cv_shlibpath_overrides_runpath=yes
10231 fi
10232 fi
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235 LDFLAGS=$save_LDFLAGS
10236 libdir=$save_libdir
10237
10238 fi
10239
10240 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10241
10242 # This implies no fast_install, which is unacceptable.
10243 # Some rework will be needed to allow for fast_install
10244 # before this can be enabled.
10245 hardcode_into_libs=yes
10246
10247 # Append ld.so.conf contents to the search path
10248 if test -f /etc/ld.so.conf; then
10249 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' ' '`
10250 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10251 fi
10252
10253 # We used to test for /lib/ld.so.1 and disable shared libraries on
10254 # powerpc, because MkLinux only supported shared libraries with the
10255 # GNU dynamic linker. Since this was broken with cross compilers,
10256 # most powerpc-linux boxes support dynamic linking these days and
10257 # people can always --disable-shared, the test was removed, and we
10258 # assume the GNU/Linux dynamic linker is in use.
10259 dynamic_linker='GNU/Linux ld.so'
10260 ;;
10261
10262 netbsd*)
10263 version_type=sunos
10264 need_lib_prefix=no
10265 need_version=no
10266 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10269 dynamic_linker='NetBSD (a.out) ld.so'
10270 else
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 dynamic_linker='NetBSD ld.elf_so'
10274 fi
10275 shlibpath_var=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath=yes
10277 hardcode_into_libs=yes
10278 ;;
10279
10280 newsos6)
10281 version_type=linux
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 shlibpath_overrides_runpath=yes
10285 ;;
10286
10287 *nto* | *qnx*)
10288 version_type=qnx
10289 need_lib_prefix=no
10290 need_version=no
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=no
10295 hardcode_into_libs=yes
10296 dynamic_linker='ldqnx.so'
10297 ;;
10298
10299 openbsd*)
10300 version_type=sunos
10301 sys_lib_dlsearch_path_spec="/usr/lib"
10302 need_lib_prefix=no
10303 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10304 case $host_os in
10305 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10306 *) need_version=no ;;
10307 esac
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10312 case $host_os in
10313 openbsd2.[89] | openbsd2.[89].*)
10314 shlibpath_overrides_runpath=no
10315 ;;
10316 *)
10317 shlibpath_overrides_runpath=yes
10318 ;;
10319 esac
10320 else
10321 shlibpath_overrides_runpath=yes
10322 fi
10323 ;;
10324
10325 os2*)
10326 libname_spec='$name'
10327 shrext_cmds=".dll"
10328 need_lib_prefix=no
10329 library_names_spec='$libname${shared_ext} $libname.a'
10330 dynamic_linker='OS/2 ld.exe'
10331 shlibpath_var=LIBPATH
10332 ;;
10333
10334 osf3* | osf4* | osf5*)
10335 version_type=osf
10336 need_lib_prefix=no
10337 need_version=no
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10343 ;;
10344
10345 rdos*)
10346 dynamic_linker=no
10347 ;;
10348
10349 solaris*)
10350 version_type=linux
10351 need_lib_prefix=no
10352 need_version=no
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 shlibpath_var=LD_LIBRARY_PATH
10356 shlibpath_overrides_runpath=yes
10357 hardcode_into_libs=yes
10358 # ldd complains unless libraries are executable
10359 postinstall_cmds='chmod +x $lib'
10360 ;;
10361
10362 sunos4*)
10363 version_type=sunos
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 shlibpath_overrides_runpath=yes
10368 if test "$with_gnu_ld" = yes; then
10369 need_lib_prefix=no
10370 fi
10371 need_version=yes
10372 ;;
10373
10374 sysv4 | sysv4.3*)
10375 version_type=linux
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 case $host_vendor in
10380 sni)
10381 shlibpath_overrides_runpath=no
10382 need_lib_prefix=no
10383 runpath_var=LD_RUN_PATH
10384 ;;
10385 siemens)
10386 need_lib_prefix=no
10387 ;;
10388 motorola)
10389 need_lib_prefix=no
10390 need_version=no
10391 shlibpath_overrides_runpath=no
10392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10393 ;;
10394 esac
10395 ;;
10396
10397 sysv4*MP*)
10398 if test -d /usr/nec ;then
10399 version_type=linux
10400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10401 soname_spec='$libname${shared_ext}.$major'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 fi
10404 ;;
10405
10406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10407 version_type=freebsd-elf
10408 need_lib_prefix=no
10409 need_version=no
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 shlibpath_var=LD_LIBRARY_PATH
10413 shlibpath_overrides_runpath=yes
10414 hardcode_into_libs=yes
10415 if test "$with_gnu_ld" = yes; then
10416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10417 else
10418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10419 case $host_os in
10420 sco3.2v5*)
10421 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10422 ;;
10423 esac
10424 fi
10425 sys_lib_dlsearch_path_spec='/usr/lib'
10426 ;;
10427
10428 tpf*)
10429 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10430 version_type=linux
10431 need_lib_prefix=no
10432 need_version=no
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 shlibpath_overrides_runpath=no
10436 hardcode_into_libs=yes
10437 ;;
10438
10439 uts4*)
10440 version_type=linux
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 shlibpath_var=LD_LIBRARY_PATH
10444 ;;
10445
10446 *)
10447 dynamic_linker=no
10448 ;;
10449 esac
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10451 $as_echo "$dynamic_linker" >&6; }
10452 test "$dynamic_linker" = no && can_build_shared=no
10453
10454 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10455 if test "$GCC" = yes; then
10456 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10457 fi
10458
10459 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10460 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10461 fi
10462 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10463 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10464 fi
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10558 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10559 hardcode_action=
10560 if test -n "$hardcode_libdir_flag_spec" ||
10561 test -n "$runpath_var" ||
10562 test "X$hardcode_automatic" = "Xyes" ; then
10563
10564 # We can hardcode non-existent directories.
10565 if test "$hardcode_direct" != no &&
10566 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10567 # have to relink, otherwise we might link with an installed library
10568 # when we should be linking with a yet-to-be-installed one
10569 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10570 test "$hardcode_minus_L" != no; then
10571 # Linking always hardcodes the temporary library directory.
10572 hardcode_action=relink
10573 else
10574 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10575 hardcode_action=immediate
10576 fi
10577 else
10578 # We cannot hardcode anything, or else we can only hardcode existing
10579 # directories.
10580 hardcode_action=unsupported
10581 fi
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10583 $as_echo "$hardcode_action" >&6; }
10584
10585 if test "$hardcode_action" = relink ||
10586 test "$inherit_rpath" = yes; then
10587 # Fast installation is not supported
10588 enable_fast_install=no
10589 elif test "$shlibpath_overrides_runpath" = yes ||
10590 test "$enable_shared" = no; then
10591 # Fast installation is not necessary
10592 enable_fast_install=needless
10593 fi
10594
10595
10596
10597
10598
10599
10600 if test "x$enable_dlopen" != xyes; then
10601 enable_dlopen=unknown
10602 enable_dlopen_self=unknown
10603 enable_dlopen_self_static=unknown
10604 else
10605 lt_cv_dlopen=no
10606 lt_cv_dlopen_libs=
10607
10608 case $host_os in
10609 beos*)
10610 lt_cv_dlopen="load_add_on"
10611 lt_cv_dlopen_libs=
10612 lt_cv_dlopen_self=yes
10613 ;;
10614
10615 mingw* | pw32* | cegcc*)
10616 lt_cv_dlopen="LoadLibrary"
10617 lt_cv_dlopen_libs=
10618 ;;
10619
10620 cygwin*)
10621 lt_cv_dlopen="dlopen"
10622 lt_cv_dlopen_libs=
10623 ;;
10624
10625 darwin*)
10626 # if libdl is installed we need to link against it
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10628 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10629 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10630 $as_echo_n "(cached) " >&6
10631 else
10632 ac_check_lib_save_LIBS=$LIBS
10633 LIBS="-ldl $LIBS"
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10636
10637 /* Override any GCC internal prototype to avoid an error.
10638 Use char because int might match the return type of a GCC
10639 builtin and then its argument prototype would still apply. */
10640 #ifdef __cplusplus
10641 extern "C"
10642 #endif
10643 char dlopen ();
10644 int
10645 main ()
10646 {
10647 return dlopen ();
10648 ;
10649 return 0;
10650 }
10651 _ACEOF
10652 if ac_fn_c_try_link "$LINENO"; then :
10653 ac_cv_lib_dl_dlopen=yes
10654 else
10655 ac_cv_lib_dl_dlopen=no
10656 fi
10657 rm -f core conftest.err conftest.$ac_objext \
10658 conftest$ac_exeext conftest.$ac_ext
10659 LIBS=$ac_check_lib_save_LIBS
10660 fi
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10662 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10663 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10664 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10665 else
10666
10667 lt_cv_dlopen="dyld"
10668 lt_cv_dlopen_libs=
10669 lt_cv_dlopen_self=yes
10670
10671 fi
10672
10673 ;;
10674
10675 *)
10676 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10677 if test "x$ac_cv_func_shl_load" = x""yes; then :
10678 lt_cv_dlopen="shl_load"
10679 else
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10681 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10682 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10683 $as_echo_n "(cached) " >&6
10684 else
10685 ac_check_lib_save_LIBS=$LIBS
10686 LIBS="-ldld $LIBS"
10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10689
10690 /* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10693 #ifdef __cplusplus
10694 extern "C"
10695 #endif
10696 char shl_load ();
10697 int
10698 main ()
10699 {
10700 return shl_load ();
10701 ;
10702 return 0;
10703 }
10704 _ACEOF
10705 if ac_fn_c_try_link "$LINENO"; then :
10706 ac_cv_lib_dld_shl_load=yes
10707 else
10708 ac_cv_lib_dld_shl_load=no
10709 fi
10710 rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 LIBS=$ac_check_lib_save_LIBS
10713 fi
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10715 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10716 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10717 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10718 else
10719 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10720 if test "x$ac_cv_func_dlopen" = x""yes; then :
10721 lt_cv_dlopen="dlopen"
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10724 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10725 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10726 $as_echo_n "(cached) " >&6
10727 else
10728 ac_check_lib_save_LIBS=$LIBS
10729 LIBS="-ldl $LIBS"
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732
10733 /* Override any GCC internal prototype to avoid an error.
10734 Use char because int might match the return type of a GCC
10735 builtin and then its argument prototype would still apply. */
10736 #ifdef __cplusplus
10737 extern "C"
10738 #endif
10739 char dlopen ();
10740 int
10741 main ()
10742 {
10743 return dlopen ();
10744 ;
10745 return 0;
10746 }
10747 _ACEOF
10748 if ac_fn_c_try_link "$LINENO"; then :
10749 ac_cv_lib_dl_dlopen=yes
10750 else
10751 ac_cv_lib_dl_dlopen=no
10752 fi
10753 rm -f core conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext conftest.$ac_ext
10755 LIBS=$ac_check_lib_save_LIBS
10756 fi
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10758 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10759 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10761 else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10763 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10764 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10765 $as_echo_n "(cached) " >&6
10766 else
10767 ac_check_lib_save_LIBS=$LIBS
10768 LIBS="-lsvld $LIBS"
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10771
10772 /* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10775 #ifdef __cplusplus
10776 extern "C"
10777 #endif
10778 char dlopen ();
10779 int
10780 main ()
10781 {
10782 return dlopen ();
10783 ;
10784 return 0;
10785 }
10786 _ACEOF
10787 if ac_fn_c_try_link "$LINENO"; then :
10788 ac_cv_lib_svld_dlopen=yes
10789 else
10790 ac_cv_lib_svld_dlopen=no
10791 fi
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 LIBS=$ac_check_lib_save_LIBS
10795 fi
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10797 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10798 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10800 else
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10802 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10803 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 ac_check_lib_save_LIBS=$LIBS
10807 LIBS="-ldld $LIBS"
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10810
10811 /* Override any GCC internal prototype to avoid an error.
10812 Use char because int might match the return type of a GCC
10813 builtin and then its argument prototype would still apply. */
10814 #ifdef __cplusplus
10815 extern "C"
10816 #endif
10817 char dld_link ();
10818 int
10819 main ()
10820 {
10821 return dld_link ();
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 if ac_fn_c_try_link "$LINENO"; then :
10827 ac_cv_lib_dld_dld_link=yes
10828 else
10829 ac_cv_lib_dld_dld_link=no
10830 fi
10831 rm -f core conftest.err conftest.$ac_objext \
10832 conftest$ac_exeext conftest.$ac_ext
10833 LIBS=$ac_check_lib_save_LIBS
10834 fi
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10836 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10837 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10838 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10839 fi
10840
10841
10842 fi
10843
10844
10845 fi
10846
10847
10848 fi
10849
10850
10851 fi
10852
10853
10854 fi
10855
10856 ;;
10857 esac
10858
10859 if test "x$lt_cv_dlopen" != xno; then
10860 enable_dlopen=yes
10861 else
10862 enable_dlopen=no
10863 fi
10864
10865 case $lt_cv_dlopen in
10866 dlopen)
10867 save_CPPFLAGS="$CPPFLAGS"
10868 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10869
10870 save_LDFLAGS="$LDFLAGS"
10871 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10872
10873 save_LIBS="$LIBS"
10874 LIBS="$lt_cv_dlopen_libs $LIBS"
10875
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10877 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10878 if test "${lt_cv_dlopen_self+set}" = set; then :
10879 $as_echo_n "(cached) " >&6
10880 else
10881 if test "$cross_compiling" = yes; then :
10882 lt_cv_dlopen_self=cross
10883 else
10884 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10885 lt_status=$lt_dlunknown
10886 cat > conftest.$ac_ext <<_LT_EOF
10887 #line $LINENO "configure"
10888 #include "confdefs.h"
10889
10890 #if HAVE_DLFCN_H
10891 #include <dlfcn.h>
10892 #endif
10893
10894 #include <stdio.h>
10895
10896 #ifdef RTLD_GLOBAL
10897 # define LT_DLGLOBAL RTLD_GLOBAL
10898 #else
10899 # ifdef DL_GLOBAL
10900 # define LT_DLGLOBAL DL_GLOBAL
10901 # else
10902 # define LT_DLGLOBAL 0
10903 # endif
10904 #endif
10905
10906 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10907 find out it does not work in some platform. */
10908 #ifndef LT_DLLAZY_OR_NOW
10909 # ifdef RTLD_LAZY
10910 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10911 # else
10912 # ifdef DL_LAZY
10913 # define LT_DLLAZY_OR_NOW DL_LAZY
10914 # else
10915 # ifdef RTLD_NOW
10916 # define LT_DLLAZY_OR_NOW RTLD_NOW
10917 # else
10918 # ifdef DL_NOW
10919 # define LT_DLLAZY_OR_NOW DL_NOW
10920 # else
10921 # define LT_DLLAZY_OR_NOW 0
10922 # endif
10923 # endif
10924 # endif
10925 # endif
10926 #endif
10927
10928 /* When -fvisbility=hidden is used, assume the code has been annotated
10929 correspondingly for the symbols needed. */
10930 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10931 void fnord () __attribute__((visibility("default")));
10932 #endif
10933
10934 void fnord () { int i=42; }
10935 int main ()
10936 {
10937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10938 int status = $lt_dlunknown;
10939
10940 if (self)
10941 {
10942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10943 else
10944 {
10945 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10946 else puts (dlerror ());
10947 }
10948 /* dlclose (self); */
10949 }
10950 else
10951 puts (dlerror ());
10952
10953 return status;
10954 }
10955 _LT_EOF
10956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10957 (eval $ac_link) 2>&5
10958 ac_status=$?
10959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10960 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10961 (./conftest; exit; ) >&5 2>/dev/null
10962 lt_status=$?
10963 case x$lt_status in
10964 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10965 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10966 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10967 esac
10968 else :
10969 # compilation failed
10970 lt_cv_dlopen_self=no
10971 fi
10972 fi
10973 rm -fr conftest*
10974
10975
10976 fi
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10978 $as_echo "$lt_cv_dlopen_self" >&6; }
10979
10980 if test "x$lt_cv_dlopen_self" = xyes; then
10981 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10983 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10984 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 if test "$cross_compiling" = yes; then :
10988 lt_cv_dlopen_self_static=cross
10989 else
10990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10991 lt_status=$lt_dlunknown
10992 cat > conftest.$ac_ext <<_LT_EOF
10993 #line $LINENO "configure"
10994 #include "confdefs.h"
10995
10996 #if HAVE_DLFCN_H
10997 #include <dlfcn.h>
10998 #endif
10999
11000 #include <stdio.h>
11001
11002 #ifdef RTLD_GLOBAL
11003 # define LT_DLGLOBAL RTLD_GLOBAL
11004 #else
11005 # ifdef DL_GLOBAL
11006 # define LT_DLGLOBAL DL_GLOBAL
11007 # else
11008 # define LT_DLGLOBAL 0
11009 # endif
11010 #endif
11011
11012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11013 find out it does not work in some platform. */
11014 #ifndef LT_DLLAZY_OR_NOW
11015 # ifdef RTLD_LAZY
11016 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11017 # else
11018 # ifdef DL_LAZY
11019 # define LT_DLLAZY_OR_NOW DL_LAZY
11020 # else
11021 # ifdef RTLD_NOW
11022 # define LT_DLLAZY_OR_NOW RTLD_NOW
11023 # else
11024 # ifdef DL_NOW
11025 # define LT_DLLAZY_OR_NOW DL_NOW
11026 # else
11027 # define LT_DLLAZY_OR_NOW 0
11028 # endif
11029 # endif
11030 # endif
11031 # endif
11032 #endif
11033
11034 /* When -fvisbility=hidden is used, assume the code has been annotated
11035 correspondingly for the symbols needed. */
11036 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11037 void fnord () __attribute__((visibility("default")));
11038 #endif
11039
11040 void fnord () { int i=42; }
11041 int main ()
11042 {
11043 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11044 int status = $lt_dlunknown;
11045
11046 if (self)
11047 {
11048 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11049 else
11050 {
11051 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11052 else puts (dlerror ());
11053 }
11054 /* dlclose (self); */
11055 }
11056 else
11057 puts (dlerror ());
11058
11059 return status;
11060 }
11061 _LT_EOF
11062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11063 (eval $ac_link) 2>&5
11064 ac_status=$?
11065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11067 (./conftest; exit; ) >&5 2>/dev/null
11068 lt_status=$?
11069 case x$lt_status in
11070 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11071 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11072 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11073 esac
11074 else :
11075 # compilation failed
11076 lt_cv_dlopen_self_static=no
11077 fi
11078 fi
11079 rm -fr conftest*
11080
11081
11082 fi
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11084 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11085 fi
11086
11087 CPPFLAGS="$save_CPPFLAGS"
11088 LDFLAGS="$save_LDFLAGS"
11089 LIBS="$save_LIBS"
11090 ;;
11091 esac
11092
11093 case $lt_cv_dlopen_self in
11094 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11095 *) enable_dlopen_self=unknown ;;
11096 esac
11097
11098 case $lt_cv_dlopen_self_static in
11099 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11100 *) enable_dlopen_self_static=unknown ;;
11101 esac
11102 fi
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120 striplib=
11121 old_striplib=
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11123 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11124 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11125 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11126 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11128 $as_echo "yes" >&6; }
11129 else
11130 # FIXME - insert some real tests, host_os isn't really good enough
11131 case $host_os in
11132 darwin*)
11133 if test -n "$STRIP" ; then
11134 striplib="$STRIP -x"
11135 old_striplib="$STRIP -S"
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11137 $as_echo "yes" >&6; }
11138 else
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140 $as_echo "no" >&6; }
11141 fi
11142 ;;
11143 *)
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11146 ;;
11147 esac
11148 fi
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161 # Report which library types will actually be built
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11163 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11165 $as_echo "$can_build_shared" >&6; }
11166
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11168 $as_echo_n "checking whether to build shared libraries... " >&6; }
11169 test "$can_build_shared" = "no" && enable_shared=no
11170
11171 # On AIX, shared libraries and static libraries use the same namespace, and
11172 # are all built from PIC.
11173 case $host_os in
11174 aix3*)
11175 test "$enable_shared" = yes && enable_static=no
11176 if test -n "$RANLIB"; then
11177 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11178 postinstall_cmds='$RANLIB $lib'
11179 fi
11180 ;;
11181
11182 aix[4-9]*)
11183 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11184 test "$enable_shared" = yes && enable_static=no
11185 fi
11186 ;;
11187 esac
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11189 $as_echo "$enable_shared" >&6; }
11190
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11192 $as_echo_n "checking whether to build static libraries... " >&6; }
11193 # Make sure either enable_shared or enable_static is yes.
11194 test "$enable_shared" = yes || enable_static=yes
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11196 $as_echo "$enable_static" >&6; }
11197
11198
11199
11200
11201 fi
11202 ac_ext=c
11203 ac_cpp='$CPP $CPPFLAGS'
11204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11207
11208 CC="$lt_save_CC"
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222 ac_config_commands="$ac_config_commands libtool"
11223
11224
11225
11226
11227 # Only expand once:
11228
11229
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11231 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11232 if test "${libltdl_cv_shlibext+set}" = set; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235
11236 module=yes
11237 eval libltdl_cv_shlibext=$shrext_cmds
11238
11239 fi
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11241 $as_echo "$libltdl_cv_shlibext" >&6; }
11242 if test -n "$libltdl_cv_shlibext"; then
11243
11244 cat >>confdefs.h <<_ACEOF
11245 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11246 _ACEOF
11247
11248 fi
11249
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11251 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11252 if test "${lt_cv_module_path_var+set}" = set; then :
11253 $as_echo_n "(cached) " >&6
11254 else
11255 lt_cv_module_path_var="$shlibpath_var"
11256 fi
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11258 $as_echo "$lt_cv_module_path_var" >&6; }
11259 if test -n "$lt_cv_module_path_var"; then
11260
11261 cat >>confdefs.h <<_ACEOF
11262 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11263 _ACEOF
11264
11265 fi
11266
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11268 $as_echo_n "checking for the default library search path... " >&6; }
11269 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
11270 $as_echo_n "(cached) " >&6
11271 else
11272 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11273 fi
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11275 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11276 if test -n "$lt_cv_sys_dlsearch_path"; then
11277 sys_dlsearch_path=
11278 for dir in $lt_cv_sys_dlsearch_path; do
11279 if test -z "$sys_dlsearch_path"; then
11280 sys_dlsearch_path="$dir"
11281 else
11282 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11283 fi
11284 done
11285
11286 cat >>confdefs.h <<_ACEOF
11287 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11288 _ACEOF
11289
11290 fi
11291
11292
11293 LT_DLLOADERS=
11294
11295
11296 ac_ext=c
11297 ac_cpp='$CPP $CPPFLAGS'
11298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11301
11302
11303 LIBADD_DLOPEN=
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11305 $as_echo_n "checking for library containing dlopen... " >&6; }
11306 if test "${ac_cv_search_dlopen+set}" = set; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 ac_func_search_save_LIBS=$LIBS
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11312
11313 /* Override any GCC internal prototype to avoid an error.
11314 Use char because int might match the return type of a GCC
11315 builtin and then its argument prototype would still apply. */
11316 #ifdef __cplusplus
11317 extern "C"
11318 #endif
11319 char dlopen ();
11320 int
11321 main ()
11322 {
11323 return dlopen ();
11324 ;
11325 return 0;
11326 }
11327 _ACEOF
11328 for ac_lib in '' dl; do
11329 if test -z "$ac_lib"; then
11330 ac_res="none required"
11331 else
11332 ac_res=-l$ac_lib
11333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11334 fi
11335 if ac_fn_c_try_link "$LINENO"; then :
11336 ac_cv_search_dlopen=$ac_res
11337 fi
11338 rm -f core conftest.err conftest.$ac_objext \
11339 conftest$ac_exeext
11340 if test "${ac_cv_search_dlopen+set}" = set; then :
11341 break
11342 fi
11343 done
11344 if test "${ac_cv_search_dlopen+set}" = set; then :
11345
11346 else
11347 ac_cv_search_dlopen=no
11348 fi
11349 rm conftest.$ac_ext
11350 LIBS=$ac_func_search_save_LIBS
11351 fi
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11353 $as_echo "$ac_cv_search_dlopen" >&6; }
11354 ac_res=$ac_cv_search_dlopen
11355 if test "$ac_res" != no; then :
11356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11357
11358 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11359
11360 if test "$ac_cv_search_dlopen" != "none required" ; then
11361 LIBADD_DLOPEN="-ldl"
11362 fi
11363 libltdl_cv_lib_dl_dlopen="yes"
11364 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11365 else
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11368 #if HAVE_DLFCN_H
11369 # include <dlfcn.h>
11370 #endif
11371
11372 int
11373 main ()
11374 {
11375 dlopen(0, 0);
11376 ;
11377 return 0;
11378 }
11379 _ACEOF
11380 if ac_fn_c_try_link "$LINENO"; then :
11381
11382 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11383
11384 libltdl_cv_func_dlopen="yes"
11385 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11386 else
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11388 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11389 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392 ac_check_lib_save_LIBS=$LIBS
11393 LIBS="-lsvld $LIBS"
11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11396
11397 /* Override any GCC internal prototype to avoid an error.
11398 Use char because int might match the return type of a GCC
11399 builtin and then its argument prototype would still apply. */
11400 #ifdef __cplusplus
11401 extern "C"
11402 #endif
11403 char dlopen ();
11404 int
11405 main ()
11406 {
11407 return dlopen ();
11408 ;
11409 return 0;
11410 }
11411 _ACEOF
11412 if ac_fn_c_try_link "$LINENO"; then :
11413 ac_cv_lib_svld_dlopen=yes
11414 else
11415 ac_cv_lib_svld_dlopen=no
11416 fi
11417 rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419 LIBS=$ac_check_lib_save_LIBS
11420 fi
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11422 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11423 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11424
11425 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11426
11427 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11428 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11429 fi
11430
11431 fi
11432 rm -f core conftest.err conftest.$ac_objext \
11433 conftest$ac_exeext conftest.$ac_ext
11434 fi
11435
11436 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11437 then
11438 lt_save_LIBS="$LIBS"
11439 LIBS="$LIBS $LIBADD_DLOPEN"
11440 for ac_func in dlerror
11441 do :
11442 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11443 if test "x$ac_cv_func_dlerror" = x""yes; then :
11444 cat >>confdefs.h <<_ACEOF
11445 #define HAVE_DLERROR 1
11446 _ACEOF
11447
11448 fi
11449 done
11450
11451 LIBS="$lt_save_LIBS"
11452 fi
11453
11454
11455 LIBADD_SHL_LOAD=
11456 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11457 if test "x$ac_cv_func_shl_load" = x""yes; then :
11458
11459 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11460
11461 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11462 else
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11464 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11465 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11466 $as_echo_n "(cached) " >&6
11467 else
11468 ac_check_lib_save_LIBS=$LIBS
11469 LIBS="-ldld $LIBS"
11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11472
11473 /* Override any GCC internal prototype to avoid an error.
11474 Use char because int might match the return type of a GCC
11475 builtin and then its argument prototype would still apply. */
11476 #ifdef __cplusplus
11477 extern "C"
11478 #endif
11479 char shl_load ();
11480 int
11481 main ()
11482 {
11483 return shl_load ();
11484 ;
11485 return 0;
11486 }
11487 _ACEOF
11488 if ac_fn_c_try_link "$LINENO"; then :
11489 ac_cv_lib_dld_shl_load=yes
11490 else
11491 ac_cv_lib_dld_shl_load=no
11492 fi
11493 rm -f core conftest.err conftest.$ac_objext \
11494 conftest$ac_exeext conftest.$ac_ext
11495 LIBS=$ac_check_lib_save_LIBS
11496 fi
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11498 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11499 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11500
11501 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11502
11503 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11504 LIBADD_SHL_LOAD="-ldld"
11505 fi
11506
11507 fi
11508
11509
11510
11511 case $host_os in
11512 darwin[1567].*)
11513 # We only want this for pre-Mac OS X 10.4.
11514 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11515 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
11516
11517 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11518
11519 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11520 fi
11521
11522 ;;
11523 beos*)
11524 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11525 ;;
11526 cygwin* | mingw* | os2* | pw32*)
11527 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11528 "
11529 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
11530 ac_have_decl=1
11531 else
11532 ac_have_decl=0
11533 fi
11534
11535 cat >>confdefs.h <<_ACEOF
11536 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11537 _ACEOF
11538
11539 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11540 ;;
11541 esac
11542
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11544 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11545 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11546 $as_echo_n "(cached) " >&6
11547 else
11548 ac_check_lib_save_LIBS=$LIBS
11549 LIBS="-ldld $LIBS"
11550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551 /* end confdefs.h. */
11552
11553 /* Override any GCC internal prototype to avoid an error.
11554 Use char because int might match the return type of a GCC
11555 builtin and then its argument prototype would still apply. */
11556 #ifdef __cplusplus
11557 extern "C"
11558 #endif
11559 char dld_link ();
11560 int
11561 main ()
11562 {
11563 return dld_link ();
11564 ;
11565 return 0;
11566 }
11567 _ACEOF
11568 if ac_fn_c_try_link "$LINENO"; then :
11569 ac_cv_lib_dld_dld_link=yes
11570 else
11571 ac_cv_lib_dld_dld_link=no
11572 fi
11573 rm -f core conftest.err conftest.$ac_objext \
11574 conftest$ac_exeext conftest.$ac_ext
11575 LIBS=$ac_check_lib_save_LIBS
11576 fi
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11578 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11579 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11580
11581 $as_echo "#define HAVE_DLD 1" >>confdefs.h
11582
11583 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11584 fi
11585
11586
11587
11588
11589 LT_DLPREOPEN=
11590 if test -n "$LT_DLLOADERS"
11591 then
11592 for lt_loader in $LT_DLLOADERS; do
11593 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11594 done
11595
11596 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11597
11598 fi
11599
11600
11601 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11602
11603
11604 ac_ext=c
11605 ac_cpp='$CPP $CPPFLAGS'
11606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11609
11610
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11612 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11613 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 lt_cv_sys_symbol_underscore=no
11617 cat > conftest.$ac_ext <<_LT_EOF
11618 void nm_test_func(){}
11619 int main(){nm_test_func;return 0;}
11620 _LT_EOF
11621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11622 (eval $ac_compile) 2>&5
11623 ac_status=$?
11624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11625 test $ac_status = 0; }; then
11626 # Now try to grab the symbols.
11627 ac_nlist=conftest.nm
11628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11629 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11630 ac_status=$?
11631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11632 test $ac_status = 0; } && test -s "$ac_nlist"; then
11633 # See whether the symbols have a leading underscore.
11634 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11635 lt_cv_sys_symbol_underscore=yes
11636 else
11637 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11638 :
11639 else
11640 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11641 fi
11642 fi
11643 else
11644 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11645 fi
11646 else
11647 echo "configure: failed program was:" >&5
11648 cat conftest.c >&5
11649 fi
11650 rm -rf conftest*
11651
11652 fi
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11654 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11655 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11656
11657
11658 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11659 if test x"$libltdl_cv_func_dlopen" = xyes ||
11660 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11662 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11663 if test "${libltdl_cv_need_uscore+set}" = set; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 libltdl_cv_need_uscore=unknown
11667 save_LIBS="$LIBS"
11668 LIBS="$LIBS $LIBADD_DLOPEN"
11669 if test "$cross_compiling" = yes; then :
11670 libltdl_cv_need_uscore=cross
11671 else
11672 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11673 lt_status=$lt_dlunknown
11674 cat > conftest.$ac_ext <<_LT_EOF
11675 #line $LINENO "configure"
11676 #include "confdefs.h"
11677
11678 #if HAVE_DLFCN_H
11679 #include <dlfcn.h>
11680 #endif
11681
11682 #include <stdio.h>
11683
11684 #ifdef RTLD_GLOBAL
11685 # define LT_DLGLOBAL RTLD_GLOBAL
11686 #else
11687 # ifdef DL_GLOBAL
11688 # define LT_DLGLOBAL DL_GLOBAL
11689 # else
11690 # define LT_DLGLOBAL 0
11691 # endif
11692 #endif
11693
11694 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11695 find out it does not work in some platform. */
11696 #ifndef LT_DLLAZY_OR_NOW
11697 # ifdef RTLD_LAZY
11698 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11699 # else
11700 # ifdef DL_LAZY
11701 # define LT_DLLAZY_OR_NOW DL_LAZY
11702 # else
11703 # ifdef RTLD_NOW
11704 # define LT_DLLAZY_OR_NOW RTLD_NOW
11705 # else
11706 # ifdef DL_NOW
11707 # define LT_DLLAZY_OR_NOW DL_NOW
11708 # else
11709 # define LT_DLLAZY_OR_NOW 0
11710 # endif
11711 # endif
11712 # endif
11713 # endif
11714 #endif
11715
11716 /* When -fvisbility=hidden is used, assume the code has been annotated
11717 correspondingly for the symbols needed. */
11718 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11719 void fnord () __attribute__((visibility("default")));
11720 #endif
11721
11722 void fnord () { int i=42; }
11723 int main ()
11724 {
11725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11726 int status = $lt_dlunknown;
11727
11728 if (self)
11729 {
11730 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11731 else
11732 {
11733 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11734 else puts (dlerror ());
11735 }
11736 /* dlclose (self); */
11737 }
11738 else
11739 puts (dlerror ());
11740
11741 return status;
11742 }
11743 _LT_EOF
11744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11745 (eval $ac_link) 2>&5
11746 ac_status=$?
11747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11748 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11749 (./conftest; exit; ) >&5 2>/dev/null
11750 lt_status=$?
11751 case x$lt_status in
11752 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11753 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11754 x$lt_dlunknown|x*) ;;
11755 esac
11756 else :
11757 # compilation failed
11758
11759 fi
11760 fi
11761 rm -fr conftest*
11762
11763 LIBS="$save_LIBS"
11764
11765 fi
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11767 $as_echo "$libltdl_cv_need_uscore" >&6; }
11768 fi
11769 fi
11770
11771 if test x"$libltdl_cv_need_uscore" = xyes; then
11772
11773 $as_echo "#define NEED_USCORE 1" >>confdefs.h
11774
11775 fi
11776
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11778 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11779 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 # PORTME does your system automatically load deplibs for dlopen?
11783 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11784 # For now, we just catch OSes we know something about -- in the
11785 # future, we'll try test this programmatically.
11786 lt_cv_sys_dlopen_deplibs=unknown
11787 case $host_os in
11788 aix3*|aix4.1.*|aix4.2.*)
11789 # Unknown whether this is true for these versions of AIX, but
11790 # we want this `case' here to explicitly catch those versions.
11791 lt_cv_sys_dlopen_deplibs=unknown
11792 ;;
11793 aix[4-9]*)
11794 lt_cv_sys_dlopen_deplibs=yes
11795 ;;
11796 amigaos*)
11797 case $host_cpu in
11798 powerpc)
11799 lt_cv_sys_dlopen_deplibs=no
11800 ;;
11801 esac
11802 ;;
11803 darwin*)
11804 # Assuming the user has installed a libdl from somewhere, this is true
11805 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11806 lt_cv_sys_dlopen_deplibs=yes
11807 ;;
11808 freebsd* | dragonfly*)
11809 lt_cv_sys_dlopen_deplibs=yes
11810 ;;
11811 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
11812 # GNU and its variants, using gnu ld.so (Glibc)
11813 lt_cv_sys_dlopen_deplibs=yes
11814 ;;
11815 hpux10*|hpux11*)
11816 lt_cv_sys_dlopen_deplibs=yes
11817 ;;
11818 interix*)
11819 lt_cv_sys_dlopen_deplibs=yes
11820 ;;
11821 irix[12345]*|irix6.[01]*)
11822 # Catch all versions of IRIX before 6.2, and indicate that we don't
11823 # know how it worked for any of those versions.
11824 lt_cv_sys_dlopen_deplibs=unknown
11825 ;;
11826 irix*)
11827 # The case above catches anything before 6.2, and it's known that
11828 # at 6.2 and later dlopen does load deplibs.
11829 lt_cv_sys_dlopen_deplibs=yes
11830 ;;
11831 netbsd*)
11832 lt_cv_sys_dlopen_deplibs=yes
11833 ;;
11834 openbsd*)
11835 lt_cv_sys_dlopen_deplibs=yes
11836 ;;
11837 osf[1234]*)
11838 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11839 # it did *not* use an RPATH in a shared library to find objects the
11840 # library depends on, so we explicitly say `no'.
11841 lt_cv_sys_dlopen_deplibs=no
11842 ;;
11843 osf5.0|osf5.0a|osf5.1)
11844 # dlopen *does* load deplibs and with the right loader patch applied
11845 # it even uses RPATH in a shared library to search for shared objects
11846 # that the library depends on, but there's no easy way to know if that
11847 # patch is installed. Since this is the case, all we can really
11848 # say is unknown -- it depends on the patch being installed. If
11849 # it is, this changes to `yes'. Without it, it would be `no'.
11850 lt_cv_sys_dlopen_deplibs=unknown
11851 ;;
11852 osf*)
11853 # the two cases above should catch all versions of osf <= 5.1. Read
11854 # the comments above for what we know about them.
11855 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11856 # is used to find them so we can finally say `yes'.
11857 lt_cv_sys_dlopen_deplibs=yes
11858 ;;
11859 qnx*)
11860 lt_cv_sys_dlopen_deplibs=yes
11861 ;;
11862 solaris*)
11863 lt_cv_sys_dlopen_deplibs=yes
11864 ;;
11865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11866 libltdl_cv_sys_dlopen_deplibs=yes
11867 ;;
11868 esac
11869
11870 fi
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11872 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11873 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11874
11875 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11876
11877 fi
11878
11879 :
11880
11881 for ac_header in argz.h
11882 do :
11883 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11884 "
11885 if test "x$ac_cv_header_argz_h" = x""yes; then :
11886 cat >>confdefs.h <<_ACEOF
11887 #define HAVE_ARGZ_H 1
11888 _ACEOF
11889
11890 fi
11891
11892 done
11893
11894
11895 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11896 # include <argz.h>
11897 #endif
11898 "
11899 if test "x$ac_cv_type_error_t" = x""yes; then :
11900
11901 cat >>confdefs.h <<_ACEOF
11902 #define HAVE_ERROR_T 1
11903 _ACEOF
11904
11905
11906 else
11907
11908 $as_echo "#define error_t int" >>confdefs.h
11909
11910
11911 $as_echo "#define __error_t_defined 1" >>confdefs.h
11912
11913 fi
11914
11915
11916 ARGZ_H=
11917 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11918 argz_next argz_stringify
11919 do :
11920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11921 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11922 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11923 cat >>confdefs.h <<_ACEOF
11924 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11925 _ACEOF
11926
11927 else
11928 ARGZ_H=argz.h;
11929
11930 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11931
11932 fi
11933 done
11934
11935
11936 if test -z "$ARGZ_H"; then :
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11938 $as_echo_n "checking if argz actually works... " >&6; }
11939 if test "${lt_cv_sys_argz_works+set}" = set; then :
11940 $as_echo_n "(cached) " >&6
11941 else
11942 case $host_os in #(
11943 *cygwin*)
11944 lt_cv_sys_argz_works=no
11945 if test "$cross_compiling" != no; then
11946 lt_cv_sys_argz_works="guessing no"
11947 else
11948 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11949 save_IFS=$IFS
11950 IFS=-.
11951 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11952 IFS=$save_IFS
11953 lt_os_major=${2-0}
11954 lt_os_minor=${3-0}
11955 lt_os_micro=${4-0}
11956 if test "$lt_os_major" -gt 1 \
11957 || { test "$lt_os_major" -eq 1 \
11958 && { test "$lt_os_minor" -gt 5 \
11959 || { test "$lt_os_minor" -eq 5 \
11960 && test "$lt_os_micro" -gt 24; }; }; }; then
11961 lt_cv_sys_argz_works=yes
11962 fi
11963 fi
11964 ;; #(
11965 *) lt_cv_sys_argz_works=yes ;;
11966 esac
11967 fi
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11969 $as_echo "$lt_cv_sys_argz_works" >&6; }
11970 if test $lt_cv_sys_argz_works = yes; then :
11971
11972 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11973
11974 else
11975 ARGZ_H=argz.h
11976
11977
11978 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11979
11980 fi
11981 fi
11982
11983
11984
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11986 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11987 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 if test -n "$lt_cv_sys_global_symbol_pipe"; then
11991 libltdl_cv_preloaded_symbols=yes
11992 else
11993 libltdl_cv_preloaded_symbols=no
11994 fi
11995
11996 fi
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11998 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11999 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12000
12001 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12002
12003 fi
12004
12005 # Set options
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017 # Check whether --with-included_ltdl was given.
12018 if test "${with_included_ltdl+set}" = set; then :
12019 withval=$with_included_ltdl;
12020 fi
12021
12022
12023 if test "x$with_included_ltdl" != xyes; then
12024 # We are not being forced to use the included libltdl sources, so
12025 # decide whether there is a useful installed version we can use.
12026 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12027
12028 "
12029 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
12030 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12031 #include <ltdl.h>
12032 "
12033 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12035 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12036 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 ac_check_lib_save_LIBS=$LIBS
12040 LIBS="-lltdl $LIBS"
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 char lt_dladvise_preload ();
12051 int
12052 main ()
12053 {
12054 return lt_dladvise_preload ();
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 if ac_fn_c_try_link "$LINENO"; then :
12060 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12061 else
12062 ac_cv_lib_ltdl_lt_dladvise_preload=no
12063 fi
12064 rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12066 LIBS=$ac_check_lib_save_LIBS
12067 fi
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12069 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12070 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
12071 with_included_ltdl=no
12072 else
12073 with_included_ltdl=yes
12074 fi
12075
12076 else
12077 with_included_ltdl=yes
12078 fi
12079
12080 else
12081 with_included_ltdl=yes
12082 fi
12083
12084
12085 fi
12086
12087
12088
12089
12090 # Check whether --with-ltdl_include was given.
12091 if test "${with_ltdl_include+set}" = set; then :
12092 withval=$with_ltdl_include;
12093 fi
12094
12095
12096 if test -n "$with_ltdl_include"; then
12097 if test -f "$with_ltdl_include/ltdl.h"; then :
12098 else
12099 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12100 fi
12101 else
12102 with_ltdl_include=no
12103 fi
12104
12105
12106 # Check whether --with-ltdl_lib was given.
12107 if test "${with_ltdl_lib+set}" = set; then :
12108 withval=$with_ltdl_lib;
12109 fi
12110
12111
12112 if test -n "$with_ltdl_lib"; then
12113 if test -f "$with_ltdl_lib/libltdl.la"; then :
12114 else
12115 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12116 fi
12117 else
12118 with_ltdl_lib=no
12119 fi
12120
12121 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12122 ,yes,no,no,)
12123 case $enable_ltdl_convenience in
12124 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12125 "") enable_ltdl_convenience=yes
12126 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12127 esac
12128 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12129 LTDLDEPS=$LIBLTDL
12130 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12131
12132
12133
12134
12135
12136 # For backwards non-gettext consistent compatibility...
12137 INCLTDL="$LTDLINCL"
12138
12139
12140 ;;
12141 ,no,no,no,)
12142 # If the included ltdl is not to be used, then use the
12143 # preinstalled libltdl we found.
12144
12145 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12146
12147 LIBLTDL=-lltdl
12148 LTDLDEPS=
12149 LTDLINCL=
12150 ;;
12151 ,no*,no,*)
12152 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12153 ;;
12154 *) with_included_ltdl=no
12155 LIBLTDL="-L$with_ltdl_lib -lltdl"
12156 LTDLDEPS=
12157 LTDLINCL="-I$with_ltdl_include"
12158 ;;
12159 esac
12160 INCLTDL="$LTDLINCL"
12161
12162 # Report our decision...
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12164 $as_echo_n "checking where to find libltdl headers... " >&6; }
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12166 $as_echo "$LTDLINCL" >&6; }
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12168 $as_echo_n "checking where to find libltdl library... " >&6; }
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12170 $as_echo "$LIBLTDL" >&6; }
12171
12172
12173
12174 # Check whether --enable-ltdl-install was given.
12175 if test "${enable_ltdl_install+set}" = set; then :
12176 enableval=$enable_ltdl_install;
12177 fi
12178
12179
12180 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12181 *yes*) ;;
12182 *) enable_ltdl_convenience=yes ;;
12183 esac
12184
12185 if test x"${enable_ltdl_install-no}" != xno; then
12186 INSTALL_LTDL_TRUE=
12187 INSTALL_LTDL_FALSE='#'
12188 else
12189 INSTALL_LTDL_TRUE='#'
12190 INSTALL_LTDL_FALSE=
12191 fi
12192
12193 if test x"${enable_ltdl_convenience-no}" != xno; then
12194 CONVENIENCE_LTDL_TRUE=
12195 CONVENIENCE_LTDL_FALSE='#'
12196 else
12197 CONVENIENCE_LTDL_TRUE='#'
12198 CONVENIENCE_LTDL_FALSE=
12199 fi
12200
12201
12202
12203
12204
12205
12206 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12207 # the user used. This is so that ltdl.h can pick up the parent projects
12208 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12209 # definitions required by ltdl.c.
12210 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12211
12212
12213
12214 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12215 do :
12216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12217 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12218 "
12219 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12220 cat >>confdefs.h <<_ACEOF
12221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12222 _ACEOF
12223
12224 fi
12225
12226 done
12227
12228
12229 for ac_func in closedir opendir readdir
12230 do :
12231 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12232 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12233 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12234 cat >>confdefs.h <<_ACEOF
12235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12236 _ACEOF
12237
12238 else
12239
12240
12241 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12242
12243 fi
12244 done
12245
12246 for ac_func in strlcat strlcpy
12247 do :
12248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12249 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12250 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12251 cat >>confdefs.h <<_ACEOF
12252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12253 _ACEOF
12254
12255 else
12256
12257
12258 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12259
12260 fi
12261 done
12262
12263
12264
12265 cat >>confdefs.h <<_ACEOF
12266 #define LT_LIBEXT "$libext"
12267 _ACEOF
12268
12269
12270 name=ltdl
12271 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
12272
12273
12274
12275
12276
12277
12278
12279
12280 # Only expand once:
12281
12282
12283 LIBTOOL="$LIBTOOL --silent"
12284
12285 # Checks for libraries.
12286
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12288 $as_echo_n "checking for library containing socket... " >&6; }
12289 if test "${ac_cv_search_socket+set}" = set; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 ac_func_search_save_LIBS=$LIBS
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12295
12296 /* Override any GCC internal prototype to avoid an error.
12297 Use char because int might match the return type of a GCC
12298 builtin and then its argument prototype would still apply. */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 char socket ();
12303 int
12304 main ()
12305 {
12306 return socket ();
12307 ;
12308 return 0;
12309 }
12310 _ACEOF
12311 for ac_lib in '' socket; do
12312 if test -z "$ac_lib"; then
12313 ac_res="none required"
12314 else
12315 ac_res=-l$ac_lib
12316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12317 fi
12318 if ac_fn_c_try_link "$LINENO"; then :
12319 ac_cv_search_socket=$ac_res
12320 fi
12321 rm -f core conftest.err conftest.$ac_objext \
12322 conftest$ac_exeext
12323 if test "${ac_cv_search_socket+set}" = set; then :
12324 break
12325 fi
12326 done
12327 if test "${ac_cv_search_socket+set}" = set; then :
12328
12329 else
12330 ac_cv_search_socket=no
12331 fi
12332 rm conftest.$ac_ext
12333 LIBS=$ac_func_search_save_LIBS
12334 fi
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12336 $as_echo "$ac_cv_search_socket" >&6; }
12337 ac_res=$ac_cv_search_socket
12338 if test "$ac_res" != no; then :
12339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12340
12341 else
12342 as_fn_error $? "socket library not found" "$LINENO" 5
12343 fi
12344
12345 for ac_func in inet_aton inet_ntop inet_pton
12346 do :
12347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12350 cat >>confdefs.h <<_ACEOF
12351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12352 _ACEOF
12353
12354 fi
12355 done
12356
12357 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
12358 #include <sys/socket.h>
12359 #include <netdb.h>
12360
12361 "
12362 if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :
12363
12364 cat >>confdefs.h <<_ACEOF
12365 #define HAVE_STRUCT_SOCKADDR_IN 1
12366 _ACEOF
12367
12368
12369 fi
12370 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
12371 #include <sys/socket.h>
12372 #include <netdb.h>
12373
12374 "
12375 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12376
12377 cat >>confdefs.h <<_ACEOF
12378 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12379 _ACEOF
12380
12381
12382 fi
12383 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
12384 #include <sys/socket.h>
12385 #include <netdb.h>
12386
12387 "
12388 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
12389
12390 cat >>confdefs.h <<_ACEOF
12391 #define HAVE_STRUCT_ADDRINFO 1
12392 _ACEOF
12393
12394
12395 fi
12396
12397 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
12398 <sys/socket.h>
12399 "
12400 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12401
12402 cat >>confdefs.h <<_ACEOF
12403 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12404 _ACEOF
12405
12406
12407 fi
12408
12409
12410
12411 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
12412 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12413
12414 cat >>confdefs.h <<_ACEOF
12415 #define HAVE_STRUCT_SOCKADDR_IN6 1
12416 _ACEOF
12417
12418
12419 else
12420
12421 $as_echo "#define IPV6 1" >>confdefs.h
12422
12423 fi
12424
12425
12426
12427 # Checks for typedefs, structures, and compiler characteristics.
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12429 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12430 if test "${ac_cv_c_bigendian+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 ac_cv_c_bigendian=unknown
12434 # See if we're dealing with a universal compiler.
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12437 #ifndef __APPLE_CC__
12438 not a universal capable compiler
12439 #endif
12440 typedef int dummy;
12441
12442 _ACEOF
12443 if ac_fn_c_try_compile "$LINENO"; then :
12444
12445 # Check for potential -arch flags. It is not universal unless
12446 # there are at least two -arch flags with different values.
12447 ac_arch=
12448 ac_prev=
12449 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12450 if test -n "$ac_prev"; then
12451 case $ac_word in
12452 i?86 | x86_64 | ppc | ppc64)
12453 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12454 ac_arch=$ac_word
12455 else
12456 ac_cv_c_bigendian=universal
12457 break
12458 fi
12459 ;;
12460 esac
12461 ac_prev=
12462 elif test "x$ac_word" = "x-arch"; then
12463 ac_prev=arch
12464 fi
12465 done
12466 fi
12467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12468 if test $ac_cv_c_bigendian = unknown; then
12469 # See if sys/param.h defines the BYTE_ORDER macro.
12470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h. */
12472 #include <sys/types.h>
12473 #include <sys/param.h>
12474
12475 int
12476 main ()
12477 {
12478 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12479 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12480 && LITTLE_ENDIAN)
12481 bogus endian macros
12482 #endif
12483
12484 ;
12485 return 0;
12486 }
12487 _ACEOF
12488 if ac_fn_c_try_compile "$LINENO"; then :
12489 # It does; now see whether it defined to BIG_ENDIAN or not.
12490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491 /* end confdefs.h. */
12492 #include <sys/types.h>
12493 #include <sys/param.h>
12494
12495 int
12496 main ()
12497 {
12498 #if BYTE_ORDER != BIG_ENDIAN
12499 not big endian
12500 #endif
12501
12502 ;
12503 return 0;
12504 }
12505 _ACEOF
12506 if ac_fn_c_try_compile "$LINENO"; then :
12507 ac_cv_c_bigendian=yes
12508 else
12509 ac_cv_c_bigendian=no
12510 fi
12511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12512 fi
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514 fi
12515 if test $ac_cv_c_bigendian = unknown; then
12516 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12519 #include <limits.h>
12520
12521 int
12522 main ()
12523 {
12524 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12525 bogus endian macros
12526 #endif
12527
12528 ;
12529 return 0;
12530 }
12531 _ACEOF
12532 if ac_fn_c_try_compile "$LINENO"; then :
12533 # It does; now see whether it defined to _BIG_ENDIAN or not.
12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h. */
12536 #include <limits.h>
12537
12538 int
12539 main ()
12540 {
12541 #ifndef _BIG_ENDIAN
12542 not big endian
12543 #endif
12544
12545 ;
12546 return 0;
12547 }
12548 _ACEOF
12549 if ac_fn_c_try_compile "$LINENO"; then :
12550 ac_cv_c_bigendian=yes
12551 else
12552 ac_cv_c_bigendian=no
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555 fi
12556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12557 fi
12558 if test $ac_cv_c_bigendian = unknown; then
12559 # Compile a test program.
12560 if test "$cross_compiling" = yes; then :
12561 # Try to guess by grepping values from an object file.
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564 short int ascii_mm[] =
12565 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12566 short int ascii_ii[] =
12567 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12568 int use_ascii (int i) {
12569 return ascii_mm[i] + ascii_ii[i];
12570 }
12571 short int ebcdic_ii[] =
12572 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12573 short int ebcdic_mm[] =
12574 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12575 int use_ebcdic (int i) {
12576 return ebcdic_mm[i] + ebcdic_ii[i];
12577 }
12578 extern int foo;
12579
12580 int
12581 main ()
12582 {
12583 return use_ascii (foo) == use_ebcdic (foo);
12584 ;
12585 return 0;
12586 }
12587 _ACEOF
12588 if ac_fn_c_try_compile "$LINENO"; then :
12589 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12590 ac_cv_c_bigendian=yes
12591 fi
12592 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12593 if test "$ac_cv_c_bigendian" = unknown; then
12594 ac_cv_c_bigendian=no
12595 else
12596 # finding both strings is unlikely to happen, but who knows?
12597 ac_cv_c_bigendian=unknown
12598 fi
12599 fi
12600 fi
12601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12602 else
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12605 $ac_includes_default
12606 int
12607 main ()
12608 {
12609
12610 /* Are we little or big endian? From Harbison&Steele. */
12611 union
12612 {
12613 long int l;
12614 char c[sizeof (long int)];
12615 } u;
12616 u.l = 1;
12617 return u.c[sizeof (long int) - 1] == 1;
12618
12619 ;
12620 return 0;
12621 }
12622 _ACEOF
12623 if ac_fn_c_try_run "$LINENO"; then :
12624 ac_cv_c_bigendian=no
12625 else
12626 ac_cv_c_bigendian=yes
12627 fi
12628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12629 conftest.$ac_objext conftest.beam conftest.$ac_ext
12630 fi
12631
12632 fi
12633 fi
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12635 $as_echo "$ac_cv_c_bigendian" >&6; }
12636 case $ac_cv_c_bigendian in #(
12637 yes)
12638 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12639 ;; #(
12640 no)
12641 ;; #(
12642 universal)
12643
12644 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12645
12646 ;; #(
12647 *)
12648 as_fn_error $? "unknown endianness
12649 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12650 esac
12651
12652
12653 # Checks for library functions.
12654
12655
12656
12657 for ac_func in $ac_func_list
12658 do :
12659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12660 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12661 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12662 cat >>confdefs.h <<_ACEOF
12663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12664 _ACEOF
12665
12666 fi
12667 done
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681 # Checks for header files.
12682
12683
12684
12685 for ac_header in $ac_header_list
12686 do :
12687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12688 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12689 "
12690 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12691 cat >>confdefs.h <<_ACEOF
12692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12693 _ACEOF
12694
12695 fi
12696
12697 done
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725 # check for /dev/null so we can use it to hold evil fd's
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12727 $as_echo_n "checking for /dev/null... " >&6; }
12728 if test -c /dev/null; then :
12729
12730
12731 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12732
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12734 $as_echo "yes" >&6; }
12735 else
12736
12737
12738 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12739
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
12741 $as_echo "no - using devnull.log" >&6; }
12742 fi
12743
12744
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12746 $as_echo_n "checking for library containing crypt... " >&6; }
12747 if test "${ac_cv_search_crypt+set}" = set; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 ac_func_search_save_LIBS=$LIBS
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12753
12754 /* Override any GCC internal prototype to avoid an error.
12755 Use char because int might match the return type of a GCC
12756 builtin and then its argument prototype would still apply. */
12757 #ifdef __cplusplus
12758 extern "C"
12759 #endif
12760 char crypt ();
12761 int
12762 main ()
12763 {
12764 return crypt ();
12765 ;
12766 return 0;
12767 }
12768 _ACEOF
12769 for ac_lib in '' crypt; do
12770 if test -z "$ac_lib"; then
12771 ac_res="none required"
12772 else
12773 ac_res=-l$ac_lib
12774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12775 fi
12776 if ac_fn_c_try_link "$LINENO"; then :
12777 ac_cv_search_crypt=$ac_res
12778 fi
12779 rm -f core conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext
12781 if test "${ac_cv_search_crypt+set}" = set; then :
12782 break
12783 fi
12784 done
12785 if test "${ac_cv_search_crypt+set}" = set; then :
12786
12787 else
12788 ac_cv_search_crypt=no
12789 fi
12790 rm conftest.$ac_ext
12791 LIBS=$ac_func_search_save_LIBS
12792 fi
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12794 $as_echo "$ac_cv_search_crypt" >&6; }
12795 ac_res=$ac_cv_search_crypt
12796 if test "$ac_res" != no; then :
12797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12798
12799 fi
12800
12801
12802
12803
12804 # Check whether --with-zlib-path was given.
12805 if test "${with_zlib_path+set}" = set; then :
12806 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
12807 fi
12808
12809
12810 # Check whether --enable-zlib was given.
12811 if test "${enable_zlib+set}" = set; then :
12812 enableval=$enable_zlib; zlib=$enableval
12813 else
12814 zlib=yes
12815 fi
12816
12817
12818 if test "$zlib" = "yes"; then :
12819
12820 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12821 if test "x$ac_cv_header_zlib_h" = x""yes; then :
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12823 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12824 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 ac_check_lib_save_LIBS=$LIBS
12828 LIBS="-lz $LIBS"
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12831
12832 /* Override any GCC internal prototype to avoid an error.
12833 Use char because int might match the return type of a GCC
12834 builtin and then its argument prototype would still apply. */
12835 #ifdef __cplusplus
12836 extern "C"
12837 #endif
12838 char zlibVersion ();
12839 int
12840 main ()
12841 {
12842 return zlibVersion ();
12843 ;
12844 return 0;
12845 }
12846 _ACEOF
12847 if ac_fn_c_try_link "$LINENO"; then :
12848 ac_cv_lib_z_zlibVersion=yes
12849 else
12850 ac_cv_lib_z_zlibVersion=no
12851 fi
12852 rm -f core conftest.err conftest.$ac_objext \
12853 conftest$ac_exeext conftest.$ac_ext
12854 LIBS=$ac_check_lib_save_LIBS
12855 fi
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12857 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12858 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
12859
12860 LIBS="-lz $LIBS"
12861
12862 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12863
12864
12865 else
12866 zlib=no
12867 fi
12868
12869
12870 else
12871 zlib=no
12872 fi
12873
12874
12875
12876 fi
12877
12878
12879 # Check whether --with-libpcre-path was given.
12880 if test "${with_libpcre_path+set}" = set; then :
12881 withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
12882 fi
12883
12884
12885 # Check whether --enable-libpcre was given.
12886 if test "${enable_libpcre+set}" = set; then :
12887 enableval=$enable_libpcre; libpcre=$enableval
12888 else
12889 libpcre=yes
12890 fi
12891
12892
12893 if test "$libpcre" = "yes"; then :
12894
12895 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
12896 if test "x$ac_cv_header_pcre_h" = x""yes; then :
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
12898 $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
12899 if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 ac_check_lib_save_LIBS=$LIBS
12903 LIBS="-lpcre $LIBS"
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12906
12907 /* Override any GCC internal prototype to avoid an error.
12908 Use char because int might match the return type of a GCC
12909 builtin and then its argument prototype would still apply. */
12910 #ifdef __cplusplus
12911 extern "C"
12912 #endif
12913 char pcre_study ();
12914 int
12915 main ()
12916 {
12917 return pcre_study ();
12918 ;
12919 return 0;
12920 }
12921 _ACEOF
12922 if ac_fn_c_try_link "$LINENO"; then :
12923 ac_cv_lib_pcre_pcre_study=yes
12924 else
12925 ac_cv_lib_pcre_pcre_study=no
12926 fi
12927 rm -f core conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12929 LIBS=$ac_check_lib_save_LIBS
12930 fi
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
12932 $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
12933 if test "x$ac_cv_lib_pcre_pcre_study" = x""yes; then :
12934
12935 LIBS="-lpcre $LIBS"
12936
12937 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
12938
12939
12940 else
12941 libpcre=no
12942 fi
12943
12944
12945 else
12946 libpcre=no
12947 fi
12948
12949
12950
12951 fi
12952 if test "$libpcre" = yes; then
12953 ENABLE_PCRE_TRUE=
12954 ENABLE_PCRE_FALSE='#'
12955 else
12956 ENABLE_PCRE_TRUE='#'
12957 ENABLE_PCRE_FALSE=
12958 fi
12959
12960
12961
12962 # Check whether --enable-openssl was given.
12963 if test "${enable_openssl+set}" = set; then :
12964 enableval=$enable_openssl; cf_enable_openssl=$enableval
12965 else
12966 cf_enable_openssl="auto"
12967 fi
12968
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12970 $as_echo_n "checking for OpenSSL... " >&6; }
12971 if test "$cf_enable_openssl" != "no"; then
12972 cf_openssl_basedir=""
12973 if test "$cf_enable_openssl" != "auto" &&
12974 test "$cf_enable_openssl" != "yes"; then
12975 cf_openssl_basedir="${cf_enable_openssl}"
12976 else
12977 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12978 /opt /opt/openssl /usr/local/openssl; do
12979 if test -f "${dirs}/include/openssl/opensslv.h"; then
12980 cf_openssl_basedir="${dirs}"
12981 break
12982 fi
12983 done
12984 unset dirs
12985 fi
12986
12987 if test ! -z "$cf_openssl_basedir"; then
12988 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12989 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12990 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12991 else
12992 cf_openssl_basedir=""
12993 fi
12994 else
12995 if test -f "/usr/include/openssl/opensslv.h"; then
12996 cf_openssl_basedir="/usr"
12997 fi
12998 fi
12999
13000 if test ! -z "$cf_openssl_basedir"; then
13001 LIBS="-lcrypto -lssl $LIBS"
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13003 $as_echo "$cf_openssl_basedir" >&6; }
13004 cf_enable_openssl="yes"
13005
13006 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13007
13008 else
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13010 $as_echo "not found. Please check your path." >&6; }
13011 cf_enable_openssl="no"
13012 fi
13013 unset cf_openssl_basedir
13014 else
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13016 $as_echo "disabled" >&6; }
13017 fi
13018
13019 if test "$cf_enable_openssl" != "no"; then :
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
13021 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
13022 if test "$cross_compiling" = yes; then :
13023 cf_openssl_version_ok=no
13024 else
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13027
13028 #include <openssl/opensslv.h>
13029 #include <stdlib.h>
13030 int
13031 main ()
13032 {
13033 exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
13034 ;
13035 return 0;
13036 }
13037 _ACEOF
13038 if ac_fn_c_try_run "$LINENO"; then :
13039 cf_openssl_version_ok=yes
13040 else
13041 cf_openssl_version_ok=no
13042 fi
13043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13044 conftest.$ac_objext conftest.beam conftest.$ac_ext
13045 fi
13046
13047
13048 if test "$cf_openssl_version_ok" = "yes"; then :
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13050 $as_echo "found" >&6; }
13051
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13053 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13054 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then :
13055 $as_echo_n "(cached) " >&6
13056 else
13057 ac_check_lib_save_LIBS=$LIBS
13058 LIBS="-lcrypto $LIBS"
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061
13062 /* Override any GCC internal prototype to avoid an error.
13063 Use char because int might match the return type of a GCC
13064 builtin and then its argument prototype would still apply. */
13065 #ifdef __cplusplus
13066 extern "C"
13067 #endif
13068 char RSA_free ();
13069 int
13070 main ()
13071 {
13072 return RSA_free ();
13073 ;
13074 return 0;
13075 }
13076 _ACEOF
13077 if ac_fn_c_try_link "$LINENO"; then :
13078 ac_cv_lib_crypto_RSA_free=yes
13079 else
13080 ac_cv_lib_crypto_RSA_free=no
13081 fi
13082 rm -f core conftest.err conftest.$ac_objext \
13083 conftest$ac_exeext conftest.$ac_ext
13084 LIBS=$ac_check_lib_save_LIBS
13085 fi
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13087 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13088 if test "x$ac_cv_lib_crypto_RSA_free" = x""yes; then :
13089 cat >>confdefs.h <<_ACEOF
13090 #define HAVE_LIBCRYPTO 1
13091 _ACEOF
13092
13093 LIBS="-lcrypto $LIBS"
13094
13095 fi
13096
13097 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13098 for ac_func in EVP_bf_cfb \
13099 EVP_cast5_cfb \
13100 EVP_idea_cfb \
13101 EVP_rc5_32_12_16_cfb \
13102 EVP_des_ede3_cfb \
13103 EVP_des_cfb
13104 do :
13105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13106 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13107 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13108 cat >>confdefs.h <<_ACEOF
13109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13110 _ACEOF
13111
13112 fi
13113 done
13114
13115 fi
13116
13117 else
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13119 $as_echo "no - OpenSSL support disabled" >&6; }
13120 cf_enable_openssl="no"
13121 fi
13122 fi
13123
13124 if test "$cf_enable_openssl" = yes; then
13125 ENABLE_SSL_TRUE=
13126 ENABLE_SSL_FALSE='#'
13127 else
13128 ENABLE_SSL_TRUE='#'
13129 ENABLE_SSL_FALSE=
13130 fi
13131
13132
13133
13134 # Check whether --enable-assert was given.
13135 if test "${enable_assert+set}" = set; then :
13136 enableval=$enable_assert; assert=$enableval
13137 else
13138 assert=no
13139 fi
13140
13141
13142 if test "$assert" = "no"; then :
13143
13144 $as_echo "#define NDEBUG 1" >>confdefs.h
13145
13146 fi
13147
13148
13149 # Check whether --enable-small-net was given.
13150 if test "${enable_small_net+set}" = set; then :
13151 enableval=$enable_small_net; small_net=$enableval
13152 else
13153 small_net=no
13154 fi
13155
13156
13157 if test "$small_net" = "yes"; then :
13158
13159
13160 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13161
13162
13163 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13164
13165
13166 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13167
13168
13169 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13170
13171
13172 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13173
13174
13175 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13176
13177
13178 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13179
13180
13181 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13182
13183
13184 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13185
13186
13187 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13188
13189 else
13190
13191
13192
13193 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13194
13195
13196 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13197
13198
13199 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13200
13201
13202 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13203
13204
13205 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13206
13207
13208 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13209
13210
13211 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13212
13213
13214 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13215
13216
13217 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13218
13219
13220 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
13221
13222 fi
13223
13224
13225 # Argument processing.
13226
13227 desired_iopoll_mechanism="none"
13228 # Check whether --enable-kqueue was given.
13229 if test "${enable_kqueue+set}" = set; then :
13230 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13231 fi
13232
13233 # Check whether --enable-epoll was given.
13234 if test "${enable_epoll+set}" = set; then :
13235 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13236 fi
13237
13238 # Check whether --enable-devpoll was given.
13239 if test "${enable_devpoll+set}" = set; then :
13240 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13241 fi
13242
13243 # Check whether --enable-rtsigio was given.
13244 if test "${enable_rtsigio+set}" = set; then :
13245 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13246 fi
13247
13248 # Check whether --enable-poll was given.
13249 if test "${enable_poll+set}" = set; then :
13250 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13251 fi
13252
13253 # Check whether --enable-select was given.
13254 if test "${enable_select+set}" = set; then :
13255 enableval=$enable_select; desired_iopoll_mechanism="select"
13256 fi
13257
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13259 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13260 iopoll_mechanism_none=0
13261
13262 cat >>confdefs.h <<_ACEOF
13263 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13264 _ACEOF
13265
13266 iopoll_mechanism_kqueue=1
13267
13268 cat >>confdefs.h <<_ACEOF
13269 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13270 _ACEOF
13271
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13274 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13276 #define kevent innocuous_kevent
13277
13278 /* System header to define __stub macros and hopefully few prototypes,
13279 which can conflict with char kevent (); below.
13280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13281 <limits.h> exists even on freestanding compilers. */
13282
13283 #ifdef __STDC__
13284 # include <limits.h>
13285 #else
13286 # include <assert.h>
13287 #endif
13288
13289 #undef kevent
13290
13291 /* Override any GCC internal prototype to avoid an error.
13292 Use char because int might match the return type of a GCC
13293 builtin and then its argument prototype would still apply. */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 char kevent ();
13298 /* The GNU C library defines this for functions which it implements
13299 to always fail with ENOSYS. Some functions are actually named
13300 something starting with __ and the normal name is an alias. */
13301 #if defined __stub_kevent || defined __stub___kevent
13302 choke me
13303 #endif
13304
13305 int
13306 main ()
13307 {
13308 return kevent ();
13309 ;
13310 return 0;
13311 }
13312 _ACEOF
13313 if ac_fn_c_try_link "$LINENO"; then :
13314 is_kqueue_mechanism_available="yes"
13315 else
13316 is_kqueue_mechanism_available="no"
13317 fi
13318 rm -f core conftest.err conftest.$ac_objext \
13319 conftest$ac_exeext conftest.$ac_ext
13320 iopoll_mechanism_epoll=2
13321
13322 cat >>confdefs.h <<_ACEOF
13323 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
13324 _ACEOF
13325
13326 if test "$cross_compiling" = yes; then :
13327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13329 as_fn_error $? "cannot run test program while cross compiling
13330 See \`config.log' for more details" "$LINENO" 5; }
13331 else
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13334
13335 #include <sys/epoll.h>
13336 #include <sys/syscall.h>
13337 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13338 #if !defined(__NR_epoll_create)
13339 #if defined(__ia64__)
13340 #define __NR_epoll_create 1243
13341 #elif defined(__x86_64__)
13342 #define __NR_epoll_create 214
13343 #elif defined(__sparc64__) || defined(__sparc__)
13344 #define __NR_epoll_create 193
13345 #elif defined(__s390__) || defined(__m68k__)
13346 #define __NR_epoll_create 249
13347 #elif defined(__ppc64__) || defined(__ppc__)
13348 #define __NR_epoll_create 236
13349 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13350 #define __NR_epoll_create 224
13351 #elif defined(__alpha__)
13352 #define __NR_epoll_create 407
13353 #elif defined(__sh64__)
13354 #define __NR_epoll_create 282
13355 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13356 #define __NR_epoll_create 254
13357 #else
13358 #error No system call numbers defined for epoll family.
13359 #endif
13360 #endif
13361 _syscall1(int, epoll_create, int, size)
13362 #endif
13363 main() { return epoll_create(256) == -1 ? 1 : 0; }
13364
13365 _ACEOF
13366 if ac_fn_c_try_run "$LINENO"; then :
13367 is_epoll_mechanism_available="yes"
13368 else
13369 is_epoll_mechanism_available="no"
13370 fi
13371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13372 conftest.$ac_objext conftest.beam conftest.$ac_ext
13373 fi
13374
13375 iopoll_mechanism_devpoll=3
13376
13377 cat >>confdefs.h <<_ACEOF
13378 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13379 _ACEOF
13380
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13383 #include <devpoll.h>
13384 int
13385 main ()
13386 {
13387
13388 ;
13389 return 0;
13390 }
13391 _ACEOF
13392 if ac_fn_c_try_compile "$LINENO"; then :
13393 is_devpoll_mechanism_available="yes"
13394 else
13395 is_devpoll_mechanism_available="no"
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398 if test "$is_devpoll_mechanism_available" = "yes" ; then
13399
13400 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
13401
13402 fi
13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404 /* end confdefs.h. */
13405 #include <sys/devpoll.h>
13406 int
13407 main ()
13408 {
13409
13410 ;
13411 return 0;
13412 }
13413 _ACEOF
13414 if ac_fn_c_try_compile "$LINENO"; then :
13415 is_devpoll_mechanism_available="yes"
13416 else
13417 is_devpoll_mechanism_available="no"
13418 fi
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420 if test "$is_devpoll_mechanism_available" = "yes" ; then
13421
13422 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
13423
13424 fi
13425 iopoll_mechanism_rtsigio=4
13426
13427 cat >>confdefs.h <<_ACEOF
13428 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
13429 _ACEOF
13430
13431 if test "$cross_compiling" = yes; then :
13432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13434 as_fn_error $? "cannot run test program while cross compiling
13435 See \`config.log' for more details" "$LINENO" 5; }
13436 else
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13439
13440 #include <fcntl.h>
13441 #ifdef F_SETSIG
13442 main () { return 0; } /* F_SETSIG defined */
13443 #else
13444 main () { return 1; } /* F_SETSIG not defined */
13445 #endif
13446
13447 int
13448 main ()
13449 {
13450
13451 ;
13452 return 0;
13453 }
13454 _ACEOF
13455 if ac_fn_c_try_run "$LINENO"; then :
13456 is_rtsigio_mechanism_available="yes"
13457 else
13458 is_rtsigio_mechanism_available="no"
13459 fi
13460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13461 conftest.$ac_objext conftest.beam conftest.$ac_ext
13462 fi
13463
13464 iopoll_mechanism_poll=5
13465
13466 cat >>confdefs.h <<_ACEOF
13467 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
13468 _ACEOF
13469
13470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471 /* end confdefs.h. */
13472 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13474 #define poll innocuous_poll
13475
13476 /* System header to define __stub macros and hopefully few prototypes,
13477 which can conflict with char poll (); below.
13478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13479 <limits.h> exists even on freestanding compilers. */
13480
13481 #ifdef __STDC__
13482 # include <limits.h>
13483 #else
13484 # include <assert.h>
13485 #endif
13486
13487 #undef poll
13488
13489 /* Override any GCC internal prototype to avoid an error.
13490 Use char because int might match the return type of a GCC
13491 builtin and then its argument prototype would still apply. */
13492 #ifdef __cplusplus
13493 extern "C"
13494 #endif
13495 char poll ();
13496 /* The GNU C library defines this for functions which it implements
13497 to always fail with ENOSYS. Some functions are actually named
13498 something starting with __ and the normal name is an alias. */
13499 #if defined __stub_poll || defined __stub___poll
13500 choke me
13501 #endif
13502
13503 int
13504 main ()
13505 {
13506 return poll ();
13507 ;
13508 return 0;
13509 }
13510 _ACEOF
13511 if ac_fn_c_try_link "$LINENO"; then :
13512 is_poll_mechanism_available="yes"
13513 else
13514 is_poll_mechanism_available="no"
13515 fi
13516 rm -f core conftest.err conftest.$ac_objext \
13517 conftest$ac_exeext conftest.$ac_ext
13518 iopoll_mechanism_select=6
13519
13520 cat >>confdefs.h <<_ACEOF
13521 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
13522 _ACEOF
13523
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13526 /* Define select to an innocuous variant, in case <limits.h> declares select.
13527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13528 #define select innocuous_select
13529
13530 /* System header to define __stub macros and hopefully few prototypes,
13531 which can conflict with char select (); below.
13532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13533 <limits.h> exists even on freestanding compilers. */
13534
13535 #ifdef __STDC__
13536 # include <limits.h>
13537 #else
13538 # include <assert.h>
13539 #endif
13540
13541 #undef select
13542
13543 /* Override any GCC internal prototype to avoid an error.
13544 Use char because int might match the return type of a GCC
13545 builtin and then its argument prototype would still apply. */
13546 #ifdef __cplusplus
13547 extern "C"
13548 #endif
13549 char select ();
13550 /* The GNU C library defines this for functions which it implements
13551 to always fail with ENOSYS. Some functions are actually named
13552 something starting with __ and the normal name is an alias. */
13553 #if defined __stub_select || defined __stub___select
13554 choke me
13555 #endif
13556
13557 int
13558 main ()
13559 {
13560 return select ();
13561 ;
13562 return 0;
13563 }
13564 _ACEOF
13565 if ac_fn_c_try_link "$LINENO"; then :
13566 is_select_mechanism_available="yes"
13567 else
13568 is_select_mechanism_available="no"
13569 fi
13570 rm -f core conftest.err conftest.$ac_objext \
13571 conftest$ac_exeext conftest.$ac_ext
13572 optimal_iopoll_mechanism="none"
13573 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
13574 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
13575 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
13576 optimal_iopoll_mechanism="$mechanism"
13577 break
13578 fi
13579 done
13580 if test "$desired_iopoll_mechanism" = "none" ; then
13581 if test "$optimal_iopoll_mechanism" = "none" ; then
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13583 $as_echo "none" >&6; }
13584 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
13585 else
13586 selected_iopoll_mechanism=$optimal_iopoll_mechanism
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13588 $as_echo "$selected_iopoll_mechanism" >&6; }
13589 fi
13590 else
13591 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13592 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13593 selected_iopoll_mechanism=$desired_iopoll_mechanism
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13595 $as_echo "$selected_iopoll_mechanism" >&6; }
13596 else
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13598 $as_echo "none" >&6; }
13599 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13600 fi
13601 fi
13602 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13603
13604 cat >>confdefs.h <<_ACEOF
13605 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
13606 _ACEOF
13607
13608
13609
13610
13611 # Check whether --with-nicklen was given.
13612 if test "${with_nicklen+set}" = set; then :
13613 withval=$with_nicklen; nicklen="$withval"
13614 else
13615 nicklen="9"
13616 fi
13617
13618
13619 cat >>confdefs.h <<_ACEOF
13620 #define NICKLEN ($nicklen+1)
13621 _ACEOF
13622
13623
13624
13625
13626 # Check whether --with-topiclen was given.
13627 if test "${with_topiclen+set}" = set; then :
13628 withval=$with_topiclen; topiclen="$withval"
13629 else
13630 topiclen="160"
13631 fi
13632
13633
13634 cat >>confdefs.h <<_ACEOF
13635 #define TOPICLEN ($topiclen)
13636 _ACEOF
13637
13638
13639
13640
13641 # Check whether --with-syslog-facility was given.
13642 if test "${with_syslog_facility+set}" = set; then :
13643 withval=$with_syslog_facility; syslog_facility="$withval"
13644 else
13645 syslog_facility="LOG_LOCAL4"
13646 fi
13647
13648
13649 cat >>confdefs.h <<_ACEOF
13650 #define LOG_FACILITY $syslog_facility
13651 _ACEOF
13652
13653
13654
13655 # Check whether --enable-efnet was given.
13656 if test "${enable_efnet+set}" = set; then :
13657 enableval=$enable_efnet; efnet="$enableval"
13658 else
13659 efnet="no"
13660 fi
13661
13662 if test "$efnet" = "yes" ; then
13663 use_efnet="yes"
13664
13665 $as_echo "#define EFNET 1" >>confdefs.h
13666
13667
13668 $as_echo "#define TS5_ONLY 1" >>confdefs.h
13669
13670 else
13671 use_efnet="no"
13672 fi
13673 if test "$use_efnet" = "yes"; then
13674 EFNET_TRUE=
13675 EFNET_FALSE='#'
13676 else
13677 EFNET_TRUE='#'
13678 EFNET_FALSE=
13679 fi
13680
13681
13682
13683 # Check whether --enable-halfops was given.
13684 if test "${enable_halfops+set}" = set; then :
13685 enableval=$enable_halfops; halfops="$enableval"
13686 else
13687 halfops="no"
13688 fi
13689
13690 if test "$halfops" = "yes" ; then
13691
13692 $as_echo "#define HALFOPS 1" >>confdefs.h
13693
13694 fi
13695
13696
13697 # Check whether --enable-debugging was given.
13698 if test "${enable_debugging+set}" = set; then :
13699 enableval=$enable_debugging; debugging="$enableval"
13700 else
13701 debugging="no"
13702 fi
13703
13704 if test "$debugging" = "yes" ; then
13705
13706 $as_echo "#define DEBUG 1" >>confdefs.h
13707
13708 CFLAGS="-Wall -g -O0"
13709 else
13710
13711 $as_echo "#define NDEBUG 1" >>confdefs.h
13712
13713 fi
13714
13715
13716 # Check whether --enable-warnings was given.
13717 if test "${enable_warnings+set}" = set; then :
13718 enableval=$enable_warnings; warnings="$enableval"
13719 else
13720 warnings="no"
13721 fi
13722
13723 if test "$warnings" = "yes" ; then
13724 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
13725 fi
13726
13727
13728 for ac_header in syslog.h sys/syslog.h
13729 do :
13730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13731 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13732 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13733 cat >>confdefs.h <<_ACEOF
13734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13735 _ACEOF
13736
13737 fi
13738
13739 done
13740
13741 # Check whether --enable-syslog was given.
13742 if test "${enable_syslog+set}" = set; then :
13743 enableval=$enable_syslog; syslog="$enableval"
13744 else
13745 syslog="no"
13746 fi
13747
13748 if test "$enableval" != "no" ; then
13749 for option in $enableval ; do
13750 case "$option" in
13751 users)
13752 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13753 ;;
13754 oper)
13755 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13756 ;;
13757 yes) : ;;
13758 *) as_fn_error $? "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13759 esac
13760 done
13761
13762 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13763
13764 fi
13765
13766
13767
13768 prefix_NONE=
13769 exec_prefix_NONE=
13770 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13771 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13772 eval ac_define_dir="\"$prefix\""
13773 eval ac_define_dir="\"$ac_define_dir\""
13774 PREFIX="$ac_define_dir"
13775
13776
13777 cat >>confdefs.h <<_ACEOF
13778 #define PREFIX "$ac_define_dir"
13779 _ACEOF
13780
13781 test "$prefix_NONE" && prefix=NONE
13782 test "$exec_prefix_NONE" && exec_prefix=NONE
13783
13784
13785 prefix_NONE=
13786 exec_prefix_NONE=
13787 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13788 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13789 eval ac_define_dir="\"$sysconfdir\""
13790 eval ac_define_dir="\"$ac_define_dir\""
13791 SYSCONFDIR="$ac_define_dir"
13792
13793
13794 cat >>confdefs.h <<_ACEOF
13795 #define SYSCONFDIR "$ac_define_dir"
13796 _ACEOF
13797
13798 test "$prefix_NONE" && prefix=NONE
13799 test "$exec_prefix_NONE" && exec_prefix=NONE
13800
13801
13802 prefix_NONE=
13803 exec_prefix_NONE=
13804 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13805 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13806 eval ac_define_dir="\"$libdir\""
13807 eval ac_define_dir="\"$ac_define_dir\""
13808 LIBDIR="$ac_define_dir"
13809
13810
13811 cat >>confdefs.h <<_ACEOF
13812 #define LIBDIR "$ac_define_dir"
13813 _ACEOF
13814
13815 test "$prefix_NONE" && prefix=NONE
13816 test "$exec_prefix_NONE" && exec_prefix=NONE
13817
13818
13819 prefix_NONE=
13820 exec_prefix_NONE=
13821 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13822 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13823 eval ac_define_dir="\"$datadir\""
13824 eval ac_define_dir="\"$ac_define_dir\""
13825 DATADIR="$ac_define_dir"
13826
13827
13828 cat >>confdefs.h <<_ACEOF
13829 #define DATADIR "$ac_define_dir"
13830 _ACEOF
13831
13832 test "$prefix_NONE" && prefix=NONE
13833 test "$exec_prefix_NONE" && exec_prefix=NONE
13834
13835
13836 prefix_NONE=
13837 exec_prefix_NONE=
13838 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13839 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13840 eval ac_define_dir="\"$localstatedir\""
13841 eval ac_define_dir="\"$ac_define_dir\""
13842 LOCALSTATEDIR="$ac_define_dir"
13843
13844
13845 cat >>confdefs.h <<_ACEOF
13846 #define LOCALSTATEDIR "$ac_define_dir"
13847 _ACEOF
13848
13849 test "$prefix_NONE" && prefix=NONE
13850 test "$exec_prefix_NONE" && exec_prefix=NONE
13851
13852
13853 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"
13854
13855
13856 cat >confcache <<\_ACEOF
13857 # This file is a shell script that caches the results of configure
13858 # tests run on this system so they can be shared between configure
13859 # scripts and configure runs, see configure's option --config-cache.
13860 # It is not useful on other systems. If it contains results you don't
13861 # want to keep, you may remove or edit it.
13862 #
13863 # config.status only pays attention to the cache file if you give it
13864 # the --recheck option to rerun configure.
13865 #
13866 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13867 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13868 # following values.
13869
13870 _ACEOF
13871
13872 # The following way of writing the cache mishandles newlines in values,
13873 # but we know of no workaround that is simple, portable, and efficient.
13874 # So, we kill variables containing newlines.
13875 # Ultrix sh set writes to stderr and can't be redirected directly,
13876 # and sets the high bit in the cache file unless we assign to the vars.
13877 (
13878 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13879 eval ac_val=\$$ac_var
13880 case $ac_val in #(
13881 *${as_nl}*)
13882 case $ac_var in #(
13883 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13884 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13885 esac
13886 case $ac_var in #(
13887 _ | IFS | as_nl) ;; #(
13888 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13889 *) { eval $ac_var=; unset $ac_var;} ;;
13890 esac ;;
13891 esac
13892 done
13893
13894 (set) 2>&1 |
13895 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13896 *${as_nl}ac_space=\ *)
13897 # `set' does not quote correctly, so add quotes: double-quote
13898 # substitution turns \\\\ into \\, and sed turns \\ into \.
13899 sed -n \
13900 "s/'/'\\\\''/g;
13901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13902 ;; #(
13903 *)
13904 # `set' quotes correctly as required by POSIX, so do not add quotes.
13905 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13906 ;;
13907 esac |
13908 sort
13909 ) |
13910 sed '
13911 /^ac_cv_env_/b end
13912 t clear
13913 :clear
13914 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13915 t end
13916 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13917 :end' >>confcache
13918 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13919 if test -w "$cache_file"; then
13920 test "x$cache_file" != "x/dev/null" &&
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13922 $as_echo "$as_me: updating cache $cache_file" >&6;}
13923 cat confcache >$cache_file
13924 else
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13926 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13927 fi
13928 fi
13929 rm -f confcache
13930
13931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13932 # Let make expand exec_prefix.
13933 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13934
13935 DEFS=-DHAVE_CONFIG_H
13936
13937 ac_libobjs=
13938 ac_ltlibobjs=
13939 U=
13940 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13941 # 1. Remove the extension, and $U if already installed.
13942 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13943 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13944 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13945 # will be set to the directory where LIBOBJS objects are built.
13946 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13947 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13948 done
13949 LIBOBJS=$ac_libobjs
13950
13951 LTLIBOBJS=$ac_ltlibobjs
13952
13953
13954 if test -n "$EXEEXT"; then
13955 am__EXEEXT_TRUE=
13956 am__EXEEXT_FALSE='#'
13957 else
13958 am__EXEEXT_TRUE='#'
13959 am__EXEEXT_FALSE=
13960 fi
13961
13962 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13963 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13965 fi
13966 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13967 as_fn_error $? "conditional \"AMDEP\" was never defined.
13968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13969 fi
13970 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13971 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13973 fi
13974 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13975 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
13976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13977 fi
13978 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13979 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
13980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13981 fi
13982 LT_CONFIG_H=config.h
13983
13984 _ltdl_libobjs=
13985 _ltdl_ltlibobjs=
13986 if test -n "$_LT_LIBOBJS"; then
13987 # Remove the extension.
13988 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
13989 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
13990 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
13991 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
13992 done
13993 fi
13994 ltdl_LIBOBJS=$_ltdl_libobjs
13995
13996 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
13997
13998
13999
14000 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
14001 as_fn_error $? "conditional \"ENABLE_PCRE\" was never defined.
14002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14003 fi
14004 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14005 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14007 fi
14008 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
14009 as_fn_error $? "conditional \"EFNET\" was never defined.
14010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14011 fi
14012
14013 : ${CONFIG_STATUS=./config.status}
14014 ac_write_fail=0
14015 ac_clean_files_save=$ac_clean_files
14016 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14018 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14019 as_write_fail=0
14020 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14021 #! $SHELL
14022 # Generated by $as_me.
14023 # Run this file to recreate the current configuration.
14024 # Compiler output produced by configure, useful for debugging
14025 # configure, is in config.log if it exists.
14026
14027 debug=false
14028 ac_cs_recheck=false
14029 ac_cs_silent=false
14030
14031 SHELL=\${CONFIG_SHELL-$SHELL}
14032 export SHELL
14033 _ASEOF
14034 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14035 ## -------------------- ##
14036 ## M4sh Initialization. ##
14037 ## -------------------- ##
14038
14039 # Be more Bourne compatible
14040 DUALCASE=1; export DUALCASE # for MKS sh
14041 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14042 emulate sh
14043 NULLCMD=:
14044 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14045 # is contrary to our usage. Disable this feature.
14046 alias -g '${1+"$@"}'='"$@"'
14047 setopt NO_GLOB_SUBST
14048 else
14049 case `(set -o) 2>/dev/null` in #(
14050 *posix*) :
14051 set -o posix ;; #(
14052 *) :
14053 ;;
14054 esac
14055 fi
14056
14057
14058 as_nl='
14059 '
14060 export as_nl
14061 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14062 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14063 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14064 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14065 # Prefer a ksh shell builtin over an external printf program on Solaris,
14066 # but without wasting forks for bash or zsh.
14067 if test -z "$BASH_VERSION$ZSH_VERSION" \
14068 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14069 as_echo='print -r --'
14070 as_echo_n='print -rn --'
14071 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14072 as_echo='printf %s\n'
14073 as_echo_n='printf %s'
14074 else
14075 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14076 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14077 as_echo_n='/usr/ucb/echo -n'
14078 else
14079 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14080 as_echo_n_body='eval
14081 arg=$1;
14082 case $arg in #(
14083 *"$as_nl"*)
14084 expr "X$arg" : "X\\(.*\\)$as_nl";
14085 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14086 esac;
14087 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14088 '
14089 export as_echo_n_body
14090 as_echo_n='sh -c $as_echo_n_body as_echo'
14091 fi
14092 export as_echo_body
14093 as_echo='sh -c $as_echo_body as_echo'
14094 fi
14095
14096 # The user is always right.
14097 if test "${PATH_SEPARATOR+set}" != set; then
14098 PATH_SEPARATOR=:
14099 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14100 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14101 PATH_SEPARATOR=';'
14102 }
14103 fi
14104
14105
14106 # IFS
14107 # We need space, tab and new line, in precisely that order. Quoting is
14108 # there to prevent editors from complaining about space-tab.
14109 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14110 # splitting by setting IFS to empty value.)
14111 IFS=" "" $as_nl"
14112
14113 # Find who we are. Look in the path if we contain no directory separator.
14114 case $0 in #((
14115 *[\\/]* ) as_myself=$0 ;;
14116 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117 for as_dir in $PATH
14118 do
14119 IFS=$as_save_IFS
14120 test -z "$as_dir" && as_dir=.
14121 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14122 done
14123 IFS=$as_save_IFS
14124
14125 ;;
14126 esac
14127 # We did not find ourselves, most probably we were run as `sh COMMAND'
14128 # in which case we are not to be found in the path.
14129 if test "x$as_myself" = x; then
14130 as_myself=$0
14131 fi
14132 if test ! -f "$as_myself"; then
14133 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14134 exit 1
14135 fi
14136
14137 # Unset variables that we do not need and which cause bugs (e.g. in
14138 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14139 # suppresses any "Segmentation fault" message there. '((' could
14140 # trigger a bug in pdksh 5.2.14.
14141 for as_var in BASH_ENV ENV MAIL MAILPATH
14142 do eval test x\${$as_var+set} = xset \
14143 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14144 done
14145 PS1='$ '
14146 PS2='> '
14147 PS4='+ '
14148
14149 # NLS nuisances.
14150 LC_ALL=C
14151 export LC_ALL
14152 LANGUAGE=C
14153 export LANGUAGE
14154
14155 # CDPATH.
14156 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14157
14158
14159 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14160 # ----------------------------------------
14161 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14162 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14163 # script with STATUS, using 1 if that was 0.
14164 as_fn_error ()
14165 {
14166 as_status=$1; test $as_status -eq 0 && as_status=1
14167 if test "$4"; then
14168 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14169 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14170 fi
14171 $as_echo "$as_me: error: $2" >&2
14172 as_fn_exit $as_status
14173 } # as_fn_error
14174
14175
14176 # as_fn_set_status STATUS
14177 # -----------------------
14178 # Set $? to STATUS, without forking.
14179 as_fn_set_status ()
14180 {
14181 return $1
14182 } # as_fn_set_status
14183
14184 # as_fn_exit STATUS
14185 # -----------------
14186 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14187 as_fn_exit ()
14188 {
14189 set +e
14190 as_fn_set_status $1
14191 exit $1
14192 } # as_fn_exit
14193
14194 # as_fn_unset VAR
14195 # ---------------
14196 # Portably unset VAR.
14197 as_fn_unset ()
14198 {
14199 { eval $1=; unset $1;}
14200 }
14201 as_unset=as_fn_unset
14202 # as_fn_append VAR VALUE
14203 # ----------------------
14204 # Append the text in VALUE to the end of the definition contained in VAR. Take
14205 # advantage of any shell optimizations that allow amortized linear growth over
14206 # repeated appends, instead of the typical quadratic growth present in naive
14207 # implementations.
14208 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14209 eval 'as_fn_append ()
14210 {
14211 eval $1+=\$2
14212 }'
14213 else
14214 as_fn_append ()
14215 {
14216 eval $1=\$$1\$2
14217 }
14218 fi # as_fn_append
14219
14220 # as_fn_arith ARG...
14221 # ------------------
14222 # Perform arithmetic evaluation on the ARGs, and store the result in the
14223 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14224 # must be portable across $(()) and expr.
14225 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14226 eval 'as_fn_arith ()
14227 {
14228 as_val=$(( $* ))
14229 }'
14230 else
14231 as_fn_arith ()
14232 {
14233 as_val=`expr "$@" || test $? -eq 1`
14234 }
14235 fi # as_fn_arith
14236
14237
14238 if expr a : '\(a\)' >/dev/null 2>&1 &&
14239 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14240 as_expr=expr
14241 else
14242 as_expr=false
14243 fi
14244
14245 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14246 as_basename=basename
14247 else
14248 as_basename=false
14249 fi
14250
14251 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14252 as_dirname=dirname
14253 else
14254 as_dirname=false
14255 fi
14256
14257 as_me=`$as_basename -- "$0" ||
14258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14259 X"$0" : 'X\(//\)$' \| \
14260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14261 $as_echo X/"$0" |
14262 sed '/^.*\/\([^/][^/]*\)\/*$/{
14263 s//\1/
14264 q
14265 }
14266 /^X\/\(\/\/\)$/{
14267 s//\1/
14268 q
14269 }
14270 /^X\/\(\/\).*/{
14271 s//\1/
14272 q
14273 }
14274 s/.*/./; q'`
14275
14276 # Avoid depending upon Character Ranges.
14277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14280 as_cr_digits='0123456789'
14281 as_cr_alnum=$as_cr_Letters$as_cr_digits
14282
14283 ECHO_C= ECHO_N= ECHO_T=
14284 case `echo -n x` in #(((((
14285 -n*)
14286 case `echo 'xy\c'` in
14287 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14288 xy) ECHO_C='\c';;
14289 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14290 ECHO_T=' ';;
14291 esac;;
14292 *)
14293 ECHO_N='-n';;
14294 esac
14295
14296 rm -f conf$$ conf$$.exe conf$$.file
14297 if test -d conf$$.dir; then
14298 rm -f conf$$.dir/conf$$.file
14299 else
14300 rm -f conf$$.dir
14301 mkdir conf$$.dir 2>/dev/null
14302 fi
14303 if (echo >conf$$.file) 2>/dev/null; then
14304 if ln -s conf$$.file conf$$ 2>/dev/null; then
14305 as_ln_s='ln -s'
14306 # ... but there are two gotchas:
14307 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14308 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14309 # In both cases, we have to default to `cp -p'.
14310 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14311 as_ln_s='cp -p'
14312 elif ln conf$$.file conf$$ 2>/dev/null; then
14313 as_ln_s=ln
14314 else
14315 as_ln_s='cp -p'
14316 fi
14317 else
14318 as_ln_s='cp -p'
14319 fi
14320 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14321 rmdir conf$$.dir 2>/dev/null
14322
14323
14324 # as_fn_mkdir_p
14325 # -------------
14326 # Create "$as_dir" as a directory, including parents if necessary.
14327 as_fn_mkdir_p ()
14328 {
14329
14330 case $as_dir in #(
14331 -*) as_dir=./$as_dir;;
14332 esac
14333 test -d "$as_dir" || eval $as_mkdir_p || {
14334 as_dirs=
14335 while :; do
14336 case $as_dir in #(
14337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14338 *) as_qdir=$as_dir;;
14339 esac
14340 as_dirs="'$as_qdir' $as_dirs"
14341 as_dir=`$as_dirname -- "$as_dir" ||
14342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14343 X"$as_dir" : 'X\(//\)[^/]' \| \
14344 X"$as_dir" : 'X\(//\)$' \| \
14345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14346 $as_echo X"$as_dir" |
14347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14348 s//\1/
14349 q
14350 }
14351 /^X\(\/\/\)[^/].*/{
14352 s//\1/
14353 q
14354 }
14355 /^X\(\/\/\)$/{
14356 s//\1/
14357 q
14358 }
14359 /^X\(\/\).*/{
14360 s//\1/
14361 q
14362 }
14363 s/.*/./; q'`
14364 test -d "$as_dir" && break
14365 done
14366 test -z "$as_dirs" || eval "mkdir $as_dirs"
14367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14368
14369
14370 } # as_fn_mkdir_p
14371 if mkdir -p . 2>/dev/null; then
14372 as_mkdir_p='mkdir -p "$as_dir"'
14373 else
14374 test -d ./-p && rmdir ./-p
14375 as_mkdir_p=false
14376 fi
14377
14378 if test -x / >/dev/null 2>&1; then
14379 as_test_x='test -x'
14380 else
14381 if ls -dL / >/dev/null 2>&1; then
14382 as_ls_L_option=L
14383 else
14384 as_ls_L_option=
14385 fi
14386 as_test_x='
14387 eval sh -c '\''
14388 if test -d "$1"; then
14389 test -d "$1/.";
14390 else
14391 case $1 in #(
14392 -*)set "./$1";;
14393 esac;
14394 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14395 ???[sx]*):;;*)false;;esac;fi
14396 '\'' sh
14397 '
14398 fi
14399 as_executable_p=$as_test_x
14400
14401 # Sed expression to map a string onto a valid CPP name.
14402 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14403
14404 # Sed expression to map a string onto a valid variable name.
14405 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14406
14407
14408 exec 6>&1
14409 ## ----------------------------------- ##
14410 ## Main body of $CONFIG_STATUS script. ##
14411 ## ----------------------------------- ##
14412 _ASEOF
14413 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14414
14415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14416 # Save the log message, to keep $0 and so on meaningful, and to
14417 # report actual input values of CONFIG_FILES etc. instead of their
14418 # values after options handling.
14419 ac_log="
14420 This file was extended by ircd-hybrid $as_me 7.3-rc1, which was
14421 generated by GNU Autoconf 2.67. Invocation command line was
14422
14423 CONFIG_FILES = $CONFIG_FILES
14424 CONFIG_HEADERS = $CONFIG_HEADERS
14425 CONFIG_LINKS = $CONFIG_LINKS
14426 CONFIG_COMMANDS = $CONFIG_COMMANDS
14427 $ $0 $@
14428
14429 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14430 "
14431
14432 _ACEOF
14433
14434 case $ac_config_files in *"
14435 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14436 esac
14437
14438 case $ac_config_headers in *"
14439 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14440 esac
14441
14442
14443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14444 # Files that config.status was made for.
14445 config_files="$ac_config_files"
14446 config_headers="$ac_config_headers"
14447 config_commands="$ac_config_commands"
14448
14449 _ACEOF
14450
14451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14452 ac_cs_usage="\
14453 \`$as_me' instantiates files and other configuration actions
14454 from templates according to the current configuration. Unless the files
14455 and actions are specified as TAGs, all are instantiated by default.
14456
14457 Usage: $0 [OPTION]... [TAG]...
14458
14459 -h, --help print this help, then exit
14460 -V, --version print version number and configuration settings, then exit
14461 --config print configuration, then exit
14462 -q, --quiet, --silent
14463 do not print progress messages
14464 -d, --debug don't remove temporary files
14465 --recheck update $as_me by reconfiguring in the same conditions
14466 --file=FILE[:TEMPLATE]
14467 instantiate the configuration file FILE
14468 --header=FILE[:TEMPLATE]
14469 instantiate the configuration header FILE
14470
14471 Configuration files:
14472 $config_files
14473
14474 Configuration headers:
14475 $config_headers
14476
14477 Configuration commands:
14478 $config_commands
14479
14480 Report bugs to <bugs@ircd-hybrid.org>."
14481
14482 _ACEOF
14483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14484 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14485 ac_cs_version="\\
14486 ircd-hybrid config.status 7.3-rc1
14487 configured by $0, generated by GNU Autoconf 2.67,
14488 with options \\"\$ac_cs_config\\"
14489
14490 Copyright (C) 2010 Free Software Foundation, Inc.
14491 This config.status script is free software; the Free Software Foundation
14492 gives unlimited permission to copy, distribute and modify it."
14493
14494 ac_pwd='$ac_pwd'
14495 srcdir='$srcdir'
14496 INSTALL='$INSTALL'
14497 MKDIR_P='$MKDIR_P'
14498 AWK='$AWK'
14499 test -n "\$AWK" || AWK=awk
14500 _ACEOF
14501
14502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14503 # The default lists apply if the user does not specify any file.
14504 ac_need_defaults=:
14505 while test $# != 0
14506 do
14507 case $1 in
14508 --*=?*)
14509 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14510 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14511 ac_shift=:
14512 ;;
14513 --*=)
14514 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14515 ac_optarg=
14516 ac_shift=:
14517 ;;
14518 *)
14519 ac_option=$1
14520 ac_optarg=$2
14521 ac_shift=shift
14522 ;;
14523 esac
14524
14525 case $ac_option in
14526 # Handling of the options.
14527 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14528 ac_cs_recheck=: ;;
14529 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14530 $as_echo "$ac_cs_version"; exit ;;
14531 --config | --confi | --conf | --con | --co | --c )
14532 $as_echo "$ac_cs_config"; exit ;;
14533 --debug | --debu | --deb | --de | --d | -d )
14534 debug=: ;;
14535 --file | --fil | --fi | --f )
14536 $ac_shift
14537 case $ac_optarg in
14538 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14539 '') as_fn_error $? "missing file argument" ;;
14540 esac
14541 as_fn_append CONFIG_FILES " '$ac_optarg'"
14542 ac_need_defaults=false;;
14543 --header | --heade | --head | --hea )
14544 $ac_shift
14545 case $ac_optarg in
14546 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14547 esac
14548 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14549 ac_need_defaults=false;;
14550 --he | --h)
14551 # Conflict between --help and --header
14552 as_fn_error $? "ambiguous option: \`$1'
14553 Try \`$0 --help' for more information.";;
14554 --help | --hel | -h )
14555 $as_echo "$ac_cs_usage"; exit ;;
14556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14557 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14558 ac_cs_silent=: ;;
14559
14560 # This is an error.
14561 -*) as_fn_error $? "unrecognized option: \`$1'
14562 Try \`$0 --help' for more information." ;;
14563
14564 *) as_fn_append ac_config_targets " $1"
14565 ac_need_defaults=false ;;
14566
14567 esac
14568 shift
14569 done
14570
14571 ac_configure_extra_args=
14572
14573 if $ac_cs_silent; then
14574 exec 6>/dev/null
14575 ac_configure_extra_args="$ac_configure_extra_args --silent"
14576 fi
14577
14578 _ACEOF
14579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14580 if \$ac_cs_recheck; then
14581 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14582 shift
14583 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14584 CONFIG_SHELL='$SHELL'
14585 export CONFIG_SHELL
14586 exec "\$@"
14587 fi
14588
14589 _ACEOF
14590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14591 exec 5>>config.log
14592 {
14593 echo
14594 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14595 ## Running $as_me. ##
14596 _ASBOX
14597 $as_echo "$ac_log"
14598 } >&5
14599
14600 _ACEOF
14601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14602 #
14603 # INIT-COMMANDS
14604 #
14605 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14606
14607
14608 # The HP-UX ksh and POSIX shell print the target directory to stdout
14609 # if CDPATH is set.
14610 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14611
14612 sed_quote_subst='$sed_quote_subst'
14613 double_quote_subst='$double_quote_subst'
14614 delay_variable_subst='$delay_variable_subst'
14615 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14616 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14617 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14618 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14619 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14620 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14621 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14622 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14623 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14624 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14625 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14626 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14627 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14628 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14629 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14630 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14631 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14632 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14633 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14634 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14635 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14636 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14637 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14638 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14639 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14640 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14641 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14642 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14643 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14644 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14645 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14646 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14647 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14648 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14649 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14650 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14651 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14652 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14653 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14654 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14655 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14656 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14657 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14658 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14659 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14660 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14661 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14662 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14663 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"`'
14664 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14665 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14666 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14667 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14668 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14669 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14670 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14671 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14672 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14673 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14674 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14675 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14676 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14677 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14678 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14679 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14680 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14681 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14682 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14683 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14684 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14685 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14686 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14687 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14688 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14689 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14690 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14691 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14692 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14693 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14694 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14695 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14696 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14697 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14698 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14699 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14700 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14701 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14702 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14703 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14704 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14705 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14706 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14707 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14708 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14709 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14710 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14711 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14712 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14713 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14714 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14715 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14716 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14717 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14718 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14719 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14720 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14721 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14722 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14723 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14724 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14725 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14726 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14727 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14728 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14729 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14730 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14731 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14732 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14733 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14734 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14735
14736 LTCC='$LTCC'
14737 LTCFLAGS='$LTCFLAGS'
14738 compiler='$compiler_DEFAULT'
14739
14740 # A function that is used when there is no print builtin or printf.
14741 func_fallback_echo ()
14742 {
14743 eval 'cat <<_LTECHO_EOF
14744 \$1
14745 _LTECHO_EOF'
14746 }
14747
14748 # Quote evaled strings.
14749 for var in SHELL \
14750 ECHO \
14751 SED \
14752 GREP \
14753 EGREP \
14754 FGREP \
14755 LD \
14756 NM \
14757 LN_S \
14758 lt_SP2NL \
14759 lt_NL2SP \
14760 reload_flag \
14761 OBJDUMP \
14762 deplibs_check_method \
14763 file_magic_cmd \
14764 AR \
14765 AR_FLAGS \
14766 STRIP \
14767 RANLIB \
14768 CC \
14769 CFLAGS \
14770 compiler \
14771 lt_cv_sys_global_symbol_pipe \
14772 lt_cv_sys_global_symbol_to_cdecl \
14773 lt_cv_sys_global_symbol_to_c_name_address \
14774 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14775 lt_prog_compiler_no_builtin_flag \
14776 lt_prog_compiler_wl \
14777 lt_prog_compiler_pic \
14778 lt_prog_compiler_static \
14779 lt_cv_prog_compiler_c_o \
14780 need_locks \
14781 DSYMUTIL \
14782 NMEDIT \
14783 LIPO \
14784 OTOOL \
14785 OTOOL64 \
14786 shrext_cmds \
14787 export_dynamic_flag_spec \
14788 whole_archive_flag_spec \
14789 compiler_needs_object \
14790 with_gnu_ld \
14791 allow_undefined_flag \
14792 no_undefined_flag \
14793 hardcode_libdir_flag_spec \
14794 hardcode_libdir_flag_spec_ld \
14795 hardcode_libdir_separator \
14796 fix_srcfile_path \
14797 exclude_expsyms \
14798 include_expsyms \
14799 file_list_spec \
14800 variables_saved_for_relink \
14801 libname_spec \
14802 library_names_spec \
14803 soname_spec \
14804 install_override_mode \
14805 finish_eval \
14806 old_striplib \
14807 striplib; do
14808 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14809 *[\\\\\\\`\\"\\\$]*)
14810 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14811 ;;
14812 *)
14813 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14814 ;;
14815 esac
14816 done
14817
14818 # Double-quote double-evaled strings.
14819 for var in reload_cmds \
14820 old_postinstall_cmds \
14821 old_postuninstall_cmds \
14822 old_archive_cmds \
14823 extract_expsyms_cmds \
14824 old_archive_from_new_cmds \
14825 old_archive_from_expsyms_cmds \
14826 archive_cmds \
14827 archive_expsym_cmds \
14828 module_cmds \
14829 module_expsym_cmds \
14830 export_symbols_cmds \
14831 prelink_cmds \
14832 postinstall_cmds \
14833 postuninstall_cmds \
14834 finish_cmds \
14835 sys_lib_search_path_spec \
14836 sys_lib_dlsearch_path_spec; do
14837 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14838 *[\\\\\\\`\\"\\\$]*)
14839 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14840 ;;
14841 *)
14842 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14843 ;;
14844 esac
14845 done
14846
14847 ac_aux_dir='$ac_aux_dir'
14848 xsi_shell='$xsi_shell'
14849 lt_shell_append='$lt_shell_append'
14850
14851 # See if we are running on zsh, and set the options which allow our
14852 # commands through without removal of \ escapes INIT.
14853 if test -n "\${ZSH_VERSION+set}" ; then
14854 setopt NO_GLOB_SUBST
14855 fi
14856
14857
14858 PACKAGE='$PACKAGE'
14859 VERSION='$VERSION'
14860 TIMESTAMP='$TIMESTAMP'
14861 RM='$RM'
14862 ofile='$ofile'
14863
14864
14865
14866
14867 _ACEOF
14868
14869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14870
14871 # Handling of arguments.
14872 for ac_config_target in $ac_config_targets
14873 do
14874 case $ac_config_target in
14875 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14876 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14877 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14878 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14879 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14880 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14881 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14882 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
14883 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14884 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
14885 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
14886 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14887 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
14888 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14889 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14890 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14891 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14892 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14893
14894 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14895 esac
14896 done
14897
14898
14899 # If the user did not use the arguments to specify the items to instantiate,
14900 # then the envvar interface is used. Set only those that are not.
14901 # We use the long form for the default assignment because of an extremely
14902 # bizarre bug on SunOS 4.1.3.
14903 if $ac_need_defaults; then
14904 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14905 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14906 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14907 fi
14908
14909 # Have a temporary directory for convenience. Make it in the build tree
14910 # simply because there is no reason against having it here, and in addition,
14911 # creating and moving files from /tmp can sometimes cause problems.
14912 # Hook for its removal unless debugging.
14913 # Note that there is a small window in which the directory will not be cleaned:
14914 # after its creation but before its name has been assigned to `$tmp'.
14915 $debug ||
14916 {
14917 tmp=
14918 trap 'exit_status=$?
14919 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14920 ' 0
14921 trap 'as_fn_exit 1' 1 2 13 15
14922 }
14923 # Create a (secure) tmp directory for tmp files.
14924
14925 {
14926 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14927 test -n "$tmp" && test -d "$tmp"
14928 } ||
14929 {
14930 tmp=./conf$$-$RANDOM
14931 (umask 077 && mkdir "$tmp")
14932 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14933
14934 # Set up the scripts for CONFIG_FILES section.
14935 # No need to generate them if there are no CONFIG_FILES.
14936 # This happens for instance with `./config.status config.h'.
14937 if test -n "$CONFIG_FILES"; then
14938
14939
14940 ac_cr=`echo X | tr X '\015'`
14941 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14942 # But we know of no other shell where ac_cr would be empty at this
14943 # point, so we can use a bashism as a fallback.
14944 if test "x$ac_cr" = x; then
14945 eval ac_cr=\$\'\\r\'
14946 fi
14947 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14948 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14949 ac_cs_awk_cr='\\r'
14950 else
14951 ac_cs_awk_cr=$ac_cr
14952 fi
14953
14954 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14955 _ACEOF
14956
14957
14958 {
14959 echo "cat >conf$$subs.awk <<_ACEOF" &&
14960 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14961 echo "_ACEOF"
14962 } >conf$$subs.sh ||
14963 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14964 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14965 ac_delim='%!_!# '
14966 for ac_last_try in false false false false false :; do
14967 . ./conf$$subs.sh ||
14968 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14969
14970 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14971 if test $ac_delim_n = $ac_delim_num; then
14972 break
14973 elif $ac_last_try; then
14974 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14975 else
14976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14977 fi
14978 done
14979 rm -f conf$$subs.sh
14980
14981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14982 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14983 _ACEOF
14984 sed -n '
14985 h
14986 s/^/S["/; s/!.*/"]=/
14987 p
14988 g
14989 s/^[^!]*!//
14990 :repl
14991 t repl
14992 s/'"$ac_delim"'$//
14993 t delim
14994 :nl
14995 h
14996 s/\(.\{148\}\)..*/\1/
14997 t more1
14998 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14999 p
15000 n
15001 b repl
15002 :more1
15003 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15004 p
15005 g
15006 s/.\{148\}//
15007 t nl
15008 :delim
15009 h
15010 s/\(.\{148\}\)..*/\1/
15011 t more2
15012 s/["\\]/\\&/g; s/^/"/; s/$/"/
15013 p
15014 b
15015 :more2
15016 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15017 p
15018 g
15019 s/.\{148\}//
15020 t delim
15021 ' <conf$$subs.awk | sed '
15022 /^[^""]/{
15023 N
15024 s/\n//
15025 }
15026 ' >>$CONFIG_STATUS || ac_write_fail=1
15027 rm -f conf$$subs.awk
15028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15029 _ACAWK
15030 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15031 for (key in S) S_is_set[key] = 1
15032 FS = ""
15033
15034 }
15035 {
15036 line = $ 0
15037 nfields = split(line, field, "@")
15038 substed = 0
15039 len = length(field[1])
15040 for (i = 2; i < nfields; i++) {
15041 key = field[i]
15042 keylen = length(key)
15043 if (S_is_set[key]) {
15044 value = S[key]
15045 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15046 len += length(value) + length(field[++i])
15047 substed = 1
15048 } else
15049 len += 1 + keylen
15050 }
15051
15052 print line
15053 }
15054
15055 _ACAWK
15056 _ACEOF
15057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15058 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15059 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15060 else
15061 cat
15062 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15063 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15064 _ACEOF
15065
15066 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15067 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15068 # trailing colons and then remove the whole line if VPATH becomes empty
15069 # (actually we leave an empty line to preserve line numbers).
15070 if test "x$srcdir" = x.; then
15071 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15072 h
15073 s///
15074 s/^/:/
15075 s/[ ]*$/:/
15076 s/:\$(srcdir):/:/g
15077 s/:\${srcdir}:/:/g
15078 s/:@srcdir@:/:/g
15079 s/^:*//
15080 s/:*$//
15081 x
15082 s/\(=[ ]*\).*/\1/
15083 G
15084 s/\n//
15085 s/^[^=]*=[ ]*$//
15086 }'
15087 fi
15088
15089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15090 fi # test -n "$CONFIG_FILES"
15091
15092 # Set up the scripts for CONFIG_HEADERS section.
15093 # No need to generate them if there are no CONFIG_HEADERS.
15094 # This happens for instance with `./config.status Makefile'.
15095 if test -n "$CONFIG_HEADERS"; then
15096 cat >"$tmp/defines.awk" <<\_ACAWK ||
15097 BEGIN {
15098 _ACEOF
15099
15100 # Transform confdefs.h into an awk script `defines.awk', embedded as
15101 # here-document in config.status, that substitutes the proper values into
15102 # config.h.in to produce config.h.
15103
15104 # Create a delimiter string that does not exist in confdefs.h, to ease
15105 # handling of long lines.
15106 ac_delim='%!_!# '
15107 for ac_last_try in false false :; do
15108 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15109 if test -z "$ac_t"; then
15110 break
15111 elif $ac_last_try; then
15112 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15113 else
15114 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15115 fi
15116 done
15117
15118 # For the awk script, D is an array of macro values keyed by name,
15119 # likewise P contains macro parameters if any. Preserve backslash
15120 # newline sequences.
15121
15122 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15123 sed -n '
15124 s/.\{148\}/&'"$ac_delim"'/g
15125 t rset
15126 :rset
15127 s/^[ ]*#[ ]*define[ ][ ]*/ /
15128 t def
15129 d
15130 :def
15131 s/\\$//
15132 t bsnl
15133 s/["\\]/\\&/g
15134 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15135 D["\1"]=" \3"/p
15136 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15137 d
15138 :bsnl
15139 s/["\\]/\\&/g
15140 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15141 D["\1"]=" \3\\\\\\n"\\/p
15142 t cont
15143 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15144 t cont
15145 d
15146 :cont
15147 n
15148 s/.\{148\}/&'"$ac_delim"'/g
15149 t clear
15150 :clear
15151 s/\\$//
15152 t bsnlc
15153 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15154 d
15155 :bsnlc
15156 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15157 b cont
15158 ' <confdefs.h | sed '
15159 s/'"$ac_delim"'/"\\\
15160 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15161
15162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15163 for (key in D) D_is_set[key] = 1
15164 FS = ""
15165 }
15166 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15167 line = \$ 0
15168 split(line, arg, " ")
15169 if (arg[1] == "#") {
15170 defundef = arg[2]
15171 mac1 = arg[3]
15172 } else {
15173 defundef = substr(arg[1], 2)
15174 mac1 = arg[2]
15175 }
15176 split(mac1, mac2, "(") #)
15177 macro = mac2[1]
15178 prefix = substr(line, 1, index(line, defundef) - 1)
15179 if (D_is_set[macro]) {
15180 # Preserve the white space surrounding the "#".
15181 print prefix "define", macro P[macro] D[macro]
15182 next
15183 } else {
15184 # Replace #undef with comments. This is necessary, for example,
15185 # in the case of _POSIX_SOURCE, which is predefined and required
15186 # on some systems where configure will not decide to define it.
15187 if (defundef == "undef") {
15188 print "/*", prefix defundef, macro, "*/"
15189 next
15190 }
15191 }
15192 }
15193 { print }
15194 _ACAWK
15195 _ACEOF
15196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15197 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15198 fi # test -n "$CONFIG_HEADERS"
15199
15200
15201 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15202 shift
15203 for ac_tag
15204 do
15205 case $ac_tag in
15206 :[FHLC]) ac_mode=$ac_tag; continue;;
15207 esac
15208 case $ac_mode$ac_tag in
15209 :[FHL]*:*);;
15210 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15211 :[FH]-) ac_tag=-:-;;
15212 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15213 esac
15214 ac_save_IFS=$IFS
15215 IFS=:
15216 set x $ac_tag
15217 IFS=$ac_save_IFS
15218 shift
15219 ac_file=$1
15220 shift
15221
15222 case $ac_mode in
15223 :L) ac_source=$1;;
15224 :[FH])
15225 ac_file_inputs=
15226 for ac_f
15227 do
15228 case $ac_f in
15229 -) ac_f="$tmp/stdin";;
15230 *) # Look for the file first in the build tree, then in the source tree
15231 # (if the path is not absolute). The absolute path cannot be DOS-style,
15232 # because $ac_f cannot contain `:'.
15233 test -f "$ac_f" ||
15234 case $ac_f in
15235 [\\/$]*) false;;
15236 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15237 esac ||
15238 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15239 esac
15240 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15241 as_fn_append ac_file_inputs " '$ac_f'"
15242 done
15243
15244 # Let's still pretend it is `configure' which instantiates (i.e., don't
15245 # use $as_me), people would be surprised to read:
15246 # /* config.h. Generated by config.status. */
15247 configure_input='Generated from '`
15248 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15249 `' by configure.'
15250 if test x"$ac_file" != x-; then
15251 configure_input="$ac_file. $configure_input"
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15253 $as_echo "$as_me: creating $ac_file" >&6;}
15254 fi
15255 # Neutralize special characters interpreted by sed in replacement strings.
15256 case $configure_input in #(
15257 *\&* | *\|* | *\\* )
15258 ac_sed_conf_input=`$as_echo "$configure_input" |
15259 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15260 *) ac_sed_conf_input=$configure_input;;
15261 esac
15262
15263 case $ac_tag in
15264 *:-:* | *:-) cat >"$tmp/stdin" \
15265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15266 esac
15267 ;;
15268 esac
15269
15270 ac_dir=`$as_dirname -- "$ac_file" ||
15271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15272 X"$ac_file" : 'X\(//\)[^/]' \| \
15273 X"$ac_file" : 'X\(//\)$' \| \
15274 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15275 $as_echo X"$ac_file" |
15276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15277 s//\1/
15278 q
15279 }
15280 /^X\(\/\/\)[^/].*/{
15281 s//\1/
15282 q
15283 }
15284 /^X\(\/\/\)$/{
15285 s//\1/
15286 q
15287 }
15288 /^X\(\/\).*/{
15289 s//\1/
15290 q
15291 }
15292 s/.*/./; q'`
15293 as_dir="$ac_dir"; as_fn_mkdir_p
15294 ac_builddir=.
15295
15296 case "$ac_dir" in
15297 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15298 *)
15299 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15300 # A ".." for each directory in $ac_dir_suffix.
15301 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15302 case $ac_top_builddir_sub in
15303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15305 esac ;;
15306 esac
15307 ac_abs_top_builddir=$ac_pwd
15308 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15309 # for backward compatibility:
15310 ac_top_builddir=$ac_top_build_prefix
15311
15312 case $srcdir in
15313 .) # We are building in place.
15314 ac_srcdir=.
15315 ac_top_srcdir=$ac_top_builddir_sub
15316 ac_abs_top_srcdir=$ac_pwd ;;
15317 [\\/]* | ?:[\\/]* ) # Absolute name.
15318 ac_srcdir=$srcdir$ac_dir_suffix;
15319 ac_top_srcdir=$srcdir
15320 ac_abs_top_srcdir=$srcdir ;;
15321 *) # Relative name.
15322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15323 ac_top_srcdir=$ac_top_build_prefix$srcdir
15324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15325 esac
15326 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15327
15328
15329 case $ac_mode in
15330 :F)
15331 #
15332 # CONFIG_FILE
15333 #
15334
15335 case $INSTALL in
15336 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15337 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15338 esac
15339 ac_MKDIR_P=$MKDIR_P
15340 case $MKDIR_P in
15341 [\\/$]* | ?:[\\/]* ) ;;
15342 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15343 esac
15344 _ACEOF
15345
15346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15347 # If the template does not know about datarootdir, expand it.
15348 # FIXME: This hack should be removed a few years after 2.60.
15349 ac_datarootdir_hack=; ac_datarootdir_seen=
15350 ac_sed_dataroot='
15351 /datarootdir/ {
15352 p
15353 q
15354 }
15355 /@datadir@/p
15356 /@docdir@/p
15357 /@infodir@/p
15358 /@localedir@/p
15359 /@mandir@/p'
15360 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15361 *datarootdir*) ac_datarootdir_seen=yes;;
15362 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15364 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15365 _ACEOF
15366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15367 ac_datarootdir_hack='
15368 s&@datadir@&$datadir&g
15369 s&@docdir@&$docdir&g
15370 s&@infodir@&$infodir&g
15371 s&@localedir@&$localedir&g
15372 s&@mandir@&$mandir&g
15373 s&\\\${datarootdir}&$datarootdir&g' ;;
15374 esac
15375 _ACEOF
15376
15377 # Neutralize VPATH when `$srcdir' = `.'.
15378 # Shell code in configure.ac might set extrasub.
15379 # FIXME: do we really want to maintain this feature?
15380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15381 ac_sed_extra="$ac_vpsub
15382 $extrasub
15383 _ACEOF
15384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385 :t
15386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15387 s|@configure_input@|$ac_sed_conf_input|;t t
15388 s&@top_builddir@&$ac_top_builddir_sub&;t t
15389 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15390 s&@srcdir@&$ac_srcdir&;t t
15391 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15392 s&@top_srcdir@&$ac_top_srcdir&;t t
15393 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15394 s&@builddir@&$ac_builddir&;t t
15395 s&@abs_builddir@&$ac_abs_builddir&;t t
15396 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15397 s&@INSTALL@&$ac_INSTALL&;t t
15398 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15399 $ac_datarootdir_hack
15400 "
15401 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15403
15404 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15405 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15406 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15408 which seems to be undefined. Please make sure it is defined" >&5
15409 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15410 which seems to be undefined. Please make sure it is defined" >&2;}
15411
15412 rm -f "$tmp/stdin"
15413 case $ac_file in
15414 -) cat "$tmp/out" && rm -f "$tmp/out";;
15415 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15416 esac \
15417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15418 ;;
15419 :H)
15420 #
15421 # CONFIG_HEADER
15422 #
15423 if test x"$ac_file" != x-; then
15424 {
15425 $as_echo "/* $configure_input */" \
15426 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15427 } >"$tmp/config.h" \
15428 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15429 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15431 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15432 else
15433 rm -f "$ac_file"
15434 mv "$tmp/config.h" "$ac_file" \
15435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15436 fi
15437 else
15438 $as_echo "/* $configure_input */" \
15439 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15440 || as_fn_error $? "could not create -" "$LINENO" 5
15441 fi
15442 # Compute "$ac_file"'s index in $config_headers.
15443 _am_arg="$ac_file"
15444 _am_stamp_count=1
15445 for _am_header in $config_headers :; do
15446 case $_am_header in
15447 $_am_arg | $_am_arg:* )
15448 break ;;
15449 * )
15450 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15451 esac
15452 done
15453 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15454 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15455 X"$_am_arg" : 'X\(//\)[^/]' \| \
15456 X"$_am_arg" : 'X\(//\)$' \| \
15457 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15458 $as_echo X"$_am_arg" |
15459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15460 s//\1/
15461 q
15462 }
15463 /^X\(\/\/\)[^/].*/{
15464 s//\1/
15465 q
15466 }
15467 /^X\(\/\/\)$/{
15468 s//\1/
15469 q
15470 }
15471 /^X\(\/\).*/{
15472 s//\1/
15473 q
15474 }
15475 s/.*/./; q'`/stamp-h$_am_stamp_count
15476 ;;
15477
15478 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15479 $as_echo "$as_me: executing $ac_file commands" >&6;}
15480 ;;
15481 esac
15482
15483
15484 case $ac_file$ac_mode in
15485 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15486 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15487 # are listed without --file. Let's play safe and only enable the eval
15488 # if we detect the quoting.
15489 case $CONFIG_FILES in
15490 *\'*) eval set x "$CONFIG_FILES" ;;
15491 *) set x $CONFIG_FILES ;;
15492 esac
15493 shift
15494 for mf
15495 do
15496 # Strip MF so we end up with the name of the file.
15497 mf=`echo "$mf" | sed -e 's/:.*$//'`
15498 # Check whether this is an Automake generated Makefile or not.
15499 # We used to match only the files named `Makefile.in', but
15500 # some people rename them; so instead we look at the file content.
15501 # Grep'ing the first line is not enough: some people post-process
15502 # each Makefile.in and add a new line on top of each file to say so.
15503 # Grep'ing the whole file is not good either: AIX grep has a line
15504 # limit of 2048, but all sed's we know have understand at least 4000.
15505 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15506 dirpart=`$as_dirname -- "$mf" ||
15507 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15508 X"$mf" : 'X\(//\)[^/]' \| \
15509 X"$mf" : 'X\(//\)$' \| \
15510 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15511 $as_echo X"$mf" |
15512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15513 s//\1/
15514 q
15515 }
15516 /^X\(\/\/\)[^/].*/{
15517 s//\1/
15518 q
15519 }
15520 /^X\(\/\/\)$/{
15521 s//\1/
15522 q
15523 }
15524 /^X\(\/\).*/{
15525 s//\1/
15526 q
15527 }
15528 s/.*/./; q'`
15529 else
15530 continue
15531 fi
15532 # Extract the definition of DEPDIR, am__include, and am__quote
15533 # from the Makefile without running `make'.
15534 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15535 test -z "$DEPDIR" && continue
15536 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15537 test -z "am__include" && continue
15538 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15539 # When using ansi2knr, U may be empty or an underscore; expand it
15540 U=`sed -n 's/^U = //p' < "$mf"`
15541 # Find all dependency output files, they are included files with
15542 # $(DEPDIR) in their names. We invoke sed twice because it is the
15543 # simplest approach to changing $(DEPDIR) to its actual value in the
15544 # expansion.
15545 for file in `sed -n "
15546 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15547 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15548 # Make sure the directory exists.
15549 test -f "$dirpart/$file" && continue
15550 fdir=`$as_dirname -- "$file" ||
15551 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15552 X"$file" : 'X\(//\)[^/]' \| \
15553 X"$file" : 'X\(//\)$' \| \
15554 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15555 $as_echo X"$file" |
15556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15557 s//\1/
15558 q
15559 }
15560 /^X\(\/\/\)[^/].*/{
15561 s//\1/
15562 q
15563 }
15564 /^X\(\/\/\)$/{
15565 s//\1/
15566 q
15567 }
15568 /^X\(\/\).*/{
15569 s//\1/
15570 q
15571 }
15572 s/.*/./; q'`
15573 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15574 # echo "creating $dirpart/$file"
15575 echo '# dummy' > "$dirpart/$file"
15576 done
15577 done
15578 }
15579 ;;
15580 "libtool":C)
15581
15582 # See if we are running on zsh, and set the options which allow our
15583 # commands through without removal of \ escapes.
15584 if test -n "${ZSH_VERSION+set}" ; then
15585 setopt NO_GLOB_SUBST
15586 fi
15587
15588 cfgfile="${ofile}T"
15589 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15590 $RM "$cfgfile"
15591
15592 cat <<_LT_EOF >> "$cfgfile"
15593 #! $SHELL
15594
15595 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15596 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15597 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15598 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15599 #
15600 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15601 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15602 # Inc.
15603 # Written by Gordon Matzigkeit, 1996
15604 #
15605 # This file is part of GNU Libtool.
15606 #
15607 # GNU Libtool is free software; you can redistribute it and/or
15608 # modify it under the terms of the GNU General Public License as
15609 # published by the Free Software Foundation; either version 2 of
15610 # the License, or (at your option) any later version.
15611 #
15612 # As a special exception to the GNU General Public License,
15613 # if you distribute this file as part of a program or library that
15614 # is built using GNU Libtool, you may include this file under the
15615 # same distribution terms that you use for the rest of that program.
15616 #
15617 # GNU Libtool is distributed in the hope that it will be useful,
15618 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15619 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15620 # GNU General Public License for more details.
15621 #
15622 # You should have received a copy of the GNU General Public License
15623 # along with GNU Libtool; see the file COPYING. If not, a copy
15624 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15625 # obtained by writing to the Free Software Foundation, Inc.,
15626 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15627
15628
15629 # The names of the tagged configurations supported by this script.
15630 available_tags=""
15631
15632 # ### BEGIN LIBTOOL CONFIG
15633
15634 # Which release of libtool.m4 was used?
15635 macro_version=$macro_version
15636 macro_revision=$macro_revision
15637
15638 # Whether or not to build static libraries.
15639 build_old_libs=$enable_static
15640
15641 # Whether or not to build shared libraries.
15642 build_libtool_libs=$enable_shared
15643
15644 # What type of objects to build.
15645 pic_mode=$pic_mode
15646
15647 # Whether or not to optimize for fast installation.
15648 fast_install=$enable_fast_install
15649
15650 # Shell to use when invoking shell scripts.
15651 SHELL=$lt_SHELL
15652
15653 # An echo program that protects backslashes.
15654 ECHO=$lt_ECHO
15655
15656 # The host system.
15657 host_alias=$host_alias
15658 host=$host
15659 host_os=$host_os
15660
15661 # The build system.
15662 build_alias=$build_alias
15663 build=$build
15664 build_os=$build_os
15665
15666 # A sed program that does not truncate output.
15667 SED=$lt_SED
15668
15669 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15670 Xsed="\$SED -e 1s/^X//"
15671
15672 # A grep program that handles long lines.
15673 GREP=$lt_GREP
15674
15675 # An ERE matcher.
15676 EGREP=$lt_EGREP
15677
15678 # A literal string matcher.
15679 FGREP=$lt_FGREP
15680
15681 # A BSD- or MS-compatible name lister.
15682 NM=$lt_NM
15683
15684 # Whether we need soft or hard links.
15685 LN_S=$lt_LN_S
15686
15687 # What is the maximum length of a command?
15688 max_cmd_len=$max_cmd_len
15689
15690 # Object file suffix (normally "o").
15691 objext=$ac_objext
15692
15693 # Executable file suffix (normally "").
15694 exeext=$exeext
15695
15696 # whether the shell understands "unset".
15697 lt_unset=$lt_unset
15698
15699 # turn spaces into newlines.
15700 SP2NL=$lt_lt_SP2NL
15701
15702 # turn newlines into spaces.
15703 NL2SP=$lt_lt_NL2SP
15704
15705 # An object symbol dumper.
15706 OBJDUMP=$lt_OBJDUMP
15707
15708 # Method to check whether dependent libraries are shared objects.
15709 deplibs_check_method=$lt_deplibs_check_method
15710
15711 # Command to use when deplibs_check_method == "file_magic".
15712 file_magic_cmd=$lt_file_magic_cmd
15713
15714 # The archiver.
15715 AR=$lt_AR
15716 AR_FLAGS=$lt_AR_FLAGS
15717
15718 # A symbol stripping program.
15719 STRIP=$lt_STRIP
15720
15721 # Commands used to install an old-style archive.
15722 RANLIB=$lt_RANLIB
15723 old_postinstall_cmds=$lt_old_postinstall_cmds
15724 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15725
15726 # Whether to use a lock for old archive extraction.
15727 lock_old_archive_extraction=$lock_old_archive_extraction
15728
15729 # A C compiler.
15730 LTCC=$lt_CC
15731
15732 # LTCC compiler flags.
15733 LTCFLAGS=$lt_CFLAGS
15734
15735 # Take the output of nm and produce a listing of raw symbols and C names.
15736 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15737
15738 # Transform the output of nm in a proper C declaration.
15739 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15740
15741 # Transform the output of nm in a C name address pair.
15742 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15743
15744 # Transform the output of nm in a C name address pair when lib prefix is needed.
15745 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15746
15747 # The name of the directory that contains temporary libtool files.
15748 objdir=$objdir
15749
15750 # Used to examine libraries when file_magic_cmd begins with "file".
15751 MAGIC_CMD=$MAGIC_CMD
15752
15753 # Must we lock files when doing compilation?
15754 need_locks=$lt_need_locks
15755
15756 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15757 DSYMUTIL=$lt_DSYMUTIL
15758
15759 # Tool to change global to local symbols on Mac OS X.
15760 NMEDIT=$lt_NMEDIT
15761
15762 # Tool to manipulate fat objects and archives on Mac OS X.
15763 LIPO=$lt_LIPO
15764
15765 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15766 OTOOL=$lt_OTOOL
15767
15768 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15769 OTOOL64=$lt_OTOOL64
15770
15771 # Old archive suffix (normally "a").
15772 libext=$libext
15773
15774 # Shared library suffix (normally ".so").
15775 shrext_cmds=$lt_shrext_cmds
15776
15777 # The commands to extract the exported symbol list from a shared archive.
15778 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15779
15780 # Variables whose values should be saved in libtool wrapper scripts and
15781 # restored at link time.
15782 variables_saved_for_relink=$lt_variables_saved_for_relink
15783
15784 # Do we need the "lib" prefix for modules?
15785 need_lib_prefix=$need_lib_prefix
15786
15787 # Do we need a version for libraries?
15788 need_version=$need_version
15789
15790 # Library versioning type.
15791 version_type=$version_type
15792
15793 # Shared library runtime path variable.
15794 runpath_var=$runpath_var
15795
15796 # Shared library path variable.
15797 shlibpath_var=$shlibpath_var
15798
15799 # Is shlibpath searched before the hard-coded library search path?
15800 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15801
15802 # Format of library name prefix.
15803 libname_spec=$lt_libname_spec
15804
15805 # List of archive names. First name is the real one, the rest are links.
15806 # The last name is the one that the linker finds with -lNAME
15807 library_names_spec=$lt_library_names_spec
15808
15809 # The coded name of the library, if different from the real name.
15810 soname_spec=$lt_soname_spec
15811
15812 # Permission mode override for installation of shared libraries.
15813 install_override_mode=$lt_install_override_mode
15814
15815 # Command to use after installation of a shared archive.
15816 postinstall_cmds=$lt_postinstall_cmds
15817
15818 # Command to use after uninstallation of a shared archive.
15819 postuninstall_cmds=$lt_postuninstall_cmds
15820
15821 # Commands used to finish a libtool library installation in a directory.
15822 finish_cmds=$lt_finish_cmds
15823
15824 # As "finish_cmds", except a single script fragment to be evaled but
15825 # not shown.
15826 finish_eval=$lt_finish_eval
15827
15828 # Whether we should hardcode library paths into libraries.
15829 hardcode_into_libs=$hardcode_into_libs
15830
15831 # Compile-time system search path for libraries.
15832 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15833
15834 # Run-time system search path for libraries.
15835 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15836
15837 # Whether dlopen is supported.
15838 dlopen_support=$enable_dlopen
15839
15840 # Whether dlopen of programs is supported.
15841 dlopen_self=$enable_dlopen_self
15842
15843 # Whether dlopen of statically linked programs is supported.
15844 dlopen_self_static=$enable_dlopen_self_static
15845
15846 # Commands to strip libraries.
15847 old_striplib=$lt_old_striplib
15848 striplib=$lt_striplib
15849
15850
15851 # The linker used to build libraries.
15852 LD=$lt_LD
15853
15854 # How to create reloadable object files.
15855 reload_flag=$lt_reload_flag
15856 reload_cmds=$lt_reload_cmds
15857
15858 # Commands used to build an old-style archive.
15859 old_archive_cmds=$lt_old_archive_cmds
15860
15861 # A language specific compiler.
15862 CC=$lt_compiler
15863
15864 # Is the compiler the GNU compiler?
15865 with_gcc=$GCC
15866
15867 # Compiler flag to turn off builtin functions.
15868 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15869
15870 # How to pass a linker flag through the compiler.
15871 wl=$lt_lt_prog_compiler_wl
15872
15873 # Additional compiler flags for building library objects.
15874 pic_flag=$lt_lt_prog_compiler_pic
15875
15876 # Compiler flag to prevent dynamic linking.
15877 link_static_flag=$lt_lt_prog_compiler_static
15878
15879 # Does compiler simultaneously support -c and -o options?
15880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15881
15882 # Whether or not to add -lc for building shared libraries.
15883 build_libtool_need_lc=$archive_cmds_need_lc
15884
15885 # Whether or not to disallow shared libs when runtime libs are static.
15886 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15887
15888 # Compiler flag to allow reflexive dlopens.
15889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15890
15891 # Compiler flag to generate shared objects directly from archives.
15892 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15893
15894 # Whether the compiler copes with passing no objects directly.
15895 compiler_needs_object=$lt_compiler_needs_object
15896
15897 # Create an old-style archive from a shared archive.
15898 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15899
15900 # Create a temporary old-style archive to link instead of a shared archive.
15901 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15902
15903 # Commands used to build a shared archive.
15904 archive_cmds=$lt_archive_cmds
15905 archive_expsym_cmds=$lt_archive_expsym_cmds
15906
15907 # Commands used to build a loadable module if different from building
15908 # a shared archive.
15909 module_cmds=$lt_module_cmds
15910 module_expsym_cmds=$lt_module_expsym_cmds
15911
15912 # Whether we are building with GNU ld or not.
15913 with_gnu_ld=$lt_with_gnu_ld
15914
15915 # Flag that allows shared libraries with undefined symbols to be built.
15916 allow_undefined_flag=$lt_allow_undefined_flag
15917
15918 # Flag that enforces no undefined symbols.
15919 no_undefined_flag=$lt_no_undefined_flag
15920
15921 # Flag to hardcode \$libdir into a binary during linking.
15922 # This must work even if \$libdir does not exist
15923 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15924
15925 # If ld is used when linking, flag to hardcode \$libdir into a binary
15926 # during linking. This must work even if \$libdir does not exist.
15927 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15928
15929 # Whether we need a single "-rpath" flag with a separated argument.
15930 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15931
15932 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15933 # DIR into the resulting binary.
15934 hardcode_direct=$hardcode_direct
15935
15936 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15937 # DIR into the resulting binary and the resulting library dependency is
15938 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15939 # library is relocated.
15940 hardcode_direct_absolute=$hardcode_direct_absolute
15941
15942 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15943 # into the resulting binary.
15944 hardcode_minus_L=$hardcode_minus_L
15945
15946 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15947 # into the resulting binary.
15948 hardcode_shlibpath_var=$hardcode_shlibpath_var
15949
15950 # Set to "yes" if building a shared library automatically hardcodes DIR
15951 # into the library and all subsequent libraries and executables linked
15952 # against it.
15953 hardcode_automatic=$hardcode_automatic
15954
15955 # Set to yes if linker adds runtime paths of dependent libraries
15956 # to runtime path list.
15957 inherit_rpath=$inherit_rpath
15958
15959 # Whether libtool must link a program against all its dependency libraries.
15960 link_all_deplibs=$link_all_deplibs
15961
15962 # Fix the shell variable \$srcfile for the compiler.
15963 fix_srcfile_path=$lt_fix_srcfile_path
15964
15965 # Set to "yes" if exported symbols are required.
15966 always_export_symbols=$always_export_symbols
15967
15968 # The commands to list exported symbols.
15969 export_symbols_cmds=$lt_export_symbols_cmds
15970
15971 # Symbols that should not be listed in the preloaded symbols.
15972 exclude_expsyms=$lt_exclude_expsyms
15973
15974 # Symbols that must always be exported.
15975 include_expsyms=$lt_include_expsyms
15976
15977 # Commands necessary for linking programs (against libraries) with templates.
15978 prelink_cmds=$lt_prelink_cmds
15979
15980 # Specify filename containing input files.
15981 file_list_spec=$lt_file_list_spec
15982
15983 # How to hardcode a shared library path into an executable.
15984 hardcode_action=$hardcode_action
15985
15986 # ### END LIBTOOL CONFIG
15987
15988 _LT_EOF
15989
15990 case $host_os in
15991 aix3*)
15992 cat <<\_LT_EOF >> "$cfgfile"
15993 # AIX sometimes has problems with the GCC collect2 program. For some
15994 # reason, if we set the COLLECT_NAMES environment variable, the problems
15995 # vanish in a puff of smoke.
15996 if test "X${COLLECT_NAMES+set}" != Xset; then
15997 COLLECT_NAMES=
15998 export COLLECT_NAMES
15999 fi
16000 _LT_EOF
16001 ;;
16002 esac
16003
16004
16005 ltmain="$ac_aux_dir/ltmain.sh"
16006
16007
16008 # We use sed instead of cat because bash on DJGPP gets confused if
16009 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16010 # text mode, it properly converts lines to CR/LF. This bash problem
16011 # is reportedly fixed, but why not run on old versions too?
16012 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16013 || (rm -f "$cfgfile"; exit 1)
16014
16015 case $xsi_shell in
16016 yes)
16017 cat << \_LT_EOF >> "$cfgfile"
16018
16019 # func_dirname file append nondir_replacement
16020 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16021 # otherwise set result to NONDIR_REPLACEMENT.
16022 func_dirname ()
16023 {
16024 case ${1} in
16025 */*) func_dirname_result="${1%/*}${2}" ;;
16026 * ) func_dirname_result="${3}" ;;
16027 esac
16028 }
16029
16030 # func_basename file
16031 func_basename ()
16032 {
16033 func_basename_result="${1##*/}"
16034 }
16035
16036 # func_dirname_and_basename file append nondir_replacement
16037 # perform func_basename and func_dirname in a single function
16038 # call:
16039 # dirname: Compute the dirname of FILE. If nonempty,
16040 # add APPEND to the result, otherwise set result
16041 # to NONDIR_REPLACEMENT.
16042 # value returned in "$func_dirname_result"
16043 # basename: Compute filename of FILE.
16044 # value retuned in "$func_basename_result"
16045 # Implementation must be kept synchronized with func_dirname
16046 # and func_basename. For efficiency, we do not delegate to
16047 # those functions but instead duplicate the functionality here.
16048 func_dirname_and_basename ()
16049 {
16050 case ${1} in
16051 */*) func_dirname_result="${1%/*}${2}" ;;
16052 * ) func_dirname_result="${3}" ;;
16053 esac
16054 func_basename_result="${1##*/}"
16055 }
16056
16057 # func_stripname prefix suffix name
16058 # strip PREFIX and SUFFIX off of NAME.
16059 # PREFIX and SUFFIX must not contain globbing or regex special
16060 # characters, hashes, percent signs, but SUFFIX may contain a leading
16061 # dot (in which case that matches only a dot).
16062 func_stripname ()
16063 {
16064 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16065 # positional parameters, so assign one to ordinary parameter first.
16066 func_stripname_result=${3}
16067 func_stripname_result=${func_stripname_result#"${1}"}
16068 func_stripname_result=${func_stripname_result%"${2}"}
16069 }
16070
16071 # func_opt_split
16072 func_opt_split ()
16073 {
16074 func_opt_split_opt=${1%%=*}
16075 func_opt_split_arg=${1#*=}
16076 }
16077
16078 # func_lo2o object
16079 func_lo2o ()
16080 {
16081 case ${1} in
16082 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16083 *) func_lo2o_result=${1} ;;
16084 esac
16085 }
16086
16087 # func_xform libobj-or-source
16088 func_xform ()
16089 {
16090 func_xform_result=${1%.*}.lo
16091 }
16092
16093 # func_arith arithmetic-term...
16094 func_arith ()
16095 {
16096 func_arith_result=$(( $* ))
16097 }
16098
16099 # func_len string
16100 # STRING may not start with a hyphen.
16101 func_len ()
16102 {
16103 func_len_result=${#1}
16104 }
16105
16106 _LT_EOF
16107 ;;
16108 *) # Bourne compatible functions.
16109 cat << \_LT_EOF >> "$cfgfile"
16110
16111 # func_dirname file append nondir_replacement
16112 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16113 # otherwise set result to NONDIR_REPLACEMENT.
16114 func_dirname ()
16115 {
16116 # Extract subdirectory from the argument.
16117 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16118 if test "X$func_dirname_result" = "X${1}"; then
16119 func_dirname_result="${3}"
16120 else
16121 func_dirname_result="$func_dirname_result${2}"
16122 fi
16123 }
16124
16125 # func_basename file
16126 func_basename ()
16127 {
16128 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16129 }
16130
16131
16132 # func_stripname prefix suffix name
16133 # strip PREFIX and SUFFIX off of NAME.
16134 # PREFIX and SUFFIX must not contain globbing or regex special
16135 # characters, hashes, percent signs, but SUFFIX may contain a leading
16136 # dot (in which case that matches only a dot).
16137 # func_strip_suffix prefix name
16138 func_stripname ()
16139 {
16140 case ${2} in
16141 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16142 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16143 esac
16144 }
16145
16146 # sed scripts:
16147 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16148 my_sed_long_arg='1s/^-[^=]*=//'
16149
16150 # func_opt_split
16151 func_opt_split ()
16152 {
16153 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16154 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16155 }
16156
16157 # func_lo2o object
16158 func_lo2o ()
16159 {
16160 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16161 }
16162
16163 # func_xform libobj-or-source
16164 func_xform ()
16165 {
16166 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16167 }
16168
16169 # func_arith arithmetic-term...
16170 func_arith ()
16171 {
16172 func_arith_result=`expr "$@"`
16173 }
16174
16175 # func_len string
16176 # STRING may not start with a hyphen.
16177 func_len ()
16178 {
16179 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16180 }
16181
16182 _LT_EOF
16183 esac
16184
16185 case $lt_shell_append in
16186 yes)
16187 cat << \_LT_EOF >> "$cfgfile"
16188
16189 # func_append var value
16190 # Append VALUE to the end of shell variable VAR.
16191 func_append ()
16192 {
16193 eval "$1+=\$2"
16194 }
16195 _LT_EOF
16196 ;;
16197 *)
16198 cat << \_LT_EOF >> "$cfgfile"
16199
16200 # func_append var value
16201 # Append VALUE to the end of shell variable VAR.
16202 func_append ()
16203 {
16204 eval "$1=\$$1\$2"
16205 }
16206
16207 _LT_EOF
16208 ;;
16209 esac
16210
16211
16212 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16213 || (rm -f "$cfgfile"; exit 1)
16214
16215 mv -f "$cfgfile" "$ofile" ||
16216 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16217 chmod +x "$ofile"
16218
16219 ;;
16220
16221 esac
16222 done # for ac_tag
16223
16224
16225 as_fn_exit 0
16226 _ACEOF
16227 ac_clean_files=$ac_clean_files_save
16228
16229 test $ac_write_fail = 0 ||
16230 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16231
16232
16233 # configure is writing to config.log, and then calls config.status.
16234 # config.status does its own redirection, appending to config.log.
16235 # Unfortunately, on DOS this fails, as config.log is still kept open
16236 # by configure, so config.status won't be able to write to it; its
16237 # output is simply discarded. So we exec the FD to /dev/null,
16238 # effectively closing config.log, so it can be properly (re)opened and
16239 # appended to by config.status. When coming back to configure, we
16240 # need to make the FD available again.
16241 if test "$no_create" != yes; then
16242 ac_cs_success=:
16243 ac_config_status_args=
16244 test "$silent" = yes &&
16245 ac_config_status_args="$ac_config_status_args --quiet"
16246 exec 5>/dev/null
16247 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16248 exec 5>>config.log
16249 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16250 # would make configure fail if this is the last instruction.
16251 $ac_cs_success || as_fn_exit 1
16252 fi
16253 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16255 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16256 fi
16257

Properties

Name Value
svn:executable *